1 line
8.3 KiB
Plaintext
1 line
8.3 KiB
Plaintext
|
|
{"version":3,"file":"index.mjs","sources":["../../src/tabpanel/BaseTabPanel.vue","../../src/tabpanel/TabPanel.vue","../../src/tabpanel/TabPanel.vue?vue&type=template&id=8c0752ba&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport TabPanelStyle from 'primevue/tabpanel/style';\n\nexport default {\n name: 'BaseTabPanel',\n extends: BaseComponent,\n props: {\n // in Tabs\n value: {\n type: [String, Number],\n default: undefined\n },\n as: {\n type: [String, Object],\n default: 'DIV'\n },\n asChild: {\n type: Boolean,\n default: false\n },\n // in TabView\n header: null,\n headerStyle: null,\n headerClass: null,\n headerProps: null,\n headerActionProps: null,\n contentStyle: null,\n contentClass: null,\n contentProps: null,\n disabled: Boolean\n },\n style: TabPanelStyle,\n provide() {\n return {\n $pcTabPanel: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <slot v-if=\"!$pcTabs\"></slot>\n <template v-else>\n <template v-if=\"!asChild\">\n <component v-if=\"$pcTabs?.lazy ? active : true\" v-show=\"$pcTabs?.lazy ? true : active\" :is=\"as\" :class=\"cx('root')\" v-bind=\"attrs\">\n <slot></slot>\n </component>\n </template>\n\n <slot v-else :class=\"cx('root')\" :active=\"active\" :a11yAttrs=\"a11yAttrs\"></slot>\n </template>\n</template>\n\n<script>\nimport { equals } from '@primeuix/utils/object';\nimport { mergeProps } from 'vue';\nimport BaseTabPanel from './BaseTabPanel.vue';\n\nexport default {\n name: 'TabPanel',\n extends: BaseTabPanel,\n inheritAttrs: false,\n inject: ['$pcTabs'],\n computed: {\n active() {\n return equals(this.$pcTabs?.d_value, this.value);\n },\n id() {\n return `${this.$pcTabs?.$id}_tabpanel_${this.value}`;\n },\n ariaLabelledby() {\n return `${this.$pcTabs?.$id}_tab_${this.value}`;\n },\n attrs() {\n return mergeProps(this.a11yAttrs, this.ptmi('root', this.ptParams));\n },\n a11yAttrs() {\n return {\n id: this.id,\n tabindex: this.$pcTabs?.tabindex,\n role: 'tabpanel',\n 'aria-labelledby': this.ariaLabelledby,\n 'data-pc-name': 'tabpanel',\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 <slot v-if=\"!$pcTabs\"></slot>\n <template v-else>\n <template v-if=\"!asChild\">\n <component v-if=\"$pcTabs?.lazy ? active : true\" v-show=\"$pcTabs?.lazy ? true : active\" :is=\"as\" :class=\"cx('root')\" v-bind=\"attrs\">\n <slot></slot>\n </component>\n </template>\n\n <slot v-else :class=\"cx('root')\" :active=\"active\" :a11yAttrs=\"a11yAttrs\"></slot>\n </template>\n</template>\n\n<script>\nimport { equals } from '@primeuix/utils/object';\nimport { mergeProps } from 'vue';\nimport BaseTabPanel from './BaseTabPanel.vue';\n\nexport default {\n name: 'TabPanel',\n extends: BaseTabPanel,\n inheritAttrs: false,\n inject: ['$pcTabs'],\n computed: {\n active() {\n return equals(this.$pcTabs?.d_value, this.value);\n },\n id() {\n return `${this.$pcTabs?.$id}_tabpanel_${this.value}`;\n },\n ariaLabelledby() {\n return `${this.$pcTabs?.$id}_tab_${this.value}`;\n },\n attrs() {\n return mergeProps(this.a11yAttrs, this.ptmi('root', this.ptParams));\n },\n a11yAttrs() {\n return {\n id: this.id,\n
|