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 • 6.04 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../src/inlinemessage/BaseInlineMessage.vue","../../src/inlinemessage/InlineMessage.vue","../../src/inlinemessage/InlineMessage.vue?vue&type=template&id=0df2fa28&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport InlineMessageStyle from 'primevue/inlinemessage/style';\n\nexport default {\n name: 'BaseInlineMessage',\n extends: BaseComponent,\n props: {\n severity: {\n type: String,\n default: 'error'\n },\n icon: {\n type: String,\n default: undefined\n }\n },\n style: InlineMessageStyle,\n provide() {\n return {\n $pcInlineMessage: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <div role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" :class=\"cx('root')\" v-bind=\"ptmi('root')\">\n <slot name=\"icon\">\n <component :is=\"icon ? 'span' : iconComponent\" :class=\"cx('icon')\" v-bind=\"ptm('icon')\"></component>\n </slot>\n <div v-if=\"$slots.default\" :class=\"cx('text')\" v-bind=\"ptm('text')\">\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script>\nimport CheckIcon from '@primevue/icons/check';\nimport ExclamationTriangleIcon from '@primevue/icons/exclamationtriangle';\nimport InfoCircleIcon from '@primevue/icons/infocircle';\nimport TimesCircleIcon from '@primevue/icons/timescircle';\nimport BaseInlineMessage from './BaseInlineMessage.vue';\n\nexport default {\n name: 'InlineMessage',\n extends: BaseInlineMessage,\n inheritAttrs: false,\n timeout: null,\n data() {\n return {\n visible: true\n };\n },\n mounted() {\n if (!this.sticky) {\n setTimeout(() => {\n this.visible = false;\n }, this.life);\n }\n },\n computed: {\n iconComponent() {\n return {\n info: InfoCircleIcon,\n success: CheckIcon,\n warn: ExclamationTriangleIcon,\n error: TimesCircleIcon\n }[this.severity];\n }\n }\n};\n</script>\n","<template>\n <div role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\" :class=\"cx('root')\" v-bind=\"ptmi('root')\">\n <slot name=\"icon\">\n <component :is=\"icon ? 'span' : iconComponent\" :class=\"cx('icon')\" v-bind=\"ptm('icon')\"></component>\n </slot>\n <div v-if=\"$slots.default\" :class=\"cx('text')\" v-bind=\"ptm('text')\">\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script>\nimport CheckIcon from '@primevue/icons/check';\nimport ExclamationTriangleIcon from '@primevue/icons/exclamationtriangle';\nimport InfoCircleIcon from '@primevue/icons/infocircle';\nimport TimesCircleIcon from '@primevue/icons/timescircle';\nimport BaseInlineMessage from './BaseInlineMessage.vue';\n\nexport default {\n name: 'InlineMessage',\n extends: BaseInlineMessage,\n inheritAttrs: false,\n timeout: null,\n data() {\n return {\n visible: true\n };\n },\n mounted() {\n if (!this.sticky) {\n setTimeout(() => {\n this.visible = false;\n }, this.life);\n }\n },\n computed: {\n iconComponent() {\n return {\n info: InfoCircleIcon,\n success: CheckIcon,\n warn: ExclamationTriangleIcon,\n error: TimesCircleIcon\n }[this.severity];\n }\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","severity","type","String","icon","undefined","style","InlineMessageStyle","provide","$pcInlineMessage","$parentInstance","BaseInlineMessage","inheritAttrs","timeout","data","visible","mounted","_this","sticky","setTimeout","life","computed","iconComponent","info","InfoCircleIcon","success","CheckIcon","warn","ExclamationTriangleIcon","error","TimesCircleIcon","_openBlock","_createElementBlock","_mergeProps","role","_ctx","cx","ptmi","_renderSlot","_createBlock","_resolveDynamicComponent","$options","ptm","$slots"],"mappings":";;;;;;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,mBAAmB;AACzB,EAAA,SAAA,EAASC,aAAa;AACtBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,QAAQ,EAAE;AACNC,MAAAA,IAAI,EAAEC,MAAM;MACZ,SAAS,EAAA;KACZ;AACDC,IAAAA,IAAI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