hash
stringlengths
40
40
date
stringdate
2017-10-11 16:52:59
2025-03-24 06:02:38
author
stringclasses
190 values
commit_message
stringlengths
12
90
is_merge
bool
1 class
masked_commit_message
stringlengths
5
75
type
stringclasses
8 values
git_diff
stringlengths
144
14.2M
0bf8ee02ed4d37ea45e06f9034d32b3f5f808d71
2019-03-06 18:07:50
Dmitry Sharshakov
docs(readme): add badge for next version
false
add badge for next version
docs
diff --git a/README.md b/README.md index 150046a3efc..055a0243fa9 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,9 @@ <a href="https://www.npmjs.com/package/vuetify"> <img src="https://img.shields.io/npm/v/vuetify.svg" alt="Version"> </a> + <a href="https://www.npmjs.com/package/vuetify"> + <img src="https://img.shields.io/npm/v/vuetify/next.svg" alt="Next version"> + </a> <a href="https://cdnjs.com/libraries/vuetify"> <img src="https://img.shields.io/cdnjs/v/vuetify.svg" alt="CDN"> </a>
b65f371ade34534bc37b269550f685e5c8be5abe
2019-03-29 23:41:51
John Leider
refactor(VRipple): convert stylus to sass
false
convert stylus to sass
refactor
diff --git a/packages/vuetify/src/styles/components/_ripples.sass b/packages/vuetify/src/directives/ripple/VRipple.sass similarity index 90% rename from packages/vuetify/src/styles/components/_ripples.sass rename to packages/vuetify/src/directives/ripple/VRipple.sass index 4c67ae4ae57..b65b08ffe9d 100644 --- a/packages/vuetify/src/styles/components/_ripples.sass +++ b/packages/vuetify/src/directives/ripple/VRipple.sass @@ -1,3 +1,6 @@ +@import '../../styles/styles.sass' +@import './_variables.scss' + .v-ripple &__container color: inherit diff --git a/packages/vuetify/src/directives/ripple/_variables.scss b/packages/vuetify/src/directives/ripple/_variables.scss new file mode 100644 index 00000000000..a667356df50 --- /dev/null +++ b/packages/vuetify/src/directives/ripple/_variables.scss @@ -0,0 +1,4 @@ +$ripple-animation-transition-in: transform .25s map-get($transition, 'fast-in-slow-out'), + opacity .1s map-get($transition, 'fast-in-slow-out') !default; +$ripple-animation-transition-out: opacity .3s map-get($transition, 'fast-in-slow-out') !default; +$ripple-animation-visible-opacity: .15 !default; diff --git a/packages/vuetify/src/directives/ripple/index.ts b/packages/vuetify/src/directives/ripple/index.ts index 970037ccda7..65d69ee439d 100644 --- a/packages/vuetify/src/directives/ripple/index.ts +++ b/packages/vuetify/src/directives/ripple/index.ts @@ -1,3 +1,6 @@ +// Styles +import './VRipple.sass' + import { VNode, VNodeDirective } from 'vue' import { consoleWarn } from '../../util/console' diff --git a/packages/vuetify/src/styles/components/_index.sass b/packages/vuetify/src/styles/components/_index.sass index f4744cfdb01..c7b64c9745b 100644 --- a/packages/vuetify/src/styles/components/_index.sass +++ b/packages/vuetify/src/styles/components/_index.sass @@ -1,2 +1 @@ -@import './_ripples' @import './_selection-controls' diff --git a/packages/vuetify/src/stylus/components/_ripples.styl b/packages/vuetify/src/stylus/components/_ripples.styl deleted file mode 100644 index 4c67ae4ae57..00000000000 --- a/packages/vuetify/src/stylus/components/_ripples.styl +++ /dev/null @@ -1,34 +0,0 @@ -.v-ripple - &__container - color: inherit - border-radius: inherit - position: absolute - width: 100% - height: 100% - left: 0 - top: 0 - overflow: hidden - z-index: 0 - pointer-events: none - contain: strict - - &__animation - color: inherit - position: absolute - top: 0 - left: 0 - border-radius: 50% - background: currentColor - opacity: 0 - pointer-events: none - overflow: hidden - will-change: transform, opacity - - &--enter - transition: none - - &--in - transition: $ripple-animation-transition-in - - &--out - transition: $ripple-animation-transition-out diff --git a/packages/vuetify/src/stylus/settings/_variables.styl b/packages/vuetify/src/stylus/settings/_variables.styl index 85879fe94c8..20045879be5 100644 --- a/packages/vuetify/src/stylus/settings/_variables.styl +++ b/packages/vuetify/src/stylus/settings/_variables.styl @@ -304,10 +304,5 @@ $calendar-weekly-day-month-left := 36px // Directives // ============================================================ -// Ripple animation -$ripple-animation-transition-in := transform .25s $transition.fast-out-slow-in, opacity .1s $transition.fast-out-slow-in -$ripple-animation-transition-out := opacity .3s $transition.fast-out-slow-in -$ripple-animation-visible-opacity := .15 - // Treeview transition $treeview-transition := .2s $transition.linear-out-slow-in
9fe23f2daef248ddcb84eb4f2fd0018c023d5c06
2018-10-28 15:15:32
Kael
chore: create travis config
false
create travis config
chore
diff --git a/packages/vuetifyjs.com/.travis.yml b/packages/vuetifyjs.com/.travis.yml new file mode 100644 index 00000000000..be00e824a1b --- /dev/null +++ b/packages/vuetifyjs.com/.travis.yml @@ -0,0 +1,8 @@ +language: node_js +node_js: + - "8" + +script: + - yarn --frozen-lockfile --non-interactive + - yarn run lint + - yarn run build
123cab6658f87616fc16651184d1c1e2d663615d
2019-11-06 10:51:30
MajesticPotatoe
docs(PreMadeLayouts): fix source url
false
fix source url
docs
diff --git a/packages/docs/src/layouts/layouts/Index.vue b/packages/docs/src/layouts/layouts/Index.vue index 4f7dd415dc3..8d90af30649 100644 --- a/packages/docs/src/layouts/layouts/Index.vue +++ b/packages/docs/src/layouts/layouts/Index.vue @@ -3,7 +3,7 @@ <component :is="component" v-if="component" - :source="`https://github.com/vuetifyjs/vuetify/blob/${branch}/packages/docs/src/examples/layouts/${page}.vue`" + :source="`https://github.com/vuetifyjs/vuetify/blob/${branch}/packages/docs/src/layouts/layouts/demos/${page}.vue`" /> </div> </template>
ec2b3d1a1def618eedae03fd082a3518a9c20386
2023-06-07 13:48:16
Kael
chore(release): publish v3.3.3
false
publish v3.3.3
chore
diff --git a/lerna.json b/lerna.json index 42139503866..0635cca76dd 100644 --- a/lerna.json +++ b/lerna.json @@ -13,6 +13,6 @@ } }, "npmClient": "yarn", - "version": "3.3.2", + "version": "3.3.3", "useWorkspaces": true } diff --git a/packages/api-generator/package.json b/packages/api-generator/package.json index 28b96bf11ea..bd2169dea6c 100755 --- a/packages/api-generator/package.json +++ b/packages/api-generator/package.json @@ -1,6 +1,6 @@ { "name": "@vuetify/api-generator", - "version": "3.3.2", + "version": "3.3.3", "private": true, "description": "", "scripts": { @@ -19,7 +19,7 @@ "rimraf": "^3.0.2", "ts-morph": "^18.0.0", "vue": "^3.3.4", - "vuetify": "^3.3.2" + "vuetify": "^3.3.3" }, "devDependencies": { "@babel/node": "^7.20.7" diff --git a/packages/docs/package.json b/packages/docs/package.json index 33ab21b4098..19c57a5944f 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -3,7 +3,7 @@ "description": "A Vue.js project", "private": true, "author": "John Leider <[email protected]>", - "version": "3.3.2", + "version": "3.3.3", "repository": { "type": "git", "url": "git+https://github.com/vuetifyjs/vuetify.git", @@ -39,7 +39,7 @@ "vue-i18n": "^9.3.0-beta.16", "vue-instantsearch": "^4.8.8", "vue-prism-component": "^2.0.0", - "vuetify": "^3.3.2" + "vuetify": "^3.3.3" }, "devDependencies": { "@emailjs/browser": "^3.10.0", @@ -51,7 +51,7 @@ "@vitejs/plugin-basic-ssl": "^1.0.1", "@vitejs/plugin-vue": "^4.2.2", "@vue/compiler-sfc": "^3.3.4", - "@vuetify/api-generator": "^3.3.2", + "@vuetify/api-generator": "^3.3.3", "@vuetify/vite-ssg": "^0.20.2", "ajv": "^8.12.0", "async-es": "^3.2.4", diff --git a/packages/vuetify/package.json b/packages/vuetify/package.json index 8883895f346..2d5ecfee912 100755 --- a/packages/vuetify/package.json +++ b/packages/vuetify/package.json @@ -1,7 +1,7 @@ { "name": "vuetify", "description": "Vue Material Component Framework", - "version": "3.3.2", + "version": "3.3.3", "author": { "name": "John Leider", "email": "[email protected]"
198c00948b74df0051eda158d8a9b5b5cfaf7c95
2022-10-14 00:49:21
Yuchao
fix(VAutocomplete): show selections slot and the input side-by-side like v2 does (#15768)
false
show selections slot and the input side-by-side like v2 does (#15768)
fix
diff --git a/packages/vuetify/src/components/VAutocomplete/VAutocomplete.sass b/packages/vuetify/src/components/VAutocomplete/VAutocomplete.sass index 06f16982a27..1a44394d067 100644 --- a/packages/vuetify/src/components/VAutocomplete/VAutocomplete.sass +++ b/packages/vuetify/src/components/VAutocomplete/VAutocomplete.sass @@ -90,5 +90,10 @@ opacity: 0 .v-field--focused - .v-autocomplete__selection + .v-autocomplete__selection-text opacity: 0 + + &--selection-slot + &.v-text-field input + position: relative + padding-inline-start: 0 diff --git a/packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx b/packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx index 17d03dc138a..ba37bd58a98 100644 --- a/packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx +++ b/packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx @@ -178,7 +178,10 @@ export const VAutocomplete = genericComponent<new < isSelecting.value = true - search.value = item.title + if (!slots.selection) { + search.value = item.title + } + menu.value = false isPristine.value = true @@ -189,7 +192,7 @@ export const VAutocomplete = genericComponent<new < watch(isFocused, val => { if (val) { isSelecting.value = true - search.value = props.multiple ? '' : String(selections.value.at(-1)?.props.title ?? '') + search.value = props.multiple || !!slots.selection ? '' : String(selections.value.at(-1)?.props.title ?? '') isPristine.value = true nextTick(() => isSelecting.value = false) @@ -224,6 +227,7 @@ export const VAutocomplete = genericComponent<new < 'v-autocomplete--active-menu': menu.value, 'v-autocomplete--chips': !!props.chips, [`v-autocomplete--${props.multiple ? 'multiple' : 'single'}`]: true, + 'v-autocomplete--selection-slot': !!slots.selection, }, ]} appendInnerIcon={ props.menuIcon }
5d11aa72c7a116bd404741c0b51b168df4c85a82
2022-02-28 23:57:39
John Leider
docs(App.vue): add global styling for non-class ul elements
false
add global styling for non-class ul elements
docs
diff --git a/packages/docs/src/App.vue b/packages/docs/src/App.vue index 3be0c4578ec..ae292045f8d 100644 --- a/packages/docs/src/App.vue +++ b/packages/docs/src/App.vue @@ -95,4 +95,8 @@ + p font-size: 1.25rem font-weight: 300 + + ul:not([class]) + padding-left: 20px + margin-bottom: 16px </style>
b6f5fee4af56fecef647fefc236446910867d10e
2019-01-08 13:02:48
sh7dm
fix(kitchen): fix VImg pan name
false
fix VImg pan name
fix
diff --git a/packages/kitchen/src/pan/Images.vue b/packages/kitchen/src/pan/Images.vue index 3543c75b1f8..2a6e55fbdad 100644 --- a/packages/kitchen/src/pan/Images.vue +++ b/packages/kitchen/src/pan/Images.vue @@ -111,7 +111,7 @@ <script> export default { - name: '', + name: 'Images', data: () => ({}) }
bccf9bce5a565b3007124334a25677d8ae19f7eb
2023-11-07 18:32:25
Kael
fix(VTextarea): pass input id to VField
false
pass input id to VField
fix
diff --git a/packages/vuetify/src/components/VTextarea/VTextarea.tsx b/packages/vuetify/src/components/VTextarea/VTextarea.tsx index c043bba23a0..a30f0f3d0f0 100644 --- a/packages/vuetify/src/components/VTextarea/VTextarea.tsx +++ b/packages/vuetify/src/components/VTextarea/VTextarea.tsx @@ -234,6 +234,7 @@ export const VTextarea = genericComponent<VTextareaSlots>()({ {{ ...slots, default: ({ + id, isDisabled, isDirty, isReadonly, @@ -250,6 +251,7 @@ export const VTextarea = genericComponent<VTextareaSlots>()({ onClick:prependInner={ props['onClick:prependInner'] } onClick:appendInner={ props['onClick:appendInner'] } { ...fieldProps } + id={ id.value } active={ isActive.value || isDirty.value } centerAffix={ rows.value === 1 && !isPlainOrUnderlined.value } dirty={ isDirty.value || props.dirty }
05433594384eb4c7536e8e19fc495d887d571f20
2020-08-03 08:36:02
MajesticPotatoe
docs(getting-started): add usage with vuepress
false
add usage with vuepress
docs
diff --git a/packages/docs-next/src/pages/en/getting-started/quick-start.md b/packages/docs-next/src/pages/en/getting-started/quick-start.md index e289856348c..39bf217561f 100644 --- a/packages/docs-next/src/pages/en/getting-started/quick-start.md +++ b/packages/docs-next/src/pages/en/getting-started/quick-start.md @@ -271,4 +271,37 @@ $ vue add @nklayman/capacitor $ yarn capacitor:serve ``` +## Usage with Vuepress + +There are 2 ways we can use Vuetify with default **vuepress** theme. Either by registering vuetify as a plugin in [vuepress](https://vuepress.vuejs.org/) `.vuepress/enhanceApp.js` file (code sample below), or by using vuetify directly from CDN: + +```js +// register vuetify as a global plugin with vuepress +// .vuepress/enhanceApp.js +import Vuetify from 'vuetify' + +export default ({ + Vue, // the version of Vue being used in the VuePress app + options, // the options for the root Vue instance + router, // the router instance for the app + siteData // site metadata +}) => { + Vue.use(Vuetify) +} + +// Alternatively, use vuetify directly from CDN. +// Update head section in .vuepress/config.js as follows +module.exports = { + head: [ + ['link', { + rel: 'stylesheet', + href: `https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css` + + }], + ['script', { src: `https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js` }], + ['script', { src: `https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.js` }], + ] +} +``` + <backmatter />
9bf02afc57fe639151c1250e28ef0c5dc1492cc8
2018-09-06 16:42:56
Kael
fix(VMenu): inherit light/dark from v-app
false
inherit light/dark from v-app
fix
diff --git a/src/components/VDialog/VDialog.js b/src/components/VDialog/VDialog.js index 37c9265dec0..b6585c4fb9e 100644 --- a/src/components/VDialog/VDialog.js +++ b/src/components/VDialog/VDialog.js @@ -38,6 +38,8 @@ export default { fullscreen: Boolean, fullWidth: Boolean, noClickAnimation: Boolean, + light: Boolean, + dark: Boolean, maxWidth: { type: [String, Number], default: 'none' @@ -220,7 +222,8 @@ export default { }, [ this.$createElement(ThemeProvider, { props: { - dark: this.$vuetify.dark || this.dark + dark: !this.light && (this.$vuetify.dark || this.dark), + light: !this.dark && (this.light || !this.$vuetify.dark) } }, [dialog]) ])) diff --git a/src/components/VMenu/VMenu.js b/src/components/VMenu/VMenu.js index 278c74eb1b3..e7612004db4 100644 --- a/src/components/VMenu/VMenu.js +++ b/src/components/VMenu/VMenu.js @@ -207,7 +207,8 @@ export default Vue.extend({ this.genActivator(), this.$createElement(ThemeProvider, { props: { - dark: this.$vuetify.dark || this.dark + dark: !this.light && (this.$vuetify.dark || this.dark), + light: !this.dark && (this.light || !this.$vuetify.dark) } }, [this.genTransition()]) ]) diff --git a/src/components/VMenu/mixins/menu-generators.js b/src/components/VMenu/mixins/menu-generators.js index 3d79c9f99d3..8b864c06fc0 100644 --- a/src/components/VMenu/mixins/menu-generators.js +++ b/src/components/VMenu/mixins/menu-generators.js @@ -60,7 +60,6 @@ export default { 'class': { 'v-menu__content--auto': this.auto, 'menuable__content__active': this.isActive, - ...this.themeClasses, [this.contentClass.trim()]: true }, style: this.styles, diff --git a/src/mixins/menuable.js b/src/mixins/menuable.js index 175247ebc97..185bdcb14b1 100644 --- a/src/mixins/menuable.js +++ b/src/mixins/menuable.js @@ -3,7 +3,6 @@ import Vue from 'vue' import Positionable from './positionable' import Stackable from './stackable' -import Themeable from './themeable' /* eslint-disable object-property-newline */ const dimensions = { @@ -39,8 +38,7 @@ export default Vue.extend({ mixins: [ Positionable, - Stackable, - Themeable + Stackable ], props: { @@ -52,6 +50,8 @@ export default Vue.extend({ }, allowOverflow: Boolean, inputActivator: Boolean, + light: Boolean, + dark: Boolean, maxWidth: { type: [Number, String], default: 'auto' diff --git a/test/unit/components/VDataIterator/__snapshots__/VDataIterator.spec.js.snap b/test/unit/components/VDataIterator/__snapshots__/VDataIterator.spec.js.snap index 6827e22e6c9..d9387d687fd 100644 --- a/test/unit/components/VDataIterator/__snapshots__/VDataIterator.spec.js.snap +++ b/test/unit/components/VDataIterator/__snapshots__/VDataIterator.spec.js.snap @@ -40,7 +40,7 @@ exports[`VDataIterator.js should match a snapshot - footer slot 1`] = ` </div> </div> <div class="v-menu"> - <div class="v-menu__content v-menu__content--auto theme--light " + <div class="v-menu__content v-menu__content--auto " style="max-height: 200px; min-width: 75px; max-width: auto; top: 12px; left: 12px; z-index: 0; display: none;" > <div class="v-select-list v-card theme--light"> @@ -177,7 +177,7 @@ exports[`VDataIterator.js should match a snapshot - no data 1`] = ` </div> </div> <div class="v-menu"> - <div class="v-menu__content v-menu__content--auto theme--light " + <div class="v-menu__content v-menu__content--auto " style="max-height: 200px; min-width: 75px; max-width: auto; top: 12px; left: 12px; z-index: 0; display: none;" > <div class="v-select-list v-card theme--light"> @@ -305,7 +305,7 @@ exports[`VDataIterator.js should match a snapshot - no matching records 1`] = ` </div> </div> <div class="v-menu"> - <div class="v-menu__content v-menu__content--auto theme--light " + <div class="v-menu__content v-menu__content--auto " style="max-height: 200px; min-width: 75px; max-width: auto; top: 12px; left: 12px; z-index: 0; display: none;" > <div class="v-select-list v-card theme--light"> @@ -437,7 +437,7 @@ exports[`VDataIterator.js should match a snapshot - with data 1`] = ` </div> </div> <div class="v-menu"> - <div class="v-menu__content v-menu__content--auto theme--light " + <div class="v-menu__content v-menu__content--auto " style="max-height: 200px; min-width: 75px; max-width: auto; top: 12px; left: 12px; z-index: 0; display: none;" > <div class="v-select-list v-card theme--light"> diff --git a/test/unit/components/VDataTable/__snapshots__/VDataTable.spec.js.snap b/test/unit/components/VDataTable/__snapshots__/VDataTable.spec.js.snap index f6a846c19f9..aa2ac1c83b3 100644 --- a/test/unit/components/VDataTable/__snapshots__/VDataTable.spec.js.snap +++ b/test/unit/components/VDataTable/__snapshots__/VDataTable.spec.js.snap @@ -93,7 +93,7 @@ exports[`VDataTable.vue should match a snapshot - no data 1`] = ` </div> </div> <div class="v-menu"> - <div class="v-menu__content v-menu__content--auto theme--light " + <div class="v-menu__content v-menu__content--auto " style="max-height: 200px; min-width: 75px; max-width: auto; top: 12px; left: 12px; z-index: 0; display: none;" > <div class="v-select-list v-card theme--light"> @@ -272,7 +272,7 @@ exports[`VDataTable.vue should match a snapshot - no matching results 1`] = ` </div> </div> <div class="v-menu"> - <div class="v-menu__content v-menu__content--auto theme--light " + <div class="v-menu__content v-menu__content--auto " style="max-height: 200px; min-width: 75px; max-width: auto; top: 12px; left: 12px; z-index: 0; display: none;" > <div class="v-select-list v-card theme--light"> @@ -453,7 +453,7 @@ exports[`VDataTable.vue should match a snapshot - with data 1`] = ` </div> </div> <div class="v-menu"> - <div class="v-menu__content v-menu__content--auto theme--light " + <div class="v-menu__content v-menu__content--auto " style="max-height: 200px; min-width: 75px; max-width: auto; top: 12px; left: 12px; z-index: 0; display: none;" > <div class="v-select-list v-card theme--light"> diff --git a/test/unit/components/VMenu/__snapshots__/VMenu.spec.js.snap b/test/unit/components/VMenu/__snapshots__/VMenu.spec.js.snap index d710f5de2ff..69318f3a6b3 100644 --- a/test/unit/components/VMenu/__snapshots__/VMenu.spec.js.snap +++ b/test/unit/components/VMenu/__snapshots__/VMenu.spec.js.snap @@ -3,7 +3,7 @@ exports[`VMenu.js should render component with custom absolute and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -14,7 +14,7 @@ exports[`VMenu.js should render component with custom absolute and match snapsho exports[`VMenu.js should render component with custom activator and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -25,7 +25,7 @@ exports[`VMenu.js should render component with custom activator and match snapsh exports[`VMenu.js should render component with custom auto and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content v-menu__content--auto theme--light " + <div class="v-menu__content v-menu__content--auto " style="max-height: 200px; min-width: 16px; max-width: auto; top: 12px; left: 12px; z-index: 0; display: none;" > </div> @@ -36,7 +36,7 @@ exports[`VMenu.js should render component with custom auto and match snapshot 1` exports[`VMenu.js should render component with custom bottom and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -47,7 +47,7 @@ exports[`VMenu.js should render component with custom bottom and match snapshot exports[`VMenu.js should render component with custom closeOnClick and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -58,7 +58,7 @@ exports[`VMenu.js should render component with custom closeOnClick and match sna exports[`VMenu.js should render component with custom closeOnContentClick and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -69,7 +69,7 @@ exports[`VMenu.js should render component with custom closeOnContentClick and ma exports[`VMenu.js should render component with custom disabled and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -80,7 +80,7 @@ exports[`VMenu.js should render component with custom disabled and match snapsho exports[`VMenu.js should render component with custom fullWidth and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -91,7 +91,7 @@ exports[`VMenu.js should render component with custom fullWidth and match snapsh exports[`VMenu.js should render component with custom lazy and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -102,7 +102,7 @@ exports[`VMenu.js should render component with custom lazy and match snapshot 1` exports[`VMenu.js should render component with custom left and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -113,7 +113,7 @@ exports[`VMenu.js should render component with custom left and match snapshot 1` exports[`VMenu.js should render component with custom maxHeight and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: 100px; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -124,7 +124,7 @@ exports[`VMenu.js should render component with custom maxHeight and match snapsh exports[`VMenu.js should render component with custom maxWidth and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: 100px; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -135,7 +135,7 @@ exports[`VMenu.js should render component with custom maxWidth and match snapsho exports[`VMenu.js should render component with custom minWidth and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 100px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -146,7 +146,7 @@ exports[`VMenu.js should render component with custom minWidth and match snapsho exports[`VMenu.js should render component with custom nudgeBottom and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 100px; left: 0px; z-index: 0; display: none;" > </div> @@ -157,7 +157,7 @@ exports[`VMenu.js should render component with custom nudgeBottom and match snap exports[`VMenu.js should render component with custom nudgeLeft and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 12px; z-index: 0; display: none;" > </div> @@ -168,7 +168,7 @@ exports[`VMenu.js should render component with custom nudgeLeft and match snapsh exports[`VMenu.js should render component with custom nudgeRight and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 100px; z-index: 0; display: none;" > </div> @@ -179,7 +179,7 @@ exports[`VMenu.js should render component with custom nudgeRight and match snaps exports[`VMenu.js should render component with custom nudgeTop and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -190,7 +190,7 @@ exports[`VMenu.js should render component with custom nudgeTop and match snapsho exports[`VMenu.js should render component with custom nudgeWidth and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 100px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -201,7 +201,7 @@ exports[`VMenu.js should render component with custom nudgeWidth and match snaps exports[`VMenu.js should render component with custom offsetX and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -212,7 +212,7 @@ exports[`VMenu.js should render component with custom offsetX and match snapshot exports[`VMenu.js should render component with custom offsetY and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -223,7 +223,7 @@ exports[`VMenu.js should render component with custom offsetY and match snapshot exports[`VMenu.js should render component with custom openOnClick and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -234,7 +234,7 @@ exports[`VMenu.js should render component with custom openOnClick and match snap exports[`VMenu.js should render component with custom openOnHover and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -245,7 +245,7 @@ exports[`VMenu.js should render component with custom openOnHover and match snap exports[`VMenu.js should render component with custom origin and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -256,7 +256,7 @@ exports[`VMenu.js should render component with custom origin and match snapshot exports[`VMenu.js should render component with custom positionX and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -267,7 +267,7 @@ exports[`VMenu.js should render component with custom positionX and match snapsh exports[`VMenu.js should render component with custom positionY and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -278,7 +278,7 @@ exports[`VMenu.js should render component with custom positionY and match snapsh exports[`VMenu.js should render component with custom right and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -289,7 +289,7 @@ exports[`VMenu.js should render component with custom right and match snapshot 1 exports[`VMenu.js should render component with custom top and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -300,7 +300,7 @@ exports[`VMenu.js should render component with custom top and match snapshot 1`] exports[`VMenu.js should render component with custom transition and match snapshot 1`] = ` <div class="v-menu"> - <div class="v-menu__content theme--light " + <div class="v-menu__content" style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 0; display: none;" > </div> @@ -321,7 +321,7 @@ exports[`VMenu.js should work 1`] = ` </div> </button> </div> - <div class="v-menu__content menuable__content__active theme--light " + <div class="v-menu__content menuable__content__active " style="max-height: auto; min-width: 0px; max-width: auto; top: 12px; left: 0px; z-index: 8; display: none; z-index: 8;" > <div class="v-card theme--light">
d1abfe682c8af2df23c7b28ce117d31f14ad9837
2018-05-06 21:34:50
Kael
fix(VOverflowBtn): get correct item value and ignore search unless editable
false
get correct item value and ignore search unless editable
fix
diff --git a/src/components/VOverflowBtn/VOverflowBtn.js b/src/components/VOverflowBtn/VOverflowBtn.js index 24780205e49..d1f5bde65e5 100644 --- a/src/components/VOverflowBtn/VOverflowBtn.js +++ b/src/components/VOverflowBtn/VOverflowBtn.js @@ -35,6 +35,16 @@ export default { }, isSingle () { return true + }, + internalSearch: { + get () { + return this.editable + ? VAutocomplete.computed.internalSearch.get.call(this) + : '' + }, + set (val) { + VAutocomplete.computed.internalSearch.set.call(this, val) + } } }, @@ -69,12 +79,10 @@ export default { return label }, genSegmentedBtn (item) { - const itemObj = this.computedItems.find(i => i.value === item) + const itemValue = this.getValue(item) + const itemObj = this.computedItems.find(i => this.getValue(i) === itemValue) || item - if (!itemObj || - !itemObj.text || - !itemObj.callback - ) { + if (!itemObj.text || !itemObj.callback) { consoleWarn('When using \'segmented\' prop without a selection slot, items must contain both a text and callback property', this) return null }
c69feb7397a9007f18865091efea322dc6b9d32a
2020-09-24 00:37:39
John Leider
docs(roadmap.md): add alpha target date
false
add alpha target date
docs
diff --git a/packages/docs/src/pages/en/introduction/roadmap.md b/packages/docs/src/pages/en/introduction/roadmap.md index 8312bf4745e..35136a0ce46 100644 --- a/packages/docs/src/pages/en/introduction/roadmap.md +++ b/packages/docs/src/pages/en/introduction/roadmap.md @@ -23,6 +23,7 @@ The following releases are currently under development: ### v3.0 (Titan) * **Target Release:** Q1 2021 + * **Alpha:** Q4 2020 * **Overview:** The entire framework will be converted to the new [composition api](https://vue-composition-api-rfc.netlify.com/) coming in Vue 3. Details of this conversion process are outlined in our [v3 Notion Board](https://notion.vuetifyjs.com) along with information about release schedules, proposed new functionality and more. Vuetify 3 is being developed with the pre-releases (alpha/beta) of Vue 3 and is expected to release shortly after the next Vue version is officially released. Due to this, the target release quarter is variable and will change according to the progress of Vue 3. * **Objectives:**
d345a6ab7bb222782cf51bdd4d6dabe8d1230013
2023-05-01 23:24:52
Kael
fix(VNavigationDrawer): remove inset styles from scrim
false
remove inset styles from scrim
fix
diff --git a/packages/vuetify/src/components/VNavigationDrawer/VNavigationDrawer.tsx b/packages/vuetify/src/components/VNavigationDrawer/VNavigationDrawer.tsx index d4eab3e02d1..5f9e302166b 100644 --- a/packages/vuetify/src/components/VNavigationDrawer/VNavigationDrawer.tsx +++ b/packages/vuetify/src/components/VNavigationDrawer/VNavigationDrawer.tsx @@ -21,7 +21,7 @@ import { useTouch } from './touch' // Utilities import { computed, nextTick, onBeforeMount, ref, toRef, Transition, watch } from 'vue' -import { convertToUnit, genericComponent, toPhysical, useRender } from '@/util' +import { genericComponent, toPhysical, useRender } from '@/util' // Types import type { PropType } from 'vue' @@ -161,7 +161,7 @@ export const VNavigationDrawer = genericComponent<VNavigationDrawerSlots>()({ return isDragging.value ? size * dragProgress.value : size }) - const { layoutItemStyles, layoutRect, layoutItemScrimStyles } = useLayoutItem({ + const { layoutItemStyles, layoutItemScrimStyles } = useLayoutItem({ id: props.name, order: computed(() => parseInt(props.order, 10)), position: location, @@ -185,12 +185,6 @@ export const VNavigationDrawer = genericComponent<VNavigationDrawerSlots>()({ opacity: dragProgress.value * 0.2, transition: 'none', } : undefined, - ...layoutRect.value ? { - left: convertToUnit(layoutRect.value.left), - right: convertToUnit(layoutRect.value.right), - top: convertToUnit(layoutRect.value.top), - bottom: convertToUnit(layoutRect.value.bottom), - } : undefined, ...layoutItemScrimStyles.value, }))
f39ff039bb37367e1a8371b8d2a0ebd1db98d15d
2023-11-02 02:32:09
John Leider
docs(VDataIterator): update examples
false
update examples
docs
diff --git a/packages/docs/src/examples/v-data-iterator/slot-default.vue b/packages/docs/src/examples/v-data-iterator/slot-default.vue index 2d4e16a66b3..aa950039ae5 100644 --- a/packages/docs/src/examples/v-data-iterator/slot-default.vue +++ b/packages/docs/src/examples/v-data-iterator/slot-default.vue @@ -2,7 +2,6 @@ <v-data-iterator :items="desserts" item-value="name" - :items-per-page="3" > <template v-slot:default="{ items, isExpanded, toggleExpand }"> <v-row> @@ -10,34 +9,50 @@ v-for="item in items" :key="item.raw.name" cols="12" - sm="6" - md="4" - lg="3" + sm="12" + md="6" > <v-card> - <v-card-title> + <v-card-title class="d-flex align-center"> + <v-icon + :color="item.raw.color" + :icon="item.raw.icon" + start + size="18" + ></v-icon> + <h4>{{ item.raw.name }}</h4> </v-card-title> - <v-switch - color="primary" - :model-value="isExpanded(item)" - :label="isExpanded(item) ? 'Expanded' : 'Closed'" - class="pl-4 mt-0" - @click="() => toggleExpand(item)" - ></v-switch> + + <v-card-text> + {{ item.raw.description }} + </v-card-text> + + <div class="px-4"> + <v-switch + :model-value="isExpanded(item)" + :label="`${isExpanded(item) ? 'Hide' : 'Show'} details`" + density="compact" + inset + @click="() => toggleExpand(item)" + ></v-switch> + </div> + <v-divider></v-divider> - <v-list - v-if="isExpanded(item)" - dense - > - <v-list-item title="Calories:" :subtitle="item.raw.calories"></v-list-item> - <v-list-item title="Fat:" :subtitle="item.raw.fat"></v-list-item> - <v-list-item title="Carbs:" :subtitle="item.raw.carbs"></v-list-item> - <v-list-item title="Protein:" :subtitle="item.raw.protein"></v-list-item> - <v-list-item title="Sodium:" :subtitle="item.raw.sodium"></v-list-item> - <v-list-item title="Calcium:" :subtitle="item.raw.calcium"></v-list-item> - <v-list-item title="Iron:" :subtitle="item.raw.iron"></v-list-item> - </v-list> + + <v-expand-transition> + <div v-if="isExpanded(item)"> + <v-list density="compact" :lines="false"> + <v-list-item :title="`🔥 Calories: ${item.raw.calories}`" active></v-list-item> + <v-list-item :title="`🍔 Fat: ${item.raw.fat}`"></v-list-item> + <v-list-item :title="`🍞 Carbs: ${item.raw.carbs}`"></v-list-item> + <v-list-item :title="`🍗 Protein: ${item.raw.protein}`"></v-list-item> + <v-list-item :title="`🧂 Sodium: ${item.raw.sodium}`"></v-list-item> + <v-list-item :title="`🦴 Calcium: ${item.raw.calcium}`"></v-list-item> + <v-list-item :title="`🧲 Iron: ${item.raw.iron}`"></v-list-item> + </v-list> + </div> + </v-expand-transition> </v-card> </v-col> </v-row> @@ -49,6 +64,9 @@ const desserts = [ { name: 'Frozen Yogurt', + description: 'A tangy and creamy dessert made from yogurt and sometimes fruit, Frozen Yogurt is a lighter alternative to ice cream. Perfect for those who crave a sweet treat but want to keep it on the healthier side.', + icon: 'mdi-ice-cream', + color: '#6EC1E4', calories: 159, fat: 6, carbs: 24, @@ -59,6 +77,9 @@ }, { name: 'Ice cream sandwich', + description: 'A classic treat featuring a layer of creamy ice cream sandwiched between two cookies or cake layers. Ideal for those hot summer days when you can\'t decide between a cookie and ice cream.', + icon: 'mdi-cookie', + color: '#F4A261', calories: 237, fat: 9, carbs: 37, @@ -69,6 +90,9 @@ }, { name: 'Eclair', + description: 'A small, individual cake topped with frosting and often adorned with sprinkles or other decorations. Great for parties or as a quick indulgence when you need a sugar fix.', + icon: 'mdi-cake-variant', + color: '#6D4C41', calories: 262, fat: 16, carbs: 23, @@ -79,6 +103,9 @@ }, { name: 'Cupcake', + description: 'A small, individual cake topped with frosting and often adorned with sprinkles or other decorations. Great for parties or as a quick indulgence when you need a sugar fix.', + color: '#FFADAD', + icon: 'mdi-cupcake', calories: 305, fat: 3.7, carbs: 67, @@ -96,18 +123,24 @@ desserts: [ { name: 'Frozen Yogurt', + description: 'A tangy and creamy dessert made from yogurt and sometimes fruit, Frozen Yogurt is a lighter alternative to ice cream. Perfect for those who crave a sweet treat but want to keep it on the healthier side.', + icon: 'mdi-ice-cream', + color: '#6EC1E4', calories: 159, - fat: 6.0, + fat: 6, carbs: 24, - protein: 4.0, + protein: 4, sodium: 87, calcium: '14%', iron: '1%', }, { name: 'Ice cream sandwich', + description: 'A classic treat featuring a layer of creamy ice cream sandwiched between two cookies or cake layers. Ideal for those hot summer days when you can\'t decide between a cookie and ice cream.', + icon: 'mdi-cookie', + color: '#F4A261', calories: 237, - fat: 9.0, + fat: 9, carbs: 37, protein: 4.3, sodium: 129, @@ -116,16 +149,22 @@ }, { name: 'Eclair', + description: 'A small, individual cake topped with frosting and often adorned with sprinkles or other decorations. Great for parties or as a quick indulgence when you need a sugar fix.', + icon: 'mdi-cake-variant', + color: '#6D4C41', calories: 262, - fat: 16.0, + fat: 16, carbs: 23, - protein: 6.0, + protein: 6, sodium: 337, calcium: '6%', iron: '7%', }, { name: 'Cupcake', + description: 'A small, individual cake topped with frosting and often adorned with sprinkles or other decorations. Great for parties or as a quick indulgence when you need a sugar fix.', + color: '#FFADAD', + icon: 'mdi-cupcake', calories: 305, fat: 3.7, carbs: 67, diff --git a/packages/docs/src/examples/v-data-iterator/slot-header-and-footer.vue b/packages/docs/src/examples/v-data-iterator/slot-header-and-footer.vue index fdff5875be4..bba513e3e2f 100644 --- a/packages/docs/src/examples/v-data-iterator/slot-header-and-footer.vue +++ b/packages/docs/src/examples/v-data-iterator/slot-header-and-footer.vue @@ -1,263 +1,483 @@ <template> <v-data-iterator - :items="desserts" - :items-per-page="3" + :items="mice" + :items-per-page="itemsPerPage" > - <template v-slot:header> - <div class="bg-primary pa-2 mb-2"> - Header - </div> + <template v-slot:header="{ page, pageCount, prevPage, nextPage }"> + <h1 class="text-h4 font-weight-bold d-flex justify-space-between mb-4 align-center"> + <div class="text-truncate"> + Most popular mice + </div> + + <div class="d-flex align-center"> + <v-btn + class="me-8" + variant="text" + @click="onClickSeeAll" + > + <span class="text-decoration-underline text-none">See all</span> + </v-btn> + + <div class="d-inline-flex"> + <v-btn + :disabled="page === 1" + icon="mdi-arrow-left" + size="small" + variant="tonal" + class="me-2" + @click="prevPage" + ></v-btn> + + <v-btn + :disabled="page === pageCount" + icon="mdi-arrow-right" + size="small" + variant="tonal" + @click="nextPage" + ></v-btn> + </div> + </div> + </h1> </template> <template v-slot:default="{ items }"> <v-row> <v-col - v-for="item in items" - :key="item.raw.name" + v-for="(item, i) in items" + :key="i" cols="12" sm="6" - md="4" - lg="3" + xl="3" > - <v-card class="fill-height"> - <v-card-title class="subheading font-weight-bold d-flex align-center justify-space-between"> - {{ item.raw.name }} - </v-card-title> + <v-sheet border> + <v-img + :gradient="`to top right, rgba(255, 255, 255, .1), rgba(${item.raw.color}, .15)`" + :src="item.raw.src" + cover + height="150" + ></v-img> + + <v-list-item + :title="item.raw.name" + lines="two" + density="comfortable" + subtitle="Lorem ipsum dil orei namdie dkaf" + > + <template v-slot:title> + <strong class="text-h6"> + {{ item.raw.name }} + </strong> + </template> + </v-list-item> + + <v-table density="compact" class="text-caption"> + <tbody> + <tr align="right"> + <th>DPI:</th> + + <td>{{ item.raw.dpi }}</td> + </tr> + + <tr align="right"> + <th>Buttons:</th> - <v-divider></v-divider> + <td>{{ item.raw.buttons }}</td> + </tr> - <v-list density="compact"> - <v-list-item title="Calories" :subtitle="String(item.raw.calories)"></v-list-item> - <v-list-item title="Fat" :subtitle="String(item.raw.fat)"></v-list-item> - <v-list-item title="Carbs" :subtitle="String(item.raw.carbs)"></v-list-item> - <v-list-item title="Protein" :subtitle="String(item.raw.protein)"></v-list-item> - <v-list-item title="Sodium" :subtitle="String(item.raw.sodium)"></v-list-item> - <v-list-item title="Calcium" :subtitle="String(item.raw.calcium)"></v-list-item> - <v-list-item title="Iron" :subtitle="String(item.raw.iron)"></v-list-item> - </v-list> - </v-card> + <tr align="right"> + <th>Weight:</th> + + <td>{{ item.raw.weight }}</td> + </tr> + + <tr align="right"> + <th>Wireless:</th> + + <td>{{ item.raw.wireless ? 'Yes' : 'No' }}</td> + </tr> + + <tr align="right"> + <th>Price:</th> + + <td>${{ item.raw.price }}</td> + </tr> + </tbody> + </v-table> + </v-sheet> </v-col> </v-row> </template> - <template v-slot:footer> - <div class="bg-primary pa-2 mt-2"> - Footer - </div> + <template v-slot:footer="{ page, pageCount }"> + <v-footer + color="surface-variant" + class="justify-space-between text-body-2 mt-4" + > + Total mice: {{ mice.length }} + + <div> + Page {{ page }} of {{ pageCount }} + </div> + </v-footer> </template> </v-data-iterator> </template> <script setup> - const desserts = [ + import { shallowRef } from 'vue' + + const itemsPerPage = shallowRef(4) + const mice = [ { - name: 'Frozen Yogurt', - calories: 159, - fat: 6, - carbs: 24, - protein: 4, - sodium: 87, - calcium: '14%', - iron: '1%', + name: 'Logitech G Pro X', + color: '14, 151, 210', + dpi: 16000, + buttons: 8, + weight: '63g', + wireless: true, + price: 149.99, + description: 'Logitech G Pro X', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/1.png', }, { - name: 'Ice cream sandwich', - calories: 237, - fat: 9, - carbs: 37, - protein: 4.3, - sodium: 129, - calcium: '8%', - iron: '1%', + name: 'Razer DeathAdder V2', + color: '12, 146, 47', + dpi: 20000, + buttons: 8, + weight: '82g', + wireless: false, + price: 69.99, + description: 'Razer DeathAdder V2', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/2.png', }, { - name: 'Eclair', - calories: 262, - fat: 16, - carbs: 23, - protein: 6, - sodium: 337, - calcium: '6%', - iron: '7%', + name: 'Corsair Dark Core RGB', + color: '107, 187, 226', + dpi: 18000, + buttons: 9, + weight: '133g', + wireless: true, + price: 89.99, + description: 'Corsair Dark Core RGB', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/3.png', }, { - name: 'Cupcake', - calories: 305, - fat: 3.7, - carbs: 67, - protein: 4.3, - sodium: 413, - calcium: '3%', - iron: '8%', + name: 'SteelSeries Rival 3', + color: '228, 196, 69', + dpi: 8500, + buttons: 6, + weight: '77g', + wireless: false, + price: 29.99, + description: 'SteelSeries Rival 3', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/4.png', }, { - name: 'Gingerbread', - calories: 356, - fat: 16, - carbs: 49, - protein: 3.9, - sodium: 327, - calcium: '7%', - iron: '16%', + name: 'HyperX Pulsefire FPS Pro', + color: '156, 82, 251', + dpi: 16000, + buttons: 6, + weight: '95g', + wireless: false, + price: 44.99, + description: 'HyperX Pulsefire FPS Pro', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/5.png', }, { - name: 'Jelly bean', - calories: 375, - fat: 0, - carbs: 94, - protein: 0, - sodium: 50, - calcium: '0%', - iron: '0%', + name: 'Zowie EC2', + color: '166, 39, 222', + dpi: 3200, + buttons: 5, + weight: '90g', + wireless: false, + price: 69.99, + description: 'Zowie EC2', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/6.png', }, { - name: 'Lollipop', - calories: 392, - fat: 0.2, - carbs: 98, - protein: 0, - sodium: 38, - calcium: '0%', - iron: '2%', + name: 'Roccat Kone AIMO', + color: '131, 9, 10', + dpi: 16000, + buttons: 10, + weight: '130g', + wireless: false, + price: 79.99, + description: 'Roccat Kone AIMO', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/7.png', }, { - name: 'Honeycomb', - calories: 408, - fat: 3.2, - carbs: 87, - protein: 6.5, - sodium: 562, - calcium: '0%', - iron: '45%', + name: 'Logitech G903', + color: '232, 94, 102', + dpi: 12000, + buttons: 11, + weight: '110g', + wireless: true, + price: 129.99, + description: 'Logitech G903', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/8.png', }, { - name: 'Donut', - calories: 452, - fat: 25, - carbs: 51, - protein: 4.9, - sodium: 326, - calcium: '2%', - iron: '22%', + name: 'Cooler Master MM711', + color: '58, 192, 239', + dpi: 16000, + buttons: 6, + weight: '60g', + wireless: false, + price: 49.99, + description: 'Cooler Master MM711', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/9.png', }, { - name: 'KitKat', - calories: 518, - fat: 26, - carbs: 65, - protein: 7, - sodium: 54, - calcium: '12%', - iron: '6%', + name: 'Glorious Model O', + color: '161, 252, 250', + dpi: 12000, + buttons: 6, + weight: '67g', + wireless: false, + price: 49.99, + description: 'Glorious Model O', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/10.png', + }, + { + name: 'HP Omen Photon', + color: '201, 1, 2', + dpi: 16000, + buttons: 11, + weight: '128g', + wireless: true, + price: 99.99, + description: 'HP Omen Photon', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/11.png', + }, + { + name: 'Asus ROG Chakram', + color: '10, 181, 19', + dpi: 16000, + buttons: 9, + weight: '121g', + wireless: true, + price: 159.99, + description: 'Asus ROG Chakram', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/12.png', + }, + { + name: 'Razer Naga X', + color: '100, 101, 102', + dpi: 16000, + buttons: 16, + weight: '85g', + wireless: false, + price: 79.99, + description: 'Razer Naga X', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/13.png', + }, + { + name: 'Mad Catz R.A.T. 8+', + color: '136, 241, 242', + dpi: 16000, + buttons: 11, + weight: '145g', + wireless: false, + price: 99.99, + description: 'Mad Catz R.A.T. 8+', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/14.png', + }, + { + name: 'Alienware 610M', + color: '109, 110, 114', + dpi: 16000, + buttons: 7, + weight: '120g', + wireless: true, + price: 99.99, + description: 'Alienware 610M', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/15.png', }, ] + + function onClickSeeAll () { + itemsPerPage.value = itemsPerPage.value === 4 ? mice.length : 4 + } </script> <script> export default { - data: () => ({ - desserts: [ - { - name: 'Frozen Yogurt', - calories: 159, - fat: 6.0, - carbs: 24, - protein: 4.0, - sodium: 87, - calcium: '14%', - iron: '1%', - }, - { - name: 'Ice cream sandwich', - calories: 237, - fat: 9.0, - carbs: 37, - protein: 4.3, - sodium: 129, - calcium: '8%', - iron: '1%', - }, - { - name: 'Eclair', - calories: 262, - fat: 16.0, - carbs: 23, - protein: 6.0, - sodium: 337, - calcium: '6%', - iron: '7%', - }, - { - name: 'Cupcake', - calories: 305, - fat: 3.7, - carbs: 67, - protein: 4.3, - sodium: 413, - calcium: '3%', - iron: '8%', - }, - { - name: 'Gingerbread', - calories: 356, - fat: 16.0, - carbs: 49, - protein: 3.9, - sodium: 327, - calcium: '7%', - iron: '16%', - }, - { - name: 'Jelly bean', - calories: 375, - fat: 0.0, - carbs: 94, - protein: 0.0, - sodium: 50, - calcium: '0%', - iron: '0%', - }, - { - name: 'Lollipop', - calories: 392, - fat: 0.2, - carbs: 98, - protein: 0, - sodium: 38, - calcium: '0%', - iron: '2%', - }, - { - name: 'Honeycomb', - calories: 408, - fat: 3.2, - carbs: 87, - protein: 6.5, - sodium: 562, - calcium: '0%', - iron: '45%', - }, - { - name: 'Donut', - calories: 452, - fat: 25.0, - carbs: 51, - protein: 4.9, - sodium: 326, - calcium: '2%', - iron: '22%', - }, - { - name: 'KitKat', - calories: 518, - fat: 26.0, - carbs: 65, - protein: 7, - sodium: 54, - calcium: '12%', - iron: '6%', - }, - ], - }), + data () { + return { + itemsPerPage: 4, + mice: [ + { + name: 'Logitech G Pro X', + color: '14, 151, 210', + dpi: 16000, + buttons: 8, + weight: '63g', + wireless: true, + price: 149.99, + description: 'Logitech G Pro X', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/1.png', + }, + { + name: 'Razer DeathAdder V2', + color: '12, 146, 47', + dpi: 20000, + buttons: 8, + weight: '82g', + wireless: false, + price: 69.99, + description: 'Razer DeathAdder V2', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/2.png', + }, + { + name: 'Corsair Dark Core RGB', + color: '107, 187, 226', + dpi: 18000, + buttons: 9, + weight: '133g', + wireless: true, + price: 89.99, + description: 'Corsair Dark Core RGB', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/3.png', + }, + { + name: 'SteelSeries Rival 3', + color: '228, 196, 69', + dpi: 8500, + buttons: 6, + weight: '77g', + wireless: false, + price: 29.99, + description: 'SteelSeries Rival 3', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/4.png', + }, + { + name: 'HyperX Pulsefire FPS Pro', + color: '156, 82, 251', + dpi: 16000, + buttons: 6, + weight: '95g', + wireless: false, + price: 44.99, + description: 'HyperX Pulsefire FPS Pro', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/5.png', + }, + { + name: 'Zowie EC2', + color: '166, 39, 222', + dpi: 3200, + buttons: 5, + weight: '90g', + wireless: false, + price: 69.99, + description: 'Zowie EC2', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/6.png', + }, + { + name: 'Roccat Kone AIMO', + color: '131, 9, 10', + dpi: 16000, + buttons: 10, + weight: '130g', + wireless: false, + price: 79.99, + description: 'Roccat Kone AIMO', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/7.png', + }, + { + name: 'Logitech G903', + color: '232, 94, 102', + dpi: 12000, + buttons: 11, + weight: '110g', + wireless: true, + price: 129.99, + description: 'Logitech G903', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/8.png', + }, + { + name: 'Cooler Master MM711', + color: '58, 192, 239', + dpi: 16000, + buttons: 6, + weight: '60g', + wireless: false, + price: 49.99, + description: 'Cooler Master MM711', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/9.png', + }, + { + name: 'Glorious Model O', + color: '161, 252, 250', + dpi: 12000, + buttons: 6, + weight: '67g', + wireless: false, + price: 49.99, + description: 'Glorious Model O', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/10.png', + }, + { + name: 'HP Omen Photon', + color: '201, 1, 2', + dpi: 16000, + buttons: 11, + weight: '128g', + wireless: true, + price: 99.99, + description: 'HP Omen Photon', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/11.png', + }, + { + name: 'Asus ROG Chakram', + color: '10, 181, 19', + dpi: 16000, + buttons: 9, + weight: '121g', + wireless: true, + price: 159.99, + description: 'Asus ROG Chakram', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/12.png', + }, + { + name: 'Razer Naga X', + color: '100, 101, 102', + dpi: 16000, + buttons: 16, + weight: '85g', + wireless: false, + price: 79.99, + description: 'Razer Naga X', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/13.png', + }, + { + name: 'Mad Catz R.A.T. 8+', + color: '136, 241, 242', + dpi: 16000, + buttons: 11, + weight: '145g', + wireless: false, + price: 99.99, + description: 'Mad Catz R.A.T. 8+', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/14.png', + }, + { + name: 'Alienware 610M', + color: '109, 110, 114', + dpi: 16000, + buttons: 7, + weight: '120g', + wireless: true, + price: 99.99, + description: 'Alienware 610M', + src: 'https://cdn.vuetifyjs.com/docs/images/graphics/mice/15.png', + }, + ], + } + }, + methods: { + onClickSeeAll () { + this.itemsPerPage = this.itemsPerPage === 4 ? this.mice.length : 4 + }, + }, } </script> diff --git a/packages/docs/src/plugins/icons.ts b/packages/docs/src/plugins/icons.ts index c9dcc511890..34285518f74 100644 --- a/packages/docs/src/plugins/icons.ts +++ b/packages/docs/src/plugins/icons.ts @@ -27,6 +27,7 @@ export { mdiArrowDown, mdiArrowLeft, mdiArrowLeftBoldBoxOutline, + mdiArrowRight, mdiArrowRightBoldBoxOutline, mdiArrowRightThick, mdiArrowUp, @@ -100,6 +101,7 @@ export { mdiCog, mdiCogs, mdiCogOutline, + mdiCookie, mdiComment, mdiCompassOutline, mdiContentCopy, @@ -109,6 +111,7 @@ export { mdiClipboardTextOutline, mdiCrosshairsGps, mdiCrown, + mdiCupcake, mdiDatabaseSearchOutline, mdiDelete, mdiDeleteOutline, @@ -191,6 +194,7 @@ export { mdiHomeOutline, mdiHumanMaleBoard, mdiHumanMaleFemaleChild, + mdiIceCream, mdiImage, mdiImageOutline, mdiImageEdit,
6675b36ab0d866516d289f2553b7e929432a92a6
2019-11-04 05:15:18
Oldřich Malec
docs(snippets): Add missing translation: Sort by (#9558)
false
Add missing translation: Sort by (#9558)
docs
diff --git a/packages/docs/src/snippets/ts/create_translation.txt b/packages/docs/src/snippets/ts/create_translation.txt index 1c72309b963..beac987c0ef 100644 --- a/packages/docs/src/snippets/ts/create_translation.txt +++ b/packages/docs/src/snippets/ts/create_translation.txt @@ -12,6 +12,7 @@ export default { sortAscending: ': Sorted ascending. Activate to sort descending.', sortNone: ': Not sorted. Activate to sort ascending.', }, + sortBy: 'Sort by', }, dataFooter: { itemsPerPageText: 'Items per page:',
b3dfdb30f2a7db90ddd21cb9af015eabc3c6f684
2020-05-17 11:24:27
Dmitry Sharshakov
test(VColorPickerPreview): add tests
false
add tests
test
diff --git a/packages/vuetify/src/components/VColorPicker/__tests__/VColorPickerPreview.spec.ts b/packages/vuetify/src/components/VColorPicker/__tests__/VColorPickerPreview.spec.ts new file mode 100644 index 00000000000..34490e2d06b --- /dev/null +++ b/packages/vuetify/src/components/VColorPicker/__tests__/VColorPickerPreview.spec.ts @@ -0,0 +1,72 @@ +import VColorPickerPreview from '../VColorPickerPreview' +import { + mount, + MountOptions, + Wrapper, +} from '@vue/test-utils' +import { fromRGBA } from '../util' + +describe('VColorPickerPreview.ts', () => { + type Instance = InstanceType<typeof VColorPickerPreview> + let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance> + beforeEach(() => { + mountFunction = (options?: MountOptions<Instance>) => { + return mount(VColorPickerPreview, { + ...options, + mocks: { + $vuetify: { + rtl: false, + }, + }, + }) + } + }) + + it('should emit event when hue changes', async () => { + const warn = console.warn + console.warn = () => {} + + const update = jest.fn() + const wrapper = mountFunction({ + propsData: { + color: fromRGBA({ r: 0, g: 0, b: 0, a: 0 }), + }, + listeners: { + 'update:color': update, + }, + }) + + const slider = wrapper.find('.v-slider__thumb-container') + + slider.trigger('keydown.right') + await wrapper.vm.$nextTick() + expect(update).toHaveBeenCalledTimes(1) + expect(update.mock.calls[0][0].hue).toBe(1) + + console.warn = warn + }) + + it('should emit event when alpha changes', async () => { + const warn = console.warn + console.warn = () => {} + + const update = jest.fn() + const wrapper = mountFunction({ + propsData: { + color: fromRGBA({ r: 0, g: 0, b: 0, a: 0 }), + }, + listeners: { + 'update:color': update, + }, + }) + + const slider = wrapper.findAll('.v-slider__thumb-container').at(1) + + slider.trigger('keydown.right') + await wrapper.vm.$nextTick() + expect(update).toHaveBeenCalledTimes(1) + expect(update.mock.calls[0][0].alpha).toBe(1) + + console.warn = warn + }) +})
78dee5af045aaa020297fa95798b69d0b18206f6
2018-11-30 03:49:03
John Leider
docs: change order of up-next items
false
change order of up-next items
docs
diff --git a/packages/vuetifyjs.com/src/components/doc/UpNext.vue b/packages/vuetifyjs.com/src/components/doc/UpNext.vue index ef191afe342..05366bad7ed 100644 --- a/packages/vuetifyjs.com/src/components/doc/UpNext.vue +++ b/packages/vuetifyjs.com/src/components/doc/UpNext.vue @@ -19,8 +19,8 @@ :to="link.link" :avatar="link.icon" :avatar-color="link.color" - :text="link.section" - :subtext="link.target" + :text="link.target" + :subtext="link.section" > <v-list-tile-action> <v-icon>mdi-arrow-right</v-icon>
4e8c717119a9bace5c2b3d8e61143731f5382c72
2019-01-07 02:34:55
John Leider
test(VBtn): fix broken tests
false
fix broken tests
test
diff --git a/jest.config.js b/jest.config.js index d1544fdbe79..1fd99aaa808 100644 --- a/jest.config.js +++ b/jest.config.js @@ -15,7 +15,8 @@ module.exports = { moduleNameMapper: { '^@/test$': '<rootDir>/test/index.js', '^@/test/(.*)$': '<rootDir>/test/$1', - '^@/(.*)$': '<rootDir>/src/$1' + '^@/(.*)$': '<rootDir>/src/$1', + '\\.(css|sass|scss)$': 'identity-obj-proxy' }, transform: { '\\.(styl)$': 'jest-css-modules', diff --git a/packages/vuetify/package.json b/packages/vuetify/package.json index 133429d0c90..3b3f2b23025 100644 --- a/packages/vuetify/package.json +++ b/packages/vuetify/package.json @@ -63,6 +63,7 @@ "fork-ts-checker-webpack-plugin": "^0.4.14", "friendly-errors-webpack-plugin": "^1.7.0", "happypack": "^5.0.0", + "identity-obj-proxy": "^3.0.0", "mini-css-extract-plugin": "^0.4.4", "node-sass": "^4.11.0", "optimize-css-assets-webpack-plugin": "^5.0.1", diff --git a/packages/vuetify/src/components/VBtn/VBtn.sass b/packages/vuetify/src/components/VBtn/VBtn.sass index b7bdccc24a5..aec1177e455 100644 --- a/packages/vuetify/src/components/VBtn/VBtn.sass +++ b/packages/vuetify/src/components/VBtn/VBtn.sass @@ -1,5 +1,5 @@ // Imports -@import '../../styles/styles' +@import '../../styles/styles.sass' // first function, should move to global functions // does a deep map-get diff --git a/packages/vuetify/test/unit/components/VAlert/__snapshots__/VAlert.spec.js.snap b/packages/vuetify/test/unit/components/VAlert/__snapshots__/VAlert.spec.js.snap index 298baf81248..2057d043db2 100644 --- a/packages/vuetify/test/unit/components/VAlert/__snapshots__/VAlert.spec.js.snap +++ b/packages/vuetify/test/unit/components/VAlert/__snapshots__/VAlert.spec.js.snap @@ -21,7 +21,6 @@ exports[`VAlert.vue should be dismissible 1`] = ` <a class="v-alert__dismissible"> <i aria-hidden="true" class="v-icon v-icon--right material-icons theme--light" - style="font-size: 28px;" > cancel </i> @@ -40,7 +39,6 @@ exports[`VAlert.vue should have a close icon 1`] = ` <a class="v-alert__dismissible"> <i aria-hidden="true" class="v-icon v-icon--right material-icons theme--light" - style="font-size: 28px;" > cancel </i> diff --git a/packages/vuetify/test/unit/components/VCheckbox/__snapshots__/VCheckbox.spec.js.snap b/packages/vuetify/test/unit/components/VCheckbox/__snapshots__/VCheckbox.spec.js.snap index 43d14e5d02f..0599d0e1d3c 100644 --- a/packages/vuetify/test/unit/components/VCheckbox/__snapshots__/VCheckbox.spec.js.snap +++ b/packages/vuetify/test/unit/components/VCheckbox/__snapshots__/VCheckbox.spec.js.snap @@ -24,7 +24,6 @@ exports[`VCheckbox.js should render themed component 1`] = ` </div> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > check_box_outline_blank </i> @@ -53,7 +52,6 @@ exports[`VCheckbox.js should use custom icons 1`] = ` </div> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > fizzbuzz </i> @@ -82,7 +80,6 @@ exports[`VCheckbox.js should use custom icons 2`] = ` </div> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > fizzbuzz </i> @@ -111,7 +108,6 @@ exports[`VCheckbox.js should use custom icons 3`] = ` </div> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > fizzbuzz </i> diff --git a/packages/vuetify/test/unit/components/VChip/__snapshots__/VChip.spec.js.snap b/packages/vuetify/test/unit/components/VChip/__snapshots__/VChip.spec.js.snap index 4ae6e41cb3e..01b40141315 100644 --- a/packages/vuetify/test/unit/components/VChip/__snapshots__/VChip.spec.js.snap +++ b/packages/vuetify/test/unit/components/VChip/__snapshots__/VChip.spec.js.snap @@ -9,7 +9,6 @@ exports[`VChip.vue should be removable 1`] = ` <div class="v-chip__close"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > cancel </i> @@ -29,7 +28,6 @@ exports[`VChip.vue should be removable 2`] = ` <div class="v-chip__close"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > cancel </i> diff --git a/packages/vuetify/test/unit/components/VDatePicker/__snapshots__/VDatePickerTitle.spec.js.snap b/packages/vuetify/test/unit/components/VDatePicker/__snapshots__/VDatePickerTitle.spec.js.snap index 890dda67b1c..2ba618a0d4b 100644 --- a/packages/vuetify/test/unit/components/VDatePicker/__snapshots__/VDatePickerTitle.spec.js.snap +++ b/packages/vuetify/test/unit/components/VDatePicker/__snapshots__/VDatePickerTitle.spec.js.snap @@ -66,7 +66,6 @@ exports[`VDatePickerTitle.js should render year icon 1`] = ` 1234 <i aria-hidden="true" class="v-icon material-icons theme--dark" - style="font-size: 28px;" > year </i> diff --git a/packages/vuetify/test/unit/components/VExpansionPanel/__snapshots__/VExpansionPanel.spec.js.snap b/packages/vuetify/test/unit/components/VExpansionPanel/__snapshots__/VExpansionPanel.spec.js.snap index cc26e56d023..1ebe951dc84 100644 --- a/packages/vuetify/test/unit/components/VExpansionPanel/__snapshots__/VExpansionPanel.spec.js.snap +++ b/packages/vuetify/test/unit/components/VExpansionPanel/__snapshots__/VExpansionPanel.spec.js.snap @@ -13,7 +13,6 @@ exports[`VExpansionPanel.js should render an expanded component and match snapsh <div class="v-expansion-panel__header__icon"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > keyboard_arrow_down </i> @@ -43,7 +42,6 @@ exports[`VExpansionPanel.js should render an expanded component and match snapsh <div class="v-expansion-panel__header__icon"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > keyboard_arrow_down </i> @@ -72,7 +70,6 @@ exports[`VExpansionPanel.js should render component and match snapshot 1`] = ` <div class="v-expansion-panel__header__icon"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > keyboard_arrow_down </i> @@ -102,7 +99,6 @@ exports[`VExpansionPanel.js should render component and match snapshot 2`] = ` <div class="v-expansion-panel__header__icon"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > keyboard_arrow_down </i> diff --git a/packages/vuetify/test/unit/components/VExpansionPanel/__snapshots__/VExpansionPanelContent.spec.js.snap b/packages/vuetify/test/unit/components/VExpansionPanel/__snapshots__/VExpansionPanelContent.spec.js.snap index 2af5e5aa338..3e9db75436b 100644 --- a/packages/vuetify/test/unit/components/VExpansionPanel/__snapshots__/VExpansionPanelContent.spec.js.snap +++ b/packages/vuetify/test/unit/components/VExpansionPanel/__snapshots__/VExpansionPanelContent.spec.js.snap @@ -83,7 +83,6 @@ exports[`VExpansionPanelContent.js should toggle panel on header click 1`] = ` <div class="v-expansion-panel__header__icon"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > keyboard_arrow_down </i> diff --git a/packages/vuetify/test/unit/components/VIcon/VIcon.spec.js b/packages/vuetify/test/unit/components/VIcon/VIcon.spec.js index ef778904bd3..6361c50b987 100644 --- a/packages/vuetify/test/unit/components/VIcon/VIcon.spec.js +++ b/packages/vuetify/test/unit/components/VIcon/VIcon.spec.js @@ -36,7 +36,6 @@ test('VIcon.js', ({ mount, compileToFunctions }) => { it('should render a mapped size', () => { const SIZE_MAP = { small: '16px', - medium: '28px', large: '36px', xLarge: '40px' } diff --git a/packages/vuetify/test/unit/components/VIcon/__snapshots__/VIcon.spec.js.snap b/packages/vuetify/test/unit/components/VIcon/__snapshots__/VIcon.spec.js.snap index 2ae48f7dfa8..7b0524f3b06 100644 --- a/packages/vuetify/test/unit/components/VIcon/__snapshots__/VIcon.spec.js.snap +++ b/packages/vuetify/test/unit/components/VIcon/__snapshots__/VIcon.spec.js.snap @@ -4,7 +4,6 @@ exports[`VIcon.js for component icon should render component 1`] = ` <div class="v-icon test-component v-icon--is-component theme--light" aria-hidden="true" - style="font-size: 28px; height: 28px;" > test icon </div> @@ -26,7 +25,6 @@ exports[`VIcon.js for component icon should set font size from helper prop 2`] = <div class="v-icon test-component v-icon--is-component theme--light" aria-hidden="true" - style="font-size: 28px; height: 28px;" > test icon </div> @@ -69,7 +67,6 @@ exports[`VIcon.js set font size from helper prop 2`] = ` <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > </i> diff --git a/packages/vuetify/test/unit/components/VInput/__snapshots__/VInput.spec.js.snap b/packages/vuetify/test/unit/components/VInput/__snapshots__/VInput.spec.js.snap index e67610c540b..d6b98b2686a 100644 --- a/packages/vuetify/test/unit/components/VInput/__snapshots__/VInput.spec.js.snap +++ b/packages/vuetify/test/unit/components/VInput/__snapshots__/VInput.spec.js.snap @@ -7,7 +7,6 @@ exports[`VInput.js should apply theme to label, counter, messages and icons 1`] <div class="v-input__icon v-input__icon--prepend"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > prepend </i> @@ -34,7 +33,6 @@ exports[`VInput.js should apply theme to label, counter, messages and icons 1`] <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > append </i> @@ -81,7 +79,6 @@ exports[`VInput.js should generate an icon and match snapshot 1`] = ` <div class="v-input__icon v-input__icon--prepend"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > list </i> @@ -114,7 +111,6 @@ exports[`VInput.js should generate an icon and match snapshot 2`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > list </i> diff --git a/packages/vuetify/test/unit/components/VList/__snapshots__/VListGroup.spec.js.snap b/packages/vuetify/test/unit/components/VList/__snapshots__/VListGroup.spec.js.snap index 5e9745c80f2..4d30df50d34 100644 --- a/packages/vuetify/test/unit/components/VList/__snapshots__/VListGroup.spec.js.snap +++ b/packages/vuetify/test/unit/components/VList/__snapshots__/VListGroup.spec.js.snap @@ -10,7 +10,6 @@ exports[`VListGroup.js should render a component with no padding for action icon <div class="v-list__group__header__append-icon"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > keyboard_arrow_down </i> @@ -35,7 +34,6 @@ exports[`VListGroup.js should render a component with route namespace and match <div class="v-list__group__header__append-icon"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > keyboard_arrow_down </i> @@ -60,7 +58,6 @@ exports[`VListGroup.js should render a lazy component and match snapshot 1`] = ` <div class="v-list__group__header__append-icon"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > keyboard_arrow_down </i> @@ -85,7 +82,6 @@ exports[`VListGroup.js should render component and match snapshot 1`] = ` <div class="v-list__group__header__append-icon"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > keyboard_arrow_down </i> diff --git a/packages/vuetify/test/unit/components/VOverflowBtn/__snapshots__/VOverflowBtn.spec.js.snap b/packages/vuetify/test/unit/components/VOverflowBtn/__snapshots__/VOverflowBtn.spec.js.snap index 8673dcbfda7..96f1d42e0a4 100644 --- a/packages/vuetify/test/unit/components/VOverflowBtn/__snapshots__/VOverflowBtn.spec.js.snap +++ b/packages/vuetify/test/unit/components/VOverflowBtn/__snapshots__/VOverflowBtn.spec.js.snap @@ -19,7 +19,6 @@ exports[`VOverflowBtn should use default autocomplete selections 1`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -63,7 +62,6 @@ exports[`VOverflowBtn should use default autocomplete selections 2`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> diff --git a/packages/vuetify/test/unit/components/VPagination/__snapshots__/VPagination.spec.js.snap b/packages/vuetify/test/unit/components/VPagination/__snapshots__/VPagination.spec.js.snap index c22bc8bd5d9..0b7f4187fff 100644 --- a/packages/vuetify/test/unit/components/VPagination/__snapshots__/VPagination.spec.js.snap +++ b/packages/vuetify/test/unit/components/VPagination/__snapshots__/VPagination.spec.js.snap @@ -9,7 +9,6 @@ exports[`VPagination.vue emits an event when next or previous is clicked 1`] = ` > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_left </i> @@ -56,7 +55,6 @@ exports[`VPagination.vue emits an event when next or previous is clicked 1`] = ` > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_right </i> @@ -75,7 +73,6 @@ exports[`VPagination.vue should only render end of range if value is equals "rig > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_left </i> @@ -120,7 +117,6 @@ exports[`VPagination.vue should only render end of range if value is equals "rig > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_right </i> @@ -139,7 +135,6 @@ exports[`VPagination.vue should only render middle of range if length is big and > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_left </i> @@ -301,7 +296,6 @@ exports[`VPagination.vue should only render middle of range if length is big and > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_right </i> @@ -320,7 +314,6 @@ exports[`VPagination.vue should only render start and end of range if length is > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_left </i> @@ -484,7 +477,6 @@ exports[`VPagination.vue should only render start and end of range if length is > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_right </i> @@ -503,7 +495,6 @@ exports[`VPagination.vue should only render start of range if value is equals "l > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_left </i> @@ -548,7 +539,6 @@ exports[`VPagination.vue should only render start of range if value is equals "l > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_right </i> @@ -567,7 +557,6 @@ exports[`VPagination.vue should render component in RTL mode and match snapshot > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_right </i> @@ -614,7 +603,6 @@ exports[`VPagination.vue should render component in RTL mode and match snapshot > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_left </i> @@ -633,7 +621,6 @@ exports[`VPagination.vue should render disabled buttons with length equals to 0 > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_left </i> @@ -645,7 +632,6 @@ exports[`VPagination.vue should render disabled buttons with length equals to 0 > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_right </i> @@ -664,7 +650,6 @@ exports[`VPagination.vue should use totalVisible prop if defined 1`] = ` > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_left </i> @@ -742,7 +727,6 @@ exports[`VPagination.vue should use totalVisible prop if defined 1`] = ` > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > chevron_right </i> diff --git a/packages/vuetify/test/unit/components/VRadioGroup/__snapshots__/VRadio.spec.js.snap b/packages/vuetify/test/unit/components/VRadioGroup/__snapshots__/VRadio.spec.js.snap index a4f5c6710eb..b0a18d2db74 100644 --- a/packages/vuetify/test/unit/components/VRadioGroup/__snapshots__/VRadio.spec.js.snap +++ b/packages/vuetify/test/unit/components/VRadioGroup/__snapshots__/VRadio.spec.js.snap @@ -13,7 +13,6 @@ exports[`VRadio.vue should not render aria-label attribute with no label value o </div> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > radio_button_unchecked </i> @@ -41,7 +40,6 @@ exports[`VRadio.vue should render aria-label attribute with label value on input </div> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > radio_button_unchecked </i> @@ -69,7 +67,6 @@ exports[`VRadio.vue should render proper input name 1`] = ` </div> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > radio_button_unchecked </i> @@ -96,7 +93,6 @@ exports[`VRadio.vue should render role and aria-checked attributes on input grou </div> <i aria-hidden="true" class="v-icon material-icons theme--light accent--text" - style="font-size: 28px;" > radio_button_unchecked </i> @@ -122,7 +118,6 @@ exports[`VRadio.vue should render themed component 1`] = ` </div> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > radio_button_unchecked </i> @@ -148,7 +143,6 @@ exports[`VRadio.vue should use custom icons 1`] = ` </div> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > bar </i> @@ -174,7 +168,6 @@ exports[`VRadio.vue should use custom icons 2`] = ` </div> <i aria-hidden="true" class="v-icon material-icons theme--light accent--text" - style="font-size: 28px;" > bar </i> diff --git a/packages/vuetify/test/unit/components/VRadioGroup/__snapshots__/VRadioGroup.spec.js.snap b/packages/vuetify/test/unit/components/VRadioGroup/__snapshots__/VRadioGroup.spec.js.snap index 002d892ed43..0427c7eedad 100644 --- a/packages/vuetify/test/unit/components/VRadioGroup/__snapshots__/VRadioGroup.spec.js.snap +++ b/packages/vuetify/test/unit/components/VRadioGroup/__snapshots__/VRadioGroup.spec.js.snap @@ -21,7 +21,6 @@ exports[`VRadioGroup.vue should be in error when v-radio-group is 1`] = ` </div> <i aria-hidden="true" class="v-icon material-icons theme--light error--text" - style="font-size: 28px;" > radio_button_unchecked </i> @@ -64,7 +63,6 @@ exports[`VRadioGroup.vue should be in error when v-radio-group is 2`] = ` </div> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > radio_button_unchecked </i> diff --git a/packages/vuetify/test/unit/components/VSelect/__snapshots__/VSelect.spec.js.snap b/packages/vuetify/test/unit/components/VSelect/__snapshots__/VSelect.spec.js.snap index 9ddadb43da5..3189f87d469 100644 --- a/packages/vuetify/test/unit/components/VSelect/__snapshots__/VSelect.spec.js.snap +++ b/packages/vuetify/test/unit/components/VSelect/__snapshots__/VSelect.spec.js.snap @@ -30,7 +30,6 @@ exports[`VSelect should only show items if they are in items 1`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -70,7 +69,6 @@ exports[`VSelect should only show items if they are in items 2`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -113,7 +111,6 @@ exports[`VSelect should only show items if they are in items 3`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -159,7 +156,6 @@ exports[`VSelect should only show items if they are in items 4`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -199,7 +195,6 @@ exports[`VSelect should render v-select correctly when not using scope slot 1`] <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -239,7 +234,6 @@ exports[`VSelect should render v-select correctly when not using v-list-tile in <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -284,7 +278,6 @@ exports[`VSelect should render v-select correctly when using v-list-tile in item <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -327,7 +320,6 @@ exports[`VSelect should use scoped slot for selection generation 1`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> diff --git a/packages/vuetify/test/unit/components/VSelect/__snapshots__/VSelect2.spec.js.snap b/packages/vuetify/test/unit/components/VSelect/__snapshots__/VSelect2.spec.js.snap index 291293c555a..e1d88313cfc 100644 --- a/packages/vuetify/test/unit/components/VSelect/__snapshots__/VSelect2.spec.js.snap +++ b/packages/vuetify/test/unit/components/VSelect/__snapshots__/VSelect2.spec.js.snap @@ -22,7 +22,6 @@ exports[`VSelect2 should add color to selected index 1`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -65,7 +64,6 @@ exports[`VSelect2 should be clearable with prop, dirty and multi select 1`] = ` <div class="v-input__icon v-input__icon--clear"> <i aria-hidden="true" class="v-icon v-icon--link material-icons theme--light" - style="font-size: 28px;" > clear </i> @@ -75,7 +73,6 @@ exports[`VSelect2 should be clearable with prop, dirty and multi select 1`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -118,7 +115,6 @@ exports[`VSelect2 should be clearable with prop, dirty and single select 1`] = ` <div class="v-input__icon v-input__icon--clear"> <i aria-hidden="true" class="v-icon v-icon--link material-icons theme--light" - style="font-size: 28px;" > clear </i> @@ -128,7 +124,6 @@ exports[`VSelect2 should be clearable with prop, dirty and single select 1`] = ` <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> diff --git a/packages/vuetify/test/unit/components/VStepper/__snapshots__/VStepperStep.spec.js.snap b/packages/vuetify/test/unit/components/VStepper/__snapshots__/VStepperStep.spec.js.snap index e78fcb9266b..0c53256be94 100644 --- a/packages/vuetify/test/unit/components/VStepper/__snapshots__/VStepperStep.spec.js.snap +++ b/packages/vuetify/test/unit/components/VStepper/__snapshots__/VStepperStep.spec.js.snap @@ -6,7 +6,6 @@ exports[`VStepperStep.js should accept a custom color 1`] = ` <span class="v-stepper__step__step pink"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > check </i> @@ -25,7 +24,6 @@ exports[`VStepperStep.js should accept a custom css color 1`] = ` > <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > check </i> diff --git a/packages/vuetify/test/unit/components/VTextField/__snapshots__/VTextField.spec.js.snap b/packages/vuetify/test/unit/components/VTextField/__snapshots__/VTextField.spec.js.snap index 0d1c83cf7e8..93b97e243d7 100644 --- a/packages/vuetify/test/unit/components/VTextField/__snapshots__/VTextField.spec.js.snap +++ b/packages/vuetify/test/unit/components/VTextField/__snapshots__/VTextField.spec.js.snap @@ -7,7 +7,6 @@ exports[`VTextField.js should apply theme to label, counter, messages and icons <div class="v-input__icon v-input__icon--prepend"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > prepend </i> @@ -19,7 +18,6 @@ exports[`VTextField.js should apply theme to label, counter, messages and icons <div class="v-input__icon v-input__icon--prepend-inner"> <i aria-hidden="true" class="v-icon prepend prepend-inner theme--light" - style="font-size: 28px;" > </i> </div> @@ -39,7 +37,6 @@ exports[`VTextField.js should apply theme to label, counter, messages and icons <div class="v-input__icon v-input__icon--append"> <i aria-hidden="true" class="v-icon material-icons theme--light" - style="font-size: 28px;" > append </i> @@ -63,7 +60,6 @@ exports[`VTextField.js should apply theme to label, counter, messages and icons <div class="v-input__icon v-input__icon--append-outer"> <i aria-hidden="true" class="v-icon append append-outer theme--light" - style="font-size: 28px;" > </i> </div> diff --git a/packages/vuetify/test/unit/components/VTimeline/__snapshots__/VTimelineItem.spec.js.snap b/packages/vuetify/test/unit/components/VTimeline/__snapshots__/VTimelineItem.spec.js.snap index 4dca3674c45..3092cf4b603 100644 --- a/packages/vuetify/test/unit/components/VTimeline/__snapshots__/VTimelineItem.spec.js.snap +++ b/packages/vuetify/test/unit/components/VTimeline/__snapshots__/VTimelineItem.spec.js.snap @@ -23,7 +23,6 @@ exports[`VTimelineItem.js should conditionally render an icon or icon slot 2`] = <div class="v-timeline-item__inner-dot primary"> <i aria-hidden="true" class="v-icon material-icons theme--dark" - style="font-size: 28px;" > foo </i> diff --git a/packages/vuetify/test/unit/components/VTreeview/__snapshots__/VTreeview.spec.js.snap b/packages/vuetify/test/unit/components/VTreeview/__snapshots__/VTreeview.spec.js.snap index f0e6a164f44..428bc436201 100644 --- a/packages/vuetify/test/unit/components/VTreeview/__snapshots__/VTreeview.spec.js.snap +++ b/packages/vuetify/test/unit/components/VTreeview/__snapshots__/VTreeview.spec.js.snap @@ -7,7 +7,6 @@ exports[`VTreeView.ts should load children when expanding 1`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -29,7 +28,6 @@ exports[`VTreeView.ts should load children when expanding 2`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> @@ -62,13 +60,11 @@ exports[`VTreeView.ts should load children when selecting, but not render 1`] = <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> <i aria-hidden="true" class="v-icon v-treeview-node__checkbox v-icon--link material-icons theme--light" - style="font-size: 28px;" > check_box_outline_blank </i> @@ -90,13 +86,11 @@ exports[`VTreeView.ts should load children when selecting, but not render 2`] = <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> <i aria-hidden="true" class="v-icon v-treeview-node__checkbox v-icon--link material-icons theme--light accent--text" - style="font-size: 28px;" > check_box </i> @@ -133,7 +127,6 @@ exports[`VTreeView.ts should open all children when using open-all prop 1`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> @@ -148,7 +141,6 @@ exports[`VTreeView.ts should open all children when using open-all prop 1`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> @@ -192,7 +184,6 @@ exports[`VTreeView.ts should react to open changes 1`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> @@ -207,7 +198,6 @@ exports[`VTreeView.ts should react to open changes 1`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> @@ -251,7 +241,6 @@ exports[`VTreeView.ts should react to open changes 2`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> @@ -266,7 +255,6 @@ exports[`VTreeView.ts should react to open changes 2`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -299,7 +287,6 @@ exports[`VTreeView.ts should react to open changes 3`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> @@ -314,7 +301,6 @@ exports[`VTreeView.ts should react to open changes 3`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> @@ -358,7 +344,6 @@ exports[`VTreeView.ts should react to open changes 4`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -380,7 +365,6 @@ exports[`VTreeView.ts should recalculate tree when loading async children using <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> @@ -479,7 +463,6 @@ exports[`VTreeView.ts should render items 1`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -501,13 +484,11 @@ exports[`VTreeView.ts should select all descendants 1`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> <i aria-hidden="true" class="v-icon v-treeview-node__checkbox v-icon--link material-icons theme--light" - style="font-size: 28px;" > check_box_outline_blank </i> @@ -529,7 +510,6 @@ exports[`VTreeView.ts should show expand icon when children is empty and load-ch <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -550,7 +530,6 @@ exports[`VTreeView.ts should update selection when selected prop changes 1`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> @@ -572,7 +551,6 @@ exports[`VTreeView.ts should update selection when selected prop changes 2`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> @@ -605,7 +583,6 @@ exports[`VTreeView.ts should update selection when selected prop changes 3`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light v-treeview-node__toggle--open" - style="font-size: 28px;" > arrow_drop_down </i> diff --git a/packages/vuetify/test/unit/components/VTreeview/__snapshots__/VTreeviewNode.spec.js.snap b/packages/vuetify/test/unit/components/VTreeview/__snapshots__/VTreeviewNode.spec.js.snap index 56b3197e952..90cbd40b0df 100644 --- a/packages/vuetify/test/unit/components/VTreeview/__snapshots__/VTreeviewNode.spec.js.snap +++ b/packages/vuetify/test/unit/components/VTreeview/__snapshots__/VTreeviewNode.spec.js.snap @@ -19,7 +19,6 @@ exports[`VTreeViewNode.ts should use label slot 1`] = ` <div class="v-treeview-node__root"> <i aria-hidden="true" class="v-icon v-treeview-node__toggle v-icon--link material-icons theme--light" - style="font-size: 28px;" > arrow_drop_down </i> diff --git a/yarn.lock b/yarn.lock index f37af698e00..2248daf55ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7167,6 +7167,11 @@ har-validator@~5.1.0: ajv "^5.3.0" har-schema "^2.0.0" +harmony-reflect@^1.4.6: + version "1.6.1" + resolved "https://registry.yarnpkg.com/harmony-reflect/-/harmony-reflect-1.6.1.tgz#c108d4f2bb451efef7a37861fdbdae72c9bdefa9" + integrity sha512-WJTeyp0JzGtHcuMsi7rw2VwtkvLa+JyfEKJCFyfcS0+CDkjQ5lHPu7zEhFZP+PDSRrEgXa5Ah0l1MbgbE41XjA== + has-ansi@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" @@ -7562,6 +7567,13 @@ icss-utils@^2.1.0: dependencies: postcss "^6.0.1" +identity-obj-proxy@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz#94d2bda96084453ef36fbc5aaec37e0f79f1fc14" + integrity sha1-lNK9qWCERT7zb7xarsN+D3nx/BQ= + dependencies: + harmony-reflect "^1.4.6" + ieee754@^1.1.4: version "1.1.11" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.11.tgz#c16384ffe00f5b7835824e67b6f2bd44a5229455"
0ca7d0dd893ee878c2608c68259a1abd5a1fafbb
2021-11-07 14:41:05
Kael
fix(VDialog): allow scrolling <select multiple> in safari
false
allow scrolling <select multiple> in safari
fix
diff --git a/packages/vuetify/src/mixins/overlayable/index.ts b/packages/vuetify/src/mixins/overlayable/index.ts index 64fd3479d43..e188c6bc402 100644 --- a/packages/vuetify/src/mixins/overlayable/index.ts +++ b/packages/vuetify/src/mixins/overlayable/index.ts @@ -156,7 +156,7 @@ export default Vue.extend<Vue & Toggleable & Stackable & options>().extend({ if (!el || el.nodeType !== Node.ELEMENT_NODE) return false const style = window.getComputedStyle(el) - return ['auto', 'scroll'].includes(style.overflowY!) && el.scrollHeight > el.clientHeight + return (['auto', 'scroll'].includes(style.overflowY!) || el.tagName === 'SELECT') && el.scrollHeight > el.clientHeight }, shouldScroll (el: Element, delta: number): boolean { if (el.hasAttribute('data-app')) return false
a32509d9b13c31a6bde3c5a69fa2c9f8bbf583c9
2019-01-05 20:28:52
John Leider
docs(VBtn): update usage example
false
update usage example
docs
diff --git a/packages/vuetifyjs.com/src/examples/buttons/usage.vue b/packages/vuetifyjs.com/src/examples/buttons/usage.vue index 92445205944..9bbd41ace86 100644 --- a/packages/vuetifyjs.com/src/examples/buttons/usage.vue +++ b/packages/vuetifyjs.com/src/examples/buttons/usage.vue @@ -1,8 +1,97 @@ <template> - <div> - <v-btn color="success">Success</v-btn> - <v-btn color="error">Error</v-btn> - <v-btn color="warning">Warning</v-btn> - <v-btn color="info">Info</v-btn> - </div> + <v-layout + justify-center + wrap + > + <v-btn + v-bind="options" + class="mt-5" + dark + > + <v-icon + v-if="hasIcon" + :left="type.includes('icon-left')" + :right="type.includes('icon-right')" + > + mdi-plus + </v-icon> + <span v-else>{{ text }}</span> + </v-btn> + + <v-flex xs12> + <v-container grid-list-md> + <v-layout wrap> + <v-flex + xs12 + md4 + > + <v-select + :items="sizes" + v-model="size" + label="Size" + ></v-select> + </v-flex> + <v-flex + xs12 + md4 + > + <v-select + :items="colors" + v-model="color" + label="Color" + ></v-select> + </v-flex> + <v-flex + xs12 + md4 + > + <v-select + :items="types" + v-model="type" + label="Type" + multiple + ></v-select> + </v-flex> + </v-layout> + </v-container> + </v-flex> + </v-layout> </template> + +<script> + export default { + data: () => ({ + color: 'primary', + size: 'medium', + sizes: ['x-small', 'small', 'medium', 'large', 'x-large'], + type: [], + types: ['block', 'depressed', 'fab', 'outline', 'round', 'text'], + text: 'Customize me' + }), + + computed: { + hasIcon () { + return Boolean( + this.type.includes('fab') || + this.type.includes('icon-left') || + this.type.includes('icon-right') + ) + }, + options () { + const options = { + color: this.color, + [this.size]: true + } + + if (this.type) { + for (const type of this.type) options[type] = true + } + + return options + }, + colors () { + return Object.keys(this.$vuetify.theme) + } + } + } +</script>
3310920a80bc31858bc9517ed7a43dbe499c6f74
2019-03-08 20:19:20
Alexey Sokolov
fix(ripple): check for undefined el._ripple (#6698)
false
check for undefined el._ripple (#6698)
fix
diff --git a/packages/vuetify/src/directives/ripple.ts b/packages/vuetify/src/directives/ripple.ts index 40301a47bb0..0fbb0e270bd 100644 --- a/packages/vuetify/src/directives/ripple.ts +++ b/packages/vuetify/src/directives/ripple.ts @@ -130,13 +130,13 @@ function isRippleEnabled (value: any): value is true { function rippleShow (e: MouseEvent | TouchEvent) { const value: RippleOptions = {} const element = e.currentTarget as HTMLElement - if (!element || element._ripple!.touched) return + if (!element || !element._ripple || element._ripple.touched) return if (isTouchEvent(e)) { - element._ripple!.touched = true + element._ripple.touched = true } - value.center = element._ripple!.centered - if (element._ripple!.class) { - value.class = element._ripple!.class + value.center = element._ripple.centered + if (element._ripple.class) { + value.class = element._ripple.class } ripple.show(e, element, value) }
a7381aa97c80cdd18b65354048e75397a22e4c36
2020-04-21 09:07:12
John Leider
fix(VFooter): only apply width when not using the inset prop
false
only apply width when not using the inset prop
fix
diff --git a/packages/vuetify/src/components/VFooter/VFooter.sass b/packages/vuetify/src/components/VFooter/VFooter.sass index 5a71df5f8a1..1e9401e58e8 100644 --- a/packages/vuetify/src/components/VFooter/VFooter.sass +++ b/packages/vuetify/src/components/VFooter/VFooter.sass @@ -25,7 +25,11 @@ .v-footer--absolute position: absolute - width: 100% + + &:not(.v-footer--inset) + // Component already uses measurable + // Remove in v3.0 + width: 100% .v-footer--fixed position: fixed
96b3ab314570d1ae7fd7313d54cc49837a251aa0
2020-05-28 04:18:18
Albert Kaaman
refactor: i18n functionality (#7)
false
i18n functionality (#7)
refactor
diff --git a/packages/docs-next/build/pages-plugin.js b/packages/docs-next/build/pages-plugin.js index 3a7cc676849..f313a2e94fe 100644 --- a/packages/docs-next/build/pages-plugin.js +++ b/packages/docs-next/build/pages-plugin.js @@ -12,21 +12,13 @@ function readFile (filePath) { function getPages (files) { return files.reduce((pages, filePath) => { - const { attributes } = frontmatter(readFile(filePath)) + const { body } = frontmatter(readFile(filePath)) + const dir = filePath.replace(/^\.\/src\/pages\/\w+(-\w+)?/, '').replace(/\.\w+$/, '') + const tokens = md.parse(body) + const firstIndex = tokens.findIndex(({ type }) => type === 'heading_open') + const text = tokens[firstIndex + 1].content - if (!attributes.nav) return pages - - const dir = path.dirname(filePath.replace('./src/pages/en', '')) - const file = kebabCase(path.basename(filePath, path.extname(filePath))) - const group = dir.slice(1) - const to = `${dir}/${file}` - // If nav is boolean, get from fm title - const title = typeof attributes.nav === 'boolean' - ? attributes.title - : attributes.nav - - pages[group] = pages[group] || [] - pages[group].push({ title, to }) + pages[dir] = text return pages }, {}) @@ -37,7 +29,7 @@ function getHeadings (files) { const file = readFile(filePath) const { body } = frontmatter(file) - const category = path.dirname(filePath.replace('./src/pages/en/', '')) + const category = path.dirname(filePath.replace(/^\.\/src\/pages\/\w+(-\w+)?\//, '')) const page = kebabCase(path.basename(filePath, path.extname(filePath))) headings[category] = headings[category] || {} @@ -74,33 +66,47 @@ function getPageHeadings (page) { return headings } +function generateFiles () { + const generatedFiles = {} + const langDirectories = glob.sync('./src/pages/*') + + const pages = files => `module.exports = ${JSON.stringify(getPages(files))};` + const headings = files => `module.exports = ${JSON.stringify(getHeadings(files))};` + + for (const langDir of langDirectories) { + const files = glob.sync(`${langDir}/**/*.md`) + const lang = path.basename(langDir) + + generatedFiles[`node_modules/@docs/${lang}/pages.js`] = pages(files) + generatedFiles[`node_modules/@docs/${lang}/headings.js`] = headings(files) + } + + return generatedFiles +} + class Plugin { apply (compiler) { + const files = generateFiles() let shouldWrite = false - const files = glob.sync('./src/pages/en/**/*.md') - const pages = files => `module.exports = ${JSON.stringify(getPages(files))};` - const headings = files => `module.exports = ${JSON.stringify(getHeadings(files))};` - const virtualModules = new VirtualModulesPlugin({ - 'node_modules/@docs/headings.js': headings(files), - 'node_modules/@docs/pages.js': pages(files), - }) + const virtualModules = new VirtualModulesPlugin(files) virtualModules.apply(compiler) compiler.hooks.compilation.tap('PagesPlugin', () => { if (!shouldWrite) return - virtualModules.writeModule('node_modules/@docs/pages.js', pages(files)) - virtualModules.writeModule('node_modules/@docs/headings.js', headings(files)) + for (const [key, value] of Object.entries(generateFiles())) { + virtualModules.writeModule(key, value) + } shouldWrite = false }) - compiler.hooks.watchRun.tap('PagesPlugin', (comp) => { + compiler.hooks.watchRun.tap('PagesPlugin', async (comp) => { const changedTimes = comp.watchFileSystem.watcher.mtimes - const changedFiles = Object.keys(changedTimes) - .filter(file => files.find(f => f.indexOf(path.basename(file)) >= 0)) + const changedFiles = Object.keys(changedTimes).map(filePath => filePath.replace(/\\/g, '/')) + .filter(filePath => filePath.indexOf('src/pages') >= 0) if (changedFiles.length) { shouldWrite = true diff --git a/packages/docs-next/src/components/UpNext.vue b/packages/docs-next/src/components/UpNext.vue index 9f772d34b81..9c2b6e0beff 100644 --- a/packages/docs-next/src/components/UpNext.vue +++ b/packages/docs-next/src/components/UpNext.vue @@ -38,23 +38,26 @@ 'params@page', 'params@lang', ]), - pages: get('app/pages'), + pages: get('i18n/pages'), page: get('route/params@page'), + currentCategory () { + return this.pages && this.pages[this.category] + }, current () { - return this.pages[this.category][this.currentIndex] + return this.currentCategory && this.currentCategory[this.currentIndex] }, currentIndex () { const current = `/${this.category}/${this.page}` - return this.pages[this.category].findIndex(page => { + return this.currentCategory && this.currentCategory.findIndex(page => { return page.to === current }) }, prev () { - return this.pages[this.category][this.currentIndex - 1] + return this.currentCategory && this.currentCategory[this.currentIndex - 1] }, next () { - return this.pages[this.category][this.currentIndex + 1] + return this.currentCategory && this.currentCategory[this.currentIndex + 1] }, }, } diff --git a/packages/docs-next/src/data/pages.json b/packages/docs-next/src/data/pages.json new file mode 100644 index 00000000000..92efeb951e2 --- /dev/null +++ b/packages/docs-next/src/data/pages.json @@ -0,0 +1,22 @@ +[ + { + "title": "getting-started", + "icon": "$mdiSpeedometer", + "items": [ + { + "title": "quick-start" + }, + { + "title": "browser-support" + } + ] + }, + { + "title": "components", + "icon": "$mdiViewDashboard" + }, + { + "title": "api", + "icon": "$mdiBeaker" + } +] diff --git a/packages/docs-next/src/i18n/messages/eo-UY.json b/packages/docs-next/src/i18n/messages/eo-UY.json index ce0ccaca284..87ca9b657fc 100644 --- a/packages/docs-next/src/i18n/messages/eo-UY.json +++ b/packages/docs-next/src/i18n/messages/eo-UY.json @@ -1,3 +1,5 @@ { - "components": "crwdns58546:0crwdne58546:0" + "api": "crwdns59408:0crwdne59408:0", + "components": "crwdns59410:0crwdne59410:0", + "getting-started": "crwdns59412:0crwdne59412:0" } diff --git a/packages/docs-next/src/i18n/messages/sv-SE.json b/packages/docs-next/src/i18n/messages/sv-SE.json index 5522a21d401..fe51488c706 100644 --- a/packages/docs-next/src/i18n/messages/sv-SE.json +++ b/packages/docs-next/src/i18n/messages/sv-SE.json @@ -1,5 +1 @@ -{ - "api": "API", - "components": "Komponenter", - "getting-started": "Komma igång" -} +[] diff --git a/packages/docs-next/src/layouts/default/AppBar.vue b/packages/docs-next/src/layouts/default/AppBar.vue index 8861cfef1bd..fb1f45d7f1e 100644 --- a/packages/docs-next/src/layouts/default/AppBar.vue +++ b/packages/docs-next/src/layouts/default/AppBar.vue @@ -45,7 +45,7 @@ data: () => ({ locales }), computed: { - translating: get('app/translating'), + translating: get('i18n/translating'), }, methods: { @@ -54,14 +54,14 @@ const to = this.$router.resolve({ params: { locale } }) - await this.$router.replace(to.location) - // If we're moving to or from crowdin language, we should // refresh so that jipt script can be loaded or unloaded if ( this.translating || locale === 'eo-UY' - ) window.location.reload() + ) setTimeout(() => this.$router.go(), 250) + + await this.$router.replace(to.location) }, }, } diff --git a/packages/docs-next/src/layouts/default/Drawer.vue b/packages/docs-next/src/layouts/default/Drawer.vue index e0ed02553d3..90aefc425f3 100644 --- a/packages/docs-next/src/layouts/default/Drawer.vue +++ b/packages/docs-next/src/layouts/default/Drawer.vue @@ -7,7 +7,7 @@ <v-list-group v-for="item in items" :key="item.title" - :group="genGroup(item.group)" + :group="item.group" :prepend-icon="item.icon" no-action > @@ -17,15 +17,17 @@ </v-list-item-content> </template> - <v-list-item - v-for="page in pages[item.group]" - :key="page.title" - :to="`/${locale}${page.to}`" - > - <v-list-item-content> - <v-list-item-title v-text="page.title" /> - </v-list-item-content> - </v-list-item> + <template v-if="!!item.items"> + <v-list-item + v-for="subItem in item.items" + :key="subItem.title" + :to="subItem.to" + > + <v-list-item-content> + <v-list-item-title v-text="subItem.title" /> + </v-list-item-content> + </v-list-item> + </template> </v-list-group> </v-list> </v-navigation-drawer> @@ -35,43 +37,42 @@ // Utilities import { get } from 'vuex-pathify' + import pages from '@/data/pages' + export default { name: 'DefaultDrawer', computed: { locale: get('route/params@locale'), - pages: get('app/pages'), + pages: get('i18n/pages'), items () { - return [ - { - title: this.$t('getting-started'), - icon: '$mdiSpeedometer', - group: 'getting-started', - }, - { - title: this.$t('components'), - icon: '$mdiViewDashboard', - group: 'components', - }, - { - title: this.$t('api'), - icon: '$mdiBeaker', - group: 'api', - }, - ] + return pages.map(item => this.genItem(item, '')) }, }, methods: { - genGroup (group) { - return this.pages[group].reduce((group, { to }) => { - // Pages are expected to have a leading slash - const path = to.split('/').slice(1).join('/') - - if (!group.includes(path)) group.push(path) + findItems (group) { + return Object.keys(this.pages).filter(p => p.startsWith(group)).map(p => { + return { + title: this.pages[p], + to: `/${this.$route.params.locale}${p}`, + } + }) + }, + genItem (item, parent) { + const group = `${parent}/${item.title}` - return group - }, []).join('|') + return { + // Try finding title among imported pages, otherwise try translating it + title: this.pages[group] || this.$t(item.title), + icon: item.icon || undefined, + group, + // If there are no defined components, try finding them among imported pages + items: item.items + ? item.items.map(i => this.genItem(i, group)) + : this.findItems(group), + to: `/${this.$route.params.locale}${group}`, + } }, }, } diff --git a/packages/docs-next/src/layouts/default/Toc.vue b/packages/docs-next/src/layouts/default/Toc.vue index c59af2f7528..a400754bede 100644 --- a/packages/docs-next/src/layouts/default/Toc.vue +++ b/packages/docs-next/src/layouts/default/Toc.vue @@ -41,9 +41,9 @@ computed: { category: get('route/params@category'), page: get('route/params@page'), - headings: get('app/headings'), + tocs: get('i18n/tocs'), toc () { - return this.headings[this.category][this.page] + return this.tocs && this.tocs[this.category] && this.tocs[this.category][this.page] }, }, } diff --git a/packages/docs-next/src/layouts/root/Index.vue b/packages/docs-next/src/layouts/root/Index.vue index 3ebd438c313..2358daaf44d 100644 --- a/packages/docs-next/src/layouts/root/Index.vue +++ b/packages/docs-next/src/layouts/root/Index.vue @@ -18,19 +18,18 @@ import 'github-markdown-css/github-markdown.css' // Utilities - import { get } from 'vuex-pathify' - - // Language - import { loadLocale } from '@/plugins/i18n' + import { get, call } from 'vuex-pathify' export default { name: 'RootLayout', computed: { - translating: get('app/translating'), + translating: get('i18n/translating'), }, created () { + this.init() + if (!this.translating) return const crowdin = document.createElement('script') @@ -40,8 +39,13 @@ document.head.appendChild(crowdin) }, - beforeRouteUpdate: (to, _, next) => { - loadLocale(to.params.locale).then(next) + methods: { + init: call('app/init'), + switchLocale: call('i18n/switch'), + }, + + beforeRouteUpdate (to, _, next) { + this.switchLocale({ locale: to.params.locale }).then(next) }, } </script> diff --git a/packages/docs-next/src/pages/en/api/VAlert.md b/packages/docs-next/src/pages/en/api/v-alert.md similarity index 91% rename from packages/docs-next/src/pages/en/api/VAlert.md rename to packages/docs-next/src/pages/en/api/v-alert.md index e7799b8ec20..2ff205d14dc 100644 --- a/packages/docs-next/src/pages/en/api/VAlert.md +++ b/packages/docs-next/src/pages/en/api/v-alert.md @@ -1,12 +1,10 @@ --- layout: documentation -title: V-Alert API description: API for the v-alert component. keywords: v-alert, alerts, api, vue alert component, vuetify alert component -nav: v-alert --- -# V-Alert API +# V-Alert ## Props | Name | Type | Default | Description | diff --git a/packages/docs-next/src/pages/en/components/Alerts.md b/packages/docs-next/src/pages/en/components/alerts.md similarity index 97% rename from packages/docs-next/src/pages/en/components/Alerts.md rename to packages/docs-next/src/pages/en/components/alerts.md index c9539307b50..b5f4765aa15 100644 --- a/packages/docs-next/src/pages/en/components/Alerts.md +++ b/packages/docs-next/src/pages/en/components/alerts.md @@ -1,12 +1,10 @@ --- -title: Alerts layout: documentation description: The v-alert component is used to convey information to the user. Designed to stand out, the alerts come in four contextual styles. keywords: v-alert, alerts, vue alert component, vuetify alert component -nav: true --- -# V-Alert +# Alerts The `v-alert` component is used to convey important information to the user through the use contextual types icons and color. These default types come in in 4 variations: `success`, `info`, `warning`, and `error`. Default icons are assigned which help represent different actions each type portrays. Many parts of an alert such as border, icon, and color can also be customized to fit almost any situation. <carbon-ad /> diff --git a/packages/docs-next/src/pages/ko-KR/getting-started/BrowserSupport.md b/packages/docs-next/src/pages/en/getting-started/browser-support.md similarity index 98% rename from packages/docs-next/src/pages/ko-KR/getting-started/BrowserSupport.md rename to packages/docs-next/src/pages/en/getting-started/browser-support.md index cb77011d0e8..ae8a1b72603 100644 --- a/packages/docs-next/src/pages/ko-KR/getting-started/BrowserSupport.md +++ b/packages/docs-next/src/pages/en/getting-started/browser-support.md @@ -1,8 +1,6 @@ --- -title: Browser support description: Vuetify is a progressive framework that supports all evergreen browsers and IE11 / Safari with polyfill. keywords: vuetify browser support -nav: true --- # Browser support diff --git a/packages/docs-next/src/pages/en/getting-started/QuickStart.md b/packages/docs-next/src/pages/en/getting-started/quick-start.md similarity index 99% rename from packages/docs-next/src/pages/en/getting-started/QuickStart.md rename to packages/docs-next/src/pages/en/getting-started/quick-start.md index d0cb27b3e0d..d8f11e7b78a 100644 --- a/packages/docs-next/src/pages/en/getting-started/QuickStart.md +++ b/packages/docs-next/src/pages/en/getting-started/quick-start.md @@ -1,8 +1,6 @@ --- -title: Quick Start description: Get started with Vue and Vuetify in no time. Support for Vue CLI, Webpack, Nuxt and more. keywords: quick start, vuetify templates, installing vuetify, install vuetify -nav: true --- # Quick start diff --git a/packages/docs-next/src/pages/eo-UY/api/VAlert.md b/packages/docs-next/src/pages/eo-UY/api/VAlert.md deleted file mode 100644 index 042a9872d35..00000000000 --- a/packages/docs-next/src/pages/eo-UY/api/VAlert.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -layout: crwdns58554:0crwdne58554:0 -title: crwdns58556:0crwdne58556:0 -description: crwdns58558:0crwdne58558:0 -keywords: crwdns58560:0crwdne58560:0 -nav: crwdns58562:0crwdne58562:0 ---- - -# crwdns58564:0crwdne58564:0 - -## crwdns58566:0crwdne58566:0 -| crwdns58856:0crwdne58856:0 | crwdns58858:0crwdne58858:0 | crwdns58860:0crwdne58860:0 | crwdns58862:0crwdne58862:0 | -|:-------------------------- |:--------------------------:|:--------------------------:|:----------------------------------------------------- | -| crwdns58864:0crwdne58864:0 | crwdns58866:0crwdne58866:0 | crwdns58868:0crwdne58868:0 | crwdns58870:0crwdne58870:0 crwdns58872:0crwdne58872:0 | - -## crwdns58586:0crwdne58586:0 - -## crwdns58588:0crwdne58588:0 - -## crwdns58590:0crwdne58590:0 - -## crwdns58592:0crwdne58592:0 - -<carbon-ad /> - -<up-next /> - -<vuetify-ad /> - -<contribute /> diff --git a/packages/docs-next/src/pages/eo-UY/api/v-alert.md b/packages/docs-next/src/pages/eo-UY/api/v-alert.md new file mode 100644 index 00000000000..a296acb17bc --- /dev/null +++ b/packages/docs-next/src/pages/eo-UY/api/v-alert.md @@ -0,0 +1,28 @@ +--- +layout: crwdns59122:0crwdne59122:0 +description: crwdns59124:0crwdne59124:0 +keywords: crwdns59126:0crwdne59126:0 +--- + +# crwdns59128:0crwdne59128:0 + +## crwdns59130:0crwdne59130:0 +| crwdns59132:0crwdne59132:0 | crwdns59134:0crwdne59134:0 | crwdns59136:0crwdne59136:0 | crwdns59138:0crwdne59138:0 | +|:-------------------------- |:--------------------------:|:--------------------------:|:----------------------------------------------------- | +| crwdns59140:0crwdne59140:0 | crwdns59142:0crwdne59142:0 | crwdns59144:0crwdne59144:0 | crwdns59146:0crwdne59146:0 crwdns59148:0crwdne59148:0 | + +## crwdns59150:0crwdne59150:0 + +## crwdns59152:0crwdne59152:0 + +## crwdns59154:0crwdne59154:0 + +## crwdns59156:0crwdne59156:0 + +<carbon-ad /> + +<up-next /> + +<vuetify-ad /> + +<contribute /> diff --git a/packages/docs-next/src/pages/eo-UY/components/Alerts.md b/packages/docs-next/src/pages/eo-UY/components/Alerts.md deleted file mode 100644 index 4cc5217c442..00000000000 --- a/packages/docs-next/src/pages/eo-UY/components/Alerts.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: crwdns58594:0crwdne58594:0 -layout: crwdns58596:0crwdne58596:0 -description: crwdns58598:0crwdne58598:0 crwdns58600:0crwdne58600:0 -keywords: crwdns58602:0crwdne58602:0 -nav: crwdns58604:0crwdne58604:0 ---- - -# crwdns58606:0crwdne58606:0 -crwdns58608:0crwdne58608:0 crwdns58610:0crwdne58610:0 crwdns58612:0crwdne58612:0 crwdns58614:0crwdne58614:0 - -<carbon-ad /> - -## crwdns58616:0crwdne58616:0 -crwdns58618:0crwdne58618:0<usage>crwdns58620:0crwdne58620:0</usage> - -## crwdns58622:0crwdne58622:0 -crwdns58624:0crwdne58624:0 - -## crwdns58626:0crwdne58626:0 - -<alert type="warning">crwdns58628:0crwdne58628:0 crwdns58630:0crwdne58630:0</alert> - -## crwdns58632:0crwdne58632:0 -crwdns58634:0crwdne58634:0 - - crwdns58636:0crwdne58636:0 <example>crwdns58638:0crwdne58638:0</example> - -## crwdns58640:0crwdne58640:0 -crwdns58642:0crwdne58642:0 crwdns58644:0crwdne58644:0 crwdns58646:0crwdne58646:0 - -## crwdns58648:0crwdne58648:0 - - -## crwdns58650:0crwdne58650:0 -<up-next /> - -<vuetify-ad /> - -<contribute /> diff --git a/packages/docs-next/src/pages/eo-UY/components/alerts.md b/packages/docs-next/src/pages/eo-UY/components/alerts.md new file mode 100644 index 00000000000..99f6d9afc0e --- /dev/null +++ b/packages/docs-next/src/pages/eo-UY/components/alerts.md @@ -0,0 +1,38 @@ +--- +layout: crwdns59158:0crwdne59158:0 +description: crwdns59160:0crwdne59160:0 crwdns59162:0crwdne59162:0 +keywords: crwdns59164:0crwdne59164:0 +--- + +# crwdns59166:0crwdne59166:0 +crwdns59168:0crwdne59168:0 crwdns59170:0crwdne59170:0 crwdns59172:0crwdne59172:0 crwdns59174:0crwdne59174:0 + +<carbon-ad /> + +## crwdns59176:0crwdne59176:0 +crwdns59178:0crwdne59178:0<usage>crwdns59180:0crwdne59180:0</usage> + +## crwdns59182:0crwdne59182:0 +crwdns59184:0crwdne59184:0 + +## crwdns59186:0crwdne59186:0 + +<alert type="warning">crwdns59188:0crwdne59188:0 crwdns59190:0crwdne59190:0</alert> + +## crwdns59192:0crwdne59192:0 +crwdns59194:0crwdne59194:0 + + crwdns59196:0crwdne59196:0 <example>crwdns59198:0crwdne59198:0</example> + +## crwdns59200:0crwdne59200:0 +crwdns59202:0crwdne59202:0 crwdns59204:0crwdne59204:0 crwdns59206:0crwdne59206:0 + +## crwdns59208:0crwdne59208:0 + + +## crwdns59210:0crwdne59210:0 +<up-next /> + +<vuetify-ad /> + +<contribute /> diff --git a/packages/docs-next/src/pages/eo-UY/getting-started/BrowserSupport.md b/packages/docs-next/src/pages/eo-UY/getting-started/BrowserSupport.md deleted file mode 100644 index a308a101368..00000000000 --- a/packages/docs-next/src/pages/eo-UY/getting-started/BrowserSupport.md +++ /dev/null @@ -1,55 +0,0 @@ ---- -title: crwdns58652:0crwdne58652:0 -description: crwdns58654:0crwdne58654:0 -keywords: crwdns58656:0crwdne58656:0 -nav: crwdns58658:0crwdne58658:0 ---- - -# crwdns58660:0crwdne58660:0 - -crwdns58662:0crwdne58662:0 crwdns58664:0crwdne58664:0 crwdns58666:0crwdne58666:0 - -<carbon-ad /> - -## crwdns58668:0crwdne58668:0 -crwdns58670:0crwdne58670:0 crwdns58672:0crwdne58672:0 crwdns58674:0crwdne58674:0 - -```bash -crwdns58676:0crwdne58676:0 -``` - -crwdns58678:0crwdne58678:0 crwdns58680:0crwdne58680:0 - -```js -crwdns58682:0$mountcrwdne58682:0 -``` - -crwdns58684:0crwdne58684:0 crwdns58686:0crwdne58686:0 - -```bash -crwdns58688:0crwdne58688:0 -``` - -crwdns58690:0crwdne58690:0 - -```json -crwdns58692:0crwdne58692:0 -``` - -```js -crwdns58694:0crwdne58694:0 -``` - -<alert type="info">crwdns58696:0crwdne58696:0 crwdns58698:0crwdne58698:0</alert> - -crwdns58700:0crwdne58700:0 crwdns58702:0crwdne58702:0 crwdns58704:0crwdne58704:0 - -```html -crwdns58706:0{ props.item.name }crwdne58706:0 -``` - -<up-next /> - ---- - -<vuetify-ad /> diff --git a/packages/docs-next/src/pages/eo-UY/getting-started/QuickStart.md b/packages/docs-next/src/pages/eo-UY/getting-started/QuickStart.md deleted file mode 100644 index 6b1b26b63de..00000000000 --- a/packages/docs-next/src/pages/eo-UY/getting-started/QuickStart.md +++ /dev/null @@ -1,146 +0,0 @@ ---- -title: crwdns58708:0crwdne58708:0 -description: crwdns58710:0crwdne58710:0 crwdns58712:0crwdne58712:0 -keywords: crwdns58714:0crwdne58714:0 -nav: crwdns58716:0crwdne58716:0 ---- - -# crwdns58718:0crwdne58718:0 - -crwdns58720:0crwdne58720:0 - -<carbon-ad></carbon-ad> - -## crwdns58722:0crwdne58722:0 - -<alert type="warning">crwdns58724:0crwdne58724:0</alert> - -crwdns58726:0crwdne58726:0 - -```bash -crwdns58728:0crwdne58728:0 -``` - -crwdns58730:0crwdne58730:0 - -```bash -crwdns58732:0crwdne58732:0 -``` - -### crwdns58734:0crwdne58734:0 -crwdns58736:0crwdne58736:0 crwdns58738:0crwdne58738:0 - -```bash -crwdns58740:0crwdne58740:0 -``` - -crwdns58742:0crwdne58742:0 crwdns58744:0crwdne58744:0 crwdns58746:0crwdne58746:0 - -![crwdns58750:0crwdne58750:0](crwdns58748:0crwdne58748:0 "crwdns58752:0crwdne58752:0") - -## crwdns58754:0crwdne58754:0 -crwdns58756:0crwdne58756:0 - -```bash -crwdns58758:0crwdne58758:0 -``` - -crwdns58760:0crwdne58760:0 - - -```js -crwdns58762:0crwdne58762:0 -``` - -crwdns58764:0crwdne58764:0 - -## crwdns58766:0crwdne58766:0 -crwdns58768:0crwdne58768:0 - -```bash -crwdns58770:0crwdne58770:0 -``` - -```bash -crwdns58772:0crwdne58772:0 -``` - -crwdns58774:0crwdne58774:0 crwdns58776:0crwdne58776:0 crwdns58778:0crwdne58778:0 crwdns58780:0crwdne58780:0 - - -```js -crwdns58782:0crwdne58782:0 -``` - -crwdns58784:0crwdne58784:0 - -```js -crwdns58786:0crwdne58786:0 -``` - -crwdns58788:0crwdne58788:0 - -```js -crwdns58790:0crwdne58790:0 -``` - -crwdns58792:0crwdne58792:0 - -```js -crwdns58794:0$mountcrwdne58794:0 -``` - -### crwdns58796:0crwdne58796:0 -crwdns58798:0crwdne58798:0 crwdns58800:0crwdne58800:0 - -```html -crwdns58802:0crwdne58802:0 -``` - -## crwdns58804:0crwdne58804:0 -crwdns58806:0crwdne58806:0 crwdns58808:0crwdne58808:0 crwdns58810:0crwdne58810:0 crwdns58812:0crwdne58812:0 crwdns58814:0crwdne58814:0 - -<alert type="info">crwdns58816:0crwdne58816:0 crwdns58818:0crwdne58818:0</alert> - -```html -crwdns58820:0crwdne58820:0 -``` - -## crwdns58822:0crwdne58822:0 -crwdns58824:0crwdne58824:0 - -```bash -crwdns58826:0crwdne58826:0 -``` - -## crwdns58828:0crwdne58828:0 -crwdns58830:0crwdne58830:0 crwdns58832:0crwdne58832:0 - -```bash -crwdns58834:0crwdne58834:0 -``` - -## crwdns58836:0crwdne58836:0 -crwdns58838:0crwdne58838:0 - -```bash -crwdns58840:0crwdne58840:0 -``` - -## crwdns58842:0crwdne58842:0 -crwdns58844:0crwdne58844:0 - -```bash -crwdns58846:0crwdne58846:0 -``` - -[crwdns58850:0crwdne58850:0 crwdns58852:0crwdne58852:0](crwdns58848:0crwdne58848:0) - -## crwdns58854:0crwdne58854:0 -<related-topics /> - -<up-next /> - -<vuetify-ad /> - -<contribute /> diff --git a/packages/docs-next/src/pages/eo-UY/getting-started/browser-support.md b/packages/docs-next/src/pages/eo-UY/getting-started/browser-support.md new file mode 100644 index 00000000000..89a9decea31 --- /dev/null +++ b/packages/docs-next/src/pages/eo-UY/getting-started/browser-support.md @@ -0,0 +1,53 @@ +--- +description: crwdns59212:0crwdne59212:0 +keywords: crwdns59214:0crwdne59214:0 +--- + +# crwdns59216:0crwdne59216:0 + +crwdns59218:0crwdne59218:0 crwdns59220:0crwdne59220:0 crwdns59222:0crwdne59222:0 + +<carbon-ad /> + +## crwdns59224:0crwdne59224:0 +crwdns59226:0crwdne59226:0 crwdns59228:0crwdne59228:0 crwdns59230:0crwdne59230:0 + +```bash +crwdns59232:0crwdne59232:0 +``` + +crwdns59234:0crwdne59234:0 crwdns59236:0crwdne59236:0 + +```js +crwdns59238:0$mountcrwdne59238:0 +``` + +crwdns59240:0crwdne59240:0 crwdns59242:0crwdne59242:0 + +```bash +crwdns59244:0crwdne59244:0 +``` + +crwdns59246:0crwdne59246:0 + +```json +crwdns59248:0crwdne59248:0 +``` + +```js +crwdns59250:0crwdne59250:0 +``` + +<alert type="info">crwdns59252:0crwdne59252:0 crwdns59254:0crwdne59254:0</alert> + +crwdns59256:0crwdne59256:0 crwdns59258:0crwdne59258:0 crwdns59260:0crwdne59260:0 + +```html +crwdns59262:0{ props.item.name }crwdne59262:0 +``` + +<up-next /> + +--- + +<vuetify-ad /> diff --git a/packages/docs-next/src/pages/eo-UY/getting-started/quick-start.md b/packages/docs-next/src/pages/eo-UY/getting-started/quick-start.md new file mode 100644 index 00000000000..9199abe6b0b --- /dev/null +++ b/packages/docs-next/src/pages/eo-UY/getting-started/quick-start.md @@ -0,0 +1,144 @@ +--- +description: crwdns59264:0crwdne59264:0 crwdns59266:0crwdne59266:0 +keywords: crwdns59268:0crwdne59268:0 +--- + +# crwdns59270:0crwdne59270:0 + +crwdns59272:0crwdne59272:0 + +<carbon-ad></carbon-ad> + +## crwdns59274:0crwdne59274:0 + +<alert type="warning">crwdns59276:0crwdne59276:0</alert> + +crwdns59278:0crwdne59278:0 + +```bash +crwdns59280:0crwdne59280:0 +``` + +crwdns59282:0crwdne59282:0 + +```bash +crwdns59284:0crwdne59284:0 +``` + +### crwdns59286:0crwdne59286:0 +crwdns59288:0crwdne59288:0 crwdns59290:0crwdne59290:0 + +```bash +crwdns59292:0crwdne59292:0 +``` + +crwdns59294:0crwdne59294:0 crwdns59296:0crwdne59296:0 crwdns59298:0crwdne59298:0 + +![crwdns59302:0crwdne59302:0](crwdns59300:0crwdne59300:0 "crwdns59304:0crwdne59304:0") + +## crwdns59306:0crwdne59306:0 +crwdns59308:0crwdne59308:0 + +```bash +crwdns59310:0crwdne59310:0 +``` + +crwdns59312:0crwdne59312:0 + + +```js +crwdns59314:0crwdne59314:0 +``` + +crwdns59316:0crwdne59316:0 + +## crwdns59318:0crwdne59318:0 +crwdns59320:0crwdne59320:0 + +```bash +crwdns59322:0crwdne59322:0 +``` + +```bash +crwdns59324:0crwdne59324:0 +``` + +crwdns59326:0crwdne59326:0 crwdns59328:0crwdne59328:0 crwdns59330:0crwdne59330:0 crwdns59332:0crwdne59332:0 + + +```js +crwdns59334:0crwdne59334:0 +``` + +crwdns59336:0crwdne59336:0 + +```js +crwdns59338:0crwdne59338:0 +``` + +crwdns59340:0crwdne59340:0 + +```js +crwdns59342:0crwdne59342:0 +``` + +crwdns59344:0crwdne59344:0 + +```js +crwdns59346:0$mountcrwdne59346:0 +``` + +### crwdns59348:0crwdne59348:0 +crwdns59350:0crwdne59350:0 crwdns59352:0crwdne59352:0 + +```html +crwdns59354:0crwdne59354:0 +``` + +## crwdns59356:0crwdne59356:0 +crwdns59358:0crwdne59358:0 crwdns59360:0crwdne59360:0 crwdns59362:0crwdne59362:0 crwdns59364:0crwdne59364:0 crwdns59366:0crwdne59366:0 + +<alert type="info">crwdns59368:0crwdne59368:0 crwdns59370:0crwdne59370:0</alert> + +```html +crwdns59372:0crwdne59372:0 +``` + +## crwdns59374:0crwdne59374:0 +crwdns59376:0crwdne59376:0 + +```bash +crwdns59378:0crwdne59378:0 +``` + +## crwdns59380:0crwdne59380:0 +crwdns59382:0crwdne59382:0 crwdns59384:0crwdne59384:0 + +```bash +crwdns59386:0crwdne59386:0 +``` + +## crwdns59388:0crwdne59388:0 +crwdns59390:0crwdne59390:0 + +```bash +crwdns59392:0crwdne59392:0 +``` + +## crwdns59394:0crwdne59394:0 +crwdns59396:0crwdne59396:0 + +```bash +crwdns59398:0crwdne59398:0 +``` + +[crwdns59402:0crwdne59402:0 crwdns59404:0crwdne59404:0](crwdns59400:0crwdne59400:0) + +## crwdns59406:0crwdne59406:0 +<related-topics /> + +<up-next /> + +<vuetify-ad /> + +<contribute /> diff --git a/packages/docs-next/src/pages/ko-KR/api/VAlert.md b/packages/docs-next/src/pages/ko-KR/api/VAlert.md deleted file mode 100644 index 828bbc879cf..00000000000 --- a/packages/docs-next/src/pages/ko-KR/api/VAlert.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -layout: documentation -title: V-Alert API -description: API for the v-alert component. -keywords: v-alert, alerts, api, vue alert component, vuetify alert component -nav: v-alert ---- - -# V-Alert API - -## Props -<api-table> -| 이름 | 타입 | 디폴트 | 설명 | -|:------ |:------:|:---------:|:-------------------------------------------------------------------------------------- | -| border | string | undefined | Puts a border on the alert. Accepts **top** \| **right** \| **bottom** \| **left**. | - -## 슬롯 - -## Events - -## Functions - -## SASS Variables - -<carbon-ad /> - -<up-next /> - -<vuetify-ad /> - -<contribute /> diff --git a/packages/docs-next/src/pages/ko-KR/components/Alerts.md b/packages/docs-next/src/pages/ko-KR/components/Alerts.md deleted file mode 100644 index 621274e2257..00000000000 --- a/packages/docs-next/src/pages/ko-KR/components/Alerts.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 경고창 (Alerts) -layout: documentation -description: The v-alert component is used to convey information to the user. Designed to stand out, the alerts come in four contextual styles. -keywords: v-alert, alerts, vue alert component, vuetify alert component -nav: true ---- - -# V-Alert -The `v-alert` component is used to convey important information to the user through the use contextual types icons and color. These default types come in in 4 variations: `success`, `info`, `warning`, and `error`. Default icons are assigned which help represent different actions each type portrays. Many parts of an alert such as border, icon, and color can also be customized to fit almost any situation. - -<carbon-ad /> - -## Usage -Alerts in their simplest form are a flat sheets of paper that display a message.<usage>v-alert</usage> - -## Sub-Components -None - -## Caveats - -<alert type="warning">I'm an alert. Fear My Alertness!</alert> - -## Examples -간단한 예재부터 복잡한 예제까지 아래를 참고해서 앱 개발을 시작해 보세요. - - ### Type Lorem ipsum <example>v-alert.type</example> - -## Accessibility -By default, v-alert components are assigned the WAI-ARIA role of alert which denotes that the alert "is a live region with important and usually time-sensitive, information." When using the dismissible prop the close icon will receive a corresponding aria-label. This value can be modified by changing either the close-label prop or globally through customizing the Internationalization's default value for the close property. - -## API - - -## Up Next -<up-next /> - -<vuetify-ad /> - -<contribute /> diff --git a/packages/docs-next/src/pages/ko-KR/getting-started/QuickStart.md b/packages/docs-next/src/pages/ko-KR/getting-started/QuickStart.md deleted file mode 100644 index b24bd91a04c..00000000000 --- a/packages/docs-next/src/pages/ko-KR/getting-started/QuickStart.md +++ /dev/null @@ -1,270 +0,0 @@ ---- -title: Quick Start -description: Get started with Vue and Vuetify in no time. Support for Vue CLI, Webpack, Nuxt and more. -keywords: quick start, vuetify templates, get started -nav: true ---- - -# 빠른 시작 - -Get started with Vuetify, the world’s most popular Vue.js framework for building feature rich, blazing fast application. - -<carbon-ad></carbon-ad> - -## Vue CLI Install - -<alert type="warning">For information on how to use Vue CLI, visit the [official documentation]().</alert> - -If you have not already created a new Vue.js project using **Vue CLI**, you can do so by typing: - -```bash -vue create my-app -# navigate to new project directory -cd my-app -``` - -Now that you have an instantiated project, you can add the Vuetify [Vue CLI package]() using the cli. - -```bash -vue add vuetify -``` - -### Vue UI install -Vuetify can also be installed using **Vue UI**, the new visual application for Vue CLI. Ensure that you have the latest version of Vue CLI installed, then from your terminal type: - -```bash -# ensure Vue CLI is >= 3.0 -vue --version - -# Then start the UI -vue ui -``` - -This will start the Vue User Interface and open a [new window]() in your browser. On the left side of your screen, click on **Plugins**. Once navigated, search for Vuetify in the input field. - -![Vuetify 플러그인 설치하기](https://cdn.vuetifyjs.com/images/quick-start/vue_ui.png "Vue UI Vuetify Plugin") - -## Nuxt install -Vuetify can be added by installing the Nuxt Vuetify module. - -```bash -yarn add @nuxtjs/vuetify -D -# OR -npm install @nuxtjs/vuetify -D -``` - -Once installed, update your nuxt.config.js file to include the Vuetify module in the build. - - -```js -// nuxt.config.js -{ - buildModules: [ - // Simple usage - '@nuxtjs/vuetify', - - // With options - ['@nuxtjs/vuetify', { /* module options */ }] - ] -} -``` - -More information on installing Nuxt can be found on the official documentation. - -## Webpack install -Vuetify 를 Webpack 프로젝트에 추가하기 위해선 몇가지 의존성들을 추가해야 합니다. - -```bash -yarn add vuetify -# OR -npm install vuetify -``` - -```bash -yarn add sass sass-loader fibers deepmerge -D -# OR -npm install sass sass-loader fibers deepmerge -D -``` - -Once installed, locate your webpack.config.js file and copy the snippet below into the rules array. If you have an existing sass rule configured, you may need to apply some or all of the changes below. If you are you looking to utilize the vuetify-loader for treeshaking, ensure that you are on version >=4 of Webpack. You can find more information on setting it up with webpack on the A-la-carte page. - - -```js -// webpack.config.js - -module.exports = { - rules: [ - { - test: /\.s(c|a)ss$/, - use: [ - 'vue-style-loader', - 'css-loader', - { - loader: 'sass-loader', - // Requires sass-loader@^7.0.0 - options: { - implementation: require('sass'), - fiber: require('fibers'), - indentedSyntax: true // optional - }, - // Requires sass-loader@^8.0.0 - options: { - implementation: require('sass'), - sassOptions: { - fiber: require('fibers'), - indentedSyntax: true // optional - }, - }, - }, - ], - }, - ], -} -``` - -Create a plugin file for Vuetify, src/plugins/vuetify.js with the below content: - -```js -// src/plugins/vuetify.js - -import Vue from 'vue' -import Vuetify from 'vuetify' -import 'vuetify/dist/vuetify.min.css' - -Vue.use(Vuetify) - -const opts = {} - -export default new Vuetify(opts) -``` - -If using vuetify-loader use the content below: - -```js -// src/plugins/vuetify.js - -import Vue from 'vue' -import Vuetify from 'vuetify/lib' - -Vue.use(Vuetify) - -const opts = {} - -export default new Vuetify(opts) -``` - -설정된 Main Entry Point(보통 `src/main. js`) 로 이동하여 Vuetify object를 Vue 인스턴스에 옵션으로 추가 하세요. - -```js -// src/main.js - -import Vue from 'vue' -import vuetify from '@/plugins/vuetify' // path to vuetify export - -new Vue({ - vuetify, -}).$mount('#app') -``` - -### Font installation -Vuetify uses Google's Roboto font and Material Design Icons. The simplest way to install these are to include their CDN's in your main index.html. - -```html -<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> -<link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet"> -``` - -## CDN usage -To test using Vuetify.js without installing a template from Vue CLI, copy the code below into your index.html. This will pull the latest version of Vue and Vuetify, allowing you to start playing with components. You can also use the Vuetify starter on codepen. While not recommended, if you need to utilize the cdn packages in a production environment, it is recommended that you scope the versions of your assets. For more information on how to do this, navigate to the jsdelivr website. - -<alert type="info">In order for your application to work properly, you must wrap it in a v-app component. See the Application component page for more information.</alert> - -```html -<!DOCTYPE html> -<html> -<head> - <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> - <link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet"> - <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css" rel="stylesheet"> - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> -</head> -<body> - <div id="app"> - <v-app> - <v-content> - <v-container>Hello world</v-container> - </v-content> - </v-app> - </div> - - <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script> - <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.js"></script> - <script> - new Vue({ - el: '#app', - vuetify: new Vuetify(), - }) - </script> -</body> -</html> -``` - -## Usage with Electron -To use Vuetify with Electron, add the electron-builder plugin via Vue CLI. - -```bash -# Install -vue add electron-builder - -# Usage -yarn electron:build -yarn electron:serve -``` - -## Usage with PWA -If you are creating a new app with Vue CLI, you have the option to select Progressive Web App (PWA) Support in the first prompt after initiating vue create my-app. This package can also be installed into existing Vue CLI projects by entering the following command: - -```bash -vue add pwa -``` - -## Usage with Cordova -To use Vuetify with Cordova, add the Cordova plugin via Vue CLI: - -```bash -# If cordova is not already installed -yarn global add cordova - -# Install -vue add cordova - -# Usage -yarn cordova-serve-android # Development Android -yarn cordova-build-android # Build Android -yarn cordova-serve-ios # Development IOS -yarn cordova-build-ios # Build IOS -yarn cordova-serve-browser # Development Browser -yarn cordova-build-browser # Build Browser -``` - -## Usage with Capacitor -To use Vuetify with **Capacitor**, add the [Capacitor]() plugin via Vue CLI: - -```bash -# Install -$ vue add @nklayman/capacitor - -# Usage -$ yarn capacitor:serve -``` - -[Looking for Web Developer jobs? Try Jooble](https://jooble.org/jobs-web-developer) - -## Related Topics -<related-topics /> - -<up-next /> - -<vuetify-ad /> - -<contribute /> diff --git a/packages/docs-next/src/pages/sv-SE/api/VAlert.md b/packages/docs-next/src/pages/sv-SE/api/v-alert.md similarity index 93% rename from packages/docs-next/src/pages/sv-SE/api/VAlert.md rename to packages/docs-next/src/pages/sv-SE/api/v-alert.md index da4f0d98fd6..ca227bd9b1e 100644 --- a/packages/docs-next/src/pages/sv-SE/api/VAlert.md +++ b/packages/docs-next/src/pages/sv-SE/api/v-alert.md @@ -1,11 +1,10 @@ --- layout: documentation -title: V-Alert API description: API for the v-alert component. keywords: v-alert, alerts, api, vue alert component, vuetify alert component --- -# V-Alert API +# V-Alert ## Props | Name | Type | Default | Description | @@ -22,7 +21,6 @@ keywords: v-alert, alerts, api, vue alert component, vuetify alert component <carbon-ad /> -## Up Next <up-next /> <vuetify-ad /> diff --git a/packages/docs-next/src/pages/sv-SE/components/Alerts.md b/packages/docs-next/src/pages/sv-SE/components/alerts.md similarity index 94% rename from packages/docs-next/src/pages/sv-SE/components/Alerts.md rename to packages/docs-next/src/pages/sv-SE/components/alerts.md index a13e55db352..584161735c5 100644 --- a/packages/docs-next/src/pages/sv-SE/components/Alerts.md +++ b/packages/docs-next/src/pages/sv-SE/components/alerts.md @@ -1,12 +1,10 @@ --- layout: documentation -title: V-Alert description: The v-alert component is used to convey information to the user. Designed to stand out, the alerts come in four contextual styles. keywords: v-alert, alerts, vue alert component, vuetify alert component -nav: components/alerts --- -# V-Alert +# Alerts The `v-alert` component is used to convey important information to the user through the use contextual types icons and color. These default types come in in 4 variations: `success`, `info`, `warning`, and `error`. Default icons are assigned which help represent different actions each type portrays. Many parts of an alert such as border, icon, and color can also be customized to fit almost any situation. <carbon-ad /> @@ -18,7 +16,8 @@ Alerts in their simplest form are a flat sheets of paper that display a message. None ## Caveats -> warning I'm an alert. Fear My Alertness! + +<alert type="warning">I'm an alert. Fear My Alertness!</alert> ## Examples Below is a collection of simple to complex examples. diff --git a/packages/docs-next/src/pages/en/getting-started/BrowserSupport.md b/packages/docs-next/src/pages/sv-SE/getting-started/browser-support.md similarity index 98% rename from packages/docs-next/src/pages/en/getting-started/BrowserSupport.md rename to packages/docs-next/src/pages/sv-SE/getting-started/browser-support.md index cb77011d0e8..ae8a1b72603 100644 --- a/packages/docs-next/src/pages/en/getting-started/BrowserSupport.md +++ b/packages/docs-next/src/pages/sv-SE/getting-started/browser-support.md @@ -1,8 +1,6 @@ --- -title: Browser support description: Vuetify is a progressive framework that supports all evergreen browsers and IE11 / Safari with polyfill. keywords: vuetify browser support -nav: true --- # Browser support diff --git a/packages/docs-next/src/pages/sv-SE/getting-started/QuickStart.md b/packages/docs-next/src/pages/sv-SE/getting-started/quick-start.md similarity index 96% rename from packages/docs-next/src/pages/sv-SE/getting-started/QuickStart.md rename to packages/docs-next/src/pages/sv-SE/getting-started/quick-start.md index 49be4d33e44..004b3152759 100644 --- a/packages/docs-next/src/pages/sv-SE/getting-started/QuickStart.md +++ b/packages/docs-next/src/pages/sv-SE/getting-started/quick-start.md @@ -1,5 +1,4 @@ --- -title: Quick Start description: Get started with Vue and Vuetify in no time. Support for Vue CLI, Webpack, Nuxt and more. keywords: quick start, vuetify templates, installing vuetify, install vuetify --- @@ -11,7 +10,8 @@ Get started with Vuetify, the world’s most popular Vue.js framework for buildi <carbon-ad></carbon-ad> ## Vue CLI Install -> warning For information on how to use Vue CLI, visit the [official documentation](). + +<alert type="warning">For information on how to use Vue CLI, visit the [official documentation]().</alert> If you have not already created a new Vue.js project using **Vue CLI**, you can do so by typing: @@ -174,7 +174,8 @@ Vuetify uses Google's Roboto font and Material Design Icons. The simplest way to ## CDN usage To test using Vuetify.js without installing a template from Vue CLI, copy the code below into your index.html. This will pull the latest version of Vue and Vuetify, allowing you to start playing with components. You can also use the Vuetify starter on codepen. While not recommended, if you need to utilize the cdn packages in a production environment, it is recommended that you scope the versions of your assets. For more information on how to do this, navigate to the jsdelivr website. -> info In order for your application to work properly, you must wrap it in a v-app component. See the Application component page for more information. + +<alert type="info">In order for your application to work properly, you must wrap it in a v-app component. See the Application component page for more information.</alert> ```html <!DOCTYPE html> @@ -260,7 +261,6 @@ $ yarn capacitor:serve ## Related Topics <related-topics /> -## Up Next <up-next /> <vuetify-ad /> diff --git a/packages/docs-next/src/store/index.js b/packages/docs-next/src/store/index.js index 218cbe41469..d73b77e4c51 100644 --- a/packages/docs-next/src/store/index.js +++ b/packages/docs-next/src/store/index.js @@ -14,7 +14,5 @@ export function createStore () { plugins: [pathify.plugin], }) - store.dispatch('app/init') - return store } diff --git a/packages/docs-next/src/store/modules/app.js b/packages/docs-next/src/store/modules/app.js index 37381eafafa..445c393594c 100644 --- a/packages/docs-next/src/store/modules/app.js +++ b/packages/docs-next/src/store/modules/app.js @@ -1,26 +1,18 @@ // Pathify import { make } from 'vuex-pathify' -import headings from '@docs/headings' -import pages from '@docs/pages' -const state = { - headings, - pages, -} +const state = {} const mutations = make.mutations(state) const actions = { - init: ({ dispatch }) => { + init: ({ dispatch, rootState }) => { dispatch('ads/fetch', null, { root: true }) + dispatch('i18n/switch', { locale: rootState.route.params.locale }, { root: true }) }, } -const getters = { - translating: (state, getters, rootState) => { - return rootState.route.params.locale === 'eo-UY' - }, -} +const getters = {} export default { namespaced: true, diff --git a/packages/docs-next/src/store/modules/i18n.js b/packages/docs-next/src/store/modules/i18n.js new file mode 100644 index 00000000000..5a4186c2986 --- /dev/null +++ b/packages/docs-next/src/store/modules/i18n.js @@ -0,0 +1,48 @@ +// Pathify +import { make } from 'vuex-pathify' + +// Language +import { loadLocale } from '@/plugins/i18n' + +async function loadHeadings (locale) { + return import( + /* webpackChunkName: "headings" */ + `@docs/${locale}/headings` + ) +} + +async function loadPages (locale) { + return import( + /* webpackChunkName: "nav-items" */ + `@docs/${locale}/pages` + ) +} + +const state = { + tocs: {}, + pages: {}, +} + +const mutations = make.mutations(state) + +const actions = { + switch: async ({ commit }, { locale }) => { + await loadLocale(locale) + commit('tocs', (await loadHeadings(locale)).default) + commit('pages', (await loadPages(locale)).default) + }, +} + +const getters = { + translating: (state, getters, rootState) => { + return rootState.route.params.locale === 'eo-UY' + }, +} + +export default { + namespaced: true, + state, + mutations, + actions, + getters, +} diff --git a/packages/docs-next/src/store/modules/index.js b/packages/docs-next/src/store/modules/index.js index 139934535a6..86d06f304bd 100644 --- a/packages/docs-next/src/store/modules/index.js +++ b/packages/docs-next/src/store/modules/index.js @@ -1,2 +1,3 @@ export { default as ads } from './ads' export { default as app } from './app' +export { default as i18n } from './i18n' diff --git a/packages/docs-next/src/views/Documentation.vue b/packages/docs-next/src/views/Documentation.vue index fc91413bbe6..611b6dd9749 100644 --- a/packages/docs-next/src/views/Documentation.vue +++ b/packages/docs-next/src/views/Documentation.vue @@ -7,14 +7,9 @@ <script> // Utilities import { genMetaData } from '@/util/metadata' - import { - camelCase, - upperFirst, - } from 'lodash' async function load (route) { - const page = upperFirst(camelCase(route.params.page)) - const { category, locale } = route.params + const { category, locale, page } = route.params return import( /* webpackChunkName: "documentation-pages" */
b02a6d9134a5204e872487e8514665c4584cf0e7
2022-11-29 11:39:39
Kael
docs(api): update dark theme row background
false
update dark theme row background
docs
diff --git a/packages/docs/src/components/api/EventsTable.vue b/packages/docs/src/components/api/EventsTable.vue index 3a82891c87a..d95b237b076 100644 --- a/packages/docs/src/components/api/EventsTable.vue +++ b/packages/docs/src/components/api/EventsTable.vue @@ -19,7 +19,7 @@ </thead> <tbody> <template v-for="item in items" :key="item.name"> - <tr class="bg-grey-lighten-4"> + <tr :class="theme.dark ? 'bg-grey-darken-3' : 'bg-grey-lighten-4'"> <NameCell section="exposed" :name="item.name" /> <td> <PrismCell :code="getType(item)" /> @@ -43,6 +43,7 @@ // Utilities import { PropType } from 'vue' + import { useTheme } from 'vuetify' import { getType } from './utils' defineProps({ @@ -52,5 +53,7 @@ }, }) + const { current: theme } = useTheme() + const headers = ['name', 'type'] </script> diff --git a/packages/docs/src/components/api/ExposedTable.vue b/packages/docs/src/components/api/ExposedTable.vue index 485c0ff9fd2..8bea9d0f2cd 100644 --- a/packages/docs/src/components/api/ExposedTable.vue +++ b/packages/docs/src/components/api/ExposedTable.vue @@ -5,7 +5,7 @@ > <tbody> <template v-for="item in items" :key="item.name"> - <tr class="bg-grey-lighten-4"> + <tr :class="theme.dark ? 'bg-grey-darken-3' : 'bg-grey-lighten-4'"> <NameCell section="props" :name="item.name" /> </tr> <tr> @@ -29,6 +29,7 @@ // Utilities import { getType } from './utils' import { PropType } from 'vue' + import { useTheme } from 'vuetify' defineProps({ items: { @@ -36,4 +37,6 @@ default: () => [], }, }) + + const { current: theme } = useTheme() </script> diff --git a/packages/docs/src/components/api/PropsTable.vue b/packages/docs/src/components/api/PropsTable.vue index 1d03c91aea1..ce4015db741 100644 --- a/packages/docs/src/components/api/PropsTable.vue +++ b/packages/docs/src/components/api/PropsTable.vue @@ -19,7 +19,7 @@ </thead> <tbody> <template v-for="item in items" :key="item.name"> - <tr class="bg-grey-lighten-4"> + <tr :class="theme.dark ? 'bg-grey-darken-3' : 'bg-grey-lighten-4'"> <NameCell section="props" :name="kebabCase(item.name)" /> <td> <PrismCell :code="getType(item)" /> @@ -51,6 +51,7 @@ import { getType } from './utils' import { kebabCase } from 'lodash-es' import { PropType } from 'vue' + import { useTheme } from 'vuetify' defineProps({ items: { @@ -59,6 +60,8 @@ }, }) + const { current: theme } = useTheme() + const DEV = import.meta.env.DEV const headers = ['name', 'type', 'default'] </script> diff --git a/packages/docs/src/components/api/SassTable.vue b/packages/docs/src/components/api/SassTable.vue index 553856f2044..df36738fc24 100644 --- a/packages/docs/src/components/api/SassTable.vue +++ b/packages/docs/src/components/api/SassTable.vue @@ -19,7 +19,7 @@ </thead> <tbody> <template v-for="item in items" :key="item.name"> - <tr class="bg-grey-lighten-4"> + <tr :class="theme.dark ? 'bg-grey-darken-3' : 'bg-grey-lighten-4'"> <NameCell section="props" :name="kebabCase(item.name)" /> <td> <PrismCell :code="item.default" language="scss" /> @@ -39,6 +39,7 @@ // Utilities import { kebabCase } from 'lodash-es' import { PropType } from 'vue' + import { useTheme } from 'vuetify' defineProps({ items: { @@ -47,5 +48,7 @@ }, }) + const { current: theme } = useTheme() + const headers = ['name', 'default'] </script> diff --git a/packages/docs/src/components/api/SlotsTable.vue b/packages/docs/src/components/api/SlotsTable.vue index e785b1788f4..ec6168d939b 100644 --- a/packages/docs/src/components/api/SlotsTable.vue +++ b/packages/docs/src/components/api/SlotsTable.vue @@ -5,7 +5,7 @@ > <tbody> <template v-for="item in items" :key="item.name"> - <tr class="bg-grey-lighten-4"> + <tr :class="theme.dark ? 'bg-grey-darken-3' : 'bg-grey-lighten-4'"> <NameCell section="props" :name="item.name" /> </tr> <tr v-if="item.formatted !== 'never'"> @@ -29,6 +29,7 @@ // Utilities import { getType } from './utils' import { PropType } from 'vue' + import { useTheme } from 'vuetify' defineProps({ items: { @@ -36,4 +37,6 @@ default: () => [], }, }) + + const { current: theme } = useTheme() </script>
d31a1a0e1bbf78ba76d8e46280788ab7d2d34653
2024-01-11 02:25:07
John Leider
fix(calendar): use toJsDate before calling getDay
false
use toJsDate before calling getDay
fix
diff --git a/packages/vuetify/src/composables/calendar.ts b/packages/vuetify/src/composables/calendar.ts index 3696ac09c75..5b4d9552c7b 100644 --- a/packages/vuetify/src/composables/calendar.ts +++ b/packages/vuetify/src/composables/calendar.ts @@ -113,7 +113,7 @@ export function useCalendar (props: CalendarProps) { function genDays (days: Date[], today: Date) { return days.filter(date => { - return props.weekdays.includes(date.getDay()) + return props.weekdays.includes(adapter.toJsDate(date).getDay()) }).map((date, index) => { const isoDate = adapter.toISO(date) const isAdjacent = !adapter.isSameMonth(date, month.value)
9ac9e17eeb6eaa5e7347af5917ff91745de6d16a
2022-12-28 19:04:18
Kael
fix(VRadioGroup): correct aria attributes, force checked when readonly
false
correct aria attributes, force checked when readonly
fix
diff --git a/packages/vuetify/src/components/VRadioGroup/VRadioGroup.tsx b/packages/vuetify/src/components/VRadioGroup/VRadioGroup.tsx index 9343558fd92..ba9b1a113dc 100644 --- a/packages/vuetify/src/components/VRadioGroup/VRadioGroup.tsx +++ b/packages/vuetify/src/components/VRadioGroup/VRadioGroup.tsx @@ -83,7 +83,7 @@ export const VRadioGroup = defineComponent({ }) => ( <> { label && ( - <VLabel for={ id.value }> + <VLabel id={ id.value }> { label } </VLabel> ) } @@ -97,6 +97,7 @@ export const VRadioGroup = defineComponent({ type={ props.type } disabled={ isDisabled.value } readonly={ isReadonly.value } + aria-labelledby={ label ? id.value : undefined } { ...controlAttrs } v-model={ model.value } v-slots={ slots } diff --git a/packages/vuetify/src/components/VSelectionControl/VSelectionControl.tsx b/packages/vuetify/src/components/VSelectionControl/VSelectionControl.tsx index ae2abde8332..8a106eece80 100644 --- a/packages/vuetify/src/components/VSelectionControl/VSelectionControl.tsx +++ b/packages/vuetify/src/components/VSelectionControl/VSelectionControl.tsx @@ -15,7 +15,7 @@ import { useProxiedModel } from '@/composables/proxiedModel' import { useTextColor } from '@/composables/color' // Utilities -import { computed, inject, ref } from 'vue' +import { computed, inject, nextTick, ref } from 'vue' import { filterInputAttrs, genericComponent, @@ -141,6 +141,7 @@ export const VSelectionControl = genericComponent<new <T>() => { setup (props, { attrs, slots }) { const { + group, densityClasses, icon, model, @@ -154,6 +155,12 @@ export const VSelectionControl = genericComponent<new <T>() => { const isFocusVisible = ref(false) const input = ref<HTMLInputElement>() + group?.onForceUpdate(() => { + if (input.value) { + input.value.checked = model.value + } + }) + function onFocus (e: FocusEvent) { isFocused.value = true if ( @@ -170,6 +177,9 @@ export const VSelectionControl = genericComponent<new <T>() => { } function onInput (e: Event) { + if (props.readonly && group) { + nextTick(() => group.forceUpdate()) + } model.value = (e.target as HTMLInputElement).checked } @@ -227,7 +237,7 @@ export const VSelectionControl = genericComponent<new <T>() => { onBlur={ onBlur } onFocus={ onFocus } onInput={ onInput } - aria-readonly={ props.readonly } + aria-disabled={ props.readonly } type={ props.type } value={ trueValue.value } name={ props.name } diff --git a/packages/vuetify/src/components/VSelectionControlGroup/VSelectionControlGroup.tsx b/packages/vuetify/src/components/VSelectionControlGroup/VSelectionControlGroup.tsx index bf4e8aafb80..5128e096a23 100644 --- a/packages/vuetify/src/components/VSelectionControlGroup/VSelectionControlGroup.tsx +++ b/packages/vuetify/src/components/VSelectionControlGroup/VSelectionControlGroup.tsx @@ -9,7 +9,7 @@ import { provideDefaults } from '@/composables/defaults' import { useProxiedModel } from '@/composables/proxiedModel' // Utilities -import { computed, provide, toRef } from 'vue' +import { computed, onScopeDispose, provide, toRef } from 'vue' import { deepEqual, defineComponent, getUid, propsFactory, useRender } from '@/util' // Types @@ -17,6 +17,8 @@ import type { InjectionKey, PropType, Ref } from 'vue' export interface VSelectionGroupContext { modelValue: Ref<any> + forceUpdate: () => void + onForceUpdate: (fn: () => void) => void } export const VSelectionControlGroupSymbol: InjectionKey<VSelectionGroupContext> = Symbol.for('vuetify:selection-control-group') @@ -72,7 +74,19 @@ export const VSelectionControlGroup = defineComponent({ const id = computed(() => props.id || `v-selection-control-group-${uid}`) const name = computed(() => props.name || id.value) - provide(VSelectionControlGroupSymbol, { modelValue }) + const updateHandlers = new Set<() => void>() + provide(VSelectionControlGroupSymbol, { + modelValue, + forceUpdate: () => { + updateHandlers.forEach(fn => fn()) + }, + onForceUpdate: cb => { + updateHandlers.add(cb) + onScopeDispose(() => { + updateHandlers.delete(cb) + }) + }, + }) provideDefaults({ [props.defaultsTarget]: { @@ -99,7 +113,6 @@ export const VSelectionControlGroup = defineComponent({ 'v-selection-control-group', { 'v-selection-control-group--inline': props.inline }, ]} - aria-labelled-by={ props.type === 'radio' ? id.value : undefined } role={ props.type === 'radio' ? 'radiogroup' : undefined } > { slots.default?.() }
dd613edf09e5f986ca50768b2296e40f9450351e
2019-07-24 22:32:25
Andreas P
docs: rename to Chrome to Chromium (#7970)
false
rename to Chrome to Chromium (#7970)
docs
diff --git a/packages/docs/src/components/getting-started/Browsers.vue b/packages/docs/src/components/getting-started/Browsers.vue index ab879711cfa..b87ec14e9eb 100644 --- a/packages/docs/src/components/getting-started/Browsers.vue +++ b/packages/docs/src/components/getting-started/Browsers.vue @@ -41,7 +41,7 @@ export default { data: () => ({ browsers: [ - { icon: 'google-chrome', title: 'Chrome', supported: true }, + { icon: 'google-chrome', title: 'Chromium (Chrome, Edge Insider)', supported: true }, { icon: 'firefox', title: 'Firefox', supported: true }, { icon: 'edge', title: 'Edge', supported: true }, { icon: 'apple-safari', title: 'Safari 10+', supported: true },
4a597e5a85be32e1fc731a050f6ed37e9549b80b
2020-06-25 21:48:16
Dmitry Sharshakov
docs(VFooter): migrate the page (#39)
false
migrate the page (#39)
docs
diff --git a/packages/docs-next/build/api-gen/locale/en/v-footer.json b/packages/docs-next/build/api-gen/locale/en/v-footer.json index 451ec5cc425..697ddcfe0d9 100644 --- a/packages/docs-next/build/api-gen/locale/en/v-footer.json +++ b/packages/docs-next/build/api-gen/locale/en/v-footer.json @@ -1,7 +1,10 @@ { "props": { - "empty": "" - // add prop lang here + "empty": "", + "absolute": "Mixins.Positionable.props.absolute", + "fixed": "Mixins.Positionable.props.fixed", + "inset": "Positions the toolbar offset from an application `v-navigation-drawer`", + "padless": "Remove all padding from the footer" }, "slots": { "empty": "" diff --git a/packages/docs-next/src/examples/v-footer/misc-company-footer.vue b/packages/docs-next/src/examples/v-footer/misc-company-footer.vue new file mode 100644 index 00000000000..bf0f9a75254 --- /dev/null +++ b/packages/docs-next/src/examples/v-footer/misc-company-footer.vue @@ -0,0 +1,43 @@ +<template> + <v-footer + color="primary lighten-1" + padless + > + <v-row + justify="center" + no-gutters + > + <v-btn + v-for="link in links" + :key="link" + color="white" + text + rounded + class="my-2" + > + {{ link }} + </v-btn> + <v-col + class="primary lighten-2 py-4 text-center white--text" + cols="12" + > + {{ new Date().getFullYear() }} — <strong>Vuetify</strong> + </v-col> + </v-row> + </v-footer> +</template> + +<script> + export default { + data: () => ({ + links: [ + 'Home', + 'About Us', + 'Team', + 'Services', + 'Blog', + 'Contact Us', + ], + }), + } +</script> diff --git a/packages/docs-next/src/examples/v-footer/misc-indigo-footer.vue b/packages/docs-next/src/examples/v-footer/misc-indigo-footer.vue new file mode 100644 index 00000000000..2ffd0a6d5ae --- /dev/null +++ b/packages/docs-next/src/examples/v-footer/misc-indigo-footer.vue @@ -0,0 +1,48 @@ +<template> + <v-footer + dark + padless + > + <v-card + flat + tile + class="indigo lighten-1 white--text text-center" + > + <v-card-text> + <v-btn + v-for="icon in icons" + :key="icon" + class="mx-4 white--text" + icon + > + <v-icon size="24px"> + {{ icon }} + </v-icon> + </v-btn> + </v-card-text> + + <v-card-text class="white--text pt-0"> + Phasellus feugiat arcu sapien, et iaculis ipsum elementum sit amet. Mauris cursus commodo interdum. Praesent ut risus eget metus luctus accumsan id ultrices nunc. Sed at orci sed massa consectetur dignissim a sit amet dui. Duis commodo vitae velit et faucibus. Morbi vehicula lacinia malesuada. Nulla placerat augue vel ipsum ultrices, cursus iaculis dui sollicitudin. Vestibulum eu ipsum vel diam elementum tempor vel ut orci. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. + </v-card-text> + + <v-divider></v-divider> + + <v-card-text class="white--text"> + {{ new Date().getFullYear() }} — <strong>Vuetify</strong> + </v-card-text> + </v-card> + </v-footer> +</template> + +<script> + export default { + data: () => ({ + icons: [ + 'mdi-facebook', + 'mdi-twitter', + 'mdi-linkedin', + 'mdi-instagram', + ], + }), + } +</script> diff --git a/packages/docs-next/src/examples/v-footer/misc-teal-footer.vue b/packages/docs-next/src/examples/v-footer/misc-teal-footer.vue new file mode 100644 index 00000000000..787e6f08205 --- /dev/null +++ b/packages/docs-next/src/examples/v-footer/misc-teal-footer.vue @@ -0,0 +1,47 @@ +<template> + <v-footer + dark + padless + > + <v-card + class="flex" + flat + tile + > + <v-card-title class="teal"> + <strong class="subheading">Get connected with us on social networks!</strong> + + <v-spacer></v-spacer> + + <v-btn + v-for="icon in icons" + :key="icon" + class="mx-4" + dark + icon + > + <v-icon size="24px"> + {{ icon }} + </v-icon> + </v-btn> + </v-card-title> + + <v-card-text class="py-2 white--text text-center"> + {{ new Date().getFullYear() }} — <strong>Vuetify</strong> + </v-card-text> + </v-card> + </v-footer> +</template> + +<script> + export default { + data: () => ({ + icons: [ + 'mdi-facebook', + 'mdi-twitter', + 'mdi-linkedin', + 'mdi-instagram', + ], + }), + } +</script> diff --git a/packages/docs-next/src/examples/v-footer/prop-absolute.vue b/packages/docs-next/src/examples/v-footer/prop-absolute.vue new file mode 100644 index 00000000000..42038c93200 --- /dev/null +++ b/packages/docs-next/src/examples/v-footer/prop-absolute.vue @@ -0,0 +1,15 @@ +<template> + <v-card height="150"> + <v-footer + absolute + class="font-weight-medium" + > + <v-col + class="text-center" + cols="12" + > + {{ new Date().getFullYear() }} — <strong>Vuetify</strong> + </v-col> + </v-footer> + </v-card> +</template> diff --git a/packages/docs-next/src/examples/v-footer/prop-padless.vue b/packages/docs-next/src/examples/v-footer/prop-padless.vue new file mode 100644 index 00000000000..341827eb6a7 --- /dev/null +++ b/packages/docs-next/src/examples/v-footer/prop-padless.vue @@ -0,0 +1,10 @@ +<template> + <v-footer padless> + <v-col + class="text-center" + cols="12" + > + {{ new Date().getFullYear() }} — <strong>Vuetify</strong> + </v-col> + </v-footer> +</template> diff --git a/packages/docs-next/src/examples/v-footer/usage.vue b/packages/docs-next/src/examples/v-footer/usage.vue new file mode 100644 index 00000000000..ca360d91033 --- /dev/null +++ b/packages/docs-next/src/examples/v-footer/usage.vue @@ -0,0 +1,91 @@ +<template> + <v-card height="400px"> + <v-footer + v-bind="localAttrs" + :padless="padless" + > + <v-card + flat + tile + width="100%" + class="red lighten-1 text-center" + > + <v-card-text> + <v-btn + v-for="icon in icons" + :key="icon" + class="mx-4" + icon + > + <v-icon size="24px"> + {{ icon }} + </v-icon> + </v-btn> + </v-card-text> + + <v-divider></v-divider> + + <v-card-text class="white--text"> + {{ new Date().getFullYear() }} — <strong>Vuetify</strong> + </v-card-text> + </v-card> + </v-footer> + + <v-row + align="center" + justify="center" + class="ma-12" + > + <v-col + cols="12" + md="8" + > + <v-select + v-model="variant" + :items="items" + clearable + label="Variant" + ></v-select> + + <v-checkbox + v-model="padless" + hide-details + label="Padless" + ></v-checkbox> + </v-col> + </v-row> + </v-card> +</template> + +<script> + export default { + data: () => ({ + icons: [ + 'mdi-home', + 'mdi-email', + 'mdi-calendar', + 'mdi-delete', + ], + items: [ + 'default', + 'absolute', + 'fixed', + ], + padless: false, + variant: 'default', + }), + computed: { + localAttrs () { + const attrs = {} + + if (this.variant === 'default') { + attrs.absolute = false + attrs.fixed = false + } else { + attrs[this.variant] = true + } + return attrs + }, + }, + } +</script> diff --git a/packages/docs-next/src/pages/en/components/footer.md b/packages/docs-next/src/pages/en/components/footer.md index 1c95e04fe5d..b66fcf55b45 100644 --- a/packages/docs-next/src/pages/en/components/footer.md +++ b/packages/docs-next/src/pages/en/components/footer.md @@ -3,77 +3,62 @@ meta: title: Footer component description: The footer component provides a container for displaying additional navigation information about a site. keywords: footers, vuetify footer component, vue footer component +related: + - /components/grids/ + - /components/buttons/ + - /components/toolbars/ --- # Footers -Component description +The `v-footer` component is used for displaying general information that a user might want to access from any page within your site. <entry-ad /> ## Usage -Usage text +The `v-footer` component in its simplest form is a container. -`<usage name="" />` -- **name**: component name -- eg: `<usage name="v-alert" />` +<example file="v-footer/usage" /> ## API -- [API Page Link]() +- [v-footer](../../api/v-footer) -## Sub-Components - -Omit if none - -### Sub Component 1 - -Sub component text - -### Sub Component 2 - -Sub component text - -## Caveats +## Examples -Omit if none +### Props -<alert type="success">Success Caveat</alert> -<alert type="info">Info Caveat</alert> -<alert type="warning">Warning Caveat</alert> -<alert type="error">Error Caveat</alert> +#### Absolute Footer -## Examples +The `absolute` prop positions footers absolutely at the bottom of their parent container. -Example text. +<example file="v-footer/prop-absolute" /> -### Props +#### Padless Footer -Omit if none +The `padless` prop removes all default padding from the footer component. -### Events +<example file="v-footer/prop-padless" /> -Omit if none +### Misc -### Slots +#### Company Footer -Omit if none +The footer component as a basic company footer with links. -### Misc +<example file="v-footer/misc-company-footer" /> -Omit if none +#### Indigo Footer -#### Example Header +The footer component with Indigo background color and social media icons and button. -Example description +<example file="v-footer/misc-indigo-footer" /> -`<example file="" />` -- **file**: `<component>/<type>-<propname>` -- eg: `<example file="v-alert/prop-colored-border" />` +#### Teal Footer -## Accessibility +The footer component with a Teal color header and columns and rows of links. -Accessibility text - omit if none +<example file="v-footer/misc-teal-footer" /> <backmatter />
b1cce717dcb035e27d9b70ef26d69b951d26716a
2019-10-24 20:54:34
Sebastian Niemann
chore: Removes circular dependencies (#9369)
false
Removes circular dependencies (#9369)
chore
diff --git a/packages/vuetify/src/components/VBreadcrumbs/VBreadcrumbs.ts b/packages/vuetify/src/components/VBreadcrumbs/VBreadcrumbs.ts index b6c0f20e467..fb83733799c 100644 --- a/packages/vuetify/src/components/VBreadcrumbs/VBreadcrumbs.ts +++ b/packages/vuetify/src/components/VBreadcrumbs/VBreadcrumbs.ts @@ -6,7 +6,8 @@ import { VNode } from 'vue' import { PropValidator } from 'vue/types/options' // Components -import { VBreadcrumbsDivider, VBreadcrumbsItem } from '.' +import VBreadcrumbsItem from './VBreadcrumbsItem' +import VBreadcrumbsDivider from './VBreadcrumbsDivider' // Mixins import Themeable from '../../mixins/themeable' diff --git a/packages/vuetify/src/components/VBreadcrumbs/VBreadcrumbsDivider.ts b/packages/vuetify/src/components/VBreadcrumbs/VBreadcrumbsDivider.ts new file mode 100644 index 00000000000..5c215992787 --- /dev/null +++ b/packages/vuetify/src/components/VBreadcrumbs/VBreadcrumbsDivider.ts @@ -0,0 +1,3 @@ +import { createSimpleFunctional } from '../../util/helpers' + +export default createSimpleFunctional('v-breadcrumbs__divider', 'li') diff --git a/packages/vuetify/src/components/VBreadcrumbs/index.ts b/packages/vuetify/src/components/VBreadcrumbs/index.ts index d2cc4a1ac3e..6cb5617f88a 100644 --- a/packages/vuetify/src/components/VBreadcrumbs/index.ts +++ b/packages/vuetify/src/components/VBreadcrumbs/index.ts @@ -1,8 +1,6 @@ import VBreadcrumbs from './VBreadcrumbs' import VBreadcrumbsItem from './VBreadcrumbsItem' -import { createSimpleFunctional } from '../../util/helpers' - -const VBreadcrumbsDivider = createSimpleFunctional('v-breadcrumbs__divider', 'li') +import VBreadcrumbsDivider from './VBreadcrumbsDivider' export { VBreadcrumbs, VBreadcrumbsItem, VBreadcrumbsDivider } diff --git a/packages/vuetify/src/components/VTimePicker/SelectingTimes.ts b/packages/vuetify/src/components/VTimePicker/SelectingTimes.ts new file mode 100644 index 00000000000..4d5aeff6255 --- /dev/null +++ b/packages/vuetify/src/components/VTimePicker/SelectingTimes.ts @@ -0,0 +1,7 @@ +enum SelectingTimes { + Hour = 1, + Minute = 2, + Second = 3 +} + +export { SelectingTimes } diff --git a/packages/vuetify/src/components/VTimePicker/VTimePicker.ts b/packages/vuetify/src/components/VTimePicker/VTimePicker.ts index b2cc8631b70..de7e677c353 100644 --- a/packages/vuetify/src/components/VTimePicker/VTimePicker.ts +++ b/packages/vuetify/src/components/VTimePicker/VTimePicker.ts @@ -14,16 +14,12 @@ import mixins from '../../util/mixins' // Types import { VNode } from 'vue' import { PropValidator } from 'vue/types/options' +import { SelectingTimes } from './SelectingTimes' const rangeHours24 = createRange(24) const rangeHours12am = createRange(12) const rangeHours12pm = rangeHours12am.map(v => v + 12) const range60 = createRange(60) -enum SelectingTimes { - Hour = 1, - Minute = 2, - Second = 3 -} const selectingNames = { 1: 'hour', 2: 'minute', 3: 'second' } export { SelectingTimes } diff --git a/packages/vuetify/src/components/VTimePicker/VTimePickerTitle.ts b/packages/vuetify/src/components/VTimePicker/VTimePickerTitle.ts index de119595839..169e079c8b6 100644 --- a/packages/vuetify/src/components/VTimePicker/VTimePickerTitle.ts +++ b/packages/vuetify/src/components/VTimePicker/VTimePickerTitle.ts @@ -7,7 +7,7 @@ import PickerButton from '../../mixins/picker-button' import { pad } from '../VDatePicker/util' import mixins from '../../util/mixins' -import { SelectingTimes } from './VTimePicker' +import { SelectingTimes } from './SelectingTimes' import { PropValidator } from 'vue/types/options' import { VNode } from 'vue' diff --git a/packages/vuetify/src/components/VTreeview/VTreeviewNode.ts b/packages/vuetify/src/components/VTreeview/VTreeviewNode.ts index 146116a13d1..be65aee53f9 100644 --- a/packages/vuetify/src/components/VTreeview/VTreeviewNode.ts +++ b/packages/vuetify/src/components/VTreeview/VTreeviewNode.ts @@ -2,7 +2,6 @@ import { VExpandTransition } from '../transitions' import { VIcon } from '../VIcon' import VTreeview from './VTreeview' -import VTreeviewNode from './VTreeviewNode' // Mixins import { inject as RegistrableInject } from '../../mixins/registrable' @@ -86,7 +85,7 @@ export const VTreeviewNodeProps = { } /* @vue/component */ -export default baseMixins.extend<options>().extend({ +const VTreeviewNode = baseMixins.extend<options>().extend({ name: 'v-treeview-node', inject: { @@ -334,3 +333,5 @@ export default baseMixins.extend<options>().extend({ }, children) }, }) + +export default VTreeviewNode
3762fe7dfc1f2b17696ec0bc2380328a96a8adc2
2019-01-17 19:29:09
Kael
chore: revert eslint config changes
false
revert eslint config changes
chore
diff --git a/.eslintrc.js b/.eslintrc.js index 985f528e498..8c079715a4d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -67,7 +67,8 @@ module.exports = { 'vue/name-property-casing': 'off', 'vue/require-default-prop': 'off', 'vue/require-prop-types': 'off', - 'vue/prop-name-casing': 'error' + 'vue/prop-name-casing': 'error', + 'vue/return-in-computed-property': 'off' }, overrides: [ { diff --git a/package.json b/package.json index 28f3ec35991..2855f6addab 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "devDependencies": { "eslint": "^5.8.0", "eslint-config-standard": "^12.0.0", - "eslint-config-vuetify": "^0.2.0", "eslint-plugin-import": "^2.14.0", "eslint-plugin-local-rules": "^0.1.0", "eslint-plugin-node": "^7.0.1", diff --git a/packages/docs/.eslintrc.js b/packages/docs/.eslintrc.js index f3032f5cac2..ac65d69dbb4 100644 --- a/packages/docs/.eslintrc.js +++ b/packages/docs/.eslintrc.js @@ -1,37 +1,74 @@ const path = require('path') module.exports = { - extends: 'vuetify', - plugins: ['json'], + parserOptions: { + parser: 'babel-eslint', + ecmaVersion: 2017, + sourceType: 'module' + }, + extends: [ + 'plugin:vue/recommended', + 'standard' + ], + env: { + node: true, + browser: true + }, + plugins: [ + 'json' + ], globals: { docsearch: true }, rules: { - 'local-rules/no-render-string-reference': 'off', - 'prefer-promise-reject-errors': 'off' + 'max-len': 'off', + "vue/max-attributes-per-line": ['error', { + "singleline": 5, + "multiline": { + "max": 1, + "allowFirstLine": false + } + }], + "prefer-promise-reject-errors": 'off' }, overrides: [ + { + files: '**/*.vue', + rules: { + indent: 'off', + "vue/script-indent": ["error", 2, { + "baseIndent": 1, + "switchCase": 1, + "ignores": [] + }], + "vue/html-closing-bracket-newline": ["error", { + "singleline": "never", + "multiline": "always" + }], + "vue/html-closing-bracket-spacing": "error" + } + }, { files: 'src/examples/**/*.vue', rules: { - 'vue/valid-v-on': 'off', - 'vue/no-parsing-error': 'off', // This rule doesn't allow empty event listeners - 'vue/html-self-closing': ['error', { - 'html': { - 'void': 'never', - 'normal': 'never', - 'component': 'never' + "vue/valid-v-on": 'off', + "vue/no-parsing-error": 'off', // This rule doesn't allow empty event listeners + "vue/html-self-closing": ["error", { + "html": { + "void": "never", + "normal": "never", + "component": "never" }, - 'svg': 'always', - 'math': 'always' + "svg": "always", + "math": "always" }] } }, { files: 'src/examples/layouts/**/*.vue', rules: { - 'vue/order-in-components': 'off', - 'vue/require-default-prop': 'off' + "vue/order-in-components": 'off', + "vue/require-default-prop": 'off' } } ] diff --git a/packages/docs/package.json b/packages/docs/package.json index 11fd694e031..79169699313 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -70,6 +70,7 @@ "docsearch.js": "^2.5.2", "eslint": "^5.8.0", "eslint-plugin-json": "^1.2.1", + "eslint-config-vuetify": "^0.2.0", "event-source-polyfill": "^0.0.12", "file-loader": "^2.0.0", "friendly-errors-webpack-plugin": "^1.7.0", diff --git a/packages/docs/src/components/ad/Script.vue b/packages/docs/src/components/ad/Script.vue index ca83118f95e..0357ba3c760 100644 --- a/packages/docs/src/components/ad/Script.vue +++ b/packages/docs/src/components/ad/Script.vue @@ -1,7 +1,5 @@ <template> - <div :id="id"> - <!-- Ad --> - </div> + <div :id="id"><!-- Ad --></div> </template> <script> diff --git a/packages/docs/src/components/components/ApiExplorer.vue b/packages/docs/src/components/components/ApiExplorer.vue index 427e7731e43..f441e2a51ca 100644 --- a/packages/docs/src/components/components/ApiExplorer.vue +++ b/packages/docs/src/components/components/ApiExplorer.vue @@ -1,8 +1,5 @@ <template> - <v-layout - wrap - mb-5 - > + <v-layout wrap mb-5> <v-flex xs12 mb-5 diff --git a/packages/docs/src/components/components/MaskTable.vue b/packages/docs/src/components/components/MaskTable.vue index 12219b19c43..ab2314c4bae 100644 --- a/packages/docs/src/components/components/MaskTable.vue +++ b/packages/docs/src/components/components/MaskTable.vue @@ -23,8 +23,8 @@ </template> <template v-else> <td - v-for="(mask, j) in row" - :key="j" + v-for="(mask, i) in row" + :key="i" v-text="mask" /> </template> diff --git a/packages/docs/src/components/core/Drawer.vue b/packages/docs/src/components/core/Drawer.vue index 1c8aca9afab..b88527b5706 100644 --- a/packages/docs/src/components/core/Drawer.vue +++ b/packages/docs/src/components/core/Drawer.vue @@ -9,9 +9,7 @@ pb-0 > <div class="text-xs-center"> - <h4 class="body-2 font-weight-bold grey--text"> - Premiere sponsor - </h4> + <h4 class="body-2 font-weight-bold grey--text">Premiere sponsor</h4> <span class="d-block mb-3 caption grey--text text--lighten-1"> One spot available </span> @@ -80,9 +78,9 @@ /> <core-item v-else - :key="`item-${i}`" :chip="genChip(item)" :icon="item.icon" + :key="`item-${i}`" :subtext="item.subtext" :text="item.text" :to="item.to" diff --git a/packages/docs/src/components/core/Ecosystems.vue b/packages/docs/src/components/core/Ecosystems.vue index ddb4f1a1b31..6df75834cee 100644 --- a/packages/docs/src/components/core/Ecosystems.vue +++ b/packages/docs/src/components/core/Ecosystems.vue @@ -16,12 +16,8 @@ class="hidden-sm-and-down mr-1" v-text="$t('Vuetify.AppToolbar.ecosystem')" /> - <v-icon class="hidden-sm-and-down"> - mdi-menu-down - </v-icon> - <v-icon class="hidden-md-and-up"> - mdi-earth - </v-icon> + <v-icon class="hidden-sm-and-down">mdi-menu-down</v-icon> + <v-icon class="hidden-md-and-up">mdi-earth</v-icon> </v-btn> <v-list diff --git a/packages/docs/src/components/core/Fab.vue b/packages/docs/src/components/core/Fab.vue index 8778682528d..c12d03c709b 100644 --- a/packages/docs/src/components/core/Fab.vue +++ b/packages/docs/src/components/core/Fab.vue @@ -1,8 +1,8 @@ <template> <v-fab-transition> <v-btn - v-show="fab" v-scroll="onScroll" + v-show="fab" :style="{ bottom: value ? '80px' : '' }" diff --git a/packages/docs/src/components/core/Group.vue b/packages/docs/src/components/core/Group.vue index 429233d1ec6..c3afc604434 100644 --- a/packages/docs/src/components/core/Group.vue +++ b/packages/docs/src/components/core/Group.vue @@ -17,9 +17,9 @@ /> <core-item v-else - :key="`item-${i}`" :chip="genChip(child)" :icon="child.icon" + :key="`item-${i}`" :subtext="child.subtext" :to="child.to" :text="child.text" @@ -67,7 +67,7 @@ genChip, genGroup (children) { return children.map(item => { - const parent = item.group || this.item.group + let parent = item.group || this.item.group let group = `${parent}/${kebabCase(item.to)}` if (item.children) { diff --git a/packages/docs/src/components/core/Item.vue b/packages/docs/src/components/core/Item.vue index acfa8c743cd..794b6b86557 100644 --- a/packages/docs/src/components/core/Item.vue +++ b/packages/docs/src/components/core/Item.vue @@ -24,18 +24,14 @@ v-if="noMarkdown" v-text="text" /> - <doc-markdown v-else> - {{ text }} - </doc-markdown> + <doc-markdown v-else>{{ text }}</doc-markdown> </v-list-tile-title> <v-list-tile-sub-title v-if="subtext"> <span v-if="noMarkdown" v-text="subtext" /> - <doc-markdown v-else> - {{ subtext }} - </doc-markdown> + <doc-markdown v-else>{{ subtext }}</doc-markdown> </v-list-tile-sub-title> </v-list-tile-content> <v-chip @@ -43,9 +39,7 @@ :color="chipColor" class="v-chip--x-small" dark - > - {{ chip }} - </v-chip> + >{{ chip }}</v-chip> <slot /> </v-list-tile> </template> @@ -102,7 +96,6 @@ if (this.chip === 'new') return 'primary' if (this.chip === 'updated') return 'warning' if (this.chip === 'deprecated') return 'black' - return 'transparent' }, customAttrs () { const attrs = { diff --git a/packages/docs/src/components/core/Page.vue b/packages/docs/src/components/core/Page.vue index 1dc82fcd740..2a446957a77 100644 --- a/packages/docs/src/components/core/Page.vue +++ b/packages/docs/src/components/core/Page.vue @@ -21,9 +21,9 @@ </div> <component - :is="getComponent(child.type)" v-for="(child, i) in structure.children" :key="`${composite}-${i}`" + :is="getComponent(child.type)" :value="child" /> diff --git a/packages/docs/src/components/core/Snackbar.vue b/packages/docs/src/components/core/Snackbar.vue index 27a9a14c2b4..01afa796b34 100644 --- a/packages/docs/src/components/core/Snackbar.vue +++ b/packages/docs/src/components/core/Snackbar.vue @@ -1,11 +1,11 @@ <template> <v-snackbar - v-model="snack" :color="snackbar.color" :style="{ marginBottom: $vuetify.breakpoint.smOnly ? '40px' : null }" :timeout="snackbar.timeout" + v-model="snack" bottom right > diff --git a/packages/docs/src/components/core/Store.vue b/packages/docs/src/components/core/Store.vue index 09c9145f76f..43c359fd210 100644 --- a/packages/docs/src/components/core/Store.vue +++ b/packages/docs/src/components/core/Store.vue @@ -12,8 +12,6 @@ class="hidden-sm-and-down" v-text="$t('Vuetify.AppToolbar.store')" /> - <v-icon class="hidden-md-and-up"> - mdi-store - </v-icon> + <v-icon class="hidden-md-and-up">mdi-store</v-icon> </v-btn> </template> diff --git a/packages/docs/src/components/core/SupportVuetify.vue b/packages/docs/src/components/core/SupportVuetify.vue index f4c8e6710d9..3586c8d7506 100644 --- a/packages/docs/src/components/core/SupportVuetify.vue +++ b/packages/docs/src/components/core/SupportVuetify.vue @@ -6,21 +6,14 @@ target="_blank" > <v-card-text> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex :style="{ order: $vuetify.breakpoint.xs ? '2' : '1' }" d-flex pl-1 xs10 > - <v-layout - align-center - row - wrap - > + <v-layout align-center row wrap> <v-flex display-1 mr-4 @@ -31,23 +24,9 @@ > PATREON </v-flex> - <v-flex - hidden-xs-only - patreon-bar - mr-4 - /> - <v-flex - hidden-sm-and-up - patreon-bar-horizontal - mr-4 - /> - <v-flex - xs12 - sm6 - display-1 - patreon-caption - pb-1 - > + <v-flex hidden-xs-only patreon-bar mr-4 /> + <v-flex hidden-sm-and-up patreon-bar-horizontal mr-4 /> + <v-flex xs12 sm6 display-1 patreon-caption pb-1> Support Vuetify </v-flex> </v-layout> @@ -61,12 +40,7 @@ > <v-layout align-center> <v-flex xs12> - <img - class="logo" - src="https://cdn.vuetifyjs.com/images/logos/logo.svg" - width="50px" - alt="" - > + <img class="logo" src="https://cdn.vuetifyjs.com/images/logos/logo.svg" width="50px" alt=""> </v-flex> </v-layout> </v-flex> diff --git a/packages/docs/src/components/core/Supports.vue b/packages/docs/src/components/core/Supports.vue index b4dece7fc2c..2ca3f5c7b35 100644 --- a/packages/docs/src/components/core/Supports.vue +++ b/packages/docs/src/components/core/Supports.vue @@ -16,12 +16,8 @@ class="hidden-sm-and-down mr-1" v-text="$t('Vuetify.AppToolbar.support')" /> - <v-icon class="hidden-sm-and-down"> - mdi-menu-down - </v-icon> - <v-icon class="hidden-md-and-up"> - mdi-comment-question - </v-icon> + <v-icon class="hidden-sm-and-down">mdi-menu-down</v-icon> + <v-icon class="hidden-md-and-up">mdi-comment-question</v-icon> </v-btn> <v-list dense> <v-subheader v-text="$t('Vuetify.AppToolbar.getHelp')" /> diff --git a/packages/docs/src/components/core/Toolbar.vue b/packages/docs/src/components/core/Toolbar.vue index 81954b9e9d5..e0c8e43c014 100644 --- a/packages/docs/src/components/core/Toolbar.vue +++ b/packages/docs/src/components/core/Toolbar.vue @@ -27,9 +27,7 @@ width="38px" /> </router-link> - <v-toolbar-title class="hidden-xs-only"> - Vuetify - </v-toolbar-title> + <v-toolbar-title class="hidden-xs-only">Vuetify</v-toolbar-title> <v-spacer /> <v-toolbar-items> @@ -48,12 +46,8 @@ flat style="min-width: 48px;" > - <span class="hidden-sm-and-down"> - {{ $t('Vuetify.AppToolbar.documentation' ) }} - </span> - <v-icon class="hidden-md-and-up"> - mdi-file-document-box - </v-icon> + <span class="hidden-sm-and-down">{{ $t('Vuetify.AppToolbar.documentation' ) }}</span> + <v-icon class="hidden-md-and-up">mdi-file-document-box</v-icon> </v-btn> <core-store /> <core-supports /> diff --git a/packages/docs/src/components/core/Versions.vue b/packages/docs/src/components/core/Versions.vue index d7b6f53ed5c..2e586c22b48 100644 --- a/packages/docs/src/components/core/Versions.vue +++ b/packages/docs/src/components/core/Versions.vue @@ -15,9 +15,7 @@ class="text-lowercase mr-1" v-text="version" /> - <v-icon class="hidden-sm-and-down"> - mdi-menu-down - </v-icon> + <v-icon class="hidden-sm-and-down">mdi-menu-down</v-icon> </v-btn> <v-card> diff --git a/packages/docs/src/components/doc/Api.vue b/packages/docs/src/components/doc/Api.vue index 9a256c87b03..c3eb401f0b8 100644 --- a/packages/docs/src/components/doc/Api.vue +++ b/packages/docs/src/components/doc/Api.vue @@ -3,8 +3,8 @@ <doc-heading>Generic.Pages.api</doc-heading> <v-card> <v-tabs - v-model="tab" :slider-color="computedTabs.length ? 'primary' : 'transparent'" + v-model="tab" color="grey lighten-3" > <v-tab @@ -23,8 +23,8 @@ sm4 > <v-select - v-model="current" :items="value" + v-model="current" :disabled="value.length < 2" hide-details single-line @@ -32,10 +32,7 @@ /> </v-flex> - <v-flex - xs12 - sm4 - > + <v-flex xs12 sm4> <v-text-field v-model="search" append-icon="search" diff --git a/packages/docs/src/components/doc/Checklist.vue b/packages/docs/src/components/doc/Checklist.vue index 74b1c4f7fd0..275adbdebfd 100644 --- a/packages/docs/src/components/doc/Checklist.vue +++ b/packages/docs/src/components/doc/Checklist.vue @@ -1,18 +1,13 @@ <template> <v-list class="checklist"> - <v-list-tile - v-for="(item, index) in items" - :key="index" - > + <v-list-tile v-for="(item, index) in items" :key="index"> <v-list-tile-content> <v-list-tile-title> <doc-markdown :code="item" /> </v-list-tile-title> </v-list-tile-content> <v-list-tile-action> - <v-icon color="success"> - check - </v-icon> + <v-icon color="success">check</v-icon> </v-list-tile-action> </v-list-tile> </v-list> diff --git a/packages/docs/src/components/doc/Contribution.vue b/packages/docs/src/components/doc/Contribution.vue index a630f983ab9..199e67ab929 100644 --- a/packages/docs/src/components/doc/Contribution.vue +++ b/packages/docs/src/components/doc/Contribution.vue @@ -5,9 +5,7 @@ </div> <v-spacer class="hidden-sm-and-down" /> <div class="hidden-sm-and-down"> - <span class="hidden-md-and-up"> - &nbsp;—&nbsp; - </span> + <span class="hidden-md-and-up">&nbsp;—&nbsp;</span> <span class="pr-5" v-html="contributionGuide" diff --git a/packages/docs/src/components/doc/Example.vue b/packages/docs/src/components/doc/Example.vue index beb28279044..46d1eb94033 100644 --- a/packages/docs/src/components/doc/Example.vue +++ b/packages/docs/src/components/doc/Example.vue @@ -55,47 +55,43 @@ class="pa-2" mandatory > - <template v-for="(section, i) in sections"> - <v-item - v-if="parsed[section]" - :key="`item-${i}`" - :value="section" + <v-item + v-for="(section, i) in sections" + v-if="parsed[section]" + :key="`item-${i}`" + :value="section" + > + <v-btn + slot-scope="{ active, toggle }" + :color="active ? 'white' : 'transparent'" + :light="active" + class="mr-0" + depressed + round + @click="toggle" > - <v-btn - slot-scope="{ active, toggle }" - :color="active ? 'white' : 'transparent'" - :light="active" - class="mr-0" - depressed - round - @click="toggle" - > - {{ section }} - </v-btn> - </v-item> - </template> + {{ section }} + </v-btn> + </v-item> </v-item-group> <v-divider /> <v-window v-model="selected"> - <template v-for="(section, i) in sections"> - <v-window-item - v-if="parsed[section]" - :key="`window-${i}`" - :value="section" + <v-window-item + v-for="(section, i) in sections" + v-if="parsed[section]" + :key="`window-${i}`" + :value="section" + > + <div + :class="($vuetify.breakpoint.smAndUp) ? 'v-example__container' : ''" > - <div - :class="($vuetify.breakpoint.smAndUp) ? 'v-example__container' : ''" - > - <!-- eslint-disable --> - <doc-markup - :value="file" - :filename="false" - class="mb-0" - >{{ parsed[section] }}</doc-markup> - <!-- eslint-enable --> - </div> - </v-window-item> - </template> + <doc-markup + :value="file" + :filename="false" + class="mb-0" + >{{ parsed[section] }}</doc-markup> + </div> + </v-window-item> </v-window> </v-card> </v-expand-transition> @@ -109,10 +105,7 @@ </div> </v-card-text> </v-sheet> - <doc-codepen - ref="codepen" - :pen="parsed" - /> + <doc-codepen ref="codepen" :pen="parsed" /> </v-card> </template> @@ -206,6 +199,9 @@ } }, kebabCase, + toggle () { + this.active = !this.active + }, sendToCodepen () { this.$refs.codepen.submit() }, diff --git a/packages/docs/src/components/doc/Heading.vue b/packages/docs/src/components/doc/Heading.vue index 60f6a369fab..c078ed9dd85 100644 --- a/packages/docs/src/components/doc/Heading.vue +++ b/packages/docs/src/components/doc/Heading.vue @@ -1,8 +1,6 @@ <template functional> <core-goto class="core-goto--heading"> - <doc-markdown v-bind="$attrs"> - <slot /> - </doc-markdown> + <doc-markdown v-bind="$attrs"><slot /></doc-markdown> </core-goto> </template> diff --git a/packages/docs/src/components/doc/Markup.vue b/packages/docs/src/components/doc/Markup.vue index df02b10f7d7..2a54a68b2b4 100644 --- a/packages/docs/src/components/doc/Markup.vue +++ b/packages/docs/src/components/doc/Markup.vue @@ -1,15 +1,10 @@ <template> - <div - :id="id" - class="v-markup" - > - <!-- eslint-disable --> + <div :id="id" class="v-markup"> <prism v-if="$slots.default || code" :language="language" :code="code" ><slot /></prism> - <!-- eslint-enable --> <div v-if="filename" @@ -36,9 +31,7 @@ <span v-if="copied" class="v-markup__copied" - > - Copied - </span> + >Copied</span> </v-slide-x-transition> </div> diff --git a/packages/docs/src/components/doc/Parameters.vue b/packages/docs/src/components/doc/Parameters.vue index d7772241828..38b8564bf13 100644 --- a/packages/docs/src/components/doc/Parameters.vue +++ b/packages/docs/src/components/doc/Parameters.vue @@ -20,21 +20,12 @@ slot="item" slot-scope="{ item }" > - <v-flex - xs12 - grey - lighten-2 - mt-2 - > - <v-layout - wrap - px-2 - py-1 - > + <v-flex xs12 grey lighten-2 mt-2> + <v-layout wrap px-2 py-1> <v-flex v-for="(header, i) in headers" - :key="header.value" :class="header.class" + :key="header.value" > <div class="header grey--text text--darken-2" @@ -69,11 +60,7 @@ pa-2 wrap > - <v-flex - grey--text - text--darken-3 - xs12 - > + <v-flex grey--text text--darken-3 xs12> <doc-markdown :code="item.description" class="justify" @@ -85,9 +72,7 @@ class="mt-2 mb-0" lang="ts" value="example" - > - {{ genTypescriptDef(item.example) }} - </doc-markup> + >{{ genTypescriptDef(item.example) }}</doc-markup> </v-flex> </v-layout> </v-flex> @@ -210,7 +195,6 @@ str.indexOf('Components.') > -1 ) }, - /* eslint-disable max-statements */ genDescription (name, item) { let description = '' let devPrepend = '' @@ -261,7 +245,7 @@ if (item.signature) return name name = name || '' - name = name.replace(/([A-Z])/g, g => `-${g[0].toLowerCase()}`) + name = name.replace(/([A-Z])/g, (g) => `-${g[0].toLowerCase()}`) const sync = (item.sync && '.sync') || '' return `${name}${sync}` diff --git a/packages/docs/src/components/getting-started/Browsers.vue b/packages/docs/src/components/getting-started/Browsers.vue index 077ecf07542..649748f2471 100644 --- a/packages/docs/src/components/getting-started/Browsers.vue +++ b/packages/docs/src/components/getting-started/Browsers.vue @@ -19,18 +19,14 @@ <v-icon v-if="typeof browser.icon === 'string'" dark - > - fab fa-{{ browser.icon }} - </v-icon> + >fab fa-{{ browser.icon }}</v-icon> <v-icon v-for="icon in browser.icon" v-else :key="icon" class="browser-icon--split" dark - > - fab fa-{{ icon }} - </v-icon> + >fab fa-{{ icon }}</v-icon> </v-list-tile-avatar> <v-list-tile-content> <v-list-tile-title>{{ browser.title }}</v-list-tile-title> diff --git a/packages/docs/src/components/getting-started/Consulting.vue b/packages/docs/src/components/getting-started/Consulting.vue index fd6529ab080..85a12fc7255 100644 --- a/packages/docs/src/components/getting-started/Consulting.vue +++ b/packages/docs/src/components/getting-started/Consulting.vue @@ -27,18 +27,11 @@ md4 > <div class="text-xs-center d-inline-block"> - <v-avatar - size="156" - class="mx-3 mb-2 mt-3 elevation-8" - > + <v-avatar size="156" class="mx-3 mb-2 mt-3 elevation-8"> <v-img src="https://cdn.vuetifyjs.com/images/john.png" /> </v-avatar> - <div class="body-2"> - John Leider - </div> - <div class="caption"> - Creator - </div> + <div class="body-2">John Leider</div> + <div class="caption">Creator</div> </div> </v-flex> <v-flex @@ -51,12 +44,7 @@ > <v-card-title class="pb-3 primary"> <h3 class="title white--text"> - <v-icon - color="white" - class="mr-2" - > - mdi-calendar - </v-icon> + <v-icon color="white" class="mr-2">mdi-calendar</v-icon> <span>Schedule an Appointment</span> </h3> </v-card-title> diff --git a/packages/docs/src/components/getting-started/Faq.vue b/packages/docs/src/components/getting-started/Faq.vue index c249f660a73..e0d0016d7da 100644 --- a/packages/docs/src/components/getting-started/Faq.vue +++ b/packages/docs/src/components/getting-started/Faq.vue @@ -27,10 +27,7 @@ content-class="v-data-iterator--faq" hide-actions > - <template - slot="item" - slot-scope="{ item: gotcha, index }" - > + <template slot="item" slot-scope="{ item: gotcha, index }"> <div class="mb-5"> <core-goto :id="`question-${index + 1}`"> <doc-markdown :code="gotcha.q" /> diff --git a/packages/docs/src/components/style/Colors.vue b/packages/docs/src/components/style/Colors.vue index bedb37741d7..ac80f7fb544 100644 --- a/packages/docs/src/components/style/Colors.vue +++ b/packages/docs/src/components/style/Colors.vue @@ -12,11 +12,7 @@ single-line /> - <v-container - fluid - pa-0 - grid-list-xl - > + <v-container fluid pa-0 grid-list-xl> <v-layout wrap> <v-flex v-for="(color, key) in computedColors" @@ -29,40 +25,24 @@ tile > <v-card-text> - <span - class="title" - v-text="key" - /> + <span class="title" v-text="key" /> </v-card-text> </v-card> <v-card v-for="(subColor, key2) in color" - :key="key2" :color="`${key} ${convertToClass(key2)}`" :class="getColorClass(key2)" + :key="key2" tile > <v-card-text> <v-layout> - <v-flex - xs8 - caption - > - <span v-if="key !== 'shades'"> - {{ key }}&nbsp; - </span> - <span v-if="key2 !== 'base'"> - {{ key2.replace(/(.*)(\d)/, '$1-$2') }} - </span> + <v-flex xs8 caption> + <span v-if="key !== 'shades'">{{ key }}&nbsp;</span> + <span v-if="key2 !== 'base'">{{ key2.replace(/(.*)(\d)/, '$1-$2') }}</span> </v-flex> - <v-flex - xs4 - text-xs-right - > - <span - v-if="subColor !== 'transparent'" - v-text="subColor.toUpperCase()" - /> + <v-flex xs4 text-xs-right> + <span v-if="subColor !== 'transparent'" v-text="subColor.toUpperCase()" /> </v-flex> </v-layout> </v-card-text> diff --git a/packages/docs/src/components/style/Headings.vue b/packages/docs/src/components/style/Headings.vue index 3be2e907147..2f0bb072f3b 100644 --- a/packages/docs/src/components/style/Headings.vue +++ b/packages/docs/src/components/style/Headings.vue @@ -18,9 +18,7 @@ > <code>.{{ text[0] }}</code> </div> - <v-flex :class="`${text[0]}`"> - {{ text[1] }} - </v-flex> + <v-flex :class="`${text[0]}`">{{ text[1] }}</v-flex> </v-layout> </v-card> </template> diff --git a/packages/docs/src/components/supporters/OneTime.vue b/packages/docs/src/components/supporters/OneTime.vue index 3615a7567f2..1d11a00b3df 100644 --- a/packages/docs/src/components/supporters/OneTime.vue +++ b/packages/docs/src/components/supporters/OneTime.vue @@ -6,9 +6,7 @@ wrap > <v-flex xs12> - <doc-heading goto="one-time-donation"> - oneTime - </doc-heading> + <doc-heading goto="one-time-donation">oneTime</doc-heading> </v-flex> <v-flex diff --git a/packages/docs/src/components/supporters/PatreonSub.vue b/packages/docs/src/components/supporters/PatreonSub.vue index 249e457cd86..c23a5b80e4d 100644 --- a/packages/docs/src/components/supporters/PatreonSub.vue +++ b/packages/docs/src/components/supporters/PatreonSub.vue @@ -6,9 +6,7 @@ wrap > <v-flex xs12> - <doc-heading goto="one-time-donation"> - patreon - </doc-heading> + <doc-heading goto="one-time-donation">patreon</doc-heading> </v-flex> <v-flex diff --git a/packages/docs/src/components/themes/Premium.vue b/packages/docs/src/components/themes/Premium.vue index 7467a27748a..0e525a689a9 100644 --- a/packages/docs/src/components/themes/Premium.vue +++ b/packages/docs/src/components/themes/Premium.vue @@ -19,8 +19,7 @@ /> <v-card-title class="align-center"> - <h2 class="headline mb-0"> - {{ template.title }} + <h2 class="headline mb-0">{{ template.title }} <v-chip :color="template.free ? 'blue-grey' : 'indigo'" label @@ -36,9 +35,7 @@ <v-divider /> - <v-card-text style="min-height: 95px;"> - {{ template.description }} - </v-card-text> + <v-card-text style="min-height: 95px;">{{ template.description }}</v-card-text> <v-card-actions class="grey lighten-4"> <v-menu :disabled="template.demoUrl.length === 1" @@ -59,9 +56,7 @@ rel="noopener" aria-label="View Demo" > - <v-icon color="primary"> - mdi-eye - </v-icon> + <v-icon color="primary">mdi-eye</v-icon> </v-btn> <span v-text="$t('Themes.Premium.viewDemo')" /> </v-tooltip> diff --git a/packages/docs/src/components/typography.js b/packages/docs/src/components/typography.js index 090f62ac0f1..5143385846f 100644 --- a/packages/docs/src/components/typography.js +++ b/packages/docs/src/components/typography.js @@ -1,6 +1,6 @@ import Vue from 'vue' -const typography = name => ({ +const typography = (name) => ({ name: `v-${name}`, render (h) { diff --git a/packages/docs/src/examples/alignment/example.vue b/packages/docs/src/examples/alignment/example.vue index 4e4149ebd85..c4c506fce5b 100644 --- a/packages/docs/src/examples/alignment/example.vue +++ b/packages/docs/src/examples/alignment/example.vue @@ -1,21 +1,11 @@ <template> <v-card> <v-card-text> - <p class="text-lg-right"> - Right align on large viewport sizes - </p> - <p class="text-md-center"> - Center align on medium viewport sizes - </p> - <p class="text-sm-left"> - Left align on small viewport sizes - </p> - <p class="text-xs-center"> - Center align on all viewport sizes - </p> - <p class="text-xs-right"> - Right align on all viewport sizes - </p> + <p class="text-lg-right">Right align on large viewport sizes</p> + <p class="text-md-center">Center align on medium viewport sizes</p> + <p class="text-sm-left">Left align on small viewport sizes</p> + <p class="text-xs-center">Center align on all viewport sizes</p> + <p class="text-xs-right">Right align on all viewport sizes</p> </v-card-text> </v-card> </template> diff --git a/packages/docs/src/examples/autocompletes/advanced.vue b/packages/docs/src/examples/autocompletes/advanced.vue index a9b9c09f1af..e20220711fa 100644 --- a/packages/docs/src/examples/autocompletes/advanced.vue +++ b/packages/docs/src/examples/autocompletes/advanced.vue @@ -5,9 +5,7 @@ tabs > <v-toolbar-side-icon></v-toolbar-side-icon> - <v-toolbar-title class="title mr-4"> - Cryptocurrency - </v-toolbar-title> + <v-toolbar-title class="title mr-4">Cryptocurrency</v-toolbar-title> <v-autocomplete v-model="model" :items="items" @@ -39,15 +37,13 @@ color="blue-grey" class="white--text" > - <v-icon left> - mdi-coin - </v-icon> + <v-icon left>mdi-coin</v-icon> <span v-text="item.name"></span> </v-chip> </template> <template slot="item" - slot-scope="{ item }" + slot-scope="{ item, tile }" > <v-list-tile-avatar color="indigo" @@ -70,15 +66,9 @@ color="transparent" slider-color="blue-grey" > - <v-tab :disabled="!model"> - News - </v-tab> - <v-tab :disabled="!model"> - Trading - </v-tab> - <v-tab :disabled="!model"> - Blog - </v-tab> + <v-tab :disabled="!model">News</v-tab> + <v-tab :disabled="!model">Trading</v-tab> + <v-tab :disabled="!model">Blog</v-tab> </v-tabs> </v-toolbar> </template> diff --git a/packages/docs/src/examples/autocompletes/api.vue b/packages/docs/src/examples/autocompletes/api.vue index 551d4fc8988..1293267ae65 100644 --- a/packages/docs/src/examples/autocompletes/api.vue +++ b/packages/docs/src/examples/autocompletes/api.vue @@ -12,9 +12,7 @@ class="grey--text text--lighten-3" href="https://github.com/toddmotto/public-apis" target="_blank" - > - the Github repository - </a>. + >the Github repository</a>. </v-card-text> <v-card-text> <v-autocomplete @@ -35,10 +33,7 @@ </v-card-text> <v-divider></v-divider> <v-expand-transition> - <v-list - v-if="model" - class="red lighten-3" - > + <v-list v-if="model" class="red lighten-3"> <v-list-tile v-for="(field, i) in fields" :key="i" @@ -58,9 +53,7 @@ @click="model = null" > Clear - <v-icon right> - mdi-close-circle - </v-icon> + <v-icon right>mdi-close-circle</v-icon> </v-btn> </v-card-actions> </v-card> diff --git a/packages/docs/src/examples/autocompletes/asynchronous.vue b/packages/docs/src/examples/autocompletes/asynchronous.vue index 660eaab256b..f83d8f4c27f 100644 --- a/packages/docs/src/examples/autocompletes/asynchronous.vue +++ b/packages/docs/src/examples/autocompletes/asynchronous.vue @@ -5,10 +5,10 @@ > <v-toolbar-title>State selection</v-toolbar-title> <v-autocomplete - v-model="select" :loading="loading" :items="items" :search-input.sync="search" + v-model="select" cache-items class="mx-3" flat diff --git a/packages/docs/src/examples/autocompletes/customFilter.vue b/packages/docs/src/examples/autocompletes/customFilter.vue index 0801ec77fe4..8aa70be7267 100644 --- a/packages/docs/src/examples/autocompletes/customFilter.vue +++ b/packages/docs/src/examples/autocompletes/customFilter.vue @@ -9,9 +9,7 @@ color="purple" > <v-icon>mdi-account</v-icon> - <v-toolbar-title class="font-weight-light"> - User Profile - </v-toolbar-title> + <v-toolbar-title class="font-weight-light">User Profile</v-toolbar-title> <v-spacer></v-spacer> <v-btn color="purple darken-3" @@ -19,12 +17,8 @@ small @click="isEditing = !isEditing" > - <v-icon v-if="isEditing"> - mdi-close - </v-icon> - <v-icon v-else> - mdi-pencil - </v-icon> + <v-icon v-if="isEditing">mdi-close</v-icon> + <v-icon v-else>mdi-pencil</v-icon> </v-btn> </v-toolbar> <v-card-text> diff --git a/packages/docs/src/examples/autocompletes/scopedSlots.vue b/packages/docs/src/examples/autocompletes/scopedSlots.vue index 375c2538d8d..77fd92065cf 100644 --- a/packages/docs/src/examples/autocompletes/scopedSlots.vue +++ b/packages/docs/src/examples/autocompletes/scopedSlots.vue @@ -50,22 +50,15 @@ justify-end pa-3 > - <h3 class="headline"> - {{ name }} - </h3> - <span class="grey--text text--lighten-1"> - {{ title }} - </span> + <h3 class="headline">{{ name }}</h3> + <span class="grey--text text--lighten-1">{{ title }}</span> </v-layout> </v-layout> </v-img> <v-form> <v-container> <v-layout wrap> - <v-flex - xs12 - md6 - > + <v-flex xs12 md6> <v-text-field v-model="name" :disabled="isUpdating" @@ -74,10 +67,7 @@ label="Name" ></v-text-field> </v-flex> - <v-flex - xs12 - md6 - > + <v-flex xs12 md6> <v-text-field v-model="title" :disabled="isUpdating" @@ -155,9 +145,7 @@ depressed @click="isUpdating = true" > - <v-icon left> - mdi-update - </v-icon> + <v-icon left>mdi-update</v-icon> Update Now </v-btn> </v-card-actions> diff --git a/packages/docs/src/examples/autocompletes/usage.vue b/packages/docs/src/examples/autocompletes/usage.vue index 77ab9b7273b..2229e2d3f37 100644 --- a/packages/docs/src/examples/autocompletes/usage.vue +++ b/packages/docs/src/examples/autocompletes/usage.vue @@ -1,12 +1,8 @@ <template> <v-card> - <v-card-title class="headline font-weight-regular blue-grey white--text"> - Profile - </v-card-title> + <v-card-title class="headline font-weight-regular blue-grey white--text">Profile</v-card-title> <v-card-text> - <v-subheader class="pa-0"> - Where do you live? - </v-subheader> + <v-subheader class="pa-0">Where do you live?</v-subheader> <v-autocomplete v-model="model" :hint="!isEditing ? 'Click the icon to edit' : 'Click the icon to save'" @@ -21,8 +17,8 @@ mode="out-in" > <v-icon - :key="`icon-${isEditing}`" :color="isEditing ? 'success' : 'info'" + :key="`icon-${isEditing}`" @click="isEditing = !isEditing" v-text="isEditing ? 'mdi-check-outline' : 'mdi-circle-edit-outline'" ></v-icon> diff --git a/packages/docs/src/examples/avatars/advanced.vue b/packages/docs/src/examples/avatars/advanced.vue index 2ee646cab81..efa36bd8717 100644 --- a/packages/docs/src/examples/avatars/advanced.vue +++ b/packages/docs/src/examples/avatars/advanced.vue @@ -17,11 +17,7 @@ row spacer > - <v-flex - xs4 - sm2 - md1 - > + <v-flex xs4 sm2 md1> <v-avatar slot="activator" size="36px" @@ -39,11 +35,7 @@ </v-avatar> </v-flex> - <v-flex - sm5 - md3 - hidden-xs-only - > + <v-flex sm5 md3 hidden-xs-only> <strong v-html="message.name"></strong> <span v-if="message.total" @@ -53,11 +45,7 @@ </span> </v-flex> - <v-flex - no-wrap - xs5 - sm3 - > + <v-flex no-wrap xs5 sm3> <v-chip v-if="message.new" :color="`${message.color} lighten-4`" diff --git a/packages/docs/src/examples/avatars/iconAndText.vue b/packages/docs/src/examples/avatars/iconAndText.vue index 6b01c8e00a9..165786eabbb 100644 --- a/packages/docs/src/examples/avatars/iconAndText.vue +++ b/packages/docs/src/examples/avatars/iconAndText.vue @@ -5,9 +5,7 @@ wrap > <v-avatar color="indigo"> - <v-icon dark> - account_circle - </v-icon> + <v-icon dark>account_circle</v-icon> </v-avatar> <v-avatar> @@ -18,29 +16,21 @@ </v-avatar> <v-badge overlap> - <span slot="badge"> - 3 - </span> + <span slot="badge">3</span> <v-avatar color="purple red--after" > - <v-icon dark> - notifications - </v-icon> + <v-icon dark>notifications</v-icon> </v-avatar> </v-badge> <v-avatar color="teal"> - <span class="white--text headline"> - C - </span> + <span class="white--text headline">C</span> </v-avatar> <v-avatar color="red"> - <span class="white--text headline"> - J - </span> + <span class="white--text headline">J</span> </v-avatar> </v-layout> </template> diff --git a/packages/docs/src/examples/avatars/usage.vue b/packages/docs/src/examples/avatars/usage.vue index 54f80036e7d..4b783a06fb1 100644 --- a/packages/docs/src/examples/avatars/usage.vue +++ b/packages/docs/src/examples/avatars/usage.vue @@ -1,14 +1,7 @@ <template> <v-container grid-list-md> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - md4 - > + <v-layout row wrap> + <v-flex xs12 sm6 md4> <v-slider v-model="slider" :min="16" @@ -37,10 +30,7 @@ :size="avatarSize" color="grey lighten-4" > - <img - src="https://vuetifyjs.com/apple-touch-icon-180x180.png" - alt="avatar" - > + <img src="https://vuetifyjs.com/apple-touch-icon-180x180.png" alt="avatar"> </v-avatar> </v-flex> </v-layout> diff --git a/packages/docs/src/examples/badges/icon.vue b/packages/docs/src/examples/badges/icon.vue index 9752585f4f9..338a47bfb84 100644 --- a/packages/docs/src/examples/badges/icon.vue +++ b/packages/docs/src/examples/badges/icon.vue @@ -1,16 +1,7 @@ <template> <div class="text-xs-center"> - <v-badge - left - color="purple" - > - <v-icon - slot="badge" - dark - small - > - mdi-adjust - </v-icon> + <v-badge left color="purple"> + <v-icon slot="badge" dark small>mdi-adjust</v-icon> <span> MDI icon </span> @@ -19,13 +10,7 @@ &nbsp;&nbsp; <v-badge color="orange"> - <v-icon - slot="badge" - dark - small - > - fas fa-fighter-jet - </v-icon> + <v-icon slot="badge" dark small>fas fa-fighter-jet</v-icon> <span> Font Awesome icon </span> diff --git a/packages/docs/src/examples/badges/inline.vue b/packages/docs/src/examples/badges/inline.vue index 9f09769e9cd..f0bb06604fa 100644 --- a/packages/docs/src/examples/badges/inline.vue +++ b/packages/docs/src/examples/badges/inline.vue @@ -1,22 +1,14 @@ <template> <div class="text-xs-center"> <v-badge left> - <span slot="badge"> - 2 - </span> + <span slot="badge">2</span> <span>Examples</span> </v-badge> &nbsp;&nbsp; <v-badge color="green"> - <v-icon - slot="badge" - dark - small - > - list - </v-icon> + <v-icon slot="badge" dark small>list</v-icon> <span>Lists</span> </v-badge> </div> diff --git a/packages/docs/src/examples/badges/overlap.vue b/packages/docs/src/examples/badges/overlap.vue index a6746f7e67d..a54af158236 100644 --- a/packages/docs/src/examples/badges/overlap.vue +++ b/packages/docs/src/examples/badges/overlap.vue @@ -9,9 +9,7 @@ slot="badge" dark small - > - done - </v-icon> + >done</v-icon> <v-icon color="grey lighten-1" large @@ -28,9 +26,7 @@ slot="badge" dark small - > - notifications - </v-icon> + >notifications</v-icon> <v-icon large color="grey darken-1" diff --git a/packages/docs/src/examples/badges/usage.vue b/packages/docs/src/examples/badges/usage.vue index ba2f89c9c75..20a919db467 100644 --- a/packages/docs/src/examples/badges/usage.vue +++ b/packages/docs/src/examples/badges/usage.vue @@ -1,9 +1,7 @@ <template> <div class="text-xs-center"> <v-badge left> - <span slot="badge"> - 6 - </span> + <span slot="badge">6</span> <v-icon large color="grey lighten-1" @@ -13,9 +11,7 @@ </v-badge> <v-badge color="red"> - <span slot="badge"> - ! - </span> + <span slot="badge">!</span> <v-icon large color="grey" diff --git a/packages/docs/src/examples/badges/visibility.vue b/packages/docs/src/examples/badges/visibility.vue index fbc4f44f190..6871d659cf3 100644 --- a/packages/docs/src/examples/badges/visibility.vue +++ b/packages/docs/src/examples/badges/visibility.vue @@ -1,8 +1,5 @@ <template> - <v-container - fluid - class="text-xs-center" - > + <v-container fluid class="text-xs-center"> <v-layout justify-space-between row @@ -18,39 +15,25 @@ </v-btn> </v-flex> - <v-flex - xs12 - class="mt-5" - > + <v-flex xs12 class="mt-5"> <v-badge v-model="show" color="cyan" left > - <span slot="badge"> - 6 - </span> + <span slot="badge">6</span> <v-icon large color="grey lighten-1" - > - shopping_cart - </v-icon> + >shopping_cart</v-icon> </v-badge> <v-badge v-model="show" color="purple" > - <span slot="badge"> - 6 - </span> - <v-icon - large - color="grey" - > - mail - </v-icon> + <span slot="badge">6</span> + <v-icon large color="grey">mail</v-icon> </v-badge> </v-flex> </v-layout> diff --git a/packages/docs/src/examples/bottom-navigation/colorAndShift.vue b/packages/docs/src/examples/bottom-navigation/colorAndShift.vue index 0e324a6b162..28ae58d5687 100644 --- a/packages/docs/src/examples/bottom-navigation/colorAndShift.vue +++ b/packages/docs/src/examples/bottom-navigation/colorAndShift.vue @@ -46,7 +46,6 @@ case 1: return 'teal' case 2: return 'brown' case 3: return 'indigo' - default: return 'cyan' } } } diff --git a/packages/docs/src/examples/bottom-navigation/toggle.vue b/packages/docs/src/examples/bottom-navigation/toggle.vue index 323897de9f0..6bab3d70a3d 100644 --- a/packages/docs/src/examples/bottom-navigation/toggle.vue +++ b/packages/docs/src/examples/bottom-navigation/toggle.vue @@ -19,26 +19,17 @@ absolute color="transparent" > - <v-btn - flat - color="teal" - > + <v-btn flat color="teal"> <span>Recents</span> <v-icon>history</v-icon> </v-btn> - <v-btn - flat - color="teal" - > + <v-btn flat color="teal"> <span>Favorites</span> <v-icon>favorite</v-icon> </v-btn> - <v-btn - flat - color="teal" - > + <v-btn flat color="teal"> <span>Nearby</span> <v-icon>place</v-icon> </v-btn> diff --git a/packages/docs/src/examples/bottom-navigation/usage.vue b/packages/docs/src/examples/bottom-navigation/usage.vue index df47730aa53..233fea8eddc 100644 --- a/packages/docs/src/examples/bottom-navigation/usage.vue +++ b/packages/docs/src/examples/bottom-navigation/usage.vue @@ -1,8 +1,5 @@ <template> - <v-card - height="200px" - flat - > + <v-card height="200px" flat> <div class="headline text-xs-center pa-5"> Active: {{ bottomNav }} </div> diff --git a/packages/docs/src/examples/bottom-sheets/usage.vue b/packages/docs/src/examples/bottom-sheets/usage.vue index 7a81effc9dd..afb84a2dd9b 100644 --- a/packages/docs/src/examples/bottom-sheets/usage.vue +++ b/packages/docs/src/examples/bottom-sheets/usage.vue @@ -17,10 +17,7 @@ @click="sheet = false" > <v-list-tile-avatar> - <v-avatar - size="32px" - tile - > + <v-avatar size="32px" tile> <img :src="`https://cdn.vuetifyjs.com/images/bottom-sheets/${tile.img}`" :alt="tile.title" diff --git a/packages/docs/src/examples/breadcrumbs/iconDividers.vue b/packages/docs/src/examples/breadcrumbs/iconDividers.vue index 449676155ba..8f7ca01c4ed 100644 --- a/packages/docs/src/examples/breadcrumbs/iconDividers.vue +++ b/packages/docs/src/examples/breadcrumbs/iconDividers.vue @@ -1,15 +1,11 @@ <template> <div> <v-breadcrumbs :items="items"> - <v-icon slot="divider"> - forward - </v-icon> + <v-icon slot="divider">forward</v-icon> </v-breadcrumbs> <v-breadcrumbs :items="items"> - <v-icon slot="divider"> - chevron_right - </v-icon> + <v-icon slot="divider">chevron_right</v-icon> </v-breadcrumbs> </div> </template> diff --git a/packages/docs/src/examples/breadcrumbs/itemSlot.vue b/packages/docs/src/examples/breadcrumbs/itemSlot.vue index 82055d2980c..4366f68a808 100644 --- a/packages/docs/src/examples/breadcrumbs/itemSlot.vue +++ b/packages/docs/src/examples/breadcrumbs/itemSlot.vue @@ -1,16 +1,8 @@ <template> <div> <v-breadcrumbs :items="items"> - <template - slot="item" - slot-scope="props" - > - <a - :href="props.item.href" - :class="[props.item.disabled && 'disabled']" - > - {{ props.item.text.toUpperCase() }} - </a> + <template slot="item" slot-scope="props"> + <a :href="props.item.href" :class="[props.item.disabled && 'disabled']">{{ props.item.text.toUpperCase() }}</a> </template> </v-breadcrumbs> </div> diff --git a/packages/docs/src/examples/breadcrumbs/usage.vue b/packages/docs/src/examples/breadcrumbs/usage.vue index 29e460850c9..56da1a7d214 100644 --- a/packages/docs/src/examples/breadcrumbs/usage.vue +++ b/packages/docs/src/examples/breadcrumbs/usage.vue @@ -1,14 +1,8 @@ <template> <div> - <v-breadcrumbs - :items="items" - divider=">" - ></v-breadcrumbs> + <v-breadcrumbs :items="items" divider=">"></v-breadcrumbs> - <v-breadcrumbs - :items="items" - divider="-" - ></v-breadcrumbs> + <v-breadcrumbs :items="items" divider="-"></v-breadcrumbs> </div> </template> diff --git a/packages/docs/src/examples/button-groups/appBar.vue b/packages/docs/src/examples/button-groups/appBar.vue index 5aee517d9b5..d07eced123d 100644 --- a/packages/docs/src/examples/button-groups/appBar.vue +++ b/packages/docs/src/examples/button-groups/appBar.vue @@ -28,31 +28,19 @@ class="transparent" multiple > - <v-btn - :value="1" - flat - > + <v-btn :value="1" flat> <v-icon>format_bold</v-icon> </v-btn> - <v-btn - :value="2" - flat - > + <v-btn :value="2" flat> <v-icon>format_italic</v-icon> </v-btn> - <v-btn - :value="3" - flat - > + <v-btn :value="3" flat> <v-icon>format_underlined</v-icon> </v-btn> - <v-btn - :value="4" - flat - > + <v-btn :value="4" flat> <v-icon>format_color_fill</v-icon> </v-btn> </v-btn-toggle> @@ -66,31 +54,19 @@ v-model="toggle_exclusive" class="transparent" > - <v-btn - :value="1" - flat - > + <v-btn :value="1" flat> <v-icon>format_align_left</v-icon> </v-btn> - <v-btn - :value="2" - flat - > + <v-btn :value="2" flat> <v-icon>format_align_center</v-icon> </v-btn> - <v-btn - :value="3" - flat - > + <v-btn :value="3" flat> <v-icon>format_align_right</v-icon> </v-btn> - <v-btn - :value="4" - flat - > + <v-btn :value="4" flat> <v-icon>format_align_justify</v-icon> </v-btn> </v-btn-toggle> diff --git a/packages/docs/src/examples/button-groups/usage.vue b/packages/docs/src/examples/button-groups/usage.vue index 106d376977e..222d6b6b713 100644 --- a/packages/docs/src/examples/button-groups/usage.vue +++ b/packages/docs/src/examples/button-groups/usage.vue @@ -1,22 +1,9 @@ <template> - <v-card - flat - class="py-5" - > + <v-card flat class="py-5"> <v-card-text> - <v-container - fluid - class="pa-0" - > - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - class="py-2" - > + <v-container fluid class="pa-0"> + <v-layout row wrap> + <v-flex xs12 sm6 class="py-2"> <p>Exclusive</p> <v-btn-toggle v-model="toggle_exclusive"> <v-btn flat> @@ -33,16 +20,9 @@ </v-btn> </v-btn-toggle> </v-flex> - <v-flex - xs12 - sm6 - class="py-2" - > + <v-flex xs12 sm6 class="py-2"> <p>Multiple</p> - <v-btn-toggle - v-model="toggle_multiple" - multiple - > + <v-btn-toggle v-model="toggle_multiple" multiple> <v-btn flat> <v-icon>format_bold</v-icon> </v-btn> @@ -57,11 +37,7 @@ </v-btn> </v-btn-toggle> </v-flex> - <v-flex - xs12 - sm6 - class="py-2" - > + <v-flex xs12 sm6 class="py-2"> <p>No Options Selected</p> <v-btn-toggle v-model="toggle_none"> <v-btn flat> @@ -78,16 +54,9 @@ </v-btn> </v-btn-toggle> </v-flex> - <v-flex - xs12 - sm6 - class="py-2" - > + <v-flex xs12 sm6 class="py-2"> <p>Mandatory</p> - <v-btn-toggle - v-model="toggle_one" - mandatory - > + <v-btn-toggle v-model="toggle_one" mandatory> <v-btn flat> <v-icon>format_align_left</v-icon> </v-btn> @@ -102,71 +71,39 @@ </v-btn> </v-btn-toggle> </v-flex> - <v-flex - xs12 - sm6 - class="py-2" - > + <v-flex xs12 sm6 class="py-2"> <p>Text Options</p> <v-btn-toggle v-model="text"> - <v-btn - flat - value="left" - > + <v-btn flat value="left"> Left </v-btn> - <v-btn - flat - value="center" - > + <v-btn flat value="center"> Center </v-btn> - <v-btn - flat - value="right" - > + <v-btn flat value="right"> Right </v-btn> - <v-btn - flat - value="justify" - > + <v-btn flat value="justify"> Justify </v-btn> </v-btn-toggle> </v-flex> - <v-flex - xs12 - sm6 - class="py-2" - > + <v-flex xs12 sm6 class="py-2"> <p>Text &amp; Icon Options</p> <v-btn-toggle v-model="icon"> - <v-btn - flat - value="left" - > + <v-btn flat value="left"> <span>Left</span> <v-icon>format_align_left</v-icon> </v-btn> - <v-btn - flat - value="center" - > + <v-btn flat value="center"> <span>Center</span> <v-icon>format_align_center</v-icon> </v-btn> - <v-btn - flat - value="right" - > + <v-btn flat value="right"> <span>Right</span> <v-icon>format_align_right</v-icon> </v-btn> - <v-btn - flat - value="justify" - > + <v-btn flat value="justify"> <span>Justify</span> <v-icon>format_align_justify</v-icon> </v-btn> diff --git a/packages/docs/src/examples/buttons/block.vue b/packages/docs/src/examples/buttons/block.vue index 9bfa3bc21a8..85f9a82aa2b 100644 --- a/packages/docs/src/examples/buttons/block.vue +++ b/packages/docs/src/examples/buttons/block.vue @@ -1,9 +1,3 @@ <template> - <v-btn - block - color="secondary" - dark - > - Block Button - </v-btn> + <v-btn block color="secondary" dark>Block Button</v-btn> </template> diff --git a/packages/docs/src/examples/buttons/depressed.vue b/packages/docs/src/examples/buttons/depressed.vue index 082433a2ae5..32a7d6694ee 100644 --- a/packages/docs/src/examples/buttons/depressed.vue +++ b/packages/docs/src/examples/buttons/depressed.vue @@ -1,122 +1,47 @@ <template> <v-layout align-center> - <v-flex - xs12 - sm4 - text-xs-center - > + <v-flex xs12 sm4 text-xs-center> <div> - <v-btn - depressed - small - > - Normal - </v-btn> + <v-btn depressed small>Normal</v-btn> </div> <div> - <v-btn - depressed - small - color="primary" - > - Primary - </v-btn> + <v-btn depressed small color="primary">Primary</v-btn> </div> <div> - <v-btn - depressed - small - color="error" - > - Error - </v-btn> + <v-btn depressed small color="error">Error</v-btn> </div> <div> - <v-btn - depressed - small - disabled - > - Disabled - </v-btn> + <v-btn depressed small disabled>Disabled</v-btn> </div> </v-flex> - <v-flex - xs12 - sm4 - text-xs-center - > + <v-flex xs12 sm4 text-xs-center> <div> - <v-btn depressed> - Normal - </v-btn> + <v-btn depressed>Normal</v-btn> </div> <div> - <v-btn - depressed - color="primary" - > - Primary - </v-btn> + <v-btn depressed color="primary">Primary</v-btn> </div> <div> - <v-btn - depressed - color="error" - > - Error - </v-btn> + <v-btn depressed color="error">Error</v-btn> </div> <div> - <v-btn - depressed - disabled - > - Disabled - </v-btn> + <v-btn depressed disabled>Disabled</v-btn> </div> </v-flex> - <v-flex - xs12 - sm4 - text-xs-center - > + <v-flex xs12 sm4 text-xs-center> <div> - <v-btn - depressed - large - > - Normal - </v-btn> + <v-btn depressed large>Normal</v-btn> </div> <div> - <v-btn - depressed - large - color="primary" - > - Primary - </v-btn> + <v-btn depressed large color="primary">Primary</v-btn> </div> <div> - <v-btn - depressed - large - color="error" - > - Error - </v-btn> + <v-btn depressed large color="error">Error</v-btn> </div> <div> - <v-btn - depressed - large - disabled - > - Disabled - </v-btn> + <v-btn depressed large disabled>Disabled</v-btn> </div> </v-flex> </v-layout> diff --git a/packages/docs/src/examples/buttons/dropdown.vue b/packages/docs/src/examples/buttons/dropdown.vue index 9ef2ccd5e52..ba957e20d46 100644 --- a/packages/docs/src/examples/buttons/dropdown.vue +++ b/packages/docs/src/examples/buttons/dropdown.vue @@ -1,16 +1,7 @@ <template> - <v-container - id="dropdown-example" - grid-list-xl - > - <v-layout - row - wrap - > - <v-flex - xs12 - sm4 - > + <v-container id="dropdown-example" grid-list-xl> + <v-layout row wrap> + <v-flex xs12 sm4> <p>Overflow</p> <v-overflow-btn @@ -20,10 +11,7 @@ ></v-overflow-btn> </v-flex> - <v-flex - xs12 - sm4 - > + <v-flex xs12 sm4> <p>Segmented</p> <v-overflow-btn @@ -34,10 +22,7 @@ ></v-overflow-btn> </v-flex> - <v-flex - xs12 - sm4 - > + <v-flex xs12 sm4> <p>Editable</p> <v-overflow-btn diff --git a/packages/docs/src/examples/buttons/flat.vue b/packages/docs/src/examples/buttons/flat.vue index 993d69d8b2f..732458272d9 100644 --- a/packages/docs/src/examples/buttons/flat.vue +++ b/packages/docs/src/examples/buttons/flat.vue @@ -1,122 +1,47 @@ <template> <v-layout align-center> - <v-flex - xs12 - sm4 - text-xs-center - > + <v-flex xs12 sm4 text-xs-center> <div> - <v-btn - flat - small - > - Normal - </v-btn> + <v-btn flat small>Normal</v-btn> </div> <div> - <v-btn - flat - small - color="primary" - > - Primary - </v-btn> + <v-btn flat small color="primary">Primary</v-btn> </div> <div> - <v-btn - flat - small - color="error" - > - Error - </v-btn> + <v-btn flat small color="error">Error</v-btn> </div> <div> - <v-btn - flat - small - disabled - > - Disabled - </v-btn> + <v-btn flat small disabled>Disabled</v-btn> </div> </v-flex> - <v-flex - xs12 - sm4 - text-xs-center - > + <v-flex xs12 sm4 text-xs-center> <div> - <v-btn flat> - Normal - </v-btn> + <v-btn flat>Normal</v-btn> </div> <div> - <v-btn - flat - color="primary" - > - Primary - </v-btn> + <v-btn flat color="primary">Primary</v-btn> </div> <div> - <v-btn - flat - color="error" - > - Error - </v-btn> + <v-btn flat color="error">Error</v-btn> </div> <div> - <v-btn - flat - disabled - > - Disabled - </v-btn> + <v-btn flat disabled>Disabled</v-btn> </div> </v-flex> - <v-flex - xs12 - sm4 - text-xs-center - > + <v-flex xs12 sm4 text-xs-center> <div> - <v-btn - flat - large - > - Normal - </v-btn> + <v-btn flat large>Normal</v-btn> </div> <div> - <v-btn - flat - large - color="primary" - > - Primary - </v-btn> + <v-btn flat large color="primary">Primary</v-btn> </div> <div> - <v-btn - flat - large - color="error" - > - Error - </v-btn> + <v-btn flat large color="error">Error</v-btn> </div> <div> - <v-btn - flat - large - disabled - > - Disabled - </v-btn> + <v-btn flat large disabled>Disabled</v-btn> </div> </v-flex> </v-layout> diff --git a/packages/docs/src/examples/buttons/floating.vue b/packages/docs/src/examples/buttons/floating.vue index f5a5f8c3ece..ea8bbe62f76 100644 --- a/packages/docs/src/examples/buttons/floating.vue +++ b/packages/docs/src/examples/buttons/floating.vue @@ -1,67 +1,27 @@ <template> <div class="text-xs-center"> - <v-btn - fab - dark - small - color="primary" - > - <v-icon dark> - remove - </v-icon> + <v-btn fab dark small color="primary"> + <v-icon dark>remove</v-icon> </v-btn> - <v-btn - fab - dark - small - color="pink" - > - <v-icon dark> - favorite - </v-icon> + <v-btn fab dark small color="pink"> + <v-icon dark>favorite</v-icon> </v-btn> - <v-btn - fab - dark - color="indigo" - > - <v-icon dark> - add - </v-icon> + <v-btn fab dark color="indigo"> + <v-icon dark>add</v-icon> </v-btn> - <v-btn - fab - dark - color="teal" - > - <v-icon dark> - list - </v-icon> + <v-btn fab dark color="teal"> + <v-icon dark>list</v-icon> </v-btn> - <v-btn - fab - dark - large - color="cyan" - > - <v-icon dark> - edit - </v-icon> + <v-btn fab dark large color="cyan"> + <v-icon dark>edit</v-icon> </v-btn> - <v-btn - fab - dark - large - color="purple" - > - <v-icon dark> - android - </v-icon> + <v-btn fab dark large color="purple"> + <v-icon dark>android</v-icon> </v-btn> </div> </template> diff --git a/packages/docs/src/examples/buttons/icon.vue b/packages/docs/src/examples/buttons/icon.vue index 5db00beb06e..66c2b18acff 100644 --- a/packages/docs/src/examples/buttons/icon.vue +++ b/packages/docs/src/examples/buttons/icon.vue @@ -1,124 +1,62 @@ <template> <v-card flat> <v-card-text> - <v-container - fluid - class="pa-0" - > - <v-layout - row - wrap - > + <v-container fluid class="pa-0"> + <v-layout row wrap> <v-flex xs12> <p>Normal</p> </v-flex> - <v-flex - xs12 - sm3 - > - <v-btn - flat - icon - color="pink" - > + <v-flex xs12 sm3> + <v-btn flat icon color="pink"> <v-icon>favorite</v-icon> </v-btn> </v-flex> - <v-flex - xs12 - sm3 - > - <v-btn - flat - icon - color="indigo" - > + <v-flex xs12 sm3> + <v-btn flat icon color="indigo"> <v-icon>star</v-icon> </v-btn> </v-flex> - <v-flex - xs12 - sm3 - > - <v-btn - flat - icon - color="green" - > + <v-flex xs12 sm3> + <v-btn flat icon color="green"> <v-icon>cached</v-icon> </v-btn> </v-flex> - <v-flex - xs12 - sm3 - > - <v-btn - flat - icon - color="deep-orange" - > + <v-flex xs12 sm3> + <v-btn flat icon color="deep-orange"> <v-icon>thumb_up</v-icon> </v-btn> </v-flex> </v-layout> - <v-layout - row - wrap - class="mt-5" - > + <v-layout row wrap class="mt-5"> <v-flex xs12> <p>Disabled</p> </v-flex> - <v-flex - xs12 - sm3 - > - <v-btn - icon - disabled - > + <v-flex xs12 sm3> + <v-btn icon disabled> <v-icon>favorite</v-icon> </v-btn> </v-flex> - <v-flex - xs12 - sm3 - > - <v-btn - icon - disabled - > + <v-flex xs12 sm3> + <v-btn icon disabled> <v-icon>star</v-icon> </v-btn> </v-flex> - <v-flex - xs12 - sm3 - > - <v-btn - icon - disabled - > + <v-flex xs12 sm3> + <v-btn icon disabled> <v-icon>cached</v-icon> </v-btn> </v-flex> - <v-flex - xs12 - sm3 - > - <v-btn - icon - disabled - > + <v-flex xs12 sm3> + <v-btn icon disabled> <v-icon>thumb_up</v-icon> </v-btn> </v-flex> diff --git a/packages/docs/src/examples/buttons/loaders.vue b/packages/docs/src/examples/buttons/loaders.vue index c1c6175557b..df4dc158e2c 100644 --- a/packages/docs/src/examples/buttons/loaders.vue +++ b/packages/docs/src/examples/buttons/loaders.vue @@ -17,12 +17,7 @@ @click="loader = 'loading3'" > Upload - <v-icon - right - dark - > - cloud_upload - </v-icon> + <v-icon right dark>cloud_upload</v-icon> </v-btn> <v-btn @@ -32,9 +27,7 @@ @click="loader = 'loading2'" > Custom Loader - <span slot="loader"> - Loading... - </span> + <span slot="loader">Loading...</span> </v-btn> <v-btn @@ -44,13 +37,8 @@ @click="loader = 'loading4'" > Icon Loader - <span - slot="loader" - class="custom-loader" - > - <v-icon light> - cached - </v-icon> + <span slot="loader" class="custom-loader"> + <v-icon light>cached</v-icon> </span> </v-btn> </div> diff --git a/packages/docs/src/examples/buttons/outline.vue b/packages/docs/src/examples/buttons/outline.vue index e1f2172e3bf..e4f702149f0 100644 --- a/packages/docs/src/examples/buttons/outline.vue +++ b/packages/docs/src/examples/buttons/outline.vue @@ -1,24 +1,10 @@ <template> <div class="text-xs-center"> - <v-btn - outline - color="indigo" - > - Outline Button - </v-btn> - <v-btn - outline - fab - color="teal" - > + <v-btn outline color="indigo">Outline Button</v-btn> + <v-btn outline fab color="teal"> <v-icon>list</v-icon> </v-btn> - <v-btn - outline - large - fab - color="indigo" - > + <v-btn outline large fab color="indigo"> <v-icon>edit</v-icon> </v-btn> </div> diff --git a/packages/docs/src/examples/buttons/raised.vue b/packages/docs/src/examples/buttons/raised.vue index 8d983a7dd71..71292214575 100644 --- a/packages/docs/src/examples/buttons/raised.vue +++ b/packages/docs/src/examples/buttons/raised.vue @@ -1,97 +1,45 @@ <template> <v-layout align-center> - <v-flex - xs12 - sm4 - text-xs-center - > + <v-flex xs12 sm4 text-xs-center> <div> - <v-btn small> - Normal - </v-btn> + <v-btn small>Normal</v-btn> </div> <div> - <v-btn - small - color="primary" - > - Primary - </v-btn> + <v-btn small color="primary">Primary</v-btn> </div> <div> - <v-btn - small - color="error" - > - Error - </v-btn> + <v-btn small color="error">Error</v-btn> </div> <div> - <v-btn - small - disabled - > - Disabled - </v-btn> + <v-btn small disabled>Disabled</v-btn> </div> </v-flex> - <v-flex - xs12 - sm4 - text-xs-center - > + <v-flex xs12 sm4 text-xs-center> <div> <v-btn>Normal</v-btn> </div> <div> - <v-btn color="primary"> - Primary - </v-btn> + <v-btn color="primary">Primary</v-btn> </div> <div> - <v-btn color="error"> - Error - </v-btn> + <v-btn color="error">Error</v-btn> </div> <div> - <v-btn disabled> - Disabled - </v-btn> + <v-btn disabled>Disabled</v-btn> </div> </v-flex> - <v-flex - xs12 - sm4 - text-xs-center - > + <v-flex xs12 sm4 text-xs-center> <div> - <v-btn large> - Normal - </v-btn> + <v-btn large>Normal</v-btn> </div> <div> - <v-btn - large - color="primary" - > - Primary - </v-btn> + <v-btn large color="primary">Primary</v-btn> </div> <div> - <v-btn - large - color="error" - > - Error - </v-btn> + <v-btn large color="error">Error</v-btn> </div> <div> - <v-btn - large - disabled - > - Disabled - </v-btn> + <v-btn large disabled>Disabled</v-btn> </div> </v-flex> </v-layout> diff --git a/packages/docs/src/examples/buttons/round.vue b/packages/docs/src/examples/buttons/round.vue index 657b544c3f4..4ff85a87a11 100644 --- a/packages/docs/src/examples/buttons/round.vue +++ b/packages/docs/src/examples/buttons/round.vue @@ -1,11 +1,5 @@ <template> <div class="text-xs-center"> - <v-btn - round - color="primary" - dark - > - Rounded Button - </v-btn> + <v-btn round color="primary" dark>Rounded Button</v-btn> </div> </template> diff --git a/packages/docs/src/examples/buttons/sizing.vue b/packages/docs/src/examples/buttons/sizing.vue index 0e7ba901d9e..e88a87585fb 100644 --- a/packages/docs/src/examples/buttons/sizing.vue +++ b/packages/docs/src/examples/buttons/sizing.vue @@ -1,77 +1,33 @@ <template> - <v-container - fluid - class="pa-0" - > - <v-layout - row - wrap - align-center - > - <v-flex - xs12 - sm6 - > + <v-container fluid class="pa-0"> + <v-layout row wrap align-center> + <v-flex xs12 sm6> <div class="text-xs-center"> <div> - <v-btn - small - color="primary" - dark - > - Small Button - </v-btn> + <v-btn small color="primary" dark>Small Button</v-btn> </div> <div> - <v-btn - color="warning" - dark - > - Normal Button - </v-btn> + <v-btn color="warning" dark>Normal Button</v-btn> </div> <div> - <v-btn - color="error" - dark - large - > - Large Button - </v-btn> + <v-btn color="error" dark large>Large Button</v-btn> </div> </div> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <div class="text-xs-center"> <div> - <v-btn - color="primary" - fab - small - dark - > + <v-btn color="primary" fab small dark> <v-icon>edit</v-icon> </v-btn> </div> <div> - <v-btn - color="warning" - fab - dark - > + <v-btn color="warning" fab dark> <v-icon>account_circle</v-icon> </v-btn> </div> <div> - <v-btn - color="error" - fab - large - dark - > + <v-btn color="error" fab large dark> <v-icon>alarm</v-icon> </v-btn> </div> diff --git a/packages/docs/src/examples/buttons/usage.vue b/packages/docs/src/examples/buttons/usage.vue index 4092816fe15..92445205944 100644 --- a/packages/docs/src/examples/buttons/usage.vue +++ b/packages/docs/src/examples/buttons/usage.vue @@ -1,16 +1,8 @@ <template> <div> - <v-btn color="success"> - Success - </v-btn> - <v-btn color="error"> - Error - </v-btn> - <v-btn color="warning"> - Warning - </v-btn> - <v-btn color="info"> - Info - </v-btn> + <v-btn color="success">Success</v-btn> + <v-btn color="error">Error</v-btn> + <v-btn color="warning">Warning</v-btn> + <v-btn color="info">Info</v-btn> </div> </template> diff --git a/packages/docs/src/examples/calendars/events.vue b/packages/docs/src/examples/calendars/events.vue index 9fbd4dd30d7..dfb6cf33d3f 100644 --- a/packages/docs/src/examples/calendars/events.vue +++ b/packages/docs/src/examples/calendars/events.vue @@ -19,9 +19,9 @@ offset-x > <div + v-ripple v-if="!event.time" slot="activator" - v-ripple class="my-event" v-html="event.title" ></div> diff --git a/packages/docs/src/examples/cards/customActions.vue b/packages/docs/src/examples/cards/customActions.vue index cfc9373f17f..117a2257bfa 100644 --- a/packages/docs/src/examples/cards/customActions.vue +++ b/packages/docs/src/examples/cards/customActions.vue @@ -1,10 +1,6 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> <v-img src="https://cdn.vuetifyjs.com/images/cards/sunshine.jpg" @@ -14,30 +10,16 @@ <v-card-title primary-title> <div> - <div class="headline"> - Top western road trips - </div> - <span class="grey--text"> - 1,000 miles of wonder - </span> + <div class="headline">Top western road trips</div> + <span class="grey--text">1,000 miles of wonder</span> </div> </v-card-title> <v-card-actions> - <v-btn flat> - Share - </v-btn> - <v-btn - flat - color="purple" - > - Explore - </v-btn> + <v-btn flat>Share</v-btn> + <v-btn flat color="purple">Explore</v-btn> <v-spacer></v-spacer> - <v-btn - icon - @click="show = !show" - > + <v-btn icon @click="show = !show"> <v-icon>{{ show ? 'keyboard_arrow_down' : 'keyboard_arrow_up' }}</v-icon> </v-btn> </v-card-actions> diff --git a/packages/docs/src/examples/cards/grids.vue b/packages/docs/src/examples/cards/grids.vue index 88f0b0f6c87..ea90bfcbac2 100644 --- a/packages/docs/src/examples/cards/grids.vue +++ b/packages/docs/src/examples/cards/grids.vue @@ -1,13 +1,7 @@ <template> <v-layout justify-center> - <v-flex - xs12 - sm6 - > - <v-toolbar - color="indigo" - dark - > + <v-flex xs12 sm6> + <v-toolbar color="indigo" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Discover</v-toolbar-title> <v-spacer></v-spacer> @@ -21,14 +15,11 @@ fluid grid-list-md > - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex v-for="card in cards" - :key="card.title" v-bind="{ [`xs${card.flex}`]: true }" + :key="card.title" > <v-card> <v-img @@ -41,15 +32,8 @@ pa-2 > <v-layout fill-height> - <v-flex - xs12 - align-end - flexbox - > - <span - class="headline white--text" - v-text="card.title" - ></span> + <v-flex xs12 align-end flexbox> + <span class="headline white--text" v-text="card.title"></span> </v-flex> </v-layout> </v-container> diff --git a/packages/docs/src/examples/cards/horizontal.vue b/packages/docs/src/examples/cards/horizontal.vue index d16a6ec24b9..76618dad8d2 100644 --- a/packages/docs/src/examples/cards/horizontal.vue +++ b/packages/docs/src/examples/cards/horizontal.vue @@ -21,39 +21,23 @@ fluid grid-list-lg > - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex xs12> - <v-card - color="blue-grey darken-2" - class="white--text" - > + <v-card color="blue-grey darken-2" class="white--text"> <v-card-title primary-title> <div> - <div class="headline"> - Unlimited music now - </div> + <div class="headline">Unlimited music now</div> <span>Listen to your favorite artists and albums whenever and wherever, online and offline.</span> </div> </v-card-title> <v-card-actions> - <v-btn - flat - dark - > - Listen now - </v-btn> + <v-btn flat dark>Listen now</v-btn> </v-card-actions> </v-card> </v-flex> <v-flex xs12> - <v-card - color="cyan darken-2" - class="white--text" - > + <v-card color="cyan darken-2" class="white--text"> <v-layout> <v-flex xs5> <v-img @@ -65,9 +49,7 @@ <v-flex xs7> <v-card-title primary-title> <div> - <div class="headline"> - Supermodel - </div> + <div class="headline">Supermodel</div> <div>Foster the People</div> <div>(2014)</div> </div> @@ -88,17 +70,12 @@ </v-flex> <v-flex xs12> - <v-card - color="purple" - class="white--text" - > + <v-card color="purple" class="white--text"> <v-layout row> <v-flex xs7> <v-card-title primary-title> <div> - <div class="headline"> - Halycon Days - </div> + <div class="headline">Halycon Days</div> <div>Ellie Goulding</div> <div>(2013)</div> </div> diff --git a/packages/docs/src/examples/cards/mediaWithText.vue b/packages/docs/src/examples/cards/mediaWithText.vue index f5318e599a0..a423d455caa 100644 --- a/packages/docs/src/examples/cards/mediaWithText.vue +++ b/packages/docs/src/examples/cards/mediaWithText.vue @@ -1,55 +1,30 @@ <template> <v-layout> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> <v-img class="white--text" height="200px" src="https://cdn.vuetifyjs.com/images/cards/docks.jpg" > - <v-container - fill-height - fluid - > + <v-container fill-height fluid> <v-layout fill-height> - <v-flex - xs12 - align-end - flexbox - > - <span class="headline"> - Top 10 Australian beaches - </span> + <v-flex xs12 align-end flexbox> + <span class="headline">Top 10 Australian beaches</span> </v-flex> </v-layout> </v-container> </v-img> <v-card-title> <div> - <span class="grey--text"> - Number 10 - </span><br> + <span class="grey--text">Number 10</span><br> <span>Whitehaven Beach</span><br> <span>Whitsunday Island, Whitsunday Islands</span> </div> </v-card-title> <v-card-actions> - <v-btn - flat - color="orange" - > - Share - </v-btn> - <v-btn - flat - color="orange" - > - Explore - </v-btn> + <v-btn flat color="orange">Share</v-btn> + <v-btn flat color="orange">Explore</v-btn> </v-card-actions> </v-card> </v-flex> diff --git a/packages/docs/src/examples/cards/twitterCard.vue b/packages/docs/src/examples/cards/twitterCard.vue index 1c1e3228f2b..8a4ed9a56df 100644 --- a/packages/docs/src/examples/cards/twitterCard.vue +++ b/packages/docs/src/examples/cards/twitterCard.vue @@ -12,9 +12,7 @@ > mdi-twitter </v-icon> - <span class="title font-weight-light"> - Twitter - </span> + <span class="title font-weight-light">Twitter</span> </v-card-title> <v-card-text class="headline font-weight-bold"> @@ -38,21 +36,11 @@ align-center justify-end > - <v-icon class="mr-1"> - mdi-heart - </v-icon> - <span class="subheading mr-2"> - 256 - </span> - <span class="mr-1"> - · - </span> - <v-icon class="mr-1"> - mdi-share-variant - </v-icon> - <span class="subheading"> - 45 - </span> + <v-icon class="mr-1">mdi-heart</v-icon> + <span class="subheading mr-2">256</span> + <span class="mr-1">·</span> + <v-icon class="mr-1">mdi-share-variant</v-icon> + <span class="subheading">45</span> </v-layout> </v-list-tile> </v-card-actions> diff --git a/packages/docs/src/examples/cards/usage.vue b/packages/docs/src/examples/cards/usage.vue index d191082e6a2..8efdc728e5b 100644 --- a/packages/docs/src/examples/cards/usage.vue +++ b/packages/docs/src/examples/cards/usage.vue @@ -1,10 +1,6 @@ <template> <v-layout> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> <v-img src="https://cdn.vuetifyjs.com/images/cards/desert.jpg" @@ -13,26 +9,14 @@ <v-card-title primary-title> <div> - <h3 class="headline mb-0"> - Kangaroo Valley Safari - </h3> + <h3 class="headline mb-0">Kangaroo Valley Safari</h3> <div>Located two hours south of Sydney in the <br>Southern Highlands of New South Wales, ...</div> </div> </v-card-title> <v-card-actions> - <v-btn - flat - color="orange" - > - Share - </v-btn> - <v-btn - flat - color="orange" - > - Explore - </v-btn> + <v-btn flat color="orange">Share</v-btn> + <v-btn flat color="orange">Explore</v-btn> </v-card-actions> </v-card> </v-flex> diff --git a/packages/docs/src/examples/chips/closable.vue b/packages/docs/src/examples/chips/closable.vue index 66bdcc216e9..36c4a4c5015 100644 --- a/packages/docs/src/examples/chips/closable.vue +++ b/packages/docs/src/examples/chips/closable.vue @@ -14,27 +14,21 @@ <v-chip v-model="chip1" close - > - Closable - </v-chip> + >Closable</v-chip> <v-chip v-model="chip2" close color="red" text-color="white" - > - Remove - </v-chip> + >Remove</v-chip> <v-chip v-model="chip3" close color="green" outline - > - Success - </v-chip> + >Success</v-chip> <v-chip v-model="chip4" @@ -42,9 +36,7 @@ color="orange" label outline - > - Complete - </v-chip> + >Complete</v-chip> </div> </template> diff --git a/packages/docs/src/examples/chips/colored.vue b/packages/docs/src/examples/chips/colored.vue index 7e58f502276..b7a85b8f494 100644 --- a/packages/docs/src/examples/chips/colored.vue +++ b/packages/docs/src/examples/chips/colored.vue @@ -1,31 +1,11 @@ <template> <div class="text-xs-center"> - <v-chip - color="primary" - text-color="white" - > - Primary - </v-chip> + <v-chip color="primary" text-color="white">Primary</v-chip> - <v-chip - color="secondary" - text-color="white" - > - Secondary - </v-chip> + <v-chip color="secondary" text-color="white">Secondary</v-chip> - <v-chip - color="red" - text-color="white" - > - Colored Chip - </v-chip> + <v-chip color="red" text-color="white">Colored Chip</v-chip> - <v-chip - color="green" - text-color="white" - > - Colored Chip - </v-chip> + <v-chip color="green" text-color="white">Colored Chip</v-chip> </div> </template> diff --git a/packages/docs/src/examples/chips/icon.vue b/packages/docs/src/examples/chips/icon.vue index 93761178d44..9b243783ff7 100644 --- a/packages/docs/src/examples/chips/icon.vue +++ b/packages/docs/src/examples/chips/icon.vue @@ -1,50 +1,28 @@ <template> <div class="text-xs-center"> - <v-chip - color="indigo" - text-color="white" - > + <v-chip color="indigo" text-color="white"> <v-avatar> <v-icon>account_circle</v-icon> </v-avatar> Ranee </v-chip> - <v-chip - color="orange" - text-color="white" - > + <v-chip color="orange" text-color="white"> Premium - <v-icon right> - star - </v-icon> + <v-icon right>star</v-icon> </v-chip> - <v-chip - color="primary" - text-color="white" - > + <v-chip color="primary" text-color="white"> 1 Year - <v-icon right> - cake - </v-icon> + <v-icon right>cake</v-icon> </v-chip> - <v-chip - color="green" - text-color="white" - > - <v-avatar class="green darken-4"> - 1 - </v-avatar> + <v-chip color="green" text-color="white"> + <v-avatar class="green darken-4">1</v-avatar> Years </v-chip> - <v-chip - close - color="teal" - text-color="white" - > + <v-chip close color="teal" text-color="white"> <v-avatar> <v-icon>check_circle</v-icon> </v-avatar> diff --git a/packages/docs/src/examples/chips/inSelects.vue b/packages/docs/src/examples/chips/inSelects.vue index 798798a0eb0..69f18f2fe91 100644 --- a/packages/docs/src/examples/chips/inSelects.vue +++ b/packages/docs/src/examples/chips/inSelects.vue @@ -9,10 +9,7 @@ solo multiple > - <template - slot="selection" - slot-scope="data" - > + <template slot="selection" slot-scope="data"> <v-chip :selected="data.selected" close diff --git a/packages/docs/src/examples/chips/label.vue b/packages/docs/src/examples/chips/label.vue index f181899844d..2b7f9b9ac65 100644 --- a/packages/docs/src/examples/chips/label.vue +++ b/packages/docs/src/examples/chips/label.vue @@ -1,25 +1,11 @@ <template> <div class="text-xs-center"> - <v-chip label> - Label - </v-chip> + <v-chip label>Label</v-chip> - <v-chip - label - color="pink" - text-color="white" - > - <v-icon left> - label - </v-icon>Tags + <v-chip label color="pink" text-color="white"> + <v-icon left>label</v-icon>Tags </v-chip> - <v-chip - label - outline - color="red" - > - Outline - </v-chip> + <v-chip label outline color="red">Outline</v-chip> </div> </template> diff --git a/packages/docs/src/examples/chips/outline.vue b/packages/docs/src/examples/chips/outline.vue index 7f45d735cf9..fa4f5b0033b 100644 --- a/packages/docs/src/examples/chips/outline.vue +++ b/packages/docs/src/examples/chips/outline.vue @@ -1,26 +1,11 @@ <template> <div class="text-xs-center"> - <v-chip - outline - color="secondary" - > - Outline - </v-chip> + <v-chip outline color="secondary">Outline</v-chip> - <v-chip - outline - color="primary" - > - Colored - </v-chip> + <v-chip outline color="primary">Colored</v-chip> - <v-chip - outline - color="red" - > - <v-icon left> - build - </v-icon>Icon + <v-chip outline color="red"> + <v-icon left>build</v-icon>Icon </v-chip> </div> </template> diff --git a/packages/docs/src/examples/chips/usage.vue b/packages/docs/src/examples/chips/usage.vue index a6ba08ea678..e9d255d0bef 100644 --- a/packages/docs/src/examples/chips/usage.vue +++ b/packages/docs/src/examples/chips/usage.vue @@ -1,46 +1,26 @@ <template> - <v-container - fluid - class="pa-0" - > - <v-layout - row - wrap - > - <v-flex - md6 - sm12 - > + <v-container fluid class="pa-0"> + <v-layout row wrap> + <v-flex md6 sm12> <div class="text-xs-center"> - <v-chip close> - Example Chip - </v-chip> + <v-chip close>Example Chip</v-chip> </div> <div class="text-xs-center"> <v-chip>Example Chip</v-chip> </div> </v-flex> - <v-flex - md6 - sm12 - xs12 - > + <v-flex md6 sm12 xs12> <div class="text-xs-center"> <v-chip close> <v-avatar> - <img - src="https://randomuser.me/api/portraits/men/35.jpg" - alt="trevor" - > + <img src="https://randomuser.me/api/portraits/men/35.jpg" alt="trevor"> </v-avatar> Trevor Hansen </v-chip> </div> <div class="text-xs-center"> <v-chip> - <v-avatar class="teal"> - A - </v-avatar> + <v-avatar class="teal">A</v-avatar> ANZ Bank </v-chip> </div> diff --git a/packages/docs/src/examples/colors/classes.vue b/packages/docs/src/examples/colors/classes.vue index a0c000b7cb1..bc9b17546cd 100644 --- a/packages/docs/src/examples/colors/classes.vue +++ b/packages/docs/src/examples/colors/classes.vue @@ -1,7 +1,5 @@ <template> <div class="purple darken-2 text-xs-center"> - <span class="white--text"> - Lorem ipsum - </span> + <span class="white--text">Lorem ipsum</span> </div> </template> diff --git a/packages/docs/src/examples/colors/textClasses.vue b/packages/docs/src/examples/colors/textClasses.vue index 6a9368d2c8f..c84d3b397dc 100644 --- a/packages/docs/src/examples/colors/textClasses.vue +++ b/packages/docs/src/examples/colors/textClasses.vue @@ -1,9 +1,5 @@ <template> <div> - Lorem ipsum dolor sit amet, <strong class="red--text text--lighten-1"> - inciderint - </strong> definitionem est ea, explicari prodesset eam id. Mazim doctus vix an. <span class="indigo--text text--darken-2"> - Amet causae probatus nec ex - </span>. + Lorem ipsum dolor sit amet, <strong class="red--text text--lighten-1">inciderint</strong> definitionem est ea, explicari prodesset eam id. Mazim doctus vix an. <span class="indigo--text text--darken-2">Amet causae probatus nec ex</span>. </div> </template> diff --git a/packages/docs/src/examples/combobox/advanced.vue b/packages/docs/src/examples/combobox/advanced.vue index fec7ad405de..ad027e62995 100644 --- a/packages/docs/src/examples/combobox/advanced.vue +++ b/packages/docs/src/examples/combobox/advanced.vue @@ -13,9 +13,7 @@ > <template slot="no-data"> <v-list-tile> - <span class="subheading"> - Create - </span> + <span class="subheading">Create</span> <v-chip :color="`${colors[nonce - 1]} lighten-3`" label @@ -42,14 +40,12 @@ <v-icon small @click="parent.selectItem(item)" - > - close - </v-icon> + >close</v-icon> </v-chip> </template> <template slot="item" - slot-scope="{ index, item }" + slot-scope="{ index, item, parent }" > <v-list-tile-content> <v-text-field diff --git a/packages/docs/src/examples/combobox/comboboxMultiple.vue b/packages/docs/src/examples/combobox/comboboxMultiple.vue index 9227e6e9075..81956eaa7dc 100644 --- a/packages/docs/src/examples/combobox/comboboxMultiple.vue +++ b/packages/docs/src/examples/combobox/comboboxMultiple.vue @@ -31,9 +31,9 @@ slot-scope="data" > <v-chip - :key="JSON.stringify(data.item)" :selected="data.selected" :disabled="data.disabled" + :key="JSON.stringify(data.item)" class="v-chip--select-multi" @input="data.parent.selectItem(data.item)" > diff --git a/packages/docs/src/examples/combobox/usage.vue b/packages/docs/src/examples/combobox/usage.vue index 48a839ff3f8..56c64f11c74 100644 --- a/packages/docs/src/examples/combobox/usage.vue +++ b/packages/docs/src/examples/combobox/usage.vue @@ -23,14 +23,11 @@ chips label="I use a scoped slot" > - <template - slot="selection" - slot-scope="data" - > + <template slot="selection" slot-scope="data"> <v-chip - :key="JSON.stringify(data.item)" :selected="data.selected" :disabled="data.disabled" + :key="JSON.stringify(data.item)" class="v-chip--select-multi " @input="data.parent.selectItem(data.item)" > diff --git a/packages/docs/src/examples/content/block.vue b/packages/docs/src/examples/content/block.vue index fba44c9c81d..80660a78f15 100644 --- a/packages/docs/src/examples/content/block.vue +++ b/packages/docs/src/examples/content/block.vue @@ -1,5 +1,3 @@ <template> - <blockquote class="blockquote"> - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Harum maiores modi quidem veniam, expedita quis laboriosam, ullam facere adipisci, iusto, voluptate sapiente corrupti asperiores rem nemo numquam fuga ab at. - </blockquote> + <blockquote class="blockquote">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Harum maiores modi quidem veniam, expedita quis laboriosam, ullam facere adipisci, iusto, voluptate sapiente corrupti asperiores rem nemo numquam fuga ab at.</blockquote> </template> diff --git a/packages/docs/src/examples/data-iterator/slots.vue b/packages/docs/src/examples/data-iterator/slots.vue index cc2adba7b39..e798e501922 100644 --- a/packages/docs/src/examples/data-iterator/slots.vue +++ b/packages/docs/src/examples/data-iterator/slots.vue @@ -1,8 +1,5 @@ <template> - <v-container - fluid - grid-list-md - > + <v-container fluid grid-list-md> <v-data-iterator :items="items" :rows-per-page-items="rowsPerPageItems" @@ -31,60 +28,44 @@ lg3 > <v-card> - <v-card-title class="subheading font-weight-bold"> - {{ props.item.name }} - </v-card-title> + <v-card-title class="subheading font-weight-bold">{{ props.item.name }}</v-card-title> <v-divider></v-divider> <v-list dense> <v-list-tile> <v-list-tile-content>Calories:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.calories }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.calories }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Fat:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.fat }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.fat }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Carbs:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.carbs }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.carbs }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Protein:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.protein }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.protein }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Sodium:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.sodium }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.sodium }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Calcium:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.calcium }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.calcium }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Iron:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.iron }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.iron }}</v-list-tile-content> </v-list-tile> </v-list> </v-card> @@ -98,9 +79,7 @@ dense flat > - <v-toolbar-title class="subheading"> - This is a footer - </v-toolbar-title> + <v-toolbar-title class="subheading">This is a footer</v-toolbar-title> </v-toolbar> </v-data-iterator> </v-container> diff --git a/packages/docs/src/examples/data-iterator/usage.vue b/packages/docs/src/examples/data-iterator/usage.vue index 05b792b9bd3..a5c61815ccd 100644 --- a/packages/docs/src/examples/data-iterator/usage.vue +++ b/packages/docs/src/examples/data-iterator/usage.vue @@ -1,8 +1,5 @@ <template> - <v-container - fluid - grid-list-md - > + <v-container fluid grid-list-md> <v-data-iterator :items="items" :rows-per-page-items="rowsPerPageItems" @@ -25,45 +22,31 @@ <v-list dense> <v-list-tile> <v-list-tile-content>Calories:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.calories }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.calories }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Fat:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.fat }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.fat }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Carbs:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.carbs }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.carbs }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Protein:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.protein }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.protein }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Sodium:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.sodium }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.sodium }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Calcium:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.calcium }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.calcium }}</v-list-tile-content> </v-list-tile> <v-list-tile> <v-list-tile-content>Iron:</v-list-tile-content> - <v-list-tile-content class="align-end"> - {{ props.item.iron }} - </v-list-tile-content> + <v-list-tile-content class="align-end">{{ props.item.iron }}</v-list-tile-content> </v-list-tile> </v-list> </v-card> diff --git a/packages/docs/src/examples/data-tables/crud.vue b/packages/docs/src/examples/data-tables/crud.vue index 70255de63f2..1ffe7e043ba 100644 --- a/packages/docs/src/examples/data-tables/crud.vue +++ b/packages/docs/src/examples/data-tables/crud.vue @@ -1,9 +1,6 @@ <template> <div> - <v-toolbar - flat - color="white" - > + <v-toolbar flat color="white"> <v-toolbar-title>My CRUD</v-toolbar-title> <v-divider class="mx-2" @@ -11,77 +8,30 @@ vertical ></v-divider> <v-spacer></v-spacer> - <v-dialog - v-model="dialog" - max-width="500px" - > - <v-btn - slot="activator" - color="primary" - dark - class="mb-2" - > - New Item - </v-btn> + <v-dialog v-model="dialog" max-width="500px"> + <v-btn slot="activator" color="primary" dark class="mb-2">New Item</v-btn> <v-card> <v-card-title> - <span class="headline"> - {{ formTitle }} - </span> + <span class="headline">{{ formTitle }}</span> </v-card-title> <v-card-text> <v-container grid-list-md> <v-layout wrap> - <v-flex - xs12 - sm6 - md4 - > - <v-text-field - v-model="editedItem.name" - label="Dessert name" - ></v-text-field> + <v-flex xs12 sm6 md4> + <v-text-field v-model="editedItem.name" label="Dessert name"></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md4 - > - <v-text-field - v-model="editedItem.calories" - label="Calories" - ></v-text-field> + <v-flex xs12 sm6 md4> + <v-text-field v-model="editedItem.calories" label="Calories"></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md4 - > - <v-text-field - v-model="editedItem.fat" - label="Fat (g)" - ></v-text-field> + <v-flex xs12 sm6 md4> + <v-text-field v-model="editedItem.fat" label="Fat (g)"></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md4 - > - <v-text-field - v-model="editedItem.carbs" - label="Carbs (g)" - ></v-text-field> + <v-flex xs12 sm6 md4> + <v-text-field v-model="editedItem.carbs" label="Carbs (g)"></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md4 - > - <v-text-field - v-model="editedItem.protein" - label="Protein (g)" - ></v-text-field> + <v-flex xs12 sm6 md4> + <v-text-field v-model="editedItem.protein" label="Protein (g)"></v-text-field> </v-flex> </v-layout> </v-container> @@ -89,20 +39,8 @@ <v-card-actions> <v-spacer></v-spacer> - <v-btn - color="blue darken-1" - flat - @click="close" - > - Cancel - </v-btn> - <v-btn - color="blue darken-1" - flat - @click="save" - > - Save - </v-btn> + <v-btn color="blue darken-1" flat @click="close">Cancel</v-btn> + <v-btn color="blue darken-1" flat @click="save">Save</v-btn> </v-card-actions> </v-card> </v-dialog> @@ -112,23 +50,12 @@ :items="desserts" class="elevation-1" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> <td class="justify-center layout px-0"> <v-icon small @@ -146,12 +73,7 @@ </td> </template> <template slot="no-data"> - <v-btn - color="primary" - @click="initialize" - > - Reset - </v-btn> + <v-btn color="primary" @click="initialize">Reset</v-btn> </template> </v-data-table> </div> diff --git a/packages/docs/src/examples/data-tables/customIcons.vue b/packages/docs/src/examples/data-tables/customIcons.vue index 987557eaf80..5c6e602015d 100644 --- a/packages/docs/src/examples/data-tables/customIcons.vue +++ b/packages/docs/src/examples/data-tables/customIcons.vue @@ -7,26 +7,13 @@ next-icon="mdi-menu-right" sort-icon="mdi-menu-down" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> </v-data-table> </template> diff --git a/packages/docs/src/examples/data-tables/editdialog.vue b/packages/docs/src/examples/data-tables/editdialog.vue index 2a1f7b26abb..839865c8fae 100644 --- a/packages/docs/src/examples/data-tables/editdialog.vue +++ b/packages/docs/src/examples/data-tables/editdialog.vue @@ -4,10 +4,7 @@ :headers="headers" :items="desserts" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td> <v-edit-dialog :return-value.sync="props.item.name" @@ -16,8 +13,7 @@ @cancel="cancel" @open="open" @close="close" - > - {{ props.item.name }} + > {{ props.item.name }} <v-text-field slot="input" v-model="props.item.name" @@ -28,18 +24,10 @@ ></v-text-field> </v-edit-dialog> </td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> <td class="text-xs-right"> <v-edit-dialog :return-value.sync="props.item.iron" @@ -52,12 +40,7 @@ @close="close" > <div>{{ props.item.iron }}</div> - <div - slot="input" - class="mt-3 title" - > - Update Iron - </div> + <div slot="input" class="mt-3 title">Update Iron</div> <v-text-field slot="input" v-model="props.item.iron" @@ -72,18 +55,9 @@ </template> </v-data-table> - <v-snackbar - v-model="snack" - :timeout="3000" - :color="snackColor" - > + <v-snackbar v-model="snack" :timeout="3000" :color="snackColor"> {{ snackText }} - <v-btn - flat - @click="snack = false" - > - Close - </v-btn> + <v-btn flat @click="snack = false">Close</v-btn> </v-snackbar> </div> </template> diff --git a/packages/docs/src/examples/data-tables/expand.vue b/packages/docs/src/examples/data-tables/expand.vue index 258cc4b5348..c07609313dc 100644 --- a/packages/docs/src/examples/data-tables/expand.vue +++ b/packages/docs/src/examples/data-tables/expand.vue @@ -4,33 +4,17 @@ :items="desserts" item-key="name" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <tr @click="props.expanded = !props.expanded"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </tr> </template> - <template - slot="expand" - slot-scope="" - > + <template slot="expand" slot-scope="props"> <v-card flat> <v-card-text>Peek-a-boo!</v-card-text> </v-card> diff --git a/packages/docs/src/examples/data-tables/footer.vue b/packages/docs/src/examples/data-tables/footer.vue index 320e0411744..e49e7be056d 100644 --- a/packages/docs/src/examples/data-tables/footer.vue +++ b/packages/docs/src/examples/data-tables/footer.vue @@ -4,26 +4,13 @@ :items="desserts" class="elevation-1" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> <template slot="footer"> <td :colspan="headers.length"> diff --git a/packages/docs/src/examples/data-tables/headerCell.vue b/packages/docs/src/examples/data-tables/headerCell.vue index dd3e5ea1143..2d0052e6304 100644 --- a/packages/docs/src/examples/data-tables/headerCell.vue +++ b/packages/docs/src/examples/data-tables/headerCell.vue @@ -4,10 +4,7 @@ :items="desserts" class="elevation-1" > - <template - slot="headerCell" - slot-scope="props" - > + <template slot="headerCell" slot-scope="props"> <v-tooltip bottom> <span slot="activator"> {{ props.header.text }} @@ -17,26 +14,13 @@ </span> </v-tooltip> </template> - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> </v-data-table> </template> diff --git a/packages/docs/src/examples/data-tables/headerless.vue b/packages/docs/src/examples/data-tables/headerless.vue index 958c931c462..f535f1edfe4 100644 --- a/packages/docs/src/examples/data-tables/headerless.vue +++ b/packages/docs/src/examples/data-tables/headerless.vue @@ -5,26 +5,13 @@ hide-actions hide-headers > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> </v-data-table> </template> diff --git a/packages/docs/src/examples/data-tables/headers.vue b/packages/docs/src/examples/data-tables/headers.vue index a3cbc642d02..5c047598d00 100644 --- a/packages/docs/src/examples/data-tables/headers.vue +++ b/packages/docs/src/examples/data-tables/headers.vue @@ -8,10 +8,7 @@ item-key="name" class="elevation-1" > - <template - slot="headers" - slot-scope="props" - > + <template slot="headers" slot-scope="props"> <tr> <th> <v-checkbox @@ -28,21 +25,13 @@ :class="['column sortable', pagination.descending ? 'desc' : 'asc', header.value === pagination.sortBy ? 'active' : '']" @click="changeSort(header.value)" > - <v-icon small> - arrow_upward - </v-icon> + <v-icon small>arrow_upward</v-icon> {{ header.text }} </th> </tr> </template> - <template - slot="items" - slot-scope="props" - > - <tr - :active="props.selected" - @click="props.selected = !props.selected" - > + <template slot="items" slot-scope="props"> + <tr :active="props.selected" @click="props.selected = !props.selected"> <td> <v-checkbox :input-value="props.selected" @@ -51,21 +40,11 @@ ></v-checkbox> </td> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </tr> </template> </v-data-table> diff --git a/packages/docs/src/examples/data-tables/noData.vue b/packages/docs/src/examples/data-tables/noData.vue index 0fe7daa2171..61c0d6778de 100644 --- a/packages/docs/src/examples/data-tables/noData.vue +++ b/packages/docs/src/examples/data-tables/noData.vue @@ -5,11 +5,7 @@ class="elevation-1" > <template slot="no-data"> - <v-alert - :value="true" - color="error" - icon="warning" - > + <v-alert :value="true" color="error" icon="warning"> Sorry, nothing to display here :( </v-alert> </template> diff --git a/packages/docs/src/examples/data-tables/pageText.vue b/packages/docs/src/examples/data-tables/pageText.vue index 3c6fcb6bee9..c0ffc60bd59 100644 --- a/packages/docs/src/examples/data-tables/pageText.vue +++ b/packages/docs/src/examples/data-tables/pageText.vue @@ -4,31 +4,15 @@ :items="desserts" class="elevation-1" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> - <template - slot="pageText" - slot-scope="props" - > + <template slot="pageText" slot-scope="props"> Lignes {{ props.pageStart }} - {{ props.pageStop }} de {{ props.itemsLength }} </template> </v-data-table> diff --git a/packages/docs/src/examples/data-tables/paginate.vue b/packages/docs/src/examples/data-tables/paginate.vue index 37529471878..e6786df7ca8 100644 --- a/packages/docs/src/examples/data-tables/paginate.vue +++ b/packages/docs/src/examples/data-tables/paginate.vue @@ -7,33 +7,17 @@ :pagination.sync="pagination" class="elevation-1" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> </v-data-table> <div class="text-xs-center pt-2"> - <v-pagination - v-model="pagination.page" - :length="pages" - ></v-pagination> + <v-pagination v-model="pagination.page" :length="pages"></v-pagination> </div> </div> </template> diff --git a/packages/docs/src/examples/data-tables/progress.vue b/packages/docs/src/examples/data-tables/progress.vue index 6da4d2164cd..70201233489 100644 --- a/packages/docs/src/examples/data-tables/progress.vue +++ b/packages/docs/src/examples/data-tables/progress.vue @@ -5,31 +5,14 @@ :loading="true" class="elevation-1" > - <v-progress-linear - slot="progress" - color="blue" - indeterminate - ></v-progress-linear> - <template - slot="items" - slot-scope="props" - > + <v-progress-linear slot="progress" color="blue" indeterminate></v-progress-linear> + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> </v-data-table> </template> diff --git a/packages/docs/src/examples/data-tables/search.vue b/packages/docs/src/examples/data-tables/search.vue index 897aae24e49..4b14f8e4a3a 100644 --- a/packages/docs/src/examples/data-tables/search.vue +++ b/packages/docs/src/examples/data-tables/search.vue @@ -16,33 +16,15 @@ :items="desserts" :search="search" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> - <v-alert - slot="no-results" - :value="true" - color="error" - icon="warning" - > + <v-alert slot="no-results" :value="true" color="error" icon="warning"> Your search for "{{ search }}" found no results. </v-alert> </v-data-table> diff --git a/packages/docs/src/examples/data-tables/select.vue b/packages/docs/src/examples/data-tables/select.vue index 83184f77bc4..220079c7042 100644 --- a/packages/docs/src/examples/data-tables/select.vue +++ b/packages/docs/src/examples/data-tables/select.vue @@ -7,10 +7,7 @@ select-all class="elevation-1" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td> <v-checkbox v-model="props.selected" @@ -19,21 +16,11 @@ ></v-checkbox> </td> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> </v-data-table> </template> diff --git a/packages/docs/src/examples/data-tables/server.vue b/packages/docs/src/examples/data-tables/server.vue index 0c66272865e..8c747e80271 100644 --- a/packages/docs/src/examples/data-tables/server.vue +++ b/packages/docs/src/examples/data-tables/server.vue @@ -8,26 +8,13 @@ :loading="loading" class="elevation-1" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> </v-data-table> </div> diff --git a/packages/docs/src/examples/data-tables/sort.vue b/packages/docs/src/examples/data-tables/sort.vue index 45611b58149..d37774081af 100644 --- a/packages/docs/src/examples/data-tables/sort.vue +++ b/packages/docs/src/examples/data-tables/sort.vue @@ -7,41 +7,18 @@ :pagination.sync="pagination" class="elevation-1" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> </v-data-table> <div class="text-xs-center pt-2"> - <v-btn - color="primary" - @click="toggleOrder" - > - Toggle sort order - </v-btn> - <v-btn - color="primary" - @click="nextSort" - > - Sort next column - </v-btn> + <v-btn color="primary" @click="toggleOrder">Toggle sort order</v-btn> + <v-btn color="primary" @click="nextSort">Sort next column</v-btn> </div> </div> </template> diff --git a/packages/docs/src/examples/data-tables/usage.vue b/packages/docs/src/examples/data-tables/usage.vue index cf5b0315896..efc925865e4 100644 --- a/packages/docs/src/examples/data-tables/usage.vue +++ b/packages/docs/src/examples/data-tables/usage.vue @@ -4,26 +4,13 @@ :items="desserts" class="elevation-1" > - <template - slot="items" - slot-scope="props" - > + <template slot="items" slot-scope="props"> <td>{{ props.item.name }}</td> - <td class="text-xs-right"> - {{ props.item.calories }} - </td> - <td class="text-xs-right"> - {{ props.item.fat }} - </td> - <td class="text-xs-right"> - {{ props.item.carbs }} - </td> - <td class="text-xs-right"> - {{ props.item.protein }} - </td> - <td class="text-xs-right"> - {{ props.item.iron }} - </td> + <td class="text-xs-right">{{ props.item.calories }}</td> + <td class="text-xs-right">{{ props.item.fat }}</td> + <td class="text-xs-right">{{ props.item.carbs }}</td> + <td class="text-xs-right">{{ props.item.protein }}</td> + <td class="text-xs-right">{{ props.item.iron }}</td> </template> </v-data-table> </template> diff --git a/packages/docs/src/examples/date-pickers/dateBirthday.vue b/packages/docs/src/examples/date-pickers/dateBirthday.vue index 910bb19157e..0072e7d78d0 100644 --- a/packages/docs/src/examples/date-pickers/dateBirthday.vue +++ b/packages/docs/src/examples/date-pickers/dateBirthday.vue @@ -1,8 +1,8 @@ <template> <v-menu ref="menu" - v-model="menu" :close-on-content-click="false" + v-model="menu" :nudge-right="40" lazy transition="scale-transition" diff --git a/packages/docs/src/examples/date-pickers/dateColorable.vue b/packages/docs/src/examples/date-pickers/dateColorable.vue index b325c9ba0a5..c4c1ac81eba 100644 --- a/packages/docs/src/examples/date-pickers/dateColorable.vue +++ b/packages/docs/src/examples/date-pickers/dateColorable.vue @@ -1,27 +1,10 @@ <template> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > - <v-date-picker - v-model="picker" - color="green lighten-1" - ></v-date-picker> + <v-layout row wrap> + <v-flex xs12 sm6> + <v-date-picker v-model="picker" color="green lighten-1"></v-date-picker> </v-flex> - <v-flex - xs12 - sm6 - class="hidden-xs-only" - > - <v-date-picker - v-model="picker2" - color="green lighten-1" - header-color="primary" - ></v-date-picker> + <v-flex xs12 sm6 class="hidden-xs-only"> + <v-date-picker v-model="picker2" color="green lighten-1" header-color="primary"></v-date-picker> </v-flex> </v-layout> </template> diff --git a/packages/docs/src/examples/date-pickers/dateCurrent.vue b/packages/docs/src/examples/date-pickers/dateCurrent.vue index 602d2a396bc..60541d7ad85 100644 --- a/packages/docs/src/examples/date-pickers/dateCurrent.vue +++ b/packages/docs/src/examples/date-pickers/dateCurrent.vue @@ -1,27 +1,10 @@ <template> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - class="my-3" - > - <v-date-picker - v-model="date1" - :show-current="false" - ></v-date-picker> + <v-layout row wrap> + <v-flex xs12 sm6 class="my-3"> + <v-date-picker v-model="date1" :show-current="false"></v-date-picker> </v-flex> - <v-flex - xs12 - sm6 - class="my-3" - > - <v-date-picker - v-model="date2" - show-current="2013-07-13" - ></v-date-picker> + <v-flex xs12 sm6 class="my-3"> + <v-date-picker v-model="date2" show-current="2013-07-13"></v-date-picker> </v-flex> </v-layout> </template> diff --git a/packages/docs/src/examples/date-pickers/dateDialogAndMenu.vue b/packages/docs/src/examples/date-pickers/dateDialogAndMenu.vue index 8c8af1d103d..cadec401cba 100644 --- a/packages/docs/src/examples/date-pickers/dateDialogAndMenu.vue +++ b/packages/docs/src/examples/date-pickers/dateDialogAndMenu.vue @@ -1,17 +1,10 @@ <template> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - md4 - > + <v-layout row wrap> + <v-flex xs12 sm6 md4> <v-menu ref="menu" - v-model="menu" :close-on-content-click="false" + v-model="menu" :nudge-right="40" :return-value.sync="date" lazy @@ -27,35 +20,15 @@ prepend-icon="event" readonly ></v-text-field> - <v-date-picker - v-model="date" - no-title - scrollable - > + <v-date-picker v-model="date" no-title scrollable> <v-spacer></v-spacer> - <v-btn - flat - color="primary" - @click="menu = false" - > - Cancel - </v-btn> - <v-btn - flat - color="primary" - @click="$refs.menu.save(date)" - > - OK - </v-btn> + <v-btn flat color="primary" @click="menu = false">Cancel</v-btn> + <v-btn flat color="primary" @click="$refs.menu.save(date)">OK</v-btn> </v-date-picker> </v-menu> </v-flex> <v-spacer></v-spacer> - <v-flex - xs12 - sm6 - md4 - > + <v-flex xs12 sm6 md4> <v-dialog ref="dialog" v-model="modal" @@ -72,36 +45,17 @@ prepend-icon="event" readonly ></v-text-field> - <v-date-picker - v-model="date" - scrollable - > + <v-date-picker v-model="date" scrollable> <v-spacer></v-spacer> - <v-btn - flat - color="primary" - @click="modal = false" - > - Cancel - </v-btn> - <v-btn - flat - color="primary" - @click="$refs.dialog.save(date)" - > - OK - </v-btn> + <v-btn flat color="primary" @click="modal = false">Cancel</v-btn> + <v-btn flat color="primary" @click="$refs.dialog.save(date)">OK</v-btn> </v-date-picker> </v-dialog> </v-flex> - <v-flex - xs12 - sm6 - md4 - > + <v-flex xs12 sm6 md4> <v-menu - v-model="menu2" :close-on-content-click="false" + v-model="menu2" :nudge-right="40" lazy transition="scale-transition" @@ -116,10 +70,7 @@ prepend-icon="event" readonly ></v-text-field> - <v-date-picker - v-model="date" - @input="menu2 = false" - ></v-date-picker> + <v-date-picker v-model="date" @input="menu2 = false"></v-date-picker> </v-menu> </v-flex> <v-spacer></v-spacer> diff --git a/packages/docs/src/examples/date-pickers/dateEvents.vue b/packages/docs/src/examples/date-pickers/dateEvents.vue index 91cd4911bf9..8f6de6bc63e 100644 --- a/packages/docs/src/examples/date-pickers/dateEvents.vue +++ b/packages/docs/src/examples/date-pickers/dateEvents.vue @@ -1,30 +1,15 @@ <template> - <v-layout - justify-space-between - wrap - > - <v-flex - xs12 - sm6 - class="my-3" - > - <div class="subheading"> - Defined by array - </div> + <v-layout justify-space-between wrap> + <v-flex xs12 sm6 class="my-3"> + <div class="subheading">Defined by array</div> <v-date-picker v-model="date1" :events="arrayEvents" event-color="green lighten-1" ></v-date-picker> </v-flex> - <v-flex - xs12 - sm6 - class="my-3" - > - <div class="subheading"> - Defined by function - </div> + <v-flex xs12 sm6 class="my-3"> + <div class="subheading">Defined by function</div> <v-date-picker v-model="date2" :event-color="date => date[9] % 2 ? 'red' : 'yellow'" diff --git a/packages/docs/src/examples/date-pickers/dateFormatting.vue b/packages/docs/src/examples/date-pickers/dateFormatting.vue index efb9bd46ee5..e7f601c0e53 100644 --- a/packages/docs/src/examples/date-pickers/dateFormatting.vue +++ b/packages/docs/src/examples/date-pickers/dateFormatting.vue @@ -1,17 +1,11 @@ <template> <v-container grid-list-md> - <v-layout - row - wrap - > - <v-flex - xs12 - lg6 - > + <v-layout row wrap> + <v-flex xs12 lg6> <v-menu ref="menu1" - v-model="menu1" :close-on-content-click="false" + v-model="menu1" :nudge-right="40" lazy transition="scale-transition" @@ -29,22 +23,15 @@ prepend-icon="event" @blur="date = parseDate(dateFormatted)" ></v-text-field> - <v-date-picker - v-model="date" - no-title - @input="menu1 = false" - ></v-date-picker> + <v-date-picker v-model="date" no-title @input="menu1 = false"></v-date-picker> </v-menu> <p>Date in ISO format: <strong>{{ date }}</strong></p> </v-flex> - <v-flex - xs12 - lg6 - > + <v-flex xs12 lg6> <v-menu - v-model="menu2" :close-on-content-click="false" + v-model="menu2" :nudge-right="40" lazy transition="scale-transition" @@ -62,11 +49,7 @@ prepend-icon="event" readonly ></v-text-field> - <v-date-picker - v-model="date" - no-title - @input="menu2 = false" - ></v-date-picker> + <v-date-picker v-model="date" no-title @input="menu2 = false"></v-date-picker> </v-menu> <p>Date in ISO format: <strong>{{ date }}</strong></p> </v-flex> diff --git a/packages/docs/src/examples/date-pickers/dateFormattingMomentDatefns.vue b/packages/docs/src/examples/date-pickers/dateFormattingMomentDatefns.vue index 13a38d11e71..2f745f4049e 100644 --- a/packages/docs/src/examples/date-pickers/dateFormattingMomentDatefns.vue +++ b/packages/docs/src/examples/date-pickers/dateFormattingMomentDatefns.vue @@ -1,13 +1,7 @@ <template> <v-container grid-list-md> - <v-layout - row - wrap - > - <v-flex - xs12 - lg6 - > + <v-layout row wrap> + <v-flex xs12 lg6> <v-menu v-model="menu1" :close-on-content-click="false" @@ -28,10 +22,7 @@ </v-menu> </v-flex> - <v-flex - xs12 - lg6 - > + <v-flex xs12 lg6> <v-menu v-model="menu2" :close-on-content-click="false" diff --git a/packages/docs/src/examples/date-pickers/dateIcons.vue b/packages/docs/src/examples/date-pickers/dateIcons.vue index c29bb72cef2..99136d8679f 100644 --- a/packages/docs/src/examples/date-pickers/dateIcons.vue +++ b/packages/docs/src/examples/date-pickers/dateIcons.vue @@ -1,12 +1,6 @@ <template> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + <v-flex xs12 sm6> <v-date-picker v-model="picker" year-icon="mdi-calendar-blank" diff --git a/packages/docs/src/examples/date-pickers/dateInternationalization.vue b/packages/docs/src/examples/date-pickers/dateInternationalization.vue index 356745588dc..fbdf9c2468b 100644 --- a/packages/docs/src/examples/date-pickers/dateInternationalization.vue +++ b/packages/docs/src/examples/date-pickers/dateInternationalization.vue @@ -1,27 +1,16 @@ <template> - <v-layout - justify-space-between - wrap - > - <v-flex - xs12 - sm6 - class="my-3" - > + <v-layout justify-space-between wrap> + <v-flex xs12 sm6 class="my-3"> <v-date-picker - v-model="picker" :first-day-of-week="0" + v-model="picker" locale="zh-cn" ></v-date-picker> </v-flex> - <v-flex - xs12 - sm6 - class="my-3" - > + <v-flex xs12 sm6 class="my-3"> <v-date-picker - v-model="picker" :first-day-of-week="1" + v-model="picker" locale="sv-se" ></v-date-picker> </v-flex> diff --git a/packages/docs/src/examples/date-pickers/dateMultiple.vue b/packages/docs/src/examples/date-pickers/dateMultiple.vue index 40a54f32872..b70c986deb3 100644 --- a/packages/docs/src/examples/date-pickers/dateMultiple.vue +++ b/packages/docs/src/examples/date-pickers/dateMultiple.vue @@ -1,25 +1,16 @@ <template> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + <v-flex xs12 sm6> <v-date-picker v-model="dates" multiple ></v-date-picker> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-menu ref="menu" - v-model="menu" :close-on-content-click="false" + v-model="menu" :nudge-right="40" :return-value.sync="dates" lazy @@ -38,27 +29,10 @@ prepend-icon="event" readonly ></v-combobox> - <v-date-picker - v-model="dates" - multiple - no-title - scrollable - > + <v-date-picker v-model="dates" multiple no-title scrollable> <v-spacer></v-spacer> - <v-btn - flat - color="primary" - @click="menu = false" - > - Cancel - </v-btn> - <v-btn - flat - color="primary" - @click="$refs.menu.save(dates)" - > - OK - </v-btn> + <v-btn flat color="primary" @click="menu = false">Cancel</v-btn> + <v-btn flat color="primary" @click="$refs.menu.save(dates)">OK</v-btn> </v-date-picker> </v-menu> </v-flex> diff --git a/packages/docs/src/examples/date-pickers/datePickerDate.vue b/packages/docs/src/examples/date-pickers/datePickerDate.vue index fe1ecaad9b9..a2c1547047c 100644 --- a/packages/docs/src/examples/date-pickers/datePickerDate.vue +++ b/packages/docs/src/examples/date-pickers/datePickerDate.vue @@ -1,13 +1,6 @@ <template> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - class="my-2 px-1" - > + <v-layout row wrap> + <v-flex xs12 sm6 class="my-2 px-1"> <v-date-picker ref="picker" v-model="date" @@ -15,24 +8,11 @@ full-width ></v-date-picker> </v-flex> - <v-flex - xs12 - sm6 - class="my-2 px-1" - > - <div class="title"> - Month news ({{ pickerDate || 'change month...' }}) - </div> - <div class="subheading"> - Change month to see other news - </div> + <v-flex xs12 sm6 class="my-2 px-1"> + <div class="title">Month news ({{ pickerDate || 'change month...' }})</div> + <div class="subheading">Change month to see other news</div> <ul class="ma-3"> - <li - v-for="note in notes" - :key="note" - > - {{ note }} - </li> + <li v-for="note in notes" :key="note">{{ note }}</li> </ul> </v-flex> </v-layout> diff --git a/packages/docs/src/examples/date-pickers/dateReadonly.vue b/packages/docs/src/examples/date-pickers/dateReadonly.vue index 267db46c9c2..6ba5d571414 100644 --- a/packages/docs/src/examples/date-pickers/dateReadonly.vue +++ b/packages/docs/src/examples/date-pickers/dateReadonly.vue @@ -1,9 +1,6 @@ <template> <div> - <v-date-picker - v-model="date" - readonly - ></v-date-picker> + <v-date-picker v-model="date" readonly></v-date-picker> </div> </template> diff --git a/packages/docs/src/examples/date-pickers/monthColorable.vue b/packages/docs/src/examples/date-pickers/monthColorable.vue index 0bb92a1f171..da462e79106 100644 --- a/packages/docs/src/examples/date-pickers/monthColorable.vue +++ b/packages/docs/src/examples/date-pickers/monthColorable.vue @@ -1,29 +1,10 @@ <template> - <v-layout - row - wrap - > - <v-flex - md12 - lg6 - > - <v-date-picker - v-model="picker" - type="month" - color="green lighten-1" - ></v-date-picker> + <v-layout row wrap> + <v-flex md12 lg6> + <v-date-picker v-model="picker" type="month" color="green lighten-1"></v-date-picker> </v-flex> - <v-flex - md12 - lg6 - class="hidden-xs-only" - > - <v-date-picker - v-model="picker2" - type="month" - color="green lighten-1" - header-color="primary" - ></v-date-picker> + <v-flex md12 lg6 class="hidden-xs-only"> + <v-date-picker v-model="picker2" type="month" color="green lighten-1" header-color="primary"></v-date-picker> </v-flex> </v-layout> </template> diff --git a/packages/docs/src/examples/date-pickers/monthCurrent.vue b/packages/docs/src/examples/date-pickers/monthCurrent.vue index 54a66b3685f..167bf301ea8 100644 --- a/packages/docs/src/examples/date-pickers/monthCurrent.vue +++ b/packages/docs/src/examples/date-pickers/monthCurrent.vue @@ -1,29 +1,10 @@ <template> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - class="my-3" - > - <v-date-picker - v-model="month1" - :show-current="false" - type="month" - ></v-date-picker> + <v-layout row wrap> + <v-flex xs12 sm6 class="my-3"> + <v-date-picker v-model="month1" :show-current="false" type="month"></v-date-picker> </v-flex> - <v-flex - xs12 - sm6 - class="my-3" - > - <v-date-picker - v-model="month2" - type="month" - show-current="2013-07" - ></v-date-picker> + <v-flex xs12 sm6 class="my-3"> + <v-date-picker v-model="month2" type="month" show-current="2013-07"></v-date-picker> </v-flex> </v-layout> </template> diff --git a/packages/docs/src/examples/date-pickers/monthDialogAndMenu.vue b/packages/docs/src/examples/date-pickers/monthDialogAndMenu.vue index ef5e7fa673d..7c3062c289c 100644 --- a/packages/docs/src/examples/date-pickers/monthDialogAndMenu.vue +++ b/packages/docs/src/examples/date-pickers/monthDialogAndMenu.vue @@ -1,16 +1,10 @@ <template> - <v-layout - row - wrap - > - <v-flex - xs11 - sm5 - > + <v-layout row wrap> + <v-flex xs11 sm5> <v-menu ref="menu" - v-model="menu" :close-on-content-click="false" + v-model="menu" :nudge-right="40" :return-value.sync="date" lazy @@ -34,28 +28,13 @@ scrollable > <v-spacer></v-spacer> - <v-btn - flat - color="primary" - @click="menu = false" - > - Cancel - </v-btn> - <v-btn - flat - color="primary" - @click="$refs.menu.save(date)" - > - OK - </v-btn> + <v-btn flat color="primary" @click="menu = false">Cancel</v-btn> + <v-btn flat color="primary" @click="$refs.menu.save(date)">OK</v-btn> </v-date-picker> </v-menu> </v-flex> <v-spacer></v-spacer> - <v-flex - xs11 - sm5 - > + <v-flex xs11 sm5> <v-dialog ref="dialog" v-model="modal" @@ -72,26 +51,10 @@ prepend-icon="event" readonly ></v-text-field> - <v-date-picker - v-model="date" - type="month" - scrollable - > + <v-date-picker v-model="date" type="month" scrollable> <v-spacer></v-spacer> - <v-btn - flat - color="primary" - @click="modal = false" - > - Cancel - </v-btn> - <v-btn - flat - color="primary" - @click="$refs.dialog.save(date)" - > - OK - </v-btn> + <v-btn flat color="primary" @click="modal = false">Cancel</v-btn> + <v-btn flat color="primary" @click="$refs.dialog.save(date)">OK</v-btn> </v-date-picker> </v-dialog> </v-flex> diff --git a/packages/docs/src/examples/date-pickers/monthEvents.vue b/packages/docs/src/examples/date-pickers/monthEvents.vue index e30941d0081..0aa96d8ead6 100644 --- a/packages/docs/src/examples/date-pickers/monthEvents.vue +++ b/packages/docs/src/examples/date-pickers/monthEvents.vue @@ -1,16 +1,7 @@ <template> - <v-layout - justify-space-between - wrap - > - <v-flex - xs12 - sm6 - class="my-3" - > - <div class="subheading"> - Defined by array - </div> + <v-layout justify-space-between wrap> + <v-flex xs12 sm6 class="my-3"> + <div class="subheading">Defined by array</div> <v-date-picker v-model="date1" :events="arrayEvents" @@ -18,14 +9,8 @@ type="month" ></v-date-picker> </v-flex> - <v-flex - xs12 - sm6 - class="my-3" - > - <div class="subheading"> - Defined by function - </div> + <v-flex xs12 sm6 class="my-3"> + <div class="subheading">Defined by function</div> <v-date-picker v-model="date2" :events="functionEvents" diff --git a/packages/docs/src/examples/date-pickers/monthIcons.vue b/packages/docs/src/examples/date-pickers/monthIcons.vue index b758a49a9f0..7d350a39ef9 100644 --- a/packages/docs/src/examples/date-pickers/monthIcons.vue +++ b/packages/docs/src/examples/date-pickers/monthIcons.vue @@ -1,12 +1,6 @@ <template> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + <v-flex xs12 sm6> <v-date-picker v-model="picker" type="month" diff --git a/packages/docs/src/examples/date-pickers/monthInternationalization.vue b/packages/docs/src/examples/date-pickers/monthInternationalization.vue index 096b1de8f71..de35b39574f 100644 --- a/packages/docs/src/examples/date-pickers/monthInternationalization.vue +++ b/packages/docs/src/examples/date-pickers/monthInternationalization.vue @@ -1,24 +1,13 @@ <template> - <v-layout - justify-space-between - wrap - > - <v-flex - xs12 - sm6 - class="my-3" - > + <v-layout justify-space-between wrap> + <v-flex xs12 sm6 class="my-3"> <v-date-picker v-model="picker" type="month" locale="th" ></v-date-picker> </v-flex> - <v-flex - xs12 - sm6 - class="my-3" - > + <v-flex xs12 sm6 class="my-3"> <v-date-picker v-model="picker" type="month" diff --git a/packages/docs/src/examples/date-pickers/monthLight.vue b/packages/docs/src/examples/date-pickers/monthLight.vue index 27c6f9e52f7..3c231895cf1 100644 --- a/packages/docs/src/examples/date-pickers/monthLight.vue +++ b/packages/docs/src/examples/date-pickers/monthLight.vue @@ -1,14 +1,7 @@ <template> <div> - <v-checkbox - v-model="landscape" - label="Landscape" - ></v-checkbox> - <v-date-picker - v-model="picker" - :landscape="landscape" - type="month" - ></v-date-picker> + <v-checkbox v-model="landscape" label="Landscape"></v-checkbox> + <v-date-picker v-model="picker" :landscape="landscape" type="month"></v-date-picker> </div> </template> diff --git a/packages/docs/src/examples/date-pickers/monthReadonly.vue b/packages/docs/src/examples/date-pickers/monthReadonly.vue index bac6fb0ca8b..92a1dbe1a67 100644 --- a/packages/docs/src/examples/date-pickers/monthReadonly.vue +++ b/packages/docs/src/examples/date-pickers/monthReadonly.vue @@ -1,10 +1,6 @@ <template> <div> - <v-date-picker - v-model="date" - type="month" - readonly - ></v-date-picker> + <v-date-picker v-model="date" type="month" readonly></v-date-picker> </div> </template> diff --git a/packages/docs/src/examples/date-pickers/usage.vue b/packages/docs/src/examples/date-pickers/usage.vue index 95fadaa6f45..10cd3a9c1fa 100644 --- a/packages/docs/src/examples/date-pickers/usage.vue +++ b/packages/docs/src/examples/date-pickers/usage.vue @@ -1,36 +1,15 @@ <template> <div> - <v-layout - row - wrap - > - <v-flex - xs12 - sm3 - > - <v-checkbox - v-model="landscape" - hide-details - label="Landscape" - ></v-checkbox> + <v-layout row wrap> + <v-flex xs12 sm3> + <v-checkbox v-model="landscape" hide-details label="Landscape"></v-checkbox> </v-flex> - <v-flex - xs12 - sm3 - > - <v-checkbox - v-model="reactive" - hide-details - label="Reactive" - ></v-checkbox> + <v-flex xs12 sm3> + <v-checkbox v-model="reactive" hide-details label="Reactive"></v-checkbox> </v-flex> </v-layout> - <v-date-picker - v-model="picker" - :landscape="landscape" - :reactive="reactive" - ></v-date-picker> + <v-date-picker v-model="picker" :landscape="landscape" :reactive="reactive"></v-date-picker> </div> </template> diff --git a/packages/docs/src/examples/dialogs/advanced.vue b/packages/docs/src/examples/dialogs/advanced.vue index c1aa4fb31ae..8938ad07c41 100644 --- a/packages/docs/src/examples/dialogs/advanced.vue +++ b/packages/docs/src/examples/dialogs/advanced.vue @@ -1,43 +1,13 @@ <template> <div> - <v-layout - row - justify-center - > - <v-btn - color="primary" - dark - @click="dialog = true" - > - Open Dialog 1 - </v-btn> - <v-btn - color="primary" - dark - @click="dialog2 = true" - > - Open Dialog 2 - </v-btn> - <v-btn - color="primary" - dark - @click="dialog3 = true" - > - Open Dialog 3 - </v-btn> - <v-menu - bottom - offset-y - > - <v-btn slot="activator"> - A Menu - </v-btn> + <v-layout row justify-center> + <v-btn color="primary" dark @click="dialog = true">Open Dialog 1</v-btn> + <v-btn color="primary" dark @click="dialog2 = true">Open Dialog 2</v-btn> + <v-btn color="primary" dark @click="dialog3 = true">Open Dialog 3</v-btn> + <v-menu bottom offset-y> + <v-btn slot="activator">A Menu</v-btn> <v-list> - <v-list-tile - v-for="(item, i) in items" - :key="i" - @click="" - > + <v-list-tile v-for="(item, i) in items" :key="i" @click=""> <v-list-tile-title>{{ item.title }}</v-list-tile-title> </v-list-tile> </v-list> @@ -50,70 +20,33 @@ scrollable > <v-card tile> - <v-toolbar - card - dark - color="primary" - > - <v-btn - icon - dark - @click="dialog = false" - > + <v-toolbar card dark color="primary"> + <v-btn icon dark @click="dialog = false"> <v-icon>close</v-icon> </v-btn> <v-toolbar-title>Settings</v-toolbar-title> <v-spacer></v-spacer> <v-toolbar-items> - <v-btn - dark - flat - @click="dialog = false" - > - Save - </v-btn> + <v-btn dark flat @click="dialog = false">Save</v-btn> </v-toolbar-items> - <v-menu - bottom - right - offset-y - > - <v-btn - slot="activator" - dark - icon - > + <v-menu bottom right offset-y> + <v-btn slot="activator" dark icon> <v-icon>more_vert</v-icon> </v-btn> <v-list> - <v-list-tile - v-for="(item, i) in items" - :key="i" - @click="" - > + <v-list-tile v-for="(item, i) in items" :key="i" @click=""> <v-list-tile-title>{{ item.title }}</v-list-tile-title> </v-list-tile> </v-list> </v-menu> </v-toolbar> <v-card-text> - <v-btn - color="primary" - dark - @click="dialog2 = !dialog2" - > - Open Dialog 2 - </v-btn> + <v-btn color="primary" dark @click="dialog2 = !dialog2">Open Dialog 2</v-btn> <v-tooltip right> - <v-btn slot="activator"> - Tool Tip Activator - </v-btn> + <v-btn slot="activator">Tool Tip Activator</v-btn> Tool Tip </v-tooltip> - <v-list - three-line - subheader - > + <v-list three-line subheader> <v-subheader>User Controls</v-subheader> <v-list-tile avatar> <v-list-tile-content> @@ -129,10 +62,7 @@ </v-list-tile> </v-list> <v-divider></v-divider> - <v-list - three-line - subheader - > + <v-list three-line subheader> <v-subheader>General</v-subheader> <v-list-tile avatar> <v-list-tile-action> @@ -167,22 +97,13 @@ <div style="flex: 1 1 auto;"></div> </v-card> </v-dialog> - <v-dialog - v-model="dialog2" - max-width="500px" - > + <v-dialog v-model="dialog2" max-width="500px"> <v-card> <v-card-title> Dialog 2 </v-card-title> <v-card-text> - <v-btn - color="primary" - dark - @click="dialog3 = !dialog3" - > - Open Dialog 3 - </v-btn> + <v-btn color="primary" dark @click="dialog3 = !dialog3">Open Dialog 3</v-btn> <v-select :items="select" label="A Select List" @@ -190,53 +111,28 @@ ></v-select> </v-card-text> <v-card-actions> - <v-btn - color="primary" - flat - @click="dialog2=false" - > - Close - </v-btn> + <v-btn color="primary" flat @click="dialog2=false">Close</v-btn> </v-card-actions> </v-card> </v-dialog> - <v-dialog - v-model="dialog3" - max-width="500px" - > + <v-dialog v-model="dialog3" max-width="500px"> <v-card> <v-card-title> <span>Dialog 3</span> <v-spacer></v-spacer> - <v-menu - bottom - left - > - <v-btn - slot="activator" - icon - > + <v-menu bottom left> + <v-btn slot="activator" icon> <v-icon>more_vert</v-icon> </v-btn> <v-list> - <v-list-tile - v-for="(item, i) in items" - :key="i" - @click="" - > + <v-list-tile v-for="(item, i) in items" :key="i" @click=""> <v-list-tile-title>{{ item.title }}</v-list-tile-title> </v-list-tile> </v-list> </v-menu> </v-card-title> <v-card-actions> - <v-btn - color="primary" - flat - @click="dialog3=false" - > - Close - </v-btn> + <v-btn color="primary" flat @click="dialog3=false">Close</v-btn> </v-card-actions> </v-card> </v-dialog> diff --git a/packages/docs/src/examples/dialogs/form.vue b/packages/docs/src/examples/dialogs/form.vue index 8d36953b2e0..f58f762ee24 100644 --- a/packages/docs/src/examples/dialogs/form.vue +++ b/packages/docs/src/examples/dialogs/form.vue @@ -1,54 +1,21 @@ <template> - <v-layout - row - justify-center - > - <v-dialog - v-model="dialog" - persistent - max-width="600px" - > - <v-btn - slot="activator" - color="primary" - dark - > - Open Dialog - </v-btn> + <v-layout row justify-center> + <v-dialog v-model="dialog" persistent max-width="600px"> + <v-btn slot="activator" color="primary" dark>Open Dialog</v-btn> <v-card> <v-card-title> - <span class="headline"> - User Profile - </span> + <span class="headline">User Profile</span> </v-card-title> <v-card-text> <v-container grid-list-md> <v-layout wrap> - <v-flex - xs12 - sm6 - md4 - > - <v-text-field - label="Legal first name*" - required - ></v-text-field> + <v-flex xs12 sm6 md4> + <v-text-field label="Legal first name*" required></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md4 - > - <v-text-field - label="Legal middle name" - hint="example of helper text only on focus" - ></v-text-field> + <v-flex xs12 sm6 md4> + <v-text-field label="Legal middle name" hint="example of helper text only on focus"></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md4 - > + <v-flex xs12 sm6 md4> <v-text-field label="Legal last name*" hint="example of persistent helper text" @@ -57,32 +24,19 @@ ></v-text-field> </v-flex> <v-flex xs12> - <v-text-field - label="Email*" - required - ></v-text-field> + <v-text-field label="Email*" required></v-text-field> </v-flex> <v-flex xs12> - <v-text-field - label="Password*" - type="password" - required - ></v-text-field> + <v-text-field label="Password*" type="password" required></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-select :items="['0-17', '18-29', '30-54', '54+']" label="Age*" required ></v-select> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-autocomplete :items="['Skiing', 'Ice hockey', 'Soccer', 'Basketball', 'Hockey', 'Reading', 'Writing', 'Coding', 'Basejump']" label="Interests" @@ -95,20 +49,8 @@ </v-card-text> <v-card-actions> <v-spacer></v-spacer> - <v-btn - color="blue darken-1" - flat - @click="dialog = false" - > - Close - </v-btn> - <v-btn - color="blue darken-1" - flat - @click="dialog = false" - > - Save - </v-btn> + <v-btn color="blue darken-1" flat @click="dialog = false">Close</v-btn> + <v-btn color="blue darken-1" flat @click="dialog = false">Save</v-btn> </v-card-actions> </v-card> </v-dialog> diff --git a/packages/docs/src/examples/dialogs/fullscreen.vue b/packages/docs/src/examples/dialogs/fullscreen.vue index 1ad82ea71f8..af42b2cf812 100644 --- a/packages/docs/src/examples/dialogs/fullscreen.vue +++ b/packages/docs/src/examples/dialogs/fullscreen.vue @@ -1,49 +1,19 @@ <template> - <v-layout - row - justify-center - > - <v-dialog - v-model="dialog" - fullscreen - hide-overlay - transition="dialog-bottom-transition" - > - <v-btn - slot="activator" - color="primary" - dark - > - Open Dialog - </v-btn> + <v-layout row justify-center> + <v-dialog v-model="dialog" fullscreen hide-overlay transition="dialog-bottom-transition"> + <v-btn slot="activator" color="primary" dark>Open Dialog</v-btn> <v-card> - <v-toolbar - dark - color="primary" - > - <v-btn - icon - dark - @click="dialog = false" - > + <v-toolbar dark color="primary"> + <v-btn icon dark @click="dialog = false"> <v-icon>close</v-icon> </v-btn> <v-toolbar-title>Settings</v-toolbar-title> <v-spacer></v-spacer> <v-toolbar-items> - <v-btn - dark - flat - @click="dialog = false" - > - Save - </v-btn> + <v-btn dark flat @click="dialog = false">Save</v-btn> </v-toolbar-items> </v-toolbar> - <v-list - three-line - subheader - > + <v-list three-line subheader> <v-subheader>User Controls</v-subheader> <v-list-tile avatar> <v-list-tile-content> @@ -59,10 +29,7 @@ </v-list-tile> </v-list> <v-divider></v-divider> - <v-list - three-line - subheader - > + <v-list three-line subheader> <v-subheader>General</v-subheader> <v-list-tile avatar> <v-list-tile-action> diff --git a/packages/docs/src/examples/dialogs/modal.vue b/packages/docs/src/examples/dialogs/modal.vue index a7c967b5af3..c862c78682d 100644 --- a/packages/docs/src/examples/dialogs/modal.vue +++ b/packages/docs/src/examples/dialogs/modal.vue @@ -1,41 +1,14 @@ <template> - <v-layout - row - justify-center - > - <v-dialog - v-model="dialog" - persistent - max-width="290" - > - <v-btn - slot="activator" - color="primary" - dark - > - Open Dialog - </v-btn> + <v-layout row justify-center> + <v-dialog v-model="dialog" persistent max-width="290"> + <v-btn slot="activator" color="primary" dark>Open Dialog</v-btn> <v-card> - <v-card-title class="headline"> - Use Google's location service? - </v-card-title> + <v-card-title class="headline">Use Google's location service?</v-card-title> <v-card-text>Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.</v-card-text> <v-card-actions> <v-spacer></v-spacer> - <v-btn - color="green darken-1" - flat - @click="dialog = false" - > - Disagree - </v-btn> - <v-btn - color="green darken-1" - flat - @click="dialog = false" - > - Agree - </v-btn> + <v-btn color="green darken-1" flat @click="dialog = false">Disagree</v-btn> + <v-btn color="green darken-1" flat @click="dialog = false">Agree</v-btn> </v-card-actions> </v-card> </v-dialog> diff --git a/packages/docs/src/examples/dialogs/overflowed.vue b/packages/docs/src/examples/dialogs/overflowed.vue index 2e028e15f64..49d54d84428 100644 --- a/packages/docs/src/examples/dialogs/overflowed.vue +++ b/packages/docs/src/examples/dialogs/overflowed.vue @@ -1,54 +1,26 @@ <template> - <v-layout - row - justify-center - > - <v-dialog - v-model="dialog" - width="600px" - > - <v-btn - slot="activator" - color="primary" - dark - > - Open Dialog - </v-btn> + <v-layout row justify-center> + <v-dialog v-model="dialog" width="600px"> + <v-btn slot="activator" color="primary" dark>Open Dialog</v-btn> <v-card> <v-card-title> - <span class="headline"> - Use Google's location service? - </span> + <span class="headline">Use Google's location service?</span> </v-card-title> - <v-card-text> - Lorem ipsum dolor sit amet, semper quis, sapien id natoque elit. Nostra urna at, magna at neque sed sed ante imperdiet, dolor mauris cursus velit, velit non, sem nec. Volutpat sem ridiculus placerat leo, augue in, duis erat proin condimentum in a eget, sed fermentum sed vestibulum varius ac, vestibulum volutpat orci ut elit eget tortor. Ultrices nascetur nulla gravida ante arcu. Pharetra rhoncus morbi ipsum, nunc tempor debitis, ipsum pellentesque, vitae id quam ut mauris dui tempor, aptent non. Quisque turpis. Phasellus quis lectus luctus orci eget rhoncus. Amet donec vestibulum mattis commodo, nulla aliquet, nibh praesent, elementum nulla. Sit lacus pharetra tempus magna neque pellentesque, nulla vel erat. - Justo ex quisque nulla accusamus venenatis, sed quis. Nibh phasellus gravida metus in, fusce aenean ut erat commodo eros. Ut turpis, dui integer, nonummy pede placeat nec in sit leo. Faucibus porttitor illo taciti odio, amet viverra scelerisque quis quis et tortor, curabitur morbi a. Enim tempor at, rutrum elit condimentum, amet rutrum vitae tempor torquent nunc. Praesent vestibulum integer maxime felis. Neque aenean quia vitae nostra, tempus elit enim id dui, at egestas pulvinar. Integer libero vestibulum, quis blandit scelerisque mattis fermentum nulla, tortor donec vestibulum dolor amet eget, elit nullam. Aliquam leo phasellus aliquam curabitur metus a, nulla justo mattis duis interdum vel, mollis vitae et id, vestibulum erat ridiculus sit pulvinar justo sed. Vehicula convallis, et nulla wisi, amet vestibulum risus, quam ac egestas. - Et vitae, nulla gravida erat scelerisque nullam nunc pellentesque, a dictumst cras augue, purus imperdiet non. Varius montes cursus varius vel tortor, nec leo a qui, magni cras, velit vel consectetuer lobortis vel. Nibh erat et wisi felis leo porttitor, sapien nibh sapien pede mi, sed eget porttitor, repellendus arcu ac quis. Luctus vulputate aut est sem magna, placerat accumsan nunc vestibulum ipsum ac auctor, maecenas lorem in ut nec mauris tortor, doloribus varius sem tortor vestibulum mollis, eleifend tortor felis tempus lacus eu eu. Eleifend vel eu, nullam maecenas mauris nec nunc euismod, tortor porta ridiculus potenti, massa tristique nam magna, et wisi placerat et erat ante. Eget pede erat in facilisis, fermentum venenatis sodales. Ac tortor sociis et non animi tristique, rhoncus malesuada, ut arcu volutpat scelerisque sollicitudin, elit curabitur dui pede purus dolor, integer aenean risus taciti nulla eleifend accumsan. At pulvinar diam parturient, interdum mi velit aliquet et a. Arcu at ac placerat eget justo semper, purus sociis curabitur mi ipsum consequat ut, mollis vestibulum, est ante ornare lacus sem. Neque magna mauris, commodo quisque, praesent semper suscipit lobortis nam. Justo malesuada cursus ac nunc litora nunc. Tellus ac, in lobortis nunc, montes lectus purus fermentum. - Ac sit wisi. Sodales aliquam, sed vestibulum nullam arcu sit risus arcu, id luctus vitae lorem nibh, integer nec nullam class cursus mi, purus arcu lectus. Vel ante suscipit volutpat potenti mattis sed, wisi eu placerat aliquam erat, lectus morbi lobortis at assumenda. Consequat neque purus ipsum voluptas odio, netus vestibulum ut nec, suspendisse pellentesque nec enim in. Wisi dictum sed semper a, ipsum erat tellus habitasse est, erat sem ornare, vitae quisque ultricies. Dui sed blandit. Tempor et faucibus justo sed luctus, nec vitae vitae. Nunc nibh pede, ipsum vestibulum aenean leo ante ultricies, nam cras quis sed penatibus amet. In mauris a. Integer metus mauris tortor, et rutrum vestibulum ultricies, ut phasellus in ullamcorper ut mollit, eu justo. Cursus pretium venenatis. - Cras pellentesque vel sodales accumsan aenean. Feugiat metus sit nec in aliquet amet, porttitor pretium vulputate massa. Consequat ipsum luctus quisque adipiscing libero. Wisi sollicitudin. Eget vitae ac lobortis, lorem natoque vestibulum et, aliquet faucibus at morbi nibh, vel condimentum. Massa unde orci sed id sed, odio donec congue nec praesent amet. Hymenaeos velit lacus, quis vivamus libero tempus duis, eu nisi eu, ipsum at accumsan pede justo morbi donec, massa et libero sit risus neque tortor. Ut sed sed etiam hendrerit dapibus, quis metus suspendisse nibh. - Fringilla tempor felis augue magna. Cum arcu a, id vitae. Pellentesque pharetra in cras sociis adipiscing est. Nibh nec mattis at maecenas, nisl orci aliquam nulla justo egestas venenatis, elementum duis vel porta eros, massa vitae, eligendi imperdiet amet. Nec neque luctus suscipit, justo sem praesent, ut nisl quisque, volutpat torquent wisi tellus aliquam reprehenderit, curabitur cras at quis massa porttitor mauris. Eros sed ultrices. Amet dignissim justo urna feugiat mauris litora, etiam accumsan, lobortis a orci suspendisse. Semper ac mauris, varius bibendum pretium, orci urna nunc ullamcorper auctor, saepe sem integer quam, at feugiat egestas duis. Urna ligula ante. Leo elementum nonummy. Sagittis mauris est in ipsum, nulla amet non justo, proin id potenti platea posuere sit ut, nunc sit erat bibendum. Nibh id auctor, ab nulla vivamus ultrices, posuere morbi nunc tellus gravida vivamus. - Mauris nec, facilisi quam fermentum, ut mauris integer, orci tellus tempus diam ut in pellentesque. Wisi faucibus tempor et odio leo diam, eleifend quis integer curabitur sit scelerisque ac, mauris consequat luctus quam penatibus fringilla dis, vitae lacus in, est eu ac tempus. Consectetuer amet ipsum amet dui, sed blandit id sed. Tellus integer, dignissim id pede sodales quis, felis dolorem id mauris orci, orci tempus ut. Nullam hymenaeos. Curabitur in a, tortor ut praesent placerat tincidunt interdum, ac dignissim metus nonummy hendrerit wisi, etiam ut. - Semper praesent integer fusce, tortor suspendisse, augue ligula orci ante asperiores ullamcorper. In sit per mi sed sed, mi vestibulum mus nam, morbi mauris neque vitae aliquam proin senectus. Ac amet arcu mollis ante congue elementum, inceptos eget optio quam pellentesque quis lobortis, sollicitudin sed vestibulum sollicitudin, lectus parturient nullam, leo orci ligula ultrices. At tincidunt enim, suspendisse est sit sem ac. Amet tellus molestie est purus magna augue, non etiam et in wisi id. Non commodo, metus lorem facilisi lobortis ac velit, montes neque sed risus consectetuer fringilla dolor. Quam justo et integer aliquam, cursus nulla enim orci, nam cursus adipiscing, integer torquent non, fringilla per maecenas. Libero ipsum sed tellus purus et. Duis molestie placerat erat donec ut. Dolor enim erat massa faucibus ultrices in, ante ultricies orci lacus, libero consectetuer mauris magna feugiat neque dapibus, donec pretium et. Aptent dui, aliquam et et amet nostra ligula. - Augue curabitur duis dui volutpat, tempus sed ut pede donec. Interdum luctus, lectus nulla aenean elit, id sit magna, vulputate ultrices pellentesque vel id fermentum morbi. Tortor et. Adipiscing augue lorem cum non lacus, rutrum sodales laoreet duis tortor, modi placerat facilisis et malesuada eros ipsum, vehicula tempus. Ac vivamus amet non aliquam venenatis lectus, sociosqu adipiscing consequat nec arcu odio. Blandit orci nec nec, posuere in pretium, enim ut, consectetuer nullam urna, risus vel. Nullam odio vehicula massa sed, etiam sociis mauris, lacus ullamcorper, libero imperdiet non sodales placerat justo vehicula. Nec morbi imperdiet. Fermentum sem libero iaculis bibendum et eros, eget maecenas non nunc, ad pellentesque. Ut nec diam elementum interdum. Elementum vitae tellus lacus vitae, ipsum phasellus, corporis vehicula in ac sed massa vivamus, rutrum elit, ultricies metus volutpat. - Semper wisi et, sollicitudin nunc vestibulum, cursus accumsan nunc pede tempus mi ipsum, ligula sed. Non condimentum ac dolor sit. Mollis eu aliquam, vel mattis mollis massa ut dolor ante, tempus lacinia arcu. Urna vestibulum lorem, nulla fermentum, iaculis ut congue ac vivamus. Nam libero orci, pulvinar nulla, enim pellentesque consectetuer leo, feugiat rhoncus rhoncus vel. Magna sociosqu donec, dictum cursus ullamcorper viverra. Ultricies quis orci lorem, suspendisse ut vestibulum integer, purus sed lorem pulvinar habitasse turpis. - + - </v-card-text> + <v-card-text>Lorem ipsum dolor sit amet, semper quis, sapien id natoque elit. Nostra urna at, magna at neque sed sed ante imperdiet, dolor mauris cursus velit, velit non, sem nec. Volutpat sem ridiculus placerat leo, augue in, duis erat proin condimentum in a eget, sed fermentum sed vestibulum varius ac, vestibulum volutpat orci ut elit eget tortor. Ultrices nascetur nulla gravida ante arcu. Pharetra rhoncus morbi ipsum, nunc tempor debitis, ipsum pellentesque, vitae id quam ut mauris dui tempor, aptent non. Quisque turpis. Phasellus quis lectus luctus orci eget rhoncus. Amet donec vestibulum mattis commodo, nulla aliquet, nibh praesent, elementum nulla. Sit lacus pharetra tempus magna neque pellentesque, nulla vel erat. + Justo ex quisque nulla accusamus venenatis, sed quis. Nibh phasellus gravida metus in, fusce aenean ut erat commodo eros. Ut turpis, dui integer, nonummy pede placeat nec in sit leo. Faucibus porttitor illo taciti odio, amet viverra scelerisque quis quis et tortor, curabitur morbi a. Enim tempor at, rutrum elit condimentum, amet rutrum vitae tempor torquent nunc. Praesent vestibulum integer maxime felis. Neque aenean quia vitae nostra, tempus elit enim id dui, at egestas pulvinar. Integer libero vestibulum, quis blandit scelerisque mattis fermentum nulla, tortor donec vestibulum dolor amet eget, elit nullam. Aliquam leo phasellus aliquam curabitur metus a, nulla justo mattis duis interdum vel, mollis vitae et id, vestibulum erat ridiculus sit pulvinar justo sed. Vehicula convallis, et nulla wisi, amet vestibulum risus, quam ac egestas. + Et vitae, nulla gravida erat scelerisque nullam nunc pellentesque, a dictumst cras augue, purus imperdiet non. Varius montes cursus varius vel tortor, nec leo a qui, magni cras, velit vel consectetuer lobortis vel. Nibh erat et wisi felis leo porttitor, sapien nibh sapien pede mi, sed eget porttitor, repellendus arcu ac quis. Luctus vulputate aut est sem magna, placerat accumsan nunc vestibulum ipsum ac auctor, maecenas lorem in ut nec mauris tortor, doloribus varius sem tortor vestibulum mollis, eleifend tortor felis tempus lacus eu eu. Eleifend vel eu, nullam maecenas mauris nec nunc euismod, tortor porta ridiculus potenti, massa tristique nam magna, et wisi placerat et erat ante. Eget pede erat in facilisis, fermentum venenatis sodales. Ac tortor sociis et non animi tristique, rhoncus malesuada, ut arcu volutpat scelerisque sollicitudin, elit curabitur dui pede purus dolor, integer aenean risus taciti nulla eleifend accumsan. At pulvinar diam parturient, interdum mi velit aliquet et a. Arcu at ac placerat eget justo semper, purus sociis curabitur mi ipsum consequat ut, mollis vestibulum, est ante ornare lacus sem. Neque magna mauris, commodo quisque, praesent semper suscipit lobortis nam. Justo malesuada cursus ac nunc litora nunc. Tellus ac, in lobortis nunc, montes lectus purus fermentum. + Ac sit wisi. Sodales aliquam, sed vestibulum nullam arcu sit risus arcu, id luctus vitae lorem nibh, integer nec nullam class cursus mi, purus arcu lectus. Vel ante suscipit volutpat potenti mattis sed, wisi eu placerat aliquam erat, lectus morbi lobortis at assumenda. Consequat neque purus ipsum voluptas odio, netus vestibulum ut nec, suspendisse pellentesque nec enim in. Wisi dictum sed semper a, ipsum erat tellus habitasse est, erat sem ornare, vitae quisque ultricies. Dui sed blandit. Tempor et faucibus justo sed luctus, nec vitae vitae. Nunc nibh pede, ipsum vestibulum aenean leo ante ultricies, nam cras quis sed penatibus amet. In mauris a. Integer metus mauris tortor, et rutrum vestibulum ultricies, ut phasellus in ullamcorper ut mollit, eu justo. Cursus pretium venenatis. + Cras pellentesque vel sodales accumsan aenean. Feugiat metus sit nec in aliquet amet, porttitor pretium vulputate massa. Consequat ipsum luctus quisque adipiscing libero. Wisi sollicitudin. Eget vitae ac lobortis, lorem natoque vestibulum et, aliquet faucibus at morbi nibh, vel condimentum. Massa unde orci sed id sed, odio donec congue nec praesent amet. Hymenaeos velit lacus, quis vivamus libero tempus duis, eu nisi eu, ipsum at accumsan pede justo morbi donec, massa et libero sit risus neque tortor. Ut sed sed etiam hendrerit dapibus, quis metus suspendisse nibh. + Fringilla tempor felis augue magna. Cum arcu a, id vitae. Pellentesque pharetra in cras sociis adipiscing est. Nibh nec mattis at maecenas, nisl orci aliquam nulla justo egestas venenatis, elementum duis vel porta eros, massa vitae, eligendi imperdiet amet. Nec neque luctus suscipit, justo sem praesent, ut nisl quisque, volutpat torquent wisi tellus aliquam reprehenderit, curabitur cras at quis massa porttitor mauris. Eros sed ultrices. Amet dignissim justo urna feugiat mauris litora, etiam accumsan, lobortis a orci suspendisse. Semper ac mauris, varius bibendum pretium, orci urna nunc ullamcorper auctor, saepe sem integer quam, at feugiat egestas duis. Urna ligula ante. Leo elementum nonummy. Sagittis mauris est in ipsum, nulla amet non justo, proin id potenti platea posuere sit ut, nunc sit erat bibendum. Nibh id auctor, ab nulla vivamus ultrices, posuere morbi nunc tellus gravida vivamus. + Mauris nec, facilisi quam fermentum, ut mauris integer, orci tellus tempus diam ut in pellentesque. Wisi faucibus tempor et odio leo diam, eleifend quis integer curabitur sit scelerisque ac, mauris consequat luctus quam penatibus fringilla dis, vitae lacus in, est eu ac tempus. Consectetuer amet ipsum amet dui, sed blandit id sed. Tellus integer, dignissim id pede sodales quis, felis dolorem id mauris orci, orci tempus ut. Nullam hymenaeos. Curabitur in a, tortor ut praesent placerat tincidunt interdum, ac dignissim metus nonummy hendrerit wisi, etiam ut. + Semper praesent integer fusce, tortor suspendisse, augue ligula orci ante asperiores ullamcorper. In sit per mi sed sed, mi vestibulum mus nam, morbi mauris neque vitae aliquam proin senectus. Ac amet arcu mollis ante congue elementum, inceptos eget optio quam pellentesque quis lobortis, sollicitudin sed vestibulum sollicitudin, lectus parturient nullam, leo orci ligula ultrices. At tincidunt enim, suspendisse est sit sem ac. Amet tellus molestie est purus magna augue, non etiam et in wisi id. Non commodo, metus lorem facilisi lobortis ac velit, montes neque sed risus consectetuer fringilla dolor. Quam justo et integer aliquam, cursus nulla enim orci, nam cursus adipiscing, integer torquent non, fringilla per maecenas. Libero ipsum sed tellus purus et. Duis molestie placerat erat donec ut. Dolor enim erat massa faucibus ultrices in, ante ultricies orci lacus, libero consectetuer mauris magna feugiat neque dapibus, donec pretium et. Aptent dui, aliquam et et amet nostra ligula. + Augue curabitur duis dui volutpat, tempus sed ut pede donec. Interdum luctus, lectus nulla aenean elit, id sit magna, vulputate ultrices pellentesque vel id fermentum morbi. Tortor et. Adipiscing augue lorem cum non lacus, rutrum sodales laoreet duis tortor, modi placerat facilisis et malesuada eros ipsum, vehicula tempus. Ac vivamus amet non aliquam venenatis lectus, sociosqu adipiscing consequat nec arcu odio. Blandit orci nec nec, posuere in pretium, enim ut, consectetuer nullam urna, risus vel. Nullam odio vehicula massa sed, etiam sociis mauris, lacus ullamcorper, libero imperdiet non sodales placerat justo vehicula. Nec morbi imperdiet. Fermentum sem libero iaculis bibendum et eros, eget maecenas non nunc, ad pellentesque. Ut nec diam elementum interdum. Elementum vitae tellus lacus vitae, ipsum phasellus, corporis vehicula in ac sed massa vivamus, rutrum elit, ultricies metus volutpat. + Semper wisi et, sollicitudin nunc vestibulum, cursus accumsan nunc pede tempus mi ipsum, ligula sed. Non condimentum ac dolor sit. Mollis eu aliquam, vel mattis mollis massa ut dolor ante, tempus lacinia arcu. Urna vestibulum lorem, nulla fermentum, iaculis ut congue ac vivamus. Nam libero orci, pulvinar nulla, enim pellentesque consectetuer leo, feugiat rhoncus rhoncus vel. Magna sociosqu donec, dictum cursus ullamcorper viverra. Ultricies quis orci lorem, suspendisse ut vestibulum integer, purus sed lorem pulvinar habitasse turpis. + +</v-card-text> <v-card-actions> <v-spacer></v-spacer> - <v-btn - color="green darken-1" - flat="flat" - @click="dialog = false" - > - Disagree - </v-btn> - <v-btn - color="green darken-1" - flat="flat" - @click="dialog = false" - > - Agree - </v-btn> + <v-btn color="green darken-1" flat="flat" @click="dialog = false">Disagree</v-btn> + <v-btn color="green darken-1" flat="flat" @click="dialog = false">Agree</v-btn> </v-card-actions> </v-card> </v-dialog> diff --git a/packages/docs/src/examples/dialogs/scrollable.vue b/packages/docs/src/examples/dialogs/scrollable.vue index f1fdfa744f2..841757661ee 100644 --- a/packages/docs/src/examples/dialogs/scrollable.vue +++ b/packages/docs/src/examples/dialogs/scrollable.vue @@ -1,118 +1,36 @@ <template> - <v-layout - row - justify-center - > - <v-dialog - v-model="dialog" - scrollable - max-width="300px" - > - <v-btn - slot="activator" - color="primary" - dark - > - Open Dialog - </v-btn> + <v-layout row justify-center> + <v-dialog v-model="dialog" scrollable max-width="300px"> + <v-btn slot="activator" color="primary" dark>Open Dialog</v-btn> <v-card> <v-card-title>Select Country</v-card-title> <v-divider></v-divider> <v-card-text style="height: 300px;"> - <v-radio-group - v-model="dialogm1" - column - > - <v-radio - label="Bahamas, The" - value="bahamas" - ></v-radio> - <v-radio - label="Bahrain" - value="bahrain" - ></v-radio> - <v-radio - label="Bangladesh" - value="bangladesh" - ></v-radio> - <v-radio - label="Barbados" - value="barbados" - ></v-radio> - <v-radio - label="Belarus" - value="belarus" - ></v-radio> - <v-radio - label="Belgium" - value="belgium" - ></v-radio> - <v-radio - label="Belize" - value="belize" - ></v-radio> - <v-radio - label="Benin" - value="benin" - ></v-radio> - <v-radio - label="Bhutan" - value="bhutan" - ></v-radio> - <v-radio - label="Bolivia" - value="bolivia" - ></v-radio> - <v-radio - label="Bosnia and Herzegovina" - value="bosnia" - ></v-radio> - <v-radio - label="Botswana" - value="botswana" - ></v-radio> - <v-radio - label="Brazil" - value="brazil" - ></v-radio> - <v-radio - label="Brunei" - value="brunei" - ></v-radio> - <v-radio - label="Bulgaria" - value="bulgaria" - ></v-radio> - <v-radio - label="Burkina Faso" - value="burkina" - ></v-radio> - <v-radio - label="Burma" - value="burma" - ></v-radio> - <v-radio - label="Burundi" - value="burundi" - ></v-radio> + <v-radio-group v-model="dialogm1" column> + <v-radio label="Bahamas, The" value="bahamas"></v-radio> + <v-radio label="Bahrain" value="bahrain"></v-radio> + <v-radio label="Bangladesh" value="bangladesh"></v-radio> + <v-radio label="Barbados" value="barbados"></v-radio> + <v-radio label="Belarus" value="belarus"></v-radio> + <v-radio label="Belgium" value="belgium"></v-radio> + <v-radio label="Belize" value="belize"></v-radio> + <v-radio label="Benin" value="benin"></v-radio> + <v-radio label="Bhutan" value="bhutan"></v-radio> + <v-radio label="Bolivia" value="bolivia"></v-radio> + <v-radio label="Bosnia and Herzegovina" value="bosnia"></v-radio> + <v-radio label="Botswana" value="botswana"></v-radio> + <v-radio label="Brazil" value="brazil"></v-radio> + <v-radio label="Brunei" value="brunei"></v-radio> + <v-radio label="Bulgaria" value="bulgaria"></v-radio> + <v-radio label="Burkina Faso" value="burkina"></v-radio> + <v-radio label="Burma" value="burma"></v-radio> + <v-radio label="Burundi" value="burundi"></v-radio> </v-radio-group> </v-card-text> <v-divider></v-divider> <v-card-actions> - <v-btn - color="blue darken-1" - flat - @click="dialog = false" - > - Close - </v-btn> - <v-btn - color="blue darken-1" - flat - @click="dialog = false" - > - Save - </v-btn> + <v-btn color="blue darken-1" flat @click="dialog = false">Close</v-btn> + <v-btn color="blue darken-1" flat @click="dialog = false">Save</v-btn> </v-card-actions> </v-card> </v-dialog> diff --git a/packages/docs/src/examples/dialogs/withoutActivator.vue b/packages/docs/src/examples/dialogs/withoutActivator.vue index bf760777e76..09542e7fb46 100644 --- a/packages/docs/src/examples/dialogs/withoutActivator.vue +++ b/packages/docs/src/examples/dialogs/withoutActivator.vue @@ -1,8 +1,5 @@ <template> - <v-layout - row - justify-center - > + <v-layout row justify-center> <v-btn color="primary" dark @@ -16,9 +13,7 @@ max-width="290" > <v-card> - <v-card-title class="headline"> - Use Google's location service? - </v-card-title> + <v-card-title class="headline">Use Google's location service?</v-card-title> <v-card-text> Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running. diff --git a/packages/docs/src/examples/display/hiddenElements.vue b/packages/docs/src/examples/display/hiddenElements.vue index 1fd646d527e..3fb6f47345e 100644 --- a/packages/docs/src/examples/display/hiddenElements.vue +++ b/packages/docs/src/examples/display/hiddenElements.vue @@ -2,14 +2,8 @@ <v-toolbar light> <v-toolbar-title>Title</v-toolbar-title> <v-spacer></v-spacer> - <v-toolbar-items - v-for="item in items" - :key="item.text" - class="hidden-sm-and-down" - > - <v-btn flat> - {{ item.text }} - </v-btn> + <v-toolbar-items v-for="item in items" :key="item.text" class="hidden-sm-and-down"> + <v-btn flat>{{ item.text }}</v-btn> </v-toolbar-items> </v-toolbar> </template> diff --git a/packages/docs/src/examples/dividers/dividerList.vue b/packages/docs/src/examples/dividers/dividerList.vue index 05388f1ef1c..140a9de7204 100644 --- a/packages/docs/src/examples/dividers/dividerList.vue +++ b/packages/docs/src/examples/dividers/dividerList.vue @@ -1,15 +1,8 @@ <template> <v-layout justify-center> - <v-flex - xs12 - sm8 - md6 - > + <v-flex xs12 sm8 md6> <v-card> - <v-toolbar - color="orange lighten-1" - dark - > + <v-toolbar color="orange lighten-1" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Message Board</v-toolbar-title> diff --git a/packages/docs/src/examples/dividers/dividerListPortrait.vue b/packages/docs/src/examples/dividers/dividerListPortrait.vue index 518b8602826..1d2045fb0f1 100644 --- a/packages/docs/src/examples/dividers/dividerListPortrait.vue +++ b/packages/docs/src/examples/dividers/dividerListPortrait.vue @@ -1,35 +1,21 @@ <template> <v-layout justify-center> - <v-flex - xs12 - sm8 - > + <v-flex xs12 sm8> <v-card> <v-card-title class="cyan darken-1"> - <span class="headline white--text"> - Sarah Mcbeal - </span> + <span class="headline white--text">Sarah Mcbeal</span> <v-spacer></v-spacer> - <v-btn - dark - icon - > + <v-btn dark icon> <v-icon>chevron_left</v-icon> </v-btn> - <v-btn - dark - icon - > + <v-btn dark icon> <v-icon>edit</v-icon> </v-btn> - <v-btn - dark - icon - > + <v-btn dark icon> <v-icon>more_vert</v-icon> </v-btn> </v-card-title> @@ -44,6 +30,7 @@ <v-list-tile-title>(650) 555-1234</v-list-tile-title> </v-list-tile-content> <v-list-tile-action> + <v-icon>chat</v-icon> </v-list-tile-action> </v-list-tile> diff --git a/packages/docs/src/examples/dividers/dividerPortrait.vue b/packages/docs/src/examples/dividers/dividerPortrait.vue index a4a431294a7..a8e9892a003 100644 --- a/packages/docs/src/examples/dividers/dividerPortrait.vue +++ b/packages/docs/src/examples/dividers/dividerPortrait.vue @@ -10,9 +10,7 @@ > <v-card color="grey darken-1"> <v-card-title> - <span class="headline white--text pl-3"> - Portrait View - </span> + <span class="headline white--text pl-3">Portrait View</span> <v-spacer></v-spacer> @@ -39,21 +37,15 @@ <v-list class="grey darken-1"> <v-list-tile> <v-list-tile-action> - <v-icon color="white"> - phone - </v-icon> + <v-icon color="white">phone</v-icon> </v-list-tile-action> <v-list-tile-content> - <v-list-tile-title class="white--text"> - (650) 555-1234 - </v-list-tile-title> + <v-list-tile-title class="white--text">(650) 555-1234</v-list-tile-title> </v-list-tile-content> <v-list-tile-action> - <v-icon class="white--text"> - chat - </v-icon> + <v-icon class="white--text">chat</v-icon> </v-list-tile-action> </v-list-tile> @@ -61,21 +53,15 @@ <v-list-tile> <v-list-tile-action> - <v-icon color="white"> - phone - </v-icon> + <v-icon color="white">phone</v-icon> </v-list-tile-action> <v-list-tile-content> - <v-list-tile-title class="white--text"> - (323) 555-6789 - </v-list-tile-title> + <v-list-tile-title class="white--text">(323) 555-6789</v-list-tile-title> </v-list-tile-content> <v-list-tile-action> - <v-icon class="white--text"> - chat - </v-icon> + <v-icon class="white--text">chat</v-icon> </v-list-tile-action> </v-list-tile> @@ -83,15 +69,11 @@ <v-list-tile> <v-list-tile-action> - <v-icon color="white"> - mail - </v-icon> + <v-icon color="white">mail</v-icon> </v-list-tile-action> <v-list-tile-content> - <v-list-tile-title class="white--text"> - [email protected] - </v-list-tile-title> + <v-list-tile-title class="white--text">[email protected]</v-list-tile-title> </v-list-tile-content> </v-list-tile> @@ -99,15 +81,11 @@ <v-list-tile> <v-list-tile-action> - <v-icon color="white"> - location_on - </v-icon> + <v-icon color="white">location_on</v-icon> </v-list-tile-action> <v-list-tile-content> - <v-list-tile-title class="white--text"> - Orlando, FL 79938 - </v-list-tile-title> + <v-list-tile-title class="white--text">Orlando, FL 79938</v-list-tile-title> </v-list-tile-content> </v-list-tile> </v-list> diff --git a/packages/docs/src/examples/dividers/inset.vue b/packages/docs/src/examples/dividers/inset.vue index 7ab62850430..f5e29546267 100644 --- a/packages/docs/src/examples/dividers/inset.vue +++ b/packages/docs/src/examples/dividers/inset.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="cyan" - dark - > + <v-toolbar color="cyan" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Inbox</v-toolbar-title> <v-spacer></v-spacer> @@ -19,23 +12,9 @@ </v-toolbar> <v-list two-line> <template v-for="(item, index) in items.slice(0, 6)"> - <v-subheader - v-if="item.header" - :key="item.header" - > - {{ item.header }} - </v-subheader> - <v-divider - v-else-if="item.divider" - :key="index" - :inset="item.inset" - ></v-divider> - <v-list-tile - v-else - :key="item.title" - avatar - @click="" - > + <v-subheader v-if="item.header" :key="item.header">{{ item.header }}</v-subheader> + <v-divider v-else-if="item.divider" :inset="item.inset" :key="index"></v-divider> + <v-list-tile v-else :key="item.title" avatar @click=""> <v-list-tile-avatar> <img :src="item.avatar"> </v-list-tile-avatar> diff --git a/packages/docs/src/examples/dividers/lightAndDark.vue b/packages/docs/src/examples/dividers/lightAndDark.vue index a1e8f11ed65..e9e3797efe1 100644 --- a/packages/docs/src/examples/dividers/lightAndDark.vue +++ b/packages/docs/src/examples/dividers/lightAndDark.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="indigo" - dark - > + <v-toolbar color="indigo" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Manage</v-toolbar-title> <v-spacer></v-spacer> @@ -17,16 +10,9 @@ <v-icon>more_vert</v-icon> </v-btn> </v-toolbar> - <v-list - class="indigo darken-2" - dark - > + <v-list class="indigo darken-2" dark> <template v-for="(item, index) in items"> - <v-list-tile - v-if="item.action" - :key="item.title" - @click="" - > + <v-list-tile v-if="item.action" :key="item.title" @click=""> <v-list-tile-action> <v-icon>{{ item.action }}</v-icon> </v-list-tile-action> @@ -34,17 +20,8 @@ <v-list-tile-title>{{ item.title }}</v-list-tile-title> </v-list-tile-content> </v-list-tile> - <v-divider - v-else-if="item.divider" - :key="index" - ></v-divider> - <v-subheader - v-else-if="item.header" - :key="item.header" - class="grey--text text--lighten-4" - > - {{ item.header }} - </v-subheader> + <v-divider v-else-if="item.divider" :key="index"></v-divider> + <v-subheader v-else-if="item.header" :key="item.header" class="grey--text text--lighten-4">{{ item.header }}</v-subheader> </template> </v-list> </v-card> diff --git a/packages/docs/src/examples/dividers/subheaders.vue b/packages/docs/src/examples/dividers/subheaders.vue index 28667819152..52562dc7c1e 100644 --- a/packages/docs/src/examples/dividers/subheaders.vue +++ b/packages/docs/src/examples/dividers/subheaders.vue @@ -1,48 +1,23 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="light-blue" - dark - > + <v-toolbar color="light-blue" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>My files</v-toolbar-title> <v-spacer></v-spacer> - <v-btn - dark - icon - > + <v-btn dark icon> <v-icon>search</v-icon> </v-btn> - <v-btn - dark - icon - > + <v-btn dark icon> <v-icon>view_module</v-icon> </v-btn> </v-toolbar> - <v-list - two-line - subheader - > - <v-subheader inset> - Folders - </v-subheader> - <v-list-tile - v-for="item in items" - :key="item.title" - avatar - @click="" - > + <v-list two-line subheader> + <v-subheader inset>Folders</v-subheader> + <v-list-tile v-for="item in items" :key="item.title" avatar @click=""> <v-list-tile-avatar> - <v-icon :class="[item.iconClass]"> - {{ item.icon }} - </v-icon> + <v-icon :class="[item.iconClass]">{{ item.icon }}</v-icon> </v-list-tile-avatar> <v-list-tile-content> <v-list-tile-title>{{ item.title }}</v-list-tile-title> @@ -50,25 +25,15 @@ </v-list-tile-content> <v-list-tile-action> <v-btn icon> - <v-icon color="grey lighten-1"> - info - </v-icon> + <v-icon color="grey lighten-1">info</v-icon> </v-btn> </v-list-tile-action> </v-list-tile> <v-divider inset></v-divider> - <v-subheader inset> - Files - </v-subheader> - <v-list-tile - v-for="item in items2" - :key="item.title" - @click="" - > + <v-subheader inset>Files</v-subheader> + <v-list-tile v-for="item in items2" :key="item.title" @click=""> <v-list-tile-avatar> - <v-icon :class="[item.iconClass]"> - {{ item.icon }} - </v-icon> + <v-icon :class="[item.iconClass]">{{ item.icon }}</v-icon> </v-list-tile-avatar> <v-list-tile-content> <v-list-tile-title>{{ item.title }}</v-list-tile-title> @@ -76,9 +41,7 @@ </v-list-tile-content> <v-list-tile-action> <v-btn icon> - <v-icon color="grey lighten-1"> - info - </v-icon> + <v-icon color="grey lighten-1">info</v-icon> </v-btn> </v-list-tile-action> </v-list-tile> diff --git a/packages/docs/src/examples/dividers/usage.vue b/packages/docs/src/examples/dividers/usage.vue index 2716f5ca57a..54d18373dfe 100644 --- a/packages/docs/src/examples/dividers/usage.vue +++ b/packages/docs/src/examples/dividers/usage.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="pink" - dark - > + <v-toolbar color="pink" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Inbox</v-toolbar-title> <v-spacer></v-spacer> @@ -22,30 +15,18 @@ </v-toolbar> <v-list two-line> <template v-for="(item, index) in items"> - <v-list-tile - :key="index" - avatar - ripple - @click="" - > + <v-list-tile :key="index" avatar ripple @click=""> <v-list-tile-content> <v-list-tile-title>{{ item.title }}</v-list-tile-title> - <v-list-tile-sub-title class="text--primary"> - {{ item.headline }} - </v-list-tile-sub-title> + <v-list-tile-sub-title class="text--primary">{{ item.headline }}</v-list-tile-sub-title> <v-list-tile-sub-title>{{ item.subtitle }}</v-list-tile-sub-title> </v-list-tile-content> <v-list-tile-action> <v-list-tile-action-text>{{ item.action }}</v-list-tile-action-text> - <v-icon color="grey lighten-1"> - star_border - </v-icon> + <v-icon color="grey lighten-1">star_border</v-icon> </v-list-tile-action> </v-list-tile> - <v-divider - v-if="index + 1 < items.length" - :key="`divider-${index}`" - ></v-divider> + <v-divider v-if="index + 1 < items.length" :key="`divider-${index}`"></v-divider> </template> </v-list> </v-card> diff --git a/packages/docs/src/examples/dividers/vertical.vue b/packages/docs/src/examples/dividers/vertical.vue index a51739da662..cbea5bfa505 100644 --- a/packages/docs/src/examples/dividers/vertical.vue +++ b/packages/docs/src/examples/dividers/vertical.vue @@ -11,9 +11,7 @@ vertical ></v-divider> - <span class="subheading"> - My Home - </span> + <span class="subheading">My Home</span> <v-spacer></v-spacer> diff --git a/packages/docs/src/examples/expansion-panels/customIcons.vue b/packages/docs/src/examples/expansion-panels/customIcons.vue index 99a2076de35..5c8b6410823 100644 --- a/packages/docs/src/examples/expansion-panels/customIcons.vue +++ b/packages/docs/src/examples/expansion-panels/customIcons.vue @@ -5,13 +5,9 @@ :key="i" expand-icon="mdi-menu-down" > - <div slot="header"> - Item - </div> + <div slot="header">Item</div> <v-card> - <v-card-text class="grey lighten-3"> - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - </v-card-text> + <v-card-text class="grey lighten-3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> </v-expansion-panel-content> </v-expansion-panel> diff --git a/packages/docs/src/examples/expansion-panels/disabledAndReadonly.vue b/packages/docs/src/examples/expansion-panels/disabledAndReadonly.vue index 660304b4e86..1c6e8786825 100644 --- a/packages/docs/src/examples/expansion-panels/disabledAndReadonly.vue +++ b/packages/docs/src/examples/expansion-panels/disabledAndReadonly.vue @@ -18,9 +18,7 @@ expand > <v-expansion-panel-content disabled> - <template slot="header"> - Disabled - </template> + <template slot="header">Disabled</template> <v-card> <v-card-text> Disabled content. Style is changed and user is unable to toggle content. @@ -29,9 +27,7 @@ </v-expansion-panel-content> <v-expansion-panel-content readonly> - <template slot="header"> - Readonly - </template> + <template slot="header">Readonly</template> <v-card> <v-card-text> Readonly content. Style is unchanged but user is unable to toggle content. @@ -40,9 +36,7 @@ </v-expansion-panel-content> <v-expansion-panel-content> - <template slot="header"> - Regular - </template> + <template slot="header">Regular</template> <v-card> <v-card-text>Some content</v-card-text> </v-card> diff --git a/packages/docs/src/examples/expansion-panels/expand.vue b/packages/docs/src/examples/expansion-panels/expand.vue index 0d23f771511..50b91f354f0 100644 --- a/packages/docs/src/examples/expansion-panels/expand.vue +++ b/packages/docs/src/examples/expansion-panels/expand.vue @@ -1,8 +1,6 @@ <template> <div> - <div class="text-xs-center mb-3"> - {{ panel }} - </div> + <div class="text-xs-center mb-3">{{ panel }}</div> <v-expansion-panel v-model="panel" expand @@ -11,13 +9,9 @@ v-for="(item, i) in 5" :key="i" > - <div slot="header"> - Item - </div> + <div slot="header">Item</div> <v-card> - <v-card-text class="grey lighten-3"> - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - </v-card-text> + <v-card-text class="grey lighten-3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> </v-expansion-panel-content> </v-expansion-panel> diff --git a/packages/docs/src/examples/expansion-panels/external.vue b/packages/docs/src/examples/expansion-panels/external.vue index 1827f5d2e35..ef9151c4306 100644 --- a/packages/docs/src/examples/expansion-panels/external.vue +++ b/packages/docs/src/examples/expansion-panels/external.vue @@ -1,12 +1,8 @@ <template> <div> <div class="d-flex justify-between align-center mb-3"> - <v-btn @click="all"> - all - </v-btn> - <v-btn @click="none"> - none - </v-btn> + <v-btn @click="all">all</v-btn> + <v-btn @click="none">none</v-btn> </div> <v-expansion-panel @@ -17,9 +13,7 @@ v-for="(item,i) in items" :key="i" > - <div slot="header"> - Item - </div> + <div slot="header">Item</div> <v-card> <v-card-text>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> diff --git a/packages/docs/src/examples/expansion-panels/focusable.vue b/packages/docs/src/examples/expansion-panels/focusable.vue index 42b4b331fc3..4dfb723b67a 100644 --- a/packages/docs/src/examples/expansion-panels/focusable.vue +++ b/packages/docs/src/examples/expansion-panels/focusable.vue @@ -4,13 +4,9 @@ v-for="(item,i) in 5" :key="i" > - <div slot="header"> - Item - </div> + <div slot="header">Item</div> <v-card> - <v-card-text class="grey lighten-3"> - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - </v-card-text> + <v-card-text class="grey lighten-3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> </v-expansion-panel-content> </v-expansion-panel> diff --git a/packages/docs/src/examples/expansion-panels/iconSlot.vue b/packages/docs/src/examples/expansion-panels/iconSlot.vue index 6a4beb1c58a..03f52f9fcff 100644 --- a/packages/docs/src/examples/expansion-panels/iconSlot.vue +++ b/packages/docs/src/examples/expansion-panels/iconSlot.vue @@ -1,51 +1,24 @@ <template> <v-expansion-panel> <v-expansion-panel-content> - <v-icon - slot="actions" - color="primary" - > - $vuetify.icons.expand - </v-icon> - <div slot="header"> - Item - </div> + <v-icon slot="actions" color="primary">$vuetify.icons.expand</v-icon> + <div slot="header">Item</div> <v-card> - <v-card-text class="grey lighten-3"> - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - </v-card-text> + <v-card-text class="grey lighten-3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> </v-expansion-panel-content> <v-expansion-panel-content> - <v-icon - slot="actions" - color="teal" - > - done - </v-icon> - <div slot="header"> - Item - </div> + <v-icon slot="actions" color="teal">done</v-icon> + <div slot="header">Item</div> <v-card> - <v-card-text class="grey lighten-3"> - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - </v-card-text> + <v-card-text class="grey lighten-3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> </v-expansion-panel-content> <v-expansion-panel-content> - <v-icon - slot="actions" - color="error" - > - error - </v-icon> - <div slot="header"> - Item - </div> + <v-icon slot="actions" color="error">error</v-icon> + <div slot="header">Item</div> <v-card> - <v-card-text class="grey lighten-3"> - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - </v-card-text> + <v-card-text class="grey lighten-3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> </v-expansion-panel-content> </v-expansion-panel> diff --git a/packages/docs/src/examples/expansion-panels/popout.vue b/packages/docs/src/examples/expansion-panels/popout.vue index 9f605f892f5..bdb7a6a3363 100644 --- a/packages/docs/src/examples/expansion-panels/popout.vue +++ b/packages/docs/src/examples/expansion-panels/popout.vue @@ -1,22 +1,13 @@ <template> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - lg5 - mb-3 - > + <v-layout row wrap> + <v-flex xs12 lg5 mb-3> <v-expansion-panel popout> <v-expansion-panel-content v-for="(item,i) in 5" :key="i" > - <div slot="header"> - Item - </div> + <div slot="header">Item</div> <v-card> <v-card-text>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> @@ -24,19 +15,13 @@ </v-expansion-panel> </v-flex> - <v-flex - xs12 - lg5 - offset-lg2 - > + <v-flex xs12 lg5 offset-lg2> <v-expansion-panel inset> <v-expansion-panel-content v-for="(item,i) in 5" :key="i" > - <div slot="header"> - Item - </div> + <div slot="header">Item</div> <v-card> <v-card-text>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> diff --git a/packages/docs/src/examples/expansion-panels/usage.vue b/packages/docs/src/examples/expansion-panels/usage.vue index 0c55f6a3773..48aadba3d17 100644 --- a/packages/docs/src/examples/expansion-panels/usage.vue +++ b/packages/docs/src/examples/expansion-panels/usage.vue @@ -4,9 +4,7 @@ v-for="(item,i) in 5" :key="i" > - <div slot="header"> - Item - </div> + <div slot="header">Item</div> <v-card> <v-card-text>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> diff --git a/packages/docs/src/examples/floating-action-buttons/displayAnimation.vue b/packages/docs/src/examples/floating-action-buttons/displayAnimation.vue index a488869c753..8b24c15e95e 100644 --- a/packages/docs/src/examples/floating-action-buttons/displayAnimation.vue +++ b/packages/docs/src/examples/floating-action-buttons/displayAnimation.vue @@ -1,18 +1,7 @@ <template> - <v-container - fluid - grid-list-lg - > - <v-layout - row - wrap - > - <v-flex - xs12 - sm12 - md6 - offset-md3 - > + <v-container fluid grid-list-lg> + <v-layout row wrap> + <v-flex xs12 sm12 md6 offset-md3> <v-card> <v-toolbar extended> <v-toolbar-side-icon></v-toolbar-side-icon> @@ -31,14 +20,8 @@ </v-btn> </v-fab-transition> </v-toolbar> - <v-card-text - style="height: 300px;" - class="grey lighten-5 text-xs-center" - > - <v-btn - color="primary" - @click="hidden = !hidden" - > + <v-card-text style="height: 300px;" class="grey lighten-5 text-xs-center"> + <v-btn color="primary" @click="hidden = !hidden"> {{ hidden ? 'Show' : 'Hide' }} </v-btn> </v-card-text> diff --git a/packages/docs/src/examples/floating-action-buttons/lateralScreens.vue b/packages/docs/src/examples/floating-action-buttons/lateralScreens.vue index cfad13755a9..c8f4c257952 100644 --- a/packages/docs/src/examples/floating-action-buttons/lateralScreens.vue +++ b/packages/docs/src/examples/floating-action-buttons/lateralScreens.vue @@ -1,11 +1,6 @@ <template> <div id="lateral"> - <v-toolbar - dark - tabs - flat - color="indigo" - > + <v-toolbar dark tabs flat color="indigo"> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Page title</v-toolbar-title> <v-spacer></v-spacer> @@ -21,15 +16,9 @@ align-with-title color="transparent" > - <v-tab href="#one"> - Item One - </v-tab> - <v-tab href="#two"> - Item Two - </v-tab> - <v-tab href="#three"> - Item Three - </v-tab> + <v-tab href="#one">Item One</v-tab> + <v-tab href="#two">Item Two</v-tab> + <v-tab href="#three">Item Three</v-tab> <v-tabs-slider color="pink"></v-tabs-slider> </v-tabs> </v-toolbar> @@ -39,18 +28,15 @@ :key="content" :value="content" > - <v-card - height="200px" - flat - > + <v-card height="200px" flat> </v-card> </v-tab-item> </v-tabs-items> <v-fab-transition> <v-btn + :color="activeFab.color" :key="activeFab.icon" v-model="fab" - :color="activeFab.color" dark fab fixed diff --git a/packages/docs/src/examples/floating-action-buttons/small.vue b/packages/docs/src/examples/floating-action-buttons/small.vue index eea3d59dbdd..66c5c2d7fc5 100644 --- a/packages/docs/src/examples/floating-action-buttons/small.vue +++ b/packages/docs/src/examples/floating-action-buttons/small.vue @@ -1,16 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="light-blue" - light - extended - > + <v-toolbar color="light-blue" light extended> <v-toolbar-side-icon></v-toolbar-side-icon> <v-btn fab @@ -23,12 +15,7 @@ > <v-icon>add</v-icon> </v-btn> - <v-toolbar-title - slot="extension" - class="white--text" - > - My files - </v-toolbar-title> + <v-toolbar-title slot="extension" class="white--text">My files</v-toolbar-title> <v-spacer></v-spacer> <v-btn icon> <v-icon>search</v-icon> @@ -37,23 +24,11 @@ <v-icon>view_module</v-icon> </v-btn> </v-toolbar> - <v-list - two-line - subheader - > - <v-subheader inset> - Folders - </v-subheader> - <v-list-tile - v-for="item in items" - :key="item.title" - avatar - @click="" - > + <v-list two-line subheader> + <v-subheader inset>Folders</v-subheader> + <v-list-tile v-for="item in items" :key="item.title" avatar @click=""> <v-list-tile-avatar> - <v-icon :class="[item.iconClass]"> - {{ item.icon }} - </v-icon> + <v-icon :class="[item.iconClass]">{{ item.icon }}</v-icon> </v-list-tile-avatar> <v-list-tile-content> <v-list-tile-title>{{ item.title }}</v-list-tile-title> @@ -61,63 +36,36 @@ </v-list-tile-content> <v-list-tile-action> <v-btn icon> - <v-icon color="grey lighten-1"> - info - </v-icon> + <v-icon color="grey lighten-1">info</v-icon> </v-btn> </v-list-tile-action> </v-list-tile> <v-divider inset></v-divider> - <v-subheader inset> - Files - </v-subheader> - <v-list-tile - v-for="item in items2" - :key="item.title" - avatar - @click="" - > + <v-subheader inset>Files</v-subheader> + <v-list-tile v-for="item in items2" :key="item.title" avatar @click=""> <v-list-tile-avatar> - <v-icon :class="[item.iconClass]"> - {{ item.icon }} - </v-icon> + <v-icon :class="[item.iconClass]">{{ item.icon }}</v-icon> </v-list-tile-avatar> <v-list-tile-content> <v-list-tile-title>{{ item.title }}</v-list-tile-title> <v-list-tile-sub-title>{{ item.subtitle }}</v-list-tile-sub-title> </v-list-tile-content> <v-list-tile-action> - <v-btn - icon - ripple - > - <v-icon color="grey lighten-1"> - info - </v-icon> + <v-btn icon ripple> + <v-icon color="grey lighten-1">info</v-icon> </v-btn> </v-list-tile-action> </v-list-tile> </v-list> - <v-dialog - v-model="dialog" - max-width="500px" - > + <v-dialog v-model="dialog" max-width="500px"> <v-card> <v-card-text> <v-text-field label="File name"></v-text-field> - <small class="grey--text"> - * This doesn't actually save. - </small> + <small class="grey--text">* This doesn't actually save.</small> </v-card-text> <v-card-actions> <v-spacer></v-spacer> - <v-btn - flat - color="primary" - @click="dialog = false" - > - Submit - </v-btn> + <v-btn flat color="primary" @click="dialog = false">Submit</v-btn> </v-card-actions> </v-card> </v-dialog> diff --git a/packages/docs/src/examples/floating-action-buttons/speedDial.vue b/packages/docs/src/examples/floating-action-buttons/speedDial.vue index 371bb020bf1..43900c87d56 100644 --- a/packages/docs/src/examples/floating-action-buttons/speedDial.vue +++ b/packages/docs/src/examples/floating-action-buttons/speedDial.vue @@ -1,110 +1,35 @@ <template> <v-card id="create"> - <v-container - fluid - grid-list-md - > - <v-layout - child-flex - wrap - > - <v-flex - xs12 - sm6 - md4 - > + <v-container fluid grid-list-md> + <v-layout child-flex wrap> + <v-flex xs12 sm6 md4> <v-subheader>Options</v-subheader> - <v-checkbox - v-model="hover" - label="Open on hover" - hide-details - ></v-checkbox> + <v-checkbox v-model="hover" label="Open on hover" hide-details></v-checkbox> </v-flex> - <v-flex - xs12 - sm6 - md4 - > + <v-flex xs12 sm6 md4> <v-subheader>FAB location</v-subheader> - <v-checkbox - v-model="top" - label="Top" - hide-details - ></v-checkbox> - <v-checkbox - v-model="right" - label="Right" - hide-details - ></v-checkbox> - <v-checkbox - v-model="bottom" - label="Bottom" - hide-details - ></v-checkbox> - <v-checkbox - v-model="left" - label="Left" - hide-details - ></v-checkbox> + <v-checkbox v-model="top" label="Top" hide-details></v-checkbox> + <v-checkbox v-model="right" label="Right" hide-details></v-checkbox> + <v-checkbox v-model="bottom" label="Bottom" hide-details></v-checkbox> + <v-checkbox v-model="left" label="Left" hide-details></v-checkbox> </v-flex> - <v-flex - xs12 - sm6 - md4 - > + <v-flex xs12 sm6 md4> <v-subheader>Speed dial direction</v-subheader> - <v-radio-group - v-model="direction" - hide-details - > - <v-radio - value="top" - label="Top" - ></v-radio> - <v-radio - value="right" - label="Right" - ></v-radio> - <v-radio - value="bottom" - label="Bottom" - ></v-radio> - <v-radio - value="left" - label="Left" - ></v-radio> + <v-radio-group v-model="direction" hide-details> + <v-radio value="top" label="Top"></v-radio> + <v-radio value="right" label="Right"></v-radio> + <v-radio value="bottom" label="Bottom"></v-radio> + <v-radio value="left" label="Left"></v-radio> </v-radio-group> </v-flex> - <v-flex - xs12 - sm6 - md4 - > + <v-flex xs12 sm6 md4> <v-subheader>Transition</v-subheader> - <v-radio-group - v-model="transition" - hide-details - > - <v-radio - value="slide-y-transition" - label="Slide y" - ></v-radio> - <v-radio - value="slide-y-reverse-transition" - label="Slide y reverse" - ></v-radio> - <v-radio - value="slide-x-transition" - label="Slide x" - ></v-radio> - <v-radio - value="slide-x-reverse-transition" - label="Slide x reverse" - ></v-radio> - <v-radio - value="scale-transition" - label="Scale" - ></v-radio> + <v-radio-group v-model="transition" hide-details> + <v-radio value="slide-y-transition" label="Slide y"></v-radio> + <v-radio value="slide-y-reverse-transition" label="Slide y reverse"></v-radio> + <v-radio value="slide-x-transition" label="Slide x"></v-radio> + <v-radio value="slide-x-reverse-transition" label="Slide x reverse"></v-radio> + <v-radio value="scale-transition" label="Scale"></v-radio> </v-radio-group> </v-flex> </v-layout> diff --git a/packages/docs/src/examples/floating-action-buttons/usage.vue b/packages/docs/src/examples/floating-action-buttons/usage.vue index 105cff85aa9..99d07b29bd7 100644 --- a/packages/docs/src/examples/floating-action-buttons/usage.vue +++ b/packages/docs/src/examples/floating-action-buttons/usage.vue @@ -1,25 +1,12 @@ <template> - <v-container - fluid - grid-list-lg - > - <v-layout - row - wrap - > - <v-flex - xs12 - sm12 - md6 - > + <v-container fluid grid-list-lg> + <v-layout row wrap> + <v-flex xs12 sm12 md6> <v-card> <v-toolbar> <v-toolbar-side-icon></v-toolbar-side-icon> </v-toolbar> - <v-card-text - style="height: 300px;" - class="grey lighten-5" - ></v-card-text> + <v-card-text style="height: 300px;" class="grey lighten-5"></v-card-text> <v-card-text style="height: 100px; position: relative"> <v-btn absolute @@ -34,11 +21,7 @@ </v-card-text> </v-card> </v-flex> - <v-flex - xs12 - sm12 - md6 - > + <v-flex xs12 sm12 md6> <v-card> <v-toolbar extended> <v-toolbar-side-icon></v-toolbar-side-icon> @@ -54,10 +37,7 @@ <v-icon>add</v-icon> </v-btn> </v-toolbar> - <v-card-text - style="height: 236px;" - class="grey lighten-5" - ></v-card-text> + <v-card-text style="height: 236px;" class="grey lighten-5"></v-card-text> <v-card-text style="height: 100px; position: relative"></v-card-text> </v-card> </v-flex> diff --git a/packages/docs/src/examples/footer/indigoFooter.vue b/packages/docs/src/examples/footer/indigoFooter.vue index 0c7a43a9f3c..f513e85659d 100644 --- a/packages/docs/src/examples/footer/indigoFooter.vue +++ b/packages/docs/src/examples/footer/indigoFooter.vue @@ -15,9 +15,7 @@ class="mx-3 white--text" icon > - <v-icon size="24px"> - {{ icon }} - </v-icon> + <v-icon size="24px">{{ icon }}</v-icon> </v-btn> </v-card-text> diff --git a/packages/docs/src/examples/footer/tealFooter.vue b/packages/docs/src/examples/footer/tealFooter.vue index 8443898a704..da65be1f1d0 100644 --- a/packages/docs/src/examples/footer/tealFooter.vue +++ b/packages/docs/src/examples/footer/tealFooter.vue @@ -9,9 +9,7 @@ tile > <v-card-title class="teal"> - <strong class="subheading"> - Get connected with us on social networks! - </strong> + <strong class="subheading">Get connected with us on social networks!</strong> <v-spacer></v-spacer> @@ -22,9 +20,7 @@ dark icon > - <v-icon size="24px"> - {{ icon }} - </v-icon> + <v-icon size="24px">{{ icon }}</v-icon> </v-btn> </v-card-title> diff --git a/packages/docs/src/examples/forms/submitAndClear.vue b/packages/docs/src/examples/forms/submitAndClear.vue index a901682df8d..4381b52289d 100644 --- a/packages/docs/src/examples/forms/submitAndClear.vue +++ b/packages/docs/src/examples/forms/submitAndClear.vue @@ -1,9 +1,5 @@ <template> - <v-form - ref="form" - v-model="valid" - lazy-validation - > + <v-form ref="form" v-model="valid" lazy-validation> <v-text-field v-model="name" :rules="nameRules" @@ -37,9 +33,7 @@ > submit </v-btn> - <v-btn @click="clear"> - clear - </v-btn> + <v-btn @click="clear">clear</v-btn> </v-form> </template> diff --git a/packages/docs/src/examples/forms/veeValidate.vue b/packages/docs/src/examples/forms/veeValidate.vue index 5bdde6d7e8f..f8f96e6ee57 100644 --- a/packages/docs/src/examples/forms/veeValidate.vue +++ b/packages/docs/src/examples/forms/veeValidate.vue @@ -1,8 +1,8 @@ <template> <form> <v-text-field - v-model="name" v-validate="'required|max:10'" + v-model="name" :counter="10" :error-messages="errors.collect('name')" label="Name" @@ -10,25 +10,25 @@ required ></v-text-field> <v-text-field - v-model="email" v-validate="'required|email'" + v-model="email" :error-messages="errors.collect('email')" label="E-mail" data-vv-name="email" required ></v-text-field> <v-select - v-model="select" v-validate="'required'" :items="items" + v-model="select" :error-messages="errors.collect('select')" label="Select" data-vv-name="select" required ></v-select> <v-checkbox - v-model="checkbox" v-validate="'required'" + v-model="checkbox" :error-messages="errors.collect('checkbox')" value="1" label="Option" @@ -37,12 +37,8 @@ required ></v-checkbox> - <v-btn @click="submit"> - submit - </v-btn> - <v-btn @click="clear"> - clear - </v-btn> + <v-btn @click="submit">submit</v-btn> + <v-btn @click="clear">clear</v-btn> </form> </template> diff --git a/packages/docs/src/examples/forms/vuelidate.vue b/packages/docs/src/examples/forms/vuelidate.vue index 407b76db017..e6150fd45a8 100644 --- a/packages/docs/src/examples/forms/vuelidate.vue +++ b/packages/docs/src/examples/forms/vuelidate.vue @@ -35,12 +35,8 @@ @blur="$v.checkbox.$touch()" ></v-checkbox> - <v-btn @click="submit"> - submit - </v-btn> - <v-btn @click="clear"> - clear - </v-btn> + <v-btn @click="submit">submit</v-btn> + <v-btn @click="clear">clear</v-btn> </form> </template> diff --git a/packages/docs/src/examples/grid-lists/subheader.vue b/packages/docs/src/examples/grid-lists/subheader.vue index d87bd21abbd..3f4e3415a59 100644 --- a/packages/docs/src/examples/grid-lists/subheader.vue +++ b/packages/docs/src/examples/grid-lists/subheader.vue @@ -1,10 +1,6 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> <v-toolbar flat> <v-btn icon> @@ -17,50 +13,18 @@ </v-btn> </v-toolbar> <v-subheader>May</v-subheader> - <v-container - fluid - grid-list-sm - > - <v-layout - row - wrap - > - <v-flex - v-for="i in 6" - :key="i" - xs4 - > - <img - :src="`https://randomuser.me/api/portraits/men/${i + 20}.jpg`" - class="image" - alt="lorem" - width="100%" - height="100%" - > + <v-container fluid grid-list-sm> + <v-layout row wrap> + <v-flex v-for="i in 6" :key="i" xs4> + <img :src="`https://randomuser.me/api/portraits/men/${i + 20}.jpg`" class="image" alt="lorem" width="100%" height="100%"> </v-flex> </v-layout> </v-container> <v-subheader>June</v-subheader> - <v-container - fluid - grid-list-sm - > - <v-layout - row - wrap - > - <v-flex - v-for="i in 6" - :key="i" - xs4 - > - <img - :src="`https://randomuser.me/api/portraits/women/${i + 5}.jpg`" - class="image" - alt="lorem" - width="100%" - height="100%" - > + <v-container fluid grid-list-sm> + <v-layout row wrap> + <v-flex v-for="i in 6" :key="i" xs4> + <img :src="`https://randomuser.me/api/portraits/women/${i + 5}.jpg`" class="image" alt="lorem" width="100%" height="100%"> </v-flex> </v-layout> </v-container> diff --git a/packages/docs/src/examples/grid-lists/usage.vue b/packages/docs/src/examples/grid-lists/usage.vue index 68a6e35358e..a27c14f525d 100644 --- a/packages/docs/src/examples/grid-lists/usage.vue +++ b/packages/docs/src/examples/grid-lists/usage.vue @@ -1,36 +1,19 @@ <template> <v-layout> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> <v-card-actions> - <v-select - v-model="size" - :items="items" - label="Size" - ></v-select> + <v-select :items="items" v-model="size" label="Size"></v-select> <v-spacer></v-spacer> </v-card-actions> - <v-container - v-bind="{ [`grid-list-${size}`]: true }" - fluid - > - <v-layout - row - wrap - > + <v-container v-bind="{ [`grid-list-${size}`]: true }" fluid> + <v-layout row wrap> <v-flex v-for="n in 9" :key="n" xs4 > - <v-card - flat - tile - > + <v-card flat tile> <v-img :src="`https://unsplash.it/150/300?image=${Math.floor(Math.random() * 100) + 1}`" height="150px" diff --git a/packages/docs/src/examples/grid/directionAndAlign.vue b/packages/docs/src/examples/grid/directionAndAlign.vue index 8a9ef5b0f2a..c2bfe96272d 100644 --- a/packages/docs/src/examples/grid/directionAndAlign.vue +++ b/packages/docs/src/examples/grid/directionAndAlign.vue @@ -1,91 +1,52 @@ <template> - <v-container - fluid - grid-list-xl - > - <v-layout - row - justify-space-between - > + <v-container fluid grid-list-xl> + <v-layout row justify-space-between> <v-flex xs2> - <v-card - dark - color="primary" - > + <v-card dark color="primary"> <v-card-text>one</v-card-text> </v-card> </v-flex> <v-flex xs2> - <v-card - dark - color="secondary" - > + <v-card dark color="secondary"> <v-card-text>two</v-card-text> </v-card> </v-flex> <v-flex xs2> - <v-card - dark - color="accent" - > + <v-card dark color="accent"> <v-card-text>three</v-card-text> </v-card> </v-flex> </v-layout> - <v-layout - row - justify-space-around - > + <v-layout row justify-space-around> <v-flex xs2> - <v-card - dark - color="primary" - > + <v-card dark color="primary"> <v-card-text>one</v-card-text> </v-card> </v-flex> <v-flex xs2> - <v-card - dark - color="secondary" - > + <v-card dark color="secondary"> <v-card-text>two</v-card-text> </v-card> </v-flex> <v-flex xs2> - <v-card - dark - color="accent" - > + <v-card dark color="accent"> <v-card-text>three</v-card-text> </v-card> </v-flex> </v-layout> - <v-layout - row - justify-center - > + <v-layout row justify-center> <v-flex xs2> - <v-card - dark - color="primary" - > + <v-card dark color="primary"> <v-card-text>one</v-card-text> </v-card> </v-flex> <v-flex xs2> - <v-card - dark - color="secondary" - > + <v-card dark color="secondary"> <v-card-text>two</v-card-text> </v-card> </v-flex> <v-flex xs2> - <v-card - dark - color="accent" - > + <v-card dark color="accent"> <v-card-text>three</v-card-text> </v-card> </v-flex> diff --git a/packages/docs/src/examples/grid/nestedGrid.vue b/packages/docs/src/examples/grid/nestedGrid.vue index 1f930752e58..2ea5d622129 100644 --- a/packages/docs/src/examples/grid/nestedGrid.vue +++ b/packages/docs/src/examples/grid/nestedGrid.vue @@ -1,54 +1,21 @@ <template> - <v-container - fluid - grid-list-md - > - <v-layout - row - wrap - > - <v-flex - d-flex - xs12 - sm6 - md4 - > - <v-card - color="purple" - dark - > - <v-card-title - primary - class="title" - > - Lorem - </v-card-title> + <v-container fluid grid-list-md> + <v-layout row wrap> + <v-flex d-flex xs12 sm6 md4> + <v-card color="purple" dark> + <v-card-title primary class="title">Lorem</v-card-title> <v-card-text>{{ lorem }}</v-card-text> </v-card> </v-flex> - <v-flex - d-flex - xs12 - sm6 - md3 - > - <v-layout - row - wrap - > + <v-flex d-flex xs12 sm6 md3> + <v-layout row wrap> <v-flex d-flex> - <v-card - color="indigo" - dark - > + <v-card color="indigo" dark> <v-card-text>{{ lorem.slice(0, 70) }}</v-card-text> </v-card> </v-flex> <v-flex d-flex> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex v-for="n in 2" :key="n" @@ -66,30 +33,13 @@ </v-flex> </v-layout> </v-flex> - <v-flex - d-flex - xs12 - sm6 - md2 - child-flex - > - <v-card - color="green lighten-2" - dark - > + <v-flex d-flex xs12 sm6 md2 child-flex> + <v-card color="green lighten-2" dark> <v-card-text>{{ lorem.slice(0, 90) }}</v-card-text> </v-card> </v-flex> - <v-flex - d-flex - xs12 - sm6 - md3 - > - <v-card - color="blue lighten-2" - dark - > + <v-flex d-flex xs12 sm6 md3> + <v-card color="blue lighten-2" dark> <v-card-text>{{ lorem.slice(0, 100) }}</v-card-text> </v-card> </v-flex> diff --git a/packages/docs/src/examples/grid/offset.vue b/packages/docs/src/examples/grid/offset.vue index 36766d50560..0c7f2451d7e 100644 --- a/packages/docs/src/examples/grid/offset.vue +++ b/packages/docs/src/examples/grid/offset.vue @@ -1,59 +1,23 @@ <template> - <v-container - grid-list-xl - text-xs-center - > - <v-layout - row - wrap - > - <v-flex - xs10 - offset-xs1 - > - <v-card - dark - color="purple" - > + <v-container grid-list-xl text-xs-center> + <v-layout row wrap> + <v-flex xs10 offset-xs1> + <v-card dark color="purple"> <v-card-text>xs10 offset-xs1</v-card-text> </v-card> </v-flex> - <v-flex - xs7 - offset-xs5 - offset-md2 - offset-lg5 - > - <v-card - dark - color="secondary" - > + <v-flex xs7 offset-xs5 offset-md2 offset-lg5> + <v-card dark color="secondary"> <v-card-text>xs7 offset-(xs5 | md2 | lg5)</v-card-text> </v-card> </v-flex> - <v-flex - xs12 - sm5 - md3 - > - <v-card - dark - color="primary" - > + <v-flex xs12 sm5 md3> + <v-card dark color="primary"> <v-card-text>(xs12 | sm5 | md3)</v-card-text> </v-card> </v-flex> - <v-flex - xs12 - sm5 - md5 - offset-xs0 - offset-lg2 - > - <v-card - dark - color="green" - > + <v-flex xs12 sm5 md5 offset-xs0 offset-lg2> + <v-card dark color="green"> <v-card-text>(xs12 | sm5 | md5) offset-(xs0 | lg2)</v-card-text> </v-card> </v-flex> diff --git a/packages/docs/src/examples/grid/order.vue b/packages/docs/src/examples/grid/order.vue index a9e359c6615..05dad994ee2 100644 --- a/packages/docs/src/examples/grid/order.vue +++ b/packages/docs/src/examples/grid/order.vue @@ -1,139 +1,52 @@ <template> <v-container fluid> <v-layout row> - <v-flex - xs6 - order-lg2 - > - <v-card - dark - tile - flat - color="error" - > + <v-flex xs6 order-lg2> + <v-card dark tile flat color="error"> <v-card-text>#1</v-card-text> </v-card> </v-flex> <v-flex xs6> - <v-card - dark - tile - flat - color="red darken-4" - > + <v-card dark tile flat color="red darken-4"> <v-card-text>#2</v-card-text> </v-card> </v-flex> </v-layout> <v-layout row> - <v-flex - xs4 - order-md2 - order-xs1 - > - <v-card - dark - tile - flat - color="red lighten-1" - > + <v-flex xs4 order-md2 order-xs1> + <v-card dark tile flat color="red lighten-1"> <v-card-text>#1</v-card-text> </v-card> </v-flex> - <v-flex - xs4 - order-md3 - order-xs2 - > - <v-card - dark - tile - flat - color="red lighten-2" - > + <v-flex xs4 order-md3 order-xs2> + <v-card dark tile flat color="red lighten-2"> <v-card-text>#2</v-card-text> </v-card> </v-flex> - <v-flex - xs4 - order-md1 - order-xs3 - > - <v-card - dark - tile - flat - color="red darken-1" - > + <v-flex xs4 order-md1 order-xs3> + <v-card dark tile flat color="red darken-1"> <v-card-text>#3</v-card-text> </v-card> </v-flex> </v-layout> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - md3 - order-md4 - order-sm2 - > - <v-card - dark - tile - flat - color="red darken-2" - > + <v-layout row wrap> + <v-flex xs12 sm6 md3 order-md4 order-sm2> + <v-card dark tile flat color="red darken-2"> <v-card-text>#1</v-card-text> </v-card> </v-flex> - <v-flex - xs12 - sm6 - md3 - order-md3 - order-sm1 - > - <v-card - dark - tile - flat - color="deep-orange lighten-1" - > + <v-flex xs12 sm6 md3 order-md3 order-sm1> + <v-card dark tile flat color="deep-orange lighten-1"> <v-card-text>#2</v-card-text> </v-card> </v-flex> - <v-flex - xs12 - sm6 - md3 - order-md2 - order-sm4 - > - <v-card - dark - tile - flat - color="deep-orange darken-3" - > + <v-flex xs12 sm6 md3 order-md2 order-sm4> + <v-card dark tile flat color="deep-orange darken-3"> <v-card-text>#3</v-card-text> </v-card> </v-flex> - <v-flex - xs12 - sm6 - md3 - order-md1 - order-sm3 - > - <v-card - dark - tile - flat - color="deep-orange" - > + <v-flex xs12 sm6 md3 order-md1 order-sm3> + <v-card dark tile flat color="deep-orange"> <v-card-text>#4</v-card-text> </v-card> </v-flex> diff --git a/packages/docs/src/examples/grid/playground.vue b/packages/docs/src/examples/grid/playground.vue index 1bb99655626..dd586622d56 100644 --- a/packages/docs/src/examples/grid/playground.vue +++ b/packages/docs/src/examples/grid/playground.vue @@ -11,15 +11,8 @@ </div> </v-flex> <v-flex xs12> - <v-layout - row - xs12 - wrap - > - <v-flex - xs12 - md4 - > + <v-layout row xs12 wrap> + <v-flex xs12 md4> <v-radio-group v-model="alignment"> <v-radio v-for="n in alignmentsAvailable" @@ -29,10 +22,7 @@ ></v-radio> </v-radio-group> </v-flex> - <v-flex - xs12 - md4 - > + <v-flex xs12 md4> <v-radio-group v-model="justify"> <v-radio v-for="n in justifyAvailable" @@ -42,10 +32,7 @@ ></v-radio> </v-radio-group> </v-flex> - <v-flex - xs12 - md4 - > + <v-flex xs12 md4> <v-layout column> <v-radio-group v-model="flexDirection"> <v-checkbox diff --git a/packages/docs/src/examples/grid/rowColumnBreakpoint.vue b/packages/docs/src/examples/grid/rowColumnBreakpoint.vue index 2340e0e3181..848186e6e89 100644 --- a/packages/docs/src/examples/grid/rowColumnBreakpoint.vue +++ b/packages/docs/src/examples/grid/rowColumnBreakpoint.vue @@ -2,26 +2,17 @@ <v-container grid-list-xl> <v-layout v-bind="binding"> <v-flex> - <v-card - dark - color="primary" - > + <v-card dark color="primary"> <v-card-text>one</v-card-text> </v-card> </v-flex> <v-flex> - <v-card - dark - color="secondary" - > + <v-card dark color="secondary"> <v-card-text>two</v-card-text> </v-card> </v-flex> <v-flex> - <v-card - dark - color="accent" - > + <v-card dark color="accent"> <v-card-text>three</v-card-text> </v-card> </v-flex> diff --git a/packages/docs/src/examples/grid/spacer.vue b/packages/docs/src/examples/grid/spacer.vue index 671e470316d..b2e3c44f7f9 100644 --- a/packages/docs/src/examples/grid/spacer.vue +++ b/packages/docs/src/examples/grid/spacer.vue @@ -1,12 +1,7 @@ <template> - <v-toolbar - dark - color="primary" - > + <v-toolbar dark color="primary"> <v-toolbar-side-icon></v-toolbar-side-icon> - <v-toolbar-title class="white--text"> - Title - </v-toolbar-title> + <v-toolbar-title class="white--text">Title</v-toolbar-title> <v-spacer></v-spacer> <v-btn icon> <v-icon>more_vert</v-icon> diff --git a/packages/docs/src/examples/grid/tags.vue b/packages/docs/src/examples/grid/tags.vue index 196f40bd4aa..0548bb901cf 100644 --- a/packages/docs/src/examples/grid/tags.vue +++ b/packages/docs/src/examples/grid/tags.vue @@ -5,21 +5,9 @@ grid-list-sm tag="section" > - <v-layout - row - wrap - > - <v-flex - tag="h1" - class="headline" - > - Lorem Ipsum - </v-flex> - <v-flex - d-flex - xs12 - order-xs5 - > + <v-layout row wrap> + <v-flex tag="h1" class="headline">Lorem Ipsum</v-flex> + <v-flex d-flex xs12 order-xs5> <v-layout column> <v-flex> <v-card flat> diff --git a/packages/docs/src/examples/grid/uniqueLayouts.vue b/packages/docs/src/examples/grid/uniqueLayouts.vue index 32b0b66b309..98658bd568d 100644 --- a/packages/docs/src/examples/grid/uniqueLayouts.vue +++ b/packages/docs/src/examples/grid/uniqueLayouts.vue @@ -1,56 +1,24 @@ <template> - <v-container - fluid - grid-list-sm - > - <v-layout - row - wrap - > - <v-flex - d-flex - xs12 - order-xs5 - > + <v-container fluid grid-list-sm> + <v-layout row wrap> + <v-flex d-flex xs12 order-xs5> <v-layout column> <v-flex d-flex> - <v-card - color="blue-grey" - dark - tile - flat - > + <v-card color="blue-grey" dark tile flat> <v-card-text>{{ lorem }}</v-card-text> </v-card> </v-flex> <v-flex d-flex> - <v-card - color="brown" - dark - tile - flat - > + <v-card color="brown" dark tile flat> <v-card-text>{{ lorem }}</v-card-text> </v-card> </v-flex> </v-layout> </v-flex> - <v-flex - d-flex - xs12 - sm7 - > - <v-layout - row - wrap - > + <v-flex d-flex xs12 sm7> + <v-layout row wrap> <v-flex d-flex> - <v-card - color="indigo lighten-2" - dark - tile - flat - > + <v-card color="indigo lighten-2" dark tile flat> <v-card-text>{{ lorem.slice(0, 70) }}</v-card-text> </v-card> </v-flex> @@ -73,31 +41,13 @@ </v-flex> </v-layout> </v-flex> - <v-flex - d-flex - xs12 - sm2 - child-flex - > - <v-card - color="orange lighten-2" - tile - flat - > + <v-flex d-flex xs12 sm2 child-flex> + <v-card color="orange lighten-2" tile flat> <v-card-text>{{ lorem.slice(0, 90) }}</v-card-text> </v-card> </v-flex> - <v-flex - d-flex - xs12 - sm3 - > - <v-card - color="red lighten-2" - dark - tile - flat - > + <v-flex d-flex xs12 sm3> + <v-card color="red lighten-2" dark tile flat> <v-card-text>{{ lorem.slice(0, 100) }}</v-card-text> </v-card> </v-flex> diff --git a/packages/docs/src/examples/grid/usage.vue b/packages/docs/src/examples/grid/usage.vue index cd5f8f6f13a..0f648b837f3 100644 --- a/packages/docs/src/examples/grid/usage.vue +++ b/packages/docs/src/examples/grid/usage.vue @@ -1,90 +1,34 @@ <template> - <v-container - grid-list-md - text-xs-center - > - <v-layout - row - wrap - > + <v-container grid-list-md text-xs-center> + <v-layout row wrap> <v-flex xs12> - <v-card - dark - color="primary" - > - <v-card-text class="px-0"> - 12 - </v-card-text> + <v-card dark color="primary"> + <v-card-text class="px-0">12</v-card-text> </v-card> </v-flex> - <v-flex - v-for="i in 2" - :key="`6${i}`" - xs6 - > - <v-card - dark - color="secondary" - > - <v-card-text class="px-0"> - 6 - </v-card-text> + <v-flex v-for="i in 2" :key="`6${i}`" xs6> + <v-card dark color="secondary"> + <v-card-text class="px-0">6</v-card-text> </v-card> </v-flex> - <v-flex - v-for="i in 3" - :key="`4${i}`" - xs4 - > - <v-card - dark - color="primary" - > - <v-card-text class="px-0"> - 4 - </v-card-text> + <v-flex v-for="i in 3" :key="`4${i}`" xs4> + <v-card dark color="primary"> + <v-card-text class="px-0">4</v-card-text> </v-card> </v-flex> - <v-flex - v-for="i in 4" - :key="`3${i}`" - xs3 - > - <v-card - dark - color="secondary" - > - <v-card-text class="px-0"> - 3 - </v-card-text> + <v-flex v-for="i in 4" :key="`3${i}`" xs3> + <v-card dark color="secondary"> + <v-card-text class="px-0">3</v-card-text> </v-card> </v-flex> - <v-flex - v-for="i in 6" - :key="`2${i}`" - xs2 - > - <v-card - dark - color="primary" - > - <v-card-text class="px-0"> - 2 - </v-card-text> + <v-flex v-for="i in 6" :key="`2${i}`" xs2> + <v-card dark color="primary"> + <v-card-text class="px-0">2</v-card-text> </v-card> </v-flex> - <v-flex - v-for="i in 12" - :key="`1${i}`" - xs1 - > - <v-card - dark - color="secondary" - > - <v-card-text class="px-0"> - 1 - </v-card-text> + <v-flex v-for="i in 12" :key="`1${i}`" xs1> + <v-card dark color="secondary"> + <v-card-text class="px-0">1</v-card-text> </v-card> </v-flex> </v-layout> diff --git a/packages/docs/src/examples/hover/transition.vue b/packages/docs/src/examples/hover/transition.vue index d61abbc5b67..4f576b2c181 100644 --- a/packages/docs/src/examples/hover/transition.vue +++ b/packages/docs/src/examples/hover/transition.vue @@ -35,12 +35,8 @@ > <v-icon>mdi-cart</v-icon> </v-btn> - <div class="font-weight-light grey--text title mb-2"> - For the perfect meal - </div> - <h3 class="display-1 font-weight-light orange--text mb-2"> - QW cooking utensils - </h3> + <div class="font-weight-light grey--text title mb-2">For the perfect meal</div> + <h3 class="display-1 font-weight-light orange--text mb-2">QW cooking utensils</h3> <div class="font-weight-light title mb-2"> Our Vintage kitchen utensils delight any chef.<br> Made of bamboo by hand diff --git a/packages/docs/src/examples/hover/usage.vue b/packages/docs/src/examples/hover/usage.vue index 109ef3df98c..74101ba016a 100644 --- a/packages/docs/src/examples/hover/usage.vue +++ b/packages/docs/src/examples/hover/usage.vue @@ -12,9 +12,7 @@ ></v-img> <v-card-title> <div> - <span class="headline"> - Cafe Badilico - </span> + <span class="headline">Cafe Badilico</span> <div class="d-flex"> <v-rating :value="value" @@ -31,10 +29,7 @@ </div> </div> <v-spacer></v-spacer> - <v-btn - icon - class="mr-0" - > + <v-btn icon class="mr-0"> <v-icon>mdi-chevron-right</v-icon> </v-btn> </v-card-title> diff --git a/packages/docs/src/examples/icons/buttons.vue b/packages/docs/src/examples/icons/buttons.vue index 9bda39e6462..08cad8d2738 100644 --- a/packages/docs/src/examples/icons/buttons.vue +++ b/packages/docs/src/examples/icons/buttons.vue @@ -1,88 +1,39 @@ <template> <div class="text-xs-center"> <div> - <v-btn - color="primary" - dark - > - Accept - <v-icon - dark - right - > - check_circle - </v-icon> + <v-btn color="primary" dark>Accept + <v-icon dark right>check_circle</v-icon> </v-btn> - <v-btn - color="red" - dark - > - Decline - <v-icon - dark - right - > - block - </v-icon> + <v-btn color="red" dark>Decline + <v-icon dark right>block</v-icon> </v-btn> <v-btn dark> - <v-icon - dark - left - > - remove_circle - </v-icon>Cancel + <v-icon dark left>remove_circle</v-icon>Cancel </v-btn> </div> <div> - <v-btn - color="orange darken-2" - dark - > - <v-icon - dark - left - > - arrow_back - </v-icon>Back + <v-btn color="orange darken-2" dark> + <v-icon dark left>arrow_back</v-icon>Back </v-btn> - <v-btn - color="purple" - dark - > - <v-icon dark> - build - </v-icon> + <v-btn color="purple" dark> + <v-icon dark>build</v-icon> </v-btn> - <v-btn - color="indigo" - dark - > - <v-icon dark> - backup - </v-icon> + <v-btn color="indigo" dark> + <v-icon dark>backup</v-icon> </v-btn> </div> <div> - <v-btn - flat - icon - color="blue lighten-2" - > + <v-btn flat icon color="blue lighten-2"> <v-icon>thumb_up</v-icon> </v-btn> - <v-btn - flat - icon - color="red lighten-2" - > + <v-btn flat icon color="red lighten-2"> <v-icon>thumb_down</v-icon> </v-btn> </div> diff --git a/packages/docs/src/examples/icons/clickable.vue b/packages/docs/src/examples/icons/clickable.vue index ca6859cffe5..c5a1507faef 100644 --- a/packages/docs/src/examples/icons/clickable.vue +++ b/packages/docs/src/examples/icons/clickable.vue @@ -6,9 +6,7 @@ dark dense > - <v-toolbar-title class="body-2"> - Upcoming Changes - </v-toolbar-title> + <v-toolbar-title class="body-2">Upcoming Changes</v-toolbar-title> </v-toolbar> <v-card-text> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. diff --git a/packages/docs/src/examples/icons/color.vue b/packages/docs/src/examples/icons/color.vue index a569da930e8..f5d2458d65d 100644 --- a/packages/docs/src/examples/icons/color.vue +++ b/packages/docs/src/examples/icons/color.vue @@ -1,45 +1,15 @@ <template> <v-layout justify-space-around> - <v-icon - large - color="green darken-2" - > - business - </v-icon> + <v-icon large color="green darken-2">business</v-icon> - <v-icon - large - color="blue darken-2" - > - chat - </v-icon> + <v-icon large color="blue darken-2">chat</v-icon> - <v-icon - large - color="purple darken-2" - > - dialpad - </v-icon> + <v-icon large color="purple darken-2">dialpad</v-icon> - <v-icon - large - color="teal darken-2" - > - email - </v-icon> + <v-icon large color="teal darken-2">email</v-icon> - <v-icon - large - color="blue-grey darken-2" - > - call_split - </v-icon> + <v-icon large color="blue-grey darken-2">call_split</v-icon> - <v-icon - large - color="orange darken-2" - > - present_to_all - </v-icon> + <v-icon large color="orange darken-2">present_to_all</v-icon> </v-layout> </template> diff --git a/packages/docs/src/examples/icons/fontAwesome.vue b/packages/docs/src/examples/icons/fontAwesome.vue index 38874aaa66f..81b662971e1 100644 --- a/packages/docs/src/examples/icons/fontAwesome.vue +++ b/packages/docs/src/examples/icons/fontAwesome.vue @@ -1,8 +1,5 @@ <template> - <v-layout - align-center - justify-space-around - > + <v-layout align-center justify-space-around> <v-icon>fas fa-lock</v-icon> <v-icon>fas fa-search</v-icon> diff --git a/packages/docs/src/examples/icons/usage.vue b/packages/docs/src/examples/icons/usage.vue index 3349d2721f8..793201f7fef 100644 --- a/packages/docs/src/examples/icons/usage.vue +++ b/packages/docs/src/examples/icons/usage.vue @@ -1,9 +1,6 @@ <template> <v-container fluid> - <v-layout - justify-space-around - class="mb-2" - > + <v-layout justify-space-around class="mb-2"> <span class="group pa-2"> <v-icon>home</v-icon> <v-icon>event</v-icon> @@ -11,126 +8,51 @@ </span> <span class="group pa-2 teal"> - <v-icon dark> - folder_open - </v-icon> - <v-icon dark> - widgets - </v-icon> - <v-icon dark> - gavel - </v-icon> + <v-icon dark>folder_open</v-icon> + <v-icon dark>widgets</v-icon> + <v-icon dark>gavel</v-icon> </span> </v-layout> - <v-layout - justify-space-around - class="mb-2" - > + <v-layout justify-space-around class="mb-2"> <span class="group pa-2"> - <v-icon medium> - home - </v-icon> - <v-icon medium> - event - </v-icon> - <v-icon medium> - info - </v-icon> + <v-icon medium>home</v-icon> + <v-icon medium>event</v-icon> + <v-icon medium>info</v-icon> </span> <span class="group pa-2 teal"> - <v-icon - medium - dark - > - folder_open - </v-icon> - <v-icon - medium - dark - > - widgets - </v-icon> - <v-icon - medium - dark - > - gavel - </v-icon> + <v-icon medium dark>folder_open</v-icon> + <v-icon medium dark>widgets</v-icon> + <v-icon medium dark>gavel</v-icon> </span> </v-layout> - <v-layout - justify-space-around - class="mb-2" - > + <v-layout justify-space-around class="mb-2"> <span class="group pa-2"> - <v-icon large> - home - </v-icon> - <v-icon large> - event - </v-icon> - <v-icon large> - info - </v-icon> + <v-icon large>home</v-icon> + <v-icon large>event</v-icon> + <v-icon large>info</v-icon> </span> <span class="group pa-2 teal"> - <v-icon - large - dark - > - folder_open - </v-icon> - <v-icon - large - dark - > - widgets - </v-icon> - <v-icon - large - dark - > - gavel - </v-icon> + <v-icon large dark>folder_open</v-icon> + <v-icon large dark>widgets</v-icon> + <v-icon large dark>gavel</v-icon> </span> </v-layout> <v-layout justify-space-around> <span class="group pa-2"> - <v-icon x-large> - home - </v-icon> - <v-icon x-large> - event - </v-icon> - <v-icon x-large> - info - </v-icon> + <v-icon x-large>home</v-icon> + <v-icon x-large>event</v-icon> + <v-icon x-large>info</v-icon> </span> <span class="group pa-2 teal"> - <v-icon - x-large - dark - > - folder_open - </v-icon> - <v-icon - x-large - dark - > - widgets - </v-icon> - <v-icon - x-large - dark - > - gavel - </v-icon> + <v-icon x-large dark>folder_open</v-icon> + <v-icon x-large dark>widgets</v-icon> + <v-icon x-large dark>gavel</v-icon> </span> </v-layout> </v-container> diff --git a/packages/docs/src/examples/images/containCover.vue b/packages/docs/src/examples/images/containCover.vue index 33a6a925c39..7cae8a36bd8 100644 --- a/packages/docs/src/examples/images/containCover.vue +++ b/packages/docs/src/examples/images/containCover.vue @@ -2,63 +2,26 @@ <v-container fluid> <v-layout justify-space-around> <v-flex xs5> - <div class="title mb-1"> - Default (cover) - </div> + <div class="title mb-1">Default (cover)</div> <v-layout column> - <div class="subheading"> - Matching - </div> - <v-img - src="https://picsum.photos/510/300?random" - aspect-ratio="1.7" - ></v-img> - <div class="subheading pt-3"> - Too high - </div> - <v-img - src="https://picsum.photos/510/300?random" - aspect-ratio="2" - ></v-img> - <div class="subheading pt-3"> - Too low - </div> - <v-img - src="https://picsum.photos/510/300?random" - aspect-ratio="1.4" - ></v-img> + <div class="subheading">Matching</div> + <v-img src="https://picsum.photos/510/300?random" aspect-ratio="1.7"></v-img> + <div class="subheading pt-3">Too high</div> + <v-img src="https://picsum.photos/510/300?random" aspect-ratio="2"></v-img> + <div class="subheading pt-3">Too low</div> + <v-img src="https://picsum.photos/510/300?random" aspect-ratio="1.4"></v-img> </v-layout> </v-flex> <v-flex xs5> - <div class="title mb-1"> - Contain - </div> + <div class="title mb-1">Contain</div> <v-layout column> - <div class="subheading"> - Matching - </div> - <v-img - src="https://picsum.photos/510/300?random" - aspect-ratio="1.7" - contain - ></v-img> - <div class="subheading pt-3"> - Too high - </div> - <v-img - src="https://picsum.photos/510/300?random" - aspect-ratio="2" - contain - ></v-img> - <div class="subheading pt-3"> - Too low - </div> - <v-img - src="https://picsum.photos/510/300?random" - aspect-ratio="1.4" - contain - ></v-img> + <div class="subheading">Matching</div> + <v-img src="https://picsum.photos/510/300?random" aspect-ratio="1.7" contain></v-img> + <div class="subheading pt-3">Too high</div> + <v-img src="https://picsum.photos/510/300?random" aspect-ratio="2" contain></v-img> + <div class="subheading pt-3">Too low</div> + <v-img src="https://picsum.photos/510/300?random" aspect-ratio="1.4" contain></v-img> </v-layout> </v-flex> </v-layout> diff --git a/packages/docs/src/examples/images/gradients.vue b/packages/docs/src/examples/images/gradients.vue index 778fa4c5f1b..30b32a15350 100644 --- a/packages/docs/src/examples/images/gradients.vue +++ b/packages/docs/src/examples/images/gradients.vue @@ -1,32 +1,20 @@ <template> - <v-container - fluid - grid-list-sm - > + <v-container fluid grid-list-sm> <v-layout> - <v-flex - xs6 - sm4 - > + <v-flex xs6 sm4> <v-img src="https://cdn.vuetifyjs.com/images/parallax/material2.jpg" gradient="to top right, rgba(100,115,201,.33), rgba(25,32,72,.7)" ></v-img> </v-flex> - <v-flex - xs6 - sm4 - > + <v-flex xs6 sm4> <v-img src="https://cdn.vuetifyjs.com/images/parallax/material2.jpg"> <div class="fill-height bottom-gradient"></div> </v-img> </v-flex> - <v-flex - xs6 - sm4 - > + <v-flex xs6 sm4> <v-img src="https://cdn.vuetifyjs.com/images/parallax/material2.jpg"> <div class="fill-height repeating-gradient"></div> </v-img> diff --git a/packages/docs/src/examples/images/maxHeight.vue b/packages/docs/src/examples/images/maxHeight.vue index 6dec6f9b8be..b05d5427fda 100644 --- a/packages/docs/src/examples/images/maxHeight.vue +++ b/packages/docs/src/examples/images/maxHeight.vue @@ -6,11 +6,7 @@ style="min-height: 434px" > <v-fade-transition mode="out-in"> - <v-layout - v-if="show" - key="0" - wrap - > + <v-layout v-if="show" key="0" wrap> <v-flex xs6> <v-card> <v-img @@ -18,9 +14,7 @@ height="125" class="grey darken-4" ></v-img> - <v-card-title class="title"> - height - </v-card-title> + <v-card-title class="title">height</v-card-title> </v-card> </v-flex> @@ -32,9 +26,7 @@ contain class="grey darken-4" ></v-img> - <v-card-title class="title"> - height with contain - </v-card-title> + <v-card-title class="title">height with contain</v-card-title> </v-card> </v-flex> @@ -45,9 +37,7 @@ max-height="125" class="grey darken-4" ></v-img> - <v-card-title class="title"> - max-height - </v-card-title> + <v-card-title class="title">max-height</v-card-title> </v-card> </v-flex> @@ -59,24 +49,13 @@ contain class="grey darken-4" ></v-img> - <v-card-title class="title"> - max-height with contain - </v-card-title> + <v-card-title class="title">max-height with contain</v-card-title> </v-card> </v-flex> </v-layout> - <v-layout - v-else - key="1" - justify-center - > - <v-btn - flat - @click="show = true" - > - Load images - </v-btn> + <v-layout v-else key="1" justify-center> + <v-btn flat @click="show = true">Load images</v-btn> </v-layout> </v-fade-transition> </v-container> diff --git a/packages/docs/src/examples/images/ratio.vue b/packages/docs/src/examples/images/ratio.vue index 971854ebf2c..5aa721f5576 100644 --- a/packages/docs/src/examples/images/ratio.vue +++ b/packages/docs/src/examples/images/ratio.vue @@ -1,49 +1,25 @@ <template> <v-container fluid> - <v-slider - v-model="width" - min="200" - max="500" - step="1" - ></v-slider> + <v-slider v-model="width" min="200" max="500" step="1"></v-slider> <v-navigation-drawer :width="width" :value="true" stateless > - <v-img - :aspect-ratio="16/9" - src="https://cdn.vuetifyjs.com/images/parallax/material.jpg" - > - <v-layout - pa-2 - column - fill-height - class="lightbox white--text" - > + <v-img :aspect-ratio="16/9" src="https://cdn.vuetifyjs.com/images/parallax/material.jpg"> + <v-layout pa-2 column fill-height class="lightbox white--text"> <v-spacer></v-spacer> <v-flex shrink> - <div class="subheading"> - Jonathan Lee - </div> - <div class="body-1"> - [email protected] - </div> + <div class="subheading">Jonathan Lee</div> + <div class="body-1">[email protected]</div> </v-flex> </v-layout> </v-img> <v-list> <template v-for="(item, i) in items"> - <v-divider - v-if="item.divider" - :key="i" - ></v-divider> - <v-list-tile - v-else - :key="item.title" - @click - > + <v-divider v-if="item.divider" :key="i"></v-divider> + <v-list-tile v-else :key="item.title" @click> <v-list-tile-action> <v-icon>{{ item.icon }}</v-icon> </v-list-tile-action> diff --git a/packages/docs/src/examples/images/usage.vue b/packages/docs/src/examples/images/usage.vue index 23eab8791e0..f71c9f06e04 100644 --- a/packages/docs/src/examples/images/usage.vue +++ b/packages/docs/src/examples/images/usage.vue @@ -1,30 +1,16 @@ <template> <v-layout> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-container - grid-list-sm - fluid - > - <v-layout - row - wrap - > + <v-container grid-list-sm fluid> + <v-layout row wrap> <v-flex v-for="n in 9" :key="n" xs4 d-flex > - <v-card - flat - tile - class="d-flex" - > + <v-card flat tile class="d-flex"> <v-img :src="`https://picsum.photos/500/300?image=${n * 5 + 10}`" :lazy-src="`https://picsum.photos/10/6?image=${n * 5 + 10}`" @@ -38,10 +24,7 @@ justify-center ma-0 > - <v-progress-circular - indeterminate - color="grey lighten-5" - ></v-progress-circular> + <v-progress-circular indeterminate color="grey lighten-5"></v-progress-circular> </v-layout> </v-img> </v-card> diff --git a/packages/docs/src/examples/item-groups/post.vue b/packages/docs/src/examples/item-groups/post.vue index 3b0b1ee6d68..2a6dd65ffbd 100644 --- a/packages/docs/src/examples/item-groups/post.vue +++ b/packages/docs/src/examples/item-groups/post.vue @@ -9,11 +9,7 @@ </v-toolbar> <v-card-text> - <v-text-field - box - label="Title" - value="My new post" - ></v-text-field> + <v-text-field box label="Title" value="My new post"></v-text-field> <v-textarea box diff --git a/packages/docs/src/examples/jumbotrons/color.vue b/packages/docs/src/examples/jumbotrons/color.vue index db4d7983f9c..20032989cfc 100644 --- a/packages/docs/src/examples/jumbotrons/color.vue +++ b/packages/docs/src/examples/jumbotrons/color.vue @@ -1,14 +1,9 @@ <template> - <v-jumbotron - color="primary" - dark - > + <v-jumbotron color="primary" dark> <v-container fill-height> <v-layout align-center> <v-flex text-xs-center> - <h3 class="display-3"> - Custom Color - </h3> + <h3 class="display-3">Custom Color</h3> </v-flex> </v-layout> </v-container> diff --git a/packages/docs/src/examples/jumbotrons/gradient.vue b/packages/docs/src/examples/jumbotrons/gradient.vue index 1a3e95e2952..124e48f6926 100644 --- a/packages/docs/src/examples/jumbotrons/gradient.vue +++ b/packages/docs/src/examples/jumbotrons/gradient.vue @@ -5,16 +5,11 @@ label="Gradient" ></v-text-field> - <v-jumbotron - :gradient="gradient" - dark - > + <v-jumbotron :gradient="gradient" dark> <v-container fill-height> <v-layout align-center> <v-flex text-xs-center> - <h3 class="display-3"> - Gradient - </h3> + <h3 class="display-3">Gradient</h3> </v-flex> </v-layout> </v-container> diff --git a/packages/docs/src/examples/jumbotrons/gradientWithImage.vue b/packages/docs/src/examples/jumbotrons/gradientWithImage.vue index 346e73b3120..47fb13814f4 100644 --- a/packages/docs/src/examples/jumbotrons/gradientWithImage.vue +++ b/packages/docs/src/examples/jumbotrons/gradientWithImage.vue @@ -7,9 +7,7 @@ <v-container fill-height> <v-layout align-center> <v-flex text-xs-center> - <h3 class="display-3"> - Gradient over Image - </h3> + <h3 class="display-3">Gradient over Image</h3> </v-flex> </v-layout> </v-container> diff --git a/packages/docs/src/examples/jumbotrons/usage.vue b/packages/docs/src/examples/jumbotrons/usage.vue index 10d6f88532c..e683f2be964 100644 --- a/packages/docs/src/examples/jumbotrons/usage.vue +++ b/packages/docs/src/examples/jumbotrons/usage.vue @@ -3,19 +3,13 @@ <v-container fill-height> <v-layout align-center> <v-flex> - <h3 class="display-3"> - Welcome to the site - </h3> + <h3 class="display-3">Welcome to the site</h3> - <span class="subheading"> - Lorem ipsum dolor sit amet, pri veniam forensibus id. Vis maluisset molestiae id, ad semper lobortis cum. At impetus detraxit incorrupte usu, repudiare assueverit ex eum, ne nam essent vocent admodum. - </span> + <span class="subheading">Lorem ipsum dolor sit amet, pri veniam forensibus id. Vis maluisset molestiae id, ad semper lobortis cum. At impetus detraxit incorrupte usu, repudiare assueverit ex eum, ne nam essent vocent admodum.</span> <v-divider class="my-3"></v-divider> - <div class="title mb-3"> - Check out our newest features! - </div> + <div class="title mb-3">Check out our newest features!</div> <v-btn class="mx-0" diff --git a/packages/docs/src/examples/layouts/baseline.vue b/packages/docs/src/examples/layouts/baseline.vue index c6d07c8bb39..d7b75051d2f 100644 --- a/packages/docs/src/examples/layouts/baseline.vue +++ b/packages/docs/src/examples/layouts/baseline.vue @@ -24,50 +24,26 @@ </v-list-tile> </v-list> </v-navigation-drawer> - <v-toolbar - color="indigo" - dark - fixed - app - > + <v-toolbar color="indigo" dark fixed app> <v-toolbar-side-icon @click.stop="drawer = !drawer"></v-toolbar-side-icon> <v-toolbar-title>Application</v-toolbar-title> </v-toolbar> <v-content> - <v-container - fluid - fill-height - > + <v-container fluid fill-height> <v-layout justify-center align-center > <v-flex text-xs-center> <v-tooltip left> - <v-btn - slot="activator" - :href="source" - icon - large - target="_blank" - > - <v-icon large> - code - </v-icon> + <v-btn slot="activator" :href="source" icon large target="_blank"> + <v-icon large>code</v-icon> </v-btn> <span>Source</span> </v-tooltip> <v-tooltip right> - <v-btn - slot="activator" - icon - large - href="https://codepen.io/johnjleider/pen/rJdVMq" - target="_blank" - > - <v-icon large> - mdi-codepen - </v-icon> + <v-btn slot="activator" icon large href="https://codepen.io/johnjleider/pen/rJdVMq" target="_blank"> + <v-icon large>mdi-codepen</v-icon> </v-btn> <span>Codepen</span> </v-tooltip> @@ -75,13 +51,8 @@ </v-layout> </v-container> </v-content> - <v-footer - color="indigo" - app - > - <span class="white--text"> - &copy; 2017 - </span> + <v-footer color="indigo" app> + <span class="white--text">&copy; 2017</span> </v-footer> </v-app> </template> diff --git a/packages/docs/src/examples/layouts/baselineFlipped.vue b/packages/docs/src/examples/layouts/baselineFlipped.vue index 1c9fb35fcaa..b6263082eff 100644 --- a/packages/docs/src/examples/layouts/baselineFlipped.vue +++ b/packages/docs/src/examples/layouts/baselineFlipped.vue @@ -25,51 +25,24 @@ </v-list-tile> </v-list> </v-navigation-drawer> - <v-toolbar - color="cyan" - dark - fixed - app - > + <v-toolbar color="cyan" dark fixed app> <v-spacer></v-spacer> <v-toolbar-title>Application</v-toolbar-title> <v-toolbar-side-icon @click.stop="drawer = !drawer"></v-toolbar-side-icon> </v-toolbar> <v-content> - <v-container - fluid - fill-height - > - <v-layout - justify-center - align-center - > + <v-container fluid fill-height> + <v-layout justify-center align-center> <v-flex text-xs-center> <v-tooltip left> - <v-btn - slot="activator" - :href="source" - icon - large - target="_blank" - > - <v-icon large> - code - </v-icon> + <v-btn slot="activator" :href="source" icon large target="_blank"> + <v-icon large>code</v-icon> </v-btn> <span>Source</span> </v-tooltip> <v-tooltip right> - <v-btn - slot="activator" - icon - large - href="https://codepen.io/johnjleider/pen/BYqXgr" - target="_blank" - > - <v-icon large> - mdi-codepen - </v-icon> + <v-btn slot="activator" icon large href="https://codepen.io/johnjleider/pen/BYqXgr" target="_blank"> + <v-icon large>mdi-codepen</v-icon> </v-btn> <span>Codepen</span> </v-tooltip> @@ -77,14 +50,9 @@ </v-layout> </v-container> </v-content> - <v-footer - color="cyan" - app - > + <v-footer color="cyan" app> <v-spacer></v-spacer> - <span class="white--text"> - &copy; 2017 - </span> + <span class="white--text">&copy; 2017</span> </v-footer> </v-app> </template> diff --git a/packages/docs/src/examples/layouts/centered.vue b/packages/docs/src/examples/layouts/centered.vue index a7658b3ec14..d9489877f12 100644 --- a/packages/docs/src/examples/layouts/centered.vue +++ b/packages/docs/src/examples/layouts/centered.vue @@ -1,24 +1,11 @@ <template> <v-app id="inspire"> <v-content> - <v-container - fluid - fill-height - > - <v-layout - align-center - justify-center - > - <v-flex - xs12 - sm8 - md4 - > + <v-container fluid fill-height> + <v-layout align-center justify-center> + <v-flex xs12 sm8 md4> <v-card class="elevation-12"> - <v-toolbar - dark - color="primary" - > + <v-toolbar dark color="primary"> <v-toolbar-title>Login form</v-toolbar-title> <v-spacer></v-spacer> <v-tooltip bottom> @@ -29,49 +16,26 @@ large target="_blank" > - <v-icon large> - code - </v-icon> + <v-icon large>code</v-icon> </v-btn> <span>Source</span> </v-tooltip> <v-tooltip right> - <v-btn - slot="activator" - icon - large - href="https://codepen.io/johnjleider/pen/wyYVVj" - target="_blank" - > - <v-icon large> - mdi-codepen - </v-icon> + <v-btn slot="activator" icon large href="https://codepen.io/johnjleider/pen/wyYVVj" target="_blank"> + <v-icon large>mdi-codepen</v-icon> </v-btn> <span>Codepen</span> </v-tooltip> </v-toolbar> <v-card-text> <v-form> - <v-text-field - prepend-icon="person" - name="login" - label="Login" - type="text" - ></v-text-field> - <v-text-field - id="password" - prepend-icon="lock" - name="password" - label="Password" - type="password" - ></v-text-field> + <v-text-field prepend-icon="person" name="login" label="Login" type="text"></v-text-field> + <v-text-field id="password" prepend-icon="lock" name="password" label="Password" type="password"></v-text-field> </v-form> </v-card-text> <v-card-actions> <v-spacer></v-spacer> - <v-btn color="primary"> - Login - </v-btn> + <v-btn color="primary">Login</v-btn> </v-card-actions> </v-card> </v-flex> diff --git a/packages/docs/src/examples/layouts/complex.vue b/packages/docs/src/examples/layouts/complex.vue index 18a4392b4d5..7e36eb52d9a 100644 --- a/packages/docs/src/examples/layouts/complex.vue +++ b/packages/docs/src/examples/layouts/complex.vue @@ -52,14 +52,8 @@ fixed ></v-navigation-drawer> <v-content> - <v-container - fluid - fill-height - > - <v-layout - justify-center - align-center - > + <v-container fluid fill-height> + <v-layout justify-center align-center> <v-flex shrink> <v-tooltip right> <v-btn @@ -69,23 +63,13 @@ large target="_blank" > - <v-icon large> - code - </v-icon> + <v-icon large>code</v-icon> </v-btn> <span>Source</span> </v-tooltip> <v-tooltip right> - <v-btn - slot="activator" - icon - large - href="https://codepen.io/johnjleider/pen/KQrPKJ" - target="_blank" - > - <v-icon large> - mdi-codepen - </v-icon> + <v-btn slot="activator" icon large href="https://codepen.io/johnjleider/pen/KQrPKJ" target="_blank"> + <v-icon large>mdi-codepen</v-icon> </v-btn> <span>Codepen</span> </v-tooltip> @@ -99,11 +83,7 @@ temporary fixed ></v-navigation-drawer> - <v-footer - color="blue-grey" - class="white--text" - app - > + <v-footer color="blue-grey" class="white--text" app> <span>Vuetify</span> <v-spacer></v-spacer> <span>&copy; 2017</span> diff --git a/packages/docs/src/examples/layouts/dark.vue b/packages/docs/src/examples/layouts/dark.vue index add97e5823e..9efce611056 100644 --- a/packages/docs/src/examples/layouts/dark.vue +++ b/packages/docs/src/examples/layouts/dark.vue @@ -1,8 +1,5 @@ <template> - <v-app - id="inspire" - dark - > + <v-app id="inspire" dark> <v-navigation-drawer v-model="drawer" clipped @@ -28,23 +25,13 @@ </v-list-tile> </v-list> </v-navigation-drawer> - <v-toolbar - app - fixed - clipped-left - > + <v-toolbar app fixed clipped-left> <v-toolbar-side-icon @click.stop="drawer = !drawer"></v-toolbar-side-icon> <v-toolbar-title>Application</v-toolbar-title> </v-toolbar> <v-content> - <v-container - fluid - fill-height - > - <v-layout - justify-center - align-center - > + <v-container fluid fill-height> + <v-layout justify-center align-center> <v-flex shrink> <v-tooltip right> <v-btn @@ -54,23 +41,13 @@ large target="_blank" > - <v-icon large> - code - </v-icon> + <v-icon large>code</v-icon> </v-btn> <span>Source</span> </v-tooltip> <v-tooltip right> - <v-btn - slot="activator" - icon - large - href="https://codepen.io/johnjleider/pen/qxQWda" - target="_blank" - > - <v-icon large> - mdi-codepen - </v-icon> + <v-btn slot="activator" icon large href="https://codepen.io/johnjleider/pen/qxQWda" target="_blank"> + <v-icon large>mdi-codepen</v-icon> </v-btn> <span>Codepen</span> </v-tooltip> @@ -78,10 +55,7 @@ </v-layout> </v-container> </v-content> - <v-footer - app - fixed - > + <v-footer app fixed> <span>&copy; 2017</span> </v-footer> </v-app> diff --git a/packages/docs/src/examples/layouts/googleContacts.vue b/packages/docs/src/examples/layouts/googleContacts.vue index 97509cf6726..7986e6e5f8d 100644 --- a/packages/docs/src/examples/layouts/googleContacts.vue +++ b/packages/docs/src/examples/layouts/googleContacts.vue @@ -1,8 +1,8 @@ <template> <v-app id="inspire"> <v-navigation-drawer - v-model="drawer" :clipped="$vuetify.breakpoint.lgAndUp" + v-model="drawer" fixed app > @@ -19,22 +19,14 @@ {{ item.heading }} </v-subheader> </v-flex> - <v-flex - xs6 - class="text-xs-center" - > - <a - href="#!" - class="body-2 black--text" - > - EDIT - </a> + <v-flex xs6 class="text-xs-center"> + <a href="#!" class="body-2 black--text">EDIT</a> </v-flex> </v-layout> <v-list-group v-else-if="item.children" - :key="item.text" v-model="item.model" + :key="item.text" :prepend-icon="item.model ? item.icon : item['icon-alt']" append-icon="" > @@ -60,11 +52,7 @@ </v-list-tile-content> </v-list-tile> </v-list-group> - <v-list-tile - v-else - :key="item.text" - @click="" - > + <v-list-tile v-else :key="item.text" @click=""> <v-list-tile-action> <v-icon>{{ item.icon }}</v-icon> </v-list-tile-action> @@ -84,14 +72,9 @@ app fixed > - <v-toolbar-title - style="width: 300px" - class="ml-0 pl-3" - > + <v-toolbar-title style="width: 300px" class="ml-0 pl-3"> <v-toolbar-side-icon @click.stop="drawer = !drawer"></v-toolbar-side-icon> - <span class="hidden-sm-and-down"> - Google Contacts - </span> + <span class="hidden-sm-and-down">Google Contacts</span> </v-toolbar-title> <v-text-field flat @@ -108,14 +91,8 @@ <v-btn icon> <v-icon>notifications</v-icon> </v-btn> - <v-btn - icon - large - > - <v-avatar - size="32px" - tile - > + <v-btn icon large> + <v-avatar size="32px" tile> <img src="https://cdn.vuetifyjs.com/images/logos/logo.svg" alt="Vuetify" @@ -124,14 +101,8 @@ </v-btn> </v-toolbar> <v-content> - <v-container - fluid - fill-height - > - <v-layout - justify-center - align-center - > + <v-container fluid fill-height> + <v-layout justify-center align-center> <v-tooltip right> <v-btn slot="activator" @@ -140,23 +111,13 @@ large target="_blank" > - <v-icon large> - code - </v-icon> + <v-icon large>code</v-icon> </v-btn> <span>Source</span> </v-tooltip> <v-tooltip right> - <v-btn - slot="activator" - icon - large - href="https://codepen.io/johnjleider/pen/EQOYVV" - target="_blank" - > - <v-icon large> - mdi-codepen - </v-icon> + <v-btn slot="activator" icon large href="https://codepen.io/johnjleider/pen/EQOYVV" target="_blank"> + <v-icon large>mdi-codepen</v-icon> </v-btn> <span>Codepen</span> </v-tooltip> @@ -174,34 +135,18 @@ > <v-icon>add</v-icon> </v-btn> - <v-dialog - v-model="dialog" - width="800px" - > + <v-dialog v-model="dialog" width="800px"> <v-card> <v-card-title class="grey lighten-4 py-4 title" > Create contact </v-card-title> - <v-container - grid-list-sm - class="pa-4" - > - <v-layout - row - wrap - > - <v-flex - xs12 - align-center - justify-space-between - > + <v-container grid-list-sm class="pa-4"> + <v-layout row wrap> + <v-flex xs12 align-center justify-space-between> <v-layout align-center> - <v-avatar - size="40px" - class="mr-3" - > + <v-avatar size="40px" class="mr-3"> <img src="//ssl.gstatic.com/s2/oz/images/sge/grey_silhouette.png" alt="" @@ -246,26 +191,10 @@ </v-layout> </v-container> <v-card-actions> - <v-btn - flat - color="primary" - > - More - </v-btn> + <v-btn flat color="primary">More</v-btn> <v-spacer></v-spacer> - <v-btn - flat - color="primary" - @click="dialog = false" - > - Cancel - </v-btn> - <v-btn - flat - @click="dialog = false" - > - Save - </v-btn> + <v-btn flat color="primary" @click="dialog = false">Cancel</v-btn> + <v-btn flat @click="dialog = false">Save</v-btn> </v-card-actions> </v-card> </v-dialog> diff --git a/packages/docs/src/examples/layouts/googleKeep.vue b/packages/docs/src/examples/layouts/googleKeep.vue index c818f394dcc..b57e57ce13d 100644 --- a/packages/docs/src/examples/layouts/googleKeep.vue +++ b/packages/docs/src/examples/layouts/googleKeep.vue @@ -23,16 +23,8 @@ {{ item.heading }} </v-subheader> </v-flex> - <v-flex - xs6 - class="text-xs-right" - > - <v-btn - small - flat - > - edit - </v-btn> + <v-flex xs6 class="text-xs-right"> + <v-btn small flat>edit</v-btn> </v-flex> </v-layout> <v-divider @@ -58,18 +50,9 @@ </template> </v-list> </v-navigation-drawer> - <v-toolbar - color="amber" - app - absolute - clipped-left - > + <v-toolbar color="amber" app absolute clipped-left> <v-toolbar-side-icon @click="drawer = !drawer"></v-toolbar-side-icon> - <span class="title ml-3 mr-5"> - Google&nbsp;<span class="font-weight-light"> - Keep - </span> - </span> + <span class="title ml-3 mr-5">Google&nbsp;<span class="font-weight-light">Keep</span></span> <v-text-field solo-inverted flat @@ -80,15 +63,8 @@ <v-spacer></v-spacer> </v-toolbar> <v-content> - <v-container - fluid - fill-height - class="grey lighten-4" - > - <v-layout - justify-center - align-center - > + <v-container fluid fill-height class="grey lighten-4"> + <v-layout justify-center align-center> <v-flex shrink> <v-tooltip right> <v-btn @@ -98,23 +74,13 @@ large target="_blank" > - <v-icon large> - code - </v-icon> + <v-icon large>code</v-icon> </v-btn> <span>Source</span> </v-tooltip> <v-tooltip right> - <v-btn - slot="activator" - icon - large - href="https://codepen.io/johnjleider/pen/jZQNbd" - target="_blank" - > - <v-icon large> - mdi-codepen - </v-icon> + <v-btn slot="activator" icon large href="https://codepen.io/johnjleider/pen/jZQNbd" target="_blank"> + <v-icon large>mdi-codepen</v-icon> </v-btn> <span>Codepen</span> </v-tooltip> diff --git a/packages/docs/src/examples/layouts/googleYoutube.vue b/packages/docs/src/examples/layouts/googleYoutube.vue index f0ee2c461a2..243e7c3df47 100644 --- a/packages/docs/src/examples/layouts/googleYoutube.vue +++ b/packages/docs/src/examples/layouts/googleYoutube.vue @@ -10,11 +10,7 @@ app > <v-list dense> - <v-list-tile - v-for="item in items" - :key="item.text" - @click="" - > + <v-list-tile v-for="item in items" :key="item.text" @click=""> <v-list-tile-action> <v-icon>{{ item.icon }}</v-icon> </v-list-tile-action> @@ -24,47 +20,26 @@ </v-list-tile-title> </v-list-tile-content> </v-list-tile> - <v-subheader class="mt-3 grey--text text--darken-1"> - SUBSCRIPTIONS - </v-subheader> + <v-subheader class="mt-3 grey--text text--darken-1">SUBSCRIPTIONS</v-subheader> <v-list> - <v-list-tile - v-for="item in items2" - :key="item.text" - avatar - @click="" - > + <v-list-tile v-for="item in items2" :key="item.text" avatar @click=""> <v-list-tile-avatar> - <img - :src="`https://randomuser.me/api/portraits/men/${item.picture}.jpg`" - alt="" - > + <img :src="`https://randomuser.me/api/portraits/men/${item.picture}.jpg`" alt=""> </v-list-tile-avatar> <v-list-tile-title v-text="item.text"></v-list-tile-title> </v-list-tile> </v-list> - <v-list-tile - class="mt-3" - @click="" - > + <v-list-tile class="mt-3" @click=""> <v-list-tile-action> - <v-icon color="grey darken-1"> - add_circle_outline - </v-icon> + <v-icon color="grey darken-1">add_circle_outline</v-icon> </v-list-tile-action> - <v-list-tile-title class="grey--text text--darken-1"> - Browse Channels - </v-list-tile-title> + <v-list-tile-title class="grey--text text--darken-1">Browse Channels</v-list-tile-title> </v-list-tile> <v-list-tile @click=""> <v-list-tile-action> - <v-icon color="grey darken-1"> - settings - </v-icon> + <v-icon color="grey darken-1">settings</v-icon> </v-list-tile-action> - <v-list-tile-title class="grey--text text--darken-1"> - Manage Subscriptions - </v-list-tile-title> + <v-list-tile-title class="grey--text text--darken-1">Manage Subscriptions</v-list-tile-title> </v-list-tile> </v-list> </v-navigation-drawer> @@ -76,20 +51,12 @@ app > <v-toolbar-side-icon @click.stop="drawer = !drawer"></v-toolbar-side-icon> - <v-icon class="mx-3"> - fab fa-youtube - </v-icon> + <v-icon class="mx-3">fab fa-youtube</v-icon> <v-toolbar-title class="mr-5 align-center"> - <span class="title"> - Youtube - </span> + <span class="title">Youtube</span> </v-toolbar-title> <v-spacer></v-spacer> - <v-layout - row - align-center - style="max-width: 650px" - > + <v-layout row align-center style="max-width: 650px"> <v-text-field :append-icon-cb="() => {}" placeholder="Search..." @@ -102,10 +69,7 @@ </v-toolbar> <v-content> <v-container fill-height> - <v-layout - justify-center - align-center - > + <v-layout justify-center align-center> <v-flex shrink> <v-tooltip right> <v-btn @@ -115,23 +79,13 @@ large target="_blank" > - <v-icon large> - code - </v-icon> + <v-icon large>code</v-icon> </v-btn> <span>Source</span> </v-tooltip> <v-tooltip right> - <v-btn - slot="activator" - icon - large - href="https://codepen.io/johnjleider/pen/YeRKwQ" - target="_blank" - > - <v-icon large> - mdi-codepen - </v-icon> + <v-btn slot="activator" icon large href="https://codepen.io/johnjleider/pen/YeRKwQ" target="_blank"> + <v-icon large>mdi-codepen</v-icon> </v-btn> <span>Codepen</span> </v-tooltip> diff --git a/packages/docs/src/examples/layouts/sandbox.vue b/packages/docs/src/examples/layouts/sandbox.vue index b42bd392604..0c6c9adbda5 100644 --- a/packages/docs/src/examples/layouts/sandbox.vue +++ b/packages/docs/src/examples/layouts/sandbox.vue @@ -1,8 +1,5 @@ <template> - <v-app - id="sandbox" - :dark="dark" - > + <v-app id="sandbox" :dark="dark"> <v-navigation-drawer v-model="primaryDrawer.model" :permanent="primaryDrawer.type === 'permanent'" @@ -14,11 +11,7 @@ overflow app ></v-navigation-drawer> - <v-toolbar - :clipped-left="primaryDrawer.clipped" - app - absolute - > + <v-toolbar :clipped-left="primaryDrawer.clipped" app absolute> <v-toolbar-side-icon v-if="primaryDrawer.type !== 'permanent'" @click.stop="primaryDrawer.model = !primaryDrawer.model" @@ -27,37 +20,18 @@ </v-toolbar> <v-content> <v-container fluid> - <v-layout - align-center - justify-center - > + <v-layout align-center justify-center> <v-flex xs10> <v-card> <v-card-text> - <v-layout - row - wrap - > - <v-flex - xs12 - md6 - > + <v-layout row wrap> + <v-flex xs12 md6> <span>Scheme</span> - <v-switch - v-model="dark" - primary - label="Dark" - ></v-switch> + <v-switch v-model="dark" primary label="Dark"></v-switch> </v-flex> - <v-flex - xs12 - md6 - > + <v-flex xs12 md6> <span>Drawer</span> - <v-radio-group - v-model="primaryDrawer.type" - column - > + <v-radio-group v-model="primaryDrawer.type" column> <v-radio v-for="drawer in drawers" :key="drawer" @@ -66,59 +40,28 @@ primary ></v-radio> </v-radio-group> - <v-switch - v-model="primaryDrawer.clipped" - label="Clipped" - primary - ></v-switch> - <v-switch - v-model="primaryDrawer.floating" - label="Floating" - primary - ></v-switch> - <v-switch - v-model="primaryDrawer.mini" - label="Mini" - primary - ></v-switch> + <v-switch v-model="primaryDrawer.clipped" label="Clipped" primary></v-switch> + <v-switch v-model="primaryDrawer.floating" label="Floating" primary></v-switch> + <v-switch v-model="primaryDrawer.mini" label="Mini" primary></v-switch> </v-flex> - <v-flex - xs12 - md6 - > + <v-flex xs12 md6> <span>Footer</span> - <v-switch - v-model="footer.inset" - label="Inset" - primary - ></v-switch> + <v-switch v-model="footer.inset" label="Inset" primary></v-switch> </v-flex> </v-layout> </v-card-text> <v-card-actions> <v-spacer></v-spacer> - <v-btn flat> - Cancel - </v-btn> - <v-btn - flat - color="primary" - > - Submit - </v-btn> + <v-btn flat>Cancel</v-btn> + <v-btn flat color="primary">Submit</v-btn> </v-card-actions> </v-card> </v-flex> </v-layout> </v-container> </v-content> - <v-footer - :inset="footer.inset" - app - > - <span class="px-3"> - &copy; {{ new Date().getFullYear() }} - </span> + <v-footer :inset="footer.inset" app> + <span class="px-3">&copy; {{ new Date().getFullYear() }}</span> </v-footer> </v-app> </template> diff --git a/packages/docs/src/examples/lists/actionTitleAndSubtitle.vue b/packages/docs/src/examples/lists/actionTitleAndSubtitle.vue index c477f2a93a4..1195ec49a59 100644 --- a/packages/docs/src/examples/lists/actionTitleAndSubtitle.vue +++ b/packages/docs/src/examples/lists/actionTitleAndSubtitle.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="purple" - dark - > + <v-toolbar color="purple" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Settings</v-toolbar-title> diff --git a/packages/docs/src/examples/lists/actionWithTitleAndSubtitle.vue b/packages/docs/src/examples/lists/actionWithTitleAndSubtitle.vue index 7d93ccae270..726a70c13b6 100644 --- a/packages/docs/src/examples/lists/actionWithTitleAndSubtitle.vue +++ b/packages/docs/src/examples/lists/actionWithTitleAndSubtitle.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="purple" - dark - > + <v-toolbar color="purple" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Settings</v-toolbar-title> @@ -21,10 +14,7 @@ </v-btn> </v-toolbar> - <v-list - three-line - subheader - > + <v-list three-line subheader> <v-subheader>User Controls</v-subheader> <v-list-tile> diff --git a/packages/docs/src/examples/lists/avatarSubheaderTitleAndAction.vue b/packages/docs/src/examples/lists/avatarSubheaderTitleAndAction.vue index 72278c3b6c2..2f73d3528b7 100644 --- a/packages/docs/src/examples/lists/avatarSubheaderTitleAndAction.vue +++ b/packages/docs/src/examples/lists/avatarSubheaderTitleAndAction.vue @@ -1,20 +1,11 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="teal" - dark - > + <v-toolbar color="teal" dark> <v-toolbar-side-icon></v-toolbar-side-icon> - <v-toolbar-title class="text-xs-center"> - New Chat - </v-toolbar-title> + <v-toolbar-title class="text-xs-center">New Chat</v-toolbar-title> <v-spacer></v-spacer> @@ -40,9 +31,7 @@ </v-list-tile-content> <v-list-tile-action> - <v-icon :color="item.active ? 'teal' : 'grey'"> - chat_bubble - </v-icon> + <v-icon :color="item.active ? 'teal' : 'grey'">chat_bubble</v-icon> </v-list-tile-action> </v-list-tile> </v-list> diff --git a/packages/docs/src/examples/lists/avatarThreeLines.vue b/packages/docs/src/examples/lists/avatarThreeLines.vue index d6368bef865..f468142775b 100644 --- a/packages/docs/src/examples/lists/avatarThreeLines.vue +++ b/packages/docs/src/examples/lists/avatarThreeLines.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="cyan" - dark - > + <v-toolbar color="cyan" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Inbox</v-toolbar-title> @@ -32,8 +25,8 @@ <v-divider v-else-if="item.divider" - :key="index" :inset="item.inset" + :key="index" ></v-divider> <v-list-tile diff --git a/packages/docs/src/examples/lists/avatarTitleAndAction.vue b/packages/docs/src/examples/lists/avatarTitleAndAction.vue index bed110d1d22..bbc89136e16 100644 --- a/packages/docs/src/examples/lists/avatarTitleAndAction.vue +++ b/packages/docs/src/examples/lists/avatarTitleAndAction.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="indigo" - dark - > + <v-toolbar color="indigo" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Inbox</v-toolbar-title> @@ -32,12 +25,7 @@ @click="" > <v-list-tile-action> - <v-icon - v-if="item.icon" - color="pink" - > - star - </v-icon> + <v-icon v-if="item.icon" color="pink">star</v-icon> </v-list-tile-action> <v-list-tile-content> diff --git a/packages/docs/src/examples/lists/cardList.vue b/packages/docs/src/examples/lists/cardList.vue index fe0ae82ef01..b488f1d00f7 100644 --- a/packages/docs/src/examples/lists/cardList.vue +++ b/packages/docs/src/examples/lists/cardList.vue @@ -1,10 +1,6 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> <v-img src="https://cdn.vuetifyjs.com/images/lists/ali.png" @@ -15,27 +11,17 @@ fill-height > <v-card-title> - <v-btn - dark - icon - > + <v-btn dark icon> <v-icon>chevron_left</v-icon> </v-btn> <v-spacer></v-spacer> - <v-btn - dark - icon - class="mr-3" - > + <v-btn dark icon class="mr-3"> <v-icon>edit</v-icon> </v-btn> - <v-btn - dark - icon - > + <v-btn dark icon> <v-icon>more_vert</v-icon> </v-btn> </v-card-title> @@ -43,9 +29,7 @@ <v-spacer></v-spacer> <v-card-title class="white--text pl-5 pt-5"> - <div class="display-1 pl-5 pt-5"> - Ali Conners - </div> + <div class="display-1 pl-5 pt-5">Ali Conners</div> </v-card-title> </v-layout> </v-img> @@ -53,9 +37,7 @@ <v-list two-line> <v-list-tile @click=""> <v-list-tile-action> - <v-icon color="indigo"> - phone - </v-icon> + <v-icon color="indigo">phone</v-icon> </v-list-tile-action> <v-list-tile-content> @@ -85,9 +67,7 @@ <v-list-tile @click=""> <v-list-tile-action> - <v-icon color="indigo"> - mail - </v-icon> + <v-icon color="indigo">mail</v-icon> </v-list-tile-action> <v-list-tile-content> @@ -109,9 +89,7 @@ <v-list-tile @click=""> <v-list-tile-action> - <v-icon color="indigo"> - location_on - </v-icon> + <v-icon color="indigo">location_on</v-icon> </v-list-tile-action> <v-list-tile-content> diff --git a/packages/docs/src/examples/lists/expansionLists.vue b/packages/docs/src/examples/lists/expansionLists.vue index 6e0304f4f51..bc30c9db9c6 100644 --- a/packages/docs/src/examples/lists/expansionLists.vue +++ b/packages/docs/src/examples/lists/expansionLists.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="teal" - dark - > + <v-toolbar color="teal" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Topics</v-toolbar-title> @@ -24,8 +17,8 @@ <v-list> <v-list-group v-for="item in items" - :key="item.title" v-model="item.active" + :key="item.title" :prepend-icon="item.action" no-action > diff --git a/packages/docs/src/examples/lists/iconTwoLinesAndAction.vue b/packages/docs/src/examples/lists/iconTwoLinesAndAction.vue index af560dff31c..8bf85192b96 100644 --- a/packages/docs/src/examples/lists/iconTwoLinesAndAction.vue +++ b/packages/docs/src/examples/lists/iconTwoLinesAndAction.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="light-blue" - dark - > + <v-toolbar color="light-blue" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>My files</v-toolbar-title> @@ -25,13 +18,8 @@ </v-btn> </v-toolbar> - <v-list - two-line - subheader - > - <v-subheader inset> - Folders - </v-subheader> + <v-list two-line subheader> + <v-subheader inset>Folders</v-subheader> <v-list-tile v-for="item in items" @@ -40,9 +28,7 @@ @click="" > <v-list-tile-avatar> - <v-icon :class="[item.iconClass]"> - {{ item.icon }} - </v-icon> + <v-icon :class="[item.iconClass]">{{ item.icon }}</v-icon> </v-list-tile-avatar> <v-list-tile-content> @@ -51,22 +37,15 @@ </v-list-tile-content> <v-list-tile-action> - <v-btn - icon - ripple - > - <v-icon color="grey lighten-1"> - info - </v-icon> + <v-btn icon ripple> + <v-icon color="grey lighten-1">info</v-icon> </v-btn> </v-list-tile-action> </v-list-tile> <v-divider inset></v-divider> - <v-subheader inset> - Files - </v-subheader> + <v-subheader inset>Files</v-subheader> <v-list-tile v-for="item in items2" @@ -75,9 +54,7 @@ @click="" > <v-list-tile-avatar> - <v-icon :class="[item.iconClass]"> - {{ item.icon }} - </v-icon> + <v-icon :class="[item.iconClass]">{{ item.icon }}</v-icon> </v-list-tile-avatar> <v-list-tile-content> @@ -86,13 +63,8 @@ </v-list-tile-content> <v-list-tile-action> - <v-btn - icon - ripple - > - <v-icon color="grey lighten-1"> - info - </v-icon> + <v-btn icon ripple> + <v-icon color="grey lighten-1">info</v-icon> </v-btn> </v-list-tile-action> </v-list-tile> diff --git a/packages/docs/src/examples/lists/subheadingsAndDividers.vue b/packages/docs/src/examples/lists/subheadingsAndDividers.vue index 526cd61b1a7..70d1b70abe7 100644 --- a/packages/docs/src/examples/lists/subheadingsAndDividers.vue +++ b/packages/docs/src/examples/lists/subheadingsAndDividers.vue @@ -1,24 +1,14 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="teal" - dark - > + <v-toolbar color="teal" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Settings</v-toolbar-title> </v-toolbar> - <v-list - two-line - subheader - > + <v-list two-line subheader> <v-subheader>General</v-subheader> <v-list-tile avatar> diff --git a/packages/docs/src/examples/lists/titleSubtitleActionsAndActionText.vue b/packages/docs/src/examples/lists/titleSubtitleActionsAndActionText.vue index 584907040d8..73d6a5cd3a8 100644 --- a/packages/docs/src/examples/lists/titleSubtitleActionsAndActionText.vue +++ b/packages/docs/src/examples/lists/titleSubtitleActionsAndActionText.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="pink" - dark - > + <v-toolbar color="pink" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Inbox</v-toolbar-title> @@ -35,9 +28,7 @@ > <v-list-tile-content> <v-list-tile-title>{{ item.title }}</v-list-tile-title> - <v-list-tile-sub-title class="text--primary"> - {{ item.headline }} - </v-list-tile-sub-title> + <v-list-tile-sub-title class="text--primary">{{ item.headline }}</v-list-tile-sub-title> <v-list-tile-sub-title>{{ item.subtitle }}</v-list-tile-sub-title> </v-list-tile-content> @@ -57,6 +48,7 @@ star </v-icon> </v-list-tile-action> + </v-list-tile> <v-divider v-if="index + 1 < items.length" diff --git a/packages/docs/src/examples/lists/usage.vue b/packages/docs/src/examples/lists/usage.vue index 33adf094ce0..2e63fdb2b42 100644 --- a/packages/docs/src/examples/lists/usage.vue +++ b/packages/docs/src/examples/lists/usage.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="cyan" - dark - > + <v-toolbar color="cyan" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Inbox</v-toolbar-title> @@ -32,8 +25,8 @@ <v-divider v-else-if="item.divider" - :key="index" :inset="item.inset" + :key="index" ></v-divider> <v-list-tile diff --git a/packages/docs/src/examples/menus/absoluteWithoutActivator.vue b/packages/docs/src/examples/menus/absoluteWithoutActivator.vue index 3afb0eb3fee..026ef615b15 100644 --- a/packages/docs/src/examples/menus/absoluteWithoutActivator.vue +++ b/packages/docs/src/examples/menus/absoluteWithoutActivator.vue @@ -1,9 +1,6 @@ <template> <div> - <v-layout - flex - justify-center - > + <v-layout flex justify-center> <v-card class="portrait" img="https://cdn.vuetifyjs.com/images/cards/girl.jpg" diff --git a/packages/docs/src/examples/menus/hover.vue b/packages/docs/src/examples/menus/hover.vue index b0f2f032d52..ecf128e538a 100644 --- a/packages/docs/src/examples/menus/hover.vue +++ b/packages/docs/src/examples/menus/hover.vue @@ -1,10 +1,6 @@ <template> <div class="text-xs-center"> - <v-menu - open-on-hover - top - offset-y - > + <v-menu open-on-hover top offset-y> <v-btn slot="activator" color="primary" diff --git a/packages/docs/src/examples/menus/menus.vue b/packages/docs/src/examples/menus/menus.vue index 08327a61c5a..3ea5cd28643 100644 --- a/packages/docs/src/examples/menus/menus.vue +++ b/packages/docs/src/examples/menus/menus.vue @@ -1,22 +1,13 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card height="200px"> <v-card-title class="blue white--text"> - <span class="headline"> - Menu - </span> + <span class="headline">Menu</span> <v-spacer></v-spacer> - <v-menu - bottom - left - > + <v-menu bottom left> <v-btn slot="activator" dark diff --git a/packages/docs/src/examples/menus/popover.vue b/packages/docs/src/examples/menus/popover.vue index 79eb724f612..af3566add7b 100644 --- a/packages/docs/src/examples/menus/popover.vue +++ b/packages/docs/src/examples/menus/popover.vue @@ -18,10 +18,7 @@ <v-list> <v-list-tile avatar> <v-list-tile-avatar> - <img - src="https://cdn.vuetifyjs.com/images/john.jpg" - alt="John" - > + <img src="https://cdn.vuetifyjs.com/images/john.jpg" alt="John"> </v-list-tile-avatar> <v-list-tile-content> @@ -46,20 +43,14 @@ <v-list> <v-list-tile> <v-list-tile-action> - <v-switch - v-model="message" - color="purple" - ></v-switch> + <v-switch v-model="message" color="purple"></v-switch> </v-list-tile-action> <v-list-tile-title>Enable messages</v-list-tile-title> </v-list-tile> <v-list-tile> <v-list-tile-action> - <v-switch - v-model="hints" - color="purple" - ></v-switch> + <v-switch v-model="hints" color="purple"></v-switch> </v-list-tile-action> <v-list-tile-title>Enable hints</v-list-tile-title> </v-list-tile> @@ -68,19 +59,8 @@ <v-card-actions> <v-spacer></v-spacer> - <v-btn - flat - @click="menu = false" - > - Cancel - </v-btn> - <v-btn - color="primary" - flat - @click="menu = false" - > - Save - </v-btn> + <v-btn flat @click="menu = false">Cancel</v-btn> + <v-btn color="primary" flat @click="menu = false">Save</v-btn> </v-card-actions> </v-card> </v-menu> diff --git a/packages/docs/src/examples/navigation-drawers/combined.vue b/packages/docs/src/examples/navigation-drawers/combined.vue index b43d2259e9c..d2d36372f32 100644 --- a/packages/docs/src/examples/navigation-drawers/combined.vue +++ b/packages/docs/src/examples/navigation-drawers/combined.vue @@ -14,10 +14,7 @@ stateless value="true" > - <v-toolbar - flat - class="transparent" - > + <v-toolbar flat class="transparent"> <v-list class="pa-0"> <v-list-tile avatar> <v-list-tile-avatar> @@ -40,10 +37,7 @@ </v-list> </v-toolbar> - <v-list - class="pt-0" - dense - > + <v-list class="pt-0" dense> <v-divider></v-divider> <v-list-tile diff --git a/packages/docs/src/examples/navigation-drawers/dark.vue b/packages/docs/src/examples/navigation-drawers/dark.vue index 7cf81e8b006..49edc9a9f6a 100644 --- a/packages/docs/src/examples/navigation-drawers/dark.vue +++ b/packages/docs/src/examples/navigation-drawers/dark.vue @@ -23,19 +23,13 @@ temporary > <v-list class="pa-1"> - <v-list-tile - v-if="mini" - @click.stop="mini = !mini" - > + <v-list-tile v-if="mini" @click.stop="mini = !mini"> <v-list-tile-action> <v-icon>chevron_right</v-icon> </v-list-tile-action> </v-list-tile> - <v-list-tile - avatar - tag="div" - > + <v-list-tile avatar tag="div"> <v-list-tile-avatar> <img src="https://randomuser.me/api/portraits/men/85.jpg"> </v-list-tile-avatar> @@ -45,20 +39,14 @@ </v-list-tile-content> <v-list-tile-action> - <v-btn - icon - @click.stop="mini = !mini" - > + <v-btn icon @click.stop="mini = !mini"> <v-icon>chevron_left</v-icon> </v-btn> </v-list-tile-action> </v-list-tile> </v-list> - <v-list - class="pt-0" - dense - > + <v-list class="pt-0" dense> <v-divider light></v-divider> <v-list-tile diff --git a/packages/docs/src/examples/navigation-drawers/mini.vue b/packages/docs/src/examples/navigation-drawers/mini.vue index ffe9b0b0450..f5430230528 100644 --- a/packages/docs/src/examples/navigation-drawers/mini.vue +++ b/packages/docs/src/examples/navigation-drawers/mini.vue @@ -1,14 +1,11 @@ <template> <v-navigation-drawer - v-model="drawer" :mini-variant.sync="mini" + v-model="drawer" hide-overlay stateless > - <v-toolbar - flat - class="transparent" - > + <v-toolbar flat class="transparent"> <v-list class="pa-0"> <v-list-tile avatar> <v-list-tile-avatar> @@ -31,10 +28,7 @@ </v-list> </v-toolbar> - <v-list - class="pt-0" - dense - > + <v-list class="pt-0" dense> <v-divider></v-divider> <v-list-tile diff --git a/packages/docs/src/examples/navigation-drawers/permanentFloatingCard.vue b/packages/docs/src/examples/navigation-drawers/permanentFloatingCard.vue index eebbdcef2b0..a5a441282b0 100644 --- a/packages/docs/src/examples/navigation-drawers/permanentFloatingCard.vue +++ b/packages/docs/src/examples/navigation-drawers/permanentFloatingCard.vue @@ -6,10 +6,7 @@ permanent > <v-card class="ma-3"> - <v-list - dense - class="py-0" - > + <v-list dense class="py-0"> <v-list-tile v-for="item in items" :key="item.title" diff --git a/packages/docs/src/examples/navigation-drawers/persistent.vue b/packages/docs/src/examples/navigation-drawers/persistent.vue index 1ef5b793bbf..6a87a2096f9 100644 --- a/packages/docs/src/examples/navigation-drawers/persistent.vue +++ b/packages/docs/src/examples/navigation-drawers/persistent.vue @@ -5,10 +5,7 @@ permanent absolute > - <v-toolbar - flat - class="transparent" - > + <v-toolbar flat class="transparent"> <v-list class="pa-0"> <v-list-tile avatar> <v-list-tile-avatar> @@ -22,10 +19,7 @@ </v-list> </v-toolbar> - <v-list - class="pt-0" - dense - > + <v-list class="pt-0" dense> <v-divider></v-divider> <v-list-tile diff --git a/packages/docs/src/examples/navigation-drawers/temporary.vue b/packages/docs/src/examples/navigation-drawers/temporary.vue index 23585b13574..42203455178 100644 --- a/packages/docs/src/examples/navigation-drawers/temporary.vue +++ b/packages/docs/src/examples/navigation-drawers/temporary.vue @@ -32,10 +32,7 @@ </v-list-tile> </v-list> - <v-list - class="pt-0" - dense - > + <v-list class="pt-0" dense> <v-divider></v-divider> <v-list-tile diff --git a/packages/docs/src/examples/navigation-drawers/usage.vue b/packages/docs/src/examples/navigation-drawers/usage.vue index adc30415159..bd88da6dea1 100644 --- a/packages/docs/src/examples/navigation-drawers/usage.vue +++ b/packages/docs/src/examples/navigation-drawers/usage.vue @@ -12,10 +12,7 @@ <v-divider></v-divider> - <v-list - dense - class="pt-0" - > + <v-list dense class="pt-0"> <v-list-tile v-for="item in items" :key="item.title" diff --git a/packages/docs/src/examples/parallax/content.vue b/packages/docs/src/examples/parallax/content.vue index 39da52097bd..c0276c58536 100644 --- a/packages/docs/src/examples/parallax/content.vue +++ b/packages/docs/src/examples/parallax/content.vue @@ -8,12 +8,8 @@ column justify-center > - <h1 class="display-2 font-weight-thin mb-3"> - Vuetify.js - </h1> - <h4 class="subheading"> - Build your application today! - </h4> + <h1 class="display-2 font-weight-thin mb-3">Vuetify.js</h1> + <h4 class="subheading">Build your application today!</h4> </v-layout> </v-parallax> </template> diff --git a/packages/docs/src/examples/ratings/advanced.vue b/packages/docs/src/examples/ratings/advanced.vue index f9950077065..4fd61423d61 100644 --- a/packages/docs/src/examples/ratings/advanced.vue +++ b/packages/docs/src/examples/ratings/advanced.vue @@ -4,10 +4,7 @@ style="max-width: 600px;" > <v-layout> - <v-flex - xs6 - d-flex - > + <v-flex xs6 d-flex> <v-img src="https://cdn.vuetifyjs.com/images/ratings/fortnite1.png" ></v-img> @@ -20,34 +17,22 @@ style="margin: -4px 0" > <v-layout wrap> - <v-flex - xs7 - d-flex - > + <v-flex xs7 d-flex> <v-img src="https://cdn.vuetifyjs.com/images/ratings/fortnite2.png" ></v-img> </v-flex> - <v-flex - xs5 - d-flex - > + <v-flex xs5 d-flex> <v-img src="https://cdn.vuetifyjs.com/images/ratings/fortnite3.png" ></v-img> </v-flex> - <v-flex - xs5 - d-flex - > + <v-flex xs5 d-flex> <v-img src="https://cdn.vuetifyjs.com/images/ratings/fortnite4.png" ></v-img> </v-flex> - <v-flex - xs7 - d-flex - > + <v-flex xs7 d-flex> <v-img src="https://cdn.vuetifyjs.com/images/ratings/fortnite5.png" ></v-img> @@ -58,12 +43,8 @@ </v-layout> <v-card-title class="align-start"> <div> - <span class="headline"> - FORTNITE - </span> - <div class="grey--text font-weight-light"> - Video game - </div> + <span class="headline">FORTNITE</span> + <div class="grey--text font-weight-light">Video game</div> </div> <v-spacer></v-spacer> <v-dialog @@ -75,9 +56,7 @@ </v-icon> <v-card> <v-card-title> - <span class="title font-weight-bold"> - Share - </span> + <span class="title font-weight-bold">Share</span> <v-spacer></v-spacer> <v-btn class="mx-0" @@ -90,17 +69,13 @@ <v-list> <v-list-tile @click=""> <v-list-tile-action> - <v-icon color="indigo"> - mdi-facebook-box - </v-icon> + <v-icon color="indigo">mdi-facebook-box</v-icon> </v-list-tile-action> <v-card-title>Facebook</v-card-title> </v-list-tile> <v-list-tile @click=""> <v-list-tile-action> - <v-icon color="cyan"> - mdi-twitter-box - </v-icon> + <v-icon color="cyan">mdi-twitter-box</v-icon> </v-list-tile-action> <v-card-title>Twitter</v-card-title> </v-list-tile> @@ -124,9 +99,7 @@ </v-card-title> <v-divider></v-divider> <v-card-actions> - <span class="pl-2 grey--text text--darken-2 font-weight-light caption"> - 16,544 reviews - </span> + <span class="pl-2 grey--text text--darken-2 font-weight-light caption">16,544 reviews</span> <v-spacer></v-spacer> <v-rating v-model="rating" diff --git a/packages/docs/src/examples/ratings/card.vue b/packages/docs/src/examples/ratings/card.vue index cf6d19a3927..7958daaa8ab 100644 --- a/packages/docs/src/examples/ratings/card.vue +++ b/packages/docs/src/examples/ratings/card.vue @@ -9,9 +9,7 @@ <v-flex xs8> <v-card-title primary-title> <div> - <div class="headline"> - Halycon Days - </div> + <div class="headline">Halycon Days</div> <div>Ellie Goulding</div> <div>(2013)</div> </div> diff --git a/packages/docs/src/examples/ratings/increments.vue b/packages/docs/src/examples/ratings/increments.vue index f60d9d92e60..aa0949076ef 100644 --- a/packages/docs/src/examples/ratings/increments.vue +++ b/packages/docs/src/examples/ratings/increments.vue @@ -25,9 +25,7 @@ </v-card-text> <v-divider></v-divider> <v-card-actions class="justify-space-between"> - <v-btn flat> - No Thanks - </v-btn> + <v-btn flat>No Thanks</v-btn> <v-btn color="primary" flat diff --git a/packages/docs/src/examples/ratings/length.vue b/packages/docs/src/examples/ratings/length.vue index 9ae2fa05913..da4817ce392 100644 --- a/packages/docs/src/examples/ratings/length.vue +++ b/packages/docs/src/examples/ratings/length.vue @@ -53,9 +53,7 @@ background-color="grey lighten-1" ></v-rating> <div> - <span class="caption text-uppercase"> - model: - </span> + <span class="caption text-uppercase">model:</span> <span class="font-weight-bold"> {{ rating }} </span> diff --git a/packages/docs/src/examples/ratings/sizes.vue b/packages/docs/src/examples/ratings/sizes.vue index 5d0988d81dc..f206ef85d38 100644 --- a/packages/docs/src/examples/ratings/sizes.vue +++ b/packages/docs/src/examples/ratings/sizes.vue @@ -1,8 +1,5 @@ <template> - <v-layout - column - align-center - > + <v-layout column align-center> <v-rating v-model="rating" background-color="purple lighten-3" diff --git a/packages/docs/src/examples/resizing/usage.vue b/packages/docs/src/examples/resizing/usage.vue index 75b49ce186f..895aad1409b 100644 --- a/packages/docs/src/examples/resizing/usage.vue +++ b/packages/docs/src/examples/resizing/usage.vue @@ -1,10 +1,5 @@ <template> - <v-layout - v-resize="onResize" - column - align-center - justify-center - > + <v-layout v-resize="onResize" column align-center justify-center> <v-subheader>Window Size</v-subheader> {{ windowSize }} </v-layout> diff --git a/packages/docs/src/examples/ripples/customColor.vue b/packages/docs/src/examples/ripples/customColor.vue index 1d7f42b8f01..8de9e8cc1fc 100644 --- a/packages/docs/src/examples/ripples/customColor.vue +++ b/packages/docs/src/examples/ripples/customColor.vue @@ -1,10 +1,5 @@ <template> <div class="text-xs-center"> - <v-btn - :ripple="{ class: 'error--text' }" - dark - > - Colored Ripple - </v-btn> + <v-btn :ripple="{ class: 'error--text' }" dark>Colored Ripple</v-btn> </div> </template> diff --git a/packages/docs/src/examples/ripples/customRipple.vue b/packages/docs/src/examples/ripples/customRipple.vue index 1052e6a0c22..076d1cd46c5 100644 --- a/packages/docs/src/examples/ripples/customRipple.vue +++ b/packages/docs/src/examples/ripples/customRipple.vue @@ -8,9 +8,7 @@ height="300" @click="color = (color + 1) % colors.length" > - <div class="title white--text pl-3 pt-3"> - {{ colors[color] }} - </div> + <div class="title white--text pl-3 pt-3">{{ colors[color] }}</div> </v-card> </v-flex> </v-layout> diff --git a/packages/docs/src/examples/ripples/expansionPanels.vue b/packages/docs/src/examples/ripples/expansionPanels.vue index e5851bd13b6..2f9bf6ae961 100644 --- a/packages/docs/src/examples/ripples/expansionPanels.vue +++ b/packages/docs/src/examples/ripples/expansionPanels.vue @@ -1,17 +1,11 @@ <template> <v-expansion-panel> - <v-expansion-panel-content - v-for="item in 5" - :key="item" - ripple - > + <v-expansion-panel-content v-for="item in 5" :key="item" ripple> <div slot="header"> <div>Item</div> </div> <v-card> - <v-card-text class="grey lighten-3"> - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - </v-card-text> + <v-card-text class="grey lighten-3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</v-card-text> </v-card> </v-expansion-panel-content> </v-expansion-panel> diff --git a/packages/docs/src/examples/ripples/navigationDrawers.vue b/packages/docs/src/examples/ripples/navigationDrawers.vue index 25f4fae5e7c..06a6406f77f 100644 --- a/packages/docs/src/examples/ripples/navigationDrawers.vue +++ b/packages/docs/src/examples/ripples/navigationDrawers.vue @@ -1,12 +1,6 @@ <template> - <v-card - height="30vh" - style="overflow: hidden;" - > - <v-app - id="example-4" - standalone - > + <v-card height="30vh" style="overflow: hidden;"> + <v-app id="example-4" standalone> <v-navigation-drawer permanent absolute @@ -14,12 +8,7 @@ style="z-index: 1" > <v-list> - <v-list-tile - v-for="i in 3" - :key="i" - ripple - @click="" - > + <v-list-tile v-for="i in 3" :key="i" ripple @click=""> <v-list-tile-title>Link {{ i }}</v-list-tile-title> </v-list-tile> </v-list> diff --git a/packages/docs/src/examples/ripples/toolbars.vue b/packages/docs/src/examples/ripples/toolbars.vue index e0843a2bedf..1438be9cb01 100644 --- a/packages/docs/src/examples/ripples/toolbars.vue +++ b/packages/docs/src/examples/ripples/toolbars.vue @@ -1,14 +1,7 @@ <template> <v-toolbar> <v-toolbar-items> - <v-btn - v-for="i in 5" - :key="i" - flat - ripple - > - Link {{ i }} - </v-btn> + <v-btn v-for="i in 5" :key="i" flat ripple>Link {{ i }}</v-btn> </v-toolbar-items> </v-toolbar> </template> diff --git a/packages/docs/src/examples/ripples/usage.vue b/packages/docs/src/examples/ripples/usage.vue index 488b2d4d25f..21d280353b6 100644 --- a/packages/docs/src/examples/ripples/usage.vue +++ b/packages/docs/src/examples/ripples/usage.vue @@ -1,18 +1,6 @@ <template> <div class="text-xs-center"> - <v-btn - color="primary" - dark - ripple - > - Default Ripple - </v-btn> - <v-btn - :ripple="false" - color="primary" - dark - > - Ripple Disabled - </v-btn> + <v-btn color="primary" dark ripple>Default Ripple</v-btn> + <v-btn :ripple="false" color="primary" dark>Ripple Disabled</v-btn> </div> </template> diff --git a/packages/docs/src/examples/scroll/usage.vue b/packages/docs/src/examples/scroll/usage.vue index 5b253aa16bd..dac7c94eb39 100644 --- a/packages/docs/src/examples/scroll/usage.vue +++ b/packages/docs/src/examples/scroll/usage.vue @@ -1,84 +1,25 @@ <template> <v-container> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex xs12> - <h3 - ref="radio" - class="headline" - > - Target - </h3> - <v-radio-group - v-model="type" - row - > - <v-radio - label="Number" - value="number" - ></v-radio> - <v-radio - label="Selector" - value="selector" - ></v-radio> - <v-radio - label="DOMElement" - value="element" - ></v-radio> + <h3 ref="radio" class="headline">Target</h3> + <v-radio-group v-model="type" row> + <v-radio label="Number" value="number"></v-radio> + <v-radio label="Selector" value="selector"></v-radio> + <v-radio label="DOMElement" value="element"></v-radio> </v-radio-group> - <v-text-field - v-if="type === 'number'" - v-model="number" - type="number" - label="Number" - ></v-text-field> - <v-text-field - v-if="type === 'selector'" - v-model="selector" - label="Selector" - ></v-text-field> - <v-select - v-if="type === 'element'" - v-model="selected" - :items="elements" - label="DOMElement" - ></v-select> + <v-text-field v-if="type === 'number'" v-model="number" type="number" label="Number"></v-text-field> + <v-text-field v-if="type === 'selector'" v-model="selector" label="Selector"></v-text-field> + <v-select v-if="type === 'element'" v-model="selected" :items="elements" label="DOMElement"></v-select> </v-flex> <v-flex xs12> - <h3 class="headline"> - Options - </h3> - <v-select - v-model="easing" - :items="easings" - label="Easing" - ></v-select> - <v-slider - v-model="duration" - min="0" - max="1000" - label="Duration" - thumb-label - ></v-slider> - <v-slider - v-model="offset" - min="-500" - max="500" - label="Offset" - thumb-label - ></v-slider> + <h3 class="headline">Options</h3> + <v-select v-model="easing" :items="easings" label="Easing"></v-select> + <v-slider v-model="duration" min="0" max="1000" label="Duration" thumb-label></v-slider> + <v-slider v-model="offset" min="-500" max="500" label="Offset" thumb-label></v-slider> </v-flex> <v-flex> - <v-btn - ref="button" - color="primary" - block - @click="$vuetify.goTo(target, options)" - > - scroll - </v-btn> + <v-btn ref="button" color="primary" block @click="$vuetify.goTo(target, options)">scroll</v-btn> </v-flex> </v-layout> </v-container> @@ -117,7 +58,6 @@ element () { if (this.selected === 'Button') return this.$refs.button else if (this.selected === 'Radio group') return this.$refs.radio - else return this.$el } } } diff --git a/packages/docs/src/examples/scrolling/options.vue b/packages/docs/src/examples/scrolling/options.vue index 6259811d183..19d5a479a77 100644 --- a/packages/docs/src/examples/scrolling/options.vue +++ b/packages/docs/src/examples/scrolling/options.vue @@ -1,10 +1,6 @@ <template> <div> - <v-layout - column - justify-center - align-center - > + <v-layout column justify-center align-center> <v-subheader>Offset Top</v-subheader> {{ offsetTop }} </v-layout> diff --git a/packages/docs/src/examples/scrolling/usage.vue b/packages/docs/src/examples/scrolling/usage.vue index 5b253aa16bd..dac7c94eb39 100644 --- a/packages/docs/src/examples/scrolling/usage.vue +++ b/packages/docs/src/examples/scrolling/usage.vue @@ -1,84 +1,25 @@ <template> <v-container> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex xs12> - <h3 - ref="radio" - class="headline" - > - Target - </h3> - <v-radio-group - v-model="type" - row - > - <v-radio - label="Number" - value="number" - ></v-radio> - <v-radio - label="Selector" - value="selector" - ></v-radio> - <v-radio - label="DOMElement" - value="element" - ></v-radio> + <h3 ref="radio" class="headline">Target</h3> + <v-radio-group v-model="type" row> + <v-radio label="Number" value="number"></v-radio> + <v-radio label="Selector" value="selector"></v-radio> + <v-radio label="DOMElement" value="element"></v-radio> </v-radio-group> - <v-text-field - v-if="type === 'number'" - v-model="number" - type="number" - label="Number" - ></v-text-field> - <v-text-field - v-if="type === 'selector'" - v-model="selector" - label="Selector" - ></v-text-field> - <v-select - v-if="type === 'element'" - v-model="selected" - :items="elements" - label="DOMElement" - ></v-select> + <v-text-field v-if="type === 'number'" v-model="number" type="number" label="Number"></v-text-field> + <v-text-field v-if="type === 'selector'" v-model="selector" label="Selector"></v-text-field> + <v-select v-if="type === 'element'" v-model="selected" :items="elements" label="DOMElement"></v-select> </v-flex> <v-flex xs12> - <h3 class="headline"> - Options - </h3> - <v-select - v-model="easing" - :items="easings" - label="Easing" - ></v-select> - <v-slider - v-model="duration" - min="0" - max="1000" - label="Duration" - thumb-label - ></v-slider> - <v-slider - v-model="offset" - min="-500" - max="500" - label="Offset" - thumb-label - ></v-slider> + <h3 class="headline">Options</h3> + <v-select v-model="easing" :items="easings" label="Easing"></v-select> + <v-slider v-model="duration" min="0" max="1000" label="Duration" thumb-label></v-slider> + <v-slider v-model="offset" min="-500" max="500" label="Offset" thumb-label></v-slider> </v-flex> <v-flex> - <v-btn - ref="button" - color="primary" - block - @click="$vuetify.goTo(target, options)" - > - scroll - </v-btn> + <v-btn ref="button" color="primary" block @click="$vuetify.goTo(target, options)">scroll</v-btn> </v-flex> </v-layout> </v-container> @@ -117,7 +58,6 @@ element () { if (this.selected === 'Button') return this.$refs.button else if (this.selected === 'Radio group') return this.$refs.radio - else return this.$el } } } diff --git a/packages/docs/src/examples/selection-controls/checkboxesArray.vue b/packages/docs/src/examples/selection-controls/checkboxesArray.vue index d1d00a282d2..5966b7e23ff 100644 --- a/packages/docs/src/examples/selection-controls/checkboxesArray.vue +++ b/packages/docs/src/examples/selection-controls/checkboxesArray.vue @@ -1,16 +1,8 @@ <template> <v-container fluid> <p>{{ selected }}</p> - <v-checkbox - v-model="selected" - label="John" - value="John" - ></v-checkbox> - <v-checkbox - v-model="selected" - label="Jacob" - value="Jacob" - ></v-checkbox> + <v-checkbox v-model="selected" label="John" value="John"></v-checkbox> + <v-checkbox v-model="selected" label="Jacob" value="Jacob"></v-checkbox> </v-container> </template> diff --git a/packages/docs/src/examples/selection-controls/checkboxesBoolean.vue b/packages/docs/src/examples/selection-controls/checkboxesBoolean.vue index bd492aab332..3d5b8c69a38 100644 --- a/packages/docs/src/examples/selection-controls/checkboxesBoolean.vue +++ b/packages/docs/src/examples/selection-controls/checkboxesBoolean.vue @@ -1,13 +1,7 @@ <template> <v-container fluid> - <v-checkbox - v-model="checkbox1" - :label="`Checkbox 1: ${checkbox1.toString()}`" - ></v-checkbox> - <v-checkbox - v-model="checkbox2" - :label="`Checkbox 2: ${checkbox2.toString()}`" - ></v-checkbox> + <v-checkbox :label="`Checkbox 1: ${checkbox1.toString()}`" v-model="checkbox1"></v-checkbox> + <v-checkbox :label="`Checkbox 2: ${checkbox2.toString()}`" v-model="checkbox2"></v-checkbox> </v-container> </template> diff --git a/packages/docs/src/examples/selection-controls/checkboxesColors.vue b/packages/docs/src/examples/selection-controls/checkboxesColors.vue index 8275338e60b..a09de1df7cc 100644 --- a/packages/docs/src/examples/selection-controls/checkboxesColors.vue +++ b/packages/docs/src/examples/selection-controls/checkboxesColors.vue @@ -2,15 +2,8 @@ <v-card flat> <v-card-text> <v-container fluid> - <v-layout - row - wrap - > - <v-flex - xs12 - sm4 - md4 - > + <v-layout row wrap> + <v-flex xs12 sm4 md4> <v-checkbox v-model="ex4" label="red" @@ -26,11 +19,7 @@ hide-details ></v-checkbox> </v-flex> - <v-flex - xs12 - sm4 - md4 - > + <v-flex xs12 sm4 md4> <v-checkbox v-model="ex4" label="indigo" @@ -46,11 +35,7 @@ hide-details ></v-checkbox> </v-flex> - <v-flex - xs12 - sm4 - md4 - > + <v-flex xs12 sm4 md4> <v-checkbox v-model="ex4" label="orange" @@ -68,16 +53,8 @@ </v-flex> </v-layout> - <v-layout - row - wrap - class="mt-5" - > - <v-flex - xs12 - sm4 - md4 - > + <v-layout row wrap class="mt-5"> + <v-flex xs12 sm4 md4> <v-checkbox v-model="ex4" label="primary" @@ -93,11 +70,7 @@ hide-details ></v-checkbox> </v-flex> - <v-flex - xs12 - sm4 - md4 - > + <v-flex xs12 sm4 md4> <v-checkbox v-model="ex4" label="success" @@ -113,11 +86,7 @@ hide-details ></v-checkbox> </v-flex> - <v-flex - xs12 - sm4 - md4 - > + <v-flex xs12 sm4 md4> <v-checkbox v-model="ex4" label="warning" diff --git a/packages/docs/src/examples/selection-controls/checkboxesInlineTexfield.vue b/packages/docs/src/examples/selection-controls/checkboxesInlineTexfield.vue index d88df274c94..d54b8ecbf7d 100644 --- a/packages/docs/src/examples/selection-controls/checkboxesInlineTexfield.vue +++ b/packages/docs/src/examples/selection-controls/checkboxesInlineTexfield.vue @@ -2,23 +2,12 @@ <v-card> <v-card-text> <v-layout align-center> - <v-checkbox - v-model="includeFiles" - hide-details - class="shrink mr-2" - ></v-checkbox> + <v-checkbox v-model="includeFiles" hide-details class="shrink mr-2"></v-checkbox> <v-text-field label="Include files"></v-text-field> </v-layout> <v-layout align-center> - <v-checkbox - v-model="enabled" - hide-details - class="shrink mr-2" - ></v-checkbox> - <v-text-field - :disabled="!enabled" - label="I only work if you check the box" - ></v-text-field> + <v-checkbox v-model="enabled" hide-details class="shrink mr-2"></v-checkbox> + <v-text-field :disabled="!enabled" label="I only work if you check the box"></v-text-field> </v-layout> </v-card-text> </v-card> diff --git a/packages/docs/src/examples/selection-controls/checkboxesStates.vue b/packages/docs/src/examples/selection-controls/checkboxesStates.vue index af88c64dbc1..a054d9100cc 100644 --- a/packages/docs/src/examples/selection-controls/checkboxesStates.vue +++ b/packages/docs/src/examples/selection-controls/checkboxesStates.vue @@ -1,68 +1,31 @@ <template> <v-container fluid> - <v-layout - row - wrap - class="light--text" - > - <v-flex xs4> - on - </v-flex> - <v-flex xs4> - off - </v-flex> - <v-flex xs4> - indeterminate - </v-flex> + <v-layout row wrap class="light--text"> + <v-flex xs4>on</v-flex> + <v-flex xs4>off</v-flex> + <v-flex xs4>indeterminate</v-flex> </v-layout> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex xs4> - <v-checkbox - input-value="true" - value - ></v-checkbox> + <v-checkbox input-value="true" value></v-checkbox> </v-flex> <v-flex xs4> <v-checkbox value></v-checkbox> </v-flex> <v-flex xs4> - <v-checkbox - value - indeterminate - ></v-checkbox> + <v-checkbox value indeterminate></v-checkbox> </v-flex> </v-layout> - <v-layout - row - wrap - class="light--text" - > - <v-flex xs4> - on disabled - </v-flex> - <v-flex xs4> - off disabled - </v-flex> + <v-layout row wrap class="light--text"> + <v-flex xs4>on disabled</v-flex> + <v-flex xs4>off disabled</v-flex> </v-layout> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex xs4> - <v-checkbox - input-value="true" - value - disabled - ></v-checkbox> + <v-checkbox input-value="true" value disabled></v-checkbox> </v-flex> <v-flex xs4> - <v-checkbox - value - disabled - ></v-checkbox> + <v-checkbox value disabled></v-checkbox> </v-flex> </v-layout> </v-container> diff --git a/packages/docs/src/examples/selection-controls/labelSlot.vue b/packages/docs/src/examples/selection-controls/labelSlot.vue index 6c362e262a2..7433338c5d9 100644 --- a/packages/docs/src/examples/selection-controls/labelSlot.vue +++ b/packages/docs/src/examples/selection-controls/labelSlot.vue @@ -4,14 +4,7 @@ <div slot="label"> I agree that <v-tooltip bottom> - <a - slot="activator" - target="_blank" - href="http://vuetifyjs.com" - @click.stop - > - Vuetify - </a> + <a slot="activator" target="_blank" href="http://vuetifyjs.com" @click.stop>Vuetify</a> Opens in new window </v-tooltip> is awesome @@ -19,33 +12,18 @@ </v-checkbox> <v-radio-group v-model="radios"> - <div slot="label"> - Your favourite <strong>search engine</strong> - </div> + <div slot="label">Your favourite <strong>search engine</strong></div> <v-radio value="Google"> - <div slot="label"> - Of course it's <strong class="success--text"> - Google - </strong> - </div> + <div slot="label">Of course it's <strong class="success--text">Google</strong></div> </v-radio> <v-radio value="Duckduckgo"> - <div slot="label"> - Definitely <strong class="primary--text"> - Duckduckgo - </strong> - </div> + <div slot="label">Definitely <strong class="primary--text">Duckduckgo</strong></div> </v-radio> </v-radio-group> <v-switch v-model="switchMe"> <template slot="label"> - Turn on the progress: <v-progress-circular - :indeterminate="switchMe" - :value="0" - size="24" - class="ml-2" - ></v-progress-circular> + Turn on the progress: <v-progress-circular :indeterminate="switchMe" :value="0" size="24" class="ml-2"></v-progress-circular> </template> </v-switch> </v-container> diff --git a/packages/docs/src/examples/selection-controls/radiosColors.vue b/packages/docs/src/examples/selection-controls/radiosColors.vue index 921cc180068..49379589a1a 100644 --- a/packages/docs/src/examples/selection-controls/radiosColors.vue +++ b/packages/docs/src/examples/selection-controls/radiosColors.vue @@ -2,19 +2,9 @@ <v-card flat> <v-card-text> <v-container fluid> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - md6 - > - <v-radio-group - v-model="ex7" - column - > + <v-layout row wrap> + <v-flex xs12 sm6 md6> + <v-radio-group v-model="ex7" column> <v-radio label="red" color="red" @@ -47,15 +37,8 @@ ></v-radio> </v-radio-group> </v-flex> - <v-flex - xs12 - sm6 - md6 - > - <v-radio-group - v-model="ex8" - column - > + <v-flex xs12 sm6 md6> + <v-radio-group v-model="ex8" column> <v-radio label="primary" color="primary" diff --git a/packages/docs/src/examples/selection-controls/radiosDefault.vue b/packages/docs/src/examples/selection-controls/radiosDefault.vue index 7f0bafe4f66..9bafa9bebb5 100644 --- a/packages/docs/src/examples/selection-controls/radiosDefault.vue +++ b/packages/docs/src/examples/selection-controls/radiosDefault.vue @@ -1,18 +1,9 @@ <template> <v-container fluid> <p>{{ radios || 'null' }}</p> - <v-radio-group - v-model="radios" - :mandatory="false" - > - <v-radio - label="Radio 1" - value="radio-1" - ></v-radio> - <v-radio - label="Radio 2" - value="radio-2" - ></v-radio> + <v-radio-group v-model="radios" :mandatory="false"> + <v-radio label="Radio 1" value="radio-1"></v-radio> + <v-radio label="Radio 2" value="radio-2"></v-radio> </v-radio-group> </v-container> </template> diff --git a/packages/docs/src/examples/selection-controls/radiosDirection.vue b/packages/docs/src/examples/selection-controls/radiosDirection.vue index 63f443122ac..be06c627464 100644 --- a/packages/docs/src/examples/selection-controls/radiosDirection.vue +++ b/packages/docs/src/examples/selection-controls/radiosDirection.vue @@ -1,31 +1,13 @@ <template> <v-container fluid> - <v-radio-group - v-model="column" - column - > - <v-radio - label="Option 1" - value="radio-1" - ></v-radio> - <v-radio - label="Option 2" - value="radio-2" - ></v-radio> + <v-radio-group v-model="column" column> + <v-radio label="Option 1" value="radio-1"></v-radio> + <v-radio label="Option 2" value="radio-2"></v-radio> </v-radio-group> <hr> - <v-radio-group - v-model="row" - row - > - <v-radio - label="Option 1" - value="radio-1" - ></v-radio> - <v-radio - label="Option 2" - value="radio-2" - ></v-radio> + <v-radio-group v-model="row" row> + <v-radio label="Option 1" value="radio-1"></v-radio> + <v-radio label="Option 2" value="radio-2"></v-radio> </v-radio-group> </v-container> </template> diff --git a/packages/docs/src/examples/selection-controls/switchesArray.vue b/packages/docs/src/examples/selection-controls/switchesArray.vue index 01d3710e2c4..c217b690a47 100644 --- a/packages/docs/src/examples/selection-controls/switchesArray.vue +++ b/packages/docs/src/examples/selection-controls/switchesArray.vue @@ -1,16 +1,8 @@ <template> <v-container fluid> <p>{{ people }}</p> - <v-switch - v-model="people" - label="John" - value="John" - ></v-switch> - <v-switch - v-model="people" - label="Jacob" - value="Jacob" - ></v-switch> + <v-switch v-model="people" label="John" value="John"></v-switch> + <v-switch v-model="people" label="Jacob" value="Jacob"></v-switch> </v-container> </template> diff --git a/packages/docs/src/examples/selection-controls/switchesBoolean.vue b/packages/docs/src/examples/selection-controls/switchesBoolean.vue index ec6070cd98c..dfe20e16652 100644 --- a/packages/docs/src/examples/selection-controls/switchesBoolean.vue +++ b/packages/docs/src/examples/selection-controls/switchesBoolean.vue @@ -1,13 +1,7 @@ <template> <v-container fluid> - <v-switch - v-model="switch1" - :label="`Switch 1: ${switch1.toString()}`" - ></v-switch> - <v-switch - v-model="switch2" - :label="`Switch 2: ${switch2.toString()}`" - ></v-switch> + <v-switch :label="`Switch 1: ${switch1.toString()}`" v-model="switch1"></v-switch> + <v-switch :label="`Switch 2: ${switch2.toString()}`" v-model="switch2"></v-switch> </v-container> </template> diff --git a/packages/docs/src/examples/selection-controls/switchesColors.vue b/packages/docs/src/examples/selection-controls/switchesColors.vue index f10b3de7275..54c84c3a393 100644 --- a/packages/docs/src/examples/selection-controls/switchesColors.vue +++ b/packages/docs/src/examples/selection-controls/switchesColors.vue @@ -2,15 +2,8 @@ <v-card flat> <v-card-text> <v-container fluid> - <v-layout - row - wrap - > - <v-flex - xs12 - sm4 - md4 - > + <v-layout row wrap> + <v-flex xs12 sm4 md4> <v-switch v-model="ex11" label="red" @@ -26,11 +19,7 @@ hide-details ></v-switch> </v-flex> - <v-flex - xs12 - sm4 - md4 - > + <v-flex xs12 sm4 md4> <v-switch v-model="ex11" label="indigo" @@ -46,11 +35,7 @@ hide-details ></v-switch> </v-flex> - <v-flex - xs12 - sm4 - md4 - > + <v-flex xs12 sm4 md4> <v-switch v-model="ex11" label="orange" @@ -68,16 +53,8 @@ </v-flex> </v-layout> - <v-layout - row - wrap - class="mt-5" - > - <v-flex - xs12 - sm4 - md4 - > + <v-layout row wrap class="mt-5"> + <v-flex xs12 sm4 md4> <v-switch v-model="ex11" label="primary" @@ -93,11 +70,7 @@ hide-details ></v-switch> </v-flex> - <v-flex - xs12 - sm4 - md4 - > + <v-flex xs12 sm4 md4> <v-switch v-model="ex11" label="success" @@ -113,11 +86,7 @@ hide-details ></v-switch> </v-flex> - <v-flex - xs12 - sm4 - md4 - > + <v-flex xs12 sm4 md4> <v-switch v-model="ex11" label="warning" diff --git a/packages/docs/src/examples/selection-controls/switchesStates.vue b/packages/docs/src/examples/selection-controls/switchesStates.vue index 0228fcf4d77..83286ce41fc 100644 --- a/packages/docs/src/examples/selection-controls/switchesStates.vue +++ b/packages/docs/src/examples/selection-controls/switchesStates.vue @@ -1,53 +1,24 @@ <template> <v-container fluid> - <v-layout - row - wrap - class="dark--text" - > - <v-flex xs6> - on - </v-flex> - <v-flex xs6> - off - </v-flex> + <v-layout row wrap class="dark--text"> + <v-flex xs6>on</v-flex> + <v-flex xs6>off</v-flex> </v-layout> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex xs6> - <v-switch - value - input-value="true" - ></v-switch> + <v-switch value input-value="true"></v-switch> </v-flex> <v-flex xs6> <v-switch></v-switch> </v-flex> </v-layout> - <v-layout - row - wrap - class="dark--text" - > - <v-flex xs6> - on disabled - </v-flex> - <v-flex xs6> - off disabled - </v-flex> + <v-layout row wrap class="dark--text"> + <v-flex xs6>on disabled</v-flex> + <v-flex xs6>off disabled</v-flex> </v-layout> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex xs6> - <v-switch - value - input-value="true" - disabled - ></v-switch> + <v-switch value input-value="true" disabled></v-switch> </v-flex> <v-flex xs6> <v-switch disabled></v-switch> diff --git a/packages/docs/src/examples/selection-controls/usage.vue b/packages/docs/src/examples/selection-controls/usage.vue index 4edd93a0c20..6f346606f9f 100644 --- a/packages/docs/src/examples/selection-controls/usage.vue +++ b/packages/docs/src/examples/selection-controls/usage.vue @@ -1,11 +1,8 @@ <template> - <v-container - fluid - px-0 - > + <v-container fluid px-0> <v-checkbox - v-model="checkbox" :label="`Checkbox 1: ${checkbox.toString()}`" + v-model="checkbox" ></v-checkbox> <v-radio-group v-model="radioGroup"> <v-radio @@ -16,8 +13,8 @@ ></v-radio> </v-radio-group> <v-switch - v-model="switch1" :label="`Switch 1: ${switch1.toString()}`" + v-model="switch1" ></v-switch> </v-container> </template> diff --git a/packages/docs/src/examples/selects/customTextAndValue.vue b/packages/docs/src/examples/selects/customTextAndValue.vue index e3237b21e6f..e9b07259fc7 100644 --- a/packages/docs/src/examples/selects/customTextAndValue.vue +++ b/packages/docs/src/examples/selects/customTextAndValue.vue @@ -1,10 +1,6 @@ <template> <v-container fluid> - <v-layout - row - wrap - align-center - > + <v-layout row wrap align-center> <v-flex xs6> <v-subheader>Custom items</v-subheader> </v-flex> diff --git a/packages/docs/src/examples/selects/icons.vue b/packages/docs/src/examples/selects/icons.vue index f9e5884e478..b976e86d390 100644 --- a/packages/docs/src/examples/selects/icons.vue +++ b/packages/docs/src/examples/selects/icons.vue @@ -1,17 +1,13 @@ <template> <v-container fluid> - <v-layout - row - wrap - align-center - > + <v-layout row wrap align-center> <v-flex xs6> <v-subheader>Prepended icon</v-subheader> </v-flex> <v-flex xs6> <v-select - v-model="e1" :items="states" + v-model="e1" menu-props="auto" label="Select" hide-details @@ -24,8 +20,8 @@ </v-flex> <v-flex xs6> <v-select - v-model="e2" :items="states" + v-model="e2" append-outer-icon="map" menu-props="auto" hide-details diff --git a/packages/docs/src/examples/selects/light.vue b/packages/docs/src/examples/selects/light.vue index 9eed11b1ee7..b1ab25e6048 100644 --- a/packages/docs/src/examples/selects/light.vue +++ b/packages/docs/src/examples/selects/light.vue @@ -8,10 +8,7 @@ align-center wrap > - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-select v-model="value" :items="items" @@ -21,10 +18,7 @@ multiple ></v-select> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-select v-model="value" :items="items" @@ -34,10 +28,7 @@ multiple ></v-select> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-select v-model="value" :items="items" @@ -47,10 +38,7 @@ outline ></v-select> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-select v-model="value" :items="items" diff --git a/packages/docs/src/examples/selects/multiple.vue b/packages/docs/src/examples/selects/multiple.vue index 46ab1413c62..d72ca3b1d2a 100644 --- a/packages/docs/src/examples/selects/multiple.vue +++ b/packages/docs/src/examples/selects/multiple.vue @@ -1,23 +1,13 @@ <template> <v-container fluid> - <v-layout - row - wrap - align-center - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap align-center> + <v-flex xs12 sm6> <v-subheader v-text="'Multiple with persistent hint'"></v-subheader> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-select - v-model="e6" :items="states" + v-model="e6" :menu-props="{ maxHeight: '400' }" label="Select" multiple @@ -26,20 +16,14 @@ ></v-select> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-subheader v-text="'Multiple (Chips) with persistent hint'"></v-subheader> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-select - v-model="e7" :items="states" + v-model="e7" label="Select" multiple chips diff --git a/packages/docs/src/examples/selects/selectionAppearance.vue b/packages/docs/src/examples/selects/selectionAppearance.vue index 9e2be5ac9b6..a7ce0e8acd3 100644 --- a/packages/docs/src/examples/selects/selectionAppearance.vue +++ b/packages/docs/src/examples/selects/selectionAppearance.vue @@ -1,7 +1,7 @@ <template> <v-select - v-model="value" :items="items" + v-model="value" label="Select Item" multiple > @@ -15,9 +15,7 @@ <span v-if="index === 1" class="grey--text caption" - > - (+{{ value.length - 1 }} others) - </span> + >(+{{ value.length - 1 }} others)</span> </template> </v-select> </template> diff --git a/packages/docs/src/examples/selects/slots.vue b/packages/docs/src/examples/selects/slots.vue index 22b5545981a..fae75563a56 100644 --- a/packages/docs/src/examples/selects/slots.vue +++ b/packages/docs/src/examples/selects/slots.vue @@ -11,9 +11,7 @@ @click="toggle" > <v-list-tile-action> - <v-icon :color="selectedFruits.length > 0 ? 'indigo darken-4' : ''"> - {{ icon }} - </v-icon> + <v-icon :color="selectedFruits.length > 0 ? 'indigo darken-4' : ''">{{ icon }}</v-icon> </v-list-tile-action> <v-list-tile-title>Select All</v-list-tile-title> </v-list-tile> diff --git a/packages/docs/src/examples/selects/usage.vue b/packages/docs/src/examples/selects/usage.vue index 631145450aa..6d150d074e8 100644 --- a/packages/docs/src/examples/selects/usage.vue +++ b/packages/docs/src/examples/selects/usage.vue @@ -1,28 +1,14 @@ <template> - <v-container - fluid - grid-list-xl - > - <v-layout - wrap - align-center - > - <v-flex - xs12 - sm6 - d-flex - > + <v-container fluid grid-list-xl> + <v-layout wrap align-center> + <v-flex xs12 sm6 d-flex> <v-select :items="items" label="Standard" ></v-select> </v-flex> - <v-flex - xs12 - sm6 - d-flex - > + <v-flex xs12 sm6 d-flex> <v-select :items="items" box @@ -30,11 +16,7 @@ ></v-select> </v-flex> - <v-flex - xs12 - sm6 - d-flex - > + <v-flex xs12 sm6 d-flex> <v-select :items="items" label="Outline style" @@ -42,11 +24,7 @@ ></v-select> </v-flex> - <v-flex - xs12 - sm6 - d-flex - > + <v-flex xs12 sm6 d-flex> <v-select :items="items" label="Solo field" diff --git a/packages/docs/src/examples/sheets/usage.vue b/packages/docs/src/examples/sheets/usage.vue index a71fc873fef..a65cf732fb7 100644 --- a/packages/docs/src/examples/sheets/usage.vue +++ b/packages/docs/src/examples/sheets/usage.vue @@ -49,6 +49,7 @@ </v-sheet> </v-flex> <v-flex xs12> + <v-sheet class="d-flex" color="red lighten-3" diff --git a/packages/docs/src/examples/sliders/editableNumericValue.vue b/packages/docs/src/examples/sliders/editableNumericValue.vue index 05ef6d87a63..eb3ff68cfd2 100644 --- a/packages/docs/src/examples/sliders/editableNumericValue.vue +++ b/packages/docs/src/examples/sliders/editableNumericValue.vue @@ -48,8 +48,8 @@ <v-flex xs9> <v-slider - v-model="blue" :max="255" + v-model="blue" label="B" ></v-slider> </v-flex> diff --git a/packages/docs/src/examples/sliders/metronome.vue b/packages/docs/src/examples/sliders/metronome.vue index f6d246152a1..72ad2532365 100644 --- a/packages/docs/src/examples/sliders/metronome.vue +++ b/packages/docs/src/examples/sliders/metronome.vue @@ -8,9 +8,7 @@ dense > <v-toolbar-title> - <span class="subheading"> - METRONOME - </span> + <span class="subheading">METRONOME</span> </v-toolbar-title> <v-spacer></v-spacer> <v-btn icon> @@ -28,9 +26,7 @@ class="display-3 font-weight-light" v-text="bpm" ></span> - <span class="subheading font-weight-light mr-1"> - BPM - </span> + <span class="subheading font-weight-light mr-1">BPM</span> <v-fade-transition> <v-avatar v-if="isPlaying" diff --git a/packages/docs/src/examples/sliders/minMax.vue b/packages/docs/src/examples/sliders/minMax.vue index dbbde017fcf..1e88398d032 100644 --- a/packages/docs/src/examples/sliders/minMax.vue +++ b/packages/docs/src/examples/sliders/minMax.vue @@ -1,8 +1,5 @@ <template> - <v-card - flat - color="transparent" - > + <v-card flat color="transparent"> <v-subheader>Min and max default slider</v-subheader> <v-card-text> @@ -15,10 +12,7 @@ ></v-slider> </v-flex> - <v-flex - shrink - style="width: 60px" - > + <v-flex shrink style="width: 60px"> <v-text-field v-model="slider" class="mt-0" diff --git a/packages/docs/src/examples/sliders/range.vue b/packages/docs/src/examples/sliders/range.vue index 769d24fd448..1339d7a639d 100644 --- a/packages/docs/src/examples/sliders/range.vue +++ b/packages/docs/src/examples/sliders/range.vue @@ -1,8 +1,5 @@ <template> - <v-card - flat - color="transparent" - > + <v-card flat color="transparent"> <v-subheader>Default range slider</v-subheader> <v-card-text> @@ -24,10 +21,7 @@ <v-card-text> <v-layout row> - <v-flex - shrink - style="width: 60px" - > + <v-flex shrink style="width: 60px"> <v-text-field v-model="value3[0]" class="mt-0" @@ -46,10 +40,7 @@ ></v-range-slider> </v-flex> - <v-flex - shrink - style="width: 60px" - > + <v-flex shrink style="width: 60px"> <v-text-field v-model="value3[1]" class="mt-0" diff --git a/packages/docs/src/examples/sliders/thumb.vue b/packages/docs/src/examples/sliders/thumb.vue index 24afa64ba4f..5ff1c37ec0b 100644 --- a/packages/docs/src/examples/sliders/thumb.vue +++ b/packages/docs/src/examples/sliders/thumb.vue @@ -1,16 +1,8 @@ <template> - <v-container - fluid - grid-list-lg - > - <v-layout - row - wrap - > + <v-container fluid grid-list-lg> + <v-layout row wrap> <v-flex xs12> - <v-subheader class="pl-0"> - Show thumb when using slider - </v-subheader> + <v-subheader class="pl-0">Show thumb when using slider</v-subheader> <v-slider v-model="slider" thumb-label @@ -18,9 +10,7 @@ </v-flex> <v-flex xs12> - <v-subheader class="pl-0"> - Always show thumb label - </v-subheader> + <v-subheader class="pl-0">Always show thumb label</v-subheader> <v-slider v-model="slider" thumb-label="always" @@ -28,9 +18,7 @@ </v-flex> <v-flex xs12> - <v-subheader class="pl-0"> - Custom thumb color - </v-subheader> + <v-subheader class="pl-0">Custom thumb color</v-subheader> <v-slider v-model="slider" thumb-color="red" @@ -39,9 +27,7 @@ </v-flex> <v-flex xs12> - <v-subheader class="pl-0"> - Custom thumb size - </v-subheader> + <v-subheader class="pl-0">Custom thumb size</v-subheader> <v-slider v-model="slider" :thumb-size="24" @@ -50,9 +36,7 @@ </v-flex> <v-flex xs12> - <v-subheader class="pl-0"> - Always dirty - </v-subheader> + <v-subheader class="pl-0">Always dirty</v-subheader> <v-slider v-model="slider" always-dirty diff --git a/packages/docs/src/examples/sliders/ticks.vue b/packages/docs/src/examples/sliders/ticks.vue index f84e071fb67..286db6208b9 100644 --- a/packages/docs/src/examples/sliders/ticks.vue +++ b/packages/docs/src/examples/sliders/ticks.vue @@ -1,8 +1,5 @@ <template> - <v-card - flat - color="transparent" - > + <v-card flat color="transparent"> <v-subheader>Show ticks when using slider</v-subheader> <v-card-text> diff --git a/packages/docs/src/examples/sliders/validation.vue b/packages/docs/src/examples/sliders/validation.vue index d0110204790..f9d8e4c6a54 100644 --- a/packages/docs/src/examples/sliders/validation.vue +++ b/packages/docs/src/examples/sliders/validation.vue @@ -1,8 +1,5 @@ <template> - <v-card - flat - color="transparent" - > + <v-card flat color="transparent"> <v-subheader>Rules</v-subheader> <v-card-text class="pt-0"> diff --git a/packages/docs/src/examples/snackbars/contextual.vue b/packages/docs/src/examples/snackbars/contextual.vue index 4fcdfc6f8f4..78ec3c46c49 100644 --- a/packages/docs/src/examples/snackbars/contextual.vue +++ b/packages/docs/src/examples/snackbars/contextual.vue @@ -2,29 +2,20 @@ <v-card> <v-card-text> <v-container fluid> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex xs12> - <v-radio-group - v-model="color" - row - > + <v-radio-group v-model="color" row> <v-radio v-for="(colorValue, i) in ['success', 'info', 'error', 'cyan darken-2']" - :key="i" :color="colorValue" + :key="i" :label="colorValue" :value="colorValue" ></v-radio> </v-radio-group> </v-flex> - <v-flex - xs12 - sm3 - > + <v-flex xs12 sm3> <v-checkbox v-model="mode" label="Multi-line (mobile)" @@ -32,10 +23,7 @@ ></v-checkbox> </v-flex> - <v-flex - xs12 - sm3 - > + <v-flex xs12 sm3> <v-checkbox v-model="mode" label="Vertical (mobile)" @@ -43,11 +31,7 @@ ></v-checkbox> </v-flex> - <v-flex - xs12 - sm4 - offset-sm4 - > + <v-flex xs12 sm4 offset-sm4> <v-text-field v-model="text" label="Text" @@ -55,10 +39,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm4 - > + <v-flex xs12 sm4> <v-text-field v-model.number="timeout" label="Timeout" diff --git a/packages/docs/src/examples/snackbars/usage.vue b/packages/docs/src/examples/snackbars/usage.vue index 6f31e458549..a946a826cb5 100644 --- a/packages/docs/src/examples/snackbars/usage.vue +++ b/packages/docs/src/examples/snackbars/usage.vue @@ -2,14 +2,8 @@ <v-card> <v-card-text> <v-container fluid> - <v-layout - row - wrap - > - <v-flex - xs12 - sm3 - > + <v-layout row wrap> + <v-flex xs12 sm3> <v-checkbox v-model="x" label="Left" @@ -17,10 +11,7 @@ ></v-checkbox> </v-flex> - <v-flex - xs6 - sm3 - > + <v-flex xs6 sm3> <v-checkbox v-model="x" label="Right" @@ -28,10 +19,7 @@ ></v-checkbox> </v-flex> - <v-flex - xs6 - sm3 - > + <v-flex xs6 sm3> <v-checkbox v-model="y" label="Top" @@ -39,10 +27,7 @@ ></v-checkbox> </v-flex> - <v-flex - xs6 - sm3 - > + <v-flex xs6 sm3> <v-checkbox v-model="y" label="Bottom" @@ -50,10 +35,7 @@ ></v-checkbox> </v-flex> - <v-flex - xs12 - sm3 - > + <v-flex xs12 sm3> <v-checkbox v-model="mode" label="Multi-line (mobile)" @@ -61,10 +43,7 @@ ></v-checkbox> </v-flex> - <v-flex - xs12 - sm3 - > + <v-flex xs12 sm3> <v-checkbox v-model="mode" label="Vertical (mobile)" @@ -72,11 +51,7 @@ ></v-checkbox> </v-flex> - <v-flex - xs12 - sm4 - offset-sm4 - > + <v-flex xs12 sm4 offset-sm4> <v-text-field v-model="text" label="Text" @@ -84,10 +59,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm4 - > + <v-flex xs12 sm4> <v-text-field v-model.number="timeout" label="Timeout" @@ -95,6 +67,7 @@ ></v-text-field> </v-flex> </v-layout> + </v-container> <v-btn block diff --git a/packages/docs/src/examples/sparklines/dashboardCard.vue b/packages/docs/src/examples/sparklines/dashboardCard.vue index c4641439a89..c7ec2971471 100644 --- a/packages/docs/src/examples/sparklines/dashboardCard.vue +++ b/packages/docs/src/examples/sparklines/dashboardCard.vue @@ -19,12 +19,8 @@ </v-sheet> <v-card-text class="pt-0"> - <div class="title font-weight-light mb-2"> - User Registrations - </div> - <div class="subheading font-weight-light grey--text"> - Last Campaign Performance - </div> + <div class="title font-weight-light mb-2">User Registrations</div> + <div class="subheading font-weight-light grey--text">Last Campaign Performance</div> <v-divider class="my-2"></v-divider> <v-icon class="mr-2" @@ -32,9 +28,7 @@ > mdi-clock </v-icon> - <span class="caption grey--text font-weight-light"> - last registration 26 minutes ago - </span> + <span class="caption grey--text font-weight-light">last registration 26 minutes ago</span> </v-card-text> </v-card> </template> diff --git a/packages/docs/src/examples/sparklines/heartRate.vue b/packages/docs/src/examples/sparklines/heartRate.vue index 8cbd98a20a9..73cb5a221da 100644 --- a/packages/docs/src/examples/sparklines/heartRate.vue +++ b/packages/docs/src/examples/sparklines/heartRate.vue @@ -25,29 +25,23 @@ class="display-2 font-weight-black" v-text="avg || '—'" ></span> - <strong v-if="avg"> - BPM - </strong> + <strong v-if="avg">BPM</strong> </div> </v-layout> <v-spacer></v-spacer> - <v-btn - icon - class="align-self-start" - size="28" - > + <v-btn icon class="align-self-start" size="28"> <v-icon>mdi-arrow-right-thick</v-icon> </v-btn> </v-card-title> <v-sheet color="transparent"> <v-sparkline - :key="String(avg)" :smooth="16" :gradient="['#f72047', '#ffd200', '#1feaea']" :line-width="3" + :key="String(avg)" :value="heartbeats" auto-draw stroke-linecap="round" diff --git a/packages/docs/src/examples/sparklines/playground.vue b/packages/docs/src/examples/sparklines/playground.vue index 41dfba247f0..b024838602f 100644 --- a/packages/docs/src/examples/sparklines/playground.vue +++ b/packages/docs/src/examples/sparklines/playground.vue @@ -17,20 +17,10 @@ xs12 md6 > - <v-layout - fill-height - align-center - > - <v-item-group - v-model="gradient" - mandatory - > + <v-layout fill-height align-center> + <v-item-group v-model="gradient" mandatory> <v-layout> - <v-item - v-for="(gradient, i) in gradients" - :key="i" - :value="gradient" - > + <v-item v-for="(gradient, i) in gradients" :key="i" :value="gradient"> <v-card slot-scope="{ active, toggle }" :style="{ @@ -66,35 +56,12 @@ </v-flex> <v-flex xs6> - <v-layout - fill-height - align-center - > - <v-subheader class="pl-0"> - Linecap - </v-subheader> - <v-btn-toggle - v-model="lineCap" - mandatory - > - <v-btn - flat - value="butt" - > - butt - </v-btn> - <v-btn - flat - value="round" - > - round - </v-btn> - <v-btn - flat - value="square" - > - square - </v-btn> + <v-layout fill-height align-center> + <v-subheader class="pl-0">Linecap</v-subheader> + <v-btn-toggle v-model="lineCap" mandatory> + <v-btn flat value="butt">butt</v-btn> + <v-btn flat value="round">round</v-btn> + <v-btn flat value="square">square</v-btn> </v-btn-toggle> </v-layout> </v-flex> diff --git a/packages/docs/src/examples/sparklines/salesCard.vue b/packages/docs/src/examples/sparklines/salesCard.vue index debc0f34a1e..22453a9a6cb 100644 --- a/packages/docs/src/examples/sparklines/salesCard.vue +++ b/packages/docs/src/examples/sparklines/salesCard.vue @@ -26,20 +26,13 @@ </v-card-text> <v-card-text> - <div class="display-1 font-weight-thin"> - Sales Last 24h - </div> + <div class="display-1 font-weight-thin">Sales Last 24h</div> </v-card-text> <v-divider></v-divider> <v-card-actions class="justify-center"> - <v-btn - block - flat - > - Go to Report - </v-btn> + <v-btn block flat>Go to Report</v-btn> </v-card-actions> </v-card> </template> diff --git a/packages/docs/src/examples/steppers/alternateError.vue b/packages/docs/src/examples/steppers/alternateError.vue index 0f2729c7c51..422571cc851 100644 --- a/packages/docs/src/examples/steppers/alternateError.vue +++ b/packages/docs/src/examples/steppers/alternateError.vue @@ -1,37 +1,22 @@ <template> <v-stepper alt-labels> <v-stepper-header> - <v-stepper-step - step="3" - complete - > - Ad type - </v-stepper-step> + <v-stepper-step step="3" complete>Ad type</v-stepper-step> <v-divider></v-divider> - <v-stepper-step - step="4" - complete - > - Ad style - </v-stepper-step> + <v-stepper-step step="4" complete>Ad style</v-stepper-step> <v-divider></v-divider> - <v-stepper-step - :rules="[() => false]" - step="5" - > + <v-stepper-step :rules="[() => false]" step="5"> Custom channels <small>Alert message</small> </v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="6"> - Get code - </v-stepper-step> + <v-stepper-step step="6">Get code</v-stepper-step> </v-stepper-header> </v-stepper> </template> diff --git a/packages/docs/src/examples/steppers/alternateLabels.vue b/packages/docs/src/examples/steppers/alternateLabels.vue index 6d0e9b31895..fcdbe93ecbe 100644 --- a/packages/docs/src/examples/steppers/alternateLabels.vue +++ b/packages/docs/src/examples/steppers/alternateLabels.vue @@ -2,32 +2,22 @@ <div> <v-stepper alt-labels> <v-stepper-header> - <v-stepper-step step="1"> - Ad unit details - </v-stepper-step> + <v-stepper-step step="1">Ad unit details</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="2"> - Ad sizes - </v-stepper-step> + <v-stepper-step step="2">Ad sizes</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="3"> - Ad templates - </v-stepper-step> + <v-stepper-step step="3">Ad templates</v-stepper-step> </v-stepper-header> </v-stepper> - <v-stepper - alt-labels - class="mt-5" - > + <v-stepper alt-labels class="mt-5"> <v-stepper-header> - <v-stepper-step step="1"> - Ad unit details - </v-stepper-step> + + <v-stepper-step step="1">Ad unit details</v-stepper-step> <v-divider></v-divider> @@ -38,9 +28,7 @@ <v-divider></v-divider> - <v-stepper-step step="3"> - Ad templates - </v-stepper-step> + <v-stepper-step step="3">Ad templates</v-stepper-step> </v-stepper-header> </v-stepper> </div> diff --git a/packages/docs/src/examples/steppers/alternativeError.vue b/packages/docs/src/examples/steppers/alternativeError.vue index 0f2729c7c51..422571cc851 100644 --- a/packages/docs/src/examples/steppers/alternativeError.vue +++ b/packages/docs/src/examples/steppers/alternativeError.vue @@ -1,37 +1,22 @@ <template> <v-stepper alt-labels> <v-stepper-header> - <v-stepper-step - step="3" - complete - > - Ad type - </v-stepper-step> + <v-stepper-step step="3" complete>Ad type</v-stepper-step> <v-divider></v-divider> - <v-stepper-step - step="4" - complete - > - Ad style - </v-stepper-step> + <v-stepper-step step="4" complete>Ad style</v-stepper-step> <v-divider></v-divider> - <v-stepper-step - :rules="[() => false]" - step="5" - > + <v-stepper-step :rules="[() => false]" step="5"> Custom channels <small>Alert message</small> </v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="6"> - Get code - </v-stepper-step> + <v-stepper-step step="6">Get code</v-stepper-step> </v-stepper-header> </v-stepper> </template> diff --git a/packages/docs/src/examples/steppers/dynamic.vue b/packages/docs/src/examples/steppers/dynamic.vue index af98d640bbf..db733af3117 100644 --- a/packages/docs/src/examples/steppers/dynamic.vue +++ b/packages/docs/src/examples/steppers/dynamic.vue @@ -20,8 +20,8 @@ <v-stepper-header> <template v-for="n in steps"> <v-stepper-step - :key="`${n}-step`" :complete="e1 > n" + :key="`${n}-step`" :step="n" editable > @@ -54,9 +54,7 @@ Continue </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> </v-stepper-items> </v-stepper> diff --git a/packages/docs/src/examples/steppers/editable.vue b/packages/docs/src/examples/steppers/editable.vue index 7a56e9882fb..55a680b81cd 100644 --- a/packages/docs/src/examples/steppers/editable.vue +++ b/packages/docs/src/examples/steppers/editable.vue @@ -14,9 +14,7 @@ <v-stepper-step complete step="2" - > - Create an ad group - </v-stepper-step> + >Create an ad group</v-stepper-step> <v-divider></v-divider> diff --git a/packages/docs/src/examples/steppers/error.vue b/packages/docs/src/examples/steppers/error.vue index b32a143026d..f85bee3225d 100644 --- a/packages/docs/src/examples/steppers/error.vue +++ b/packages/docs/src/examples/steppers/error.vue @@ -1,25 +1,18 @@ <template> <v-stepper> <v-stepper-header> - <v-stepper-step step="1"> - Ad unit details - </v-stepper-step> + <v-stepper-step step="1">Ad unit details</v-stepper-step> <v-divider></v-divider> - <v-stepper-step - :rules="[() => false]" - step="2" - > + <v-stepper-step :rules="[() => false]" step="2"> Ad templates <small>Alert message</small> </v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="3"> - Ad sizes - </v-stepper-step> + <v-stepper-step step="3">Ad sizes</v-stepper-step> </v-stepper-header> </v-stepper> </template> diff --git a/packages/docs/src/examples/steppers/horizontal.vue b/packages/docs/src/examples/steppers/horizontal.vue index 62815c5a61b..8314de860a9 100644 --- a/packages/docs/src/examples/steppers/horizontal.vue +++ b/packages/docs/src/examples/steppers/horizontal.vue @@ -1,21 +1,15 @@ <template> <v-stepper value="1"> <v-stepper-header> - <v-stepper-step step="1"> - Select campaign settings - </v-stepper-step> + <v-stepper-step step="1">Select campaign settings</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="2"> - Create an ad group - </v-stepper-step> + <v-stepper-step step="2">Create an ad group</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="3"> - Create an ad - </v-stepper-step> + <v-stepper-step step="3">Create an ad</v-stepper-step> </v-stepper-header> </v-stepper> </template> diff --git a/packages/docs/src/examples/steppers/linear.vue b/packages/docs/src/examples/steppers/linear.vue index 05bbbd25b54..88d3dd77daa 100644 --- a/packages/docs/src/examples/steppers/linear.vue +++ b/packages/docs/src/examples/steppers/linear.vue @@ -2,76 +2,43 @@ <div> <v-stepper> <v-stepper-header> - <v-stepper-step step="1"> - Select campaign settings - </v-stepper-step> + <v-stepper-step step="1">Select campaign settings</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="2"> - Create an ad group - </v-stepper-step> + <v-stepper-step step="2">Create an ad group</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="3"> - Create an ad - </v-stepper-step> + <v-stepper-step step="3">Create an ad</v-stepper-step> </v-stepper-header> </v-stepper> - <v-stepper - value="2" - class="mt-5" - > + <v-stepper value="2" class="mt-5"> <v-stepper-header> - <v-stepper-step - step="1" - complete - > - Select campaign settings - </v-stepper-step> + <v-stepper-step step="1" complete>Select campaign settings</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="2"> - Create an ad group - </v-stepper-step> + <v-stepper-step step="2">Create an ad group</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="3"> - Create an ad - </v-stepper-step> + <v-stepper-step step="3">Create an ad</v-stepper-step> </v-stepper-header> </v-stepper> - <v-stepper - value="3" - class="mt-5" - > + <v-stepper value="3" class="mt-5"> <v-stepper-header> - <v-stepper-step - step="1" - complete - > - Select campaign settings - </v-stepper-step> + <v-stepper-step step="1" complete>Select campaign settings</v-stepper-step> <v-divider></v-divider> - <v-stepper-step - step="2" - complete - > - Create an ad group - </v-stepper-step> + <v-stepper-step step="2" complete>Create an ad group</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="3"> - Create an ad - </v-stepper-step> + <v-stepper-step step="3">Create an ad</v-stepper-step> </v-stepper-header> </v-stepper> </div> diff --git a/packages/docs/src/examples/steppers/nonEditable.vue b/packages/docs/src/examples/steppers/nonEditable.vue index 0ae228626b8..c692bef438c 100644 --- a/packages/docs/src/examples/steppers/nonEditable.vue +++ b/packages/docs/src/examples/steppers/nonEditable.vue @@ -1,24 +1,15 @@ <template> <v-stepper value="2"> <v-stepper-header> - <v-stepper-step - step="1" - complete - > - Select campaign settings - </v-stepper-step> + <v-stepper-step step="1" complete>Select campaign settings</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="2"> - Create an ad group - </v-stepper-step> + <v-stepper-step step="2">Create an ad group</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="3"> - Create an ad - </v-stepper-step> + <v-stepper-step step="3">Create an ad</v-stepper-step> </v-stepper-header> </v-stepper> </template> diff --git a/packages/docs/src/examples/steppers/optional.vue b/packages/docs/src/examples/steppers/optional.vue index 252b8d5d00f..d4b8d72e90c 100644 --- a/packages/docs/src/examples/steppers/optional.vue +++ b/packages/docs/src/examples/steppers/optional.vue @@ -2,9 +2,7 @@ <div> <v-stepper value="1"> <v-stepper-header> - <v-stepper-step step="1"> - Select campaign settings - </v-stepper-step> + <v-stepper-step step="1">Select campaign settings</v-stepper-step> <v-divider></v-divider> @@ -15,23 +13,13 @@ <v-divider></v-divider> - <v-stepper-step step="3"> - Create an ad - </v-stepper-step> + <v-stepper-step step="3">Create an ad</v-stepper-step> </v-stepper-header> </v-stepper> - <v-stepper - value="2" - class="mt-5" - > + <v-stepper value="2" class="mt-5"> <v-stepper-header> - <v-stepper-step - step="1" - complete - > - Select campaign settings - </v-stepper-step> + <v-stepper-step step="1" complete>Select campaign settings</v-stepper-step> <v-divider></v-divider> @@ -42,9 +30,7 @@ <v-divider></v-divider> - <v-stepper-step step="3"> - Create an ad - </v-stepper-step> + <v-stepper-step step="3">Create an ad</v-stepper-step> </v-stepper-header> </v-stepper> </div> diff --git a/packages/docs/src/examples/steppers/usage.vue b/packages/docs/src/examples/steppers/usage.vue index dcd6dfec88e..ef8b9095972 100644 --- a/packages/docs/src/examples/steppers/usage.vue +++ b/packages/docs/src/examples/steppers/usage.vue @@ -1,27 +1,15 @@ <template> <v-stepper v-model="e1"> <v-stepper-header> - <v-stepper-step - :complete="e1 > 1" - step="1" - > - Name of step 1 - </v-stepper-step> + <v-stepper-step :complete="e1 > 1" step="1">Name of step 1</v-stepper-step> <v-divider></v-divider> - <v-stepper-step - :complete="e1 > 2" - step="2" - > - Name of step 2 - </v-stepper-step> + <v-stepper-step :complete="e1 > 2" step="2">Name of step 2</v-stepper-step> <v-divider></v-divider> - <v-stepper-step step="3"> - Name of step 3 - </v-stepper-step> + <v-stepper-step step="3">Name of step 3</v-stepper-step> </v-stepper-header> <v-stepper-items> @@ -39,9 +27,7 @@ Continue </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> <v-stepper-content step="2"> @@ -58,9 +44,7 @@ Continue </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> <v-stepper-content step="3"> @@ -77,9 +61,7 @@ Continue </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> </v-stepper-items> </v-stepper> diff --git a/packages/docs/src/examples/steppers/vertical.vue b/packages/docs/src/examples/steppers/vertical.vue index a69ea8be451..bd911f8f9c3 100644 --- a/packages/docs/src/examples/steppers/vertical.vue +++ b/packages/docs/src/examples/steppers/vertical.vue @@ -1,99 +1,37 @@ <template> - <v-stepper - v-model="e6" - vertical - > - <v-stepper-step - :complete="e6 > 1" - step="1" - > + <v-stepper v-model="e6" vertical> + <v-stepper-step :complete="e6 > 1" step="1"> Select an app <small>Summarize if needed</small> </v-stepper-step> <v-stepper-content step="1"> - <v-card - color="grey lighten-1" - class="mb-5" - height="200px" - ></v-card> - <v-btn - color="primary" - @click="e6 = 2" - > - Continue - </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-card color="grey lighten-1" class="mb-5" height="200px"></v-card> + <v-btn color="primary" @click="e6 = 2">Continue</v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> - <v-stepper-step - :complete="e6 > 2" - step="2" - > - Configure analytics for this app - </v-stepper-step> + <v-stepper-step :complete="e6 > 2" step="2">Configure analytics for this app</v-stepper-step> <v-stepper-content step="2"> - <v-card - color="grey lighten-1" - class="mb-5" - height="200px" - ></v-card> - <v-btn - color="primary" - @click="e6 = 3" - > - Continue - </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-card color="grey lighten-1" class="mb-5" height="200px"></v-card> + <v-btn color="primary" @click="e6 = 3">Continue</v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> - <v-stepper-step - :complete="e6 > 3" - step="3" - > - Select an ad format and name ad unit - </v-stepper-step> + <v-stepper-step :complete="e6 > 3" step="3">Select an ad format and name ad unit</v-stepper-step> <v-stepper-content step="3"> - <v-card - color="grey lighten-1" - class="mb-5" - height="200px" - ></v-card> - <v-btn - color="primary" - @click="e6 = 4" - > - Continue - </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-card color="grey lighten-1" class="mb-5" height="200px"></v-card> + <v-btn color="primary" @click="e6 = 4">Continue</v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> - <v-stepper-step step="4"> - View setup instructions - </v-stepper-step> + <v-stepper-step step="4">View setup instructions</v-stepper-step> <v-stepper-content step="4"> - <v-card - color="grey lighten-1" - class="mb-5" - height="200px" - ></v-card> - <v-btn - color="primary" - @click="e6 = 1" - > - Continue - </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-card color="grey lighten-1" class="mb-5" height="200px"></v-card> + <v-btn color="primary" @click="e6 = 1">Continue</v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> </v-stepper> </template> diff --git a/packages/docs/src/examples/steppers/verticalError.vue b/packages/docs/src/examples/steppers/verticalError.vue index f044544d17b..cb5b26edd68 100644 --- a/packages/docs/src/examples/steppers/verticalError.vue +++ b/packages/docs/src/examples/steppers/verticalError.vue @@ -1,100 +1,40 @@ <template> - <v-stepper - v-model="e13" - vertical - > - <v-stepper-step - step="1" - complete - > + <v-stepper v-model="e13" vertical> + <v-stepper-step step="1" complete> Name of step 1 </v-stepper-step> <v-stepper-content step="1"> - <v-card - color="grey lighten-1" - class="mb-5" - height="200px" - ></v-card> - <v-btn - color="primary" - @click="e13 = 2" - > - Continue - </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-card color="grey lighten-1" class="mb-5" height="200px"></v-card> + <v-btn color="primary" @click="e13 = 2">Continue</v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> - <v-stepper-step - step="2" - complete - > - Name of step 2 - </v-stepper-step> + <v-stepper-step step="2" complete>Name of step 2</v-stepper-step> <v-stepper-content step="2"> - <v-card - color="grey lighten-1" - class="mb-5" - height="200px" - ></v-card> - <v-btn - color="primary" - @click="e13 = 3" - > - Continue - </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-card color="grey lighten-1" class="mb-5" height="200px"></v-card> + <v-btn color="primary" @click="e13 = 3">Continue</v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> - <v-stepper-step - :rules="[() => false]" - step="3" - > + <v-stepper-step :rules="[() => false]" step="3"> Ad templates <small>Alert message</small> </v-stepper-step> <v-stepper-content step="3"> - <v-card - color="grey lighten-1" - class="mb-5" - height="200px" - ></v-card> - <v-btn - color="primary" - @click="e13 = 4" - > - Continue - </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-card color="grey lighten-1" class="mb-5" height="200px"></v-card> + <v-btn color="primary" @click="e13 = 4">Continue</v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> - <v-stepper-step step="4"> - View setup instructions - </v-stepper-step> + <v-stepper-step step="4">View setup instructions</v-stepper-step> <v-stepper-content step="4"> - <v-card - color="grey lighten-1" - class="mb-5" - height="200px" - ></v-card> - <v-btn - color="primary" - @click="e13 = 1" - > - Continue - </v-btn> - <v-btn flat> - Cancel - </v-btn> + <v-card color="grey lighten-1" class="mb-5" height="200px"></v-card> + <v-btn color="primary" @click="e13 = 1">Continue</v-btn> + <v-btn flat>Cancel</v-btn> </v-stepper-content> </v-stepper> </template> diff --git a/packages/docs/src/examples/subheaders/grid.vue b/packages/docs/src/examples/subheaders/grid.vue index 6122f5e0651..3dad90158b6 100644 --- a/packages/docs/src/examples/subheaders/grid.vue +++ b/packages/docs/src/examples/subheaders/grid.vue @@ -1,49 +1,24 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="white" - flat - > - <v-btn - icon - light - > - <v-icon color="grey darken-2"> - arrow_back - </v-icon> + <v-toolbar color="white" flat> + <v-btn icon light> + <v-icon color="grey darken-2">arrow_back</v-icon> </v-btn> - <v-toolbar-title class="grey--text text--darken-4"> - Albums - </v-toolbar-title> + <v-toolbar-title class="grey--text text--darken-4">Albums</v-toolbar-title> <v-spacer></v-spacer> - <v-btn - icon - light - > - <v-icon color="grey darken-2"> - search - </v-icon> + <v-btn icon light> + <v-icon color="grey darken-2">search</v-icon> </v-btn> </v-toolbar> <v-subheader>May</v-subheader> - <v-container - fluid - grid-list-xs - > - <v-layout - row - wrap - > + <v-container fluid grid-list-xs> + <v-layout row wrap> <v-flex v-for="i in 6" :key="i" @@ -61,14 +36,8 @@ </v-container> <v-subheader>June</v-subheader> - <v-container - fluid - grid-list-xs - > - <v-layout - row - wrap - > + <v-container fluid grid-list-xs> + <v-layout row wrap> <v-flex v-for="i in 6" :key="i" diff --git a/packages/docs/src/examples/subheaders/menu.vue b/packages/docs/src/examples/subheaders/menu.vue index e65b5947261..fb811fb372e 100644 --- a/packages/docs/src/examples/subheaders/menu.vue +++ b/packages/docs/src/examples/subheaders/menu.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="teal" - dark - > + <v-toolbar color="teal" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Manage</v-toolbar-title> diff --git a/packages/docs/src/examples/subheaders/social.vue b/packages/docs/src/examples/subheaders/social.vue index 0fcf7f20074..ec6c74ed8d1 100644 --- a/packages/docs/src/examples/subheaders/social.vue +++ b/packages/docs/src/examples/subheaders/social.vue @@ -28,10 +28,7 @@ > <v-subheader>{{ type }}</v-subheader> - <v-layout - row - wrap - > + <v-layout row wrap> <v-spacer></v-spacer> <v-flex v-for="card in cards" diff --git a/packages/docs/src/examples/subheaders/usage.vue b/packages/docs/src/examples/subheaders/usage.vue index 5b3e5a5cbab..97e0d2042c5 100644 --- a/packages/docs/src/examples/subheaders/usage.vue +++ b/packages/docs/src/examples/subheaders/usage.vue @@ -1,15 +1,8 @@ <template> <v-layout row> - <v-flex - xs12 - sm6 - offset-sm3 - > + <v-flex xs12 sm6 offset-sm3> <v-card> - <v-toolbar - color="cyan" - dark - > + <v-toolbar color="cyan" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Inbox</v-toolbar-title> <v-spacer></v-spacer> @@ -29,8 +22,8 @@ <v-divider v-else-if="item.divider" - :key="index" :inset="item.inset" + :key="index" ></v-divider> <v-list-tile diff --git a/packages/docs/src/examples/tabs/alignWithTitle.vue b/packages/docs/src/examples/tabs/alignWithTitle.vue index 5dfb308c095..63ccfaabb48 100644 --- a/packages/docs/src/examples/tabs/alignWithTitle.vue +++ b/packages/docs/src/examples/tabs/alignWithTitle.vue @@ -1,10 +1,6 @@ <template> <div> - <v-toolbar - color="cyan" - dark - tabs - > + <v-toolbar color="cyan" dark tabs> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Page title</v-toolbar-title> @@ -27,20 +23,14 @@ > <v-tabs-slider color="yellow"></v-tabs-slider> - <v-tab - v-for="item in items" - :key="item" - > + <v-tab v-for="item in items" :key="item"> {{ item }} </v-tab> </v-tabs> </v-toolbar> <v-tabs-items v-model="tab"> - <v-tab-item - v-for="item in items" - :key="item" - > + <v-tab-item v-for="item in items" :key="item"> <v-card flat> <v-card-text>{{ text }}</v-card-text> </v-card> diff --git a/packages/docs/src/examples/tabs/content.vue b/packages/docs/src/examples/tabs/content.vue index df90be219bc..4d0493cba91 100644 --- a/packages/docs/src/examples/tabs/content.vue +++ b/packages/docs/src/examples/tabs/content.vue @@ -39,8 +39,8 @@ <v-tabs-items v-model="model"> <v-tab-item v-for="i in 3" - :key="i" :value="`tab-${i}`" + :key="i" > <v-card flat> <v-card-text v-text="text"></v-card-text> diff --git a/packages/docs/src/examples/tabs/desktop.vue b/packages/docs/src/examples/tabs/desktop.vue index 4f1ae2370a1..037d0f2db7d 100644 --- a/packages/docs/src/examples/tabs/desktop.vue +++ b/packages/docs/src/examples/tabs/desktop.vue @@ -22,37 +22,25 @@ color="transparent" > <v-tabs-slider></v-tabs-slider> - <v-tab - href="#mobile-tabs-5-1" - class="primary--text" - > + <v-tab href="#mobile-tabs-5-1" class="primary--text"> <v-icon>phone</v-icon> </v-tab> - <v-tab - href="#mobile-tabs-5-2" - class="primary--text" - > + <v-tab href="#mobile-tabs-5-2" class="primary--text"> <v-icon>favorite</v-icon> </v-tab> - <v-tab - href="#mobile-tabs-5-3" - class="primary--text" - > + <v-tab href="#mobile-tabs-5-3" class="primary--text"> <v-icon>account_box</v-icon> </v-tab> </v-tabs> </v-toolbar> - <v-tabs-items - v-model="tabs" - class="white elevation-1" - > + <v-tabs-items v-model="tabs" class="white elevation-1"> <v-tab-item v-for="i in 3" - :key="i" :value="'mobile-tabs-5-' + i" + :key="i" > <v-card> <v-card-text>{{ text }}</v-card-text> diff --git a/packages/docs/src/examples/tabs/icons.vue b/packages/docs/src/examples/tabs/icons.vue index 531f41bfa8a..4c945a8b186 100644 --- a/packages/docs/src/examples/tabs/icons.vue +++ b/packages/docs/src/examples/tabs/icons.vue @@ -9,8 +9,8 @@ <v-tabs-slider color="yellow"></v-tabs-slider> <v-tab v-for="i in 30" - :key="i" :href="'#tab-' + i" + :key="i" > Item {{ i }} </v-tab> @@ -18,8 +18,8 @@ <v-tabs-items> <v-tab-item v-for="i in 30" - :key="i" :value="'tab-' + i" + :key="i" > <v-card flat> <v-card-text>{{ text }}</v-card-text> diff --git a/packages/docs/src/examples/tabs/iconsAndText.vue b/packages/docs/src/examples/tabs/iconsAndText.vue index 97760a1af1f..4623415df97 100644 --- a/packages/docs/src/examples/tabs/iconsAndText.vue +++ b/packages/docs/src/examples/tabs/iconsAndText.vue @@ -24,8 +24,8 @@ <v-tab-item v-for="i in 3" - :key="i" :value="'tab-' + i" + :key="i" > <v-card flat> <v-card-text>{{ text }}</v-card-text> diff --git a/packages/docs/src/examples/tabs/overflowToMenu.vue b/packages/docs/src/examples/tabs/overflowToMenu.vue index 450c7863c81..4a1174de500 100644 --- a/packages/docs/src/examples/tabs/overflowToMenu.vue +++ b/packages/docs/src/examples/tabs/overflowToMenu.vue @@ -28,8 +28,8 @@ > <v-tab v-for="item in items" - :key="item" :href="'#tab-' + item" + :key="item" > {{ item }} </v-tab> @@ -40,10 +40,7 @@ class="v-tabs__div" left > - <a - slot="activator" - class="v-tabs__item" - > + <a slot="activator" class="v-tabs__item"> more <v-icon>arrow_drop_down</v-icon> </a> @@ -64,8 +61,8 @@ <v-tabs-items v-model="currentItem"> <v-tab-item v-for="item in items.concat(more)" - :key="item" :value="'tab-' + item" + :key="item" > <v-card flat> <v-card-text> diff --git a/packages/docs/src/examples/tabs/pagination.vue b/packages/docs/src/examples/tabs/pagination.vue index 682ce3edfb7..f9fbf825a49 100644 --- a/packages/docs/src/examples/tabs/pagination.vue +++ b/packages/docs/src/examples/tabs/pagination.vue @@ -8,8 +8,8 @@ <v-tab v-for="i in 30" - :key="i" :href="'#tab-' + i" + :key="i" > Item {{ i }} </v-tab> @@ -17,8 +17,8 @@ <v-tabs-items> <v-tab-item v-for="i in 30" - :key="i" :value="'tab-' + i" + :key="i" > <v-card flat> <v-card-text>{{ text }}</v-card-text> diff --git a/packages/docs/src/examples/tabs/usage.vue b/packages/docs/src/examples/tabs/usage.vue index d6d8640b3d4..50d06e75fb8 100644 --- a/packages/docs/src/examples/tabs/usage.vue +++ b/packages/docs/src/examples/tabs/usage.vue @@ -12,6 +12,7 @@ ripple > Item {{ n }} + </v-tab> <v-tab-item v-for="n in 3" @@ -24,9 +25,7 @@ </v-tabs> <div class="text-xs-center mt-3"> - <v-btn @click="next"> - next tab - </v-btn> + <v-btn @click="next">next tab</v-btn> </div> </div> </template> diff --git a/packages/docs/src/examples/text-fields/box.vue b/packages/docs/src/examples/text-fields/box.vue index d0f4a25abdd..7927c01ad43 100644 --- a/packages/docs/src/examples/text-fields/box.vue +++ b/packages/docs/src/examples/text-fields/box.vue @@ -1,14 +1,9 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> <v-text-field v-model="first" label="First Name" @@ -16,16 +11,14 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="last" label="Last Name" box ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/characterCounter.vue b/packages/docs/src/examples/text-fields/characterCounter.vue index 5d94c53bfe3..8c0fef51a53 100644 --- a/packages/docs/src/examples/text-fields/characterCounter.vue +++ b/packages/docs/src/examples/text-fields/characterCounter.vue @@ -1,14 +1,9 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> <v-text-field v-model="title" :rules="rules" @@ -18,10 +13,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="description" :rules="rules" @@ -32,10 +24,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="title" :rules="rules" @@ -45,10 +34,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="title" :rules="rules" @@ -57,6 +43,7 @@ outline ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/clearable.vue b/packages/docs/src/examples/text-fields/clearable.vue index 18b6ba77a4d..517b9317004 100644 --- a/packages/docs/src/examples/text-fields/clearable.vue +++ b/packages/docs/src/examples/text-fields/clearable.vue @@ -1,14 +1,9 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> <v-text-field v-model="message1" label="Regular" @@ -16,10 +11,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="message2" solo @@ -28,10 +20,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="message3" box @@ -40,10 +29,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="message4" label="Outline" @@ -51,6 +37,7 @@ clearable ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/customColors.vue b/packages/docs/src/examples/text-fields/customColors.vue index e217bf0d92d..54bf894d1d6 100644 --- a/packages/docs/src/examples/text-fields/customColors.vue +++ b/packages/docs/src/examples/text-fields/customColors.vue @@ -8,23 +8,12 @@ color="success" > <span>Registration successful!</span> - <v-icon dark> - check_circle - </v-icon> + <v-icon dark>check_circle</v-icon> </v-snackbar> - <v-form - ref="form" - @submit.prevent="submit" - > - <v-container - grid-list-xl - fluid - > + <v-form ref="form" @submit.prevent="submit"> + <v-container grid-list-xl fluid> <v-layout wrap> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="form.first" :rules="rules.name" @@ -33,10 +22,7 @@ required ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="form.last" :rules="rules.name" @@ -55,10 +41,7 @@ </div> </v-textarea> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-select v-model="form.favoriteAnimal" :items="animals" @@ -68,10 +51,7 @@ required ></v-select> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-slider v-model="form.age" :rules="rules.age" @@ -88,59 +68,31 @@ v-model="form.terms" color="green" > - <div - slot="label" - @click.stop="" - > + <div slot="label" @click.stop=""> Do you accept the - <a - href="javascript:;" - @click.stop="terms = true" - > - terms - </a> + <a href="javascript:;" @click.stop="terms = true">terms</a> and - <a - href="javascript:;" - @click.stop="conditions = true" - > - conditions? - </a> + <a href="javascript:;" @click.stop="conditions = true">conditions?</a> </div> </v-checkbox> </v-flex> </v-layout> </v-container> <v-card-actions> - <v-btn - flat - @click="resetForm" - > - Cancel - </v-btn> + <v-btn flat @click="resetForm">Cancel</v-btn> <v-spacer></v-spacer> <v-btn :disabled="!formIsValid" flat color="primary" type="submit" - > - Register - </v-btn> + >Register</v-btn> </v-card-actions> </v-form> - <v-dialog - v-model="terms" - width="70%" - > + <v-dialog v-model="terms" width="70%"> <v-card> - <v-card-title class="title"> - Terms - </v-card-title> - <v-card-text - v-for="n in 5" - :key="n" - > + <v-card-title class="title">Terms</v-card-title> + <v-card-text v-for="n in 5" :key="n"> {{ content }} </v-card-text> <v-card-actions> @@ -149,24 +101,14 @@ flat color="purple" @click="terms = false" - > - Ok - </v-btn> + >Ok</v-btn> </v-card-actions> </v-card> </v-dialog> - <v-dialog - v-model="conditions" - width="70%" - > + <v-dialog v-model="conditions" width="70%"> <v-card> - <v-card-title class="title"> - Conditions - </v-card-title> - <v-card-text - v-for="n in 5" - :key="n" - > + <v-card-title class="title">Conditions</v-card-title> + <v-card-text v-for="n in 5" :key="n"> {{ content }} </v-card-text> <v-card-actions> @@ -175,9 +117,7 @@ flat color="purple" @click="conditions = false" - > - Ok - </v-btn> + >Ok</v-btn> </v-card-actions> </v-card> </v-dialog> diff --git a/packages/docs/src/examples/text-fields/customValidation.vue b/packages/docs/src/examples/text-fields/customValidation.vue index 29d5f91871c..aaf51ac965e 100644 --- a/packages/docs/src/examples/text-fields/customValidation.vue +++ b/packages/docs/src/examples/text-fields/customValidation.vue @@ -1,11 +1,6 @@ <template> <v-layout justify-center> - <v-flex - xs12 - sm10 - md8 - lg6 - > + <v-flex xs12 sm10 md8 lg6> <v-card ref="form"> <v-card-text> <v-text-field @@ -19,12 +14,12 @@ ></v-text-field> <v-text-field ref="address" - v-model="address" :rules="[ () => !!address || 'This field is required', () => !!address && address.length <= 25 || 'Address must be less than 25 characters', addressCheck ]" + v-model="address" label="Address Line" placeholder="Snowy Rock Pl" counter="25" @@ -32,8 +27,8 @@ ></v-text-field> <v-text-field ref="city" - v-model="city" :rules="[() => !!city || 'This field is required', addressCheck]" + v-model="city" label="City" placeholder="El Paso" required @@ -48,17 +43,17 @@ ></v-text-field> <v-text-field ref="zip" - v-model="zip" :rules="[() => !!zip || 'This field is required']" + v-model="zip" label="ZIP / Postal Code" required placeholder="79938" ></v-text-field> <v-autocomplete ref="country" - v-model="country" :rules="[() => !!country || 'This field is required']" :items="countries" + v-model="country" label="Country" placeholder="Select..." required @@ -66,9 +61,7 @@ </v-card-text> <v-divider class="mt-5"></v-divider> <v-card-actions> - <v-btn flat> - Cancel - </v-btn> + <v-btn flat>Cancel</v-btn> <v-spacer></v-spacer> <v-slide-x-reverse-transition> <v-tooltip @@ -86,13 +79,7 @@ <span>Refresh form</span> </v-tooltip> </v-slide-x-reverse-transition> - <v-btn - color="primary" - flat - @click="submit" - > - Submit - </v-btn> + <v-btn color="primary" flat @click="submit">Submit</v-btn> </v-card-actions> </v-card> </v-flex> diff --git a/packages/docs/src/examples/text-fields/disabledAndReadonly.vue b/packages/docs/src/examples/text-fields/disabledAndReadonly.vue index 4ec6537f5e9..a1dbb99b7db 100644 --- a/packages/docs/src/examples/text-fields/disabledAndReadonly.vue +++ b/packages/docs/src/examples/text-fields/disabledAndReadonly.vue @@ -1,14 +1,9 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> <v-text-field value="John Doe" label="Regular" @@ -16,10 +11,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field value="John Doe" label="Regular" @@ -27,10 +19,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field value="John Doe" label="Solo" @@ -39,10 +28,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field value="John Doe" label="Solo" @@ -51,10 +37,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field value="John Doe" label="Box" @@ -63,10 +46,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field value="John Doe" label="Box" @@ -75,10 +55,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field value="John Doe" label="Outline" @@ -87,10 +64,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field value="John Doe" label="Outline" @@ -98,6 +72,7 @@ readonly ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/hint.vue b/packages/docs/src/examples/text-fields/hint.vue index 30fa90ac7b8..3c9cfda0c45 100644 --- a/packages/docs/src/examples/text-fields/hint.vue +++ b/packages/docs/src/examples/text-fields/hint.vue @@ -1,14 +1,9 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> <v-text-field label="Your product or service" value="Grocery delivery" @@ -16,10 +11,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field label="Your landing page" hint="www.example.com/page" @@ -27,10 +19,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field label="Your product or service" value="Grocery delivery" @@ -39,10 +28,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field label="Your landing page" hint="www.example.com/page" @@ -51,10 +37,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field label="Your product or service" value="Grocery delivery" @@ -63,10 +46,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field label="Your landing page" hint="www.example.com/page" @@ -74,6 +54,7 @@ outline ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/icon.vue b/packages/docs/src/examples/text-fields/icon.vue index f9602ac2d66..74296b12d6e 100644 --- a/packages/docs/src/examples/text-fields/icon.vue +++ b/packages/docs/src/examples/text-fields/icon.vue @@ -1,14 +1,10 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> + <v-text-field label="Prepend" prepend-icon="place" @@ -23,12 +19,11 @@ label="Append outer" append-outer-icon="place" ></v-text-field> + </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> + <v-text-field solo label="Prepend" @@ -46,12 +41,11 @@ label="Append outer" append-outer-icon="place" ></v-text-field> + </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> + <v-text-field box label="Prepend" @@ -69,12 +63,11 @@ label="Append outer" append-outer-icon="place" ></v-text-field> + </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> + <v-text-field outline label="Prepend" @@ -92,7 +85,9 @@ label="Append outer" append-outer-icon="place" ></v-text-field> + </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/iconEvents.vue b/packages/docs/src/examples/text-fields/iconEvents.vue index 4b13a1ed2f8..97dc932367f 100644 --- a/packages/docs/src/examples/text-fields/iconEvents.vue +++ b/packages/docs/src/examples/text-fields/iconEvents.vue @@ -1,10 +1,8 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > + <v-layout row wrap> + <v-flex xs12> <v-text-field v-model="message" @@ -22,6 +20,7 @@ @click:clear="clearMessage" ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/iconSlots.vue b/packages/docs/src/examples/text-fields/iconSlots.vue index 1b3b91d745a..467e1a77c8d 100644 --- a/packages/docs/src/examples/text-fields/iconSlots.vue +++ b/packages/docs/src/examples/text-fields/iconSlots.vue @@ -1,10 +1,7 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex xs12> <v-text-field v-model="message" @@ -17,9 +14,7 @@ slot="prepend" bottom > - <v-icon slot="activator"> - mdi-help-circle-outline - </v-icon> + <v-icon slot="activator">mdi-help-circle-outline</v-icon> I'm a tooltip </v-tooltip> @@ -30,12 +25,7 @@ color="info" indeterminate ></v-progress-circular> - <img - v-else - width="24" - height="24" - src="https://cdn.vuetifyjs.com/images/logos/v-alt.svg" - ></img> + <img v-else width="24" height="24" src="https://cdn.vuetifyjs.com/images/logos/v-alt.svg"></img> </v-fade-transition> <v-menu @@ -44,28 +34,18 @@ offset-y > <v-btn slot="activator"> - <v-icon left> - menu - </v-icon> + <v-icon left>menu</v-icon> Menu </v-btn> <v-card> <v-card-text class="pa-4"> - <v-btn - large - flat - color="primary" - @click="clickMe" - > - <v-icon left> - mdi-target - </v-icon>Click me - </v-btn> + <v-btn large flat color="primary" @click="clickMe"><v-icon left>mdi-target</v-icon>Click me</v-btn> </v-card-text> </v-card> </v-menu> </v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/labelSlot.vue b/packages/docs/src/examples/text-fields/labelSlot.vue index 7cc0ba3ce8c..23cbe4facc8 100644 --- a/packages/docs/src/examples/text-fields/labelSlot.vue +++ b/packages/docs/src/examples/text-fields/labelSlot.vue @@ -3,9 +3,7 @@ <v-container> <v-text-field> <template slot="label"> - What about <strong>icon</strong> here? <v-icon style="vertical-align: middle"> - find_in_page - </v-icon> + What about <strong>icon</strong> here? <v-icon style="vertical-align: middle">find_in_page</v-icon> </template> </v-text-field> </v-container> diff --git a/packages/docs/src/examples/text-fields/masks.vue b/packages/docs/src/examples/text-fields/masks.vue index 778c6dffb16..38f4c22cab1 100644 --- a/packages/docs/src/examples/text-fields/masks.vue +++ b/packages/docs/src/examples/text-fields/masks.vue @@ -1,17 +1,10 @@ <template> <v-card> <v-card-text> - <v-text-field - v-model="mask" - label="Mask" - ></v-text-field> + <v-text-field v-model="mask" label="Mask"></v-text-field> </v-card-text> <v-card-text> - <v-text-field - v-model="value" - :mask="mask" - label="Value" - ></v-text-field> + <v-text-field :mask="mask" v-model="value" label="Value"></v-text-field> </v-card-text> </v-card> </template> diff --git a/packages/docs/src/examples/text-fields/outline.vue b/packages/docs/src/examples/text-fields/outline.vue index caacfc204e9..0e526ce2db6 100644 --- a/packages/docs/src/examples/text-fields/outline.vue +++ b/packages/docs/src/examples/text-fields/outline.vue @@ -1,14 +1,9 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> <v-text-field v-model="first" label="First Name" @@ -16,16 +11,14 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="last" label="Last Name" outline ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/password.vue b/packages/docs/src/examples/text-fields/password.vue index ab38bd0f45a..a4a863b5826 100644 --- a/packages/docs/src/examples/text-fields/password.vue +++ b/packages/docs/src/examples/text-fields/password.vue @@ -1,14 +1,9 @@ <template> <v-form> <v-container fluid> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> <v-text-field v-model="password" :append-icon="show1 ? 'visibility_off' : 'visibility'" @@ -22,10 +17,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field :append-icon="show2 ? 'visibility_off' : 'visibility'" :rules="[rules.required, rules.min]" @@ -39,10 +31,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field :append-icon="show3 ? 'visibility_off' : 'visibility'" :rules="[rules.required, rules.min]" @@ -56,10 +45,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field :append-icon="show4 ? 'visibility_off' : 'visibility'" :rules="[rules.required, rules.emailMatch]" @@ -72,6 +58,7 @@ @click:append="show4 = !show4" ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/prefixesAndSuffixes.vue b/packages/docs/src/examples/text-fields/prefixesAndSuffixes.vue index 9a17ec26d11..11afb8deda1 100644 --- a/packages/docs/src/examples/text-fields/prefixesAndSuffixes.vue +++ b/packages/docs/src/examples/text-fields/prefixesAndSuffixes.vue @@ -1,5 +1,6 @@ <template> <v-container fluid> + <v-layout row> <v-flex xs4> <v-subheader>Prefix for dollar currency</v-subheader> @@ -52,5 +53,6 @@ ></v-text-field> </v-flex> </v-layout> + </v-container> </template> diff --git a/packages/docs/src/examples/text-fields/progressBar.vue b/packages/docs/src/examples/text-fields/progressBar.vue index 3987b419777..8907ab21f31 100644 --- a/packages/docs/src/examples/text-fields/progressBar.vue +++ b/packages/docs/src/examples/text-fields/progressBar.vue @@ -1,9 +1,6 @@ <template> <v-container fluid> - <v-checkbox - v-model="custom" - label="Custom progress bar" - ></v-checkbox> + <v-checkbox v-model="custom" label="Custom progress bar"></v-checkbox> <v-text-field v-model="value" color="cyan darken" diff --git a/packages/docs/src/examples/text-fields/singleLine.vue b/packages/docs/src/examples/text-fields/singleLine.vue index ea3038c4ae1..639af91fb29 100644 --- a/packages/docs/src/examples/text-fields/singleLine.vue +++ b/packages/docs/src/examples/text-fields/singleLine.vue @@ -1,24 +1,16 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> <v-text-field label="Regular" single-line ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field label="Solo" single-line @@ -26,10 +18,7 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field label="Box" single-line @@ -37,16 +26,14 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field label="Outline" single-line outline ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/solo.vue b/packages/docs/src/examples/text-fields/solo.vue index 56ca7f58154..21e0e3174e3 100644 --- a/packages/docs/src/examples/text-fields/solo.vue +++ b/packages/docs/src/examples/text-fields/solo.vue @@ -1,14 +1,9 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> <v-text-field v-model="first" label="First Name" @@ -16,16 +11,14 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="last" label="Last Name" solo-inverted ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/usage.vue b/packages/docs/src/examples/text-fields/usage.vue index 81b10d9f06d..a8aaed31a3a 100644 --- a/packages/docs/src/examples/text-fields/usage.vue +++ b/packages/docs/src/examples/text-fields/usage.vue @@ -1,47 +1,29 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - md3 - > + <v-layout row wrap> + + <v-flex xs12 sm6 md3> <v-text-field label="Regular" ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md3 - > + <v-flex xs12 sm6 md3> <v-text-field label="Regular" placeholder="Placeholder" ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md3 - > + <v-flex xs12 sm6 md3> <v-text-field label="Solo" solo ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md3 - > + <v-flex xs12 sm6 md3> <v-text-field label="Solo" placeholder="Placeholder" @@ -49,22 +31,14 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md3 - > + <v-flex xs12 sm6 md3> <v-text-field label="Box" box ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md3 - > + <v-flex xs12 sm6 md3> <v-text-field label="Box" placeholder="Placeholder" @@ -72,28 +46,21 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md3 - > + <v-flex xs12 sm6 md3> <v-text-field label="Outline" outline ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - md3 - > + <v-flex xs12 sm6 md3> <v-text-field label="Outline" placeholder="Placeholder" outline ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/text-fields/validation.vue b/packages/docs/src/examples/text-fields/validation.vue index fc4b508a718..ad2913078a0 100644 --- a/packages/docs/src/examples/text-fields/validation.vue +++ b/packages/docs/src/examples/text-fields/validation.vue @@ -1,14 +1,9 @@ <template> <v-form> <v-container> - <v-layout - row - wrap - > - <v-flex - xs12 - sm6 - > + <v-layout row wrap> + + <v-flex xs12 sm6> <v-text-field v-model="title" :rules="[rules.required, rules.counter]" @@ -18,16 +13,14 @@ ></v-text-field> </v-flex> - <v-flex - xs12 - sm6 - > + <v-flex xs12 sm6> <v-text-field v-model="email" :rules="[rules.required, rules.email]" label="E-mail" ></v-text-field> </v-flex> + </v-layout> </v-container> </v-form> diff --git a/packages/docs/src/examples/textarea/autoGrow.vue b/packages/docs/src/examples/textarea/autoGrow.vue index e45274a28bb..9a4789eb820 100644 --- a/packages/docs/src/examples/textarea/autoGrow.vue +++ b/packages/docs/src/examples/textarea/autoGrow.vue @@ -1,8 +1,5 @@ <template> - <v-container - fluid - grid-list-md - > + <v-container fluid grid-list-md> <v-textarea name="input-7-1" box diff --git a/packages/docs/src/examples/textarea/signupBox.vue b/packages/docs/src/examples/textarea/signupBox.vue index bea382b16bf..65b823d81da 100644 --- a/packages/docs/src/examples/textarea/signupBox.vue +++ b/packages/docs/src/examples/textarea/signupBox.vue @@ -8,21 +8,15 @@ dark > <v-spacer></v-spacer> - <v-icon small> - mdi-square - </v-icon> + <v-icon small>mdi-square</v-icon> <v-icon class="ml-1" small - > - mdi-circle - </v-icon> + >mdi-circle</v-icon> <v-icon class="ml-1" small - > - mdi-triangle - </v-icon> + >mdi-triangle</v-icon> </v-system-bar> <v-toolbar color="deep-purple accent-4" @@ -33,9 +27,7 @@ <v-btn icon> <v-icon>mdi-arrow-left</v-icon> </v-btn> - <v-card-title class="title font-weight-regular"> - Sign up - </v-card-title> + <v-card-title class="title font-weight-regular">Sign up</v-card-title> <v-spacer></v-spacer> <v-btn icon> <v-icon>mdi-magnify</v-icon> @@ -89,19 +81,9 @@ > <template slot="label"> I agree to the&nbsp; - <a - href="#" - @click.stop.prevent="dialog = true" - > - Terms of Service - </a> + <a href="#" @click.stop.prevent="dialog = true">Terms of Service</a> &nbsp;and&nbsp; - <a - href="#" - @click.stop.prevent="dialog = true" - > - Privacy Policy - </a>* + <a href="#" @click.stop.prevent="dialog = true">Privacy Policy</a>* </template> </v-checkbox> </v-form> @@ -120,9 +102,7 @@ class="white--text" color="deep-purple accent-4" depressed - > - Submit - </v-btn> + >Submit</v-btn> </v-card-actions> <v-dialog v-model="dialog" @@ -131,9 +111,7 @@ persistent > <v-card> - <v-card-title class="headline grey lighten-3"> - Legal - </v-card-title> + <v-card-title class="headline grey lighten-3">Legal</v-card-title> <v-card-text> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </v-card-text> diff --git a/packages/docs/src/examples/textarea/usage.vue b/packages/docs/src/examples/textarea/usage.vue index a3dca7b362e..bcb768f8d8c 100644 --- a/packages/docs/src/examples/textarea/usage.vue +++ b/packages/docs/src/examples/textarea/usage.vue @@ -1,12 +1,6 @@ <template> - <v-container - fluid - grid-list-md - > - <v-layout - row - wrap - > + <v-container fluid grid-list-md> + <v-layout row wrap> <v-flex xs6> <v-textarea name="input-7-1" diff --git a/packages/docs/src/examples/time-pickers/time24hFormat.vue b/packages/docs/src/examples/time-pickers/time24hFormat.vue index 6780086f8fc..64434ea8e23 100644 --- a/packages/docs/src/examples/time-pickers/time24hFormat.vue +++ b/packages/docs/src/examples/time-pickers/time24hFormat.vue @@ -1,17 +1,7 @@ <template> - <v-layout - row - wrap - > - <v-flex - md12 - lg4 - lg-offset8 - > - <v-time-picker - v-model="e7" - format="24hr" - ></v-time-picker> + <v-layout row wrap> + <v-flex md12 lg4 lg-offset8> + <v-time-picker v-model="e7" format="24hr"></v-time-picker> </v-flex> </v-layout> </template> diff --git a/packages/docs/src/examples/time-pickers/timeAllowedTimes.vue b/packages/docs/src/examples/time-pickers/timeAllowedTimes.vue index a6982415194..926ef67d399 100644 --- a/packages/docs/src/examples/time-pickers/timeAllowedTimes.vue +++ b/packages/docs/src/examples/time-pickers/timeAllowedTimes.vue @@ -1,12 +1,6 @@ <template> - <v-layout - row - wrap - > - <v-flex - md12 - lg6 - > + <v-layout row wrap> + <v-flex md12 lg6> <v-time-picker v-model="time" :allowed-hours="allowedHours" @@ -18,10 +12,7 @@ max="22:15" ></v-time-picker> </v-flex> - <v-flex - md12 - lg6 - > + <v-flex md12 lg6> <v-time-picker v-model="timeStep" :allowed-minutes="allowedStep" diff --git a/packages/docs/src/examples/time-pickers/timeColorable.vue b/packages/docs/src/examples/time-pickers/timeColorable.vue index bdae480f80e..5ccd39daad2 100644 --- a/packages/docs/src/examples/time-pickers/timeColorable.vue +++ b/packages/docs/src/examples/time-pickers/timeColorable.vue @@ -1,27 +1,10 @@ <template> - <v-layout - row - wrap - > - <v-flex - md12 - lg6 - > - <v-time-picker - v-model="e4" - color="green lighten-1" - ></v-time-picker> + <v-layout row wrap> + <v-flex md12 lg6> + <v-time-picker v-model="e4" color="green lighten-1"></v-time-picker> </v-flex> - <v-flex - md12 - lg6 - class="hidden-xs-only" - > - <v-time-picker - v-model="e4" - color="green lighten-1" - header-color="primary" - ></v-time-picker> + <v-flex md12 lg6 class="hidden-xs-only"> + <v-time-picker v-model="e4" color="green lighten-1" header-color="primary"></v-time-picker> </v-flex> </v-layout> </template> diff --git a/packages/docs/src/examples/time-pickers/timeDialogAndMenu.vue b/packages/docs/src/examples/time-pickers/timeDialogAndMenu.vue index 55cb233ccd5..d1974f51dbd 100644 --- a/packages/docs/src/examples/time-pickers/timeDialogAndMenu.vue +++ b/packages/docs/src/examples/time-pickers/timeDialogAndMenu.vue @@ -1,16 +1,10 @@ <template> - <v-layout - row - wrap - > - <v-flex - xs11 - sm5 - > + <v-layout row wrap> + <v-flex xs11 sm5> <v-menu ref="menu" - v-model="menu2" :close-on-content-click="false" + v-model="menu2" :nudge-right="40" :return-value.sync="time" lazy @@ -36,10 +30,7 @@ </v-menu> </v-flex> <v-spacer></v-spacer> - <v-flex - xs11 - sm5 - > + <v-flex xs11 sm5> <v-dialog ref="dialog" v-model="modal2" @@ -62,20 +53,8 @@ full-width > <v-spacer></v-spacer> - <v-btn - flat - color="primary" - @click="modal2 = false" - > - Cancel - </v-btn> - <v-btn - flat - color="primary" - @click="$refs.dialog.save(time)" - > - OK - </v-btn> + <v-btn flat color="primary" @click="modal2 = false">Cancel</v-btn> + <v-btn flat color="primary" @click="$refs.dialog.save(time)">OK</v-btn> </v-time-picker> </v-dialog> </v-flex> diff --git a/packages/docs/src/examples/time-pickers/usage.vue b/packages/docs/src/examples/time-pickers/usage.vue index 6b57817a109..0f7575a3655 100644 --- a/packages/docs/src/examples/time-pickers/usage.vue +++ b/packages/docs/src/examples/time-pickers/usage.vue @@ -1,13 +1,7 @@ <template> <div> - <v-checkbox - v-model="landscape" - label="Landscape" - ></v-checkbox> - <v-time-picker - v-model="picker" - :landscape="landscape" - ></v-time-picker> + <v-checkbox v-model="landscape" label="Landscape"></v-checkbox> + <v-time-picker v-model="picker" :landscape="landscape"></v-time-picker> </div> </template> diff --git a/packages/docs/src/examples/timelines/advanced.vue b/packages/docs/src/examples/timelines/advanced.vue index 65e7997c3b0..bc003ee5767 100644 --- a/packages/docs/src/examples/timelines/advanced.vue +++ b/packages/docs/src/examples/timelines/advanced.vue @@ -1,18 +1,13 @@ <template> <v-container style="max-width: 600px;"> - <v-timeline - dense - clipped - > + <v-timeline dense clipped> <v-timeline-item fill-dot class="white--text mb-5" color="orange" large > - <span slot="icon"> - JL - </span> + <span slot="icon">JL</span> <v-text-field v-model="input" hide-details @@ -44,15 +39,8 @@ small > <v-layout justify-space-between> - <v-flex - xs7 - v-text="event.text" - ></v-flex> - <v-flex - xs5 - text-xs-right - v-text="event.time" - ></v-flex> + <v-flex xs7 v-text="event.text"></v-flex> + <v-flex xs5 text-xs-right v-text="event.time"></v-flex> </v-layout> </v-timeline-item> </v-slide-x-transition> @@ -71,15 +59,8 @@ small > <v-layout justify-space-between> - <v-flex xs7> - This order was archived. - </v-flex> - <v-flex - xs5 - text-xs-right - > - 15:26 EDT - </v-flex> + <v-flex xs7>This order was archived.</v-flex> + <v-flex xs5 text-xs-right>15:26 EDT</v-flex> </v-layout> </v-timeline-item> @@ -99,12 +80,7 @@ </v-chip> Digital Downloads fulfilled 1 item. </v-flex> - <v-flex - xs5 - text-xs-right - > - 15:25 EDT - </v-flex> + <v-flex xs5 text-xs-right>15:25 EDT</v-flex> </v-layout> </v-timeline-item> @@ -117,12 +93,7 @@ <v-flex xs7> Order confirmation email was sent to John Leider ([email protected]). </v-flex> - <v-flex - xs5 - text-xs-right - > - 15:25 EDT - </v-flex> + <v-flex xs5 text-xs-right>15:25 EDT</v-flex> </v-layout> </v-timeline-item> @@ -147,12 +118,7 @@ <v-flex xs7> A $15.00 USD payment was processed on PayPal Express Checkout </v-flex> - <v-flex - xs5 - text-xs-right - > - 15:25 EDT - </v-flex> + <v-flex xs5 text-xs-right>15:25 EDT</v-flex> </v-layout> </v-timeline-item> @@ -164,12 +130,7 @@ <v-flex xs7> John Leider placed this order on Online Store (checkout #1937432132572). </v-flex> - <v-flex - xs5 - text-xs-right - > - 15:25 EDT - </v-flex> + <v-flex xs5 text-xs-right>15:25 EDT</v-flex> </v-layout> </v-timeline-item> </v-timeline> diff --git a/packages/docs/src/examples/timelines/alert.vue b/packages/docs/src/examples/timelines/alert.vue index de9b79e6231..5ef2da99dc1 100644 --- a/packages/docs/src/examples/timelines/alert.vue +++ b/packages/docs/src/examples/timelines/alert.vue @@ -6,9 +6,7 @@ <v-card-title class="blue-grey white--text" > - <span class="title"> - Logs - </span> + <span class="title">Logs</span> <v-spacer></v-spacer> <v-btn :outline="interval == null" diff --git a/packages/docs/src/examples/timelines/color.vue b/packages/docs/src/examples/timelines/color.vue index bf350b640e2..0f000a27157 100644 --- a/packages/docs/src/examples/timelines/color.vue +++ b/packages/docs/src/examples/timelines/color.vue @@ -20,9 +20,7 @@ <v-btn icon> <v-icon>mdi-menu</v-icon> </v-btn> - <h3 class="title font-weight-light text-xs-center grow"> - Timeline - </h3> + <h3 class="title font-weight-light text-xs-center grow">Timeline</h3> <v-avatar> <v-img src="https://avataaars.io/?avatarStyle=Circle&topType=LongHairStraight&accessoriesType=Blank&hairColor=BrownDark&facialHairType=Blank&clotheType=BlazerShirt&eyeType=Default&eyebrowType=Default&mouthType=Default&skinColor=Light"></v-img> </v-avatar> @@ -33,19 +31,10 @@ > <v-container fill-height> <v-layout align-center> - <strong class="display-4 font-weight-regular mr-4"> - 8 - </strong> - <v-layout - column - justify-end - > - <div class="headline font-weight-light"> - Monday - </div> - <div class="text-uppercase font-weight-light"> - February 2015 - </div> + <strong class="display-4 font-weight-regular mr-4">8</strong> + <v-layout column justify-end> + <div class="headline font-weight-light">Monday</div> + <div class="text-uppercase font-weight-light">February 2015</div> </v-layout> </v-layout> </v-container> @@ -66,9 +55,7 @@ </v-flex> <v-flex> <strong>New Icon</strong> - <div class="caption"> - Mobile App - </div> + <div class="caption">Mobile App</div> </v-flex> </v-layout> </v-timeline-item> @@ -77,24 +64,20 @@ color="teal lighten-3" small > - <v-layout - wrap - pt-3 - > + <v-layout wrap pt-3> <v-flex xs3> <strong>3-4pm</strong> </v-flex> <v-flex> <strong>Design Stand Up</strong> - <div class="caption mb-2"> - Hangouts - </div> + <div class="caption mb-2">Hangouts</div> <v-avatar> <v-img src="https://avataaars.io/?avatarStyle=Circle&topType=LongHairFrida&accessoriesType=Kurt&hairColor=Red&facialHairType=BeardLight&facialHairColor=BrownDark&clotheType=GraphicShirt&clotheColor=Gray01&graphicType=Skull&eyeType=Wink&eyebrowType=RaisedExcitedNatural&mouthType=Disbelief&skinColor=Brown" ></v-img> </v-avatar> <v-avatar> + <v-img src="https://avataaars.io/?avatarStyle=Circle&topType=ShortHairFrizzle&accessoriesType=Prescription02&hairColor=Black&facialHairType=MoustacheMagnum&facialHairColor=BrownDark&clotheType=BlazerSweater&clotheColor=Black&eyeType=Default&eyebrowType=FlatNatural&mouthType=Default&skinColor=Tanned" ></v-img> @@ -132,9 +115,7 @@ </v-flex> <v-flex> <strong>Finish Home Screen</strong> - <div class="caption"> - Web App - </div> + <div class="caption">Web App</div> </v-flex> </v-layout> </v-timeline-item> diff --git a/packages/docs/src/examples/timelines/icons.vue b/packages/docs/src/examples/timelines/icons.vue index cb7d014e729..b2661676278 100644 --- a/packages/docs/src/examples/timelines/icons.vue +++ b/packages/docs/src/examples/timelines/icons.vue @@ -2,18 +2,16 @@ <v-timeline align-top> <v-timeline-item v-for="(item, i) in items" - :key="i" :color="item.color" :icon="item.icon" + :key="i" fill-dot > <v-card :color="item.color" dark > - <v-card-title class="title"> - Lorem Ipsum Dolor - </v-card-title> + <v-card-title class="title">Lorem Ipsum Dolor</v-card-title> <v-card-text class="white text--primary"> <p>Lorem ipsum dolor sit amet, no nam oblique veritus. Commune scaevola imperdiet nec ut, sed euismod convenire principes at. Est et nobis iisque percipit, an vim zril disputando voluptatibus, vix an salutandi sententiae.</p> <v-btn diff --git a/packages/docs/src/examples/timelines/slot.vue b/packages/docs/src/examples/timelines/slot.vue index ff1370289a3..c5232842ba6 100644 --- a/packages/docs/src/examples/timelines/slot.vue +++ b/packages/docs/src/examples/timelines/slot.vue @@ -2,8 +2,8 @@ <v-timeline> <v-timeline-item v-for="(year, i) in years" - :key="i" :color="year.color" + :key="i" small > <span @@ -12,9 +12,7 @@ v-text="year.year" ></span> <div class="py-3"> - <h2 :class="`headline font-weight-light mb-3 ${year.color}--text`"> - Lorem ipsum - </h2> + <h2 :class="`headline font-weight-light mb-3 ${year.color}--text`">Lorem ipsum</h2> <div> Lorem ipsum dolor sit amet, no nam oblique veritus. Commune scaevola imperdiet nec ut, sed euismod convenire principes at. Est et nobis iisque percipit, an vim zril disputando voluptatibus, vix an salutandi sententiae. </div> diff --git a/packages/docs/src/examples/timelines/small.vue b/packages/docs/src/examples/timelines/small.vue index c9253f64a32..37fe19cdba3 100644 --- a/packages/docs/src/examples/timelines/small.vue +++ b/packages/docs/src/examples/timelines/small.vue @@ -14,9 +14,7 @@ > mdi-magnify </v-icon> - <h2 class="display-1 white--text font-weight-light"> - Title 1 - </h2> + <h2 class="display-1 white--text font-weight-light">Title 1</h2> </v-card-title> <v-container> <v-layout> @@ -24,9 +22,7 @@ Lorem ipsum dolor sit amet, no nam oblique veritus. Commune scaevola imperdiet nec ut, sed euismod convenire principes at. Est et nobis iisque percipit. </v-flex> <v-flex xs2> - <v-icon size="64"> - mdi-calendar-text - </v-icon> + <v-icon size="64">mdi-calendar-text</v-icon> </v-flex> </v-layout> </v-container> @@ -41,15 +37,11 @@ > <v-card> <v-card-title class="amber lighten-1 justify-end"> - <h2 class="display-1 mr-3 white--text font-weight-light"> - Title 2 - </h2> + <h2 class="display-1 mr-3 white--text font-weight-light">Title 2</h2> <v-icon dark size="42" - > - mdi-home-outline - </v-icon> + >mdi-home-outline</v-icon> </v-card-title> <v-container> <v-layout> @@ -78,9 +70,7 @@ > mdi-email-outline </v-icon> - <h2 class="display-1 white--text font-weight-light"> - Title 3 - </h2> + <h2 class="display-1 white--text font-weight-light">Title 3</h2> </v-card-title> <v-container> <v-layout> @@ -104,9 +94,7 @@ > <v-card> <v-card-title class="red lighten-1 justify-end"> - <h2 class="display-1 mr-3 white--text font-weight-light"> - Title 4 - </h2> + <h2 class="display-1 mr-3 white--text font-weight-light">Title 4</h2> <v-icon dark size="42" @@ -117,9 +105,7 @@ <v-container> <v-layout> <v-flex xs2> - <v-icon size="64"> - mdi-server-network - </v-icon> + <v-icon size="64">mdi-server-network</v-icon> </v-flex> <v-flex xs10> Lorem ipsum dolor sit amet, no nam oblique veritus. Commune scaevola imperdiet nec ut, sed euismod convenire principes at. Est et nobis iisque percipit, an vim zril disputando voluptatibus. @@ -143,9 +129,7 @@ > mdi-phone-in-talk </v-icon> - <h2 class="display-1 white--text font-weight-light"> - Title 5 - </h2> + <h2 class="display-1 white--text font-weight-light">Title 5</h2> </v-card-title> <v-container> <v-layout> diff --git a/packages/docs/src/examples/timelines/usage.vue b/packages/docs/src/examples/timelines/usage.vue index f3863901517..e84002747aa 100644 --- a/packages/docs/src/examples/timelines/usage.vue +++ b/packages/docs/src/examples/timelines/usage.vue @@ -6,13 +6,9 @@ color="red lighten-2" large > - <span slot="opposite"> - Tus eu perfecto - </span> + <span slot="opposite">Tus eu perfecto</span> <v-card class="elevation-2"> - <v-card-title class="headline"> - Lorem ipsum - </v-card-title> + <v-card-title class="headline">Lorem ipsum</v-card-title> <v-card-text> Lorem ipsum dolor sit amet, no nam oblique veritus. Commune scaevola imperdiet nec ut, sed euismod convenire principes at. Est et nobis iisque percipit, an vim zril disputando voluptatibus, vix an salutandi sententiae. </v-card-text> diff --git a/packages/docs/src/examples/toolbars/appBar.vue b/packages/docs/src/examples/toolbars/appBar.vue index 7d5109480f5..09a82bc5305 100644 --- a/packages/docs/src/examples/toolbars/appBar.vue +++ b/packages/docs/src/examples/toolbars/appBar.vue @@ -1,13 +1,8 @@ <template> - <v-toolbar - dark - color="primary" - > + <v-toolbar dark color="primary"> <v-toolbar-side-icon></v-toolbar-side-icon> - <v-toolbar-title class="white--text"> - Title - </v-toolbar-title> + <v-toolbar-title class="white--text">Title</v-toolbar-title> <v-spacer></v-spacer> diff --git a/packages/docs/src/examples/toolbars/appBarExtension.vue b/packages/docs/src/examples/toolbars/appBarExtension.vue index db2ed65574d..74b2ed5fbbd 100644 --- a/packages/docs/src/examples/toolbars/appBarExtension.vue +++ b/packages/docs/src/examples/toolbars/appBarExtension.vue @@ -6,12 +6,7 @@ > <v-toolbar-side-icon></v-toolbar-side-icon> - <v-toolbar-title - slot="extension" - class="white--text" - > - Title - </v-toolbar-title> + <v-toolbar-title slot="extension" class="white--text">Title</v-toolbar-title> <v-spacer></v-spacer> diff --git a/packages/docs/src/examples/toolbars/appBarItems.vue b/packages/docs/src/examples/toolbars/appBarItems.vue index e8d1bc3994e..998421e0281 100644 --- a/packages/docs/src/examples/toolbars/appBarItems.vue +++ b/packages/docs/src/examples/toolbars/appBarItems.vue @@ -3,15 +3,9 @@ <v-spacer></v-spacer> <v-toolbar-items> - <v-btn flat> - Link One - </v-btn> - <v-btn flat> - Link Two - </v-btn> - <v-btn flat> - Link Three - </v-btn> + <v-btn flat>Link One</v-btn> + <v-btn flat>Link Two</v-btn> + <v-btn flat>Link Three</v-btn> </v-toolbar-items> </v-toolbar> </template> diff --git a/packages/docs/src/examples/toolbars/appBarMenu.vue b/packages/docs/src/examples/toolbars/appBarMenu.vue index 101b33339d8..e37625f3024 100644 --- a/packages/docs/src/examples/toolbars/appBarMenu.vue +++ b/packages/docs/src/examples/toolbars/appBarMenu.vue @@ -4,18 +4,13 @@ flat height="200px" > - <v-toolbar - color="grey darken-1" - dark - > + <v-toolbar color="grey darken-1" dark> <v-toolbar-side-icon></v-toolbar-side-icon> <v-menu :nudge-width="100"> <v-toolbar-title slot="activator"> <span>All</span> - <v-icon dark> - arrow_drop_down - </v-icon> + <v-icon dark>arrow_drop_down</v-icon> </v-toolbar-title> <v-list> diff --git a/packages/docs/src/examples/toolbars/columnWidthWithHierarchy.vue b/packages/docs/src/examples/toolbars/columnWidthWithHierarchy.vue index 7def86ed488..35f478257b5 100644 --- a/packages/docs/src/examples/toolbars/columnWidthWithHierarchy.vue +++ b/packages/docs/src/examples/toolbars/columnWidthWithHierarchy.vue @@ -1,17 +1,10 @@ <template> <v-card flat> <v-container fluid> - <v-layout - row - child-flex - wrap - > + <v-layout row child-flex wrap> <div> <v-toolbar> - <v-btn - icon - class="hidden-xs-only" - > + <v-btn icon class="hidden-xs-only"> <v-icon>arrow_back</v-icon> </v-btn> @@ -19,10 +12,7 @@ <v-spacer></v-spacer> - <v-btn - icon - class="hidden-xs-only" - > + <v-btn icon class="hidden-xs-only"> <v-icon>search</v-icon> </v-btn> </v-toolbar> diff --git a/packages/docs/src/examples/toolbars/flexibleAndCard.vue b/packages/docs/src/examples/toolbars/flexibleAndCard.vue index 179fd592944..a903cfc22e3 100644 --- a/packages/docs/src/examples/toolbars/flexibleAndCard.vue +++ b/packages/docs/src/examples/toolbars/flexibleAndCard.vue @@ -9,22 +9,11 @@ <v-toolbar-side-icon></v-toolbar-side-icon> </v-toolbar> - <v-layout - row - pb-2 - > - <v-flex - xs8 - offset-xs2 - > + <v-layout row pb-2> + <v-flex xs8 offset-xs2> <v-card class="card--flex-toolbar"> - <v-toolbar - card - prominent - > - <v-toolbar-title class="body-2 grey--text"> - Title - </v-toolbar-title> + <v-toolbar card prominent> + <v-toolbar-title class="body-2 grey--text">Title</v-toolbar-title> <v-spacer></v-spacer> diff --git a/packages/docs/src/examples/toolbars/prominent.vue b/packages/docs/src/examples/toolbars/prominent.vue index 3dfde5b3f79..dda2c19d002 100644 --- a/packages/docs/src/examples/toolbars/prominent.vue +++ b/packages/docs/src/examples/toolbars/prominent.vue @@ -5,10 +5,7 @@ height="200px" tile > - <v-toolbar - prominent - extended - > + <v-toolbar prominent extended> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Title</v-toolbar-title> diff --git a/packages/docs/src/examples/toolbars/systemBarsStatusWindow.vue b/packages/docs/src/examples/toolbars/systemBarsStatusWindow.vue index cc06df6d5f0..245df1daf8a 100644 --- a/packages/docs/src/examples/toolbars/systemBarsStatusWindow.vue +++ b/packages/docs/src/examples/toolbars/systemBarsStatusWindow.vue @@ -1,14 +1,8 @@ <template> <div> <v-subheader>Light status bar</v-subheader> - <v-card - img="https://cdn.vuetifyjs.com/images/home/vuetify_layout1.svg" - height="200px" - > - <v-system-bar - status - color="primary" - > + <v-card img="https://cdn.vuetifyjs.com/images/home/vuetify_layout1.svg" height="200px"> + <v-system-bar status color="primary"> <v-spacer></v-spacer> <v-icon>network_wifi</v-icon> <v-icon>signal_cellular_null</v-icon> @@ -17,15 +11,8 @@ </v-system-bar> </v-card> <v-subheader>Lights out</v-subheader> - <v-card - img="https://cdn.vuetifyjs.com/images/home/vuetify_layout2.svg" - height="200px" - > - <v-system-bar - status - color="primary" - lights-out - > + <v-card img="https://cdn.vuetifyjs.com/images/home/vuetify_layout2.svg" height="200px"> + <v-system-bar status color="primary" lights-out> <v-spacer></v-spacer> <v-icon>network_wifi</v-icon> <v-icon>signal_cellular_null</v-icon> @@ -34,15 +21,8 @@ </v-system-bar> </v-card> <v-subheader>Dark status bar</v-subheader> - <v-card - img="https://cdn.vuetifyjs.com/images/home/vuetify_layout1.svg" - height="200px" - > - <v-system-bar - status - color="primary" - dark - > + <v-card img="https://cdn.vuetifyjs.com/images/home/vuetify_layout1.svg" height="200px"> + <v-system-bar status color="primary" dark> <v-spacer></v-spacer> <v-icon>network_wifi</v-icon> <v-icon>signal_cellular_null</v-icon> @@ -51,16 +31,8 @@ </v-system-bar> </v-card> <v-subheader>Lights out</v-subheader> - <v-card - img="https://cdn.vuetifyjs.com/images/home/vuetify_layout2.svg" - height="200px" - > - <v-system-bar - status - color="primary" - lights-out - dark - > + <v-card img="https://cdn.vuetifyjs.com/images/home/vuetify_layout2.svg" height="200px"> + <v-system-bar status color="primary" lights-out dark> <v-spacer></v-spacer> <v-icon>network_wifi</v-icon> <v-icon>signal_cellular_null</v-icon> @@ -70,10 +42,7 @@ </v-card> <v-divider class="my-5"></v-divider> <v-subheader>Window bar</v-subheader> - <v-system-bar - window - dark - > + <v-system-bar window dark> <v-spacer></v-spacer> <v-icon>remove</v-icon> <v-icon>check_box_outline_blank</v-icon> diff --git a/packages/docs/src/examples/toolbars/usage.vue b/packages/docs/src/examples/toolbars/usage.vue index f17f6203c71..1a764f9f5a9 100644 --- a/packages/docs/src/examples/toolbars/usage.vue +++ b/packages/docs/src/examples/toolbars/usage.vue @@ -4,15 +4,9 @@ <v-toolbar-title>Title</v-toolbar-title> <v-spacer></v-spacer> <v-toolbar-items class="hidden-sm-and-down"> - <v-btn flat> - Link One - </v-btn> - <v-btn flat> - Link Two - </v-btn> - <v-btn flat> - Link Three - </v-btn> + <v-btn flat>Link One</v-btn> + <v-btn flat>Link Two</v-btn> + <v-btn flat>Link Three</v-btn> </v-toolbar-items> </v-toolbar> </template> diff --git a/packages/docs/src/examples/toolbars/variations.vue b/packages/docs/src/examples/toolbars/variations.vue index abd1450f2cf..1e877a51336 100644 --- a/packages/docs/src/examples/toolbars/variations.vue +++ b/packages/docs/src/examples/toolbars/variations.vue @@ -1,8 +1,5 @@ <template> - <v-layout - row - wrap - > + <v-layout row wrap> <v-flex v-for="(bar, i) in bars" :key="i" @@ -11,15 +8,8 @@ md6 class="my-3" > - <v-card - color="grey lighten-4" - flat - height="200px" - > - <v-toolbar - :color="bar.class" - :dark="bar.dark" - > + <v-card color="grey lighten-4" flat height="200px"> + <v-toolbar :color="bar.class" :dark="bar.dark"> <v-toolbar-side-icon></v-toolbar-side-icon> <v-toolbar-title>Title</v-toolbar-title> <v-spacer></v-spacer> diff --git a/packages/docs/src/examples/tooltips/usage.vue b/packages/docs/src/examples/tooltips/usage.vue index b1ab887d3eb..7bb8d0114f6 100644 --- a/packages/docs/src/examples/tooltips/usage.vue +++ b/packages/docs/src/examples/tooltips/usage.vue @@ -16,16 +16,12 @@ slot="activator" color="primary" dark - > - home - </v-icon> + >home</v-icon> <span>Tooltip</span> </v-tooltip> <v-tooltip bottom> - <span slot="activator"> - This text has a tooltip - </span> + <span slot="activator">This text has a tooltip</span> <span>Tooltip</span> </v-tooltip> </div> diff --git a/packages/docs/src/examples/tooltips/visibility.vue b/packages/docs/src/examples/tooltips/visibility.vue index 8919ce1583e..113a6ae300a 100644 --- a/packages/docs/src/examples/tooltips/visibility.vue +++ b/packages/docs/src/examples/tooltips/visibility.vue @@ -1,8 +1,5 @@ <template> - <v-container - fluid - class="text-xs-center" - > + <v-container fluid class="text-xs-center"> <v-layout flex justify-space-between @@ -10,26 +7,13 @@ wrap > <v-flex xs12> - <v-btn @click="show = !show"> - toggle - </v-btn> + <v-btn @click="show = !show">toggle</v-btn> </v-flex> - <v-flex - xs12 - class="mt-5" - > - <v-tooltip - v-model="show" - top - > - <v-btn - slot="activator" - icon - > - <v-icon color="grey lighten-1"> - shopping_cart - </v-icon> + <v-flex xs12 class="mt-5"> + <v-tooltip v-model="show" top> + <v-btn slot="activator" icon> + <v-icon color="grey lighten-1">shopping_cart</v-icon> </v-btn> <span>Programmatic tooltip</span> </v-tooltip> diff --git a/packages/docs/src/examples/transitions/customOrigin.vue b/packages/docs/src/examples/transitions/customOrigin.vue index 3044f7d7bab..0894fe102e1 100644 --- a/packages/docs/src/examples/transitions/customOrigin.vue +++ b/packages/docs/src/examples/transitions/customOrigin.vue @@ -1,22 +1,9 @@ <template> <div class="text-xs-center"> - <v-menu - transition="scale-transition" - origin="center center" - > - <v-btn - slot="activator" - dark - color="primary" - > - Scale Transition - </v-btn> + <v-menu transition="scale-transition" origin="center center"> + <v-btn slot="activator" dark color="primary">Scale Transition</v-btn> <v-list> - <v-list-tile - v-for="n in 5" - :key="n" - @click="" - > + <v-list-tile v-for="n in 5" :key="n" @click=""> <v-list-tile-title v-text="'Item ' + n"></v-list-tile-title> </v-list-tile> </v-list> diff --git a/packages/docs/src/examples/transitions/expandTransition.vue b/packages/docs/src/examples/transitions/expandTransition.vue index f0bb33fae76..a2549087ade 100644 --- a/packages/docs/src/examples/transitions/expandTransition.vue +++ b/packages/docs/src/examples/transitions/expandTransition.vue @@ -4,9 +4,7 @@ dark color="primary" @click="expand = !expand" - > - Expand Transition - </v-btn> + >Expand Transition</v-btn> <v-expand-transition> <div v-if="expand"> diff --git a/packages/docs/src/examples/transitions/fadeTransition.vue b/packages/docs/src/examples/transitions/fadeTransition.vue index d909b3fbaf7..fe64ed32f59 100644 --- a/packages/docs/src/examples/transitions/fadeTransition.vue +++ b/packages/docs/src/examples/transitions/fadeTransition.vue @@ -1,19 +1,9 @@ <template> <div class="text-xs-center"> <v-menu transition="fade-transition"> - <v-btn - slot="activator" - dark - color="primary" - > - Fade Transition - </v-btn> + <v-btn slot="activator" dark color="primary">Fade Transition</v-btn> <v-list> - <v-list-tile - v-for="n in 5" - :key="n" - @click="" - > + <v-list-tile v-for="n in 5" :key="n" @click=""> <v-list-tile-title v-text="'Item ' + n"></v-list-tile-title> </v-list-tile> </v-list> diff --git a/packages/docs/src/examples/transitions/scaleTransition.vue b/packages/docs/src/examples/transitions/scaleTransition.vue index 97337437d4c..2d6dc9a3cec 100644 --- a/packages/docs/src/examples/transitions/scaleTransition.vue +++ b/packages/docs/src/examples/transitions/scaleTransition.vue @@ -1,19 +1,9 @@ <template> <div class="text-xs-center"> <v-menu transition="scale-transition"> - <v-btn - slot="activator" - dark - color="primary" - > - Scale Transition - </v-btn> + <v-btn slot="activator" dark color="primary">Scale Transition</v-btn> <v-list> - <v-list-tile - v-for="n in 5" - :key="n" - @click="" - > + <v-list-tile v-for="n in 5" :key="n" @click=""> <v-list-tile-title v-text="'Item ' + n"></v-list-tile-title> </v-list-tile> </v-list> diff --git a/packages/docs/src/examples/transitions/slideXTransitions.vue b/packages/docs/src/examples/transitions/slideXTransitions.vue index ddd6c23fb30..e3dd2f36364 100644 --- a/packages/docs/src/examples/transitions/slideXTransitions.vue +++ b/packages/docs/src/examples/transitions/slideXTransitions.vue @@ -1,37 +1,17 @@ <template> <div class="text-xs-center"> <v-menu transition="slide-x-transition"> - <v-btn - slot="activator" - dark - color="primary" - > - Slide X Transition - </v-btn> + <v-btn slot="activator" dark color="primary">Slide X Transition</v-btn> <v-list> - <v-list-tile - v-for="n in 5" - :key="n" - @click="" - > + <v-list-tile v-for="n in 5" :key="n" @click=""> <v-list-tile-title v-text="'Item ' + n"></v-list-tile-title> </v-list-tile> </v-list> </v-menu> <v-menu transition="slide-x-reverse-transition"> - <v-btn - slot="activator" - dark - color="secondary" - > - Slide X Reverse Transition - </v-btn> + <v-btn slot="activator" dark color="secondary">Slide X Reverse Transition</v-btn> <v-list> - <v-list-tile - v-for="n in 5" - :key="n" - @click="" - > + <v-list-tile v-for="n in 5" :key="n" @click=""> <v-list-tile-title v-text="'Item ' + n"></v-list-tile-title> </v-list-tile> </v-list> diff --git a/packages/docs/src/examples/transitions/slideYTransitions.vue b/packages/docs/src/examples/transitions/slideYTransitions.vue index 63b6aa99c9e..5c9e9565ff5 100644 --- a/packages/docs/src/examples/transitions/slideYTransitions.vue +++ b/packages/docs/src/examples/transitions/slideYTransitions.vue @@ -1,37 +1,17 @@ <template> <div class="text-xs-center"> <v-menu transition="slide-y-transition"> - <v-btn - slot="activator" - dark - color="primary" - > - Slide Y Transition - </v-btn> + <v-btn slot="activator" dark color="primary">Slide Y Transition</v-btn> <v-list> - <v-list-tile - v-for="n in 5" - :key="n" - @click="" - > + <v-list-tile v-for="n in 5" :key="n" @click=""> <v-list-tile-title v-text="'Item ' + n"></v-list-tile-title> </v-list-tile> </v-list> </v-menu> <v-menu transition="slide-y-reverse-transition"> - <v-btn - slot="activator" - dark - color="primary" - > - Slide Y Reverse Transition - </v-btn> + <v-btn slot="activator" dark color="primary">Slide Y Reverse Transition</v-btn> <v-list> - <v-list-tile - v-for="n in 5" - :key="n" - @click="" - > + <v-list-tile v-for="n in 5" :key="n" @click=""> <v-list-tile-title v-text="'Item ' + n"></v-list-tile-title> </v-list-tile> </v-list> diff --git a/packages/docs/src/examples/treeview/directory.vue b/packages/docs/src/examples/treeview/directory.vue index 443e26442c8..f8cba2a50d8 100644 --- a/packages/docs/src/examples/treeview/directory.vue +++ b/packages/docs/src/examples/treeview/directory.vue @@ -24,9 +24,7 @@ slot="prepend" slot-scope="{ item, active }" :color="active ? 'primary' : ''" - > - mdi-account - </v-icon> + >mdi-account</v-icon> </v-treeview> </v-flex> <v-flex @@ -61,12 +59,8 @@ <h3 class="headline mb-2"> {{ selected.name }} </h3> - <div class="blue--text mb-2"> - {{ selected.email }} - </div> - <div class="blue--text subheading font-weight-bold"> - {{ selected.username }} - </div> + <div class="blue--text mb-2">{{ selected.email }}</div> + <div class="blue--text subheading font-weight-bold">{{ selected.username }}</div> </v-card-text> <v-divider></v-divider> <v-layout @@ -74,42 +68,13 @@ text-xs-left wrap > - <v-flex - tag="strong" - xs5 - text-xs-right - mr-3 - mb-2 - > - Company: - </v-flex> + <v-flex tag="strong" xs5 text-xs-right mr-3 mb-2>Company:</v-flex> <v-flex>{{ selected.company.name }}</v-flex> - <v-flex - tag="strong" - xs5 - text-xs-right - mr-3 - mb-2 - > - Website: - </v-flex> + <v-flex tag="strong" xs5 text-xs-right mr-3 mb-2>Website:</v-flex> <v-flex> - <a - :href="`//${selected.website}`" - target="_blank" - > - {{ selected.website }} - </a> - </v-flex> - <v-flex - tag="strong" - xs5 - text-xs-right - mr-3 - mb-2 - > - Phone: + <a :href="`//${selected.website}`" target="_blank">{{ selected.website }}</a> </v-flex> + <v-flex tag="strong" xs5 text-xs-right mr-3 mb-2>Phone:</v-flex> <v-flex>{{ selected.phone }}</v-flex> </v-layout> </v-card> diff --git a/packages/docs/src/examples/treeview/fileExplorer.vue b/packages/docs/src/examples/treeview/fileExplorer.vue index f378ca201a4..aedca19e1fb 100644 --- a/packages/docs/src/examples/treeview/fileExplorer.vue +++ b/packages/docs/src/examples/treeview/fileExplorer.vue @@ -7,10 +7,7 @@ item-key="name" open-on-click > - <template - slot="prepend" - slot-scope="{ item, open }" - > + <template slot="prepend" slot-scope="{ item, open, leaf }"> <v-icon v-if="!item.file"> {{ open ? 'mdi-folder-open' : 'mdi-folder' }} </v-icon> diff --git a/packages/docs/src/examples/treeview/hotspots.vue b/packages/docs/src/examples/treeview/hotspots.vue index 7d14d9bd820..0df397d92c2 100644 --- a/packages/docs/src/examples/treeview/hotspots.vue +++ b/packages/docs/src/examples/treeview/hotspots.vue @@ -55,12 +55,7 @@ dark small > - <v-icon - left - small - > - mdi-beer - </v-icon> + <v-icon left small>mdi-beer</v-icon> {{ selection.name }} </v-chip> </v-scroll-x-transition> @@ -86,9 +81,7 @@ depressed > Save - <v-icon right> - mdi-content-save - </v-icon> + <v-icon right>mdi-content-save</v-icon> </v-btn> </v-card-actions> </v-card> diff --git a/packages/docs/src/examples/typography/truncate.vue b/packages/docs/src/examples/typography/truncate.vue index 94a63e8be7c..75ea6265beb 100644 --- a/packages/docs/src/examples/typography/truncate.vue +++ b/packages/docs/src/examples/typography/truncate.vue @@ -10,15 +10,11 @@ pa-3 white--text > - <div class="title font-weight-light"> - Explore our beaches - </div> + <div class="title font-weight-light">Explore our beaches</div> </v-layout> </v-img> <v-card-title> - <div class="text-truncate"> - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - </div> + <div class="text-truncate">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div> </v-card-title> <v-divider></v-divider> <v-card-actions> diff --git a/packages/docs/src/examples/windows/account.vue b/packages/docs/src/examples/windows/account.vue index 5a382b8efd0..0fef49df583 100644 --- a/packages/docs/src/examples/windows/account.vue +++ b/packages/docs/src/examples/windows/account.vue @@ -50,12 +50,8 @@ height="128" src="https://cdn.vuetifyjs.com/images/logos/v.svg" ></v-img> - <h3 class="title font-weight-light mb-2"> - Welcome to Vuetify - </h3> - <span class="caption grey--text"> - Thanks for signing up! - </span> + <h3 class="title font-weight-light mb-2">Welcome to Vuetify</h3> + <span class="caption grey--text">Thanks for signing up!</span> </div> </v-window-item> </v-window> diff --git a/packages/docs/src/examples/windows/usage.vue b/packages/docs/src/examples/windows/usage.vue index 96f9822ce41..3c2a57ea447 100644 --- a/packages/docs/src/examples/windows/usage.vue +++ b/packages/docs/src/examples/windows/usage.vue @@ -34,17 +34,9 @@ > <v-card flat> <v-card-text> - <v-layout - align-center - mb-3 - > - <v-avatar - color="grey" - class="mr-3" - ></v-avatar> - <strong class="title"> - Title {{ n }} - </strong> + <v-layout align-center mb-3> + <v-avatar color="grey" class="mr-3"></v-avatar> + <strong class="title">Title {{ n }}</strong> <v-spacer></v-spacer> <v-btn icon> <v-icon>mdi-account</v-icon> diff --git a/packages/docs/src/pages/documentation/Page.vue b/packages/docs/src/pages/documentation/Page.vue index 8dbece03ef5..5bb7515e797 100644 --- a/packages/docs/src/pages/documentation/Page.vue +++ b/packages/docs/src/pages/documentation/Page.vue @@ -41,9 +41,7 @@ /* webpackChunkName: "pages" */ `@/data/pages/${namespace}/${page}.json` )).default - } catch (err) { - console.log(err) - } + } catch (err) {} store.commit('documentation/setStructure', structure) } diff --git a/packages/docs/src/pages/general/404.vue b/packages/docs/src/pages/general/404.vue index e2407f38c48..e3c72dcca1b 100644 --- a/packages/docs/src/pages/general/404.vue +++ b/packages/docs/src/pages/general/404.vue @@ -5,9 +5,7 @@ > <v-layout align-center> <v-flex text-xs-center> - <h1 class="display-2 primary--text"> - Whoops, 404 - </h1> + <h1 class="display-2 primary--text">Whoops, 404</h1> <p>The page you were looking for does not exist</p> <v-btn :to="`/${lang}/getting-started/quick-start`" diff --git a/packages/docs/src/pages/home/components/Footer.vue b/packages/docs/src/pages/home/components/Footer.vue index 71bba48da6d..5e1e1f191e2 100644 --- a/packages/docs/src/pages/home/components/Footer.vue +++ b/packages/docs/src/pages/home/components/Footer.vue @@ -25,14 +25,11 @@ </h5> </v-flex> <v-flex xs12> - <v-layout - justify-center - mb-3 - > + <v-layout justify-center mb-3> <a v-for="(social, i) in socials" - :key="i" :href="social.href" + :key="i" :title="social.title" class="mx-3" target="_blank" diff --git a/packages/docs/src/pages/home/components/Hero.vue b/packages/docs/src/pages/home/components/Hero.vue index b12e7edd165..a3d3b4d8c0e 100644 --- a/packages/docs/src/pages/home/components/Hero.vue +++ b/packages/docs/src/pages/home/components/Hero.vue @@ -52,9 +52,7 @@ large outline > - <v-icon left> - mdi-github-circle - </v-icon> + <v-icon left>mdi-github-circle</v-icon> Github </v-btn> <v-btn @@ -65,9 +63,7 @@ rel="noopener" target="_blank" > - <v-icon left> - mdi-discord - </v-icon> + <v-icon left>mdi-discord</v-icon> {{ $t('Vuetify.Home.getHelp') }} </v-btn> </v-layout> diff --git a/packages/docs/src/pages/home/components/MadeWithVuetify.vue b/packages/docs/src/pages/home/components/MadeWithVuetify.vue index 3d49ee63c91..06b5bcfd828 100644 --- a/packages/docs/src/pages/home/components/MadeWithVuetify.vue +++ b/packages/docs/src/pages/home/components/MadeWithVuetify.vue @@ -9,10 +9,7 @@ v-text="$t('Vuetify.Home.madeWithVuetify')" /> - <v-container - grid-list-xl - mb-3 - > + <v-container grid-list-xl mb-3> <v-layout align-center fill-height diff --git a/packages/docs/src/pages/home/components/Sponsors.vue b/packages/docs/src/pages/home/components/Sponsors.vue index 8b092a6f5d0..fdc995a2971 100644 --- a/packages/docs/src/pages/home/components/Sponsors.vue +++ b/packages/docs/src/pages/home/components/Sponsors.vue @@ -1,8 +1,5 @@ <template> - <v-card - flat - color="grey lighten-4 pa-5 text-xs-center" - > + <v-card flat color="grey lighten-4 pa-5 text-xs-center"> <v-subtitle-1 class="title font-weight-regular"> Patreon Sponsors </v-subtitle-1> diff --git a/packages/docs/src/router/scroll-behavior.js b/packages/docs/src/router/scroll-behavior.js index db374a88f5f..709fa5d47cb 100644 --- a/packages/docs/src/router/scroll-behavior.js +++ b/packages/docs/src/router/scroll-behavior.js @@ -5,7 +5,7 @@ export default async function (to, from, savedPosition) { await waitForReadystate() let scrollTo = 0 - const options = {} + let options = {} if (to.hash) { scrollTo = to.hash diff --git a/packages/docs/src/views/Layouts.vue b/packages/docs/src/views/Layouts.vue index 403a3d47d95..7c5aa649490 100644 --- a/packages/docs/src/views/Layouts.vue +++ b/packages/docs/src/views/Layouts.vue @@ -1,7 +1,7 @@ <template> <component - :is="component" v-if="component !== false" + :is="component" /> <not-found v-else /> </template> diff --git a/packages/vuetify/src/components/VAlert/VAlert.ts b/packages/vuetify/src/components/VAlert/VAlert.ts index 2c98512d3f7..56c382eae2f 100644 --- a/packages/vuetify/src/components/VAlert/VAlert.ts +++ b/packages/vuetify/src/components/VAlert/VAlert.ts @@ -46,7 +46,6 @@ export default mixins(Colorable, Toggleable, Transitionable).extend({ case 'error': return '$vuetify.icons.error' case 'success': return '$vuetify.icons.success' case 'warning': return '$vuetify.icons.warning' - default: return this.icon } } }, diff --git a/yarn.lock b/yarn.lock index 6637922c6ab..ebd78a64619 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4649,6 +4649,13 @@ eslint-plugin-vue@^5.1.0: dependencies: vue-eslint-parser "^4.0.2" +eslint-plugin-vue@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-vue/-/eslint-plugin-vue-5.1.0.tgz#d0d373334be8140d698ec4e1fb83f09faa48081b" + integrity sha512-C7avvbGLb9J1PyGiFolPcGR4ljUc+dKm5ZJdrUKXwXFxHHx4SqOmRI29AsFyW7PbCGcnOvIlaq7NJS6HDIak+g== + dependencies: + vue-eslint-parser "^4.0.2" + [email protected], eslint-scope@^3.7.1: version "3.7.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8" @@ -12589,6 +12596,18 @@ vue-eslint-parser@^4.0.2: esquery "^1.0.1" lodash "^4.17.11" +vue-eslint-parser@^4.0.2: + version "4.0.3" + resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-4.0.3.tgz#80cf162e484387b2640371ad21ba1f86e0c10a61" + integrity sha512-AUeQsYdO6+7QXCems+WvGlrXd37PHv/zcRQSQdY1xdOMwdFAPEnMBsv7zPvk0TPGulXkK/5p/ITgrjiYB7k3ag== + dependencies: + debug "^4.1.0" + eslint-scope "^4.0.0" + eslint-visitor-keys "^1.0.0" + espree "^4.1.0" + esquery "^1.0.1" + lodash "^4.17.11" + vue-hot-reload-api@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.0.tgz#97976142405d13d8efae154749e88c4e358cf926"
46860e41d8c38a5cc8f308bd7df0488bfafd35c7
2022-10-13 01:12:15
John Leider
docs(user): update user store to new key
false
update user store to new key
docs
diff --git a/packages/docs/src/store/user.ts b/packages/docs/src/store/user.ts index c12192ef908..ef330289e6c 100644 --- a/packages/docs/src/store/user.ts +++ b/packages/docs/src/store/user.ts @@ -47,7 +47,7 @@ export const useUserStore = defineStore('user', () => { function load () { if (!IN_BROWSER) return - const stored = localStorage.getItem('vuetify@user') + const stored = localStorage.getItem('vuetify3@user') const data = stored ? JSON.parse(stored) : {} if (!data.v) {
51d3570d508c1833c8671c3d5adbc7fbf61f682f
2018-04-05 08:10:05
John Leider
test(v-text-field): started integrating previous unit tests
false
started integrating previous unit tests
test
diff --git a/src/components/VTextField/VTextField.js b/src/components/VTextField/VTextField.js index d79f26e3d6c..324c0eac801 100755 --- a/src/components/VTextField/VTextField.js +++ b/src/components/VTextField/VTextField.js @@ -38,6 +38,12 @@ export default { autofocus: Boolean, autoGrow: Boolean, box: Boolean, + clearable: Boolean, + clearIcon: { + type: String, + default: 'clear' + }, + clearIconCb: Function, color: { type: String, default: 'primary' @@ -196,7 +202,7 @@ export default { props: { absolute: true, color: this.validationState, - focused: !isSingleLine && (this.isFocused || this.validationState), + focused: !isSingleLine && (this.isFocused || !!this.validationState), left, value: !isSingleLine && (this.isFocused || this.isDirty) } @@ -209,7 +215,11 @@ export default { genIconSlot () { const slot = [] - if (this.appendIcon) { + if (this.clearable && this.isDirty) { + slot.push(this.genIcon('clear', + this.clearableCallback || this.clearIconCb + )) + } else if (this.appendIcon) { slot.push(this.genIcon('append')) } diff --git a/test/unit/components/VTextField/VTextField.spec.js b/test/unit/components/VTextField/VTextField.spec.js index 095d9645aa7..8c553f46746 100644 --- a/test/unit/components/VTextField/VTextField.spec.js +++ b/test/unit/components/VTextField/VTextField.spec.js @@ -95,7 +95,7 @@ test('VTextField.js', ({ mount }) => { expect(wrapper.data().shouldValidate).toEqual(false) }) - it('should not display counter when set to false', async () => { + it.skip('should not display counter when set to false', async () => { const wrapper = mount(VTextField, { propsData: { counter: true, @@ -133,7 +133,7 @@ test('VTextField.js', ({ mount }) => { } }) - const clear = wrapper.find('.input-group__append-icon')[0] + const clear = wrapper.find('.v-input__icon--clear .icon')[0] const input = jest.fn() wrapper.vm.$on('input', input) @@ -146,7 +146,7 @@ test('VTextField.js', ({ mount }) => { expect(input).toHaveBeenCalledWith(null) }) - it('should not clear input if not clearable and has appended icon (with callback)', async () => { + it.skip('should not clear input if not clearable and has appended icon (with callback)', async () => { const appendIconCb = jest.fn() const wrapper = mount(VTextField, { propsData: { @@ -163,7 +163,7 @@ test('VTextField.js', ({ mount }) => { expect(appendIconCb.mock.calls).toHaveLength(1) }) - it('should not clear input if not clearable and has appended icon (without callback)', async () => { + it.skip('should not clear input if not clearable and has appended icon (without callback)', async () => { const wrapper = mount(VTextField, { propsData: { value: 'foo', @@ -250,7 +250,7 @@ test('VTextField.js', ({ mount }) => { expect(change.mock.calls).toHaveLength(1) }) - it('should not make prepend icon clearable', () => { + it.skip('should not make prepend icon clearable', () => { const wrapper = mount(VTextField, { propsData: { prependIcon: 'check', @@ -291,7 +291,7 @@ test('VTextField.js', ({ mount }) => { expect(change.mock.calls).toHaveLength(0) }) - it('should render component with async loading and match snapshot', () => { + it.skip('should render component with async loading and match snapshot', () => { const wrapper = mount(VTextField, { propsData: { loading: true @@ -301,7 +301,7 @@ test('VTextField.js', ({ mount }) => { expect(wrapper.html()).toMatchSnapshot() }) - it('should render component with async loading and custom progress and match snapshot', () => { + it.skip('should render component with async loading and custom progress and match snapshot', () => { const progress = Vue.component('test', { render (h) { return h(VProgressLinear, { @@ -341,7 +341,7 @@ test('VTextField.js', ({ mount }) => { wrapper.vm.internalChange = true await wrapper.vm.$nextTick() expect(wrapper.vm.internalChange).toBe(true) - wrapper.vm.blur() + wrapper.vm.onBlur() await wrapper.vm.$nextTick() expect(wrapper.vm.internalChange).toBe(false) }) @@ -476,7 +476,7 @@ test('VTextField.js', ({ mount }) => { expect(input.element.value).toBe('1,2') }) - it('should calculate element height when using auto-grow prop', async () => { + it.skip('should calculate element height when using auto-grow prop', async () => { let value = '' const component = { render (h) { @@ -506,7 +506,7 @@ test('VTextField.js', ({ mount }) => { expect(input.element.style.getPropertyValue('height').length).not.toBe(0) }) - it('should match multi-line snapshot', () => { + it.skip('should match multi-line snapshot', () => { const wrapper = mount(VTextField, { propsData: { multiLine: true @@ -516,7 +516,7 @@ test('VTextField.js', ({ mount }) => { expect(wrapper.html()).toMatchSnapshot() }) - it('should match textarea snapshot', () => { + it.skip('should match textarea snapshot', () => { const wrapper = mount(VTextField, { propsData: { textarea: true @@ -526,7 +526,7 @@ test('VTextField.js', ({ mount }) => { expect(wrapper.html()).toMatchSnapshot() }) - it('should match auto-grow snapshot', async () => { + it.skip('should match auto-grow snapshot', async () => { const wrapper = mount(VTextField, { propsData: { textarea: true, @@ -537,7 +537,7 @@ test('VTextField.js', ({ mount }) => { expect(wrapper.html()).toMatchSnapshot() }) - it('should render no-resize the same if already auto-grow', () => { + it.skip('should render no-resize the same if already auto-grow', () => { const wrappers = [ { autoGrow:true, multiLine: true }, { autoGrow:true, textarea: true } diff --git a/test/unit/components/VTextField/__snapshots__/VTextField.spec.js.snap b/test/unit/components/VTextField/__snapshots__/VTextField.spec.js.snap index 8df0cb97e2a..1db5d3c5608 100644 --- a/test/unit/components/VTextField/__snapshots__/VTextField.spec.js.snap +++ b/test/unit/components/VTextField/__snapshots__/VTextField.spec.js.snap @@ -95,13 +95,23 @@ exports[`VTextField.js should not display counter when set to false 2`] = ` exports[`VTextField.js should render component and match snapshot 1`] = ` -<div class="input-group input-group--text-field primary--text"> - <div class="input-group__input"> - <input tabindex="0" - type="text" +<div class="v-input v-input--text theme--light"> + <div class="v-input__control"> + <div class="v-input__wrapper" + style="height: auto;" > - </div> - <div class="input-group__details"> + <label class="v-label" + style="left: 12px; position: absolute;" + > + </label> + <input tabindex="0" + type="text" + > + </div> + <div class="v-messages"> + <div class="v-messages__wrapper"> + </div> + </div> </div> </div>
33a72be78a318bb5ae683f72de18c7800ef04cde
2018-06-27 00:32:20
Jacek Karczmarczyk
fix(VRadioGroup): removed pointer cursor from main label
false
removed pointer cursor from main label
fix
diff --git a/src/stylus/components/_selection-controls.styl b/src/stylus/components/_selection-controls.styl index 1fd7fbd4628..e340d6a7786 100755 --- a/src/stylus/components/_selection-controls.styl +++ b/src/stylus/components/_selection-controls.styl @@ -39,6 +39,7 @@ rtl(v-selection-control-rtl, "v-input--selection-controls") opacity: 0 & + .v-label + cursor: pointer flex: 1 1 &__ripple @@ -65,7 +66,6 @@ rtl(v-selection-control-rtl, "v-input--selection-controls") &.v-input .v-label align-items: center - cursor: pointer display: inline-flex top: 0 user-select: none
d14f367fce85eb6fb9d006bc902fffaff373a6cc
2017-12-24 01:49:15
John Leider
fix(v-toolbar): corrected directive arguments
false
corrected directive arguments
fix
diff --git a/src/components/VToolbar/VToolbar.js b/src/components/VToolbar/VToolbar.js index 51b85da370c..45efd9b3af4 100644 --- a/src/components/VToolbar/VToolbar.js +++ b/src/components/VToolbar/VToolbar.js @@ -226,11 +226,9 @@ export default { } data.directives = [{ + arg: this.scrollTarget, name: 'scroll', - value: { - value: this.onScroll, - arg: this.scrollTarget - } + value: this.onScroll }] children.push(h('div', {
a2a870578ff2adcbba5f7975e5d8d7c665cd4935
2022-12-01 04:41:31
John Leider
docs(ReleasesMenu): change next title text
false
change next title text
docs
diff --git a/packages/docs/src/components/app/bar/ReleasesMenu.vue b/packages/docs/src/components/app/bar/ReleasesMenu.vue index 3235bbe6d5e..119dd02dd37 100644 --- a/packages/docs/src/components/app/bar/ReleasesMenu.vue +++ b/packages/docs/src/components/app/bar/ReleasesMenu.vue @@ -34,7 +34,7 @@ const items = computed(() => ([ { subheader: t('documentation') }, { - title: '3.0.0 (next)', + title: '3.0.x (next)', href: 'https://v3.vuetifyjs.com/', }, {
bc953e26795edca36bb8b88bba6f74027c0d0d18
2020-07-24 06:33:26
Dmitry Sharshakov
refactor(VBtn): refactor examples (#138)
false
refactor examples (#138)
refactor
diff --git a/packages/docs-next/src/examples/v-btn/misc-raised.vue b/packages/docs-next/src/examples/v-btn/misc-raised.vue index 8d83479f3fd..50409fc1701 100644 --- a/packages/docs-next/src/examples/v-btn/misc-raised.vue +++ b/packages/docs-next/src/examples/v-btn/misc-raised.vue @@ -1,98 +1,17 @@ <template> - <v-row align="center"> - <v-col - class="text-center" - cols="12" - sm="4" - > - <div class="my-2"> - <v-btn small> - Normal - </v-btn> - </div> - <div class="my-2"> - <v-btn - small - color="primary" - > - Primary - </v-btn> - </div> - <div class="my-2"> - <v-btn - small - color="error" - > - Error - </v-btn> - </div> - <div class="my-2"> - <v-btn - small - disabled - > - Disabled - </v-btn> - </div> - </v-col> - <v-col - class="text-center" - cols="12" - sm="4" - > - <div class="my-2"> - <v-btn>Normal</v-btn> - </div> - <div class="my-2"> - <v-btn color="primary"> - Primary - </v-btn> - </div> - <div class="my-2"> - <v-btn color="error"> - Error - </v-btn> - </div> - <div class="my-2"> - <v-btn disabled> - Disabled - </v-btn> - </div> - </v-col> - <v-col - class="text-center" - cols="12" - sm="4" - > - <div class="my-2"> - <v-btn large> - Normal - </v-btn> - </div> - <div class="my-2"> - <v-btn - large - color="primary" - > - Primary - </v-btn> - </div> - <div class="my-2"> - <v-btn - large - color="error" - > - Error - </v-btn> - </div> - <div class="my-2"> - <v-btn - large - disabled - > - Disabled - </v-btn> - </div> - </v-col> + <v-row + align="center" + justify="space-around" + > + <v-btn>Normal</v-btn> + <v-btn color="primary"> + Primary + </v-btn> + <v-btn color="error"> + Error + </v-btn> + <v-btn disabled> + Disabled + </v-btn> </v-row> </template> diff --git a/packages/docs-next/src/examples/v-btn/prop-block.vue b/packages/docs-next/src/examples/v-btn/prop-block.vue index 9bfa3bc21a8..4797a472520 100644 --- a/packages/docs-next/src/examples/v-btn/prop-block.vue +++ b/packages/docs-next/src/examples/v-btn/prop-block.vue @@ -1,9 +1,5 @@ <template> - <v-btn - block - color="secondary" - dark - > + <v-btn block> Block Button </v-btn> </template> diff --git a/packages/docs-next/src/examples/v-btn/prop-depressed.vue b/packages/docs-next/src/examples/v-btn/prop-depressed.vue index 5bcadacb1c0..628edee768d 100644 --- a/packages/docs-next/src/examples/v-btn/prop-depressed.vue +++ b/packages/docs-next/src/examples/v-btn/prop-depressed.vue @@ -1,123 +1,28 @@ <template> - <v-row align="center"> - <v-col - class="text-center" - cols="12" - sm="4" + <v-row + align="center" + justify="space-around" + > + <v-btn depressed> + Normal + </v-btn> + <v-btn + depressed + color="primary" > - <div class="my-2"> - <v-btn - depressed - small - > - Normal - </v-btn> - </div> - <div class="my-2"> - <v-btn - depressed - small - color="primary" - > - Primary - </v-btn> - </div> - <div class="my-2"> - <v-btn - depressed - small - color="error" - > - Error - </v-btn> - </div> - <div class="my-2"> - <v-btn - depressed - small - disabled - > - Disabled - </v-btn> - </div> - </v-col> - - <v-col - class="text-center" - cols="12" - sm="4" + Primary + </v-btn> + <v-btn + depressed + color="error" > - <div class="my-2"> - <v-btn depressed> - Normal - </v-btn> - </div> - <div class="my-2"> - <v-btn - depressed - color="primary" - > - Primary - </v-btn> - </div> - <div class="my-2"> - <v-btn - depressed - color="error" - > - Error - </v-btn> - </div> - <div class="my-2"> - <v-btn - depressed - disabled - > - Disabled - </v-btn> - </div> - </v-col> - - <v-col - class="text-center" - cols="12" - sm="4" + Error + </v-btn> + <v-btn + depressed + disabled > - <div class="my-2"> - <v-btn - depressed - large - > - Normal - </v-btn> - </div> - <div class="my-2"> - <v-btn - depressed - large - color="primary" - > - Primary - </v-btn> - </div> - <div class="my-2"> - <v-btn - depressed - large - color="error" - > - Error - </v-btn> - </div> - <div class="my-2"> - <v-btn - depressed - large - disabled - > - Disabled - </v-btn> - </div> - </v-col> + Disabled + </v-btn> </v-row> </template> diff --git a/packages/docs-next/src/examples/v-btn/prop-text.vue b/packages/docs-next/src/examples/v-btn/prop-text.vue index 15e67092d2c..5adc880eeaa 100644 --- a/packages/docs-next/src/examples/v-btn/prop-text.vue +++ b/packages/docs-next/src/examples/v-btn/prop-text.vue @@ -1,123 +1,28 @@ <template> - <v-row align="center"> - <v-col - class="text-center" - cols="12" - sm="4" + <v-row + align="center" + justify="space-around" + > + <v-btn text> + Normal + </v-btn> + <v-btn + text + color="primary" > - <div class="my-2"> - <v-btn - text - small - > - Normal - </v-btn> - </div> - <div class="my-2"> - <v-btn - text - small - color="primary" - > - Primary - </v-btn> - </div> - <div class="my-2"> - <v-btn - text - small - color="error" - > - Error - </v-btn> - </div> - <div class="my-2"> - <v-btn - text - small - disabled - > - Disabled - </v-btn> - </div> - </v-col> - - <v-col - class="text-center" - cols="12" - sm="4" + Primary + </v-btn> + <v-btn + text + color="error" > - <div class="my-2"> - <v-btn text> - Normal - </v-btn> - </div> - <div class="my-2"> - <v-btn - text - color="primary" - > - Primary - </v-btn> - </div> - <div class="my-2"> - <v-btn - text - color="error" - > - Error - </v-btn> - </div> - <div class="my-2"> - <v-btn - text - disabled - > - Disabled - </v-btn> - </div> - </v-col> - - <v-col - class="text-center" - cols="12" - sm="4" + Error + </v-btn> + <v-btn + text + disabled > - <div class="my-2"> - <v-btn - text - large - > - Normal - </v-btn> - </div> - <div class="my-2"> - <v-btn - text - large - color="primary" - > - Primary - </v-btn> - </div> - <div class="my-2"> - <v-btn - text - large - color="error" - > - Error - </v-btn> - </div> - <div class="my-2"> - <v-btn - text - large - disabled - > - Disabled - </v-btn> - </div> - </v-col> + Disabled + </v-btn> </v-row> </template> diff --git a/packages/docs-next/src/examples/v-btn/prop-tile.vue b/packages/docs-next/src/examples/v-btn/prop-tile.vue index 8a9041501ea..d5adc64c170 100755 --- a/packages/docs-next/src/examples/v-btn/prop-tile.vue +++ b/packages/docs-next/src/examples/v-btn/prop-tile.vue @@ -1,31 +1,16 @@ <template> - <div class="text-center"> + <v-row + align="center" + justify="space-around" + > <v-btn - class="ma-2" tile - color="indigo" - dark - > - Tile Button - </v-btn> - <v-btn - class="ma-2" - tile - outlined color="success" > <v-icon left> mdi-pencil - </v-icon> Edit - </v-btn> - <v-btn - class="ma-2" - tile - large - color="teal" - icon - > - <v-icon>mdi-vuetify</v-icon> + </v-icon> + Edit </v-btn> - </div> + </v-row> </template>
9d881b2ea42b263e1e538df6b404e7ac61ac9179
2025-01-25 03:59:23
wyhsunflower
fix(VCalendar): always assign default first day of week (#20378)
false
always assign default first day of week (#20378)
fix
diff --git a/packages/vuetify/src/composables/calendar.ts b/packages/vuetify/src/composables/calendar.ts index a38bdb3d505..c5673daf783 100644 --- a/packages/vuetify/src/composables/calendar.ts +++ b/packages/vuetify/src/composables/calendar.ts @@ -93,14 +93,17 @@ export function useCalendar (props: CalendarProps) { v => adapter.getMonth(v) ) + const defaultFirstDayOfWeek = computed(() => { + return props.firstDayOfWeek ?? props.weekdays[0] + }) + const weekDays = computed(() => { const firstDayOfWeek = Number(props.firstDayOfWeek ?? 0) - return props.weekdays.map(day => (day + firstDayOfWeek) % 7) }) const weeksInMonth = computed(() => { - const weeks = adapter.getWeekArray(month.value, props.firstDayOfWeek) + const weeks = adapter.getWeekArray(month.value, defaultFirstDayOfWeek.value) const days = weeks.flat()
c194ef91c6e7faef066dbb472dd0bdd6a998c3d9
2020-09-24 19:59:15
John Leider
docs(long-term-support.md): add v1.5 alert for eol
false
add v1.5 alert for eol
docs
diff --git a/packages/docs/src/pages/en/introduction/long-term-support.md b/packages/docs/src/pages/en/introduction/long-term-support.md index a89e0849602..40c69eb9d72 100644 --- a/packages/docs/src/pages/en/introduction/long-term-support.md +++ b/packages/docs/src/pages/en/introduction/long-term-support.md @@ -29,6 +29,12 @@ The latest version of Vuetify, based on the Material Design 2 specification. It ## Vuetify 1.5 LTS +<alert type="error"> + + v1.5 reached end of life on **July 31st, 2020** and is no longer actively maintained. It is recommended to update to the latest stable version of Vuetify using our [Upgrade guide](/getting-started/upgrade-guide/). + +</alert> + The latest LTS version of Vuetify, based on the Material Design 1 specification. LTS stands for long-term support—which means 12 months, until July 2020, of free security and critical bug maintenance updates, guaranteed. Upgrading to v1.5? Check out the available upgrade guides:
1dad5bb559fd11c803a2e950943166069719aed0
2022-08-16 22:35:51
Albert Kaaman
feat(VLayout): add scrollable main, support sticky elements (#15639)
false
add scrollable main, support sticky elements (#15639)
feat
diff --git a/packages/vuetify/dev/App.vue b/packages/vuetify/dev/App.vue index f597df08ac8..102b76b636f 100644 --- a/packages/vuetify/dev/App.vue +++ b/packages/vuetify/dev/App.vue @@ -1,8 +1,6 @@ <template> <v-app> - <div> - <Playground /> - </div> + <Playground /> </v-app> </template> diff --git a/packages/vuetify/src/components/VLayout/VLayout.sass b/packages/vuetify/src/components/VLayout/VLayout.sass index dbe499a3ee2..9bedd5568c4 100644 --- a/packages/vuetify/src/components/VLayout/VLayout.sass +++ b/packages/vuetify/src/components/VLayout/VLayout.sass @@ -1,9 +1,7 @@ .v-layout --v-scrollbar-offset: 0px - position: relative display: flex flex: 1 1 auto - overflow: hidden &--full-height --v-scrollbar-offset: inherit diff --git a/packages/vuetify/src/components/VLayout/__tests__/VLayout.spec.cy.tsx b/packages/vuetify/src/components/VLayout/__tests__/VLayout.spec.cy.tsx new file mode 100644 index 00000000000..c80598ffb07 --- /dev/null +++ b/packages/vuetify/src/components/VLayout/__tests__/VLayout.spec.cy.tsx @@ -0,0 +1,84 @@ +/// <reference types="../../../../types/cypress" /> + +import { VAppBar } from '@/components/VAppBar' +import { VMain } from '@/components/VMain' +import { VNavigationDrawer } from '@/components/VNavigationDrawer' +import { createRange } from '@/util' +import { VLayout } from '../VLayout' + +describe('VLayout', () => { + it('should position main component', () => { + cy.mount(() => ( + <VLayout> + <VAppBar height="64"></VAppBar> + <VNavigationDrawer width="200" permanent></VNavigationDrawer> + <VMain> + hello world + </VMain> + </VLayout> + )) + + cy.get('.v-main').should('have.css', 'padding-top', '64px') + cy.get('.v-main').should('have.css', 'padding-left', '200px') + }) + + it('should work with sticky elements', () => { + cy.mount(() => ( + <VLayout> + <VAppBar height="64"></VAppBar> + <VNavigationDrawer width="200" permanent></VNavigationDrawer> + <VMain> + <div> + {createRange(10).map(_ => <div>hello</div>)} + <nav style="position: sticky; top: var(--v-layout-top); background: grey">Sticky Header</nav> + {createRange(100).map(_ => <div>hello</div>)} + </div> + </VMain> + </VLayout> + )) + + cy.get('html').scrollTo(0, 1000) + .get('nav').should('be.visible') + }) + + it.only('should work with scrollable main', () => { + cy.mount(() => ( + <VLayout> + <VAppBar height="64"></VAppBar> + <VNavigationDrawer width="200" permanent></VNavigationDrawer> + <VMain scrollable> + <div> + {createRange(10).map(_ => <div>hello</div>)} + <nav style="position: sticky; top: 0px; background: grey">Sticky Header</nav> + {createRange(100).map(_ => <div>hello</div>)} + </div> + </VMain> + </VLayout> + )) + + cy.get('.v-main__scroller').scrollTo(0, 1000) + .get('nav').should('be.visible') + }) + + it('should work when nested inside another layout', () => { + cy.mount(({ drawer }: any) => ( + <VLayout> + <VAppBar height="64"></VAppBar> + <VNavigationDrawer width="200" permanent></VNavigationDrawer> + <VMain> + <VLayout class="ma-10" style="height: 600px" id="nested"> + <VAppBar height="64" color="primary"></VAppBar> + <VNavigationDrawer width="200" modelValue={ drawer } permanent color="primary"></VNavigationDrawer> + <VMain> + Nested + </VMain> + </VLayout> + </VMain> + </VLayout> + )) + + cy.get('#nested .v-navigation-drawer').should('not.be.visible') + .setProps({ drawer: true }) + .get('#nested .v-navigation-drawer').should('be.visible') + }) +}) diff --git a/packages/vuetify/src/components/VMain/VMain.sass b/packages/vuetify/src/components/VMain/VMain.sass index abd0b436056..5bb84751add 100644 --- a/packages/vuetify/src/components/VMain/VMain.sass +++ b/packages/vuetify/src/components/VMain/VMain.sass @@ -1,3 +1,4 @@ +@use '../../styles/tools' @use './variables' as * @mixin firefox() @@ -5,16 +6,30 @@ @content .v-main - display: flex flex: 1 0 auto max-width: 100% transition: $main-transition + padding-left: var(--v-layout-left) + padding-right: var(--v-layout-right) + padding-top: var(--v-layout-top) + padding-bottom: var(--v-layout-bottom) - &__wrap - flex: 1 1 auto + &__scroller max-width: 100% position: relative + &--scrollable + display: flex + @include tools.absolute() + + & > .v-main__scroller + flex: 1 1 auto + overflow-y: auto + --v-layout-left: 0px + --v-layout-right: 0px + --v-layout-top: 0px + --v-layout-bottom: 0px + +firefox() @media print display: block diff --git a/packages/vuetify/src/components/VMain/VMain.tsx b/packages/vuetify/src/components/VMain/VMain.tsx index ce65eb6c736..4f4c0af82a2 100644 --- a/packages/vuetify/src/components/VMain/VMain.tsx +++ b/packages/vuetify/src/components/VMain/VMain.tsx @@ -12,7 +12,11 @@ import { defineComponent, useRender } from '@/util' export const VMain = defineComponent({ name: 'VMain', - props: makeTagProps({ tag: 'main' }), + props: { + scrollable: Boolean, + + ...makeTagProps({ tag: 'main' }), + }, setup (props, { slots }) { const { mainStyles } = useLayout() @@ -20,15 +24,23 @@ export const VMain = defineComponent({ useRender(() => ( <props.tag - class="v-main" + class={[ + 'v-main', + { 'v-main--scrollable': props.scrollable }, + ]} style={[ mainStyles.value, ssrBootStyles.value, ]} > - <div class="v-main__wrap"> - { slots.default?.() } - </div> + { props.scrollable + ? ( + <div class="v-main__scroller"> + { slots.default?.() } + </div> + ) + : slots.default?.() + } </props.tag> )) diff --git a/packages/vuetify/src/components/VNavigationDrawer/_variables.scss b/packages/vuetify/src/components/VNavigationDrawer/_variables.scss index e7c27e82b88..ac6e1b1d9ee 100644 --- a/packages/vuetify/src/components/VNavigationDrawer/_variables.scss +++ b/packages/vuetify/src/components/VNavigationDrawer/_variables.scss @@ -21,7 +21,7 @@ $navigation-drawer-overflow-scrolling: touch !default; $navigation-drawer-rounded-border-radius: settings.$border-radius-root !default; $navigation-drawer-temporary-elevation: 16 !default; $navigation-drawer-transition-duration: 0.2s !default; -$navigation-drawer-transition-property: box-shadow, transform, visibility, width !default; +$navigation-drawer-transition-property: box-shadow, transform, visibility, width, height, left, right, top, bottom !default; $navigation-drawer-transition-timing-function: settings.$standard-easing !default; $navigation-drawer-will-change: transform !default; diff --git a/packages/vuetify/src/components/VToolbar/VToolbar.sass b/packages/vuetify/src/components/VToolbar/VToolbar.sass index eed4cafe959..c998b48ef55 100644 --- a/packages/vuetify/src/components/VToolbar/VToolbar.sass +++ b/packages/vuetify/src/components/VToolbar/VToolbar.sass @@ -13,7 +13,7 @@ padding-inline-end: var(--v-scrollbar-offset) position: relative transition: $toolbar-transition - transition-property: height, transform, max-width + transition-property: height, width, transform, max-width, left, right, top, bottom @include tools.border($toolbar-border...) @include tools.elevation($toolbar-elevation) diff --git a/packages/vuetify/src/composables/layout.ts b/packages/vuetify/src/composables/layout.ts index d31671b4fba..096ea6b8b05 100644 --- a/packages/vuetify/src/composables/layout.ts +++ b/packages/vuetify/src/composables/layout.ts @@ -206,11 +206,10 @@ export function createLayout (props: { overlaps?: string[], fullHeight?: boolean const layer = layers.value[layers.value.length - 1].layer return { - position: 'relative', - paddingLeft: convertToUnit(layer.left), - paddingRight: convertToUnit(layer.right), - paddingTop: convertToUnit(layer.top), - paddingBottom: convertToUnit(layer.bottom), + '--v-layout-left': convertToUnit(layer.left), + '--v-layout-right': convertToUnit(layer.right), + '--v-layout-top': convertToUnit(layer.top), + '--v-layout-bottom': convertToUnit(layer.bottom), ...(transitionsEnabled.value ? undefined : { transition: 'none' }), } }) @@ -297,17 +296,16 @@ export function createLayout (props: { overlaps?: string[], fullHeight?: boolean return { ...styles, height: isHorizontal ? `calc(100% - ${item.top}px - ${item.bottom}px)` : elementSize.value ? `${elementSize.value}px` : undefined, - marginLeft: isOppositeHorizontal ? undefined : `${item.left}px`, - marginRight: isOppositeHorizontal ? `${item.right}px` : undefined, - marginTop: position.value !== 'bottom' ? `${item.top}px` : undefined, - marginBottom: position.value !== 'top' ? `${item.bottom}px` : undefined, + left: isOppositeHorizontal ? undefined : `${item.left}px`, + right: isOppositeHorizontal ? `${item.right}px` : undefined, + top: position.value !== 'bottom' ? `${item.top}px` : undefined, + bottom: position.value !== 'top' ? `${item.bottom}px` : undefined, width: !isHorizontal ? `calc(100% - ${item.left}px - ${item.right}px)` : elementSize.value ? `${elementSize.value}px` : undefined, } }) const layoutItemScrimStyles = computed<CSSProperties>(() => ({ zIndex: zIndex.value - 1, - position: rootZIndex.value === ROOT_ZINDEX ? 'fixed' : 'absolute', })) return { layoutItemStyles, layoutItemScrimStyles, zIndex } @@ -334,6 +332,8 @@ export function createLayout (props: { overlaps?: string[], fullHeight?: boolean const layoutStyles = computed(() => ({ zIndex: rootZIndex.value, + position: parentLayout ? 'relative' as const : undefined, + overflow: parentLayout ? 'hidden' : undefined, })) return {
215f9218c76a6f8a295d046779e0d7516c29c2d4
2018-05-05 21:40:04
John Leider
fix(selection-controls): fix disabled styles
false
fix disabled styles
fix
diff --git a/src/components/VInput/VInput.js b/src/components/VInput/VInput.js index d85bdb577f9..46b3d8677ed 100755 --- a/src/components/VInput/VInput.js +++ b/src/components/VInput/VInput.js @@ -53,7 +53,7 @@ export default { 'v-input--hide-details': this.hideDetails, 'v-input--is-label-active': this.isLabelActive, 'v-input--is-dirty': this.isDirty, - 'v-input--is-disabled': this.disabled, + 'v-input--is-disabled': this.isDisabled, 'v-input--is-focused': this.isFocused, 'v-input--is-loading': this.loading !== false, ...this.addTextColorClassChecks({}, this.validationState), @@ -84,6 +84,9 @@ export default { isDirty () { return !!this.lazyValue }, + isDisabled () { + return this.disabled || this.readonly + }, isLabelActive () { return this.isDirty } diff --git a/src/components/VRadioGroup/VRadio.js b/src/components/VRadioGroup/VRadio.js index 79edaad43cd..690b3db8621 100644 --- a/src/components/VRadioGroup/VRadio.js +++ b/src/components/VRadioGroup/VRadio.js @@ -61,12 +61,14 @@ export default { type: String, default: '$vuetify.icons.radioOff' }, + readonly: Boolean, value: null }, computed: { classes () { const classes = { + 'v-radio--is-disabled': this.isDisabled, 'v-radio--is-focused': this.isFocused, 'theme--dark': this.dark, 'theme--light': this.light @@ -92,6 +94,9 @@ export default { hasState () { return this.isActive || !!this.validationStateProxy }, + isDisabled () { + return this.disabled || this.readonly + }, validationStateProxy () { return this.validationState && this.validationState() } diff --git a/src/components/VSelect/VSelect.js b/src/components/VSelect/VSelect.js index 5aab5641000..32187d7f638 100644 --- a/src/components/VSelect/VSelect.js +++ b/src/components/VSelect/VSelect.js @@ -156,9 +156,6 @@ export default { isDirty () { return this.selectedItems.length > 0 }, - isDisabled () { - return this.disabled || this.readonly - }, isMulti () { return this.multiple } diff --git a/src/mixins/selectable.js b/src/mixins/selectable.js index 8d743784710..5e63623f088 100644 --- a/src/mixins/selectable.js +++ b/src/mixins/selectable.js @@ -119,7 +119,7 @@ export default { this.isFocused = false }, onChange () { - if (this.disabled) return + if (this.isDisabled) return const value = this.value let input = this.internalValue diff --git a/src/stylus/components/_radios.styl b/src/stylus/components/_radios.styl index 13aaeb3f256..e111db32525 100644 --- a/src/stylus/components/_radios.styl +++ b/src/stylus/components/_radios.styl @@ -1,9 +1,23 @@ @import '../bootstrap' @import '../theme' +v-radio($material) + &--is-disabled + label + color: $material.text.disabled + + .v-icon + // needed for helper override + color: $material.buttons.disabled !important + +theme(v-radio, "v-radio") + .v-radio align-items: center display: flex height: auto margin-right: 16px outline: none + + &--is-disabled + pointer-events: none diff --git a/src/stylus/components/_selection-controls.styl b/src/stylus/components/_selection-controls.styl index 3a180337a1f..e7e6366f175 100755 --- a/src/stylus/components/_selection-controls.styl +++ b/src/stylus/components/_selection-controls.styl @@ -3,7 +3,13 @@ /** Theme */ selection-control($material) -// + &.v-input--is-disabled + label + color: $material.text.disabled + + .v-icon + // needed for helper override + color: $material.buttons.disabled !important v-selection-control-rtl() .v-input--selection-controls__input diff --git a/src/stylus/components/_switch.styl b/src/stylus/components/_switch.styl index 7f44a8157a8..0061e1b6556 100644 --- a/src/stylus/components/_switch.styl +++ b/src/stylus/components/_switch.styl @@ -9,6 +9,13 @@ v-input--switch($material) &__track color: $material.selection-controls.track.inactive + &.v-input--is-disabled + .v-input--switch__thumb + color: $material.selection-controls.thumb.disabled !important + + .v-input--switch__track + color: $material.selection-controls.track.disabled !important + v-input--switch-rtl() .v-input--selection-controls__ripple left: auto diff --git a/test/unit/components/VRadioGroup/VRadio.spec.js b/test/unit/components/VRadioGroup/VRadio.spec.js index 310c13cb610..3f4f123d3c4 100644 --- a/test/unit/components/VRadioGroup/VRadio.spec.js +++ b/test/unit/components/VRadioGroup/VRadio.spec.js @@ -190,6 +190,7 @@ test('VRadio.vue', ({ mount }) => { expect(wrapper.vm.classes).toEqual({ 'theme--dark': false, 'theme--light': false, + 'v-radio--is-disabled': false, 'v-radio--is-focused': false }) @@ -201,6 +202,7 @@ test('VRadio.vue', ({ mount }) => { 'accent--text': true, 'theme--dark': false, 'theme--light': false, + 'v-radio--is-disabled': false, 'v-radio--is-focused': false })
6684a5cea40b3ebf0a290f25b3d9861b676270b9
2023-05-01 18:57:00
John Leider
chore: remove ecosystem files
false
remove ecosystem files
chore
diff --git a/ecosystem-win.config.js b/ecosystem-win.config.js deleted file mode 100644 index 66d654e74e6..00000000000 --- a/ecosystem-win.config.js +++ /dev/null @@ -1,43 +0,0 @@ -// PM2 process file -// http://pm2.keymetrics.io/docs/usage/application-declaration/ - -const fs = require('fs') - -const separator = process.platform === 'win32' ? ';' : ':' -const paths = process.env.PATH.split(separator).map(p => `${p}/yarn.js`) -const yarnjsPaths = [ - 'c:/Program Files (x86)/yarn/bin/yarn.js', - 'c:/Program Files/yarn/bin/yarn.js', -].concat(paths) - -const yarnjsPath = yarnjsPaths.find(fs.existsSync) -if (!yarnjsPath) { - const checkedPaths = yarnjsPaths.reduce((prev, curr) => `${prev}\n${curr}`) - throw new Error(`Yarn.js not found in any of these paths:\n${checkedPaths}`) -} - -module.exports = { - apps: [ - { - name: 'vuetify-dev', - script: yarnjsPath, - cwd: './packages/vuetify/', - args: 'dev', - }, - { - name: 'vuetify-build', - script: yarnjsPath, - cwd: './packages/vuetify/', - args: 'watch', - env: { - NODE_ENV: 'production', - }, - }, - { - name: 'vuetify-docs', - script: yarnjsPath, - cwd: './packages/docs/', - args: 'dev', - }, - ], -} diff --git a/ecosystem-wsl.config.js b/ecosystem-wsl.config.js deleted file mode 100644 index 74499fb03cc..00000000000 --- a/ecosystem-wsl.config.js +++ /dev/null @@ -1,31 +0,0 @@ -// PM2 process file -// http://pm2.keymetrics.io/docs/usage/application-declaration/ - -module.exports = { - apps: [ - { - name: 'vuetify-dev', - script: 'yarn', - cwd: './packages/vuetify/', - args: 'dev', - interpreter: '/bin/bash', - }, - { - name: 'vuetify-build', - script: 'yarn', - cwd: './packages/vuetify/', - args: 'watch', - env: { - NODE_ENV: 'production', - }, - interpreter: '/bin/bash', - }, - { - name: 'vuetify-docs', - script: 'yarn', - cwd: './packages/docs/', - args: 'dev', - interpreter: '/bin/bash', - }, - ], -} diff --git a/ecosystem.config.js b/ecosystem.config.js deleted file mode 100644 index 2a015dd42e1..00000000000 --- a/ecosystem.config.js +++ /dev/null @@ -1,25 +0,0 @@ -module.exports = { - apps: [ - { - name: 'vuetify-dev', - script: 'yarn.js', - cwd: './packages/vuetify/', - args: 'dev', - }, - { - name: 'vuetify-build', - script: 'yarn.js', - cwd: './packages/vuetify/', - args: 'watch', - env: { - NODE_ENV: 'production', - }, - }, - { - name: 'vuetify-docs', - script: 'yarn.js', - cwd: './packages/docs/', - args: 'dev', - }, - ], -}
395f157d5ecc676885a69fd76639ad8a485b8ee7
2024-04-15 20:11:36
John Leider
feat(VDivider): add slot support
false
add slot support
feat
diff --git a/packages/vuetify/src/components/VDivider/VDivider.sass b/packages/vuetify/src/components/VDivider/VDivider.sass index 3f2e4f5df3a..1f127759d05 100644 --- a/packages/vuetify/src/components/VDivider/VDivider.sass +++ b/packages/vuetify/src/components/VDivider/VDivider.sass @@ -31,3 +31,21 @@ margin-bottom: $divider-vertical-inset-margin-bottom margin-top: $divider-vertical-inset-margin-top max-height: $divider-vertical-inset-max-height + +.v-divider__content + padding: $divider-content-padding + + .v-divider__wrapper--vertical & + padding: $divider-content-vertical-padding + +.v-divider__wrapper + display: flex + align-items: center + justify-content: center + + &--vertical + flex-direction: column + height: 100% + + .v-divider + margin: 0 auto diff --git a/packages/vuetify/src/components/VDivider/VDivider.tsx b/packages/vuetify/src/components/VDivider/VDivider.tsx index 7c0d4bf8d05..6682f761121 100644 --- a/packages/vuetify/src/components/VDivider/VDivider.tsx +++ b/packages/vuetify/src/components/VDivider/VDivider.tsx @@ -29,7 +29,7 @@ export const VDivider = genericComponent()({ props: makeVDividerProps(), - setup (props, { attrs }) { + setup (props, { attrs, slots }) { const { themeClasses } = provideTheme(props) const { textColorClasses, textColorStyles } = useTextColor(toRef(props, 'color')) const dividerStyles = computed(() => { @@ -46,31 +46,55 @@ export const VDivider = genericComponent()({ return styles }) - useRender(() => ( - <hr - class={[ - { - 'v-divider': true, - 'v-divider--inset': props.inset, - 'v-divider--vertical': props.vertical, - }, - themeClasses.value, - textColorClasses.value, - props.class, - ]} - style={[ - dividerStyles.value, - textColorStyles.value, - props.style, - ]} - aria-orientation={ - !attrs.role || attrs.role === 'separator' - ? props.vertical ? 'vertical' : 'horizontal' - : undefined - } - role={ `${attrs.role || 'separator'}` } - /> - )) + useRender(() => { + const divider = ( + <hr + class={[ + { + 'v-divider': true, + 'v-divider--inset': props.inset, + 'v-divider--vertical': props.vertical, + }, + themeClasses.value, + textColorClasses.value, + props.class, + ]} + style={[ + dividerStyles.value, + textColorStyles.value, + props.style, + ]} + aria-orientation={ + !attrs.role || attrs.role === 'separator' + ? props.vertical ? 'vertical' : 'horizontal' + : undefined + } + role={ `${attrs.role || 'separator'}` } + /> + ) + + if (!slots.default) return divider + + return ( + <div + class={[ + 'v-divider__wrapper', + { + 'v-divider__wrapper--vertical': props.vertical, + 'v-divider__wrapper--inset': props.inset, + }, + ]} + > + { divider } + + <div class="v-divider__content"> + { slots.default() } + </div> + + { divider } + </div> + ) + }) return {} }, diff --git a/packages/vuetify/src/components/VDivider/_variables.scss b/packages/vuetify/src/components/VDivider/_variables.scss index 7bc43fd2c78..f8d521faf37 100644 --- a/packages/vuetify/src/components/VDivider/_variables.scss +++ b/packages/vuetify/src/components/VDivider/_variables.scss @@ -4,6 +4,8 @@ $divider-border-color: null !default; $divider-border-style: settings.$border-style-root !default; $divider-border-width: thin 0 0 0 !default; +$divider-content-padding: 0 16px !default; +$divider-content-vertical-padding: 4px 0 !default; $divider-flex: 1 1 100% !default; $divider-inset-margin: 72px !default; $divider-inset-max-width: calc(100% - #{$divider-inset-margin}) !default;
95b7f834688eeb486ca3e922945a50c89e4a47bc
2017-10-11 16:52:59
Kael
fix: Allow text fields to have an initial value of 0
false
Allow text fields to have an initial value of 0
fix
diff --git a/src/components/VTextField/VTextField.js b/src/components/VTextField/VTextField.js index eef170fab5d..b6e26914f36 100644 --- a/src/components/VTextField/VTextField.js +++ b/src/components/VTextField/VTextField.js @@ -182,7 +182,7 @@ export default { autofocus: this.autofocus, disabled: this.disabled, required: this.required, - value: this.maskText(this.lazyValue || '') + value: this.maskText(this.lazyValue) }, attrs: { ...this.$attrs, diff --git a/src/components/VTextField/VTextField.spec.js b/src/components/VTextField/VTextField.spec.js index be97dd3ed81..c3ec0e885fc 100644 --- a/src/components/VTextField/VTextField.spec.js +++ b/src/components/VTextField/VTextField.spec.js @@ -331,4 +331,12 @@ test('VTextField.js', ({ mount }) => { expect(wrapper.html()).toMatchSnapshot() }) + + it('should display the number 0', async () => { + const wrapper = mount(VTextField, { + propsData: { value: 0 } + }) + + expect(wrapper.vm.$refs.input.value).toBe('0') + }) }) diff --git a/src/mixins/maskable.js b/src/mixins/maskable.js index 7d0f7a071aa..f209a31b137 100644 --- a/src/mixins/maskable.js +++ b/src/mixins/maskable.js @@ -55,8 +55,8 @@ export default { mask () { if (!this.$refs.input) return - const oldText = this.$refs.input.value || '' - const newText = this.maskText(this.lazyValue || '') + const oldText = this.$refs.input.value + const newText = this.maskText(this.lazyValue) let position = 0 let selection = this.selection diff --git a/src/util/mask.js b/src/util/mask.js index 85d04050edf..4dc7a6ed33a 100755 --- a/src/util/mask.js +++ b/src/util/mask.js @@ -90,6 +90,7 @@ const maskValidates = (mask, char) => { * @return {String} */ export const maskText = (text, masked, dontFillMaskBlanks) => { + if (text == null) return '' text = String(text) if (!masked.length || !text.length) return text if (!Array.isArray(masked)) masked = masked.split('')
3752de23e2f3640b823fd13edd2b901d36d5fa6b
2024-06-20 14:01:52
Kael
chore: remove unused import
false
remove unused import
chore
diff --git a/packages/vuetify/src/components/VExpansionPanel/VExpansionPanel.tsx b/packages/vuetify/src/components/VExpansionPanel/VExpansionPanel.tsx index 45c22192410..4741fad397d 100644 --- a/packages/vuetify/src/components/VExpansionPanel/VExpansionPanel.tsx +++ b/packages/vuetify/src/components/VExpansionPanel/VExpansionPanel.tsx @@ -12,7 +12,7 @@ import { makeRoundedProps, useRounded } from '@/composables/rounded' import { makeTagProps } from '@/composables/tag' // Utilities -import { computed, provide, toRef } from 'vue' +import { computed, provide } from 'vue' import { genericComponent, propsFactory, useRender } from '@/util' export const makeVExpansionPanelProps = propsFactory({
60218ee82cabaf0d6c1f22d64a24c0e32b4e4247
2024-01-18 10:21:32
John Leider
docs(App): add router-view transition
false
add router-view transition
docs
diff --git a/packages/docs/src/App.vue b/packages/docs/src/App.vue index f6008a9bb7a..4f7d2ff0a3f 100644 --- a/packages/docs/src/App.vue +++ b/packages/docs/src/App.vue @@ -1,5 +1,9 @@ <template> - <router-view /> + <router-view v-slot="{ Component }"> + <v-fade-transition appear> + <component :is="Component" /> + </v-fade-transition> + </router-view> </template> <script setup lang="ts">
317e662514f16ee7a8bcfb3261112d4e5653e596
2023-12-28 06:56:20
John Leider
docs(VCalendar): setup calendar api links and fix related pages
false
setup calendar api links and fix related pages
docs
diff --git a/packages/docs/src/data/page-to-api.json b/packages/docs/src/data/page-to-api.json index 4dc53bca884..249283e354d 100644 --- a/packages/docs/src/data/page-to-api.json +++ b/packages/docs/src/data/page-to-api.json @@ -38,7 +38,12 @@ "VBtnToggle" ], "components/calendars": [ - "VCalendar" + "VCalendar", + "VCalendarDay", + "VCalendarHeader", + "VCalendarInterval", + "VCalendarIntervalEvent", + "VCalendarMonthDay" ], "components/cards": [ "VCard", diff --git a/packages/docs/src/pages/en/components/calendars.md b/packages/docs/src/pages/en/components/calendars.md index 58e08e6517c..0281a73d8ee 100644 --- a/packages/docs/src/pages/en/components/calendars.md +++ b/packages/docs/src/pages/en/components/calendars.md @@ -6,9 +6,9 @@ meta: description: The calendar component is a clean and simple adaptation to the popular Google Calendar application. keywords: calendars, vuetify calendar component, vue calendar component related: - - /components/date-pickers - - /components/time-pickers - - /components/cards + - /components/date-pickers/ + - /features/dates/ + - /components/cards/ features: github: /labs/VCalendar/ label: 'C: VCalendar' diff --git a/packages/docs/src/pages/en/labs/introduction.md b/packages/docs/src/pages/en/labs/introduction.md index 841a7435e71..265b541fe3d 100644 --- a/packages/docs/src/pages/en/labs/introduction.md +++ b/packages/docs/src/pages/en/labs/introduction.md @@ -74,13 +74,12 @@ The following is a list of available and up-and-coming components for use with L | Component | Description | Min Version | | - | - | - | -| **Calendar** | [Usage](/components/calendars/) | [v3.3.9](/getting-started/release-notes/?version=v3.3.9) | -| [v-calendar](/api/v-calendar/) | Primary Component | — | ### Up Next | Component | Release Target | | - | - | +| v-calendar | ~~Q1~~ ~~Q2~~ Soon™️ 2023 | | v-fab | Q1 2024 | | v-split-btn | Q1 2024 | | v-speed-dial | Q1 2024 |
ad20af6e5d6b054897e587a7e57110a72151ba89
2020-09-09 17:54:41
dependabot[bot]
chore(deps): bump http-proxy from 1.17.0 to 1.18.1 (#12198)
false
bump http-proxy from 1.17.0 to 1.18.1 (#12198)
chore
diff --git a/yarn.lock b/yarn.lock index 297329f11ce..0f1b46ee1bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4684,7 +4684,7 @@ [email protected], debug@=3.1.0: dependencies: ms "2.0.0" -debug@^3.1.0, debug@^3.2.5, debug@^3.2.6: +debug@^3.1.0, debug@^3.2.5: version "3.2.6" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== @@ -5554,11 +5554,16 @@ event-source-polyfill@^1.0.7: resolved "https://registry.yarnpkg.com/event-source-polyfill/-/event-source-polyfill-1.0.9.tgz#1fe3ebf8e3faddafd4fc237424f5e5ab2706b6d0" integrity sha512-+x0BMKTYwZcmGmlkHK0GsXkX1+otfEwqu3QitN0wmWuHaZniw3HeIx1k5OjWX3JUHQHlPS4yONol6eokS1ZAWg== -eventemitter3@^3.0.0, eventemitter3@^3.1.0: +eventemitter3@^3.1.0: version "3.1.2" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.2.tgz#2d3d48f9c346698fce83a85d7d664e98535df6e7" integrity sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q== +eventemitter3@^4.0.0: + version "4.0.7" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== + events@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" @@ -6022,11 +6027,9 @@ [email protected]: debug "=3.1.0" follow-redirects@^1.0.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.7.0.tgz#489ebc198dc0e7f64167bd23b03c4c19b5784c76" - integrity sha512-m/pZQy4Gj287eNy94nivy5wchN3Kp+Q5WgUPNy5lJSZ3sgkVKSYV/ZChMAQVIgx1SqfZ2zBZtPA2YlXIWxxJOQ== - dependencies: - debug "^3.2.6" + version "1.13.0" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.0.tgz#b42e8d93a2a7eea5ed88633676d6597bc8e384db" + integrity sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA== for-in@^0.1.3: version "0.1.8" @@ -6866,11 +6869,11 @@ http-proxy-middleware@^0.19.1: micromatch "^3.1.10" http-proxy@^1.17.0: - version "1.17.0" - resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.17.0.tgz#7ad38494658f84605e2f6db4436df410f4e5be9a" - integrity sha512-Taqn+3nNvYRfJ3bGvKfBSRwy1v6eePlm3oc/aWVxZp57DQr5Eq3xhKJi7Z4hZpS8PC3H4qI+Yly5EmFacGuA/g== + version "1.18.1" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" + integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== dependencies: - eventemitter3 "^3.0.0" + eventemitter3 "^4.0.0" follow-redirects "^1.0.0" requires-port "^1.0.0"
941a80ebf3895d33d3f98c41699437a1bc19bb7d
2023-12-08 20:46:10
John Leider
docs(App): partial revert to auth verify process
false
partial revert to auth verify process
docs
diff --git a/packages/docs/src/App.vue b/packages/docs/src/App.vue index c7c1a7c0e6d..4ca479a7444 100644 --- a/packages/docs/src/App.vue +++ b/packages/docs/src/App.vue @@ -69,7 +69,7 @@ if (IN_BROWSER) { let media: MediaQueryList - if (!auth.user && auth.lastLoginProvider()) auth.verify() + auth.verify() watch(() => user.theme, val => { if (val === 'system') {
5d958d6136636d48c294687aae88e43c468c173d
2020-06-23 00:42:22
Heather Hill
docs(content.md): convert existing documentation page
false
convert existing documentation page
docs
diff --git a/packages/docs-next/src/pages/en/styles/content.md b/packages/docs-next/src/pages/en/styles/content.md index 065f2ef94db..90db64248f0 100644 --- a/packages/docs-next/src/pages/en/styles/content.md +++ b/packages/docs-next/src/pages/en/styles/content.md @@ -3,76 +3,37 @@ meta: title: Content styles description: Vuetify provides custom styling for various HTML elements. keywords: content, html, markup +related: + - /styles/typography/ + - /styles/alignment/ --- # Content -Component description -<entry-ad /> - -## Usage - -Usage text - -`<usage name="" />` -- **name**: component name -- eg: `<usage name="v-alert" />` - -## API - -- [API Page Link]() - -## Sub-Components - -Omit if none - -### Sub Component 1 - -Sub component text +Vuetify has custom styling for multiple standard elements. -### Sub Component 2 - -Sub component text - -## Caveats - -Omit if none - -<alert type="success">Success Caveat</alert> -<alert type="info">Info Caveat</alert> -<alert type="warning">Warning Caveat</alert> -<alert type="error">Error Caveat</alert> - -## Examples - -Example text. - -### Props - -Omit if none +<entry-ad /> -### Events +## Block quote -Omit if none +> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Harum maiores modi quidem veniam, expedita quis laboriosam, ullam facere adipisci, iusto, voluptate sapiente corrupti asperiores rem nemo numquam fuga ab at. {.blockquote} -### Slots +## Paragraphs -Omit if none +Lorem ipsum dolor sit amet, consectetur adipisicing elit. Harum maiores modi quidem veniam, expedita quis laboriosam, ullam facere adipisci, iusto, voluptate sapiente corrupti asperiores rem nemo numquam fuga ab at. -#### Misc +Lorem ipsum dolor sit amet, consectetur adipisicing elit. Harum maiores modi quidem veniam, expedita quis laboriosam, ullam facere adipisci, iusto, voluptate sapiente corrupti asperiores rem nemo numquam fuga ab at. -Omit if none +## Code -#### Example Header +Example of an inline `<code>` element. -Example description +## Variables -`<example file="" />` -- **file**: `<component>/<type>-<propname>` -- eg: `<example file="v-alert/prop-colored-border" />` +<var>v</var> = <var>u</var> * <var>e</var> -## Accessibility +## User input -Accessibility text - omit if none +To install Vuetify, type <kbd>npm install vuetify</kbd> into your console. Once complete, type <kbd>cd `<project name>`</kbd> and run <kbd>npm install</kbd> <doc-footer />
bdd10cfe940ae40ec401b477a825bf85e4b558b6
2022-11-30 01:58:39
John Leider
chore(release): publish v3.0.3
false
publish v3.0.3
chore
diff --git a/lerna.json b/lerna.json index e0b014f4e35..0d5638b5889 100644 --- a/lerna.json +++ b/lerna.json @@ -13,6 +13,6 @@ } }, "npmClient": "yarn", - "version": "3.0.2", + "version": "3.0.3", "useWorkspaces": true } diff --git a/packages/api-generator/package.json b/packages/api-generator/package.json index 873481ab96d..9136d1bc051 100755 --- a/packages/api-generator/package.json +++ b/packages/api-generator/package.json @@ -1,6 +1,6 @@ { "name": "@vuetify/api-generator", - "version": "3.0.2", + "version": "3.0.3", "private": true, "description": "", "scripts": { @@ -17,7 +17,7 @@ "ts-morph": "^16.0.0", "ts-node": "^10.9.1", "vue": "^3.2.38", - "vuetify": "^3.0.2" + "vuetify": "^3.0.3" }, "devDependencies": { "@babel/node": "^7.17.10" diff --git a/packages/docs/package.json b/packages/docs/package.json index 534d7330454..c6fc6568527 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -3,7 +3,7 @@ "description": "A Vue.js project", "private": true, "author": "John Leider <[email protected]>", - "version": "3.0.2", + "version": "3.0.3", "repository": { "type": "git", "url": "git+https://github.com/vuetifyjs/vuetify.git", @@ -34,7 +34,7 @@ "vue-gtag-next": "^1.14.0", "vue-i18n": "^9.2.2", "vue-prism-component": "^2.0.0", - "vuetify": "^3.0.2" + "vuetify": "^3.0.3" }, "devDependencies": { "@emailjs/browser": "^3.9.1", @@ -46,7 +46,7 @@ "@vitejs/plugin-basic-ssl": "^0.1.2", "@vitejs/plugin-vue": "^3.0.3", "@vue/compiler-sfc": "^3.2.38", - "@vuetify/api-generator": "^3.0.2", + "@vuetify/api-generator": "^3.0.3", "@vuetify/vite-ssg": "^0.19.0", "ajv": "^8.11.0", "emailjs-com": "^3.2.0", diff --git a/packages/vuetify/package.json b/packages/vuetify/package.json index dc0b10b752a..8d3ec6a43f5 100755 --- a/packages/vuetify/package.json +++ b/packages/vuetify/package.json @@ -1,7 +1,7 @@ { "name": "vuetify", "description": "Vue Material Component Framework", - "version": "3.0.2", + "version": "3.0.3", "author": { "name": "John Leider", "email": "[email protected]"
5eb7f17dec993b087ea86f173b92be20e9240b9c
2020-07-07 00:30:24
Robbin Baauw
docs(calendars): migrate page (#99)
false
migrate page (#99)
docs
diff --git a/packages/docs-next/build/api-gen/locale/en/v-calendar.json b/packages/docs-next/build/api-gen/locale/en/v-calendar.json index 451ec5cc425..de24e85966f 100644 --- a/packages/docs-next/build/api-gen/locale/en/v-calendar.json +++ b/packages/docs-next/build/api-gen/locale/en/v-calendar.json @@ -1,19 +1,156 @@ { "props": { - "empty": "" - // add prop lang here + "empty": "", + "categories": "Specifies what categories to display in the `category` view. This controls the order of the categories as well. If the calendar uses events any categories specified in those events not specified in this value are dynamically rendered in the view unless `category-hide-dynamic` is true.", + "categoryHideDynamic": "Sets whether categories specified in an event should be hidden if it's not defined in `categories`.", + "categoryShowAll": "Set whether the `category` view should show all defined `categories` even if there are no events for a category.", + "categoryForInvalid": "The category to place events in that have invalid categories. A category is invalid when it is not a string. By default events without a category are not displayed until this value is specified.", + "categoryDays": "The number of days to render in the `category` view.", + "dayFormat": "Formats day of the month string that appears in a day to a specified locale", + "end": "The ending date on the calendar (inclusive) in the format of `YYYY-MM-DD`. This may be ignored depending on the `type` of the calendar.", + "eventCategory": "Set property of *event*'s category. Instead of a property a function can be given which takes an event and returns the category.", + "eventColor": "A background color for all events or a function which accepts an event object passed to the calendar to return a color.", + "eventEnd": "Set property of *event*'s end timestamp.", + "eventHeight": "The height of an event in pixels in the `month` view and at the top of the `day` views.", + "eventMarginBottom": "Margin bottom for event", + "eventMore": "Whether the more 'button' is displayed on a calendar with too many events in a given day. It will say something like '5 more' and when clicked generates a `click:more` event.", + "eventMoreText": "The text to display in the more 'button' given the number of hidden events.", + "eventName": "Set property of *event*'s displayed name, or a function which accepts an event object passed to the calendar as the first argument and a flag signalling whether the name is for a timed event (true) or an event over a day.", + "eventOverlapMode": "One of `stack`, `column`, or a custom render function", + "eventOverlapThreshold": "A value in minutes that's used to determine whether two timed events should be placed in column beside each other or should be treated as slightly overlapping events.", + "eventRipple": "Applies the `v-ripple` directive.", + "events": "An array of event objects with a property for a start timestamp and optionally a name and end timestamp. If an end timestamp is not given, the value of start will be used. If no name is given, you must provide an implementation for the `event` slot.", + "eventStart": "Set property of *event*'s start timestamp.", + "eventTextColor": "A text color for all events or a function which accepts an event object passed to the calendar to return a color.", + "eventTimed": "If Dates or milliseconds are used as the start or end timestamp of an event, this prop can be a string to a property on the event that is truthy if the event is a timed event or a function which takes the event and returns a truthy value if the event is a timed event.", + "firstInterval": "The first interval to display in the `day` view. If `intervalMinutes` is set to 60 and this is set to 9 the first time in the view is 9am.", + "firstTime": "The first time to display in the `day` view. If specified, this overwrites any `firstInterval` value specified. This can be the number of minutes since midnight, a string in the format of `HH:mm`, or an object with number properties hour and minute.", + "hideHeader": "If the header at the top of the `day` view should be visible.", + "intervalCount": "The number of intervals to display in the `day` view.", + "intervalFormat": "Formats time of day string that appears in the interval gutter of the `day` and `week` view to specified locale", + "intervalHeight": "The height of an interval in pixels in the `day` view.", + "intervalWidth": "The width of the interval gutter on the left side in the `day` view.", + "intervalMinutes": "The number of minutes the intervals are in the `day` view. A common interval is 60 minutes so the intervals are an hour.", + "intervalStyle": "Returns CSS styling to apply to the interval.", + "locale": "The locale of the calendar.", + "localeFirstDayOfYear": "Sets the day that determines the first week of the year, starting with 0 for **Sunday**. For ISO 8601 this should be 4.", + "maxDays": "The maximum number of days to display in the custom calendar if an `end` day is not set.", + "minWeeks": "The minimum number of weeks to display in the `month` or `week` view.", + "monthFormat": "Formats month string that appears in a day to specified locale", + "now": "Override the day & time which is considered now. This is in the format of `YYYY-MM-DD hh:mm:ss`. The calendar is styled according to now.", + "shortIntervals": "If true, the intervals in the `day` view will be 9 AM as opposed to 09:00 AM", + "shortMonths": "Whether the short versions of a month should be used (Jan vs January).", + "shortWeekdays": "Whether the short versions of a weekday should be used (Mon vs Monday).", + "showIntervalLabel": "Checks if a given day and time should be displayed in the interval gutter of the `day` view.", + "showMonthOnFirst": "Whether the name of the month should be displayed on the first day of the month.", + "showWeek": "Whether weeknumbers should be displayed when using the `month` view.", + "start": "The starting date on the calendar (inclusive) in the format of `YYYY-MM-DD`. This may be ignored depending on the `type` of the calendar.", + "type": "A string which is one of `month`, `week`, `day`, `4day`, `custom-weekly`, `custom-daily`, and `category`. The custom types look at the `start` and `end` dates passed to the component as opposed to the `value`.", + "v-model": "Sets the `value` property but also updates it when the link of a day is clicked.", + "value": "A date in the format of `YYYY-MM-DD` which determines what span of time for the calendar.", + "weekdayFormat": "Formats day of the week string that appears in the header to specified locale", + "weekdays": "Specifies which days of the week to display. To display Monday through Friday only, a value of `[1, 2, 3, 4, 5]` can be used. To display a week starting on Monday a value of `[1, 2, 3, 4, 5, 6, 0]` can be used." }, "slots": { - "empty": "" - // add slot lang here + "empty": "", + "category": "The content placed in a category header for the `category` type. The category variable is null for events with invalid (non-string) categories.", + "day-body": "The content that is placed in a `day` view in the scrollable interval container. The day & time object is passed through this slots scope.", + "day-header": "The content that is placed in a `day` view in the top container. The day & time object is passed through this slots scope.", + "day-label": "The content that is placed in the day of the month space in the `custom-weekly` or `month` view. The day & time object is passed through this slots scope.", + "day-label-header": "The content that is placed in the day of the month space in the `week`, `day`, `4day`, or `custom-daily` view. The day & time object is passed through this slots scope.", + "day-month": "The content that is placed in the month space in the `week` or `month` view. The day & time object is passed through this slots scope.", + "day": "The content that is placed in a `week` or `month` view. The day & time object is passed through this slots scope.", + "event": "The content placed in an event. This ignores the `event-name` prop.", + "interval": "The content that is placed in the interval space in the `day` view. The day & time object is passed through this slots scope.", + "interval-header": "The content that is placed in the interval space in the top left of the `day` view." }, "events": { - "empty": "" - // add event lang here + "empty": "", + "change": "The range of days displayed on the calendar changed. This is triggered on initialization. The event passed is an object with start and end date objects.", + "click:date": "The click event on the day of the month link. The event passed is the day & time object.", + "click:day": "The click event on a day. The event passed is the day object.", + "click:day-category": "The click event on a day in the `category` view. The event passed is the day object.", + "click:event": "The click event on a specific event. The event passed is the day & time object.", + "click:interval": "The click event at a specific interval label in the `day` view. The event passed is the day & time object.", + "click:more": "The click event on the `X more` button on views with too many events in a day.", + "click:time": "The click event at a specific time in the `day` view. The event passed is the day & time object.", + "click:time-category": "The click event at a specific time in the `category` view. The event passed is the day & time object.", + "contextmenu:date": "The right-click event on the day of the month link. The event passed is the day & time object.", + "contextmenu:day": "The right-click event on a day. The event passed is the day object.", + "contextmenu:day-category": "The right-click event on a day in the `category` view. The event passed is the day object.", + "contextmenu:event": "The right-click event on an event. The event passed is the day & time object.", + "contextmenu:interval": "The right-click event at a specific interval label in the `day` view. The event passed is the day & time object.", + "contextmenu:time": "The right-click event at a specific time in the `day` view. The event passed is the day & time object.", + "contextmenu:time-category": "The right-click event at a specific time in the `category` view. The event passed is the day & time object.", + "input": "An alias to the `click:date` event used to support v-model.", + "mousedown:day": "The mousedown event on a day. The event passed is the day object.", + "mousedown:day-category": "The mousedown event on a day in the `category` view. The event passed is the day object.", + "mousedown:event": "The mousedown event on an event. The event passed is the day & time object.", + "mousedown:interval": "The mousedown event at a specific interval label in the `day` view. The event passed is the day & time object.", + "mousedown:time": "The mousedown event at a specific time in the `day` view. The event passed is the day & time object.", + "mousedown:time-category": "The mousedown event at a specific time in the `category` view. The event passed is the day & time object.", + "mouseenter:day": "The mouseenter event on a day. The event passed is the day object.", + "mouseenter:day-category": "The mouseenter event on a day in the `category` view. The event passed is the day object.", + "mouseenter:event": "The mouseenter event on an event. The event passed is the day & time object.", + "mouseenter:interval": "The mouseenter event at a specific interval label in the `day` view. The event passed is the day & time object.", + "mouseenter:time": "The mouseenter event at a specific time in the `day` view. The event passed is the day & time object.", + "mouseenter:time-category": "The mouseenter event at a specific time in the `category` view. The event passed is the day & time object.", + "mouseleave:day": "The mouseleave event on a day. The event passed is the day object.", + "mouseleave:day-category": "The mouseleave event on a day in the `category` view. The event passed is the day object.", + "mouseleave:event": "The mouseleave event on an event. The event passed is the day & time object.", + "mouseleave:interval": "The mouseleave event at a specific interval label in the `day` view. The event passed is the day & time object.", + "mouseleave:time": "The mouseleave event at a specific time in the `day` view. The event passed is the day & time object.", + "mouseleave:time-category": "The mouseleave event at a specific time in the `category` view. The event passed is the day & time object.", + "mousemove:day": "The mousemove event on a day. The event passed is the day object.", + "mousemove:day-category": "The mousemove event on a day in the `category` view. The event passed is the day object.", + "mousemove:event": "The mousemove event on an event. The event passed is the day & time object.", + "mousemove:interval": "The mousemove event at a specific interval label in the `day` view. The event passed is the day & time object.", + "mousemove:time": "The mousemove event at a specific time in the `day` view. The event passed is the day & time object.", + "mousemove:time-category": "The mousemove event at a specific time in the `category` view. The event passed is the day & time object.", + "mouseup:day": "The mouseup event on a day. The event passed is the day object.", + "mouseup:day-category": "The mouseup event on a day in the `category` view. The event passed is the day object.", + "mouseup:event": "The mouseup event on an event. The event passed is the day & time object.", + "mouseup:interval": "The mouseup event at a specific interval label in the `day` view. The event passed is the day & time object.", + "mouseup:time": "The mouseup event at a specific time in the `day` view. The event passed is the day & time object.", + "mouseup:time-category": "The mouseup event at a specific time in the `category` view. The event passed is the day & time object.", + "moved": "One of the functions `next`, `prev`, and `move` was called. The event passed is the day object calculated for the movement.", + "touchend:day": "The touchend event on a day. The event passed is the day object.", + "touchend:day-category": "The touchend event on a day in the `category` view. The event passed is the day object.", + "touchend:event": "The touchend event on am view. The event passed is the day & time object.", + "touchend:interval": "The touchend event at a specific interval label in the `day` view. The event passed is the day & time object.", + "touchend:time": "The touchend event at a specific time in the `day` view. The event passed is the day & time object.", + "touchend:time-category": "The touchend event at a specific time in the `category` view. The event passed is the day & time object.", + "touchmove:day": "The touchmove event on a day. The event passed is the day object.", + "touchmove:day-category": "The touchmove event on a day in the `category` view. The event passed is the day object.", + "touchmove:event": "The touchmove event on an `event` view. The event passed is the day & time object.", + "touchmove:interval": "The touchmove event at a specific interval label in the `day` view. The event passed is the day & time object.", + "touchmove:time": "The touchmove event at a specific time in the `day` view. The event passed is the day & time object.", + "touchmove:time-category": "The touchmove event at a specific time in the `category` view. The event passed is the day & time object.", + "touchstart:day": "The touchstart event on a day. The event passed is the day object.", + "touchstart:day-category": "The touchstart event on a day in the `category` view. The event passed is the day object.", + "touchstart:event": "The touchstart event on an event` view. The event passed is the day & time object.", + "touchstart:interval": "The touchstart event at a specific interval label in the `day` view. The event passed is the day & time object.", + "touchstart:time": "The touchstart event at a specific time in the `day` view. The event passed is the day & time object.", + "touchstart:time-category": "The touchstart event at a specific time in the `category` view. The event passed is the day & time object." }, "functions": { - "empty": "" - // add function lang here + "empty": "", + "checkChange": "Checks for change in start and end dates. Updates and emits a change event if they have changed.", + "formatTime": "A utility function to take a timestamp object (at least has hour and minute properties) and generates a time as a string.", + "getFormatter": "A utility function given options to pass to Intl.DateTimeFormat and returns a function which can be given a Date to format as a string.", + "minutesToPixels": "Converts minutes to a pixel value on the y-axis for the `day` view. If the view is not `day` then -1 is returned.", + "move": "A generic function that moves the calendar next (if amount is positive) or previous (if amount is negative).", + "next": "Triggers the input event with a date that would progress the calendar to the next timespan. If the type is `month` it will return a day in the next month, if the type is `4day` it will return a date 4 days after `value`/`v-model`, etc.", + "prev": "Triggers the input event with a date that would progress the calendar to the previous timespan. If the type is `month` it will return a day in the previous month, if the type is `4day` it will return a date 4 days before `value`/`v-model`, etc.", + "scrollToTime": "Scrolls the scrollable area in the `day` view to the given time. If the time is not in a valid format or if the calendar is not in the `day` view then false is returned.", + "timeToY": "Converts a time to a pixel value on the y-axis for the `day` view. If the time is not in a valid format or if the calendar is not in the `day` view then false is returned.", + "timeDelta": "Converts a time to a delta value for the `day` view. If the time is not in a valid format or if the calendar is not in the `day` view then false is returned. A delta value is typically between 0 and 1. If the time given is before the first interval then a negative number will be returned. If the time given is after the last interval than a number greater than 1 will be returned.", + "updateEventVisibility": "If the calendar has events and `event-more` is truthy the days with too many events contain a 'button' to represent how many events had to be hidden.", + "updateTimes": "Updates now & today in the calendar, possibly updating the styles in the calendar.", + "getVisibleEvents": "Returns the list of events seen on the current calendar where each element returned has the following properties:<br>- `input`: the event passed in the `events` prop.<br>- `start`: a CalendarTimestamp of the start timestamp parsed.<br>- `startIdentifier`: a number which represents the day the event starts on.<br>- `startTimestampIdentifier`: a number which represents the day and time the event starts on.<br>- `end`: a CalendarTimestamp of the end timestamp parsed.<br>- `endIdentifier`: a number which represents the day the event ends on.<br>- `endTimestampIdentifier`: a number which represents the day & time the event ends on.<br>- `allDay`: if this is an all-day event (has no time specified in the `start`/`end` on the event).<br>- `index`: the index of the event in the given array.<br>- `category`: the category of the event if the calendar type is category, otherwise false.", + "parseTimestamp": "A utility function which takes timestamp input and returns a timestamp object.", + "timestampToDate": "A utility function which takes timestamp and returns a Date.", + "parseEvent": "A utility function which takes an event and returns the parsed version of that event." }, "sass": { "empty": "" diff --git a/packages/docs-next/src/examples/v-calendar/event-click.vue b/packages/docs-next/src/examples/v-calendar/event-click.vue new file mode 100644 index 00000000000..344c9974318 --- /dev/null +++ b/packages/docs-next/src/examples/v-calendar/event-click.vue @@ -0,0 +1,223 @@ +<template> + <v-row class="fill-height"> + <v-col> + <v-sheet height="64"> + <v-toolbar + flat + color="white" + > + <v-btn + outlined + class="mr-4" + color="grey darken-2" + @click="setToday" + > + Today + </v-btn> + <v-btn + fab + text + small + color="grey darken-2" + @click="prev" + > + <v-icon small> + mdi-chevron-left + </v-icon> + </v-btn> + <v-btn + fab + text + small + color="grey darken-2" + @click="next" + > + <v-icon small> + mdi-chevron-right + </v-icon> + </v-btn> + <v-toolbar-title v-if="$refs.calendar"> + {{ $refs.calendar.title }} + </v-toolbar-title> + <v-spacer></v-spacer> + <v-menu + bottom + right + > + <template v-slot:activator="{ on, attrs }"> + <v-btn + outlined + color="grey darken-2" + v-bind="attrs" + v-on="on" + > + <span>{{ typeToLabel[type] }}</span> + <v-icon right> + mdi-menu-down + </v-icon> + </v-btn> + </template> + <v-list> + <v-list-item @click="type = 'day'"> + <v-list-item-title>Day</v-list-item-title> + </v-list-item> + <v-list-item @click="type = 'week'"> + <v-list-item-title>Week</v-list-item-title> + </v-list-item> + <v-list-item @click="type = 'month'"> + <v-list-item-title>Month</v-list-item-title> + </v-list-item> + <v-list-item @click="type = '4day'"> + <v-list-item-title>4 days</v-list-item-title> + </v-list-item> + </v-list> + </v-menu> + </v-toolbar> + </v-sheet> + <v-sheet height="600"> + <v-calendar + ref="calendar" + v-model="focus" + color="primary" + :events="events" + :event-color="getEventColor" + :type="type" + @click:event="showEvent" + @click:more="viewDay" + @click:date="viewDay" + @change="updateRange" + ></v-calendar> + <v-menu + v-model="selectedOpen" + :close-on-content-click="false" + :activator="selectedElement" + offset-x + > + <v-card + color="grey lighten-4" + min-width="350px" + flat + > + <v-toolbar + :color="selectedEvent.color" + dark + > + <v-btn icon> + <v-icon>mdi-pencil</v-icon> + </v-btn> + <v-toolbar-title v-html="selectedEvent.name"></v-toolbar-title> + <v-spacer></v-spacer> + <v-btn icon> + <v-icon>mdi-heart</v-icon> + </v-btn> + <v-btn icon> + <v-icon>mdi-dots-vertical</v-icon> + </v-btn> + </v-toolbar> + <v-card-text> + <span v-html="selectedEvent.details"></span> + </v-card-text> + <v-card-actions> + <v-btn + text + color="secondary" + @click="selectedOpen = false" + > + Cancel + </v-btn> + </v-card-actions> + </v-card> + </v-menu> + </v-sheet> + </v-col> + </v-row> +</template> + +<script> + export default { + data: () => ({ + focus: '', + type: 'month', + typeToLabel: { + month: 'Month', + week: 'Week', + day: 'Day', + '4day': '4 Days', + }, + selectedEvent: {}, + selectedElement: null, + selectedOpen: false, + events: [], + colors: ['blue', 'indigo', 'deep-purple', 'cyan', 'green', 'orange', 'grey darken-1'], + names: ['Meeting', 'Holiday', 'PTO', 'Travel', 'Event', 'Birthday', 'Conference', 'Party'], + }), + mounted () { + this.$refs.calendar.checkChange() + }, + methods: { + viewDay ({ date }) { + this.focus = date + this.type = 'day' + }, + getEventColor (event) { + return event.color + }, + setToday () { + this.focus = '' + }, + prev () { + this.$refs.calendar.prev() + }, + next () { + this.$refs.calendar.next() + }, + showEvent ({ nativeEvent, event }) { + const open = () => { + this.selectedEvent = event + this.selectedElement = nativeEvent.target + setTimeout(() => { + this.selectedOpen = true + }, 10) + } + + if (this.selectedOpen) { + this.selectedOpen = false + setTimeout(open, 10) + } else { + open() + } + + nativeEvent.stopPropagation() + }, + updateRange ({ start, end }) { + const events = [] + + const min = new Date(`${start.date}T00:00:00`) + const max = new Date(`${end.date}T23:59:59`) + const days = (max.getTime() - min.getTime()) / 86400000 + const eventCount = this.rnd(days, days + 20) + + for (let i = 0; i < eventCount; i++) { + const allDay = this.rnd(0, 3) === 0 + const firstTimestamp = this.rnd(min.getTime(), max.getTime()) + const first = new Date(firstTimestamp - (firstTimestamp % 900000)) + const secondTimestamp = this.rnd(2, allDay ? 288 : 8) * 900000 + const second = new Date(first.getTime() + secondTimestamp) + + events.push({ + name: this.names[this.rnd(0, this.names.length - 1)], + start: first, + end: second, + color: this.colors[this.rnd(0, this.colors.length - 1)], + timed: !allDay, + }) + } + + this.events = events + }, + rnd (a, b) { + return Math.floor((b - a + 1) * Math.random()) + a + }, + }, + } +</script> diff --git a/packages/docs-next/src/examples/v-calendar/misc-drag-and-drop.vue b/packages/docs-next/src/examples/v-calendar/misc-drag-and-drop.vue new file mode 100644 index 00000000000..986ca305713 --- /dev/null +++ b/packages/docs-next/src/examples/v-calendar/misc-drag-and-drop.vue @@ -0,0 +1,223 @@ +<template> + <v-row class="fill-height"> + <v-col> + <v-sheet height="600"> + <v-calendar + ref="calendar" + v-model="value" + color="primary" + type="4day" + :events="events" + :event-color="getEventColor" + :event-ripple="false" + @change="getEvents" + @mousedown:event="startDrag" + @mousedown:time="startTime" + @mousemove:time="mouseMove" + @mouseup:time="endDrag" + @mouseleave.native="cancelDrag" + > + <template #event="{ event, timed, eventSummary }"> + <div + class="v-event-draggable" + v-html="eventSummary()" + ></div> + <div + v-if="timed" + class="v-event-drag-bottom" + @mousedown.stop="extendBottom(event)" + ></div> + </template> + </v-calendar> + </v-sheet> + </v-col> + </v-row> +</template> + +<script> + export default { + data: () => ({ + value: '', + events: [], + colors: ['#2196F3', '#3F51B5', '#673AB7', '#00BCD4', '#4CAF50', '#FF9800', '#757575'], + names: ['Meeting', 'Holiday', 'PTO', 'Travel', 'Event', 'Birthday', 'Conference', 'Party'], + dragEvent: null, + dragStart: null, + createEvent: null, + createStart: null, + extendOriginal: null, + }), + methods: { + startDrag ({ event, timed }) { + if (event && timed) { + this.dragEvent = event + this.dragTime = null + this.extendOriginal = null + } + }, + startTime (tms) { + const mouse = this.toTime(tms) + + if (this.dragEvent && this.dragTime === null) { + const start = this.dragEvent.start + + this.dragTime = mouse - start + } else { + this.createStart = this.roundTime(mouse) + this.createEvent = { + name: `Event #${this.events.length}`, + color: this.rndElement(this.colors), + start: this.createStart, + end: this.createStart, + timed: true, + } + + this.events.push(this.createEvent) + } + }, + extendBottom (event) { + this.createEvent = event + this.createStart = event.start + this.extendOriginal = event.end + }, + mouseMove (tms) { + const mouse = this.toTime(tms) + + if (this.dragEvent && this.dragTime !== null) { + const start = this.dragEvent.start + const end = this.dragEvent.end + const duration = end - start + const newStartTime = mouse - this.dragTime + const newStart = this.roundTime(newStartTime) + const newEnd = newStart + duration + + this.dragEvent.start = newStart + this.dragEvent.end = newEnd + } else if (this.createEvent && this.createStart !== null) { + const mouseRounded = this.roundTime(mouse, false) + const min = Math.min(mouseRounded, this.createStart) + const max = Math.max(mouseRounded, this.createStart) + + this.createEvent.start = min + this.createEvent.end = max + } + }, + endDrag () { + this.dragTime = null + this.dragEvent = null + this.createEvent = null + this.createStart = null + this.extendOriginal = null + }, + cancelDrag () { + if (this.createEvent) { + if (this.extendOriginal) { + this.createEvent.end = this.extendOriginal + } else { + const i = this.events.indexOf(this.createEvent) + if (i !== -1) { + this.events.splice(i, 1) + } + } + } + + this.createEvent = null + this.createStart = null + this.dragTime = null + this.dragEvent = null + }, + roundTime (time, down = true) { + const roundTo = 15 // minutes + const roundDownTime = roundTo * 60 * 1000 + + return down + ? time - time % roundDownTime + : time + (roundDownTime - (time % roundDownTime)) + }, + toTime (tms) { + return new Date(tms.year, tms.month - 1, tms.day, tms.hour, tms.minute).getTime() + }, + getEventColor (event) { + const rgb = parseInt(event.color.substring(1), 16) + const r = (rgb >> 16) & 0xFF + const g = (rgb >> 8) & 0xFF + const b = (rgb >> 0) & 0xFF + + return event === this.dragEvent + ? `rgba(${r}, ${g}, ${b}, 0.7)` + : event === this.createEvent + ? `rgba(${r}, ${g}, ${b}, 0.7)` + : event.color + }, + getEvents ({ start, end }) { + const events = [] + + const min = new Date(`${start.date}T00:00:00`).getTime() + const max = new Date(`${end.date}T23:59:59`).getTime() + const days = (max - min) / 86400000 + const eventCount = this.rnd(days, days + 20) + + for (let i = 0; i < eventCount; i++) { + const timed = this.rnd(0, 3) !== 0 + const firstTimestamp = this.rnd(min, max) + const secondTimestamp = this.rnd(2, timed ? 8 : 288) * 900000 + const start = firstTimestamp - (firstTimestamp % 900000) + const end = start + secondTimestamp + + events.push({ + name: this.rndElement(this.names), + color: this.rndElement(this.colors), + start, + end, + timed, + }) + } + + this.events = events + }, + rnd (a, b) { + return Math.floor((b - a + 1) * Math.random()) + a + }, + rndElement (arr) { + return arr[this.rnd(0, arr.length - 1)] + }, + }, + } +</script> + +<style scoped lang="scss"> +.v-event-draggable { + padding-left: 6px; +} + +.v-event-timed { + user-select: none; + -webkit-user-select: none; +} + +.v-event-drag-bottom { + position: absolute; + left: 0; + right: 0; + bottom: 4px; + height: 4px; + cursor: ns-resize; + + &::after { + display: none; + position: absolute; + left: 50%; + height: 4px; + border-top: 1px solid white; + border-bottom: 1px solid white; + width: 16px; + margin-left: -8px; + opacity: 0.8; + content: ''; + } + + &:hover::after { + display: block; + } +} +</style> diff --git a/packages/docs-next/src/examples/v-calendar/prop-type-category.vue b/packages/docs-next/src/examples/v-calendar/prop-type-category.vue new file mode 100644 index 00000000000..c295d9607cf --- /dev/null +++ b/packages/docs-next/src/examples/v-calendar/prop-type-category.vue @@ -0,0 +1,119 @@ +<template> + <v-row class="fill-height"> + <v-col> + <v-sheet height="64"> + <v-toolbar + flat + color="white" + > + <v-btn + outlined + class="mr-4" + color="grey darken-2" + @click="setToday" + > + Today + </v-btn> + <v-btn + fab + text + small + color="grey darken-2" + @click="prev" + > + <v-icon small> + mdi-chevron-left + </v-icon> + </v-btn> + <v-btn + fab + text + small + color="grey darken-2" + @click="next" + > + <v-icon small> + mdi-chevron-right + </v-icon> + </v-btn> + <v-toolbar-title v-if="$refs.calendar"> + {{ $refs.calendar.title }} + </v-toolbar-title> + <v-spacer></v-spacer> + </v-toolbar> + </v-sheet> + <v-sheet height="600"> + <v-calendar + ref="calendar" + v-model="focus" + color="primary" + type="category" + category-show-all + :categories="categories" + :events="events" + :event-color="getEventColor" + @change="fetchEvents" + ></v-calendar> + </v-sheet> + </v-col> + </v-row> +</template> + +<script> + export default { + data: () => ({ + focus: '', + events: [], + colors: ['blue', 'indigo', 'deep-purple', 'cyan', 'green', 'orange', 'grey darken-1'], + names: ['Meeting', 'Holiday', 'PTO', 'Travel', 'Event', 'Birthday', 'Conference', 'Party'], + categories: ['John Smith', 'Tori Walker'], + }), + mounted () { + this.$refs.calendar.checkChange() + }, + methods: { + getEventColor (event) { + return event.color + }, + setToday () { + this.focus = '' + }, + prev () { + this.$refs.calendar.prev() + }, + next () { + this.$refs.calendar.next() + }, + fetchEvents ({ start, end }) { + const events = [] + + const min = new Date(`${start.date}T00:00:00`) + const max = new Date(`${end.date}T23:59:59`) + const days = (max.getTime() - min.getTime()) / 86400000 + const eventCount = this.rnd(days, days + 20) + + for (let i = 0; i < eventCount; i++) { + const allDay = this.rnd(0, 3) === 0 + const firstTimestamp = this.rnd(min.getTime(), max.getTime()) + const first = new Date(firstTimestamp - (firstTimestamp % 900000)) + const secondTimestamp = this.rnd(2, allDay ? 288 : 8) * 900000 + const second = new Date(first.getTime() + secondTimestamp) + + events.push({ + name: this.names[this.rnd(0, this.names.length - 1)], + start: first, + end: second, + color: this.colors[this.rnd(0, this.colors.length - 1)], + timed: !allDay, + category: this.categories[this.rnd(0, this.categories.length - 1)], + }) + } + + this.events = events + }, + rnd (a, b) { + return Math.floor((b - a + 1) * Math.random()) + a + }, + }, + } +</script> diff --git a/packages/docs-next/src/examples/v-calendar/prop-type-day.vue b/packages/docs-next/src/examples/v-calendar/prop-type-day.vue new file mode 100644 index 00000000000..6b42ba4d8cd --- /dev/null +++ b/packages/docs-next/src/examples/v-calendar/prop-type-day.vue @@ -0,0 +1,35 @@ +<template> + <v-row> + <v-col> + <v-sheet height="400"> + <v-calendar + color="primary" + type="day" + > + <template v-slot:day-header="{ present }"> + <template + v-if="present" + class="text-center" + > + Today + </template> + </template> + + <template v-slot:interval="{ hour }"> + <div + class="text-center" + > + {{ hour }} o'clock + </div> + </template> + </v-calendar> + </v-sheet> + </v-col> + </v-row> +</template> + +<script> + export default { + data: () => ({}), + } +</script> diff --git a/packages/docs-next/src/examples/v-calendar/prop-type-week.vue b/packages/docs-next/src/examples/v-calendar/prop-type-week.vue new file mode 100644 index 00000000000..367d1bf73b8 --- /dev/null +++ b/packages/docs-next/src/examples/v-calendar/prop-type-week.vue @@ -0,0 +1,68 @@ +<template> + <v-row> + <v-col> + <v-sheet height="400"> + <v-calendar + ref="calendar" + :now="today" + :value="today" + :events="events" + color="primary" + type="week" + ></v-calendar> + </v-sheet> + </v-col> + </v-row> +</template> + +<script> + export default { + data: () => ({ + today: '2019-01-08', + events: [ + { + name: 'Weekly Meeting', + start: '2019-01-07 09:00', + end: '2019-01-07 10:00', + }, + { + name: 'Thomas\' Birthday', + start: '2019-01-10', + }, + { + name: 'Mash Potatoes', + start: '2019-01-09 12:30', + end: '2019-01-09 15:30', + }, + ], + }), + mounted () { + this.$refs.calendar.scrollToTime('08:00') + }, + } +</script> + +<style scoped> +.my-event { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + border-radius: 2px; + background-color: #1867c0; + color: #ffffff; + border: 1px solid #1867c0; + font-size: 12px; + padding: 3px; + cursor: pointer; + margin-bottom: 1px; + left: 4px; + margin-right: 8px; + position: relative; +} + +.my-event.with-time { + position: absolute; + right: 4px; + margin-right: 0px; +} +</style> diff --git a/packages/docs-next/src/examples/v-calendar/slot-day-body.vue b/packages/docs-next/src/examples/v-calendar/slot-day-body.vue new file mode 100644 index 00000000000..b00867f7b8a --- /dev/null +++ b/packages/docs-next/src/examples/v-calendar/slot-day-body.vue @@ -0,0 +1,79 @@ +<template> + <v-row> + <v-col> + <v-sheet height="500"> + <v-calendar + ref="calendar" + v-model="value" + type="week" + > + <template #day-body="{ date, week }"> + <div + class="v-current-time" + :class="{ first: date === week[0].date }" + :style="{ top: nowY }" + ></div> + </template> + </v-calendar> + </v-sheet> + </v-col> + </v-row> +</template> + +<script> + export default { + data: () => ({ + value: '', + ready: false, + }), + computed: { + cal () { + return this.ready ? this.$refs.calendar : null + }, + nowY () { + return this.cal ? this.cal.timeToY(this.cal.times.now) + 'px' : '-10px' + }, + }, + mounted () { + this.ready = true + this.scrollToTime() + this.updateTime() + }, + methods: { + getCurrentTime () { + return this.cal ? this.cal.times.now.hour * 60 + this.cal.times.now.minute : 0 + }, + scrollToTime () { + const time = this.getCurrentTime() + const first = Math.max(0, time - (time % 30) - 30) + + this.cal.scrollToTime(first) + }, + updateTime () { + setInterval(() => this.cal.updateTimes(), 60 * 1000) + }, + }, + } +</script> + +<style lang="scss"> +.v-current-time { + height: 2px; + background-color: #ea4335; + position: absolute; + left: -1px; + right: 0; + pointer-events: none; + + &.first::before { + content: ''; + position: absolute; + background-color: #ea4335; + width: 12px; + height: 12px; + border-radius: 50%; + margin-top: -5px; + margin-left: -6.5px; + } +} +</style> diff --git a/packages/docs-next/src/examples/v-calendar/slot-day.vue b/packages/docs-next/src/examples/v-calendar/slot-day.vue new file mode 100644 index 00000000000..92e2dac0f5d --- /dev/null +++ b/packages/docs-next/src/examples/v-calendar/slot-day.vue @@ -0,0 +1,52 @@ +<template> + <v-row> + <v-col> + <v-sheet height="500"> + <v-calendar + :now="today" + :value="today" + color="primary" + > + <template v-slot:day="{ present, past, date }"> + <v-row + class="fill-height" + > + <template v-if="past && tracked[date]"> + <v-sheet + v-for="(percent, i) in tracked[date]" + :key="i" + :title="category[i]" + :color="colors[i]" + :width="`${percent}%`" + height="100%" + tile + ></v-sheet> + </template> + </v-row> + </template> + </v-calendar> + </v-sheet> + </v-col> + </v-row> +</template> + +<script> + export default { + data: () => ({ + today: '2019-01-10', + tracked: { + '2019-01-09': [23, 45, 10], + '2019-01-08': [10], + '2019-01-07': [0, 78, 5], + '2019-01-06': [0, 0, 50], + '2019-01-05': [0, 10, 23], + '2019-01-04': [2, 90], + '2019-01-03': [10, 32], + '2019-01-02': [80, 10, 10], + '2019-01-01': [20, 25, 10], + }, + colors: ['#1867c0', '#fb8c00', '#000000'], + category: ['Development', 'Meetings', 'Slacking'], + }), + } +</script> diff --git a/packages/docs-next/src/examples/v-calendar/usage.vue b/packages/docs-next/src/examples/v-calendar/usage.vue new file mode 100644 index 00000000000..6d4cfec3069 --- /dev/null +++ b/packages/docs-next/src/examples/v-calendar/usage.vue @@ -0,0 +1,122 @@ +<template> + <div> + <v-sheet + tile + height="54" + color="grey lighten-3" + class="d-flex" + > + <v-btn + icon + class="ma-2" + @click="$refs.calendar.prev()" + > + <v-icon>mdi-chevron-left</v-icon> + </v-btn> + <v-select + v-model="type" + :items="types" + dense + outlined + hide-details + class="ma-2" + label="type" + ></v-select> + <v-select + v-model="mode" + :items="modes" + dense + outlined + hide-details + label="event-overlap-mode" + class="ma-2" + ></v-select> + <v-select + v-model="weekday" + :items="weekdays" + dense + outlined + hide-details + label="weekdays" + class="ma-2" + ></v-select> + <v-spacer></v-spacer> + <v-btn + icon + class="ma-2" + @click="$refs.calendar.next()" + > + <v-icon>mdi-chevron-right</v-icon> + </v-btn> + </v-sheet> + <v-sheet height="600"> + <v-calendar + ref="calendar" + v-model="value" + :weekdays="weekday" + :type="type" + :events="events" + :event-overlap-mode="mode" + :event-overlap-threshold="30" + :event-color="getEventColor" + @change="getEvents" + ></v-calendar> + </v-sheet> + </div> +</template> + +<script> + export default { + data: () => ({ + type: 'month', + types: ['month', 'week', 'day', '4day'], + mode: 'stack', + modes: ['stack', 'column'], + weekday: [0, 1, 2, 3, 4, 5, 6], + weekdays: [ + { text: 'Sun - Sat', value: [0, 1, 2, 3, 4, 5, 6] }, + { text: 'Mon - Sun', value: [1, 2, 3, 4, 5, 6, 0] }, + { text: 'Mon - Fri', value: [1, 2, 3, 4, 5] }, + { text: 'Mon, Wed, Fri', value: [1, 3, 5] }, + ], + value: '', + events: [], + colors: ['blue', 'indigo', 'deep-purple', 'cyan', 'green', 'orange', 'grey darken-1'], + names: ['Meeting', 'Holiday', 'PTO', 'Travel', 'Event', 'Birthday', 'Conference', 'Party'], + }), + methods: { + getEvents ({ start, end }) { + const events = [] + + const min = new Date(`${start.date}T00:00:00`) + const max = new Date(`${end.date}T23:59:59`) + const days = (max.getTime() - min.getTime()) / 86400000 + const eventCount = this.rnd(days, days + 20) + + for (let i = 0; i < eventCount; i++) { + const allDay = this.rnd(0, 3) === 0 + const firstTimestamp = this.rnd(min.getTime(), max.getTime()) + const first = new Date(firstTimestamp - (firstTimestamp % 900000)) + const secondTimestamp = this.rnd(2, allDay ? 288 : 8) * 900000 + const second = new Date(first.getTime() + secondTimestamp) + + events.push({ + name: this.names[this.rnd(0, this.names.length - 1)], + start: first, + end: second, + color: this.colors[this.rnd(0, this.colors.length - 1)], + timed: !allDay, + }) + } + + this.events = events + }, + getEventColor (event) { + return event.color + }, + rnd (a, b) { + return Math.floor((b - a + 1) * Math.random()) + a + }, + }, + } +</script> diff --git a/packages/docs-next/src/pages/en/components/calendars.md b/packages/docs-next/src/pages/en/components/calendars.md index 6eaba7a818c..8d7f64f5246 100644 --- a/packages/docs-next/src/pages/en/components/calendars.md +++ b/packages/docs-next/src/pages/en/components/calendars.md @@ -3,77 +3,95 @@ meta: title: Calendar component description: The calendar component is a clean and simple adaptation to the popular Google Calendar application. keywords: calendars, vuetify calendar component, vue calendar component + related: + - /components/date-pickers + - /components/time-pickers + - /components/cards --- # Calendars -Component description +The `v-calendar` component is used to display information in a daily, weekly, monthly, or category view. The daily view has slots for all day or timed elements, and the weekly and monthly view has a slot for each day. The category view has a slot for each category in the day and timed sections based on the categories given or the categories in the given events. Optionally you can pass in an array of events and they will be rendered over the appropriate days and times. <entry-ad /> ## Usage -Usage text +A calendar has a type and a value which determines what type of calendar is shown over what span of time. This shows the bare minimum configuration, an array of events with **name**, **start** and **end** properties. **end** is optional, it defaults to the **start**. If the **start** has a time it's considered a timed event and will be shown accordingly in the day views. An event can span multiple days and will be rendered accordingly. -`<usage name="" />` -**name**: component name -eg: `<usage name="v-alert" />` +<example file="v-calendar/usage" /> ## API -- [API Page Link](../../api/v-component) +- [v-calendar](../../api/v-calendar) +- [v-calendar-daily](../../api/v-calendar-daily) +- [v-calendar-monthly](../../api/v-calendar-monthly) +- [v-calendar-weekly](../../api/v-calendar-weekly) ## Sub-components -Omit if none +### v-calendar-daily -### Sub Component 1 +v-calendar-daily description -Sub component text +### v-calendar-monthly -### Sub Component 2 +v-calendar-monthly description -Sub component text +### v-calendar-weekly -## Caveats +v-calendar-weekly description -Omit if none +## Examples -<alert type="success">Success Caveat</alert> -<alert type="info">Info Caveat</alert> -<alert type="warning">Warning Caveat</alert> -<alert type="error">Error Caveat</alert> +### Props -## Examples +#### Type category -Example text. +This is an example of an event calendar with a **type** of `category` that allows you to compare two schedules side-by-side. -### Props +<example file="v-calendar/prop-type-category" /> + +#### Type day + +This is an example of calendar with content in each interval slot and a **type** of `day`. + +<example file="v-calendar/prop-type-day" /> + +#### Type week -Omit if none +This is an example of an event calendar with all-day and timed events with a **type** of `week`. + +<example file="v-calendar/prop-type-week" /> ### Events -Omit if none +#### Click + +This is an example of a planner with additional event handlers and external components controlling the display of the calendar. + +<example file="v-calendar/event-click" /> ### Slots -Omit if none +#### Day -### Misc +Slots allow you to define the content for each day, time interval for the daily views, and various labels. -Omit if none +<example file="v-calendar/slot-day" /> -#### Example Header +#### Day body -Example description +Using the `day-body` slot you can customize the calendar content for the day. In this example we add a line for the current time. + +<example file="v-calendar/slot-day-body" /> + +### Misc -`<example file="" />` -**file**: `<component>/<type>-<propname>` -eg: `<example file="v-alert/prop-colored-border" />` +#### Drag and drop -## Accessibility +This is an example of an event calendar where you can drag events, extend their length, and create events. -Accessibility text - omit if none +<example file="v-calendar/misc-drag-and-drop" /> <backmatter />
66d2ad488224e2dd20f2ff9d0be03b4bc5c70028
2019-06-30 06:20:07
John Leider
refactor(VSelect): remove all references to avatar
false
remove all references to avatar
refactor
diff --git a/packages/vuetify/src/components/VSelect/VSelect.ts b/packages/vuetify/src/components/VSelect/VSelect.ts index 4adb9210b79..57d1d43b289 100644 --- a/packages/vuetify/src/components/VSelect/VSelect.ts +++ b/packages/vuetify/src/components/VSelect/VSelect.ts @@ -80,10 +80,6 @@ export default baseMixins.extend<options>().extend({ type: Array, default: () => [], }, - itemAvatar: { - type: [String, Array, Function], - default: 'avatar', - }, itemDisabled: { type: [String, Array, Function], default: 'disabled', @@ -192,7 +188,6 @@ export default baseMixins.extend<options>().extend({ items: this.virtualizedItems, noDataText: this.$vuetify.lang.t(this.noDataText), selectedItems: this.selectedItems, - itemAvatar: this.itemAvatar, itemDisabled: this.itemDisabled, itemValue: this.itemValue, itemText: this.itemText, diff --git a/packages/vuetify/src/components/VSelect/VSelectList.ts b/packages/vuetify/src/components/VSelect/VSelectList.ts index fe6484c11bf..492f82bc58b 100644 --- a/packages/vuetify/src/components/VSelect/VSelectList.ts +++ b/packages/vuetify/src/components/VSelect/VSelectList.ts @@ -48,10 +48,6 @@ export default mixins(Colorable, Themeable).extend({ type: Array, default: () => [], } as PropValidator<any[]>, - itemAvatar: { - type: [String, Array, Function], - default: 'avatar', - } as PropValidator<string | (string | number)[] | ((item: object, fallback?: any) => any)>, itemDisabled: { type: [String, Array, Function], default: 'disabled', @@ -153,13 +149,11 @@ export default mixins(Colorable, Themeable).extend({ genTile ( item: object, disabled = null as null | boolean, - avatar = false, value = false ): VNode | VNode[] | undefined { if (!value) value = this.hasItem(item) if (item === Object(item)) { - avatar = this.getAvatar(item) disabled = disabled !== null ? disabled : this.getDisabled(item) @@ -182,7 +176,6 @@ export default mixins(Colorable, Themeable).extend({ }, props: { activeClass: this.tileActiveClass, - avatar, disabled, ripple: true, inputValue: value, @@ -231,9 +224,6 @@ export default mixins(Colorable, Themeable).extend({ slot![0].componentOptions == null || slot![0].componentOptions.Ctor.options.name !== 'v-list-item' }, - getAvatar (item: object) { - return Boolean(getPropertyFromItem(item, this.itemAvatar, false)) - }, getDisabled (item: object) { return Boolean(getPropertyFromItem(item, this.itemDisabled, false)) },
9eb7ddb8bba216308ae23b28f3c080a613836cdd
2019-09-25 00:27:03
igadmile
fix(VCalendar): fix event-more labels in month view (#8866)
false
fix event-more labels in month view (#8866)
fix
diff --git a/packages/vuetify/src/components/VCalendar/mixins/calendar-with-events.ts b/packages/vuetify/src/components/VCalendar/mixins/calendar-with-events.ts index fc14908d2ba..566ea6e418c 100644 --- a/packages/vuetify/src/components/VCalendar/mixins/calendar-with-events.ts +++ b/packages/vuetify/src/components/VCalendar/mixins/calendar-with-events.ts @@ -145,7 +145,8 @@ export default CalendarBase.extend({ for (let i = 0; i <= last; i++) { if (!hide) { const eventBounds = events[i].getBoundingClientRect() - hide = eventBounds.bottom + eventHeight > parentBounds.bottom && i !== last + hide = (eventBounds.bottom + eventHeight > parentBounds.bottom && i !== last) || + events[i].style.display === 'none' } if (hide) { const id = events[i].getAttribute('data-event') as string
98e5f8108935ccc9cb2f33ce48014aeeb8a37ef8
2023-03-20 17:42:43
Kael
chore: normalize windows paths
false
normalize windows paths
chore
diff --git a/package.json b/package.json index fe12e44c325..662e924e629 100755 --- a/package.json +++ b/package.json @@ -77,6 +77,7 @@ "semver": "^6.2.0", "shelljs": "^0.8.5", "typescript": "^4.9.5", + "upath": "^2.0.1", "vite-plugin-inspect": "^0.6.1", "vue": "^3.2.47", "vue-analytics": "^5.16.1", diff --git a/packages/api-generator/src/index.ts b/packages/api-generator/src/index.ts index e0973f837b4..1ddb9581720 100644 --- a/packages/api-generator/src/index.ts +++ b/packages/api-generator/src/index.ts @@ -1,5 +1,5 @@ import fs from 'fs/promises' -import path from 'path' +import * as path from 'upath' import { components } from 'vuetify/dist/vuetify-labs.js' import importMap from 'vuetify/dist/json/importMap.json' assert { type: 'json' } import importMapLabs from 'vuetify/dist/json/importMap-labs.json' assert { type: 'json' } @@ -15,6 +15,7 @@ import { createWebTypesApi } from './web-types' import inspector from 'inspector' import yargs from 'yargs' import { execSync } from 'child_process' +import { fileURLToPath } from 'url' type TranslationData = { [type in 'props' | 'events' | 'slots' | 'exposed']?: { @@ -63,7 +64,7 @@ const run = async () => { ) } - const outPath = new URL('../../docs/src/api/data/', import.meta.url).pathname + const outPath = fileURLToPath(new URL('../../docs/src/api/data/', import.meta.url)) const componentData = await Promise.all( Object.entries(components).map(([componentName, componentInstance]) => { diff --git a/packages/api-generator/src/utils.ts b/packages/api-generator/src/utils.ts index 770bab24dc4..f27248b7058 100644 --- a/packages/api-generator/src/utils.ts +++ b/packages/api-generator/src/utils.ts @@ -1,3 +1,4 @@ +import { fileURLToPath } from 'url' import stringifyObject from 'stringify-object' import type { Definition, ObjectDefinition } from './types' @@ -97,7 +98,7 @@ export function stringifyProps (props: any) { async function loadLocale (componentName: string, locale: string, fallback = {}): Promise<Record<string, string | Record<string, string>>> { try { - const data = await import(new URL(`../src/locale/${locale}/${componentName}.json`, import.meta.url).pathname, { + const data = await import(fileURLToPath(new URL(`../src/locale/${locale}/${componentName}.json`, import.meta.url)), { assert: { type: 'json' }, }) return Object.assign(fallback, data.default)
cc1a099f65f69d398f22fb64a6cf0081bed2b995
2023-07-19 09:01:39
John Leider
docs(TeamMember): add member join date info
false
add member join date info
docs
diff --git a/packages/docs/src/components/about/TeamMember.vue b/packages/docs/src/components/about/TeamMember.vue index b8c5c0667f0..f03abedcbef 100644 --- a/packages/docs/src/components/about/TeamMember.vue +++ b/packages/docs/src/components/about/TeamMember.vue @@ -134,6 +134,19 @@ </template> </div> </template> + + <v-chip + v-if="member.joined" + :text="t('joined', { date: member.joined })" + border + prepend-icon="mdi-calendar" + size="small" + variant="text" + > + <template #prepend> + <v-icon color="medium-emphasis" size="small" /> + </template> + </v-chip> </div> </div> </v-lazy> diff --git a/packages/docs/src/data/team.json b/packages/docs/src/data/team.json index 9310cbeec08..e76cac7e980 100644 --- a/packages/docs/src/data/team.json +++ b/packages/docs/src/data/team.json @@ -17,7 +17,8 @@ "name": "John Leider", "team": "company", "twitter": "zeroskillz", - "work": "Engineer @ Vuetify" + "work": "Engineer @ Vuetify", + "joined": "Jun 2016" }, "heatherleider": { "discord": "heatherleider#7788", @@ -31,7 +32,8 @@ "name": "Heather Leider", "team": "company", "twitter": "grneyedgrl01", - "work": "COO @ Vuetify" + "work": "COO @ Vuetify", + "joined": "Nov 2019" }, "KaelWD": { "discord": "Kaelwd#6373", @@ -50,7 +52,8 @@ "location": "Melbourne, Australia", "name": "Kael Watts-Deuchar", "team": "core", - "twitter": "kaelwd" + "twitter": "kaelwd", + "joined": "Dec 2017" }, "nekosaur": { "discord": "nekosaur#5406", @@ -63,7 +66,8 @@ ], "location": "Malmö, Sweden", "name": "Albert Kaaman", - "team": "core" + "team": "core", + "joined": "Dec 2017" }, "MajesticPotatoe": { "discord": "MajesticPotatoe#4997", @@ -82,7 +86,8 @@ "location": "Rochester, NY, USA", "name": "Andrew Henry", "team": "core", - "twitter": "SeeMWhyK" + "twitter": "SeeMWhyK", + "joined": "Dec 2018" }, "blalan05": { "discord": "blalan05#3967", @@ -96,7 +101,8 @@ "location": "Wisconsin, USA", "name": "Blaine Landowski", "team": "core", - "work": "CEO at Foundational Technologies LLC" + "work": "CEO at Foundational Technologies LLC", + "joined": "Feb 2021" }, "": { "discord": "Elvina Garcia#0203", @@ -108,7 +114,8 @@ ], "location": "Virginia, USA", "name": "Elvina Garcia", - "team": "core" + "team": "core", + "joined": "Feb 2023" }, "santiagoaloi": { "discord": "lannister#9474", @@ -128,7 +135,8 @@ "location": "Stockholm, Sweden", "name": "Santiago Aloi", "team": "core", - "work": "Product Specialist @ DataTalks" + "work": "Product Specialist @ DataTalks", + "joined": "Feb 2023" }, "yuwu9145": { "discord": "yuchao#8454", @@ -141,6 +149,7 @@ ], "location": "Melbourne, Australia", "name": "Yuchao Wu", - "team": "core" + "team": "core", + "joined": "Mar 2023" } } diff --git a/packages/docs/src/i18n/messages/en.json b/packages/docs/src/i18n/messages/en.json index 8b9fd95ad81..eaf0b94bb34 100644 --- a/packages/docs/src/i18n/messages/en.json +++ b/packages/docs/src/i18n/messages/en.json @@ -127,6 +127,7 @@ "invert-example-colors": "Invert example colors", "jobs": "Jobs", "jobs-for-vue": "Jobs for Vue", + "joined": "Joined {date}", "labs": "Labs", "laptop": "Laptop", "languages": "Languages", diff --git a/packages/docs/src/store/team.ts b/packages/docs/src/store/team.ts index 8d8ca157ec8..8bfb8cffb75 100644 --- a/packages/docs/src/store/team.ts +++ b/packages/docs/src/store/team.ts @@ -21,6 +21,7 @@ export type Member = { github?: string team: string twitter?: string + joined?: string } export type GithubMember = {
0e58fd5446942344ea7d5a774de330f15e5f640c
2020-03-18 04:47:31
John Leider
chore(release): publish v2.2.18
false
publish v2.2.18
chore
diff --git a/lerna.json b/lerna.json index a57bbf296bf..5f975e07930 100644 --- a/lerna.json +++ b/lerna.json @@ -13,6 +13,6 @@ } }, "npmClient": "yarn", - "version": "2.2.17", + "version": "2.2.18", "useWorkspaces": true } diff --git a/packages/api-generator/package.json b/packages/api-generator/package.json index 1c9c1590bdd..999adb97b72 100755 --- a/packages/api-generator/package.json +++ b/packages/api-generator/package.json @@ -1,6 +1,6 @@ { "name": "@vuetify/api-generator", - "version": "2.2.17", + "version": "2.2.18", "private": true, "description": "", "main": "dist/api.js", @@ -15,7 +15,7 @@ "dependencies": { "deepmerge": "^4.0.0", "vue": "^2.6.10", - "vuetify": "^2.2.17" + "vuetify": "^2.2.18" }, "devDependencies": { "@babel/node": "^7.5.5", diff --git a/packages/docs/package.json b/packages/docs/package.json index 8a60066c05f..a5df7d9619c 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -3,7 +3,7 @@ "description": "A Vue.js project", "private": true, "author": "John Leider <[email protected]>", - "version": "2.2.17", + "version": "2.2.18", "scripts": { "dev": "cross-env NODE_ENV=development webpack-dev-server --config build/webpack.client.config.js --hot --progress", "build": "rimraf dist && cross-env NODE_ENV=production webpack --config build/webpack.prod.config.js --no-progress --hide-modules && yarn prerender", @@ -12,7 +12,7 @@ "lint:fix": "yarn lint --fix" }, "dependencies": { - "@vuetify/api-generator": "^2.2.17", + "@vuetify/api-generator": "^2.2.18", "babel-polyfill": "^6.26.0", "chokidar": "^3.0.2", "compression": "^1.7.4", @@ -42,7 +42,7 @@ "vue-router": "^3.0.7", "vue-server-renderer": "^2.6.10", "vuelidate": "^0.7.4", - "vuetify": "^2.2.17", + "vuetify": "^2.2.18", "vuex": "^3.1.1", "vuex-pathify": "^1.4.0", "vuex-router-sync": "^5.0.0", diff --git a/packages/kitchen/package.json b/packages/kitchen/package.json index 52a321883db..fbdf87bbe97 100644 --- a/packages/kitchen/package.json +++ b/packages/kitchen/package.json @@ -1,6 +1,6 @@ { "name": "@vuetify/kitchen", - "version": "2.2.17", + "version": "2.2.18", "private": true, "scripts": { "dev": "vue-cli-service serve", @@ -12,7 +12,7 @@ "dependencies": { "sass-loader": "^7.1.0", "vue-router": "^3.0.7", - "vuetify": "^2.2.17" + "vuetify": "^2.2.18" }, "devDependencies": { "@applitools/eyes-cypress": "^3.6.40", diff --git a/packages/vuetify/package.json b/packages/vuetify/package.json index 0fc9e687807..abee4d7c05c 100644 --- a/packages/vuetify/package.json +++ b/packages/vuetify/package.json @@ -1,7 +1,7 @@ { "name": "vuetify", "description": "Vue Material Component Framework", - "version": "2.2.17", + "version": "2.2.18", "author": { "name": "John Leider", "email": "[email protected]"
39ad53570ccb503bb0089618e1fdcf20fb5d54b2
2023-03-07 20:39:16
aqwrel
fix(inputs): apply disabled prop to internal VField (#16827)
false
apply disabled prop to internal VField (#16827)
fix
diff --git a/packages/vuetify/src/components/VFileInput/VFileInput.tsx b/packages/vuetify/src/components/VFileInput/VFileInput.tsx index 64668007aec..5acd52fc9a6 100644 --- a/packages/vuetify/src/components/VFileInput/VFileInput.tsx +++ b/packages/vuetify/src/components/VFileInput/VFileInput.tsx @@ -194,6 +194,7 @@ export const VFileInput = genericComponent<VFileInputSlots>()({ id={ id.value } active={ isDirty.value || isFocused.value } dirty={ isDirty.value } + disabled={ isDisabled.value } focused={ isFocused.value } error={ isValid.value === false } > diff --git a/packages/vuetify/src/components/VTextField/VTextField.tsx b/packages/vuetify/src/components/VTextField/VTextField.tsx index 596407f6dcc..2e0937474ab 100644 --- a/packages/vuetify/src/components/VTextField/VTextField.tsx +++ b/packages/vuetify/src/components/VTextField/VTextField.tsx @@ -191,6 +191,7 @@ export const VTextField = genericComponent<Omit<VInputSlots & VFieldSlots, 'defa id={ id.value } active={ isActive.value || isDirty.value } dirty={ isDirty.value || props.dirty } + disabled={ isDisabled.value } focused={ isFocused.value } error={ isValid.value === false } > diff --git a/packages/vuetify/src/components/VTextarea/VTextarea.tsx b/packages/vuetify/src/components/VTextarea/VTextarea.tsx index 321f05f8e0c..3dd07e497ec 100644 --- a/packages/vuetify/src/components/VTextarea/VTextarea.tsx +++ b/packages/vuetify/src/components/VTextarea/VTextarea.tsx @@ -237,6 +237,7 @@ export const VTextarea = genericComponent<Omit<VInputSlots & VFieldSlots, 'defau { ...fieldProps } active={ isActive.value || isDirty.value } dirty={ isDirty.value || props.dirty } + disabled={ isDisabled.value } focused={ isFocused.value } error={ isValid.value === false } >
4cc9c01549cb6111fae256f973b24cd29ba4996f
2017-10-21 19:56:28
jacekkarczmarczyk
fix: allow string for mobileBreakPoint in v-navigation-drawer
false
allow string for mobileBreakPoint in v-navigation-drawer
fix
diff --git a/src/components/VNavigationDrawer/VNavigationDrawer.js b/src/components/VNavigationDrawer/VNavigationDrawer.js index e5f5bb1860a..72f2b018117 100644 --- a/src/components/VNavigationDrawer/VNavigationDrawer.js +++ b/src/components/VNavigationDrawer/VNavigationDrawer.js @@ -44,7 +44,7 @@ export default { default: 80 }, mobileBreakPoint: { - type: Number, + type: [Number, String], default: 1264 }, permanent: Boolean, @@ -181,7 +181,7 @@ export default { } }, checkIfMobile () { - this.isMobile = window.innerWidth < parseInt(this.mobileBreakPoint) + this.isMobile = window.innerWidth < parseInt(this.mobileBreakPoint, 10) }, closeConditional () { return !this.permanent && (this.temporary || this.isMobile) @@ -245,7 +245,7 @@ export default { const width = !this.isActive || !this.isBooted || !this.permanent && - this.$vuetify.breakpoint.width < this.mobileBreakPoint + this.$vuetify.breakpoint.width < parseInt(this.mobileBreakPoint, 10) ? 0 : this.calculatedWidth
25bbb7ce92533e0c1af63b1220f4a30281908267
2024-02-22 02:31:22
SonTT19
fix(VDatePicker): set view-mode when selecting same month/year (#19153)
false
set view-mode when selecting same month/year (#19153)
fix
diff --git a/packages/vuetify/src/components/VDatePicker/VDatePicker.tsx b/packages/vuetify/src/components/VDatePicker/VDatePicker.tsx index 3a67c042106..78d7eae311e 100644 --- a/packages/vuetify/src/components/VDatePicker/VDatePicker.tsx +++ b/packages/vuetify/src/components/VDatePicker/VDatePicker.tsx @@ -182,7 +182,9 @@ export const VDatePicker = genericComponent<new < } else { year.value++ month.value = 0 + onUpdateYear(year.value) } + onUpdateMonth(month.value) } function onClickPrev () { @@ -191,7 +193,9 @@ export const VDatePicker = genericComponent<new < } else { year.value-- month.value = 11 + onUpdateYear(year.value) } + onUpdateMonth(month.value) } function onClickDate () { @@ -206,17 +210,17 @@ export const VDatePicker = genericComponent<new < viewMode.value = viewMode.value === 'year' ? 'month' : 'year' } - watch(month, () => { + function onUpdateMonth (value: number) { if (viewMode.value === 'months') onClickMonth() - emit('update:month', month.value) - }) + emit('update:month', value) + } - watch(year, () => { + function onUpdateYear (value: number) { if (viewMode.value === 'year') onClickYear() - emit('update:year', year.value) - }) + emit('update:year', value) + } watch(model, (val, oldVal) => { const before = adapter.date(wrapInArray(val)[0]) @@ -294,6 +298,7 @@ export const VDatePicker = genericComponent<new < key="date-picker-months" { ...datePickerMonthsProps } v-model={ month.value } + onUpdate:modelValue={ onUpdateMonth } min={ minDate.value } max={ maxDate.value } /> @@ -302,6 +307,7 @@ export const VDatePicker = genericComponent<new < key="date-picker-years" { ...datePickerYearsProps } v-model={ year.value } + onUpdate:modelValue={ onUpdateYear } min={ minDate.value } max={ maxDate.value } /> @@ -312,6 +318,8 @@ export const VDatePicker = genericComponent<new < v-model={ model.value } v-model:month={ month.value } v-model:year={ year.value } + onUpdate:month={ onUpdateMonth } + onUpdate:year={ onUpdateYear } min={ minDate.value } max={ maxDate.value } /> diff --git a/packages/vuetify/src/components/VDatePicker/VDatePickerMonths.tsx b/packages/vuetify/src/components/VDatePicker/VDatePickerMonths.tsx index bd7099dfda5..1883a31f254 100644 --- a/packages/vuetify/src/components/VDatePicker/VDatePickerMonths.tsx +++ b/packages/vuetify/src/components/VDatePicker/VDatePickerMonths.tsx @@ -41,7 +41,7 @@ export const VDatePickerMonths = genericComponent<VDatePickerMonthsSlots>()({ 'update:modelValue': (date: any) => true, }, - setup (props, { slots }) { + setup (props, { emit, slots }) { const adapter = useDate() const model = useProxiedModel(props, 'modelValue') @@ -82,6 +82,10 @@ export const VDatePickerMonths = genericComponent<VDatePickerMonthsSlots>()({ } as const function onClick (i: number) { + if (model.value === i) { + emit('update:modelValue', model.value) + return + } model.value = i } @@ -93,7 +97,6 @@ export const VDatePickerMonths = genericComponent<VDatePickerMonthsSlots>()({ <VBtn key="month" { ...btnProps } - onClick={ () => onClick(i) } /> ) })} diff --git a/packages/vuetify/src/components/VDatePicker/VDatePickerYears.tsx b/packages/vuetify/src/components/VDatePicker/VDatePickerYears.tsx index 662fcbcaf3e..d596f29ab92 100644 --- a/packages/vuetify/src/components/VDatePicker/VDatePickerYears.tsx +++ b/packages/vuetify/src/components/VDatePicker/VDatePickerYears.tsx @@ -51,7 +51,7 @@ export const VDatePickerYears = genericComponent<VDatePickerYearsSlots>()({ 'update:modelValue': (year: number) => true, }, - setup (props, { slots }) { + setup (props, { emit, slots }) { const adapter = useDate() const model = useProxiedModel(props, 'modelValue') const years = computed(() => { @@ -109,7 +109,13 @@ export const VDatePickerYears = genericComponent<VDatePickerYearsSlots>()({ rounded: true, text: year.text, variant: model.value === year.value ? 'flat' : 'text', - onClick: () => model.value = year.value, + onClick: () => { + if (model.value === year.value) { + emit('update:modelValue', model.value) + return + } + model.value = year.value + }, } as const return slots.year?.({
67906aa9997acb041af4b1fc6125751f78db185b
2019-06-05 04:52:15
Dmitry Sharshakov
docs(VCombobox): update examples (#7359)
false
update examples (#7359)
docs
diff --git a/packages/docs/src/data/pages/components/Combobox.json b/packages/docs/src/data/pages/components/Combobox.json index 8e19b86b97e..ca0b228c254 100644 --- a/packages/docs/src/data/pages/components/Combobox.json +++ b/packages/docs/src/data/pages/components/Combobox.json @@ -21,12 +21,25 @@ } ] }, + { + "type": "section", + "children": [ + { + "type": "playground", + "value": "playground" + } + ] + }, { "type": "section", "children": [ { "type": "examples", - "value": [ "noData", "advanced", "comboboxMultiple" ] + "value": [ + "simple/comboboxMultiple", + "intermediate/noData", + "intermediate/advanced" + ] } ] }, diff --git a/packages/docs/src/examples/combobox/advanced.vue b/packages/docs/src/examples/combobox/intermediate/advanced.vue similarity index 100% rename from packages/docs/src/examples/combobox/advanced.vue rename to packages/docs/src/examples/combobox/intermediate/advanced.vue diff --git a/packages/docs/src/examples/combobox/noData.vue b/packages/docs/src/examples/combobox/intermediate/noData.vue similarity index 100% rename from packages/docs/src/examples/combobox/noData.vue rename to packages/docs/src/examples/combobox/intermediate/noData.vue diff --git a/packages/docs/src/examples/combobox/playground.vue b/packages/docs/src/examples/combobox/playground.vue new file mode 100644 index 00000000000..7ed8c118404 --- /dev/null +++ b/packages/docs/src/examples/combobox/playground.vue @@ -0,0 +1,48 @@ +<template> + <div> + <v-layout row wrap justify-space-around> + <v-switch v-model="chips" label="Chips"></v-switch> + <v-switch v-model="multiple" label="Multiple"></v-switch> + <v-switch v-model="hideSelected" label="Hide selected"></v-switch> + <v-switch v-model="noData" label="No data slot"></v-switch> + <v-switch v-model="clearable" label="Clearable"></v-switch> + </v-layout> + + <v-combobox + v-model="model" + :items="items" + :search-input.sync="search" + :hide-selected="hideSelected" + label="Add some tags" + :multiple="multiple" + persistent-hint + :small-chips="chips" + :clearable="clearable" + > + <template v-if="noData" v-slot:no-data> + <v-list-item> + <v-list-item-content> + <v-list-item-title> + No results matching "<strong>{{ search }}</strong>". Press <kbd>enter</kbd> to create a new one + </v-list-item-title> + </v-list-item-content> + </v-list-item> + </template> + </v-combobox> + </div> +</template> + +<script> + export default { + data: () => ({ + items: ['Gaming', 'Programming', 'Vue', 'Vuetify'], + model: ['Vuetify'], + search: null, + chips: true, + multiple: true, + hideSelected: true, + noData: true, + clearable: false, + }), + } +</script> diff --git a/packages/docs/src/examples/combobox/comboboxMultiple.vue b/packages/docs/src/examples/combobox/simple/comboboxMultiple.vue similarity index 100% rename from packages/docs/src/examples/combobox/comboboxMultiple.vue rename to packages/docs/src/examples/combobox/simple/comboboxMultiple.vue
1e016a91354d1c3bad3b8da25ebfcd6061100d06
2023-04-27 21:15:37
Kael
chore(release): publish v3.2.1
false
publish v3.2.1
chore
diff --git a/lerna.json b/lerna.json index 4f383a1be9a..c8fe591efbe 100644 --- a/lerna.json +++ b/lerna.json @@ -13,6 +13,6 @@ } }, "npmClient": "yarn", - "version": "3.2.0", + "version": "3.2.1", "useWorkspaces": true } diff --git a/packages/api-generator/package.json b/packages/api-generator/package.json index c035db6d752..42a17d93db6 100755 --- a/packages/api-generator/package.json +++ b/packages/api-generator/package.json @@ -1,6 +1,6 @@ { "name": "@vuetify/api-generator", - "version": "3.2.0", + "version": "3.2.1", "private": true, "description": "", "scripts": { @@ -18,7 +18,7 @@ "rimraf": "^3.0.2", "ts-morph": "^18.0.0", "vue": "^3.2.47", - "vuetify": "^3.2.0" + "vuetify": "^3.2.1" }, "devDependencies": { "@babel/node": "^7.20.7" diff --git a/packages/docs/package.json b/packages/docs/package.json index b64c9a73ac6..6cef1b683b4 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -3,7 +3,7 @@ "description": "A Vue.js project", "private": true, "author": "John Leider <[email protected]>", - "version": "3.2.0", + "version": "3.2.1", "repository": { "type": "git", "url": "git+https://github.com/vuetifyjs/vuetify.git", @@ -40,7 +40,7 @@ "vue-i18n": "^9.3.0-beta.16", "vue-instantsearch": "^4.8.8", "vue-prism-component": "^2.0.0", - "vuetify": "^3.2.0" + "vuetify": "^3.2.1" }, "devDependencies": { "@emailjs/browser": "^3.10.0", @@ -52,7 +52,7 @@ "@vitejs/plugin-basic-ssl": "^1.0.1", "@vitejs/plugin-vue": "^4.1.0", "@vue/compiler-sfc": "^3.2.47", - "@vuetify/api-generator": "^3.2.0", + "@vuetify/api-generator": "^3.2.1", "@vuetify/vite-ssg": "^0.20.2", "ajv": "^8.12.0", "async-es": "^3.2.4", diff --git a/packages/vuetify/package.json b/packages/vuetify/package.json index cbe244b74da..977f3f57ecd 100755 --- a/packages/vuetify/package.json +++ b/packages/vuetify/package.json @@ -1,7 +1,7 @@ { "name": "vuetify", "description": "Vue Material Component Framework", - "version": "3.2.0", + "version": "3.2.1", "author": { "name": "John Leider", "email": "[email protected]"
c0eee0db9b81b236681c273afe1e170b3236722e
2023-07-06 07:46:24
John Leider
docs(roadmap/lts): update content
false
update content
docs
diff --git a/packages/docs/src/pages/en/introduction/long-term-support.md b/packages/docs/src/pages/en/introduction/long-term-support.md index 990a8c56a9d..c2d1807ef5f 100644 --- a/packages/docs/src/pages/en/introduction/long-term-support.md +++ b/packages/docs/src/pages/en/introduction/long-term-support.md @@ -20,7 +20,7 @@ We understand that many projects that utilize Vuetify have development cycles th | Version | Status | Initial Release Date | LTS Start Date | LTS End Date | | - | - | - | - | - | | [Vuetify 3.x](https://vuetifyjs.com/) | 🚀 Active Development | November 1st, 2022 | N/A | N/A | -| [Vuetify 2.x](https://v2.vuetifyjs.com/) | 🛠️ Maintenance | July 23rd, 2019 | [Pending 2.7 release](https://github.com/vuetifyjs/vuetify/milestone/59) | N/A | +| [Vuetify 2.7](https://v2.vuetifyjs.com/) | 🛠️ Maintenance | July 23rd, 2019 | July 5th, 2023 | January 23rd, 2025 | | [Vuetify 1.5](https://v15.vuetifyjs.com/) | 📦 Archived | February 5th, 2019 | July 31st, 2019 | July 31st, 2020 | Have questions? Reach out to us in our [Discord community](https://community.vuetifyjs.com). diff --git a/packages/docs/src/pages/en/introduction/roadmap.md b/packages/docs/src/pages/en/introduction/roadmap.md index dd620bb856b..c6ef6a8bf7a 100644 --- a/packages/docs/src/pages/en/introduction/roadmap.md +++ b/packages/docs/src/pages/en/introduction/roadmap.md @@ -41,12 +41,6 @@ The following releases are currently under development: - `<v-stepper>` - **Milestone Issues:** [Github Issues](https://github.com/vuetifyjs/vuetify/milestone/61) -### v2.7 (Nirvana) - -- **Target Release:** Q2 2023 -- **Support until:** 18 months after release -- **Overview:** Backports and deprecations from v3.0.0 to help developers prepare for v3 upgrade - ### Labs release schedule Information regarding upcoming Labs components is located on the [Labs introduction](/labs/introduction/) page. @@ -65,6 +59,14 @@ The following versions have continued maintenance for backwards compatible fixes The following are the already released **minor** and **major** version updates. Find more information on the [latest releases](https://github.com/vuetifyjs/vuetify/releases/latest) on GitHub. +### v2.7 (Nirvana) + +- **Released:** July 2023 +- **Target Release:** Q2 2023 +- **Support until:** January 2025 + +---- + ### v3.3 (Icarus) - **Released:** May 2023 @@ -73,6 +75,8 @@ The following are the already released **minor** and **major** version updates. - **Overview:** A small intermediary minor that will release alongside Vue v3.3 and include a few small features. - **Milestone Issues:** [Github Issues](https://github.com/vuetifyjs/vuetify/milestone/67) +---- + ### v3.2 (Orion) - **Released:** April 2023 @@ -81,6 +85,8 @@ The following are the already released **minor** and **major** version updates. - **Overview:** New and ported components from v2. Exposed defaults system for public use, allowing you to hook into the global default configuration with your components. More information in the [release notes](/getting-started/release-notes/?version=v3.2.0) - **Milestone Issues:** [Github Issues](https://github.com/vuetifyjs/vuetify/milestone/53) +---- + ### v3.1 (Valkyrie) - **Released:** January 2023 @@ -89,12 +95,16 @@ The following are the already released **minor** and **major** version updates. - **Overview:** First post v3 release that will focus on porting remaining missing v2 components and general bug fixing. - **Milestone Issues:** [Github Issues](https://github.com/vuetifyjs/vuetify/milestone/56) +---- + ### Vuetify Labs { id="labs" } - **Released:** January 2023 - **Target Release:** Q4 2022 - **Overview:** Labs is a new package that includes large components from Vuetify 2 in a pre-production state. More information is located on the [Labs introduction](/labs/introduction/) page. +---- + ### v3.0 (Titan) - **Released:** October 2022
bdbc3021a8bc4ada115a96aecdd1669a0653171f
2023-12-15 09:30:10
Kael
docs: skip waiting if previous worker does not respond to messages
false
skip waiting if previous worker does not respond to messages
docs
diff --git a/packages/docs/src/service-worker.js b/packages/docs/src/service-worker.js index 99f889ec447..87ccd5dcbe9 100644 --- a/packages/docs/src/service-worker.js +++ b/packages/docs/src/service-worker.js @@ -24,8 +24,14 @@ self.addEventListener('install', event => { console.log('[SW] Installed') event.waitUntil((async () => { if (self.registration.active) { - previousManifest = await messageSW(self.registration.active, { type: 'GET_MANIFEST' }) - console.log('[SW] Recieved manifest') + await Promise.race([ + new Promise(resolve => setTimeout(resolve, 500)), + messageSW(self.registration.active, { type: 'GET_MANIFEST' }) + .then(manifest => { + previousManifest = manifest + console.log('[SW] Recieved manifest') + }), + ]) } self.skipWaiting() })())
deabe223e076ae5af4eedf62d58e952b15c67841
2019-04-04 23:25:03
John Leider
docs(Store): add icon
false
add icon
docs
diff --git a/packages/docs/src/components/core/Store.vue b/packages/docs/src/components/core/Store.vue index 06a16a6e7c6..717f79c83d7 100644 --- a/packages/docs/src/components/core/Store.vue +++ b/packages/docs/src/components/core/Store.vue @@ -12,6 +12,9 @@ class="hidden-sm-and-down" v-text="$t('Vuetify.AppToolbar.store')" /> + <v-icon class="hidden-sm-and-down" right> + mdi-open-in-new + </v-icon> <v-icon class="hidden-md-and-up">mdi-store</v-icon> </v-btn> </template>
fd68d92409e0c0158d3541db918900adad816701
2019-02-03 22:04:59
云游君
docs(Snackbars): Optimize Chinese translation (#6338)
false
Optimize Chinese translation (#6338)
docs
diff --git a/packages/docs/src/lang/zh-Hans/components/Snackbars.json b/packages/docs/src/lang/zh-Hans/components/Snackbars.json index 2525f5a2c5a..0f7794769ff 100644 --- a/packages/docs/src/lang/zh-Hans/components/Snackbars.json +++ b/packages/docs/src/lang/zh-Hans/components/Snackbars.json @@ -1,20 +1,20 @@ { - "header": "小吃吧", - "headerText": "`v-snackbar`组件用于向用户显示快速消息,小吃吧支持定位、删除延迟和回调。", + "header": "Snackbars", + "headerText": "`v-snackbar`组件用于向用户显示快速消息,Snackbars 支持定位、消失延迟和回调。", "components": ["v-snackbar"], "examples": { "position": { "header": "位置", - "desc": "标准小吃吧对于引起用户对刚发生的一些功能的注意力是有用的。" + "desc": "标准 Snackbars 有利于使用户注意到一些刚发生的活动。" }, "contextual": { "header": "上下文", - "desc": "您可以在小吃吧上应用一个色彩,以更好的适应您的实现。" + "desc": "您可以为 Snackbars 应用一种色彩,以更好地适应您的实现。" } }, "props": { - "multiLine": "识小吃吧更高(移动设备)", - "timeout": "等待小吃吧自动隐藏的时间", - "vertical": "垂直折叠小吃店的内容(移动设备)" + "multiLine": "使 Snackbars 的高度动态变化(移动设备)", + "timeout": "等待 Snackbars 自动隐藏的时间。使用 0 来保持永久开启。", + "vertical": "垂直折叠 Snackbars 的内容(移动设备)" } }
a05a0bbaafd560c23cc7e503f2a5fc71773da77e
2019-09-24 06:47:44
Albert Kaaman
fix(VDataTable): hide items-per-page select if only one value (#8598)
false
hide items-per-page select if only one value (#8598)
fix
diff --git a/packages/vuetify/src/components/VDataIterator/VDataFooter.ts b/packages/vuetify/src/components/VDataIterator/VDataFooter.ts index 6982fa21ee1..32fac1806e1 100644 --- a/packages/vuetify/src/components/VDataIterator/VDataFooter.ts +++ b/packages/vuetify/src/components/VDataIterator/VDataFooter.ts @@ -99,10 +99,9 @@ export default Vue.extend({ let value = this.options.itemsPerPage const computedIPPO = this.computedItemsPerPageOptions - if ( - computedIPPO.length > 0 && - !computedIPPO.find(ippo => ippo.value === value) - ) value = computedIPPO[0] + if (computedIPPO.length <= 1) return null + + if (!computedIPPO.find(ippo => ippo.value === value)) value = computedIPPO[0] return this.$createElement('div', { staticClass: 'v-data-footer__select', diff --git a/packages/vuetify/src/components/VDataIterator/__tests__/VDataFooter.spec.ts b/packages/vuetify/src/components/VDataIterator/__tests__/VDataFooter.spec.ts index fb4ea160026..4e094946973 100644 --- a/packages/vuetify/src/components/VDataIterator/__tests__/VDataFooter.spec.ts +++ b/packages/vuetify/src/components/VDataIterator/__tests__/VDataFooter.spec.ts @@ -45,7 +45,7 @@ describe('VDataFooter.ts', () => { it('should render with custom itemsPerPage', () => { const wrapper = mountFunction({ propsData: { - itemsPerPageOptions: [100], + itemsPerPageOptions: [50, 100], options: { page: 4, itemsPerPage: 100,
f59279ebec9b5fe9198e5bb8cf2e8c759bc90c0e
2021-01-01 00:28:23
Evgenii Bakhtin
fix(VSlideGroup): fix scrollIntoView & arrows visibility (#12318)
false
fix scrollIntoView & arrows visibility (#12318)
fix
diff --git a/packages/vuetify/src/components/VSlideGroup/VSlideGroup.ts b/packages/vuetify/src/components/VSlideGroup/VSlideGroup.ts index ac57d3ce351..20f1970d29a 100644 --- a/packages/vuetify/src/components/VSlideGroup/VSlideGroup.ts +++ b/packages/vuetify/src/components/VSlideGroup/VSlideGroup.ts @@ -121,12 +121,12 @@ export const BaseSlideGroup = mixins<options & // Show arrows on mobile when overflowing. // This matches the default 2.2 behavior - case true: return this.isOverflowing + case true: return this.isOverflowing || Math.abs(this.scrollOffset) > 0 // Always show on mobile case 'mobile': return ( this.isMobile || - this.isOverflowing + (this.isOverflowing || Math.abs(this.scrollOffset) > 0) ) // https://material.io/components/tabs#scrollable-tabs @@ -134,7 +134,7 @@ export const BaseSlideGroup = mixins<options & // overflowed on desktop default: return ( !this.isMobile && - this.isOverflowing + (this.isOverflowing || Math.abs(this.scrollOffset) > 0) ) } }, @@ -317,6 +317,18 @@ export const BaseSlideGroup = mixins<options & this.isOverflowing && fn(e) }, scrollIntoView /* istanbul ignore next */ () { + if (!this.selectedItem && this.items.length) { + const lastItemPosition = this.items[this.items.length - 1].$el.getBoundingClientRect() + const wrapperPosition = this.$refs.wrapper.getBoundingClientRect() + + if ( + (this.$vuetify.rtl && wrapperPosition.right < lastItemPosition.right) || + (!this.$vuetify.rtl && wrapperPosition.left > lastItemPosition.left) + ) { + this.scrollTo('prev') + } + } + if (!this.selectedItem) { return } diff --git a/packages/vuetify/src/components/VSlideGroup/__tests__/VSlideGroup.spec.ts b/packages/vuetify/src/components/VSlideGroup/__tests__/VSlideGroup.spec.ts index 121926a946b..e3e23af2279 100644 --- a/packages/vuetify/src/components/VSlideGroup/__tests__/VSlideGroup.spec.ts +++ b/packages/vuetify/src/components/VSlideGroup/__tests__/VSlideGroup.spec.ts @@ -333,4 +333,60 @@ describe('VSlideGroup.ts', () => { expect(wrapper.vm.hasAffixes).toBe(hasAffixes) }) + + it('should has affixes on desktop when scrollOffset greater than 0', async () => { + const wrapper = mountFunction({ + data: () => ({ + scrollOffset: 200, + }), + computed: { isMobile: () => false }, + }) + + expect(wrapper.vm.hasAffixes).toBe(true) + + await wrapper.setProps({ showArrows: true }) + expect(wrapper.vm.hasAffixes).toBe(true) + + await wrapper.setProps({ showArrows: 'mobile' }) + expect(wrapper.vm.hasAffixes).toBe(true) + }) + + it('should calculateNewOffset when call scrollIntoView and last item position is not into view', () => { + const calculateNewOffset = jest.fn() + + const wrapper = mountFunction({ + data: () => ({ + items: [{ $el: {} }], + }), + methods: { calculateNewOffset }, + }) + + const setWrapperPosition = ({ left = 0, right = 0 } = {}) => { + wrapper.vm.$refs.wrapper.getBoundingClientRect = () => ({ left, right } as DOMRectReadOnly) + } + + const setLastItemPosition = ({ left = 0, right = 0 } = {}) => { + wrapper.vm.items[wrapper.vm.items.length - 1].$el.getBoundingClientRect = () => ({ left, right } as DOMRectReadOnly) + } + + setWrapperPosition({ left: 100 }) + setLastItemPosition({ left: 50 }) + + wrapper.vm.scrollIntoView() + + expect(calculateNewOffset).toHaveBeenCalledTimes(1) + + calculateNewOffset.mockClear() + + // RTL + + wrapper.vm.$vuetify.rtl = true + + setWrapperPosition({ right: 50 }) + setLastItemPosition({ right: 100 }) + + wrapper.vm.scrollIntoView() + + expect(calculateNewOffset).toHaveBeenCalledTimes(1) + }) })
b1f74e1703389b4e0c3ac7e2dbca44d378d31387
2024-07-14 06:05:10
Yuchao Wu
chore: fix lint issue
false
fix lint issue
chore
diff --git a/packages/vuetify/src/labs/VNumberInput/VNumberInput.tsx b/packages/vuetify/src/labs/VNumberInput/VNumberInput.tsx index 1812eaa0159..c025f166163 100644 --- a/packages/vuetify/src/labs/VNumberInput/VNumberInput.tsx +++ b/packages/vuetify/src/labs/VNumberInput/VNumberInput.tsx @@ -293,8 +293,8 @@ export const VNumberInput = genericComponent<VNumberInputSlots>()({ props.class, ]} { ...textFieldProps } - centerAffix={ true } - singleLine={ false } + centerAffix + singleLine={ false } style={ props.style } inputmode="decimal" >
b7b14f1293ead25b9ec5eebeed5e0bf96c8fb593
2018-07-09 06:37:25
Jacek Karczmarczyk
fix(VDialog): use overlay with persistent and hide-overlay props (#4529)
false
use overlay with persistent and hide-overlay props (#4529)
fix
diff --git a/src/components/VDialog/VDialog.js b/src/components/VDialog/VDialog.js index 237ae417120..ed338b64fd3 100644 --- a/src/components/VDialog/VDialog.js +++ b/src/components/VDialog/VDialog.js @@ -82,6 +82,9 @@ export default { 'v-dialog__content': true, 'v-dialog__content--active': this.isActive } + }, + hasOverlay () { + return this.persistent || !this.hideOverlay } }, @@ -140,7 +143,8 @@ export default { return getZIndex(this.$refs.content) >= this.getMaxZIndex() }, show () { - !this.fullscreen && !this.hideOverlay && this.genOverlay() + const overlayClass = this.hideOverlay ? 'v-overlay--transparent' : '' + !this.fullscreen && this.hasOverlay && this.genOverlay(overlayClass) this.fullscreen && this.hideScroll() this.$refs.content.focus() this.$listeners.keydown && this.bind() diff --git a/src/mixins/overlayable.js b/src/mixins/overlayable.js index 249313f1b3e..43dbedd5f54 100644 --- a/src/mixins/overlayable.js +++ b/src/mixins/overlayable.js @@ -20,16 +20,22 @@ export default { } }, + computed: { + hasOverlay () { + return !this.hideOverlay + } + }, + beforeDestroy () { this.removeOverlay() }, methods: { - genOverlay () { + genOverlay (overlayClass = '') { // If fn is called and timeout is active // or overlay already exists // cancel removal of overlay and re-add active - if ((!this.isActive || this.hideOverlay) || + if ((!this.isActive || !this.hasOverlay) || (this.isActive && this.overlayTimeout) || this.overlay ) { @@ -40,7 +46,7 @@ export default { } this.overlay = document.createElement('div') - this.overlay.className = 'v-overlay' + this.overlay.className = `v-overlay ${overlayClass}` if (this.absolute) this.overlay.className += ' v-overlay--absolute' diff --git a/src/stylus/components/_overlay.styl b/src/stylus/components/_overlay.styl index 31d35ac6c29..e99a24af079 100755 --- a/src/stylus/components/_overlay.styl +++ b/src/stylus/components/_overlay.styl @@ -40,5 +40,5 @@ pointer-events: auto touch-action: none - &:before + &:not(.v-overlay--transparent):before opacity: .46
9847bf1b37e1e4ab4dedee2bc6bab08d40c8c11c
2019-05-06 15:43:48
naokia
docs(QuickStart): translate to Japanese (#7141)
false
translate to Japanese (#7141)
docs
diff --git a/packages/docs/src/lang/ja-JP/getting-started/QuickStart.json b/packages/docs/src/lang/ja-JP/getting-started/QuickStart.json new file mode 100644 index 00000000000..8a3a173a939 --- /dev/null +++ b/packages/docs/src/lang/ja-JP/getting-started/QuickStart.json @@ -0,0 +1,48 @@ +{ + "header": "# クイックスタート", + "headerText": "プロジェクトをすぐに開始するには、 _(公式のサンプルを用いる場合)_ Vuetify Vue CLIパッケージのいずれかを使用します。 Vuetifyは、 **SSR** (サーバーサイドレンダリング)、 **SPA**(シングルページアプリケーション)、 **PWA**(プログレッシブWebアプリケーション)、および標準の **HTML**ページをサポートしています。", + "vueCliHeader": "## Vue CLI-3 のインストール", + "vueCliText1": "Vue-CLI 3は、あなたがより簡単に新しいアプリケーションの開発を始めるための次世代のcliツールです。 vue-cliを使ってアプリを起動すると、公式のwebpackのアップデートや設定の変更、そしてVuetifyのアップデートも面倒なアップグレード作業なしで入手できます。", + "vueCliText2": "Vue-CLI-3の使用方法については、[公式ドキュメント](https://cli.vuejs.org/guide/)を参照してください。", + "vueCliText3": "**Tip** :既に **vue-cli** がインストールされている場合は、コマンドラインから<kbd> vue --version </kbd>と入力して最新版であることを確認してください。", + "vueCliText4": "cliがインストールされたら、新しいプロジェクトの雛形(scaffold)を生成できます。 特定のパッケージを含める必要がない限り、 _default install_ を選択してください(例: _vuex_ または _vue-router_ )。 これにより、選択したオプションに合わせて準備が整った新しいVueプロジェクトが作成されます。\n", + "vueCliText5": "インスタンス化されたプロジェクトが完成したので、cliを使用して[Vuetifyパッケージ](https://github.com/vuetifyjs/vue-cli-plugin-vuetify)を追加できます。", + "vueCliText6": "これにより、インストールをカスタマイズするための一連のオプションが表示されます。 デフォルトのプリセットは[アラカルト](/framework/a-la-carte)がすでに有効になっています。", + "vueCliText7": "インストールが完了したら、<kbd> yarn serve </kbd>または<kbd> npm run serve </kbd>を実行してアプリケーションを起動します。\n", + "uiHeader": "## Vue UI", + "uiText1": "Vuetifyは、 _vue-cli-3_ 用の新しいビジュアルアプリケーション **Vue UI** を使用してインストールすることもできます。 最新バージョンのvue-cliがインストールされていて、端末の種類からインストールされていることを確認してください。", + "uiText2": "これでVueユーザーインターフェースが起動し、ブラウザに[新しいウィンドウ](http://localhost:8000)が開きます。 画面の左側にある **Plugins** をクリックしてください。 移動したら、入力フィールドで _Vuetify_ を検索します。", + "uiImg1": "Vuetify Pluginをインストールする", + "uiImg2": "Vuetifyのインストール設定をする", + "uiText3": "インストール後、アプリケーションのデフォルトのVuetify設定を変更することができます。", + "browserHeader": "## サポートしているブラウザ", + "browserText": "Vuetifyは、Web開発を次のレベルに進めることを試みる進歩的なフレームワークです。 そのため、古いバージョンのInternet Explorerのサポートに関してはいくらかの犠牲を払う必要がありました。 これは互換性のあるブラウザの網羅的なリストではなく、主な対象ブラウザです。", + "cdnHeader": "## CDNインストール", + "cdnText": "Vue CLIからテンプレートをインストールせずにVuetify.jsを試してみるには、以下のコードをあなたの `index.html` にコピーしてください。 これでVueとVuetifyの最新バージョンが引き出され、コンポーネントを使って遊べるようになります。 codepenでは[Vuetifyスターター](https://template.vuetifyjs.com)を使うこともできます。", + "newHeader": "## 新しいアプリケーションの作成", + "newAlert": "これらのパッケージは `vue-cli @ 2` を必要とします。 あなたが真新しいアプリケーションを始めているなら、それは `vue-cli @ 3` を使うことを勧めます。 以下のパッケージは現在、新しいシステムを使用するように変換されています。 **version 3** の使い方の詳細については、[ここをクリック](#vue-cli-3)", + "newText": "Vuetifyには8つのVue CLIテンプレートがあり、そのうちの3つは[official Vue.js templates](https://github.com/vuejs-templates)から分岐しています。 それらはあなたがVuetifyをさらに早く始めるのを助けるために小さな修正を含みます。 これらのテンプレートは、次のプロジェクトをできるだけ早く始めるために設計されています。", + "existingHeader": "## 既存のアプリケーション", + "existingAlert": "あなたの既存のアプリケーションが `vue-cli @ 3` を使っているなら、Vuetifyパッケージをインストールする方法について[上記のガイド](#vue-cli-3)を使ってください。", + "existingText1": "既存のプロジェクトにVuetifyを含めるには、その _npm package_ をインストールする必要があります。 このタスクを達成するために `npm` か `yarn` を使うことができます。 どちらもパッケージマネージャで、アプリケーションで利用可能なリソースを管理できます。", + "existingText2": "あなたの環境で `npm` を動かす方法の詳細な説明については、[公式ドキュメント](https://docs.npmjs.com/getting-started/what-is-npm)を調べてください。 あるいは、もしあなたが `yarn` を使いたいのであれば、[公式ドキュメント](https://yarnpkg.com/lang/en/docs/)を見つけることができます。 セットアップが完了したら、コマンドプロンプトからどちらのコマンドも実行できます。", + "existingText3": "Vuetifyがインストールされたら、アプリケーションのメインエントリポイントに移動します。 ほとんどの場合、これは `index.js` または `main.js` になります。 このファイルにVuetifyをインポートしてVueに使用するよう指示します。", + "existingText4": "あなたはそれからあなたのVueオプションにVuetifyオブジェクトを渡さなければなりません。 これは **vuex** または **vue-router** のインストールに似ています。", + "existingText5": "Vuetifyをインポートすると、アプリケーションに必要な基本スタイルもすべて取り込まれます。各コンポーネントはそれ自身のスタイルにも責任があり、[vuetify-loader](/ framework/a-la-carte#vuetify-loader)を使うとき、あなたが使うコンポーネント(そしてそれぞれのスタイル)だけがあなたの最終バンドルに含まれます。", + "existingText6": "あなたがタイポグラフィを持っていることを保証するためにあなたはまたGoogle Robotoフォントをインポートしなければなりません。", + "existingText7": "非同期でフォントを読み込むこともできます。 これには、[webfontloader](https://github.com/typekit/webfontloader)を `npm` または `yarn` によってインストールしてください。", + "alert2": "*警告*: Vuetifyは可能な限りCSSの衝突を引き起こさないようにしていますが、このフレームワークを既存のプロジェクトに統合するときにカスタムスタイルがあなたの経験を変えないという保証はありません。", + "ie11Header": "## IE11 & Safari 9 サポート", + "ie11Text": "Vuetifyは、 **Internet Explorer 11** および **Safari 9/10** にpolyfillを使用する必要があるES2015/2017の機能を利用しています。あなたがvue-cli-3を使っているなら、これは自動的に行われます。 そうでなければ、プロジェクトディレクトリに `babel-polyfill` をインストールしてください:", + "ie11Text1": "Vuetifyは、 **Internet Explorer 11** および **Safari 9/10** にpolyfillを使用する必要があるES2015/2017の機能を利用しています。あなたがvue-cli-3を使っているなら、これは自動的に行われます。 そうでなければ、プロジェクトディレクトリに `babel-polyfill` をインストールしてください:", + "ie11Text2": "メインの **index.js** ファイル内にできるだけ早くプラグインを含めることが重要です。 Vuetify SSRパッケージを使用している場合、これは **client-entry.js** ファイルに適用されます。", + "ie11Text3": "必要なpolyfillだけがあなたのアプリケーションに追加されることを確実にするために、対応するポリフィルと共に `babel-preset-env` を使うことが推奨されます。 `babel-present-env` についての詳細は、[ドキュメントを参照してください](https://babeljs.io/docs/en/next/babel-preset-env.html)", + "ie11Text4": "インストールをしたら、プロジェクトの `.babelrc` または `babel.config.js` にプリセットを追加してください", + "ie11Text5": "残念ながら、vue-cli-3は自動的にIE11との互換性がなくなるため、さまざまなエラーが発生する可能性があります(<i>Symbolが定義されていない</i>など)。これらのエラーを解決しやすくするために、手動で `vue.config.js` に `transpileDependencies` パラメータを追加する必要があるかもしれません", + "ie11Text6": "Internet Explorerでは `<template>` タグのサポートが限定されているため、完全にコンパイルされたDOM要素をブラウザに送信する必要があります。 これは、事前にVueコードを構築するか、またはDOM要素を置き換えるヘルパーコンポーネントを作成することによって実行できます。 たとえば、IEに直接送信された場合、これは失敗します。", + "browserSupport": { + "supported": "サポート", + "notSupported": "非サポート", + "polyfill": "polyfillによりサポート" + } +}
5a45ecf6833b381af90a3063c652da66ebd0c908
2019-08-01 20:40:31
Jacek Karczmarczyk
fix(VDataTable, VSimpleTable): missing rtl styles, other minor tweaks (#8200)
false
missing rtl styles, other minor tweaks (#8200)
fix
diff --git a/packages/vuetify/src/components/VDataIterator/VDataFooter.sass b/packages/vuetify/src/components/VDataIterator/VDataFooter.sass index 3f925d9b99c..d40e1924a6d 100644 --- a/packages/vuetify/src/components/VDataIterator/VDataFooter.sass +++ b/packages/vuetify/src/components/VDataIterator/VDataFooter.sass @@ -15,31 +15,54 @@ // Elements .v-data-footer__icons-before .v-btn:last-child - margin-right: 7px + +ltr() + margin-right: 7px + + +rtl() + margin-left: 7px .v-data-footer__icons-after .v-btn:first-child - margin-left: 7px + +ltr() + margin-left: 7px + + +rtl() + margin-right: 7px .v-data-footer__pagination display: block text-align: center - margin: 0 32px 0 24px + + +ltr() + margin: 0 32px 0 24px + + +rtl() + margin: 0 24px 0 32px .v-data-footer__select display: flex align-items: center flex: 0 0 0 justify-content: flex-end - margin-right: 14px white-space: nowrap + +ltr() + margin-right: 14px + + +rtl() + margin-left: 14px + .v-select flex: 0 1 0 - margin: 13px 0 13px 34px padding: 0 position: initial + +ltr() + margin: 13px 0 13px 34px + + +rtl() + margin: 13px 34px 13px 0 + .v-select__selections flex-wrap: nowrap diff --git a/packages/vuetify/src/components/VDataTable/VDataTable.sass b/packages/vuetify/src/components/VDataTable/VDataTable.sass index 5385fb9e6cb..4516098afb6 100644 --- a/packages/vuetify/src/components/VDataTable/VDataTable.sass +++ b/packages/vuetify/src/components/VDataTable/VDataTable.sass @@ -6,18 +6,12 @@ +theme(v-data-table) using ($material) tbody tr - &:hover:not(.v-data-table__expand-row):not(.v-data-table__empty-wrapper) + &:hover:not(.v-data-table__expand-row) background: map-deep-get($material, 'table', 'hover') - &.expanded - border-bottom: 0 - - &.expanded__row + &.expanded.expanded__row background: map-deep-get($material, 'table', 'active') - &.expanded__content - box-shadow: inset 0px 4px 8px -5px rgba(50, 50, 50, 0.75), inset 0px -4px 8px -5px rgba(50, 50, 50, 0.75) - .v-row-group &__header, &__summary background: map-deep-get($material, 'table', 'group') @@ -27,7 +21,19 @@ .v-data-table__empty-wrapper color: map-deep-get($material, 'text', 'disabled') - text-align: center + +.v-data-table + tbody + tr + &.expanded + border-bottom: 0 + + &.expanded__content + box-shadow: inset 0px 4px 8px -5px rgba(50, 50, 50, 0.75), inset 0px -4px 8px -5px rgba(50, 50, 50, 0.75) + +.v-data-table__empty-wrapper + text-align: center + pointer-events: none .v-data-table__mobile-row display: block diff --git a/packages/vuetify/src/components/VDataTable/VSimpleTable.sass b/packages/vuetify/src/components/VDataTable/VSimpleTable.sass index 0122581112c..c93ac0b48b5 100644 --- a/packages/vuetify/src/components/VDataTable/VSimpleTable.sass +++ b/packages/vuetify/src/components/VDataTable/VSimpleTable.sass @@ -14,7 +14,6 @@ &.v-data-table--fixed-header thead th background: map-get($material, 'cards') - border-bottom: 0px !important box-shadow: inset 0 -1px 0 rgba(map-get($material, 'fg-color'), map-get($material, 'divider-percent')) thead @@ -46,11 +45,16 @@ padding: 0 16px th - text-align: left user-select: none font-size: 12px height: $data-table-regular-header-height + +ltr() + text-align: left + + +rtl() + text-align: right + td font-size: 14px height: $data-table-regular-row-height @@ -85,6 +89,7 @@ thead th + border-bottom: 0px !important position: sticky top: 0 z-index: 2 @@ -94,8 +99,12 @@ top: $data-table-regular-header-height // Account for scroll bar - .v-table__header, .v-data-footer - margin-right: $data-table-scroll-bar-width + .v-data-footer + +ltr() + margin-right: $data-table-scroll-bar-width + + +rtl() + margin-left: $data-table-scroll-bar-width .v-data-table--fixed.v-data-table--dense thead
2f66002a5c23718183316314bc6c28ab16e75657
2020-09-23 09:32:24
John Leider
docs(notifications.js): only fetch notifications less than 60 days old
false
only fetch notifications less than 60 days old
docs
diff --git a/packages/docs/src/store/modules/notifications.js b/packages/docs/src/store/modules/notifications.js index debc7084812..e550c12aa6b 100644 --- a/packages/docs/src/store/modules/notifications.js +++ b/packages/docs/src/store/modules/notifications.js @@ -19,7 +19,7 @@ const actions = { sort: '-created_at', query: { created_at: { - $gt: Math.ceil(subDays(Date.now(), 15).getTime() / 1000), + $gt: Math.ceil(subDays(Date.now(), 60).getTime()), }, }, })
9175a1a017cf8104c4084f9441c2eb5ad28d7416
2020-01-23 00:03:59
John Leider
docs: update expand-on-hover example
false
update expand-on-hover example
docs
diff --git a/packages/docs/src/examples/navigation-drawers/simple/expand-on-hover.vue b/packages/docs/src/examples/navigation-drawers/simple/expand-on-hover.vue index 76e4e6c5bfd..28e630c3f8d 100644 --- a/packages/docs/src/examples/navigation-drawers/simple/expand-on-hover.vue +++ b/packages/docs/src/examples/navigation-drawers/simple/expand-on-hover.vue @@ -1,57 +1,59 @@ <template> - <v-card> - <v-navigation-drawer - expand-on-hover - permanent - > - <template v-slot:prepend> - <v-list> - <v-list-item> - <v-list-item-avatar> - <v-img src="https://randomuser.me/api/portraits/women/85.jpg"></v-img> - </v-list-item-avatar> - </v-list-item> + <div class="ma-12 pa-12"> + <template> + <v-card> + <v-navigation-drawer + permanent + expand-on-hover + > + <v-list> + <v-list-item class="px-2"> + <v-list-item-avatar> + <v-img src="https://randomuser.me/api/portraits/women/85.jpg"></v-img> + </v-list-item-avatar> + </v-list-item> - <v-list-item - link - two-line - > - <v-list-item-content> - <v-list-item-title class="title">Sandra Adams</v-list-item-title> - <v-list-item-subtitle>[email protected]</v-list-item-subtitle> - </v-list-item-content> - <v-list-item-action> - <v-icon>mdi-menu-down</v-icon> - </v-list-item-action> - </v-list-item> - </v-list> - </template> + <v-list-item link> + <v-list-item-content> + <v-list-item-title class="title">Sandra Adams</v-list-item-title> + <v-list-item-subtitle>[email protected]</v-list-item-subtitle> + </v-list-item-content> + </v-list-item> + </v-list> - <v-divider></v-divider> + <v-divider></v-divider> - <v-list - nav - dense - > - <v-list-item link> - <v-list-item-icon> - <v-icon>mdi-folder</v-icon> - </v-list-item-icon> - <v-list-item-title>My Files</v-list-item-title> - </v-list-item> - <v-list-item link> - <v-list-item-icon> - <v-icon>mdi-account-multiple</v-icon> - </v-list-item-icon> - <v-list-item-title>Shared with me</v-list-item-title> - </v-list-item> - <v-list-item link> - <v-list-item-icon> - <v-icon>mdi-star</v-icon> - </v-list-item-icon> - <v-list-item-title>Starred</v-list-item-title> - </v-list-item> - </v-list> - </v-navigation-drawer> - </v-card> + <v-list + nav + dense + > + <v-list-item link> + <v-list-item-icon> + <v-icon>mdi-folder</v-icon> + </v-list-item-icon> + <v-list-item-title>My Files</v-list-item-title> + </v-list-item> + <v-list-item link> + <v-list-item-icon> + <v-icon>mdi-account-multiple</v-icon> + </v-list-item-icon> + <v-list-item-title>Shared with me</v-list-item-title> + </v-list-item> + <v-list-item link> + <v-list-item-icon> + <v-icon>mdi-star</v-icon> + </v-list-item-icon> + <v-list-item-title>Starred</v-list-item-title> + </v-list-item> + </v-list> + </v-navigation-drawer> + </v-card> + </template> + </div> </template> + +<script> + export default { + // + } +</script>
afc507548e03b06842a9c29db5d8319d7e783418
2021-05-04 23:25:30
John Leider
docs: add event tracking on toolbar links
false
add event tracking on toolbar links
docs
diff --git a/packages/docs/src/components/doc/links/DiscordLink.vue b/packages/docs/src/components/doc/links/DiscordLink.vue index b3c9778d15e..ef1fd275ecb 100644 --- a/packages/docs/src/components/doc/links/DiscordLink.vue +++ b/packages/docs/src/components/doc/links/DiscordLink.vue @@ -5,9 +5,29 @@ path="discord" rel="noopener" target="_blank" + @click="onClick" /> </template> <script> - export default { name: 'DiscordLink' } + // Utilities + import { get } from 'vuex-pathify' + + export default { + name: 'DiscordLink', + + computed: { + name: get('route/name'), + }, + + methods: { + onClick () { + this.$gtag.event('click', { + event_category: 'toolbar', + event_label: 'discord', + value: this.name, + }) + }, + }, + } </script> diff --git a/packages/docs/src/components/doc/links/EnterpriseLink.vue b/packages/docs/src/components/doc/links/EnterpriseLink.vue index 0d89ae2f340..952a5c07955 100644 --- a/packages/docs/src/components/doc/links/EnterpriseLink.vue +++ b/packages/docs/src/components/doc/links/EnterpriseLink.vue @@ -8,9 +8,29 @@ } }" path="enterprise" + @click="onClick" /> </template> <script> - export default { name: 'EnterpriseLink' } + // Utilities + import { get } from 'vuex-pathify' + + export default { + name: 'EnterpriseLink', + + computed: { + name: get('route/name'), + }, + + methods: { + onClick () { + this.$gtag.event('click', { + event_category: 'toolbar', + event_label: 'enterprise', + value: this.name, + }) + }, + }, + } </script> diff --git a/packages/docs/src/components/doc/links/GithubLink.vue b/packages/docs/src/components/doc/links/GithubLink.vue index 19c747a5194..3e79d9ba4e0 100644 --- a/packages/docs/src/components/doc/links/GithubLink.vue +++ b/packages/docs/src/components/doc/links/GithubLink.vue @@ -5,9 +5,30 @@ path="github" rel="noopener" target="_blank" + @click="onClick" /> </template> <script> - export default { name: 'GithubLink' } + // Utilities + import { get } from 'vuex-pathify' + + export default { + name: 'GithubLink', + + computed: { + name: get('route/name'), + }, + + methods: { + onClick () { + this.$gtag.event('click', { + event_category: 'toolbar', + event_label: 'github', + value: this.name, + }) + }, + }, + + } </script> diff --git a/packages/docs/src/components/doc/links/GuideLink.vue b/packages/docs/src/components/doc/links/GuideLink.vue index e8f1161a520..8dabb6aeed5 100644 --- a/packages/docs/src/components/doc/links/GuideLink.vue +++ b/packages/docs/src/components/doc/links/GuideLink.vue @@ -8,9 +8,29 @@ } }" path="guide" + @click="onClick" /> </template> <script> - export default { name: 'GuideLink' } + // Utilities + import { get } from 'vuex-pathify' + + export default { + name: 'GuideLink', + + computed: { + name: get('route/name'), + }, + + methods: { + onClick () { + this.$gtag.event('click', { + event_category: 'toolbar', + event_label: 'guide', + value: this.name, + }) + }, + }, + } </script> diff --git a/packages/docs/src/components/doc/links/JobsLink.vue b/packages/docs/src/components/doc/links/JobsLink.vue index f3b1ebbb774..fdeed2a3bbc 100644 --- a/packages/docs/src/components/doc/links/JobsLink.vue +++ b/packages/docs/src/components/doc/links/JobsLink.vue @@ -9,6 +9,7 @@ }" class="jobs-link" path="jobs" + @click="onClick" > <template #icon> <v-badge @@ -35,6 +36,7 @@ name: 'JobsLink', computed: { + name: get('route/name'), newJobs: get('jobs/newJobs'), page: get('route/params@page'), icon () { @@ -48,7 +50,16 @@ this.fetch() }, - methods: { fetch: call('jobs/fetch') }, + methods: { + fetch: call('jobs/fetch'), + onClick () { + this.$gtag.event('click', { + event_category: 'toolbar', + event_label: 'jobs', + value: this.name, + }) + }, + }, } </script> diff --git a/packages/docs/src/components/doc/links/SponsorLink.vue b/packages/docs/src/components/doc/links/SponsorLink.vue index d91d3dac33e..60c6692567b 100644 --- a/packages/docs/src/components/doc/links/SponsorLink.vue +++ b/packages/docs/src/components/doc/links/SponsorLink.vue @@ -12,6 +12,7 @@ outlined v-bind="$attrs" v-on="$listeners" + @click="onClick" > <span class="text-capitalize font-weight-regular" @@ -21,5 +22,24 @@ </template> <script> - export default { name: 'SponsorLink' } + // Utilities + import { get } from 'vuex-pathify' + + export default { + name: 'SponsorLink', + + computed: { + name: get('route/name'), + }, + + methods: { + onClick () { + this.$gtag.event('click', { + event_category: 'toolbar', + event_label: 'sponsors', + value: this.name, + }) + }, + }, + } </script> diff --git a/packages/docs/src/components/doc/links/StoreLink.vue b/packages/docs/src/components/doc/links/StoreLink.vue index 7ce83c4b42a..d5d50cb32be 100644 --- a/packages/docs/src/components/doc/links/StoreLink.vue +++ b/packages/docs/src/components/doc/links/StoreLink.vue @@ -5,9 +5,29 @@ path="store" rel="noopener" target="_blank" + @click="onClick" /> </template> <script> - export default { name: 'StoreLink' } + // Utilities + import { get } from 'vuex-pathify' + + export default { + name: 'StoreLink', + + computed: { + name: get('route/name'), + }, + + methods: { + onClick () { + this.$gtag.event('click', { + event_category: 'toolbar', + event_label: 'store', + value: this.name, + }) + }, + }, + } </script> diff --git a/packages/docs/src/components/doc/links/TeamLink.vue b/packages/docs/src/components/doc/links/TeamLink.vue index e2f86d194ea..9f8106efa84 100644 --- a/packages/docs/src/components/doc/links/TeamLink.vue +++ b/packages/docs/src/components/doc/links/TeamLink.vue @@ -8,9 +8,29 @@ } }" path="team" + @click="onClick" /> </template> <script> - export default { name: 'TeamLink' } + // Utilities + import { get } from 'vuex-pathify' + + export default { + name: 'TeamLink', + + computed: { + name: get('route/name'), + }, + + methods: { + onClick () { + this.$gtag.event('click', { + event_category: 'toolbar', + event_label: 'team', + value: this.name, + }) + }, + }, + } </script>
b3b6f772fafb62d2ac922204cb64e218407e4c7d
2020-07-09 20:06:30
MajesticPotatoe
docs(application): update to reflect #11822
false
update to reflect #11822
docs
diff --git a/packages/docs-next/src/pages/en/components/application.md b/packages/docs-next/src/pages/en/components/application.md index a05639cac97..dbe36d3d13e 100644 --- a/packages/docs-next/src/pages/en/components/application.md +++ b/packages/docs-next/src/pages/en/components/application.md @@ -11,7 +11,7 @@ related: # Application -In Vuetify, the `v-app` component and the **app** prop on components like `v-navigation-drawer`, `v-app-bar`, `v-footer` and more, help bootstrap your application with the proper sizing around `<v-main>` component. This allows you to create truly unique interfaces without the hassle of managing your layout sizing. The `v-app` component is **REQUIRED** for all applications. This is the mount point for many of Vuetify's components and functionality and ensures that it propagates the default application _variant_ (**dark/light**) to children components and also ensures proper cross-browser support for certain click events in browsers like Safari. `v-app` should only be used within your application **ONCE**. +In Vuetify, the `v-app` component and the **app** prop on components like `v-navigation-drawer`, `v-app-bar`, `v-footer` and more, help bootstrap your application with the proper sizing around `<v-main>` component. This allows you to create truly unique interfaces without the hassle of managing your layout sizing. The `v-app` component is **REQUIRED** for all applications. This is the mount point for many of Vuetify's components and functionality and ensures that it propagates the default application _variant_ (**dark/light**) to children components and also ensures proper cross-browser support for certain click events in browsers like Safari. `v-app` should only be rendered within your application **ONCE**. <entry-ad /> @@ -24,6 +24,10 @@ In Vuetify, the `v-app` component and the **app** prop on components like `v-nav In order for your application to work properly, you **must** wrap it in a `v-app` component. This component is required for ensuring proper **cross-browser compatibility**. Vuetify doesn't support multiple isolated Vuetify instances on a page. `v-app` can exist **anywhere** inside the body of your app, however, there should only be one and it must be the parent of **ALL** Vuetify components. </alert> +<alert type="info"> + If you are using multiple layouts in your application you will need to ensure each root layout file that will contain Vuetify components has a `v-app` at the root of its template. +</alert> + ## Default application markup This is an example of the default application markup for Vuetify. You can place your layout elements anywhere, as long as you apply the **app** property. The key component in all of this is `v-main`. This will be dynamically sized depending upon the structure of your designated **app** components. You can use combinations of any or all of the above components including `v-bottom-navigation`.
545b20ca827eeeb2f2ee7a0a2c4f3f0e10578e24
2018-10-08 02:55:42
John Leider
fix(v-select): remove change event for external changes
false
remove change event for external changes
fix
diff --git a/src/components/VAutocomplete/VAutocomplete.js b/src/components/VAutocomplete/VAutocomplete.js index 8859ca8c635..58ab5190661 100644 --- a/src/components/VAutocomplete/VAutocomplete.js +++ b/src/components/VAutocomplete/VAutocomplete.js @@ -260,7 +260,7 @@ export default { : -1 if (newIndex === -1) { - this.internalValue = this.multiple ? [] : undefined + this.setValue(this.multiple ? [] : undefined) } else { this.selectItem(currentItem) } @@ -328,11 +328,6 @@ export default { VSelect.methods.onTabDown.call(this, e) this.updateSelf() }, - selectItem (item) { - VSelect.methods.selectItem.call(this, item) - - this.setSearch() - }, setSelectedItems () { VSelect.methods.setSelectedItems.call(this) @@ -353,10 +348,6 @@ export default { : this.getText(this.selectedItem) }) }, - setValue () { - this.internalValue = this.internalSearch - this.$emit('change', this.internalSearch) - }, updateSelf () { this.updateAutocomplete() }, diff --git a/src/components/VCombobox/VCombobox.js b/src/components/VCombobox/VCombobox.js index 7f34ac0bb7e..548b61e42cd 100644 --- a/src/components/VCombobox/VCombobox.js +++ b/src/components/VCombobox/VCombobox.js @@ -142,8 +142,6 @@ export default { } else { VSelect.methods.selectItem.call(this, item) } - - this.setSearch() }, setSelectedItems () { if (this.internalValue == null || @@ -154,11 +152,14 @@ export default { this.selectedItems = this.multiple ? this.internalValue : [this.internalValue] } }, + setValue (value = this.internalSearch) { + VSelect.methods.setValue.call(this, value) + }, updateEditing () { const value = this.internalValue.slice() value[this.editingIndex] = this.internalSearch - this.internalValue = value + this.setValue(value) this.editingIndex = -1 }, @@ -199,7 +200,10 @@ export default { // this might need to change to bring // the duplicated item to the last entered if (index > -1) { - this.internalValue.splice(index, 1) + const internalValue = this.internalValue.slice() + internalValue.splice(index, 1) + + this.setValue(internalValue) } // If menu index is greater than 1 diff --git a/src/components/VSelect/VSelect.js b/src/components/VSelect/VSelect.js index 84cb618f7d8..e7397e696b8 100644 --- a/src/components/VSelect/VSelect.js +++ b/src/components/VSelect/VSelect.js @@ -220,7 +220,6 @@ export default { watch: { internalValue (val) { this.initialValue = val - this.$emit('change', this.internalValue) this.setSelectedItems() }, isBooted () { @@ -264,7 +263,7 @@ export default { this.isMenuActive = true }, clearableCallback () { - this.internalValue = this.multiple ? [] : undefined + this.setValue(this.multiple ? [] : undefined) this.$nextTick(() => this.$refs.input.focus()) if (this.openOnClear) this.isMenuActive = true @@ -527,7 +526,7 @@ export default { }, onChipInput (item) { if (this.multiple) this.selectItem(item) - else this.internalValue = null + else this.setValue(null) // If all items have been deleted, // open `v-menu` @@ -637,16 +636,16 @@ export default { }, selectItem (item) { if (!this.multiple) { - this.internalValue = this.returnObject ? item : this.getValue(item) + this.setValue(this.returnObject ? item : this.getValue(item)) this.isMenuActive = false } else { const internalValue = (this.internalValue || []).slice() const i = this.findExistingIndex(item) i !== -1 ? internalValue.splice(i, 1) : internalValue.push(item) - this.internalValue = internalValue.map(i => { + this.setValue(internalValue.map(i => { return this.returnObject ? i : this.getValue(i) - }) + })) // When selecting multiple // adjust menu after each @@ -678,6 +677,10 @@ export default { } this.selectedItems = selectedItems + }, + setValue (value) { + this.internalValue = value + this.$emit('change', value) } } } diff --git a/test/unit/components/VSelect/VSelect3.spec.js b/test/unit/components/VSelect/VSelect3.spec.js index 8c3908a0369..0f655d0a1dd 100644 --- a/test/unit/components/VSelect/VSelect3.spec.js +++ b/test/unit/components/VSelect/VSelect3.spec.js @@ -153,6 +153,22 @@ test('VSelect', ({ mount, compileToFunctions }) => { expect(change).toHaveBeenCalledTimes(1) }) + it('should not call change when model updated externally', async () => { + const change = jest.fn() + const wrapper = mount(VSelect) + + wrapper.vm.$on('change', change) + + wrapper.setProps({ value: 'foo' }) + + expect(change).not.toBeCalled() + + wrapper.vm.setValue('foo') + + expect(change).toBeCalledWith('foo') + expect(change).toHaveBeenCalledTimes(1) + }) + // https://github.com/vuetifyjs/vuetify/issues/4713 it('should nudge select menu', () => { const wrapper = mount(VSelect, {
87dbc7bb055074af5395d59a0b9e4a18316f70b6
2019-09-19 20:39:48
Mohamed Elbahja
fix(VStepper): fix transition in RTL (#9018)
false
fix transition in RTL (#9018)
fix
diff --git a/packages/vuetify/src/components/VStepper/VStepperContent.ts b/packages/vuetify/src/components/VStepper/VStepperContent.ts index 0065591c665..6ac562896c7 100644 --- a/packages/vuetify/src/components/VStepper/VStepperContent.ts +++ b/packages/vuetify/src/components/VStepper/VStepperContent.ts @@ -57,7 +57,10 @@ export default baseMixins.extend<options>().extend({ computed: { computedTransition (): FunctionalComponentOptions { - return this.isReverse + // Fix for #8978 + const reverse = this.$vuetify.rtl ? !this.isReverse : this.isReverse + + return reverse ? VTabReverseTransition : VTabTransition }, diff --git a/packages/vuetify/src/components/VStepper/__tests__/VStepperContent.spec.ts b/packages/vuetify/src/components/VStepper/__tests__/VStepperContent.spec.ts index cd35ed5fe00..1fa80a154be 100644 --- a/packages/vuetify/src/components/VStepper/__tests__/VStepperContent.spec.ts +++ b/packages/vuetify/src/components/VStepper/__tests__/VStepperContent.spec.ts @@ -28,6 +28,11 @@ describe('VStepperContent.ts', () => { mountFunction = (options = {}) => { return mount(VStepperContent, { localVue, + mocks: { + $vuetify: { + rtl: false, + }, + }, ...options, }) } @@ -72,6 +77,28 @@ describe('VStepperContent.ts', () => { expect(wrapper.vm.computedTransition).toBe(VTabReverseTransition) }) + it('should use opposite of reverse transition in rtl', () => { + const wrapper = mountFunction({ + mocks: { + $vuetify: { + rtl: true, + }, + }, + propsData: { step: 1 }, + provide: { + isVertical: false, + stepper: { + register: () => {}, + unregister: () => {}, + }, + }, + }) + expect(wrapper.vm.computedTransition).toBe(VTabReverseTransition) + + wrapper.setData({ isReverse: true }) + expect(wrapper.vm.computedTransition).toBe(VTabTransition) + }) + it('should accept a custom height', async () => { const wrapper = mountFunction({ attachToDocument: true,
d32c0fd30721a8df46ae96b3a775f1f7772f1119
2019-09-04 07:46:34
John Leider
fix(VListItem): change text color implementation
false
change text color implementation
fix
diff --git a/packages/vuetify/src/components/VList/VListItem.sass b/packages/vuetify/src/components/VList/VListItem.sass index 7b3200defe8..2059d202401 100644 --- a/packages/vuetify/src/components/VList/VListItem.sass +++ b/packages/vuetify/src/components/VList/VListItem.sass @@ -3,9 +3,6 @@ // Theme +theme(v-list-item) using ($material) - &--active - color: map-deep-get($material, 'text', 'primary') - &--disabled color: map-deep-get($material, 'text', 'disabled') @@ -203,7 +200,10 @@ top: 0 transition: $primary-transition -.v-list-item--active +// https://github.com/vuetifyjs/vuetify/issues/8327 +.v-list .v-list-item--active + color: inherit + .v-icon color: inherit
b23715171fc77b5629dcd0c7961961b26db932e8
2020-06-23 01:01:02
MajesticPotatoe
docs(alerts): move api section
false
move api section
docs
diff --git a/packages/docs-next/src/pages/en/components/alerts.md b/packages/docs-next/src/pages/en/components/alerts.md index dc9561b15a5..5a2b847b24a 100644 --- a/packages/docs-next/src/pages/en/components/alerts.md +++ b/packages/docs-next/src/pages/en/components/alerts.md @@ -21,6 +21,10 @@ Alerts in their simplest form are a flat [sheets of paper](/components/sheets) t <usage name="v-alert" /> +## API + +- [v-alert](../../api/v-alert) + ## Examples Below is a collection of simple to complex examples. @@ -98,8 +102,4 @@ By combining **color**, **dismissible**, **border**, **elevation**, **icon**, an By default, `v-alert` components are assigned the [WAI-ARIA](https://www.w3.org/WAI/standards-guidelines/aria/) role of [**alert**](https://www.w3.org/TR/wai-aria/#alert) which denotes that the alert \"is a live region with important and usually time-sensitive, information.\" When using the **dismissible** prop the close icon will receive a corresponding `aria-label`. This value can be modified by changing either the **close-label** prop or globally through customizing the [Internationalization](/customization/internationalization)'s default value for the _close_ property. -## API - -- [v-alert](../../api/v-alert) - <doc-footer />
90df138e2e3fcfc3f5e0cba92d5fe0c3df667695
2021-03-07 00:35:10
Kael
chore(lint): enable no-console and no-debugger
false
enable no-console and no-debugger
chore
diff --git a/packages/vuetify/.eslintrc.js b/packages/vuetify/.eslintrc.js index f9b15b4a5c9..18fd74f2c54 100644 --- a/packages/vuetify/.eslintrc.js +++ b/packages/vuetify/.eslintrc.js @@ -12,6 +12,8 @@ module.exports = { ], extends: ['plugin:jest/recommended'], rules: { + 'no-console': 'error', + 'no-debugger': 'error', 'vue/html-self-closing': 'off', 'vue/html-closing-bracket-spacing': 'off', 'vue/max-attributes-per-line': ['error', { @@ -43,6 +45,7 @@ module.exports = { { files: '**/*.spec.ts', rules: { + 'no-console': 'off', 'vue/component-definition-name-casing': 'off', }, }, diff --git a/packages/vuetify/src/mixins/detachable/index.ts b/packages/vuetify/src/mixins/detachable/index.ts index d67117a2ffc..317df3b2180 100644 --- a/packages/vuetify/src/mixins/detachable/index.ts +++ b/packages/vuetify/src/mixins/detachable/index.ts @@ -104,7 +104,7 @@ export default mixins<options & node.elm.parentNode.removeChild(node.elm) }) } - } catch (e) { console.log(e) } + } catch (e) { console.log(e) } /* eslint-disable-line no-console */ }, methods: { diff --git a/packages/vuetify/src/util/console.ts b/packages/vuetify/src/util/console.ts index 33cb8ced924..fe40badca08 100644 --- a/packages/vuetify/src/util/console.ts +++ b/packages/vuetify/src/util/console.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import Vuetify from '../framework' function createMessage (message: string, vm?: any, parent?: any): string | void { diff --git a/packages/vuetify/src/util/helpers.ts b/packages/vuetify/src/util/helpers.ts index f7897e6b55f..e07cba2879a 100644 --- a/packages/vuetify/src/util/helpers.ts +++ b/packages/vuetify/src/util/helpers.ts @@ -57,7 +57,7 @@ try { window.addEventListener('testListener', testListenerOpts, testListenerOpts) window.removeEventListener('testListener', testListenerOpts, testListenerOpts) } -} catch (e) { console.warn(e) } +} catch (e) { console.warn(e) } /* eslint-disable-line no-console */ export { passiveSupported } export function addPassiveEventListener (
1e6aef6b2d0217c1022131f2b4d0032492b62e9c
2019-06-19 22:54:49
nekosaur
docs(VDataTable): moved examples into slot example
false
moved examples into slot example
docs
diff --git a/packages/docs/src/data/pages/components/DataTables.json b/packages/docs/src/data/pages/components/DataTables.json index ed25831d5c4..305b54e4bbf 100644 --- a/packages/docs/src/data/pages/components/DataTables.json +++ b/packages/docs/src/data/pages/components/DataTables.json @@ -43,8 +43,6 @@ "customize-header", "customize-rows", "customize-footer", - "progress", - "footer", "paginate", "sort", "server", diff --git a/packages/docs/src/examples/data-tables/footer.vue b/packages/docs/src/examples/data-tables/footer.vue deleted file mode 100644 index 323313bce9f..00000000000 --- a/packages/docs/src/examples/data-tables/footer.vue +++ /dev/null @@ -1,117 +0,0 @@ -<template> - <v-data-table - :headers="headers" - :items="desserts" - class="elevation-1" - > - <template v-slot:footer> - <td :colspan="headers.length"> - <strong>This is an extra footer</strong> - </td> - </template> - </v-data-table> -</template> - -<script> - export default { - data () { - return { - headers: [ - { - text: 'Dessert (100g serving)', - align: 'left', - sortable: false, - value: 'name', - }, - { text: 'Calories', value: 'calories' }, - { text: 'Fat (g)', value: 'fat' }, - { text: 'Carbs (g)', value: 'carbs' }, - { text: 'Protein (g)', value: 'protein' }, - { text: 'Iron (%)', value: 'iron' }, - ], - desserts: [ - { - name: 'Frozen Yogurt', - calories: 159, - fat: 6.0, - carbs: 24, - protein: 4.0, - iron: '1%', - }, - { - name: 'Ice cream sandwich', - calories: 237, - fat: 9.0, - carbs: 37, - protein: 4.3, - iron: '1%', - }, - { - name: 'Eclair', - calories: 262, - fat: 16.0, - carbs: 23, - protein: 6.0, - iron: '7%', - }, - { - name: 'Cupcake', - calories: 305, - fat: 3.7, - carbs: 67, - protein: 4.3, - iron: '8%', - }, - { - name: 'Gingerbread', - calories: 356, - fat: 16.0, - carbs: 49, - protein: 3.9, - iron: '16%', - }, - { - name: 'Jelly bean', - calories: 375, - fat: 0.0, - carbs: 94, - protein: 0.0, - iron: '0%', - }, - { - name: 'Lollipop', - calories: 392, - fat: 0.2, - carbs: 98, - protein: 0, - iron: '2%', - }, - { - name: 'Honeycomb', - calories: 408, - fat: 3.2, - carbs: 87, - protein: 6.5, - iron: '45%', - }, - { - name: 'Donut', - calories: 452, - fat: 25.0, - carbs: 51, - protein: 4.9, - iron: '22%', - }, - { - name: 'KitKat', - calories: 518, - fat: 26.0, - carbs: 65, - protein: 7, - iron: '6%', - }, - ], - } - }, - } -</script> diff --git a/packages/docs/src/examples/data-tables/progress.vue b/packages/docs/src/examples/data-tables/progress.vue deleted file mode 100644 index c191c8f1012..00000000000 --- a/packages/docs/src/examples/data-tables/progress.vue +++ /dev/null @@ -1,116 +0,0 @@ -<template> - <v-data-table - :headers="headers" - :items="desserts" - :loading="true" - class="elevation-1" - > - <template v-slot:progress> - <v-progress-linear color="green" :height="4" indeterminate></v-progress-linear> - </template> - </v-data-table> -</template> - -<script> - export default { - data () { - return { - headers: [ - { - text: 'Dessert (100g serving)', - align: 'left', - sortable: false, - value: 'name', - }, - { text: 'Calories', value: 'calories' }, - { text: 'Fat (g)', value: 'fat' }, - { text: 'Carbs (g)', value: 'carbs' }, - { text: 'Protein (g)', value: 'protein' }, - { text: 'Iron (%)', value: 'iron' }, - ], - desserts: [ - { - name: 'Frozen Yogurt', - calories: 159, - fat: 6.0, - carbs: 24, - protein: 4.0, - iron: '1%', - }, - { - name: 'Ice cream sandwich', - calories: 237, - fat: 9.0, - carbs: 37, - protein: 4.3, - iron: '1%', - }, - { - name: 'Eclair', - calories: 262, - fat: 16.0, - carbs: 23, - protein: 6.0, - iron: '7%', - }, - { - name: 'Cupcake', - calories: 305, - fat: 3.7, - carbs: 67, - protein: 4.3, - iron: '8%', - }, - { - name: 'Gingerbread', - calories: 356, - fat: 16.0, - carbs: 49, - protein: 3.9, - iron: '16%', - }, - { - name: 'Jelly bean', - calories: 375, - fat: 0.0, - carbs: 94, - protein: 0.0, - iron: '0%', - }, - { - name: 'Lollipop', - calories: 392, - fat: 0.2, - carbs: 98, - protein: 0, - iron: '2%', - }, - { - name: 'Honeycomb', - calories: 408, - fat: 3.2, - carbs: 87, - protein: 6.5, - iron: '45%', - }, - { - name: 'Donut', - calories: 452, - fat: 25.0, - carbs: 51, - protein: 4.9, - iron: '22%', - }, - { - name: 'KitKat', - calories: 518, - fat: 26.0, - carbs: 65, - protein: 7, - iron: '6%', - }, - ], - } - }, - } -</script> diff --git a/packages/docs/src/examples/data-tables/slots.vue b/packages/docs/src/examples/data-tables/slots.vue index 2a3b44a2f37..63af41dc65d 100644 --- a/packages/docs/src/examples/data-tables/slots.vue +++ b/packages/docs/src/examples/data-tables/slots.vue @@ -5,8 +5,9 @@ :headers="headers" :items="items" :search="search" - :hide-default-header="!showSelect" + :hide-default-header="hideHeaders" :show-select="showSelect" + :loading="isLoading" hide-default-footer item-key="name" class="elevation-1" @@ -29,6 +30,10 @@ </thead> </template> + <template v-if="isEnabled('progress')" v-slot:progress> + <v-progress-linear color="purple" :height="10" indeterminate></v-progress-linear> + </template> + <template v-if="isEnabled('item.data-table-select')" v-slot:item.data-table-select="{ on, props }"> <v-simple-checkbox color="green" v-bind="props" v-on="on"></v-simple-checkbox> </template> @@ -175,6 +180,7 @@ 'top', 'header.data-table-select', 'header', + 'progress', 'item.data-table-select', 'item.<name>', 'body.prepend', @@ -204,6 +210,12 @@ showSelect () { return this.isEnabled('header.data-table-select') || this.isEnabled('item.data-table-select') }, + hideHeaders () { + return !this.showSelect + }, + isLoading () { + return this.isEnabled('progress') + }, }, watch: {
4dbaec19f1a4b1ca19d6fa861a8176669aefd393
2020-06-17 02:32:41
Alberto De Agostini
fix(VVirtualScroll): provide correct item index to default slot (#11643)
false
provide correct item index to default slot (#11643)
fix
diff --git a/packages/vuetify/src/components/VVirtualScroll/VVirtualScroll.ts b/packages/vuetify/src/components/VVirtualScroll/VVirtualScroll.ts index 18317b1c298..b654a395bef 100644 --- a/packages/vuetify/src/components/VVirtualScroll/VVirtualScroll.ts +++ b/packages/vuetify/src/components/VVirtualScroll/VVirtualScroll.ts @@ -69,14 +69,15 @@ export default Measurable.extend({ ).map(this.genChild) }, genChild (item: any, index: number) { - const indexToRender = this.firstToRender + index - const top = convertToUnit(indexToRender * this.__itemHeight) + index += this.firstToRender + + const top = convertToUnit(index * this.__itemHeight) return this.$createElement('div', { staticClass: 'v-virtual-scroll__item', style: { top }, - key: indexToRender, - }, getSlot(this, 'default', { item, index })) + key: index, + }, getSlot(this, 'default', { index, item })) }, getFirst (): number { return Math.floor(this.scrollTop / this.__itemHeight) diff --git a/packages/vuetify/src/components/VVirtualScroll/__tests__/VVirtualScroll.spec.ts b/packages/vuetify/src/components/VVirtualScroll/__tests__/VVirtualScroll.spec.ts index 1456e445cd0..8021ecda7e8 100644 --- a/packages/vuetify/src/components/VVirtualScroll/__tests__/VVirtualScroll.spec.ts +++ b/packages/vuetify/src/components/VVirtualScroll/__tests__/VVirtualScroll.spec.ts @@ -82,4 +82,22 @@ describe('VVirtualScroll.ts', () => { expect(wrapper.html()).toMatchSnapshot() }) + + it('should provide the correct item index', () => { + const helpers = require('../../../util/helpers') + const spy = jest.spyOn(helpers, 'getSlot') + const wrapper = mountFunction({ + propsData, + computed: { firstToRender: () => 2 }, + }) + + wrapper.setData({ first: 2 }) + + wrapper.vm.genChild(0, 1) + + expect(spy.mock.calls[0][2]).toEqual({ + item: 0, + index: 3, + }) + }) })
c9a954d077918186fa65a0f23f9d008876912964
2020-09-21 23:51:45
John Leider
docs(DefaultAppBarItems): remove enterprise link
false
remove enterprise link
docs
diff --git a/packages/docs/src/layouts/default/AppBarItems.vue b/packages/docs/src/layouts/default/AppBarItems.vue index 4eb7dd435f0..a57e1fd9ac5 100644 --- a/packages/docs/src/layouts/default/AppBarItems.vue +++ b/packages/docs/src/layouts/default/AppBarItems.vue @@ -12,8 +12,6 @@ <template v-if="$vuetify.breakpoint.mdAndUp"> <team-link /> - <enterprise-link /> - <vertical-divider /> <store-link />
2f8ef1065623b1d32a452b5eeff082be2f24a133
2020-04-21 22:29:32
John Leider
chore(release): publish v2.2.23
false
publish v2.2.23
chore
diff --git a/lerna.json b/lerna.json index 06e5f71a9e1..ca52a4b2f44 100644 --- a/lerna.json +++ b/lerna.json @@ -13,6 +13,6 @@ } }, "npmClient": "yarn", - "version": "2.2.22", + "version": "2.2.23", "useWorkspaces": true } diff --git a/packages/api-generator/package.json b/packages/api-generator/package.json index 11c948e4812..873d24a5ade 100755 --- a/packages/api-generator/package.json +++ b/packages/api-generator/package.json @@ -1,6 +1,6 @@ { "name": "@vuetify/api-generator", - "version": "2.2.22", + "version": "2.2.23", "private": true, "description": "", "main": "dist/api.js", @@ -15,7 +15,7 @@ "dependencies": { "deepmerge": "^4.0.0", "vue": "^2.6.10", - "vuetify": "^2.2.22" + "vuetify": "^2.2.23" }, "devDependencies": { "@babel/node": "^7.5.5", diff --git a/packages/docs/package.json b/packages/docs/package.json index 2a3bd3ee6be..f99ac9757be 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -3,7 +3,7 @@ "description": "A Vue.js project", "private": true, "author": "John Leider <[email protected]>", - "version": "2.2.22", + "version": "2.2.23", "scripts": { "dev": "cross-env NODE_ENV=development webpack-dev-server --config build/webpack.client.config.js --hot --progress", "build": "rimraf dist && cross-env NODE_ENV=production webpack --config build/webpack.prod.config.js --no-progress --hide-modules && yarn prerender", @@ -13,7 +13,7 @@ "lint:fix": "yarn lint --fix" }, "dependencies": { - "@vuetify/api-generator": "^2.2.22", + "@vuetify/api-generator": "^2.2.23", "babel-polyfill": "^6.26.0", "chokidar": "^3.0.2", "compression": "^1.7.4", @@ -43,7 +43,7 @@ "vue-router": "^3.0.7", "vue-server-renderer": "^2.6.10", "vuelidate": "^0.7.4", - "vuetify": "^2.2.22", + "vuetify": "^2.2.23", "vuex": "^3.1.1", "vuex-pathify": "^1.4.0", "vuex-router-sync": "^5.0.0", diff --git a/packages/vuetify/package.json b/packages/vuetify/package.json index 35b7f3b5d69..45df64a2502 100644 --- a/packages/vuetify/package.json +++ b/packages/vuetify/package.json @@ -1,7 +1,7 @@ { "name": "vuetify", "description": "Vue Material Component Framework", - "version": "2.2.22", + "version": "2.2.23", "author": { "name": "John Leider", "email": "[email protected]"
45152052f815a92bdac2ec3d8510f67e27ad89e8
2023-03-15 23:46:38
John Leider
chore(release): publish v3.1.10
false
publish v3.1.10
chore
diff --git a/lerna.json b/lerna.json index 986b5f0821a..0cf0af2597a 100644 --- a/lerna.json +++ b/lerna.json @@ -13,6 +13,6 @@ } }, "npmClient": "yarn", - "version": "3.1.9", + "version": "3.1.10", "useWorkspaces": true } diff --git a/packages/api-generator/package.json b/packages/api-generator/package.json index 375b5f76c33..0649afc4c70 100755 --- a/packages/api-generator/package.json +++ b/packages/api-generator/package.json @@ -1,6 +1,6 @@ { "name": "@vuetify/api-generator", - "version": "3.1.9", + "version": "3.1.10", "private": true, "description": "", "scripts": { @@ -18,7 +18,7 @@ "rimraf": "^3.0.2", "ts-morph": "^16.0.0", "vue": "^3.2.47", - "vuetify": "^3.1.9" + "vuetify": "^3.1.10" }, "devDependencies": { "@babel/node": "^7.20.7" diff --git a/packages/docs/package.json b/packages/docs/package.json index 2569a15be82..893da3fda2f 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -3,7 +3,7 @@ "description": "A Vue.js project", "private": true, "author": "John Leider <[email protected]>", - "version": "3.1.9", + "version": "3.1.10", "repository": { "type": "git", "url": "git+https://github.com/vuetifyjs/vuetify.git", @@ -38,7 +38,7 @@ "vue-i18n": "^9.3.0-beta.16", "vue-instantsearch": "^4.8.3", "vue-prism-component": "^2.0.0", - "vuetify": "^3.1.9" + "vuetify": "^3.1.10" }, "devDependencies": { "@emailjs/browser": "^3.10.0", @@ -50,7 +50,7 @@ "@vitejs/plugin-basic-ssl": "^0.1.2", "@vitejs/plugin-vue": "^3.0.3", "@vue/compiler-sfc": "^3.2.47", - "@vuetify/api-generator": "^3.1.9", + "@vuetify/api-generator": "^3.1.10", "@vuetify/vite-ssg": "^0.20.2", "ajv": "^8.12.0", "date-fns": "^2.29.3", diff --git a/packages/vuetify/package.json b/packages/vuetify/package.json index 9b5808a2108..8adca363576 100755 --- a/packages/vuetify/package.json +++ b/packages/vuetify/package.json @@ -1,7 +1,7 @@ { "name": "vuetify", "description": "Vue Material Component Framework", - "version": "3.1.9", + "version": "3.1.10", "author": { "name": "John Leider", "email": "[email protected]"
0bba2f59d5f415861bb9a795251cf5e4c2ec422a
2024-01-19 10:20:28
John Leider
feat(VDataTable/Virtual): add support for sorting raw objects (#19048)
false
add support for sorting raw objects (#19048)
feat
diff --git a/packages/docs/src/examples/v-data-table/prop-headers-sort-raw.vue b/packages/docs/src/examples/v-data-table/prop-headers-sort-raw.vue new file mode 100644 index 00000000000..11cb855f20d --- /dev/null +++ b/packages/docs/src/examples/v-data-table/prop-headers-sort-raw.vue @@ -0,0 +1,105 @@ +<template> + <v-data-table + :headers="headers" + :items="items" + ></v-data-table> +</template> + +<script setup> + function sortRaw (a, b) { + if (a.location < b.location) return -1 + if (a.location > b.location) return 1 + + const dateA = a.constructed.split('-').pop().trim() + const dateB = b.constructed.split('-').pop().trim() + + return dateA.localeCompare(dateB, undefined, { numeric: true, sensitivity: 'base' }) + } + + const headers = [ + { title: 'Name', key: 'name' }, + { title: 'Location', key: 'location', sortRaw }, + { title: 'Constructed', key: 'constructed' }, + { title: 'Description', key: 'description' }, + ] + + const items = [ + { name: 'Great Pyramid of Giza', location: 'Egypt', constructed: '2584-2561 BC', description: 'The oldest and largest of the three pyramids in the Giza pyramid complex.' }, + { name: 'Hanging Gardens of Babylon', location: 'Iraq', constructed: '600 BC', description: 'An ascending series of tiered gardens, said to have been built in ancient Babylon.' }, + { name: 'Statue of Zeus at Olympia', location: 'Greece', constructed: '435 BC', description: 'A giant seated figure of Zeus, made by the sculptor Phidias.' }, + { name: 'Temple of Artemis at Ephesus', location: 'Turkey', constructed: '550 BC', description: 'A large temple dedicated to the goddess Artemis, one of the Seven Wonders of the Ancient World.' }, + { name: 'Mausoleum at Halicarnassus', location: 'Turkey', constructed: '351 BC', description: 'A tomb built for Mausolus, a satrap of the Persian Empire.' }, + { name: 'Colossus of Rhodes', location: 'Greece', constructed: '292-280 BC', description: 'A statue of the Greek sun-god Helios, erected in the city of Rhodes.' }, + { name: 'Lighthouse of Alexandria', location: 'Egypt', constructed: '280 BC', description: 'A lighthouse built by the Ptolemaic Kingdom on the island of Pharos.' }, + { name: 'Great Wall of China', location: 'China', constructed: '7th century BC - 1644 AD', description: 'A series of fortifications made of stone, brick, and other materials.' }, + { name: 'Petra', location: 'Jordan', constructed: '312 BC', description: 'A historical city known for its rock-cut architecture and water conduit system.' }, + { name: 'Taj Mahal', location: 'India', constructed: '1632-1653 AD', description: 'An ivory-white marble mausoleum on the south bank of the Yamuna river.' }, + { name: 'Machu Picchu', location: 'Peru', constructed: '1450 AD', description: 'An Incan citadel set high in the Andes Mountains.' }, + { name: 'Chichen Itza', location: 'Mexico', constructed: '600 AD', description: 'A large pre-Columbian archaeological site built by the Maya people.' }, + { name: 'Roman Colosseum', location: 'Italy', constructed: '70-80 AD', description: 'An oval amphitheatre in the centre of the city of Rome.' }, + { name: 'Stonehenge', location: 'United Kingdom', constructed: '3000 BC - 2000 BC', description: 'A prehistoric monument consisting of a ring of standing stones.' }, + { name: 'Angkor Wat', location: 'Cambodia', constructed: '12th century AD', description: 'The largest religious monument in the world, originally constructed as a Hindu temple.' }, + { name: 'Moai Statues of Easter Island', location: 'Chile', constructed: '1250-1500 AD', description: 'Monolithic human figures carved by the Rapa Nui people on Easter Island.' }, + { name: 'Hagia Sophia', location: 'Turkey', constructed: '537 AD', description: 'A former Greek Orthodox Christian patriarchal basilica, later an Ottoman imperial mosque and now a museum.' }, + { name: 'Alhambra', location: 'Spain', constructed: '13th century AD', description: 'A palace and fortress complex located in Granada.' }, + { name: 'Forbidden City', location: 'China', constructed: '1406-1420 AD', description: 'A palace complex in central Beijing, serving as the home of emperors and their households.' }, + { name: 'Christ the Redeemer', location: 'Brazil', constructed: '1922-1931 AD', description: 'An Art Deco statue of Jesus Christ in Rio de Janeiro.' }, + { name: 'Acropolis of Athens', location: 'Greece', constructed: '5th century BC', description: 'An ancient citadel located on a rocky outcrop above the city of Athens.' }, + { name: 'Terracotta Army', location: 'China', constructed: '246-206 BC', description: 'A collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China.' }, + { name: 'Parthenon', location: 'Greece', constructed: '447-438 BC', description: 'A former temple on the Athenian Acropolis, dedicated to the goddess Athena.' }, + { name: 'Tower of London', location: 'United Kingdom', constructed: '1078 AD', description: 'A historic castle located on the north bank of the River Thames in central London.' }, + { name: 'Neuschwanstein Castle', location: 'Germany', constructed: '1869-1886 AD', description: 'A 19th-century Romanesque Revival palace on a rugged hill above the village of Hohenschwangau.' }, + ] +</script> + +<script> + export default { + data: () => ({ + headers: [ + { title: 'Name', key: 'name' }, + { + title: 'Location', + key: 'location', + sortRaw (a, b) { + if (a.location < b.location) return -1 + if (a.location > b.location) return 1 + + const dateA = a.constructed.split('-').pop().trim() + const dateB = b.constructed.split('-').pop().trim() + + return dateA.localeCompare(dateB, undefined, { numeric: true, sensitivity: 'base' }) + }, + }, + { title: 'Constructed', key: 'constructed' }, + { title: 'Description', key: 'description' }, + ], + items: [ + { name: 'Great Pyramid of Giza', location: 'Egypt', constructed: '2584-2561 BC', description: 'The oldest and largest of the three pyramids in the Giza pyramid complex.' }, + { name: 'Hanging Gardens of Babylon', location: 'Iraq', constructed: '600 BC', description: 'An ascending series of tiered gardens, said to have been built in ancient Babylon.' }, + { name: 'Statue of Zeus at Olympia', location: 'Greece', constructed: '435 BC', description: 'A giant seated figure of Zeus, made by the sculptor Phidias.' }, + { name: 'Temple of Artemis at Ephesus', location: 'Turkey', constructed: '550 BC', description: 'A large temple dedicated to the goddess Artemis, one of the Seven Wonders of the Ancient World.' }, + { name: 'Mausoleum at Halicarnassus', location: 'Turkey', constructed: '351 BC', description: 'A tomb built for Mausolus, a satrap of the Persian Empire.' }, + { name: 'Colossus of Rhodes', location: 'Greece', constructed: '292-280 BC', description: 'A statue of the Greek sun-god Helios, erected in the city of Rhodes.' }, + { name: 'Lighthouse of Alexandria', location: 'Egypt', constructed: '280 BC', description: 'A lighthouse built by the Ptolemaic Kingdom on the island of Pharos.' }, + { name: 'Great Wall of China', location: 'China', constructed: '7th century BC - 1644 AD', description: 'A series of fortifications made of stone, brick, and other materials.' }, + { name: 'Petra', location: 'Jordan', constructed: '312 BC', description: 'A historical city known for its rock-cut architecture and water conduit system.' }, + { name: 'Taj Mahal', location: 'India', constructed: '1632-1653 AD', description: 'An ivory-white marble mausoleum on the south bank of the Yamuna river.' }, + { name: 'Machu Picchu', location: 'Peru', constructed: '1450 AD', description: 'An Incan citadel set high in the Andes Mountains.' }, + { name: 'Chichen Itza', location: 'Mexico', constructed: '600 AD', description: 'A large pre-Columbian archaeological site built by the Maya people.' }, + { name: 'Roman Colosseum', location: 'Italy', constructed: '70-80 AD', description: 'An oval amphitheatre in the centre of the city of Rome.' }, + { name: 'Stonehenge', location: 'United Kingdom', constructed: '3000 BC - 2000 BC', description: 'A prehistoric monument consisting of a ring of standing stones.' }, + { name: 'Angkor Wat', location: 'Cambodia', constructed: '12th century AD', description: 'The largest religious monument in the world, originally constructed as a Hindu temple.' }, + { name: 'Moai Statues of Easter Island', location: 'Chile', constructed: '1250-1500 AD', description: 'Monolithic human figures carved by the Rapa Nui people on Easter Island.' }, + { name: 'Hagia Sophia', location: 'Turkey', constructed: '537 AD', description: 'A former Greek Orthodox Christian patriarchal basilica, later an Ottoman imperial mosque and now a museum.' }, + { name: 'Alhambra', location: 'Spain', constructed: '13th century AD', description: 'A palace and fortress complex located in Granada.' }, + { name: 'Forbidden City', location: 'China', constructed: '1406-1420 AD', description: 'A palace complex in central Beijing, serving as the home of emperors and their households.' }, + { name: 'Christ the Redeemer', location: 'Brazil', constructed: '1922-1931 AD', description: 'An Art Deco statue of Jesus Christ in Rio de Janeiro.' }, + { name: 'Acropolis of Athens', location: 'Greece', constructed: '5th century BC', description: 'An ancient citadel located on a rocky outcrop above the city of Athens.' }, + { name: 'Terracotta Army', location: 'China', constructed: '246-206 BC', description: 'A collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China.' }, + { name: 'Parthenon', location: 'Greece', constructed: '447-438 BC', description: 'A former temple on the Athenian Acropolis, dedicated to the goddess Athena.' }, + { name: 'Tower of London', location: 'United Kingdom', constructed: '1078 AD', description: 'A historic castle located on the north bank of the River Thames in central London.' }, + { name: 'Neuschwanstein Castle', location: 'Germany', constructed: '1869-1886 AD', description: 'A 19th-century Romanesque Revival palace on a rugged hill above the village of Hohenschwangau.' }, + ], + }), + } +</script> diff --git a/packages/docs/src/pages/en/components/data-tables/data-and-display.md b/packages/docs/src/pages/en/components/data-tables/data-and-display.md index b356033ce1e..aae830d7301 100644 --- a/packages/docs/src/pages/en/components/data-tables/data-and-display.md +++ b/packages/docs/src/pages/en/components/data-tables/data-and-display.md @@ -113,3 +113,15 @@ Unless you are using the **multi-sort** prop seen below, this array will almost Using the **multi-sort** prop will enable you to sort on multiple columns at the same time. <example file="v-data-table/prop-multi-sort" /> + +### Sort by raw + +::: success + +This feature was introduced in [v3.5.0 (Polaris)](/getting-started/release-notes/?version=v3.5.0) + +::: + +Using a *sortRaw* key in your headers object gives you access to all values on the item. This is useful if you want to sort by a value that is not displayed in the table or a combination of multiple values. + +<example file="v-data-table/prop-headers-sort-raw" /> diff --git a/packages/vuetify/src/components/VDataTable/VDataTable.tsx b/packages/vuetify/src/components/VDataTable/VDataTable.tsx index b18bc8cddbf..43d6913eb34 100644 --- a/packages/vuetify/src/components/VDataTable/VDataTable.tsx +++ b/packages/vuetify/src/components/VDataTable/VDataTable.tsx @@ -127,7 +127,13 @@ export const VDataTable = genericComponent<new <T extends readonly any[], V>( const { sortBy, multiSort, mustSort } = createSort(props) const { page, itemsPerPage } = createPagination(props) - const { columns, headers, sortFunctions, filterFunctions } = createHeaders(props, { + const { + columns, + headers, + sortFunctions, + sortRawFunctions, + filterFunctions, + } = createHeaders(props, { groupBy, showSelect: toRef(props, 'showSelect'), showExpand: toRef(props, 'showExpand'), @@ -144,7 +150,7 @@ export const VDataTable = genericComponent<new <T extends readonly any[], V>( const { toggleSort } = provideSort({ sortBy, multiSort, mustSort, page }) const { sortByWithGroups, opened, extractRows, isGroupOpen, toggleGroup } = provideGroupBy({ groupBy, sortBy }) - const { sortedItems } = useSortedItems(props, filteredItems, sortByWithGroups, sortFunctions) + const { sortedItems } = useSortedItems(props, filteredItems, sortByWithGroups, sortFunctions, sortRawFunctions) const { flatItems } = useGroupedItems(sortedItems, groupBy, opened) const itemsLength = computed(() => flatItems.value.length) diff --git a/packages/vuetify/src/components/VDataTable/VDataTableVirtual.tsx b/packages/vuetify/src/components/VDataTable/VDataTableVirtual.tsx index fd05d6c6588..ef9f86e8219 100644 --- a/packages/vuetify/src/components/VDataTable/VDataTableVirtual.tsx +++ b/packages/vuetify/src/components/VDataTable/VDataTableVirtual.tsx @@ -87,7 +87,13 @@ export const VDataTableVirtual = genericComponent<new <T extends readonly any[], const { groupBy } = createGroupBy(props) const { sortBy, multiSort, mustSort } = createSort(props) - const { columns, headers, sortFunctions, filterFunctions } = createHeaders(props, { + const { + columns, + headers, + filterFunctions, + sortFunctions, + sortRawFunctions, + } = createHeaders(props, { groupBy, showSelect: toRef(props, 'showSelect'), showExpand: toRef(props, 'showExpand'), @@ -103,7 +109,7 @@ export const VDataTableVirtual = genericComponent<new <T extends readonly any[], const { toggleSort } = provideSort({ sortBy, multiSort, mustSort }) const { sortByWithGroups, opened, extractRows, isGroupOpen, toggleGroup } = provideGroupBy({ groupBy, sortBy }) - const { sortedItems } = useSortedItems(props, filteredItems, sortByWithGroups, sortFunctions) + const { sortedItems } = useSortedItems(props, filteredItems, sortByWithGroups, sortFunctions, sortRawFunctions) const { flatItems } = useGroupedItems(sortedItems, groupBy, opened) const allItems = computed(() => extractRows(flatItems.value)) diff --git a/packages/vuetify/src/components/VDataTable/composables/headers.ts b/packages/vuetify/src/components/VDataTable/composables/headers.ts index e6e010d25bb..7b54b9e4599 100644 --- a/packages/vuetify/src/components/VDataTable/composables/headers.ts +++ b/packages/vuetify/src/components/VDataTable/composables/headers.ts @@ -226,8 +226,9 @@ export function createHeaders ( ) { const headers = ref<InternalDataTableHeader[][]>([]) const columns = ref<InternalDataTableHeader[]>([]) - const sortFunctions = ref<Record<string, DataTableCompareFunction>>() - const filterFunctions = ref<FilterKeyFunctions>() + const sortFunctions = ref<Record<string, DataTableCompareFunction>>({}) + const sortRawFunctions = ref<Record<string, DataTableCompareFunction>>({}) + const filterFunctions = ref<FilterKeyFunctions>({}) watchEffect(() => { const _headers = props.headers || @@ -260,22 +261,26 @@ export function createHeaders ( const flatHeaders = parsed.headers.flat(1) - sortFunctions.value = flatHeaders.reduce((acc, header) => { - if (header.sortable && header.key && header.sort) { - acc[header.key] = header.sort + for (const header of flatHeaders) { + if (!header.key) continue + + if (header.sortable) { + if (header.sort) { + sortFunctions.value[header.key] = header.sort + } + + if (header.sortRaw) { + sortRawFunctions.value[header.key] = header.sortRaw + } } - return acc - }, {} as Record<string, DataTableCompareFunction>) - filterFunctions.value = flatHeaders.reduce((acc, header) => { - if (header.key && header.filter) { - acc[header.key] = header.filter + if (header.filter) { + filterFunctions.value[header.key] = header.filter } - return acc - }, {} as FilterKeyFunctions) + } }) - const data = { headers, columns, sortFunctions, filterFunctions } + const data = { headers, columns, sortFunctions, sortRawFunctions, filterFunctions } provide(VDataTableHeadersSymbol, data) diff --git a/packages/vuetify/src/components/VDataTable/composables/sort.ts b/packages/vuetify/src/components/VDataTable/composables/sort.ts index 4013ab01907..f82d96bc659 100644 --- a/packages/vuetify/src/components/VDataTable/composables/sort.ts +++ b/packages/vuetify/src/components/VDataTable/composables/sort.ts @@ -93,11 +93,13 @@ export function useSort () { return data } +// TODO: abstract into project composable export function useSortedItems <T extends Record<string, any>> ( props: { customKeySort: Record<string, DataTableCompareFunction> | undefined }, items: Ref<T[]>, sortBy: Ref<readonly SortItem[]>, sortFunctions?: Ref<Record<string, DataTableCompareFunction> | undefined>, + sortRawFunctions?: Ref<Record<string, DataTableCompareFunction> | undefined>, ) { const locale = useLocale() const sortedItems = computed(() => { @@ -106,7 +108,7 @@ export function useSortedItems <T extends Record<string, any>> ( return sortItems(items.value, sortBy.value, locale.current.value, { ...props.customKeySort, ...sortFunctions?.value, - }) + }, sortRawFunctions?.value) }) return { sortedItems } @@ -116,7 +118,8 @@ export function sortItems<T extends Record<string, any>> ( items: T[], sortByItems: readonly SortItem[], locale: string, - customSorters?: Record<string, DataTableCompareFunction> + customSorters?: Record<string, DataTableCompareFunction>, + customRawSorters?: Record<string, DataTableCompareFunction>, ): T[] { const stringCollator = new Intl.Collator(locale, { sensitivity: 'accent', usage: 'sort' }) @@ -129,9 +132,20 @@ export function sortItems<T extends Record<string, any>> ( let sortA = getObjectValueByPath(a.raw, sortKey) let sortB = getObjectValueByPath(b.raw, sortKey) + let sortARaw = a.raw + let sortBRaw = b.raw if (sortOrder === 'desc') { [sortA, sortB] = [sortB, sortA] + ;[sortARaw, sortBRaw] = [sortBRaw, sortARaw] + } + + if (customRawSorters?.[sortKey]) { + const customResult = customRawSorters[sortKey](sortARaw, sortBRaw) + + if (!customResult) continue + + return customResult } if (customSorters?.[sortKey]) { diff --git a/packages/vuetify/src/components/VDataTable/types.ts b/packages/vuetify/src/components/VDataTable/types.ts index 3bb5a61a54d..48b74972c10 100644 --- a/packages/vuetify/src/components/VDataTable/types.ts +++ b/packages/vuetify/src/components/VDataTable/types.ts @@ -24,6 +24,7 @@ export type DataTableHeader = { sortable?: boolean sort?: DataTableCompareFunction + sortRaw?: DataTableCompareFunction filter?: FilterFunction children?: DataTableHeader[]
fa0dd24baaa27356ba656e43718e0521c181f09d
2019-01-01 09:12:35
John Leider
docs(VSparkline): add description for labels, fix showLabels reference
false
add description for labels, fix showLabels reference
docs
diff --git a/packages/vuetifyjs.com/src/lang/en/components/Sparklines.json b/packages/vuetifyjs.com/src/lang/en/components/Sparklines.json index b6a0a26cd49..6f68676cde5 100644 --- a/packages/vuetifyjs.com/src/lang/en/components/Sparklines.json +++ b/packages/vuetifyjs.com/src/lang/en/components/Sparklines.json @@ -26,9 +26,10 @@ "data": "An array of data points", "gradient": "An array of colors to use as a linear-gradient", "gradientDirection": "The direction the gradient should run", + "labels": "An array of string labels that correspond to the same index as its data counterpart", "lineWidth": "The thickness of the line, in px", "padding": "Low `smooth` or high `line-width` values may result in cropping, increase padding to compensate", - "showLabel": "Show labels below each data point", + "showLabels": "Show labels below each data point", "smooth": "Number of px to use as a corner radius. `true` defaults to 8, `false` is 0", "type": "Choose between a trendline or bars" }
c5d369da71e9ce77018e20e91dfc46b06cb9b4b2
2020-05-27 20:25:40
MajesticPotatoe
docs(api): remove inline table tag
false
remove inline table tag
docs
diff --git a/packages/docs-next/build/rules.js b/packages/docs-next/build/rules.js index 0ad6bdede93..7ae7d57c6a8 100644 --- a/packages/docs-next/build/rules.js +++ b/packages/docs-next/build/rules.js @@ -36,8 +36,23 @@ function addHeadingRules (md) { } } +function addTableRules (md) { + md.renderer.rules.table_open = (tokens, idx, options, env, self) => { + tokens[idx].tag = 'api-table' + + return self.renderToken(tokens, idx, options) + } + + md.renderer.rules.table_close = (tokens, idx, options, env, self) => { + tokens[idx].tag = 'api-table' + + return self.renderToken(tokens, idx, options) + } +} + module.exports = { addCodeRules, addHeadingRules, addImageRules, + addTableRules, } diff --git a/packages/docs-next/src/components/ApiTable.vue b/packages/docs-next/src/components/ApiTable.vue index 0e1042f482c..5ef2969eedf 100644 --- a/packages/docs-next/src/components/ApiTable.vue +++ b/packages/docs-next/src/components/ApiTable.vue @@ -1,78 +1,14 @@ <template> - <v-simple-table> - <template #default> - <thead> - <tr> - <th - v-for="(header, hkey) in headers" - :key="`h-${hkey}`" - class="text-left" - > - {{ header }} - </th> - </tr> - </thead> - <tbody> - <tr - v-for="(item, ind) in items" - :key="`row-${ind}`" - > - <td - v-for="(value, name) in item" - :key="`${ind}-${name}`" - > - {{ value }} - </td> - </tr> - </tbody> - </template> + <v-simple-table + v-bind="$attrs" + v-on="$listeners" + > + <slot /> </v-simple-table> </template> <script> export default { name: 'ApiTable', - - data: () => ({ - headers: [], - items: [], - }), - - mounted () { - const tableText = this.$slots.default[0].text || '' - const rows = tableText.trim().split('\n') - if (rows.length) { - const headerKeys = this.processRow(rows[0]) - const itemRows = rows.slice(2, rows.length) - this.headers = headerKeys - this.items = this.genItems(headerKeys, itemRows) - } - }, - - methods: { - processRow (row) { - return row.substr(2, row.length - 4).split(' | ') - }, - genHeaders (headerKeys) { - const headers = [] - for (const key in headerKeys) { - headers.push(headerKeys[key].toLowerCase()) - } - return headers - }, - genItems (headerKeys, rows) { - const items = [] - for (const row in rows) { - const itemValues = this.processRow(rows[row]) - const item = {} - for (const key in headerKeys) { - const header = headerKeys[key] - item[header] = itemValues[key].trim().toLowerCase() - } - items.push(item) - } - return items - }, - }, } </script> diff --git a/packages/docs-next/src/pages/en/api/VAlert.md b/packages/docs-next/src/pages/en/api/VAlert.md index cd8b8800733..e7799b8ec20 100644 --- a/packages/docs-next/src/pages/en/api/VAlert.md +++ b/packages/docs-next/src/pages/en/api/VAlert.md @@ -9,11 +9,9 @@ nav: v-alert # V-Alert API ## Props -<api-table> | Name | Type | Default | Description | | :--- | :---: | :---: | :--- | | border | string | undefined | Puts a border on the alert. Accepts **top** \| **right** \| **bottom** \| **left**. | -</api-table> ## Slots diff --git a/packages/docs-next/src/pages/eo-UY/api/VAlert.md b/packages/docs-next/src/pages/eo-UY/api/VAlert.md index be495ce3022..042a9872d35 100644 --- a/packages/docs-next/src/pages/eo-UY/api/VAlert.md +++ b/packages/docs-next/src/pages/eo-UY/api/VAlert.md @@ -9,11 +9,9 @@ nav: crwdns58562:0crwdne58562:0 # crwdns58564:0crwdne58564:0 ## crwdns58566:0crwdne58566:0 -<api-table> | crwdns58856:0crwdne58856:0 | crwdns58858:0crwdne58858:0 | crwdns58860:0crwdne58860:0 | crwdns58862:0crwdne58862:0 | |:-------------------------- |:--------------------------:|:--------------------------:|:----------------------------------------------------- | | crwdns58864:0crwdne58864:0 | crwdns58866:0crwdne58866:0 | crwdns58868:0crwdne58868:0 | crwdns58870:0crwdne58870:0 crwdns58872:0crwdne58872:0 | -</api-table> ## crwdns58586:0crwdne58586:0 diff --git a/packages/docs-next/src/pages/ko-KR/api/VAlert.md b/packages/docs-next/src/pages/ko-KR/api/VAlert.md index 0fa13daf603..828bbc879cf 100644 --- a/packages/docs-next/src/pages/ko-KR/api/VAlert.md +++ b/packages/docs-next/src/pages/ko-KR/api/VAlert.md @@ -13,7 +13,6 @@ nav: v-alert | 이름 | 타입 | 디폴트 | 설명 | |:------ |:------:|:---------:|:-------------------------------------------------------------------------------------- | | border | string | undefined | Puts a border on the alert. Accepts **top** \| **right** \| **bottom** \| **left**. | -</api-table> ## 슬롯
f034a789bff1c1bf3a0e01847405707739927133
2020-07-29 07:12:54
John Leider
docs(Snackbar): fix not loading properly due to date mismatch
false
fix not loading properly due to date mismatch
docs
diff --git a/packages/docs-next/src/layouts/default/Snackbar.vue b/packages/docs-next/src/layouts/default/Snackbar.vue index 058d88bd279..5c7365129a7 100644 --- a/packages/docs-next/src/layouts/default/Snackbar.vue +++ b/packages/docs-next/src/layouts/default/Snackbar.vue @@ -44,18 +44,18 @@ <script> // Utilities import { wait } from '@/util/helpers' + import { differenceInDays } from 'date-fns' import { get, sync } from 'vuex-pathify' export default { name: 'DefaultSnackbar', computed: { - last: sync('user/snackbar'), + last: sync('user/last'), notifications: sync('messages/notifications'), snack: sync('snackbar/value'), snackbar: sync('snackbar/snackbar'), unotifications: sync('user/notifications'), - hasRecentlyViewed: get('user/hasRecentlyViewed'), initializing: get('app/initializing'), locale: get('route/params@locale'), bind () { @@ -65,6 +65,11 @@ ? { href, target: '_blank', rel: 'noopener' } : { to: `/${this.locale}${href}` } }, + hasRecentlyViewed () { + if (!this.last) return false + + return differenceInDays(Date.now(), Number(this.last)) < 1 + }, }, watch: { diff --git a/packages/docs-next/src/store/modules/user.js b/packages/docs-next/src/store/modules/user.js index c0b82042ba9..d6410569c64 100644 --- a/packages/docs-next/src/store/modules/user.js +++ b/packages/docs-next/src/store/modules/user.js @@ -1,5 +1,4 @@ // Utilities -import { differenceInDays } from 'date-fns' import { make } from 'vuex-pathify' // Globals @@ -10,9 +9,9 @@ const state = { alphabetical: false, mini: false, }, + last: null, notifications: [], rtl: false, - snackbar: Date.now(), theme: { dark: false, system: false, @@ -40,15 +39,7 @@ const actions = { }, } -const getters = { - hasRecentlyViewed: (_, __, rootState) => { - const last = rootState.user.snackbar - - if (!last) return false - - return differenceInDays(Date.now(), Number(last)) < 2 - }, -} +const getters = {} export default { namespaced: true,
cd89fa16a4e859d7f6ebb65612d5925606244bdf
2018-10-28 15:14:37
nekosaur
fix: various small things
false
various small things
fix
diff --git a/packages/vuetifyjs.com/examples/forms/veeValidate.vue b/packages/vuetifyjs.com/examples/forms/veeValidate.vue index c09b3d7974d..b68918f7bd3 100644 --- a/packages/vuetifyjs.com/examples/forms/veeValidate.vue +++ b/packages/vuetifyjs.com/examples/forms/veeValidate.vue @@ -61,17 +61,17 @@ checkbox: null, dictionary: { attributes: { - email: 'Email Address' + email: 'E-mail Address' // custom attributes }, custom: { name: { - required: () => 'Your name is not valid empty field', - max:'The name field may not be greater than 10 characters. custom Message', + required: () => 'Name can not be empty', + max:'The name field may not be greater than 10 characters', // custom messages }, select: { - required: 'select field is required' + required: 'Select field is required' } } } diff --git a/packages/vuetifyjs.com/examples/ripples/customRipple.vue b/packages/vuetifyjs.com/examples/ripples/customRipple.vue index f92e423b58a..cdcf17d2f1a 100644 --- a/packages/vuetifyjs.com/examples/ripples/customRipple.vue +++ b/packages/vuetifyjs.com/examples/ripples/customRipple.vue @@ -1,9 +1,14 @@ <template> <v-layout row> <v-flex xs12> - <v-card ripple height="300" :color="color.value" - @click.native="color=colors[color.next]"> - <div class="title white--text pl-3 pt-3"> {{color.value}}</div> + <v-card + class="custom-ripple" + ripple + height="300" + :color="colors[color]" + @click.native="color = (color + 1) % colors.length" + > + <div class="title white--text pl-3 pt-3">{{ colors[color] }}</div> </v-card> </v-flex> </v-layout> @@ -13,29 +18,34 @@ export default { data() { return { - color: {value:'red', next:1}, - colors:[ - {value:'red', next:1}, - {value:'pink', next:2}, - {value:'purple', next:3}, - {value:'deep-purple', next:4}, - {value:'indigo', next:5}, - {value:'blue', next:6}, - {value:'light-blue', next:7}, - {value:'cyan', next:8}, - {value:'teal', next:9}, - {value:'green', next:10}, - {value:'light-green', next:11}, - {value:'lime', next:12}, - {value:'yellow', next:13}, - {value:'amber', next:14}, - {value:'orange', next:15}, - {value:'deep-orange', next:16}, - {value:'brown', next:17}, - {value:'blue-grey', next:18}, - {value:'grey', next:0}, + color: 0, + colors: [ + 'red', + 'pink', + 'purple', + 'deep-purple', + 'indigo', + 'blue', + 'light-blue', + 'cyan', + 'teal', + 'green', + 'light-green', + 'lime', + 'yellow', + 'amber', + 'orange', + 'deep-orange', + 'brown', + 'blue-grey', + 'grey' ] } } } </script> + +<style lang="stylus"> + .custom-ripple + user-select: none +</style> diff --git a/packages/vuetifyjs.com/examples/ripples/htmlElement.vue b/packages/vuetifyjs.com/examples/ripples/htmlElement.vue index b8417b36866..8c033e76b36 100644 --- a/packages/vuetifyjs.com/examples/ripples/htmlElement.vue +++ b/packages/vuetifyjs.com/examples/ripples/htmlElement.vue @@ -3,6 +3,6 @@ v-ripple class="text-xs-center elevation-2 pa-4" > - HTML Element with Ripple + HTML element with v-ripple </div> </template> diff --git a/packages/vuetifyjs.com/lang/en/components/Selects.js b/packages/vuetifyjs.com/lang/en/components/Selects.js index 4194f90e182..317ec2f517c 100644 --- a/packages/vuetifyjs.com/lang/en/components/Selects.js +++ b/packages/vuetifyjs.com/lang/en/components/Selects.js @@ -27,8 +27,8 @@ export default { desc: 'Provides type-ahead autocomplete functionality.' }, customFilter: { - header: 'Custom Filter on autocomplete', - desc: '`filter` prop used to filter each individual item with custom logic, in this example we filter items by name' + header: 'Custom filter on autocomplete', + desc: 'The `filter` prop can be used to filter each individual item with custom logic. In this example we filter items by name' }, scopedSlots: { header: 'Scoped slots', diff --git a/packages/vuetifyjs.com/lang/en/directives/Ripples.js b/packages/vuetifyjs.com/lang/en/directives/Ripples.js index be8601531a5..738454245fe 100644 --- a/packages/vuetifyjs.com/lang/en/directives/Ripples.js +++ b/packages/vuetifyjs.com/lang/en/directives/Ripples.js @@ -15,32 +15,32 @@ export default { }, tabs: { header: 'Tabs', - desc: 'Tabs by default have ripples disabled. This can be enabled with the **ripple** prop.', + desc: 'Tabs by default have ripples disabled. This can be enabled with the `ripple` prop.', uninverted: true }, navigationDrawers: { header: 'Navigation drawers', - desc: 'List items by default have ripples disabled. This can be enabled with the **ripple** prop', + desc: 'List items by default have ripples disabled. This can be enabled with the `ripple` prop', uninverted: true }, toolbars: { header: 'Toolbars', - desc: 'Toolbar items by default have ripples disabled. This can be enabled with the **ripple** prop.', + desc: 'Toolbar items by default have ripples disabled. This can be enabled with the `ripple` prop.', uninverted: true }, expansionPanels: { header: 'Expansion panels', - desc: 'Expansion panels by default have ripples disabled. This can be enabled with the **ripple** prop.', + desc: 'Expansion panels by default have ripples disabled. This can be enabled with the `ripple` prop.', uninverted: true }, customRipple: { - header: 'Custom Element', - desc: 'Add the ripple effect to any custom element. This can be done with the `v-ripple` HTML attribute.', + header: 'Components', + desc: 'Several other components have built-in support for ripples. Enable it with the `ripple` prop.', uninverted: true }, htmlElement: { header: 'Standard HTML element', - desc: 'Add the ripple effect to a standard HTML element. This can be enabled with the `v-ripple` HTML attribute.', + desc: 'Add the ripple effect to a standard HTML element. This can be enabled with the `v-ripple` directive.', uninverted: true } }],
8e86a1f5804fbfa6a643566771659e62acbf073d
2018-11-30 06:53:51
John Leider
docs: move drawer text to language file
false
move drawer text to language file
docs
diff --git a/packages/vuetifyjs.com/src/components/core/Drawer.vue b/packages/vuetifyjs.com/src/components/core/Drawer.vue index 8e4ef0a6860..11320c3e837 100644 --- a/packages/vuetifyjs.com/src/components/core/Drawer.vue +++ b/packages/vuetifyjs.com/src/components/core/Drawer.vue @@ -97,164 +97,169 @@ import kebabCase from 'lodash/kebabCase' export default { + provide: { + namespace: 'Vuetify', + page: 'AppDrawer' + }, + data: () => ({ docSearch: {}, isSearching: false, items: [ { group: 'getting-started', - text: 'Getting started', + text: 'gettingStarted', icon: 'mdi-speedometer', children: [ - { text: 'Quick start', to: 'quick-start' }, - { text: 'Why Vuetify?', to: 'why-vuetify' }, - { text: 'Frequently asked questions', to: 'frequently-asked-questions' }, - { text: 'Sponsors and backers', to: 'sponsors-and-backers' }, - { text: 'Contributing', to: 'contributing' }, - { text: 'Roadmap', to: 'roadmap' }, - { text: 'Consulting and support', to: 'consulting-and-support' } + { text: 'quickStart', to: 'quick-start' }, + { text: 'whyVuetify', to: 'why-vuetify' }, + { text: 'faq', to: 'frequently-asked-questions' }, + { text: 'sponsorsAndBackers', to: 'sponsors-and-backers' }, + { text: 'contributing', to: 'contributing' }, + { text: 'roadmap', to: 'roadmap' }, + { text: 'consulting', to: 'consulting-and-support' } ] }, { group: 'framework', - text: 'Framework options', + text: 'frameworkOptions', icon: 'mdi-buffer', children: [ - { text: 'A-la-carte', to: 'a-la-carte' }, - { text: 'Icons', to: 'icons' }, - { text: 'Internationalization', to: 'internationalization' } + { text: 'aLaCarte', to: 'a-la-carte' }, + { text: 'icons', to: 'icons' }, + { text: 'i18n', to: 'internationalization' } ] }, { group: 'layout', - text: 'Application layout', + text: 'layout', icon: 'mdi-page-layout-body', children: [ - { text: 'Pre-defined layouts', to: 'pre-defined' }, - { text: 'Pre-made themes', to: 'pre-made-themes' }, + { text: 'preDefinedLayouts', to: 'pre-defined' }, + { text: 'preMadeThemes', to: 'pre-made-themes' }, { group: 'layout', - text: 'Grid system', + text: 'gridSystem', children: [ - { text: 'Grid', to: 'grid' }, - { text: 'Grid lists', to: 'grid-lists' } + { text: 'grid', to: 'grid' }, + { text: 'gridLists', to: 'grid-lists' } ] }, - { text: 'Breakpoints', to: 'breakpoints' }, - { text: 'Aspect ratios', to: 'aspect-ratios' }, - { text: 'Spacing', to: 'spacing' }, - { text: 'Text alignment', to: 'alignment' }, - { text: 'Display', to: 'display' }, - { text: 'Elevation', to: 'elevation' }, - { text: 'Sandbox', to: 'sandbox' } + { text: 'breakpoints', to: 'breakpoints' }, + { text: 'aspectRatios', to: 'aspect-ratios' }, + { text: 'spacing', to: 'spacing' }, + { text: 'textAlignment', to: 'alignment' }, + { text: 'display', to: 'display' }, + { text: 'elevation', to: 'elevation' }, + { text: 'sandbox', to: 'sandbox' } ] }, { group: 'style', - text: 'Styles & themes', + text: 'stylesAndThemes', icon: 'mdi-format-color-fill', children: [ - { text: 'Colors', to: 'colors' }, - { text: 'Theme', to: 'theme' }, - { text: 'Typography', to: 'typography' }, - { text: 'Content', to: 'content' } + { text: 'colors', to: 'colors' }, + { text: 'theme', to: 'theme' }, + { text: 'typography', to: 'typography' }, + { text: 'content', to: 'content' } ] }, { group: 'motion', - text: 'Motion & transitions', + text: 'motion', icon: 'mdi-clock-fast', children: [ - { text: 'Scroll', to: 'scroll' }, - { text: 'Transitions', to: 'transitions' } + { text: 'scroll', to: 'scroll' }, + { text: 'transitions', to: 'transitions' } ] }, { group: 'components', - text: 'UI components', + text: 'components', icon: 'mdi-view-dashboard', children: [ - { text: 'API explorer', to: 'api-explorer' }, - { text: 'Alerts', to: 'alerts' }, - { text: 'Avatars', to: 'avatars' }, - { text: 'Badges', to: 'badges' }, - { text: 'Bottom navigation', to: 'bottom-navigation' }, - { text: 'Bottom sheets', to: 'bottom-sheets' }, - { text: 'Breadcrumbs', to: 'breadcrumbs' }, - { text: 'Buttons', to: 'buttons' }, - { text: 'Buttons: Floating action buttons', to: 'floating-action-buttons' }, - { text: 'Cards', to: 'cards' }, - { text: 'Carousels', to: 'carousels' }, - { text: 'Chips', to: 'chips' }, - { text: 'Data iterator', to: 'data-iterator' }, - { text: 'Data tables', to: 'data-tables' }, - { text: 'Dialogs', to: 'dialogs' }, - { text: 'Dividers', to: 'dividers' }, - { text: 'Expansion panels', to: 'expansion-panels' }, - { text: 'Footer', to: 'footer' }, + { text: 'apiExplorer', to: 'api-explorer' }, + { text: 'alerts', to: 'alerts' }, + { text: 'avatars', to: 'avatars' }, + { text: 'badges', to: 'badges' }, + { text: 'bottomNavigation', to: 'bottom-navigation' }, + { text: 'bottomSheets', to: 'bottom-sheets' }, + { text: 'breadcrumbs', to: 'breadcrumbs' }, + { text: 'buttons', to: 'buttons' }, + { text: 'fabs', to: 'floating-action-buttons' }, + { text: 'cards', to: 'cards' }, + { text: 'carousels', to: 'carousels' }, + { text: 'chips', to: 'chips' }, + { text: 'dataIterator', to: 'data-iterator' }, + { text: 'dataTables', to: 'data-tables' }, + { text: 'dialogs', to: 'dialogs' }, + { text: 'dividers', to: 'dividers' }, + { text: 'expansionPanels', to: 'expansion-panels' }, + { text: 'footer', to: 'footer' }, { group: 'components', - text: 'Groups', + text: 'groups', children: [ - { text: 'Button groups', to: 'button-groups' }, - { text: 'Item groups', to: 'item-groups' }, - { text: 'Windows', to: 'windows' } + { text: 'buttonGroups', to: 'button-groups' }, + { text: 'itemGroups', to: 'item-groups' }, + { text: 'windows', to: 'windows' } ] }, - { text: 'Hover', to: 'hover' }, - { text: 'Icons', to: 'icons' }, - { text: 'Images', to: 'images' }, + { text: 'hover', to: 'hover' }, + { text: 'icons', to: 'icons' }, + { text: 'images', to: 'images' }, { group: 'components', - text: 'Inputs & controls', + text: 'inputsAndControls', children: [ - { text: 'Autocompletes', to: 'autocompletes' }, - { text: 'Combobox', to: 'combobox' }, - { text: 'Forms', to: 'forms' }, - { text: 'Inputs', to: 'inputs' }, - { text: 'Overflow buttons', to: 'overflow-btns' }, - { text: 'Selects', to: 'selects' }, - { text: 'Selection controls', to: 'selection-controls' }, - { text: 'Sliders', to: 'sliders' }, - { text: 'Textareas', to: 'textarea' }, - { text: 'Text fields', to: 'text-fields' } + { text: 'autocompletes', to: 'autocompletes' }, + { text: 'combobox', to: 'combobox' }, + { text: 'forms', to: 'forms' }, + { text: 'inputs', to: 'inputs' }, + { text: 'overflowButtons', to: 'overflow-btns' }, + { text: 'selects', to: 'selects' }, + { text: 'selectionControls', to: 'selection-controls' }, + { text: 'sliders', to: 'sliders' }, + { text: 'textareas', to: 'textarea' }, + { text: 'textFields', to: 'text-fields' } ] }, - { text: 'Jumbotrons', to: 'jumbotrons' }, - { text: 'Lists', to: 'lists' }, - { text: 'Menus', to: 'menus' }, - { text: 'Navigation drawers', to: 'navigation-drawers' }, - { text: 'Paginations', to: 'paginations' }, - { text: 'Parallax', to: 'parallax' }, + { text: 'jumbotrons', to: 'jumbotrons' }, + { text: 'lists', to: 'lists' }, + { text: 'menus', to: 'menus' }, + { text: 'navigationDrawers', to: 'navigation-drawers' }, + { text: 'paginations', to: 'paginations' }, + { text: 'parallax', to: 'parallax' }, { group: 'components', - text: 'Pickers', + text: 'pickers', children: [ - { text: 'Date pickers', to: 'date-pickers' }, - { text: 'Time pickers', to: 'time-pickers' } + { text: 'datePickers', to: 'date-pickers' }, + { text: 'timePickers', to: 'time-pickers' } ] }, - { text: 'Progress', to: 'progress' }, - { text: 'Ratings', to: 'ratings' }, - { text: 'Sheets', to: 'sheets' }, - { text: 'Snackbars', to: 'snackbars' }, - { text: 'Steppers', to: 'steppers' }, - { text: 'Subheaders', to: 'subheaders' }, - { text: 'Tabs', to: 'tabs' }, - { text: 'Timelines', to: 'timelines' }, - { text: 'Toolbars', to: 'toolbars' }, - { text: 'Tooltips', to: 'tooltips' } + { text: 'progress', to: 'progress' }, + { text: 'ratings', to: 'ratings' }, + { text: 'sheets', to: 'sheets' }, + { text: 'snackbars', to: 'snackbars' }, + { text: 'steppers', to: 'steppers' }, + { text: 'subheaders', to: 'subheaders' }, + { text: 'tabs', to: 'tabs' }, + { text: 'timelines', to: 'timelines' }, + { text: 'toolbars', to: 'toolbars' }, + { text: 'tooltips', to: 'tooltips' } ] }, { group: 'directives', - text: 'Directives', + text: 'directives', icon: 'mdi-function', children: [ - { text: 'Resizing', to: 'resizing' }, - { text: 'Ripples', to: 'ripples' }, - { text: 'Scrolling', to: 'scrolling' }, - { text: 'Touch support', to: 'touch-support' } + { text: 'resizing', to: 'resizing' }, + { text: 'ripples', to: 'ripples' }, + { text: 'scrolling', to: 'scrolling' }, + { text: 'touchSupport', to: 'touch-support' } ] } ], diff --git a/packages/vuetifyjs.com/src/components/core/Item.vue b/packages/vuetifyjs.com/src/components/core/Item.vue index c20fd5de4df..b0157835c59 100644 --- a/packages/vuetifyjs.com/src/components/core/Item.vue +++ b/packages/vuetifyjs.com/src/components/core/Item.vue @@ -16,11 +16,20 @@ <v-icon v-text="icon" /> </v-list-tile-action> <v-list-tile-content> - <v-list-tile-title v-text="text" /> - <v-list-tile-sub-title - v-if="subtext" - v-text="subtext" - /> + <v-list-tile-title> + <span + v-if="noMarkdown" + v-text="text" + /> + <doc-markdown v-else>{{ text }}</doc-markdown> + </v-list-tile-title> + <v-list-tile-sub-title v-if="subtext"> + <span + v-if="noMarkdown" + v-text="subtext" + /> + <doc-markdown v-else>{{ subtext }}</doc-markdown> + </v-list-tile-sub-title> </v-list-tile-content> <slot /> </v-list-tile> @@ -49,6 +58,10 @@ type: [Boolean, String], default: false }, + noMarkdown: { + type: Boolean, + default: false + }, subtext: { type: String, default: undefined diff --git a/packages/vuetifyjs.com/src/components/doc/UpNext.vue b/packages/vuetifyjs.com/src/components/doc/UpNext.vue index 05366bad7ed..3c6c1c48a4c 100644 --- a/packages/vuetifyjs.com/src/components/doc/UpNext.vue +++ b/packages/vuetifyjs.com/src/components/doc/UpNext.vue @@ -21,6 +21,7 @@ :avatar-color="link.color" :text="link.target" :subtext="link.section" + no-markdown > <v-list-tile-action> <v-icon>mdi-arrow-right</v-icon> diff --git a/packages/vuetifyjs.com/src/lang/en/vuetify/AppDrawer.json b/packages/vuetifyjs.com/src/lang/en/vuetify/AppDrawer.json index c41257fb469..169485f6763 100644 --- a/packages/vuetifyjs.com/src/lang/en/vuetify/AppDrawer.json +++ b/packages/vuetifyjs.com/src/lang/en/vuetify/AppDrawer.json @@ -1,4 +1,97 @@ { "becomeASponsor": "Become a Patron", - "diamondSponsors": "Diamond Sponsors" + "diamondSponsors": "Diamond Sponsors", + "gettingStarted": "Getting started", + "quickStart": "Quick start", + "whyVuetify": "Why Vuetify?", + "faq": "Frequently asked questions", + "sponsorsAndBackers": "Sponsors and backers", + "contributing": "Contributing", + "roadmap": "Roadmap", + "consulting": "Consulting and support", + "frameworkOptions": "Framework options", + "aLaCarte": "A-la-carte", + "icons": "Icons", + "i18n": "Internationalization", + "layout": "Application layout", + "preDefinedLayouts": "Pre-defined layouts", + "preMadeThemes": "Pre-made themes", + "gridSystem": "Grid system", + "grid": "Grid", + "gridLists": "Grid lists", + "breakpoints": "Breakpoints", + "aspectRatios": "Aspect ratios", + "spacing": "Spacing", + "textAlignment": "Text alignment", + "display": "Display", + "elevation": "Elevation", + "sandbox": "Sandbox", + "stylesAndThemes": "Styles & themes", + "colors": "Colors", + "theme": "Theme", + "typography": "Typography", + "content": "Content", + "motion": "Motion & transitions", + "scroll": "Scroll", + "transitions": "Transitions", + "components": "UI Components", + "apiExplorer": "API explorer", + "alerts": "Alerts", + "avatars": "Avatars", + "badges": "Badges", + "bottomNavigation": "Bottom navigation", + "bottomSheets": "Bottom sheets", + "breadcrumbs": "Breadcrumbs", + "buttons": "Buttons", + "fabs": "Buttons: Floating action buttons", + "cards": "Cards", + "carousels": "Carousels", + "chips": "Chips", + "dataIterator": "Data iterator", + "dataTables": "Data tables", + "dialogs": "Dialogs", + "dividers": "Dividers", + "expansionPanels": "Expansion panels", + "footer": "Footer", + "groups": "Groups", + "buttonGroups": "Button groups", + "itemGroups": "Item groups", + "windows": "Windows", + "hover": "hover", + "images": "Images", + "inputsAndControls": "Inputs & controls", + "autocompletes": "Autocompletes", + "combobox": "Combobox", + "forms": "Forms", + "inputs": "Inputs", + "overflowButtons": "Overflow buttons", + "selects": "Selects", + "selectionControls": "Selection controls", + "sliders": "Sliders", + "textareas": "Textareas", + "textFields": "Text fields", + "jumbotrons": "Jumbotrons", + "lists": "Lists", + "menus": "Menus", + "navigationDrawers": "Navigation drawers", + "paginations": "Paginations", + "parallax": "Parallax", + "pickers": "Pickers", + "datePickers": "Date pickers", + "timePickers": "Time pickers", + "progress": "Progress", + "ratings": "Ratings", + "sheets": "Sheets", + "snackbars": "Snackbars", + "steppers": "Steppers", + "subheaders": "Subheaders", + "tabs": "Tabs", + "timelines": "Timelines", + "toolbars": "Toolbars", + "tooltips": "Tooltips", + "directives": "Directives", + "resizing": "Resizing", + "ripples": "Ripples", + "scrolling": "Scrolling", + "touchSupport": "Touch support" }
349c1da3027639287c7fb28f5ad751bf0c5841d2
2018-11-30 03:45:12
MajesticPotatoe
docs(headers): updated dialog and dividers
false
updated dialog and dividers
docs
diff --git a/packages/vuetifyjs.com/src/data/pages/components/Dialogs.json b/packages/vuetifyjs.com/src/data/pages/components/Dialogs.json index 2b9c3442253..c6141f4197c 100644 --- a/packages/vuetifyjs.com/src/data/pages/components/Dialogs.json +++ b/packages/vuetifyjs.com/src/data/pages/components/Dialogs.json @@ -7,7 +7,7 @@ "children": [ { "type": "usage", - "value": "simple" + "value": "usage" } ] }, diff --git a/packages/vuetifyjs.com/src/data/pages/components/Dividers.json b/packages/vuetifyjs.com/src/data/pages/components/Dividers.json index 2e8fbc90d3c..1db4c0f0e59 100644 --- a/packages/vuetifyjs.com/src/data/pages/components/Dividers.json +++ b/packages/vuetifyjs.com/src/data/pages/components/Dividers.json @@ -7,7 +7,7 @@ "children": [ { "type": "usage", - "value": "fullBleed" + "value": "usage" } ] }, diff --git a/packages/vuetifyjs.com/src/examples/dialogs/simple.vue b/packages/vuetifyjs.com/src/examples/dialogs/usage.vue similarity index 100% rename from packages/vuetifyjs.com/src/examples/dialogs/simple.vue rename to packages/vuetifyjs.com/src/examples/dialogs/usage.vue diff --git a/packages/vuetifyjs.com/src/examples/dividers/fullBleed.vue b/packages/vuetifyjs.com/src/examples/dividers/usage.vue similarity index 100% rename from packages/vuetifyjs.com/src/examples/dividers/fullBleed.vue rename to packages/vuetifyjs.com/src/examples/dividers/usage.vue diff --git a/packages/vuetifyjs.com/src/lang/en/components/Dialogs.json b/packages/vuetifyjs.com/src/lang/en/components/Dialogs.json index e7b2f5de601..27e7a3df6a8 100644 --- a/packages/vuetifyjs.com/src/lang/en/components/Dialogs.json +++ b/packages/vuetifyjs.com/src/lang/en/components/Dialogs.json @@ -1,48 +1,47 @@ { - "header": "Dialog", + "header": "# Dialog", "headerText": "The `v-dialog` component inform users about a specific task and may contain critical information, require decisions, or involve multiple tasks. Use dialogs sparingly because they are interruptive.", "examples": { - "simple": { - "header": "A simple dialog", + "usage": { "desc": "A dialog contains two slots, one for its activator and one for its content (default). Good for Privacy Policies." }, "withoutActivator": { - "header": "Without activator", + "header": "### Without activator", "desc": "If for some reason you are unable to use the activator slot, be sure to add the `.stop` modifier to the event that triggers the dialog.", "uninverted": true }, "modal": { - "header": "Modal", + "header": "### Modal", "desc": "Similar to a Simple Dialog, except that it's not dismissed when touching outside.", "uninverted": true }, "fullscreen": { - "header": "Fullscreen", + "header": "### Fullscreen", "desc": "Due to limited space, full-screen dialogs may be more appropriate for mobile devices than dialogs used on devices with larger screens.", "uninverted": true }, "form": { - "header": "Form", + "header": "### Form", "desc": "Just a simple example of a form in a dialog.", "uninverted": true }, "scrollable": { - "header": "Scrollable", + "header": "### Scrollable", "desc": "Example of a dialog with scrollable content.", "uninverted": true }, "overflowed": { - "header": "Overflowed", + "header": "### Overflowed", "desc": "Modals that do not fit within the available window space will scroll the container.", "uninverted": true }, "advanced": { - "header": "Simple dialogs", + "header": "### Simple dialogs", "desc": "Choosing an option immediately closes the menu. Touching outside of the dialog, or pressing Back, cancels the action and closes the dialog.", "uninverted": true }, "loader": { - "header": "Loader", + "header": "### Loader", "desc": "The `v-dialog` component makes it easy to create a customized loading experience for your application." } }, diff --git a/packages/vuetifyjs.com/src/lang/en/components/Dividers.json b/packages/vuetifyjs.com/src/lang/en/components/Dividers.json index d918e25386a..b2d4367f5a7 100644 --- a/packages/vuetifyjs.com/src/lang/en/components/Dividers.json +++ b/packages/vuetifyjs.com/src/lang/en/components/Dividers.json @@ -1,34 +1,33 @@ { - "header": "Divider", + "header": "# Divider", "headerText": "The `v-divider` component is used to separate sections of lists.", "examples": { - "fullBleed": { - "header": "Full bleed", + "usage": { "desc": "Full bleed dividers extend the entire content width." }, "lightAndDark": { - "header": "Light and dark", + "header": "### Light and dark", "desc": "Dividers have light and dark variants.", "uninverted": true }, "inset": { - "header": "Inset dividers", + "header": "### Inset dividers", "desc": "Inset dividers are moved 72px to the right. This will cause them to line up with list items." }, "subheaders": { - "header": "Subheaders and dividers", + "header": "### Subheaders and dividers", "desc": "Subheaders can be lined up with inset dividers by using the same prop." }, "dividerList": { - "header": "List dividers", + "header": "### List dividers", "desc": "Inset dividers and subheaders can help break up content" }, "dividerListPortrait": { - "header": "Dividers in Portrait View", + "header": "### Dividers in Portrait View", "desc": "Create custom cards to fit any use-case" }, "vertical": { - "header": "Vertical dividers", + "header": "### Vertical dividers", "desc": "Vertical dividers give you even more tools for unique layouts." } },
c7ef9c75e7dfc3c907e69d368b6d942ef42ae9f3
2024-03-12 02:27:05
Andrew Henry
docs(upgrade-guide): update info on filter function
false
update info on filter function
docs
diff --git a/packages/docs/src/pages/en/getting-started/upgrade-guide.md b/packages/docs/src/pages/en/getting-started/upgrade-guide.md index cf4cae76caa..5ae23ab20ee 100644 --- a/packages/docs/src/pages/en/getting-started/upgrade-guide.md +++ b/packages/docs/src/pages/en/getting-started/upgrade-guide.md @@ -243,6 +243,8 @@ app.use(vuetify) - `data-table-select` and `data-table-expand` must be defined as `key` instead of `value`. - `class` has been replaced with `headerProps`. - `cellClass` has been replaced with `cellProps` and now accepts either a function or an object. + - `filter` function requires `search` to be used in order for it to be triggered. +- Tables requires `search` prop to trigger filtering. `items` array can be pre-filter with a computed. - Server side tables using `server-items-length` must be replaced with `<v-data-table-server items-length />`. - Argument order for `@click:*` events is now consistently `(event, data)`. - `onRowClick (item, data, event)` should be changed to `onRowClick (event, { item })`.
ef677fb3df3faf23e1905621f5d006fa920e0a16
2020-06-07 06:46:54
Florian Mientjes
fix(VTextField): allow numeric input starting with -0 (#11454)
false
allow numeric input starting with -0 (#11454)
fix
diff --git a/packages/vuetify/src/components/VTextField/VTextField.ts b/packages/vuetify/src/components/VTextField/VTextField.ts index b0a3c37c731..bf114d9a3dd 100644 --- a/packages/vuetify/src/components/VTextField/VTextField.ts +++ b/packages/vuetify/src/components/VTextField/VTextField.ts @@ -377,7 +377,7 @@ export default baseMixins.extend<options>().extend({ return this.$createElement('input', { style: {}, domProps: { - value: this.lazyValue, + value: (this.type === 'number' && Object.is(this.lazyValue, -0)) ? '-0' : this.lazyValue, }, attrs: { ...this.attrs$, diff --git a/packages/vuetify/src/components/VTextField/__tests__/VTextField.spec.ts b/packages/vuetify/src/components/VTextField/__tests__/VTextField.spec.ts index 6ac5e02c764..34b7d67fe60 100644 --- a/packages/vuetify/src/components/VTextField/__tests__/VTextField.spec.ts +++ b/packages/vuetify/src/components/VTextField/__tests__/VTextField.spec.ts @@ -858,4 +858,13 @@ describe('VTextField.ts', () => { // eslint-disable-line max-statements expect(wrapper.vm.computedColor).toBe('primary') }) + + it('should keep -0 in input when type is number', async () => { + const wrapper = mountFunction({ + propsData: { type: 'number', value: -0 }, + }) + + const input = wrapper.find('input') + expect(input.element.value).toBe('-0') + }) })
ec2af9c62bb4c041b2f09fa00f104354db4f347e
2020-09-29 11:28:29
John Leider
docs(text-and-typography.md): modify alert styling
false
modify alert styling
docs
diff --git a/packages/docs/src/pages/en/styles/text-and-typography.md b/packages/docs/src/pages/en/styles/text-and-typography.md index 1d12b39ef7d..31d5198d790 100644 --- a/packages/docs/src/pages/en/styles/text-and-typography.md +++ b/packages/docs/src/pages/en/styles/text-and-typography.md @@ -42,22 +42,28 @@ The _value_ property is one of: - `caption` - `overline` -<alert type="warning"> - -Prior to v2.3.0, these classes were: - -- `.display-4` -- `.display-3` -- `.display-2` -- `.display-1` -- `.headline` -- `.title` -- `.subtitle-1` -- `.subtitle-2` -- `.body-1` -- `.body-2` -- `.caption` -- `.overline` +<br> + +<alert type="success"> + + **TIP** + + In all versions prior to v2.3.0, these classes were one of the following: + + <br> + + - `.display-4` + - `.display-3` + - `.display-2` + - `.display-1` + - `.headline` + - `.title` + - `.subtitle-1` + - `.subtitle-2` + - `.body-1` + - `.body-2` + - `.caption` + - `.overline` </alert>
6b3efa926d9117327d50a4723ed675f94b0c754c
2023-08-17 21:23:01
John Leider
docs(VChip): fix example styling
false
fix example styling
docs
diff --git a/packages/docs/src/examples/v-chip/prop-draggable.vue b/packages/docs/src/examples/v-chip/prop-draggable.vue index 2e6d90696f7..c8c22ce8d22 100644 --- a/packages/docs/src/examples/v-chip/prop-draggable.vue +++ b/packages/docs/src/examples/v-chip/prop-draggable.vue @@ -1,10 +1,7 @@ <template> - <v-row - justify="center" - align="center" - > + <div class="text-center"> <v-chip draggable> Default </v-chip> - </v-row> + </div> </template> diff --git a/packages/docs/src/examples/v-chip/prop-no-ripple.vue b/packages/docs/src/examples/v-chip/prop-no-ripple.vue index 070cedf309f..633f37c930e 100644 --- a/packages/docs/src/examples/v-chip/prop-no-ripple.vue +++ b/packages/docs/src/examples/v-chip/prop-no-ripple.vue @@ -1,10 +1,7 @@ <template> - <v-row - justify="center" - align="center" - > + <div class="text-center"> <v-chip :ripple="false" link> Default </v-chip> - </v-row> + </div> </template>
6810169ec01fcc7205e45ee0b421deecf6742ec0
2018-10-22 07:23:31
John Leider
fix(v-tabs): remove arbitrary delay on init
false
remove arbitrary delay on init
fix
diff --git a/src/components/VTabs/VTabs.js b/src/components/VTabs/VTabs.js index 41b9aed2ce9..84ff3dd3668 100644 --- a/src/components/VTabs/VTabs.js +++ b/src/components/VTabs/VTabs.js @@ -116,7 +116,7 @@ export default BaseItemGroup.extend({ deprecate('@input', '@change', this) } - setTimeout(this.onResize, 33) + this.updateTabsView() }, /** * When v-navigation-drawer changes the diff --git a/test/unit/components/VTabs/VTabs.spec.js b/test/unit/components/VTabs/VTabs.spec.js index dd0e98e725e..0d73d79328d 100644 --- a/test/unit/components/VTabs/VTabs.spec.js +++ b/test/unit/components/VTabs/VTabs.spec.js @@ -382,7 +382,7 @@ test('VTabs', ({ mount }) => { it('should set dimensions when onResize is called', async () => { const setWidths = jest.fn() - const wrapper = mount(VTabs, { + mount(VTabs, { propsData: { value: 'foo' }, @@ -396,22 +396,19 @@ test('VTabs', ({ mount }) => { }, methods: { setWidths } }) + expect(setWidths).not.toBeCalled() await ssrBootable() expect(setWidths).toHaveBeenCalledTimes(1) - await new Promise(resolve => setTimeout(resolve, 33)) - - expect(setWidths).toHaveBeenCalledTimes(2) - await resizeWindow(800) - expect(setWidths).toHaveBeenCalledTimes(3) + expect(setWidths).toHaveBeenCalledTimes(2) await resizeWindow(1800) - expect(setWidths).toHaveBeenCalledTimes(4) + expect(setWidths).toHaveBeenCalledTimes(3) }) })
49fcb66db7d313a2670d220242a797d1768046d4
2018-11-30 03:44:21
John Leider
docs: remove toggle-btn examples
false
remove toggle-btn examples
docs
diff --git a/packages/vuetifyjs.com/src/data/pages/components/Buttons.json b/packages/vuetifyjs.com/src/data/pages/components/Buttons.json index dc7efc5f9ae..1b973c3b243 100644 --- a/packages/vuetifyjs.com/src/data/pages/components/Buttons.json +++ b/packages/vuetifyjs.com/src/data/pages/components/Buttons.json @@ -33,15 +33,13 @@ "raised", "depressed", "dropdown", - "toggle", "icon", "floating", "loaders", "sizing", "outline", "round", - "block", - "appBar" + "block" ] } ]
3bc72297ea00b19701841f446c314f0379aa5fae
2024-09-02 17:56:02
Kael
docs: hide inactive sponsors
false
hide inactive sponsors
docs
diff --git a/packages/docs/src/stores/sponsors.ts b/packages/docs/src/stores/sponsors.ts index 8b04021c73c..e09a11f2a7b 100644 --- a/packages/docs/src/stores/sponsors.ts +++ b/packages/docs/src/stores/sponsors.ts @@ -20,7 +20,10 @@ export const useSponsorsStore = defineStore('sponsors', () => { const { bucket } = useCosmic() const { objects = [] }: { objects: Sponsor[] } = ( await bucket?.objects - .find({ type: 'sponsors' }) + .find({ + type: 'sponsors', + 'metadata.active': true, + }) .props('metadata,slug,title') .sort('created_at') ) || {}