UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

1 lines 7.5 kB
{"version":3,"file":"index.mjs","sources":["../../src/accordioncontent/BaseAccordionContent.vue","../../src/accordioncontent/AccordionContent.vue","../../src/accordioncontent/AccordionContent.vue?vue&type=template&id=55360607&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport AccordionContentStyle from 'primevue/accordioncontent/style';\n\nexport default {\n name: 'BaseAccordionContent',\n extends: BaseComponent,\n props: {\n as: {\n type: [String, Object],\n default: 'DIV'\n },\n asChild: {\n type: Boolean,\n default: false\n }\n },\n style: AccordionContentStyle,\n provide() {\n return {\n $pcAccordionContent: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <template v-if=\"!asChild\">\n <transition name=\"p-toggleable-content\" v-bind=\"ptm('transition', ptParams)\">\n <component v-if=\"$pcAccordion.lazy ? $pcAccordionPanel.active : true\" v-show=\"$pcAccordion.lazy ? true : $pcAccordionPanel.active\" :is=\"as\" :class=\"cx('root')\" v-bind=\"attrs\">\n <div :class=\"cx('content')\" v-bind=\"ptm('content', ptParams)\">\n <slot></slot>\n </div>\n </component>\n </transition>\n </template>\n <slot v-else :class=\"cx('root')\" :active=\"$pcAccordionPanel.active\" :a11yAttrs=\"a11yAttrs\"></slot>\n</template>\n\n<script>\nimport { mergeProps } from 'vue';\nimport BaseAccordionContent from './BaseAccordionContent.vue';\n\nexport default {\n name: 'AccordionContent',\n extends: BaseAccordionContent,\n inheritAttrs: false,\n inject: ['$pcAccordion', '$pcAccordionPanel'],\n computed: {\n id() {\n return `${this.$pcAccordion.id}_accordioncontent_${this.$pcAccordionPanel.value}`;\n },\n ariaLabelledby() {\n return `${this.$pcAccordion.id}_accordionheader_${this.$pcAccordionPanel.value}`;\n },\n attrs() {\n return mergeProps(this.a11yAttrs, this.ptmi('root', this.ptParams));\n },\n a11yAttrs() {\n return {\n id: this.id,\n role: 'region',\n 'aria-labelledby': this.ariaLabelledby,\n 'data-pc-name': 'accordioncontent',\n 'data-p-active': this.$pcAccordionPanel.active\n };\n },\n ptParams() {\n return {\n context: {\n active: this.$pcAccordionPanel.active\n }\n };\n }\n }\n};\n</script>\n","<template>\n <template v-if=\"!asChild\">\n <transition name=\"p-toggleable-content\" v-bind=\"ptm('transition', ptParams)\">\n <component v-if=\"$pcAccordion.lazy ? $pcAccordionPanel.active : true\" v-show=\"$pcAccordion.lazy ? true : $pcAccordionPanel.active\" :is=\"as\" :class=\"cx('root')\" v-bind=\"attrs\">\n <div :class=\"cx('content')\" v-bind=\"ptm('content', ptParams)\">\n <slot></slot>\n </div>\n </component>\n </transition>\n </template>\n <slot v-else :class=\"cx('root')\" :active=\"$pcAccordionPanel.active\" :a11yAttrs=\"a11yAttrs\"></slot>\n</template>\n\n<script>\nimport { mergeProps } from 'vue';\nimport BaseAccordionContent from './BaseAccordionContent.vue';\n\nexport default {\n name: 'AccordionContent',\n extends: BaseAccordionContent,\n inheritAttrs: false,\n inject: ['$pcAccordion', '$pcAccordionPanel'],\n computed: {\n id() {\n return `${this.$pcAccordion.id}_accordioncontent_${this.$pcAccordionPanel.value}`;\n },\n ariaLabelledby() {\n return `${this.$pcAccordion.id}_accordionheader_${this.$pcAccordionPanel.value}`;\n },\n attrs() {\n return mergeProps(this.a11yAttrs, this.ptmi('root', this.ptParams));\n },\n a11yAttrs() {\n return {\n id: this.id,\n role: 'region',\n 'aria-labelledby': this.ariaLabelledby,\n 'data-pc-name': 'accordioncontent',\n 'data-p-active': this.$pcAccordionPanel.active\n };\n },\n ptParams() {\n return {\n context: {\n active: this.$pcAccordionPanel.active\n }\n };\n }\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","as","type","String","Object","asChild","Boolean","style","AccordionContentStyle","provide","$pcAccordionContent","$parentInstance","BaseAccordionContent","inheritAttrs","inject","computed","id","concat","$pcAccordion","$pcAccordionPanel","value","ariaLabelledby","attrs","mergeProps","a11yAttrs","ptmi","ptParams","role","active","context","_ctx","_openBlock","_createBlock","_Transition","_mergeProps","ptm","$options","lazy","_resolveDynamicComponent","cx","_createElementVNode","_renderSlot","$slots","_vShow"],"mappings":";;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,sBAAsB;AAC5B,EAAA,SAAA,EAASC,aAAa;AACtBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,EAAE,EAAE;AACAC,MAAAA,IAAI,EAAE,CAACC,MAAM,EAAEC,MAAM,CAAC;MACtB,SAAS,EAAA;KACZ;AACDC,IAAAA,OAAO,EAAE;AACLH,MAAAA,IAAI,EAAEI,OAAO;MACb,SAAS,EAAA;AACb;GACH;AACDC,EAAAA,KAAK,EAAEC,qBAAqB;EAC5BC,OAAO,EAAA,SAAPA,OAAOA,GAAG;IACN,OAAO;AACHC,MAAAA,mBAAmB,EAAE,IAAI;AACzBC,MAAAA,eAAe,EAAE;KACpB;AACL;AACJ,CAAC;;ACPD,aAAe;AACXb,EAAAA,IAAI,EAAE,kBAAkB;AACxB,EAAA,SAAA,EAASc,QAAoB;AAC7BC,EAAAA,YAAY,EAAE,KAAK;AACnBC,EAAAA,MAAM,EAAE,CAAC,cAAc,EAAE,mBAAmB,CAAC;AAC7CC,EAAAA,QAAQ,EAAE;IACNC,EAAE,EAAA,SAAFA,EAAEA,GAAG;AACD,MAAA,OAAA,EAAA,CAAAC,MAAA,CAAU,IAAI,CAACC,YAAY,CAACF,EAAE,EAAAC,oBAAAA,CAAAA,CAAAA,MAAA,CAAqB,IAAI,CAACE,iBAAiB,CAACC,KAAK,CAAA;KAClF;IACDC,cAAc,EAAA,SAAdA,cAAcA,GAAG;AACb,MAAA,OAAA,EAAA,CAAAJ,MAAA,CAAU,IAAI,CAACC,YAAY,CAACF,EAAE,EAAAC,mBAAAA,CAAAA,CAAAA,MAAA,CAAoB,IAAI,CAACE,iBAAiB,CAACC,KAAK,CAAA;KACjF;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