1 line
No EOL
3.2 KiB
Text
1 line
No EOL
3.2 KiB
Text
{"version":3,"sources":["../../../src/components/VExpansionPanel/VExpansionPanels.ts"],"names":[],"mappings":";;;;;;;AACA;;AAGA;;AAIA;;;;;;;;AAKA;eACe,0BAAc,MAAd,CAAqB;AAClC,EAAA,IAAI,EAAE,oBAD4B;AAGlC,EAAA,OAHkC,qBAG3B;AACL,WAAO;AACL,MAAA,eAAe,EAAE;AADZ,KAAP;AAGD,GAPiC;AASlC,EAAA,KAAK,EAAE;AACL,IAAA,SAAS,EAAE,OADN;AAEL,IAAA,QAAQ,EAAE,OAFL;AAGL,IAAA,SAAS,EAAE,OAHN;AAIL,IAAA,KAAK,EAAE,OAJF;AAKL,IAAA,MAAM,EAAE,OALH;AAML,IAAA,QAAQ,EAAE;AANL,GAT2B;AAkBlC,EAAA,QAAQ,EAAE;AACR,IAAA,OADQ,qBACD;AACL,+BACK,0BAAc,OAAd,CAAsB,QAAtB,CAA+B,OAA/B,CAAuC,IAAvC,CAA4C,IAA5C,CADL;AAEE,8BAAsB,IAFxB;AAGE,yCAAiC,KAAK,SAHxC;AAIE,yCAAiC,KAAK,SAJxC;AAKE,qCAA6B,KAAK,KALpC;AAME,sCAA8B,KAAK;AANrC;AAQD;AAVO,GAlBwB;AA+BlC,EAAA,OA/BkC,qBA+B3B;AACL;AACA,QAAI,KAAK,MAAL,CAAY,cAAZ,CAA2B,QAA3B,CAAJ,EAA0C;AACxC,6BAAS,QAAT,EAAmB,UAAnB,EAA+B,IAA/B;AACD;AAED;;;AACA,QACE,KAAK,CAAC,OAAN,CAAc,KAAK,KAAnB,KACA,KAAK,KAAL,CAAW,MAAX,GAAoB,CADpB,IAEA,OAAO,KAAK,KAAL,CAAW,CAAX,CAAP,KAAyB,SAH3B,EAIE;AACA,6BAAS,8BAAT,EAAyC,iBAAzC,EAA4D,IAA5D;AACD;AACF,GA7CiC;AA+ClC,EAAA,OAAO,EAAE;AACP,IAAA,UADO,sBACK,IADL,EACwD,KADxD,EACqE;AAC1E,UAAM,KAAK,GAAG,KAAK,QAAL,CAAc,IAAd,EAAoB,KAApB,CAAd;AACA,UAAM,SAAS,GAAG,KAAK,QAAL,CAAc,IAAd,EAAoB,KAAK,GAAG,CAA5B,CAAlB;AAEA,MAAA,IAAI,CAAC,QAAL,GAAgB,KAAK,YAAL,CAAkB,KAAlB,CAAhB;AACA,MAAA,IAAI,CAAC,YAAL,GAAoB,KAAK,YAAL,CAAkB,SAAlB,CAApB;AACD;AAPM;AA/CyB,CAArB,C","sourcesContent":["// Styles\nimport './VExpansionPanel.sass'\n\n// Components\nimport { BaseItemGroup, GroupableInstance } from '../VItemGroup/VItemGroup'\nimport VExpansionPanel from './VExpansionPanel'\n\n// Utilities\nimport { breaking } from '../../util/console'\n\n// Types\ninterface VExpansionPanelInstance extends InstanceType<typeof VExpansionPanel> {}\n\n/* @vue/component */\nexport default BaseItemGroup.extend({\n name: 'v-expansion-panels',\n\n provide (): object {\n return {\n expansionPanels: this,\n }\n },\n\n props: {\n accordion: Boolean,\n disabled: Boolean,\n focusable: Boolean,\n inset: Boolean,\n popout: Boolean,\n readonly: Boolean,\n },\n\n computed: {\n classes (): object {\n return {\n ...BaseItemGroup.options.computed.classes.call(this),\n 'v-expansion-panels': true,\n 'v-expansion-panels--accordion': this.accordion,\n 'v-expansion-panels--focusable': this.focusable,\n 'v-expansion-panels--inset': this.inset,\n 'v-expansion-panels--popout': this.popout,\n }\n },\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$attrs.hasOwnProperty('expand')) {\n breaking('expand', 'multiple', this)\n }\n\n /* istanbul ignore next */\n if (\n Array.isArray(this.value) &&\n this.value.length > 0 &&\n typeof this.value[0] === 'boolean'\n ) {\n breaking(':value=\"[true, false, true]\"', ':value=\"[0, 2]\"', this)\n }\n },\n\n methods: {\n updateItem (item: GroupableInstance & VExpansionPanelInstance, index: number) {\n const value = this.getValue(item, index)\n const nextValue = this.getValue(item, index + 1)\n\n item.isActive = this.toggleMethod(value)\n item.nextIsActive = this.toggleMethod(nextValue)\n },\n },\n})\n"],"sourceRoot":"","file":"VExpansionPanels.js"} |