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 4.82 kB
{"version":3,"file":"index.mjs","sources":["../../src/stepper/BaseStepper.vue","../../src/stepper/Stepper.vue","../../src/stepper/Stepper.vue?vue&type=template&id=d25a98fc&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport StepperStyle from 'primevue/stepper/style';\n\nexport default {\n name: 'BaseStepper',\n extends: BaseComponent,\n props: {\n value: {\n type: [String, Number],\n default: undefined\n },\n linear: {\n type: Boolean,\n default: false\n }\n },\n style: StepperStyle,\n provide() {\n return {\n $pcStepper: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <div :class=\"cx('root')\" role=\"tablist\" v-bind=\"ptmi('root')\">\n <slot v-if=\"$slots.start\" name=\"start\" />\n <slot />\n <slot v-if=\"$slots.end\" name=\"end\" />\n </div>\n</template>\n\n<script>\nimport BaseStepper from './BaseStepper.vue';\n\nexport default {\n name: 'Stepper',\n extends: BaseStepper,\n inheritAttrs: false,\n emits: ['update:value'],\n data() {\n return {\n d_value: this.value\n };\n },\n watch: {\n value(newValue) {\n this.d_value = newValue;\n }\n },\n methods: {\n updateValue(newValue) {\n if (this.d_value !== newValue) {\n this.d_value = newValue;\n this.$emit('update:value', newValue);\n }\n },\n isStepActive(value) {\n return this.d_value === value;\n },\n isStepDisabled() {\n return this.linear;\n }\n }\n};\n</script>\n","<template>\n <div :class=\"cx('root')\" role=\"tablist\" v-bind=\"ptmi('root')\">\n <slot v-if=\"$slots.start\" name=\"start\" />\n <slot />\n <slot v-if=\"$slots.end\" name=\"end\" />\n </div>\n</template>\n\n<script>\nimport BaseStepper from './BaseStepper.vue';\n\nexport default {\n name: 'Stepper',\n extends: BaseStepper,\n inheritAttrs: false,\n emits: ['update:value'],\n data() {\n return {\n d_value: this.value\n };\n },\n watch: {\n value(newValue) {\n this.d_value = newValue;\n }\n },\n methods: {\n updateValue(newValue) {\n if (this.d_value !== newValue) {\n this.d_value = newValue;\n this.$emit('update:value', newValue);\n }\n },\n isStepActive(value) {\n return this.d_value === value;\n },\n isStepDisabled() {\n return this.linear;\n }\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","value","type","String","Number","undefined","linear","Boolean","style","StepperStyle","provide","$pcStepper","$parentInstance","BaseStepper","inheritAttrs","emits","data","d_value","watch","newValue","methods","updateValue","$emit","isStepActive","isStepDisabled","_openBlock","_createElementBlock","_mergeProps","_ctx","cx","role","ptmi","$slots","start","_renderSlot","key","end"],"mappings":";;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,aAAa;AACnB,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,MAAM,EAAE;AACJJ,MAAAA,IAAI,EAAEK,OAAO;MACb,SAAS,EAAA;AACb;GACH;AACDC,EAAAA,KAAK,EAAEC,YAAY;EACnBC,OAAO,EAAA,SAAPA,OAAOA,GAAG;IACN,OAAO;AACHC,MAAAA,UAAU,EAAE,IAAI;AAChBC,MAAAA,eAAe,EAAE;KACpB;AACL;AACJ,CAAC;;ACbD,aAAe;AACXd,EAAAA,IAAI,EAAE,SAAS;AACf,EAAA,SAAA,EAASe,QAAW;AACpBC,EAAAA,YAAY,EAAE,KAAK;EACnBC,KAAK,EAAE,CAAC,cAAc,CAAC;EACvBC,IAAI,EAAA,SAAJA,IAAIA,GAAG;IACH,OAAO;MACHC,OAAO,EAAE,IAAI,CAAChB;KACjB;GACJ;AACDiB,EAAAA,KAAK,EAAE;AACHjB,IAAAA,KAAK,EAALA,SAAAA,KAAKA,CAACkB,QAAQ,EAAE;MACZ,IAAI,CAACF,OAAQ,GAAEE,QAAQ;AAC3B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