This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/es5/components/VDataTable/VDataTableHeaderDesktop.js.map
2019-08-11 20:48:02 +02:00

1 line
No EOL
5.8 KiB
Text

{"version":3,"sources":["../../../src/components/VDataTable/VDataTableHeaderDesktop.ts"],"names":[],"mappings":";;;;;;;AAEA;;AACA;;AACA;;;;;;;;;;;;eAEe,qBAAO,eAAP,EAAe,MAAf,CAAsB;AACnC,EAAA,IAAI,EAAE,6BAD6B;AAGnC,EAAA,OAAO,EAAE;AACP,IAAA,gBADO,4BACW,MADX,EAC8B;AAAA;;AACnC,aAAO,KAAK,cAAL,CAAoB,MAApB,EAA4B;AACjC,QAAA,EAAE,EAAE;AACF,UAAA,KAAK,EAAE;AAAA,mBAAM,KAAI,CAAC,KAAL,CAAW,OAAX,EAAoB,MAAM,CAAC,KAA3B,CAAN;AAAA;AADL;AAD6B,OAA5B,EAIJ,CAAC,OAAD,CAJI,CAAP;AAKD,KAPM;AAQP;AACA,IAAA,SATO,qBASI,MATJ,EASuB;AAAA;;AAC5B,UAAM,SAAS,GAAQ,EAAvB;AACA,UAAM,QAAQ,GAAG,EAAjB;AACA,UAAM,KAAK,GAAG;AACZ,QAAA,IAAI,EAAE,cADM;AAEZ,QAAA,KAAK,EAAE,KAFK;AAGZ,sBAAc,MAAM,CAAC,IAAP,IAAe,EAHjB;AAIZ,qBAAa,MAJD;AAKZ,QAAA,KAAK,EAAE,MAAM,CAAC;AALF,OAAd;AAQA,UAAM,OAAO,mBACH,MAAM,CAAC,KAAP,IAAgB,OADb,6BAER,0BAAY,MAAM,CAAC,KAAnB,CAFQ,EAAb;;AAKA,UAAI,MAAM,CAAC,KAAP,KAAiB,mBAAjB,IAAwC,CAAC,KAAK,YAAlD,EAAgE;AAC9D,QAAA,QAAQ,CAAC,IAAT,CAAc,KAAK,YAAL,EAAd;AACD,OAFD,MAEO;AACL,QAAA,QAAQ,CAAC,IAAT,CAAc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AAd,CAAmB,CAAnB,CAAqB,uCAArB,CAAvB;AACD;;AAED,cAAI,MAAM,CAAC,KAAP,KAAiB,KAArB,EAA4B,QAAQ,CAAC,OAAT,CAAiB,KAAK,WAAL,EAAjB,EAA5B,KACK,QAAQ,CAAC,IAAT,CAAc,KAAK,WAAL,EAAd;;AAEL,cAAI,KAAK,OAAL,CAAa,SAAb,IAA0B,WAA9B,EAA2C;AACzC,YAAA,QAAQ,CAAC,IAAT,CAAc,KAAK,cAAL,CAAoB,MAApB,EAA4B;AAAE,cAAA,KAAK,EAAE;AAAT,aAA5B,EAA0E,CAAC,MAAM,CAAC,SAAS,GAAG,CAAb,CAAP,CAA1E,CAAd;AACD;AACF;;AAED,YAAI,KAAK,WAAT,EAAsB;AACpB,UAAA,QAAQ,CAAC,IAAT,CAAc,KAAK,gBAAL,CAAsB,MAAtB,CAAd;AACD;AACF;;AAED,aAAO,KAAK,cAAL,CAAoB,IAApB,EAA0B;AAC/B,QAAA,KAAK,EAAL,KAD+B;AAE/B,QAAA,KAAK,EAAE,OAFwB;AAG/B,QAAA,EAAE,EAAE;AAH2B,OAA1B,EAIJ,QAJI,CAAP;AAKD;AAxEM,GAH0B;AA8EnC,EAAA,MA9EmC,oBA8E7B;AAAA;;AACJ,WAAO,KAAK,cAAL,CAAoB,OAApB,EAA6B;AAClC,MAAA,WAAW,EAAE;AADqB,KAA7B,EAEJ,CACD,KAAK,cAAL,CAAoB,IAApB,EAA0B,KAAK,OAAL,CAAa,GAAb,CAAiB,UAAA,MAAM;AAAA,aAAI,MAAI,CAAC,SAAL,CAAe,MAAf,CAAJ;AAAA,KAAvB,CAA1B,CADC,CAFI,CAAP;AAKD;AApFkC,CAAtB,C","sourcesContent":["// Helpers\nimport { VNode } from 'vue'\nimport mixins from '../../util/mixins'\nimport header, { TableHeader } from './mixins/header'\nimport { wrapInArray } from '../../util/helpers'\n\nexport default mixins(header).extend({\n name: 'v-data-table-header-desktop',\n\n methods: {\n genGroupByToggle (header: TableHeader) {\n return this.$createElement('span', {\n on: {\n click: () => this.$emit('group', header.value),\n },\n }, ['group'])\n },\n // eslint-disable-next-line max-statements\n genHeader (header: TableHeader) {\n const listeners: any = {}\n const children = []\n const attrs = {\n role: 'columnheader',\n scope: 'col',\n 'aria-label': header.text || '',\n 'aria-sort': 'none',\n width: header.width,\n }\n\n const classes = [\n `text-${header.align || 'start'}`,\n ...wrapInArray(header.class),\n ]\n\n if (header.value === 'data-table-select' && !this.singleSelect) {\n children.push(this.genSelectAll())\n } else {\n children.push(this.$scopedSlots[header.value]\n ? this.$scopedSlots[header.value]!({ header })\n : this.$createElement('span', [header.text])\n )\n\n if (!this.disableSort && (header.sortable || !header.hasOwnProperty('sortable'))) {\n listeners['click'] = () => this.$emit('sort', header.value)\n\n const sortIndex = this.options.sortBy.findIndex(k => k === header.value)\n const beingSorted = sortIndex >= 0\n const isDesc = this.options.sortDesc[sortIndex]\n\n classes.push('sortable')\n\n if (beingSorted) {\n classes.push('active')\n classes.push(isDesc ? 'desc' : 'asc')\n\n attrs['aria-sort'] = isDesc ? 'descending' : 'ascending'\n attrs['aria-label'] += isDesc\n ? this.$vuetify.lang.t('$vuetify.dataTable.ariaLabel.sortDescending')\n : this.$vuetify.lang.t('$vuetify.dataTable.ariaLabel.sortAscending')\n } else {\n attrs['aria-label'] += this.$vuetify.lang.t('$vuetify.dataTable.ariaLabel.sortNone')\n }\n\n if (header.align === 'end') children.unshift(this.genSortIcon())\n else children.push(this.genSortIcon())\n\n if (this.options.multiSort && beingSorted) {\n children.push(this.$createElement('span', { class: 'v-data-table-header__sort-badge' }, [String(sortIndex + 1)]))\n }\n }\n\n if (this.showGroupBy) {\n children.push(this.genGroupByToggle(header))\n }\n }\n\n return this.$createElement('th', {\n attrs,\n class: classes,\n on: listeners,\n }, children)\n },\n },\n\n render (): VNode {\n return this.$createElement('thead', {\n staticClass: 'v-data-table-header',\n }, [\n this.$createElement('tr', this.headers.map(header => this.genHeader(header))),\n ])\n },\n})\n"],"sourceRoot":"","file":"VDataTableHeaderDesktop.js"}