1 line
5.2 KiB
Plaintext
Raw Normal View History

{"version":3,"sources":["../../../src/components/VOverflowBtn/VOverflowBtn.js"],"names":[],"mappings":";;;;;;AACA;;AAGA;;;;AACA;;;;AACA;;;;AAEA;;;;AAEA;;;;AAEA;;kBACe,wBAAc,MAAd,CAAqB;AAClC,UAAM,gBAD4B;AAGlC,WAAO;AACL,mBAAW,OADN;AAEL,kBAAU,OAFL;AAGL,oBAAY,kBAAQ,OAAR,CAAgB,KAAhB,CAAsB;AAH7B,KAH2B;AASlC,cAAU;AACR,eADQ,qBACD;AACL,mBAAO,OAAO,MAAP,CAAc,wBAAc,OAAd,CAAsB,QAAtB,CAA+B,OAA/B,CAAuC,IAAvC,CAA4C,IAA5C,CAAd,EAAiE;AACtE,kCAAkB,IADoD;AAEtE,6CAA6B,KAAK,SAFoC;AAGtE,4CAA4B,KAAK;AAHqC,aAAjE,CAAP;AAKD,SAPO;AAQR,yBARQ,+BAQS;AACf,mBAAO,KAAK,QAAL,IACL,wBAAc,OAAd,CAAsB,QAAtB,CAA+B,iBAA/B,CAAiD,IAAjD,CAAsD,IAAtD,CADF;AAED,SAXO;AAYR,gBAZQ,sBAYA;AACN,mBAAO,IAAP;AACD,SAdO;AAeR,qBAfQ,2BAeK;AACX,mBAAO,KAAK,SAAL,GAAiB,KAAK,QAAtB,GAAiC,KAAK,aAA7C;AACD,SAjBO;AAkBR,mBAlBQ,yBAkBG;AACT,gBAAM,QAAQ,wBAAc,OAAd,CAAsB,QAAtB,CAA+B,WAA/B,CAA2C,IAA3C,CAAgD,IAAhD,CAAd;AACA,kBAAM,UAAN,GAAmB,MAAM,UAAN,IAAoB,mBAAvC;AACA,mBAAO,KAAP;AACD;AAtBO,KATwB;AAkClC,aAAS;AACP,qBADO,2BACM;AACX,mBAAO,KAAK,QAAL,GACH,wBAAc,OAAd,CAAsB,OAAtB,CAA8B,aAA9B,CAA4C,IAA5C,CAAiD,IAAjD,CADG,GAEH,kBAAQ,OAAR,CAAgB,OAAhB,C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,QAAQ,QAA9B,EAAwC;AACtC,0CAAY,8GAAZ,EAA4H,IAA5H;AACA,uBAAO,IAAP;AACD;AAED,mBAAO,KAAK,cAAL,CAAoB,cAApB,EAA0B;AAC/B,uBAAO,EAAE,MAAM,IAAR,EADwB;AAE/B,oBAAI;AACF,yBADE,iBACK,CADL,EACM;AACN,0BAAE,eAAF;AACA,gCAAQ,QAAR,CAAiB,CAAjB;AACD;AAJC;AAF2B,aAA1B,EAQJ,CAAC,QAAQ,IAAT,CARI,CAAP;AASD;AAjDM;AAlCyB,CAArB,C;AAVf","sourcesContent":["// Styles\nimport '../../stylus/components/_overflow-buttons.styl'\n\n// Extensions\nimport VSelect from '../VSelect/VSelect'\nimport VAutocomplete from '../VAutocomplete'\nimport VTextField from '../VTextField/VTextField'\n\nimport VBtn from '../VBtn'\n\nimport { consoleWarn } from '../../util/console'\n\n/* @vue/component */\nexport default VAutocomplete.extend({\n name: 'v-overflow-btn',\n\n props: {\n segmented: Boolean,\n editable: Boolean,\n transition: VSelect.options.props.transition\n },\n\n computed: {\n classes () {\n return Object.assign(VAutocomplete.options.computed.classes.call(this), {\n 'v-overflow-btn': true,\n 'v-overflow-btn--segmented': this.segmented,\n 'v-overflow-btn--editable': this.editable\n })\n },\n isAnyValueAllowed () {\n return this.editable ||\n VAutocomplete.options.computed.isAnyValueAllowed.call(this)\n },\n isSingle () {\n return true\n },\n computedItems () {\n return this.segmented ? this.allItems : this.filteredItems\n },\n $_menuProps () {\n const props = VAutocomplete.options.computed.$_menuProps.call(this)\n props.transition = props.transition || 'v-menu-transition'\n return props\n }\n },\n\n methods: {\n genSelections () {\n return this.editable\n ? VAutocomplete.options.methods.genSelections.call(this)\n : VSelect.options.methods.genSelections.call(this) // Override v-autocomplete's override\n },\n genCommaSelection (item, index, last) {\n return this.segmented\n ? this.genSegmentedBtn(item)\n : VSelect.options.methods.g