2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ props }) => [`p-fileupload p-fileupload-${props.mode} p-component`],
|
|
|
|
buttonbar: 'p-fileupload-buttonbar',
|
|
|
|
chooseButton: ({ instance, props }) => [
|
2024-03-22 08:53:44 +00:00
|
|
|
'p-component p-fileupload-choose',
|
2023-10-02 10:46:09 +00:00
|
|
|
{
|
|
|
|
'p-fileupload-choose-selected': props.mode === 'basic' && instance.hasFiles,
|
|
|
|
'p-disabled': props.disabled,
|
|
|
|
'p-focus': instance.focused
|
|
|
|
}
|
|
|
|
],
|
2024-03-22 08:53:44 +00:00
|
|
|
chooseIcon: 'p-fileupload-choose-icon',
|
|
|
|
chooseButtonLabel: 'p-fileupload-choosebutton-label',
|
2023-10-02 10:46:09 +00:00
|
|
|
content: 'p-fileupload-content',
|
|
|
|
empty: 'p-fileupload-empty',
|
2024-03-22 08:53:44 +00:00
|
|
|
uploadIcon: 'p-fileupload-upload-icon',
|
|
|
|
label: 'p-fileupload-button-label',
|
2023-10-02 10:46:09 +00:00
|
|
|
file: 'p-fileupload-file',
|
|
|
|
thumbnail: 'p-fileupload-file-thumbnail',
|
|
|
|
details: 'p-fileupload-file-details',
|
|
|
|
fileName: 'p-fileupload-file-name',
|
|
|
|
fileSize: 'p-fileupload-file-size',
|
|
|
|
badge: 'p-fileupload-file-badge',
|
|
|
|
actions: 'p-fileupload-file-actions',
|
|
|
|
removeButton: 'p-fileupload-file-remove'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'fileupload',
|
|
|
|
classes
|
|
|
|
});
|