2024-02-13 06:22:45 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ props }) => [
|
|
|
|
'p-stepper p-component',
|
|
|
|
{
|
|
|
|
'p-stepper-horizontal': props.orientation === 'horizontal',
|
|
|
|
'p-stepper-vertical': props.orientation === 'vertical',
|
|
|
|
'p-readonly': props.linear
|
|
|
|
}
|
|
|
|
],
|
2024-04-30 14:09:49 +00:00
|
|
|
list: 'p-stepper-list',
|
2024-02-13 06:22:45 +00:00
|
|
|
stepper: {
|
2024-04-30 14:09:49 +00:00
|
|
|
item: ({ instance, step, index }) => [
|
2024-04-09 08:53:22 +00:00
|
|
|
'p-stepper-item',
|
2024-02-13 06:22:45 +00:00
|
|
|
{
|
2024-04-09 08:53:22 +00:00
|
|
|
'p-stepper-item-active': instance.isStepActive(index),
|
2024-02-21 08:44:30 +00:00
|
|
|
'p-disabled': instance.isItemDisabled(index)
|
2024-02-13 06:22:45 +00:00
|
|
|
}
|
|
|
|
],
|
2024-04-30 14:09:49 +00:00
|
|
|
itemHeader: 'p-stepper-item-header',
|
|
|
|
itemNumber: 'p-stepper-item-number',
|
|
|
|
itemTitle: 'p-stepper-item-title',
|
2024-02-13 06:22:45 +00:00
|
|
|
separator: 'p-stepper-separator',
|
2024-04-30 14:09:49 +00:00
|
|
|
panelContentContainer: 'p-stepper-panel-content-container',
|
|
|
|
panelContent: 'p-stepper-panel-content'
|
2024-02-13 06:22:45 +00:00
|
|
|
},
|
2024-04-30 14:09:49 +00:00
|
|
|
panels: 'p-stepper-panels',
|
2024-02-13 06:22:45 +00:00
|
|
|
panel: ({ instance, props, index }) => [
|
|
|
|
'p-stepper-panel',
|
|
|
|
{
|
|
|
|
'p-stepper-panel-active': props.orientation === 'vertical' && instance.isStepActive(index)
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'stepper',
|
|
|
|
classes
|
|
|
|
});
|