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AApB,EAA2B;AAChC,yBAAS,KAAK;AADkB,aAA3B,EAEJ,CAAC,UAAD,CAFI,CAAP;AAGD,SAjOM;AAkOP,kBAlOO,wBAkOG;AACR,gBAAM,gBAAgB,KAAK,cAAL,CAAoB,KAApB,EAA2B;AAC/C,yBAAS,KAAK;AADiC,aAA3B,EAEnB,CACD,KAAK,aAAL,EADC,EAED,KAAK,WAAL,EAFC,EAGD,KAAK,WAAL,EAHC,CAFmB,CAAtB;AAQA,mBAAO,CAAC,KAAK,cAAL,CAAoB,KAApB,EAA2B;AACjC,yBAAS,KAAK;AADmB,aAA3B,EAEL,CACD,KAAK,MAAL,CAAY,iBAAZ,IAAiC,KAAK,cAAL,CAAoB,KAApB,EAA2B,EAA3B,EAA+B,KAAK,MAAL,CAAY,iBAAZ,CAA/B,CAAjC,GAAkG,IADjG,EAED,KAAK,gBAAL,CAAsB,MAAtB,GAA+B,CAA/B,GAAmC,KAAK,SAAL,EAAnC,GAAsD,IAFrD,EAGD,aAHC,EAID,KAAK,MAAL,CAAY,gBAAZ,IAAgC,KAAK,cAAL,CAAoB,KAApB,EAA2B,EAA3B,EAA+B,KAAK,MAAL,CAAY,gBAAZ,CAA/B,CAAhC,GAAgG,IAJ/F,CAFK,CAAD,CAAP;AAQD;AAnPM;AApOI,CAAf","sourcesContent":["import VBtn from '../components/VBtn'\nimport VIcon from '../components/VIcon'\nimport VSelect from '../components/VSelect'\n\nimport Filterable from './filterable'\nimport Themeable from './themeable'\nimport Loadable from './loadable'\n\nimport { getObjectValueByPath, isObject } from '../util/helpers'\nimport { consoleWarn } from '../util/console'\n\n/**\n * DataIterable\n *\n * @mixin\n *\n * Base behavior for data table and data iterator\n * providing selection, pagination, sorting and filtering.\n *\n */\n/* @vue/component */\nexport default {\n name: 'data-iterable',\n\n mixins: [Filterable, Loadable, Themeable],\n\n props: {\n expand: Boolean,\n hideActions: Boolean,\n disableInitialSort: Boolean,\n mustSort: Boolean,\n noResultsText: {\n type: String,\n default: '$vuetify.dataIterator.noResultsText'\n },\n nextIcon: {\n type: String,\n default: '$vuetify.icons.next'\n },\n prevIcon: {\n type: String,\n default: '$vuetify.icons.prev'\n },\n rowsPerPageItems: {\n type: Array,\n default () {\n return [\n 5,\n 10,\n 25,\n {\n text: '$vuetify.dataIterator.rowsPerPageAll',\n value: -1\n }\n ]\n }\n },\n rowsPerPageText: {\n type: String,\n default: '$vuetify.dataIterator.rowsPerPageText'\n },\n selectAll: [Boolean, String],\n search: {\n required: false\n },\n filter: {\n type: Function,\n default: (val, search) => {\n return val != null &&\n typeof val !== 'boolean' &&\n val.toString().toLowerCase().indexOf(search) !== -1\n }\n },\n customFilter: {\n type: Function,\n default: (items, search, filter) => {\n search = search.toString().toLowerCase()\n if (search.trim() === '') return items\n\n return items.filter(i => (\n Object.keys(i).some(j => filter(i[j], search))\n ))\n }\n },\n customSort: {\n type: Function,\n default: (items, index, isDescending) => {\n if (index === null) return items\n\n return items.sort((a, b) => {\n let sortA = getObjectValueByPath(a, index)\n let sortB = getObjectValueByPath(b, index)\n\n if (isDescending) {\n [sortA, sortB] = [sortB, sortA]\n }\n\n // Check if both are numbers\n if (!isNaN(sortA) && !isNaN(sortB)) {\n return sortA - sortB\n }\n\n // Check if both cannot be evaluated\n if (sortA === null && sortB === null) {\n return 0\n }\n\n [sortA, sortB] = [sortA, sortB]\n .map(s => (\n (s || '').toString().toLocaleLowerCase()\n ))\n\n if (sortA > sortB) return 1\n if (sortA < sortB) return -1\n\n return 0\n })\n }\n },\n value: {\n type: Array,\n default: () => []\n },\n items: {\n type: Array,\n required: true,\n default: () => []\n },\n totalItems: {\n type: Number,\n default: null\n },\n itemKey: {\n type: String,\n default: 'id'\n },\n pagination: {\n type: Object,\n default: () => {}\n }\n },\n\n data: () => ({\n searchLength: 0,\n defaultPagination: {\n descending: false,\n page: 1,\n rowsPerPage: 5,\n sortBy: null,\n totalItems: 0\n },\n expanded: {},\n actionsClasses: 'v-data-iterator__actions',\n actionsRangeControlsClasses: 'v-data-iterator__actions__range-controls',\n actionsSelectClasses: 'v-data-iterator__actions__select',\n actionsPaginationClasses: 'v-data-iterator__actions__pagination'\n }),\n\n computed: {\n computedPagination () {\n return this.hasPagination\n ? this.pagination\n : this.defaultPagination\n },\n computedRowsPerPageItems () {\n return this.rowsPerPageItems.map(item => {\n return isObject(item)\n ? Object.assign({}, item, {\n text: this.$vuetify.t(item.text)\n })\n : { value: item, text: Number(item).toLocaleString(this.$vuetify.lang.current) }\n })\n },\n hasPagination () {\n const pagination = this.pagination || {}\n\n return Object.keys(pagination).length > 0\n },\n hasSelectAll () {\n return this.selectAll !== undefined && this.selectAll !== false\n },\n itemsLength () {\n if (this.hasSearch) return this.searchLength\n return this.totalItems || this.items.length\n },\n indeterminate () {\n return this.hasSelectAll && this.someItems && !this.everyItem\n },\n everyItem () {\n return this.filteredItems.length &&\n this.filteredItems.every(i => this.isSelected(i))\n },\n someItems () {\n return this.filteredItems.some(i => this.isSelected(i))\n },\n getPage () {\n const { rowsPerPage } = this.computedPagination\n\n return rowsPerPage === Object(rowsPerPage)\n ? rowsPerPage.value\n : rowsPerPage\n },\n pageStart () {\n return this.getPage === -1\n ? 0\n : (this.computedPagination.page - 1) * this.getPage\n },\n pageStop () {\n return this.getPage === -1\n ? this.itemsLength\n : this.computedPagination.page * this.getPage\n },\n filteredItems () {\n return this.filteredItemsImpl()\n },\n selected () {\n const selected = {}\n for (let index = 0; index < this.value.length; index++) {\n const key = getObjectValueByPath(this.value[index], this.itemKey)\n selected[key] = true\n }\n return selected\n },\n hasSearch () {\n return this.search != null\n }\n },\n\n watch: {\n items () {\n if (this.pageStart >= this.itemsLength) {\n this.resetPagination()\n }\n const newItemKeys = new Set(this.items.map(item => getObjectValueByPath(item, this.itemKey)))\n const selection = this.value.filter(item => newItemKeys.has(getObjectValueByPath(item, this.itemKey)))\n\n if (selection.length !== this.value.length) {\n this.$emit('input', selection)\n }\n },\n search () {\n this.$nextTick(() => {\n this.updatePagination({ page: 1, totalItems: this.itemsLength })\n })\n },\n 'computedPagination.sortBy': 'resetPagination',\n 'computedPagination.descending': 'resetPagination'\n },\n\n methods: {\n initPagination () {\n if (!this.rowsPerPageItems.length) {\n consoleWarn(`The prop 'rows-per-page-items' can not be empty`, this)\n } else {\n this.defaultPagination.rowsPerPage = this.rowsPerPageItems[0]\n }\n\n this.defaultPagination.totalItems = this.items.length\n\n this.updatePagination(\n Object.assign({}, this.defaultPagination, this.pagination)\n )\n },\n updatePagination (val) {\n const pagination = this.hasPagination\n ? this.pagination\n : this.defaultPagination\n const updatedPagination = Object.assign({}, pagination, val)\n this.$emit('update:pagination', updatedPagination)\n\n if (!this.hasPagination) {\n this.defaultPagination = updatedPagination\n }\n },\n isSelected (item) {\n return this.selected[getObjectValueByPath(item, this.itemKey)]\n },\n isExpanded (item) {\n return this.expanded[getObjectValueByPath(item, this.itemKey)]\n },\n filteredItemsImpl (...additionalFilterArgs) {\n if (this.totalItems) return this.items\n\n let items = this.items.slice()\n\n if (this.hasSearch) {\n items = this.customFilter(items, this.search, this.filter, ...additionalFilterArgs)\n this.searchLength = items.length\n }\n\n items = this.customSort(\n items,\n this.computedPagination.sortBy,\n this.computedPagination.descending\n )\n\n return this.hideActions &&\n !this.hasPagination\n ? items\n : items.slice(this.pageStart, this.pageStop)\n },\n resetPagination () {\n this.computedPagination.page !== 1 &&\n this.updatePagination({ page: 1 })\n },\n sort (index) {\n const { sortBy, descending } = this.computedPagination\n if (sortBy === null) {\n this.updatePagination({ sortBy: index, descending: false })\n } else if (sortBy === index && !descending) {\n this.updatePagination({ descending: true })\n } else if (sortBy !== index) {\n this.updatePagination({ sortBy: index, descending: false })\n } else if (!this.mustSort) {\n this.updatePagination({ sortBy: null, descending: null })\n } else {\n this.updatePagination({ sortBy: index, descending: false })\n }\n },\n toggle (value) {\n const selected = Object.assign({}, this.selected)\n for (let index = 0; index < this.filteredItems.length; index++) {\n const key = getObjectValueByPath(this.filteredItems[index], this.itemKey)\n selected[key] = value\n }\n\n this.$emit('input', this.items.filter(i => {\n const key = getObjectValueByPath(i, this.itemKey)\n return selected[key]\n }))\n },\n createProps (item, index) {\n const props = { item, index }\n const keyProp = this.itemKey\n const itemKey = getObjectValueByPath(item, keyProp)\n\n Object.defineProperty(props, 'selected', {\n get: () => this.selected[itemKey],\n set: value => {\n if (itemKey == null) {\n consoleWarn(`\"${keyProp}\" attribute must be defined for item`, this)\n }\n\n let selected = this.value.slice()\n if (value) selected.push(item)\n else selected = selected.filter(i => getObjectValueByPath(i, keyProp) !== itemKey)\n this.$emit('input', selected)\n }\n })\n\n Object.defineProperty(props, 'expanded', {\n get: () => this.expanded[itemKey],\n set: value => {\n if (itemKey == null) {\n consoleWarn(`\"${keyProp}\" attribute must be defined for item`, this)\n }\n\n if (!this.expand) {\n for (const key in this.expanded) {\n this.expanded.hasOwnProperty(key) && this.$set(this.expanded, key, false)\n }\n }\n this.$set(this.expanded, itemKey, value)\n }\n })\n\n return props\n },\n genItems () {\n if (!this.itemsLength && !this.items.length) {\n const noData = this.$slots['no-data'] || this.$vuetify.t(this.noDataText)\n return [this.genEmptyItems(noData)]\n }\n\n if (!this.filteredItems.length) {\n const noResults = this.$slots['no-results'] || this.$vuetify.t(this.noResultsText)\n return [this.genEmptyItems(noResults)]\n }\n\n return this.genFilteredItems()\n },\n genPrevIcon () {\n return this.$createElement(VBtn, {\n props: {\n disabled: this.computedPagination.page === 1,\n icon: true,\n flat: true\n },\n on: {\n click: () => {\n const page = this.computedPagination.page\n this.updatePagination({ page: page - 1 })\n }\n },\n attrs: {\n 'aria-label': this.$vuetify.t('$vuetify.dataIterator.prevPage')\n }\n }, [this.$createElement(VIcon, this.$vuetify.rtl ? this.nextIcon : this.prevIcon)])\n },\n genNextIcon () {\n const pagination = this.computedPagination\n const disabled = pagination.rowsPerPage < 0 ||\n pagination.page * pagination.rowsPerPage >= this.itemsLength ||\n this.pageStop < 0\n\n return this.$createElement(VBtn, {\n props: {\n disabled,\n icon: true,\n flat: true\n },\n on: {\n click: () => {\n const page = this.computedPagination.page\n this.updatePagination({ page: page + 1 })\n }\n },\n attrs: {\n 'aria-label': this.$vuetify.t('$vuetify.dataIterator.nextPage')\n }\n }, [this.$createElement(VIcon, this.$vuetify.rtl ? this.prevIcon : this.nextIcon)])\n },\n genSelect () {\n return this.$createElement('div', {\n 'class': this.actionsSelectClasses\n }, [\n this.$vuetify.t(this.rowsPerPageText),\n this.$createElement(VSelect, {\n attrs: {\n 'aria-label': this.$vuetify.t(this.rowsPerPageText)\n },\n props: {\n items: this.computedRowsPerPageItems,\n value: this.computedPagination.rowsPerPage,\n hideDetails: true,\n menuProps: {\n auto: true,\n dark: this.dark,\n light: this.light,\n minWidth: '75px'\n }\n },\n on: {\n input: val => {\n this.updatePagination({\n page: 1,\n rowsPerPage: val\n })\n }\n }\n })\n ])\n },\n genPagination () {\n let pagination = '–'\n\n if (this.itemsLength) {\n const stop = this.itemsLength < this.pageStop || this.pageStop < 0\n ? this.itemsLength\n : this.pageStop\n\n pagination = this.$scopedSlots.pageText\n ? this.$scopedSlots.pageText({\n pageStart: this.pageStart + 1,\n pageStop: stop,\n itemsLength: this.itemsLength\n })\n : this.$vuetify.t('$vuetify.dataIterator.pageText',\n ...([this.pageStart + 1, stop, this.itemsLength].map(n => Number(n).toLocaleString(this.$vuetify.lang.current))))\n }\n\n return this.$createElement('div', {\n 'class': this.actionsPaginationClasses\n }, [pagination])\n },\n genActions () {\n const rangeControls = this.$createElement('div', {\n 'class': this.actionsRangeControlsClasses\n }, [\n this.genPagination(),\n this.genPrevIcon(),\n this.genNextIcon()\n ])\n\n return [this.$createElement('div', {\n 'class': this.actionsClasses\n }, [\n this.$slots['actions-prepend'] ? this.$createElement('div', {}, this.$slots['actions-prepend']) : null,\n this.rowsPerPageItems.length > 1 ? this.genSelect() : null,\n rangeControls,\n this.$slots['actions-append'] ? this.$createElement('div', {}, this.$slots['actions-append']) : null\n ])]\n }\n }\n}\n"],"sourceRoot":""}
|