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,gBAAM,WAAW,KAAK,aAAtB;AACA,iBAAK,aAAL,GAAqB,KAArB;AACA,sBAAU,QAAV,IAAsB,KAAK,KAAL,CAAW,QAAX,EAAqB,KAArB,CAAtB;AACD;AA3cM;AAjOsB,CAAlB,CAAf","sourcesContent":["// Styles\nimport '../../stylus/components/_text-fields.styl'\nimport '../../stylus/components/_select.styl'\n\n// Components\nimport VChip from '../VChip'\nimport VMenu from '../VMenu'\nimport VSelectList from './VSelectList'\n\n// Extensions\nimport VTextField from '../VTextField/VTextField'\n\n// Mixins\nimport Comparable from '../../mixins/comparable'\nimport Filterable from '../../mixins/filterable'\n\n// Directives\nimport ClickOutside from '../../directives/click-outside'\n\n// Helpers\nimport { camelize, getPropertyFromItem, keyCodes } from '../../util/helpers'\nimport { consoleError, consoleWarn } from '../../util/console'\n\nexport const defaultMenuProps = {\n closeOnClick: false,\n closeOnContentClick: false,\n openOnClick: false,\n maxHeight: 300\n}\n\n/* @vue/component */\nexport default VTextField.extend({\n name: 'v-select',\n\n directives: {\n ClickOutside\n },\n\n mixins: [\n Comparable,\n Filterable\n ],\n\n props: {\n appendIcon: {\n type: String,\n default: '$vuetify.icons.dropdown'\n },\n appendIconCb: Function,\n attach: {\n type: null,\n default: false\n },\n browserAutocomplete: {\n type: String,\n default: 'on'\n },\n cacheItems: Boolean,\n chips: Boolean,\n clearable: Boolean,\n deletableChips: Boolean,\n dense: Boolean,\n hideSelected: Boolean,\n items: {\n type: Array,\n default: () => []\n },\n itemAvatar: {\n type: [String, Array, Function],\n default: 'avatar'\n },\n itemDisabled: {\n type: [String, Array, Function],\n default: 'disabled'\n },\n itemText: {\n type: [String, Array, Function],\n default: 'text'\n },\n itemValue: {\n type: [String, Array, Function],\n default: 'value'\n },\n menuProps: {\n type: [String, Array, Object],\n default: () => defaultMenuProps\n },\n multiple: Boolean,\n openOnClear: Boolean,\n returnObject: Boolean,\n searchInput: {\n default: null\n },\n smallChips: Boolean\n },\n\n data: vm => ({\n attrsInput: { role: 'combobox' },\n cachedItems: vm.cacheItems ? vm.items : [],\n content: null,\n isBooted: false,\n isMenuActive: false,\n lastItem: 20,\n // As long as a value is defined, show it\n // Otherwise, check if multiple\n // to determine which default to provide\n lazyValue: vm.value !== undefined\n ? vm.value\n : vm.multiple ? [] : undefined,\n selectedIndex: -1,\n selectedItems: [],\n keyboardLookupPrefix: '',\n keyboardLookupLastTime: 0\n }),\n\n computed: {\n /* All items that the select has */\n allItems () {\n return this.filterDuplicates(this.cachedItems.concat(this.items))\n },\n classes () {\n return Object.assign({}, VTextField.options.computed.classes.call(this), {\n 'v-select': true,\n 'v-select--chips': this.hasChips,\n 'v-select--chips--small': this.smallChips,\n 'v-select--is-menu-active': this.isMenuActive\n })\n },\n /* Used by other components to overwrite */\n computedItems () {\n return this.allItems\n },\n counterValue () {\n return this.multiple\n ? this.selectedItems.length\n : (this.getText(this.selectedItems[0]) || '').toString().length\n },\n directives () {\n return this.isFocused ? [{\n name: 'click-outside',\n value: this.blur,\n args: {\n closeConditional: this.closeConditional\n }\n }] : undefined\n },\n dynamicHeight () {\n return 'auto'\n },\n hasChips () {\n return this.chips || this.smallChips\n },\n hasSlot () {\n return Boolean(this.hasChips || this.$scopedSlots.selection)\n },\n isDirty () {\n return this.selectedItems.length > 0\n },\n listData () {\n const scopeId = this.$vnode && this.$vnode.context.$options._scopeId\n return {\n attrs: scopeId ? {\n [scopeId]: true\n } : null,\n props: {\n action: this.multiple && !this.isHidingSelected,\n color: this.color,\n dense: this.dense,\n hideSelected: this.hideSelected,\n items: this.virtualizedItems,\n noDataText: this.$vuetify.t(this.noDataText),\n selectedItems: this.selectedItems,\n itemAvatar: this.itemAvatar,\n itemDisabled: this.itemDisabled,\n itemValue: this.itemValue,\n itemText: this.itemText\n },\n on: {\n select: this.selectItem\n },\n scopedSlots: {\n item: this.$scopedSlots.item\n }\n }\n },\n staticList () {\n if (this.$slots['no-data'] || this.$slots['prepend-item'] || this.$slots['append-item']) {\n consoleError('assert: staticList should not be called if slots are used')\n }\n\n return this.$createElement(VSelectList, this.listData)\n },\n virtualizedItems () {\n return this.$_menuProps.auto\n ? this.computedItems\n : this.computedItems.slice(0, this.lastItem)\n },\n menuCanShow () { return true },\n $_menuProps () {\n let normalisedProps\n\n normalisedProps = typeof this.menuProps === 'string'\n ? this.menuProps.split(',')\n : this.menuProps\n\n if (Array.isArray(normalisedProps)) {\n normalisedProps = normalisedProps.reduce((acc, p) => {\n acc[p.trim()] = true\n return acc\n }, {})\n }\n\n return {\n ...defaultMenuProps,\n value: this.menuCanShow && this.isMenuActive,\n nudgeBottom: this.nudgeBottom\n ? this.nudgeBottom\n : normalisedProps.offsetY ? 1 : 0, // convert to int\n ...normalisedProps\n }\n }\n },\n\n watch: {\n internalValue (val) {\n this.initialValue = val\n this.setSelectedItems()\n },\n isBooted () {\n this.$nextTick(() => {\n if (this.content && this.content.addEventListener) {\n this.content.addEventListener('scroll', this.onScroll, false)\n }\n })\n },\n isMenuActive (val) {\n if (!val) return\n\n this.isBooted = true\n },\n items: {\n immediate: true,\n handler (val) {\n if (this.cacheItems) {\n this.cachedItems = this.filterDuplicates(this.cachedItems.concat(val))\n }\n\n this.setSelectedItems()\n }\n }\n },\n\n mounted () {\n this.content = this.$refs.menu && this.$refs.menu.$refs.content\n },\n\n methods: {\n /** @public */\n blur (e) {\n this.isMenuActive = false\n this.isFocused = false\n this.$refs.input && this.$refs.input.blur()\n this.selectedIndex = -1\n this.onBlur(e)\n },\n /** @public */\n activateMenu () {\n this.isMenuActive = true\n },\n clearableCallback () {\n this.setValue(this.multiple ? [] : undefined)\n this.$nextTick(() => this.$refs.input.focus())\n\n if (this.openOnClear) this.isMenuActive = true\n },\n closeConditional (e) {\n return (\n // Click originates from outside the menu content\n !!this.content &&\n !this.content.contains(e.target) &&\n\n // Click originates from outside the element\n !!this.$el &&\n !this.$el.contains(e.target) &&\n e.target !== this.$el\n )\n },\n filterDuplicates (arr) {\n const uniqueValues = new Map()\n for (let index = 0; index < arr.length; ++index) {\n const item = arr[index]\n const val = this.getValue(item)\n\n // TODO: comparator\n !uniqueValues.has(val) && uniqueValues.set(val, item)\n }\n return Array.from(uniqueValues.values())\n },\n findExistingIndex (item) {\n const itemValue = this.getValue(item)\n\n return (this.internalValue || []).findIndex(i => this.valueComparator(this.getValue(i), itemValue))\n },\n genChipSelection (item, index) {\n const isDisabled = (\n this.disabled ||\n this.readonly ||\n this.getDisabled(item)\n )\n\n return this.$createElement(VChip, {\n staticClass: 'v-chip--select-multi',\n attrs: { tabindex: -1 },\n props: {\n close: this.deletableChips && !isDisabled,\n disabled: isDisabled,\n selected: index === this.selectedIndex,\n small: this.smallChips\n },\n on: {\n click: e => {\n if (isDisabled) return\n\n e.stopPropagation()\n\n this.selectedIndex = index\n },\n input: () => this.onChipInput(item)\n },\n key: this.getValue(item)\n }, this.getText(item))\n },\n genCommaSelection (item, index, last) {\n // Item may be an object\n // TODO: Remove JSON.stringify\n const key = JSON.stringify(this.getValue(item))\n const color = index === this.selectedIndex && this.color\n const isDisabled = (\n this.disabled ||\n this.getDisabled(item)\n )\n\n return this.$createElement('div', this.setTextColor(color, {\n staticClass: 'v-select__selection v-select__selection--comma',\n 'class': {\n 'v-select__selection--disabled': isDisabled\n },\n key\n }), `${this.getText(item)}${last ? '' : ', '}`)\n },\n genDefaultSlot () {\n const selections = this.genSelections()\n const input = this.genInput()\n\n // If the return is an empty array\n // push the input\n if (Array.isArray(selections)) {\n selections.push(input)\n // Otherwise push it into children\n } else {\n selections.children = selections.children || []\n selections.children.push(input)\n }\n\n return [\n this.$createElement('div', {\n staticClass: 'v-select__slot',\n directives: this.directives\n }, [\n this.genLabel(),\n this.prefix ? this.genAffix('prefix') : null,\n selections,\n this.suffix ? this.genAffix('suffix') : null,\n this.genClearIcon(),\n this.genIconSlot()\n ]),\n this.genMenu(),\n this.genProgress()\n ]\n },\n genInput () {\n const input = VTextField.options.methods.genInput.call(this)\n\n input.data.domProps.value = null\n input.data.attrs.readonly = true\n input.data.attrs['aria-readonly'] = String(this.readonly)\n input.data.on.keypress = this.onKeyPress\n\n return input\n },\n genList () {\n // If there's no slots, we can use a cached VNode to improve performance\n if (this.$slots['no-data'] || this.$slots['prepend-item'] || this.$slots['append-item']) {\n return this.genListWithSlot()\n } else {\n return this.staticList\n }\n },\n genListWithSlot () {\n const slots = ['prepend-item', 'no-data', 'append-item']\n .filter(slotName => this.$slots[slotName])\n .map(slotName => this.$createElement('template', {\n slot: slotName\n }, this.$slots[slotName]))\n // Requires destructuring due to Vue\n // modifying the `on` property when passed\n // as a referenced object\n return this.$createElement(VSelectList, {\n ...this.listData\n }, slots)\n },\n genMenu () {\n const props = this.$_menuProps\n props.activator = this.$refs['input-slot']\n\n // Deprecate using menu props directly\n // TODO: remove (2.0)\n const inheritedProps = Object.keys(VMenu.options.props)\n\n const deprecatedProps = Object.keys(this.$attrs).reduce((acc, attr) => {\n if (inheritedProps.includes(camelize(attr))) acc.push(attr)\n return acc\n }, [])\n\n for (const prop of deprecatedProps) {\n props[camelize(prop)] = this.$attrs[prop]\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (deprecatedProps.length) {\n const multiple = deprecatedProps.length > 1\n let replacement = deprecatedProps.reduce((acc, p) => {\n acc[camelize(p)] = this.$attrs[p]\n return acc\n }, {})\n const props = deprecatedProps.map(p => `'${p}'`).join(', ')\n const separator = multiple ? '\\n' : '\\''\n\n const onlyBools = Object.keys(replacement).every(prop => {\n const propType = VMenu.options.props[prop]\n const value = replacement[prop]\n return value === true || ((propType.type || propType) === Boolean && value === '')\n })\n\n if (onlyBools) {\n replacement = Object.keys(replacement).join(', ')\n } else {\n replacement = JSON.stringify(replacement, null, multiple ? 2 : 0)\n .replace(/\"([^(\")\"]+)\":/g, '$1:')\n .replace(/\"/g, '\\'')\n }\n\n consoleWarn(\n `${props} ${multiple ? 'are' : 'is'} deprecated, use ` +\n `${separator}${onlyBools ? '' : ':'}menu-props=\"${replacement}\"${separator} instead`,\n this\n )\n }\n }\n\n // Attach to root el so that\n // menu covers prepend/append icons\n if (\n // TODO: make this a computed property or helper or something\n this.attach === '' || // If used as a boolean prop ()\n this.attach === true || // If bound to a boolean ()\n this.attach === 'attach' // If bound as boolean prop in pug (v-menu(attach))\n ) {\n props.attach = this.$el\n } else {\n props.attach = this.attach\n }\n\n return this.$createElement(VMenu, {\n props,\n on: {\n input: val => {\n this.isMenuActive = val\n this.isFocused = val\n }\n },\n ref: 'menu'\n }, [this.genList()])\n },\n genSelections () {\n let length = this.selectedItems.length\n const children = new Array(length)\n\n let genSelection\n if (this.$scopedSlots.selection) {\n genSelection = this.genSlotSelection\n } else if (this.hasChips) {\n genSelection = this.genChipSelection\n } else {\n genSelection = this.genCommaSelection\n }\n\n while (length--) {\n children[length] = genSelection(\n this.selectedItems[length],\n length,\n length === children.length - 1\n )\n }\n\n return this.$createElement('div', {\n staticClass: 'v-select__selections'\n }, children)\n },\n genSlotSelection (item, index) {\n return this.$scopedSlots.selection({\n parent: this,\n item,\n index,\n selected: index === this.selectedIndex,\n disabled: this.disabled || this.readonly\n })\n },\n getMenuIndex () {\n return this.$refs.menu ? this.$refs.menu.listIndex : -1\n },\n getDisabled (item) {\n return getPropertyFromItem(item, this.itemDisabled, false)\n },\n getText (item) {\n return getPropertyFromItem(item, this.itemText, item)\n },\n getValue (item) {\n return getPropertyFromItem(item, this.itemValue, this.getText(item))\n },\n onBlur (e) {\n this.$emit('blur', e)\n },\n onChipInput (item) {\n if (this.multiple) this.selectItem(item)\n else this.setValue(null)\n // If all items have been deleted,\n // open `v-menu`\n if (this.selectedItems.length === 0) {\n this.isMenuActive = true\n } else {\n this.isMenuActive = false\n }\n this.selectedIndex = -1\n },\n onClick () {\n if (this.isDisabled) return\n\n this.isMenuActive = true\n\n if (!this.isFocused) {\n this.isFocused = true\n this.$emit('focus')\n }\n },\n onEnterDown () {\n this.onBlur()\n },\n onEscDown (e) {\n e.preventDefault()\n if (this.isMenuActive) {\n e.stopPropagation()\n this.isMenuActive = false\n }\n },\n onKeyPress (e) {\n if (this.multiple) return\n\n const KEYBOARD_LOOKUP_THRESHOLD = 1000 // milliseconds\n const now = performance.now()\n if (now - this.keyboardLookupLastTime > KEYBOARD_LOOKUP_THRESHOLD) {\n this.keyboardLookupPrefix = ''\n }\n this.keyboardLookupPrefix += e.key.toLowerCase()\n this.keyboardLookupLastTime = now\n\n const index = this.allItems.findIndex(item => this.getText(item).toLowerCase().startsWith(this.keyboardLookupPrefix))\n const item = this.allItems[index]\n if (index !== -1) {\n this.setValue(this.returnObject ? item : this.getValue(item))\n setTimeout(() => this.setMenuIndex(index))\n }\n },\n onKeyDown (e) {\n const keyCode = e.keyCode\n\n // If enter, space, up, or down is pressed, open menu\n if (!this.readonly && !this.isMenuActive && [\n keyCodes.enter,\n keyCodes.space,\n keyCodes.up, keyCodes.down\n ].includes(keyCode)) this.activateMenu()\n\n if (this.isMenuActive && this.$refs.menu) this.$refs.menu.changeListIndex(e)\n\n // This should do something different\n if (keyCode === keyCodes.enter) return this.onEnterDown(e)\n\n // If escape deactivate the menu\n if (keyCode === keyCodes.esc) return this.onEscDown(e)\n\n // If tab - select item or close menu\n if (keyCode === keyCodes.tab) return this.onTabDown(e)\n },\n onMouseUp (e) {\n if (this.hasMouseDown) {\n const appendInner = this.$refs['append-inner']\n\n // If append inner is present\n // and the target is itself\n // or inside, toggle menu\n if (this.isMenuActive &&\n appendInner &&\n (appendInner === e.target ||\n appendInner.contains(e.target))\n ) {\n this.$nextTick(() => (this.isMenuActive = !this.isMenuActive))\n // If user is clicking in the container\n // and field is enclosed, activate it\n } else if (this.isEnclosed && !this.isDisabled) {\n this.isMenuActive = true\n }\n }\n\n VTextField.options.methods.onMouseUp.call(this, e)\n },\n onScroll () {\n if (!this.isMenuActive) {\n requestAnimationFrame(() => (this.content.scrollTop = 0))\n } else {\n if (this.lastItem >= this.computedItems.length) return\n\n const showMoreItems = (\n this.content.scrollHeight -\n (this.content.scrollTop +\n this.content.clientHeight)\n ) < 200\n\n if (showMoreItems) {\n this.lastItem += 20\n }\n }\n },\n onTabDown (e) {\n const menuIndex = this.getMenuIndex()\n\n const listTile = this.$refs.menu.tiles[menuIndex]\n\n // An item that is selected by\n // menu-index should toggled\n if (\n listTile &&\n listTile.className.indexOf('v-list__tile--highlighted') > -1 &&\n this.isMenuActive &&\n menuIndex > -1\n ) {\n e.preventDefault()\n e.stopPropagation()\n\n listTile.click()\n } else {\n // If we make it here,\n // the user has no selected indexes\n // and is probably tabbing out\n this.blur(e)\n }\n },\n selectItem (item) {\n if (!this.multiple) {\n this.setValue(this.returnObject ? item : this.getValue(item))\n this.isMenuActive = false\n } else {\n const internalValue = (this.internalValue || []).slice()\n const i = this.findExistingIndex(item)\n\n i !== -1 ? internalValue.splice(i, 1) : internalValue.push(item)\n this.setValue(internalValue.map(i => {\n return this.returnObject ? i : this.getValue(i)\n }))\n\n // When selecting multiple\n // adjust menu after each\n // selection\n this.$nextTick(() => {\n this.$refs.menu &&\n this.$refs.menu.updateDimensions()\n })\n }\n },\n setMenuIndex (index) {\n this.$refs.menu && (this.$refs.menu.listIndex = index)\n },\n setSelectedItems () {\n const selectedItems = []\n const values = !this.multiple || !Array.isArray(this.internalValue)\n ? [this.internalValue]\n : this.internalValue\n\n for (const value of values) {\n const index = this.allItems.findIndex(v => this.valueComparator(\n this.getValue(v),\n this.getValue(value)\n ))\n\n if (index > -1) {\n selectedItems.push(this.allItems[index])\n }\n }\n\n this.selectedItems = selectedItems\n },\n setValue (value) {\n const oldValue = this.internalValue\n this.internalValue = value\n value !== oldValue && this.$emit('change', value)\n }\n }\n})\n"],"sourceRoot":""}