2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ instance, props }) => [
|
2024-01-12 07:07:55 +00:00
|
|
|
'p-tristatecheckbox p-checkbox p-component',
|
2023-10-02 10:46:09 +00:00
|
|
|
{
|
2024-01-12 07:07:55 +00:00
|
|
|
'p-highlight': instance.active,
|
2024-01-30 11:27:56 +00:00
|
|
|
'p-disabled': props.disabled,
|
2024-01-31 08:02:53 +00:00
|
|
|
'p-invalid': props.invalid,
|
2024-02-02 11:46:26 +00:00
|
|
|
'p-variant-filled': props.variant === 'filled' || instance.$primevue.config.inputStyle === 'filled'
|
2023-10-02 10:46:09 +00:00
|
|
|
}
|
|
|
|
],
|
2024-01-12 07:07:55 +00:00
|
|
|
box: 'p-checkbox-box',
|
|
|
|
input: 'p-checkbox-input',
|
2023-10-02 10:46:09 +00:00
|
|
|
checkIcon: 'p-checkbox-icon',
|
|
|
|
uncheckIcon: 'p-checkbox-icon',
|
|
|
|
nullableIcon: 'p-checkbox-icon'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'tristatecheckbox',
|
2023-10-04 09:20:15 +00:00
|
|
|
classes
|
2023-10-02 10:46:09 +00:00
|
|
|
});
|