Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VDataTable.js.map 5.1KB

1
  1. {"version":3,"sources":["../../../src/components/VDataTable/VDataTable.js"],"names":[],"mappings":";;;;;;;;;;AACA;;AAEA;;;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;AAEA;;;;AAKA;AACA,IAAM,iBAAiB,qCAAuB,mBAAvB,CAAvB;AAEA;kBACe;AACb,UAAM,cADO;AAGb,YAAQ,CAAC,sBAAD,EAAe,cAAf,EAAqB,cAArB,EAA2B,cAA3B,EAAiC,kBAAjC,CAHK;AAKb,WAAO;AACL,iBAAS;AACP,kBAAM,KADC;AAEP,qBAAS;AAAA,uBAAM,EAAN;AAAA;AAFF,SADJ;AAKL,uBAAe;AACb,kBAAM;AADO,SALV;AAQL,oBAAY;AACV,kBAAM,MADI;AAEV,qBAAS;AAFC,SARP;AAYL,mBAAW;AACT,kBAAM,MADG;AAET,qBAAS;AAFA,SAZN;AAgBL,qBAAa,OAhBR;AAiBL,yBAAiB;AACf,kBAAM,MADS;AAEf,qBAAS;AAFM,SAjBZ;AAqBL,sBAAc;AACZ,kBAAM,QADM;AAEZ,qBAAS,kBAAC,KAAD,EAAQ,MAAR,EAAgB,MAAhB,EAAwB,OAAxB,EAAmC;AAC1C,yBAAS,OAAO,QAAP,GAAkB,WAAlB,EAAT;AACA,oBAAI,OAAO,IAAP,OAAkB,EAAtB,EAA0B,OAAO,KAAP;AAE1B,oBAAM,QAAQ,QAAQ,GAAR,CAAY;AAAA,2BAAK,EAAE,KAAP;AAAA,iBAAZ,CAAd;AAEA,uBAAO,MAAM,MAAN,CAAa;AAAA,2BAAQ,MAAM,IAAN,CAAW;AAAA,+BAAQ,OAAO,mCAAqB,IAArB,EAA2B,IAA3B,EAAiC,KAAK,IAAL,CAAjC,CAAP,EAAqD,MAArD,CAAR;AAAA,qBAAX,CAAR;AAAA,iBAAb,CAAP;AACD;AATW;AArBT,KALM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AK;AADL,SAAX,EAEG,CACD,KAAK,QAAL,EADC,EAED,KAAK,QAAL,EAFC,EAGD,KAAK,QAAL,EAHC,CAFH,CAD0C,CAAtB,CAAtB;AAUA,eAAO,EAAE,KAAF,EAAS,CACd,aADc,EAEd,KAAK,gBAAL,EAFc,CAAT,CAAP;AAID;AApGY,C","sourcesContent":["import '../../stylus/components/_tables.styl'\nimport '../../stylus/components/_data-table.styl'\n\nimport DataIterable from '../../mixins/data-iterable'\n\nimport Head from './mixins/head'\nimport Body from './mixins/body'\nimport Foot from './mixins/foot'\nimport Progress from './mixins/progress'\n\nimport {\n createSimpleFunctional,\n getObjectValueByPath\n} from '../../util/helpers'\n\n// Importing does not work properly\nconst VTableOverflow = createSimpleFunctional('v-table__overflow')\n\n/* @vue/component */\nexport default {\n name: 'v-data-table',\n\n mixins: [DataIterable, Head, Body, Foot, Progress],\n\n props: {\n headers: {\n type: Array,\n default: () => []\n },\n headersLength: {\n type: Number\n },\n headerText: {\n type: String,\n default: 'text'\n },\n headerKey: {\n type: String,\n default: null\n },\n hideHeaders: Boolean,\n rowsPerPageText: {\n type: String,\n default: '$vuetify.dataTable.rowsPerPageText'\n },\n customFilter: {\n type: Function,\n default: (items, search, filter, headers) => {\n search = search.toString().toLowerCase()\n if (search.trim() === '') return items\n\n const props = headers.map(h => h.value)\n\n return items.filter(item => props.some(prop => filter(getObjectValueByPath(item, prop, item[prop]), search)))\n }\n }\n },\n\n data () {\n return {\n actionsClasses: 'v-datatable__actions',\n actionsRangeControlsClasses: 'v-datatable__actions__range-controls',\n actionsSelectClasses: 'v-datatable__actions__select',\n actionsPaginationClasses: 'v-datatable__actions__pagination'\n }\n },\n\n computed: {\n classes () {\n return {\n 'v-datatable v-table': true,\n 'v-datatable--select-all': this.selectAll !== false,\n ...this.themeClasses\n }\n },\n filteredItems () {\n return this.filteredItemsImpl(this.headers)\n },\n headerColumns () {\n return this.headersLength || this.headers.length + (this.selectAll !== false)\n }\n },\n\n created () {\n const firstSortable = this.headers.find(h => (\n !('sortable' in h) || h.sortable)\n )\n\n this.defaultPagination.sortBy = !this.disableInitialSort && firstSortable\n ? firstSortable.value\n : null\n\n this.initPagination()\n },\n\n methods: {\n hasTag (elements, tag) {\n return Array.isArray(elements) && elements.find(e => e.tag === tag)\n },\n genTR (children, data = {}) {\n return this.$createElement('tr', data, children)\n }\n },\n\n render (h) {\n const tableOverflow = h(VTableOverflow, {}, [\n h('table', {\n 'class': this.classes\n }, [\n this.genTHead(),\n this.genTBody(),\n this.genTFoot()\n ])\n ])\n\n return h('div', [\n tableOverflow,\n this.genActionsFooter()\n ])\n }\n}\n"],"sourceRoot":""}