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 5.41 kB
{"version":3,"file":"index.mjs","sources":["../../src/accordionpanel/BaseAccordionPanel.vue","../../src/accordionpanel/AccordionPanel.vue","../../src/accordionpanel/AccordionPanel.vue?vue&type=template&id=37e9bce5&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport AccordionPanelStyle from 'primevue/accordionpanel/style';\n\nexport default {\n name: 'BaseAccordionPanel',\n extends: BaseComponent,\n props: {\n value: {\n type: [String, Number],\n default: undefined\n },\n disabled: {\n type: Boolean,\n default: false\n },\n as: {\n type: [String, Object],\n default: 'DIV'\n },\n asChild: {\n type: Boolean,\n default: false\n }\n },\n style: AccordionPanelStyle,\n provide() {\n return {\n $pcAccordionPanel: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <component v-if=\"!asChild\" :is=\"as\" :class=\"cx('root')\" v-bind=\"attrs\">\n <slot></slot>\n </component>\n <slot v-else :class=\"cx('root')\" :active=\"active\" :a11yAttrs=\"a11yAttrs\"></slot>\n</template>\n\n<script>\nimport { mergeProps } from 'vue';\nimport BaseAccordionPanel from './BaseAccordionPanel.vue';\n\nexport default {\n name: 'AccordionPanel',\n extends: BaseAccordionPanel,\n inheritAttrs: false,\n inject: ['$pcAccordion'],\n computed: {\n active() {\n return this.$pcAccordion.isItemActive(this.value);\n },\n attrs() {\n return mergeProps(this.a11yAttrs, this.ptmi('root', this.ptParams));\n },\n a11yAttrs() {\n return {\n 'data-pc-name': 'accordionpanel',\n 'data-p-disabled': this.disabled,\n 'data-p-active': this.active\n };\n },\n ptParams() {\n return {\n context: {\n active: this.active\n }\n };\n }\n }\n};\n</script>\n","<template>\n <component v-if=\"!asChild\" :is=\"as\" :class=\"cx('root')\" v-bind=\"attrs\">\n <slot></slot>\n </component>\n <slot v-else :class=\"cx('root')\" :active=\"active\" :a11yAttrs=\"a11yAttrs\"></slot>\n</template>\n\n<script>\nimport { mergeProps } from 'vue';\nimport BaseAccordionPanel from './BaseAccordionPanel.vue';\n\nexport default {\n name: 'AccordionPanel',\n extends: BaseAccordionPanel,\n inheritAttrs: false,\n inject: ['$pcAccordion'],\n computed: {\n active() {\n return this.$pcAccordion.isItemActive(this.value);\n },\n attrs() {\n return mergeProps(this.a11yAttrs, this.ptmi('root', this.ptParams));\n },\n a11yAttrs() {\n return {\n 'data-pc-name': 'accordionpanel',\n 'data-p-disabled': this.disabled,\n 'data-p-active': this.active\n };\n },\n ptParams() {\n return {\n context: {\n active: this.active\n }\n };\n }\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","value","type","String","Number","undefined","disabled","Boolean","as","Object","asChild","style","AccordionPanelStyle","provide","$pcAccordionPanel","$parentInstance","BaseAccordionPanel","inheritAttrs","inject","computed","active","$pcAccordion","isItemActive","attrs","mergeProps","a11yAttrs","ptmi","ptParams","context","_ctx","_createBlock","_resolveDynamicComponent","_mergeProps","cx","$options","_renderSlot","$slots"],"mappings":";;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,oBAAoB;AAC1B,EAAA,SAAA,EAASC,aAAa;AACtBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,KAAK,EAAE;AACHC,MAAAA,IAAI,EAAE,CAACC,MAAM,EAAEC,MAAM,CAAC;MACtB,SAASC,EAAAA;KACZ;AACDC,IAAAA,QAAQ,EAAE;AACNJ,MAAAA,IAAI,EAAEK,OAAO;MACb,SAAS,EAAA;KACZ;AACDC,IAAAA,EAAE,EAAE;AACAN,MAAAA,IAAI,EAAE,CAACC,MAAM,EAAEM,MAAM,CAAC;MACtB,SAAS,EAAA;KACZ;AACDC,IAAAA,OAAO,EAAE;AACLR,MAAAA,IAAI,EAAEK,OAAO;MACb,SAAS,EAAA;AACb;GACH;AACDI,EAAAA,KAAK,EAAEC,mBAAmB;EAC1BC,OAAO,EAAA,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