Skip to content

Commit

Permalink
Merge branch 'dev' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Feb 19, 2019
2 parents 2db5690 + 7450d29 commit d3a935b
Show file tree
Hide file tree
Showing 63 changed files with 810 additions and 762 deletions.
15 changes: 3 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,14 @@ jobs:
- stage: publish-docs-live
name: 'Publish docs - live'
before_script: yarn global add now
script:
- node scripts/set-now-alias.js vuetifyjs.com
- now --team=vuetifyjs --token=$NOW_TOKEN --npm
- now alias --team=vuetifyjs --token=$NOW_TOKEN
script: node scripts/deploy-and-alias.js vuetifyjs.com

- stage: publish-docs-dev
name: 'Publish docs - dev'
before_script: yarn global add now
script:
- node scripts/set-now-alias.js dev.vuetifyjs.com
- now --team=vuetifyjs --token=$NOW_TOKEN --npm
- now alias --team=vuetifyjs --token=$NOW_TOKEN
script: node scripts/deploy-and-alias.js dev.vuetifyjs.com

- stage: publish-docs-next
name: 'Publish docs - next'
before_script: yarn global add now
script:
- node scripts/set-now-alias.js next.vuetifyjs.com
- now --team=vuetifyjs --token=$NOW_TOKEN --npm
- now alias --team=vuetifyjs --token=$NOW_TOKEN
script: node scripts/deploy-and-alias.js next.vuetifyjs.com
3 changes: 2 additions & 1 deletion now.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"github": {
"autoAlias": false,
"silent": true
}
},
"version": 1
}
13 changes: 11 additions & 2 deletions packages/api-generator/src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ const textEvents = [

const inputSlots = ['append', 'prepend', 'default']

const textFieldSlots = [...inputSlots, 'append-outer', 'prepend-inner', 'label']

const selectSlots = [...textFieldSlots, 'append-item', 'prepend-item']

const VSelect = {
props: [
{
Expand All @@ -221,7 +225,7 @@ const VSelect = {
default: '{"closeOnClick":false, "closeOnContentClick":false, "openOnClick":false, "maxHeight":300}'
}
],
slots: inputSlots.concat(['no-data', 'label', 'progress']),
slots: selectSlots.concat(['no-data', 'progress']),
scopedSlots: [
{
name: 'selection',
Expand Down Expand Up @@ -930,6 +934,9 @@ module.exports = {
'v-input': {
events: [
...inputEvents
],
slots: [
...inputSlots
]
},
'v-layout': {
Expand Down Expand Up @@ -1160,7 +1167,9 @@ module.exports = {
...inputEvents,
...textEvents
].concat(validatableEvents),
slots: ['label']
slots: [
...textFieldSlots
]
},
'v-time-picker': {
events: [
Expand Down
7 changes: 6 additions & 1 deletion packages/docs/src/components/core/Drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@
) this.inputValue = false
},
inputValue (val) {
if (!val) this.docSearch.autocomplete.autocomplete.close()
if (!val) {
this.docSearch.autocomplete.autocomplete.close()
this.docSearch.autocomplete.autocomplete.setVal('')
}
},
isSearching (val) {
this.$refs.toolbar.isScrolling = !val
Expand All @@ -155,6 +158,7 @@
search (val) {
if (!val) {
this.docSearch.autocomplete.autocomplete.close()
this.docSearch.autocomplete.autocomplete.setVal('')
}
}
},
Expand All @@ -172,6 +176,7 @@
destroyed () {
this.docSearch.autocomplete.autocomplete.close()
this.docSearch.autocomplete.autocomplete.setVal('')
},
methods: {
Expand Down
34 changes: 34 additions & 0 deletions packages/docs/src/components/doc/Locales.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<div class="ml-3">
<p>
<span
v-for="({localeCode, localeName, localeNativeName}, index) in localeNames"
:key="localeCode"
>
{{ index ? ', ' : '' }} <strong>{{ localeCode }}</strong>
- {{ localeName }} {{ localeNativeName ? ` (${localeNativeName})` : '' }}
</span>
</p>
</div>
</template>

<script>
import * as locales from 'vuetify/es5/locale'
import ISO6391 from 'iso-639-1'
export default {
name: 'Locales',
computed: {
localeNames () {
const array = Object.keys(locales).map(localeCode => ({
localeCode,
localeName: ISO6391.getName(localeCode.substr(0, 2)),
localeNativeName: localeCode === 'en' ? '' : ISO6391.getNativeName(localeCode.substr(0, 2))
}))
array.sort((a, b) => (a.localeCode < b.localeCode ? -1 : (a.localeCode > b.localeCode ? 1 : 0)))
return array
}
}
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"type": "text",
"lang": "availableLocalesText"
},
{
"type": "locales"
},
{
"type": "markup",
"value": "js_vuetify_custom_locale"
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/examples/cards/usage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<v-card-title primary-title>
<div>
<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> {{ card_text }} </div>
</div>
</v-card-title>

Expand Down
5 changes: 4 additions & 1 deletion packages/docs/src/examples/text-fields/iconSlots.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
I'm a tooltip
</v-tooltip>

<v-fade-transition slot="append">
<v-fade-transition
slot="append"
leave-absolute
>
<v-progress-circular
v-if="loading"
size="24"
Expand Down
14 changes: 8 additions & 6 deletions packages/docs/src/lang/en/components/Autocompletes.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@
"hideNoData": "Hides the menu when there are no options to show. Useful for preventing the menu from opening before results are fetched asynchronously. Also has the effect of opening the menu when the `items` array changes if not already open."
},
"slots": {
"append": "Components.Selects.slots.append",
"item": "Scoped slot for designating the markup for a list-tile",
"append": "Components.Inputs.slots.append",
"append-outer": "Components.TextFields.slots.append-outer",
"prepend": "Components.Inputs.slots.prepend",
"prepend-inner": "Components.TextFields.slots.prepend-inner",
"append-item": "Components.Selects.slots.append-item",
"no-data": "Mixins.Filterable.slots.noData",
"prepend": "Components.Selects.slots.prepend",
"selection": "Scoped slot for designating the markup for the selected items"
"prepend-item": "Components.Selects.slots.prepend-item"
},
"scopedSlots": {
"item": "Define a custom item appearance",
"selection": "Define a custom selection appearance"
"item": "Components.Selects.scopedSlots.item",
"selection": "Components.Selects.scopedSlots.selection"
},
"events": {
"change": "Components.Inputs.events.change",
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/lang/en/components/Calendars.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"v-model": "Sets the `value` property but also updates it when the link of a day is clicked.",
"weekdayFormat": "Formats day of the week string that appears in the header to specified locale",
"monthFormat": "Formats month string that appears in a day to specified locale",
"intervalFormat": "Formats time of day string that appears in the interval gutter of the `day` view to specified locale",
"intervalFormat": "Formats time of day string that appears in the interval gutter of the `day` and `week` view to specified locale",
"intervalStyle": "Returns CSS styling to apply to the interval.",
"showIntervalLabel": "Checks if a given day and time should be displayed in the interval gutter of the `day` view.",
"dayFormat": "Formats day of the month string that appears in a day to a specified locale"
Expand Down
14 changes: 8 additions & 6 deletions packages/docs/src/lang/en/components/Combobox.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@
}
},
"slots": {
"append": "Components.Selects.slots.append",
"item": "Scoped slot for designating the markup for a list-tile",
"append": "Components.Inputs.slots.append",
"append-outer": "Components.TextFields.slots.append-outer",
"prepend": "Components.Inputs.slots.prepend",
"prepend-inner": "Components.TextFields.slots.prepend-inner",
"append-item": "Components.Selects.slots.append-item",
"no-data": "Mixins.Filterable.slots.noData",
"prepend": "Components.Selects.slots.prepend",
"selection": "Scoped slot for designating the markup for the selected items"
"prepend-item": "Components.Selects.slots.prepend-item"
},
"scopedSlots": {
"item": "Define a custom item appearance",
"selection": "Define a custom selection appearance"
"item": "Components.Selects.scopedSlots.item",
"selection": "Components.Selects.scopedSlots.selection"
},
"events": {
"change": "Components.Inputs.events.change",
Expand Down
6 changes: 4 additions & 2 deletions packages/docs/src/lang/en/components/Inputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
},
"props": {
"appendIcon": "Appends an icon to the component, uses the same syntax as `v-icon`",
"appendIconCb": "Callback for appended icon when clicked",
"backgroundColor": "Changes the background-color of the input",
"hideDetails": "Hides hint, validation errors",
"hint": "Hint text",
Expand All @@ -17,12 +16,15 @@
"persistentHint": "Forces hint to always be visible",
"placeholder": "Sets the input's placeholder text",
"prependIcon": "Prepends an icon to the component, uses the same syntax as `v-icon`",
"prependIconCb": "Callback for prepended icon when clicked",
"required": "Designates the input as required; Adds an asertisk to the end of the label; Does not perform any validation.",
"tabindex": "Tabindex of input",
"toggleKeys": "Array of key codes that will toggle the input (if it supports toggling)",
"value": "Input value"
},
"slots": {
"append": "Adds an item after input content",
"prepend": "Adds an item before input content"
},
"events": {
"blur": "Emitted when the input is blurred",
"change": "Emitted when the input is changed by user interaction",
Expand Down
10 changes: 6 additions & 4 deletions packages/docs/src/lang/en/components/Selects.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@
"valueComparator": "The comparison algorithm used for values. [More info](https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/util/helpers.ts)"
},
"slots": {
"append": "Adds an item after menu content",
"item": "Scoped slot for designating the markup for a list-tile",
"append": "Components.Inputs.slots.append",
"append-outer": "Components.TextFields.slots.append-outer",
"prepend": "Components.Inputs.slots.prepend",
"prepend-inner": "Components.TextFields.slots.prepend-inner",
"append-item": "Adds an item after menu content",
"no-data": "Mixins.Filterable.slots.noData",
"prepend": "Adds an item before menu content",
"selection": "Scoped slot for designating the markup for the selected items"
"prepend-item": "Adds an item before menu content"
},
"scopedSlots": {
"item": "Define a custom item appearance",
Expand Down
9 changes: 6 additions & 3 deletions packages/docs/src/lang/en/components/TextFields.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@
},
"props": {
"appendOuterIcon": "Appends an icon to the outside of `v-text-field`'s input, uses same syntax as `v-icon`",
"appendOuterIconCb": "Callback for appended outer icon when clicked",
"autoGrow": "Auto-grows the input. This option requires the use of **v-model**",
"autofocus": "Enables autofocus",
"box": "Applies the alternate box input style",
"browserAutocomplete": "Configures the default `<input>` autocomplete attribute",
"clearIcon": "Applied when using **clearable** and the input is dirty",
"clearIconCb": "Callback for clear icon when clicked",
"counter": "Creates counter for input length; if no number is specified, it defaults to 25. Does not apply any validation.",
"flat": "Mixins.Soloable.props.flat",
"fullWidth": "Desginates input type as full-width",
Expand All @@ -107,7 +105,6 @@
"placeholder": "Sets the input’s placeholder text",
"prefix": "Displays prefix text",
"prependInnerIcon": "Prepends an icon inside the component, uses the same syntax as `v-icon`",
"prependInnerIconCb": "Callback for prepended icon when clicked",
"reverse": "Reverses the input orientation",
"rows": "Controls the number of rows in a textarea",
"rowHeight": "Designate a custom _row-height_. Used for determining input height when using **multi-line** or **textarea** props",
Expand All @@ -118,6 +115,12 @@
"toggleKeys": "Array of key codes that will toggle the input (if it supports toggling)",
"type": "Sets input type"
},
"slots": {
"append": "Components.Inputs.slots.append",
"append-outer": "Appends an item inside input content",
"prepend": "Components.Inputs.slots.prepend",
"prepend-inner": "Prepends an item inside input content"
},
"events": {
"change": "Components.Inputs.events.change",
"click:append": "Components.Inputs.events['click:append']",
Expand Down
65 changes: 65 additions & 0 deletions packages/docs/src/lang/ru-RU/components/Treeview.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"header": "# Treeview",
"headerText": "Компонент `v-treeview` полезен для отображения большого количества вложенных данных.",
"examples": {
"usage": {
"desc": "Основной пример"
},
"fileExplorer": {
"header": "### Scoped slots",
"desc": "Используя scoped slots мы можем создать интуитивно понятный файловый менеджер. Кроме слота `prepend`, есть также один для `label`, и `append` слот."
},
"directory": {
"header": "### Асинхронные элементы",
"desc": "Вы можете динамически загружать дочерние данные, предоставляя _Promise_ callback для `load-children` prop. Этот callback будет выполнен при первой попытке пользователя расширить элемент у которого есть свойство children, которое является пустым массивом."
},
"hotspots": {
"header": "### Пользовательские иконки выбора",
"desc": "Настройте **on**, **off** и **indeterminate** иконки для вашего выбираемого дерева. Комбинируйте с другими продвинутыми возможностями, такими как элементы, загруженные через API."
},
"humanResources": {
"header": "### Поиск директории",
"desc": "Легко фильтруйте ваш treeview используя **search** prop. Вы можете легко применить свою собственную функцию фильтрации (если вам нужна чувствительная к регистру или fuzzy фильтрация) установив **filter** prop. Это работает аналогично как [v-autocomplete](/components/autocompletes) компонент."
}
},
"props": {
"v-treeview": {
"activatable": "Позволяет пользователю пометить узел как активный, нажав на него",
"active": "Синхронизируемая prop, позволяющая контролировать, какие узлы активны. Массив состоит из `item-key` каждого активного элемента.",
"activeClass": "Класс применяющийся к узлу, когда тот активен",
"customFilter": "Пользовательский фильтр поиска",
"expandIcon": "Иконка, используемая для обозначения возможности открытия узла",
"hoverable": "Применяет класс наведения при наведении мыши на узлы",
"filter": "Пользовательская функция фильтрации элементов. По умолчанию используется поиск без учета регистра по label элемента.",
"indeterminateIcon": "Значок, используемый, когда узел находится в неопределенном состоянии",
"itemChildren": "Свойство у предоставленных `items` которое содержит детей каждого элемента",
"itemKey": "Свойство для поставляемых `items`, используемое для отслеживания состояния узла. Значение этого свойства должно быть уникальным среди всех элементов.",
"itemText": "Свойство для поставляемых `items`, содержащее текст метки",
"items": "Массив элементов, используемых для построения дерева",
"loadChildren": "Функция, используемая при динамической загрузке детей. Если этот prop установлен, то функция будет работать если развернуть элемент, имеющий свойство `item-children`, которое является пустым массивом. Поддерживает возврат Promise.",
"loadingIcon": "Иконка, используемая, когда узел находится в состоянии загрузки",
"multipleActive": "Когда `true`, позволяет пользователю иметь несколько активных узлов одновременно",
"offIcon": "Иконка используется, когда узел не выбран",
"onIcon": "Иконка, используемая при выборе конечного узла или когда полностью выбран узел ветви",
"open": "Синхронизируемая prop которая позволяет контролировать, какие узлы открыты. Массив состоит из `item-key` каждого открытого элемента.",
"openAll": "Когда `true` приведет к открытию всех узлов всех ветвей при mounted компонента",
"openOnClick": "Когда `true` заставит узлы открываться щелчком в любом месте на нем, а не открываться только нажатием на значок расширения. При использовании этого prop с `activatable` вы не сможете пометить узлы с дочерними элементами как активные.",
"returnObject": "Когда `true`, заставит v-model, `active.sync` и `open.sync` возвращать весь объект, а не только ключ",
"search": "Модель поиска для фильтрации результатов",
"selectable": "Будет отображать флажок рядом с каждым узлом, позволяя им быть выбранными",
"selectedColor": "Цвет флажка выбора",
"transition": "Применяет переход, когда узлы открываются и закрываются",
"value": "Позволяет контролировать, какие узлы выбраны. Массив состоит из `item-key` каждого выбранного элемента. Используется с `@input` событием чтобы разрешить `v-model` биндинг."
}
},
"scopedSlots": {
"v-treeview": {
"append": "Добавляет контент после label",
"label": "Контент для label",
"prepend": "Добавляет контент перед label"
}
},
"functions": {
"updateAll": "Открывает или закрывает все узлы"
}
}
1 change: 1 addition & 0 deletions packages/docs/src/util/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function getComponent (type) {
case 'tree': return 'doc-tree'
case 'up-next': return 'doc-up-next'
case 'usage': return 'doc-usage'
case 'locales': return 'doc-locales'
default: return type
}
}
Expand Down
Loading

0 comments on commit d3a935b

Please sign in to comment.