2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
2024-01-31 08:02:53 +00:00
|
|
|
root: ({ props, instance }) => [
|
2023-10-02 10:46:09 +00:00
|
|
|
'p-inputmask p-inputtext p-component',
|
|
|
|
{
|
2024-01-31 08:02:53 +00:00
|
|
|
'p-filled': instance.filled,
|
|
|
|
'p-invalid': props.invalid,
|
2024-02-02 11:46:26 +00:00
|
|
|
'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled'
|
2023-10-02 10:46:09 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'inputmask',
|
2023-10-04 09:20:15 +00:00
|
|
|
classes
|
2023-10-02 10:46:09 +00:00
|
|
|
});
|