@exhaustive-ui/mcp 22.0.1 → 22.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,565 @@
1
+ # Angular FileInput Component
2
+
3
+ FileInput selects files by drag and drop, paste or the file picker, validates each file and uploads it with its own progress. It has a list, an images and an avatar variant, and works with every kind of Angular form.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader The dropzone, the add tile and the avatar are buttons that open the native file picker, which stays hidden. Describe them with ariaLabelledBy or ariaLabel ; the hint is linked to the dropzone with aria-describedby . The file list is labelled, every action button names its file, for example "Remove report.pdf", and progress bars use the progressbar role. A polite live region announces the files added and rejected, finished and failed uploads, and removed files.
8
+
9
+ ## Avatar
10
+
11
+ The avatar variant is a single clickable image to replace a profile picture or a logo, round by default or square with avatarShape . It holds one file, so its value is a file or null. The image shown comes from the chosen file, otherwise from the first existing file. On mobile devices, capture opens the camera directly.
12
+
13
+ ```typescript
14
+ import { Component } from '@angular/core';
15
+ import { FormsModule } from '@angular/forms';
16
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
17
+
18
+ @Component({
19
+ template: `
20
+ <div class="card flex flex-wrap justify-center gap-12">
21
+ <p-file variant="avatar" accept="image/*" capture="user" ariaLabel="Profile picture" [(ngModel)]="photo" />
22
+ <p-file variant="avatar" avatarShape="square" accept="image/*" ariaLabel="Company logo" [(ngModel)]="logo" />
23
+ </div>
24
+ `,
25
+ standalone: true,
26
+ imports: [FileInputModule, FormsModule]
27
+ })
28
+ export class FileinputAvatarDemo {
29
+ photo: File | null = null;
30
+ logo: File | null = null;
31
+ }
32
+ ```
33
+
34
+ ## Basic
35
+
36
+ FileInput is bound with ngModel , and its value is the array of selected files. Files are added by clicking the dropzone, with the keyboard, by drag and drop, or by pasting them, a screenshot for example, while the component has the focus. Dropping a folder adds the files it contains and keeps their relative path. Without an url or an uploadHandler , nothing is uploaded: the files stay in the value, ready to be sent with the form.
37
+
38
+ ```typescript
39
+ import { Component } from '@angular/core';
40
+ import { FormsModule } from '@angular/forms';
41
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
42
+
43
+ @Component({
44
+ template: `
45
+ <div class="card">
46
+ <p-file [(ngModel)]="files" />
47
+ </div>
48
+ `,
49
+ standalone: true,
50
+ imports: [FileInputModule, FormsModule]
51
+ })
52
+ export class FileinputBasicDemo {
53
+ files: File[] = [];
54
+ }
55
+ ```
56
+
57
+ ## Disabled
58
+
59
+ When disabled is present, files can no longer be added or removed.
60
+
61
+ ```typescript
62
+ import { Component } from '@angular/core';
63
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
64
+
65
+ @Component({
66
+ template: `
67
+ <div class="card">
68
+ <p-file disabled />
69
+ </div>
70
+ `,
71
+ standalone: true,
72
+ imports: [FileInputModule]
73
+ })
74
+ export class FileinputDisabledDemo {}
75
+ ```
76
+
77
+ ## Existing Files
78
+
79
+ When a form edits a record, pass the files already stored on the server to existing . They are listed before the new files, with a download button when they have a url and a delete button. Deleting one emits onRemoveExisting : delete the file on the server from there. Existing files count toward maxFiles and are not part of the value.
80
+
81
+ ```typescript
82
+ import { Component, inject } from '@angular/core';
83
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
84
+ import { ToastModule } from '@exhaustive-ui/core/toast';
85
+ import { MessageService } from '@exhaustive-ui/core/api';
86
+
87
+ @Component({
88
+ template: `
89
+ <p-toast />
90
+ <div class="card">
91
+ <p-file [existing]="attachments" (onRemoveExisting)="onRemoveExisting($event)" />
92
+ </div>
93
+ `,
94
+ standalone: true,
95
+ imports: [FileInputModule, ToastModule]
96
+ })
97
+ export class FileinputExistingDemo {
98
+ messageService = inject(MessageService);
99
+ attachments: FileInputExistingFile[];
100
+
101
+ onRemoveExisting(event: FileInputRemoveExistingEvent) {
102
+ this.messageService.add({ severity: 'info', summary: 'Delete on the server', detail: event.file.name, life: 3000 });
103
+ }
104
+ }
105
+ ```
106
+
107
+ ## Images
108
+
109
+ The images variant shows the files as a grid of square thumbnails, for a gallery, a listing or a product page. The first image is marked as the cover, the progress of an upload is drawn over its thumbnail, and the add tile, which also accepts dropped files, stays at the end of the grid until maxFiles is reached.
110
+
111
+ ```typescript
112
+ import { Component } from '@angular/core';
113
+ import { FormsModule } from '@angular/forms';
114
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
115
+
116
+ @Component({
117
+ template: `
118
+ <div class="card">
119
+ <p-file variant="images" accept="image/*" [maxFiles]="6" [maxFileSize]="5000000" [uploadHandler]="upload" [(ngModel)]="photos" />
120
+ </div>
121
+ `,
122
+ standalone: true,
123
+ imports: [FileInputModule, FormsModule]
124
+ })
125
+ export class FileinputImagesDemo {
126
+ photos: File[] = [];
127
+ upload: FileInputUploadHandler = (file, { signal, progress }) =>;
128
+ }
129
+ ```
130
+
131
+ ## Invalid
132
+
133
+ The invalid state is applied using the invalid property to indicate failed validation.
134
+
135
+ ```typescript
136
+ import { Component } from '@angular/core';
137
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
138
+
139
+ @Component({
140
+ template: `
141
+ <div class="card">
142
+ <p-file [invalid]="files.length === 0" (onSelect)="files = $event.items" />
143
+ </div>
144
+ `,
145
+ standalone: true,
146
+ imports: [FileInputModule]
147
+ })
148
+ export class FileinputInvalidDemo {
149
+ files: unknown[] = [];
150
+ }
151
+ ```
152
+
153
+ ## Labels
154
+
155
+ Every text of the component, error messages and screen reader announcements included, can be replaced through labels . Missing keys keep their English default. Placeholders such as {{ '{0}' }} receive the values. Sizes use the fileSizeTypes units of the locale.
156
+
157
+ ```typescript
158
+ import { Component } from '@angular/core';
159
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
160
+
161
+ @Component({
162
+ template: `
163
+ <div class="card">
164
+ <p-file [labels]="labels" [maxFileSize]="2000000" hint="2 Mo maximum par fichier" />
165
+ </div>
166
+ `,
167
+ standalone: true,
168
+ imports: [FileInputModule]
169
+ })
170
+ export class FileinputLabelsDemo {
171
+ labels: Partial<FileInputLabels>;
172
+ }
173
+ ```
174
+
175
+ ## reactiveforms-doc
176
+
177
+ FileInput can also be used with reactive forms. In this case, the formControlName property is used to bind the component to a form control.
178
+
179
+ ```typescript
180
+ import { Component, inject } from '@angular/core';
181
+ import { ReactiveFormsModule } from '@angular/forms';
182
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
183
+ import { MessageModule } from '@exhaustive-ui/core/message';
184
+ import { ToastModule } from '@exhaustive-ui/core/toast';
185
+ import { ButtonModule } from '@exhaustive-ui/core/button';
186
+ import { MessageService } from '@exhaustive-ui/core/api';
187
+
188
+ @Component({
189
+ template: `
190
+ <p-toast />
191
+ <div class="card">
192
+ <form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4">
193
+ <div class="flex flex-col gap-2">
194
+ <label id="documents-label" class="font-medium">Documents</label>
195
+ <p-file formControlName="documents" ariaLabelledBy="documents-label" size="small" [maxFiles]="3" [invalid]="isInvalid('documents')" />
196
+ @if (isInvalid('documents')) {
197
+ <p-message severity="error" size="small" variant="simple">At least one document is required.</p-message>
198
+ }
199
+ </div>
200
+ <button pButton severity="secondary" type="submit" class="self-start"><span pButtonLabel>Submit</span></button>
201
+ </form>
202
+ </div>
203
+ `,
204
+ standalone: true,
205
+ imports: [FileInputModule, MessageModule, ToastModule, ButtonModule, ReactiveFormsModule]
206
+ })
207
+ export class FileinputReactiveformsDemo {
208
+ messageService = inject(MessageService);
209
+ exampleForm: FormGroup;
210
+ formSubmitted: boolean = false;
211
+
212
+ constructor() {
213
+ this.exampleForm = this.fb.group({
214
+ documents: [[], Validators.required]
215
+ });
216
+ }
217
+
218
+ onSubmit() {
219
+ this.formSubmitted = true;
220
+ if (this.exampleForm.valid) {
221
+ this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Form is submitted', life: 3000 });
222
+ this.exampleForm.reset({ documents: [] });
223
+ this.formSubmitted = false;
224
+ }
225
+ }
226
+
227
+ isInvalid(controlName: string) {
228
+ const control = this.exampleForm.get(controlName);
229
+ return control?.invalid && (control.touched || this.formSubmitted);
230
+ }
231
+ }
232
+ ```
233
+
234
+ ## Signal Forms
235
+
236
+ FileInput can also be used with Angular Signal Forms . The [formField] directive binds the component to a field holding an array of files. Signal Forms' required does not treat an empty array as empty, so use minLength(field, 1) to require at least one file.
237
+
238
+ ```typescript
239
+ import { Component, inject, signal } from '@angular/core';
240
+ import { form, FormField, minLength, submit } from '@angular/forms/signals';
241
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
242
+ import { MessageModule } from '@exhaustive-ui/core/message';
243
+ import { ToastModule } from '@exhaustive-ui/core/toast';
244
+ import { ButtonModule } from '@exhaustive-ui/core/button';
245
+ import { MessageService } from '@exhaustive-ui/core/api';
246
+
247
+ @Component({
248
+ template: `
249
+ <p-toast />
250
+ <div class="card">
251
+ <form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4">
252
+ <div class="flex flex-col gap-2">
253
+ <label id="photos-label" class="font-medium">Photos</label>
254
+ <p-file [formField]="listingForm.photos" variant="images" accept="image/*" [maxFiles]="4" ariaLabelledBy="photos-label" />
255
+ @let photos = listingForm.photos();
256
+ @if (photos.invalid() && photos.touched()) {
257
+ <p-message severity="error" size="small" variant="simple">Add at least one photo.</p-message>
258
+ }
259
+ </div>
260
+ <button pButton severity="secondary" type="submit" class="self-start"><span pButtonLabel>Submit</span></button>
261
+ </form>
262
+ </div>
263
+ `,
264
+ standalone: true,
265
+ imports: [FileInputModule, MessageModule, ToastModule, ButtonModule, FormField]
266
+ })
267
+ export class FileinputSignalformsDemo {
268
+ messageService = inject(MessageService);
269
+ model = signal<{ photos: File[] }>({ photos: [] });
270
+ listingForm = form(this.model, (f) => {
271
+ minLength(f.photos, 1);
272
+ });
273
+
274
+ onSubmit(event: Event) {
275
+ event.preventDefault();
276
+ submit(this.listingForm, async () => {
277
+ this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Form is submitted', life: 3000 });
278
+ this.listingForm().reset({ photos: [] });
279
+ });
280
+ }
281
+ }
282
+ ```
283
+
284
+ ## Sizes
285
+
286
+ FileInput provides small and large sizes as alternatives to the default, like the other form fields.
287
+
288
+ ```typescript
289
+ import { Component } from '@angular/core';
290
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
291
+
292
+ @Component({
293
+ template: `
294
+ <div class="card flex flex-col gap-4">
295
+ <p-file size="small" />
296
+ <p-file />
297
+ <p-file size="large" />
298
+ </div>
299
+ `,
300
+ standalone: true,
301
+ imports: [FileInputModule]
302
+ })
303
+ export class FileinputSizesDemo {}
304
+ ```
305
+
306
+ ## Template
307
+
308
+ The dropzone template replaces the content of the dropzone and receives an open function and an active flag, true while files are dragged over it. The item template replaces a row of the list and receives the item with its remove , retry and cancel functions.
309
+
310
+ ```typescript
311
+ import { Component } from '@angular/core';
312
+ import { ButtonModule } from '@exhaustive-ui/core/button';
313
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
314
+
315
+ @Component({
316
+ template: `
317
+ <div class="card">
318
+ <p-file accept=".csv,.xlsx">
319
+ <ng-template #dropzone let-active="active">
320
+ <i class="pi pi-file-excel !text-3xl text-muted-color"></i>
321
+ <span class="font-semibold">{{ active ? 'Release to import' : 'Import a spreadsheet' }}</span>
322
+ <span class="text-sm text-muted-color">CSV or Excel</span>
323
+ </ng-template>
324
+ <ng-template #item let-item let-remove="remove">
325
+ <i class="pi pi-table text-muted-color"></i>
326
+ <span class="flex-1 truncate">{{ item.name }}</span>
327
+ <p-button icon="pi pi-times" severity="secondary" text rounded [ariaLabel]="'Remove ' + item.name" (onClick)="remove()" />
328
+ </ng-template>
329
+ </p-file>
330
+ </div>
331
+ `,
332
+ standalone: true,
333
+ imports: [ButtonModule, FileInputModule]
334
+ })
335
+ export class FileinputTemplateDemo {}
336
+ ```
337
+
338
+ ## templatedrivenforms-doc
339
+
340
+ The value is an array of files, empty when nothing is selected, so required works as on the other fields. Resetting the form clears the files.
341
+
342
+ ```typescript
343
+ import { Component, inject } from '@angular/core';
344
+ import { FormsModule } from '@angular/forms';
345
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
346
+ import { MessageModule } from '@exhaustive-ui/core/message';
347
+ import { ToastModule } from '@exhaustive-ui/core/toast';
348
+ import { ButtonModule } from '@exhaustive-ui/core/button';
349
+ import { MessageService } from '@exhaustive-ui/core/api';
350
+
351
+ @Component({
352
+ template: `
353
+ <p-toast />
354
+ <div class="card">
355
+ <form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex flex-col gap-4">
356
+ <div class="flex flex-col gap-2">
357
+ <label id="receipts-label" class="font-medium">Receipts</label>
358
+ <p-file #model="ngModel" [(ngModel)]="receipts" name="receipts" ariaLabelledBy="receipts-label" size="small" accept="image/*,.pdf" [invalid]="model.invalid && exampleForm.submitted" required />
359
+ @if (model.invalid && exampleForm.submitted) {
360
+ <p-message severity="error" size="small" variant="simple">At least one receipt is required.</p-message>
361
+ }
362
+ </div>
363
+ <button pButton severity="secondary" type="submit" class="self-start"><span pButtonLabel>Submit</span></button>
364
+ </form>
365
+ </div>
366
+ `,
367
+ standalone: true,
368
+ imports: [FileInputModule, MessageModule, ToastModule, ButtonModule, FormsModule]
369
+ })
370
+ export class FileinputTemplatedrivenformsDemo {
371
+ messageService = inject(MessageService);
372
+ receipts: File[] = [];
373
+
374
+ onSubmit(form: any) {
375
+ if (form.valid) {
376
+ this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Form Submitted', life: 3000 });
377
+ form.resetForm();
378
+ }
379
+ }
380
+ }
381
+ ```
382
+
383
+ ## Upload
384
+
385
+ Each file is uploaded in its own request, with its own progress bar, as soon as it is added. Set url to post the files with HttpClient , which requires provideHttpClient() , or pass an uploadHandler function to upload them yourself, straight to cloud storage for example. The handler receives the file, an AbortSignal and a progress callback, and returns a promise of the server response. At most concurrency files upload at the same time, 3 by default. An upload in progress can be canceled, and a failed or canceled upload can be retried. Set auto to false to start the uploads with the upload() method instead. The demo below simulates the server. Files with "error" in their name fail. Posting to an endpoint only needs its url. The form data field is named file , or the value of fieldName .
386
+
387
+ ```typescript
388
+ import { Component, inject } from '@angular/core';
389
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
390
+ import { ToastModule } from '@exhaustive-ui/core/toast';
391
+ import { MessageService } from '@exhaustive-ui/core/api';
392
+
393
+ @Component({
394
+ template: `
395
+ <p-toast />
396
+ <div class="card">
397
+ <p-file [uploadHandler]="upload" (onUpload)="onUpload($event)" />
398
+ </div>
399
+ `,
400
+ standalone: true,
401
+ imports: [FileInputModule, ToastModule]
402
+ })
403
+ export class FileinputUploadDemo {
404
+ messageService = inject(MessageService);
405
+ upload: FileInputUploadHandler = (file, { signal, progress }) =>;
406
+ urlCode: Code;
407
+
408
+ onUpload(event: FileInputUploadEvent) {
409
+ this.messageService.add({ severity: 'success', summary: 'Uploaded', detail: event.item.name, life: 2000 });
410
+ }
411
+ }
412
+ ```
413
+
414
+ ## Validation
415
+
416
+ accept takes extensions such as .pdf and MIME types such as image/* . maxFileSize and minFileSize limit the size of each file, maxFiles the number of files, existing files included, and maxTotalSize the size of all the files together, in bytes. A rejected file stays in the list with the reason next to it until the user removes it, and it is not part of the value. Use hint to state the rules under the dropzone.
417
+
418
+ ```typescript
419
+ import { Component } from '@angular/core';
420
+ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
421
+
422
+ @Component({
423
+ template: `
424
+ <div class="card">
425
+ <p-file accept="image/*,.pdf" [maxFileSize]="5000000" [maxFiles]="5" [maxTotalSize]="15000000" hint="Images and PDF · 5 MB per file · 5 files and 15 MB in total" />
426
+ </div>
427
+ `,
428
+ standalone: true,
429
+ imports: [FileInputModule]
430
+ })
431
+ export class FileinputValidationDemo {}
432
+ ```
433
+
434
+ ## Pass Through Options
435
+
436
+ | Name | Type | Description |
437
+ |------|------|-------------|
438
+ | root | PassThroughOption<HTMLElement, I> | Used to pass attributes to the root's DOM element. |
439
+ | input | PassThroughOption<HTMLInputElement, I> | Used to pass attributes to the hidden file input's DOM element. |
440
+ | dropzone | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the dropzone's DOM element. |
441
+ | dropzoneIcon | PassThroughOption<SVGElement, I> | Used to pass attributes to the dropzone icon's DOM element. |
442
+ | label | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the dropzone label's DOM element. |
443
+ | hint | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the hint's DOM element. |
444
+ | summary | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the upload summary's DOM element. |
445
+ | list | PassThroughOption<HTMLUListElement, I> | Used to pass attributes to the file list's DOM element. |
446
+ | item | PassThroughOption<HTMLLIElement, I> | Used to pass attributes to a file row's DOM element. |
447
+ | thumbnail | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to a thumbnail's DOM element. |
448
+ | name | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to a file name's DOM element. |
449
+ | meta | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the size and status line's DOM element. |
450
+ | progress | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to a progress bar's DOM element. |
451
+ | actions | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the actions container of a row or tile. |
452
+ | action | PassThroughOption<HTMLAnchorElement \| HTMLButtonElement, I> | Used to pass attributes to an action button's DOM element. |
453
+ | grid | PassThroughOption<HTMLUListElement, I> | Used to pass attributes to the image grid's DOM element. |
454
+ | tile | PassThroughOption<HTMLLIElement, I> | Used to pass attributes to an image tile's DOM element. |
455
+ | add | PassThroughOption<HTMLButtonElement, I> | Used to pass attributes to the add tile's DOM element. |
456
+ | avatar | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the avatar's DOM element. |
457
+
458
+ ## Theming
459
+
460
+ ### CSS Classes
461
+
462
+ | Class | Description |
463
+ |-------|-------------|
464
+ | p-fileinput | Class name of the root element |
465
+ | p-fileinput-input | Class name of the hidden file input |
466
+ | p-fileinput-dropzone | Class name of the dropzone |
467
+ | p-fileinput-dropzone-icon | Class name of the dropzone icon |
468
+ | p-fileinput-label | Class name of the dropzone label |
469
+ | p-fileinput-hint | Class name of the hint |
470
+ | p-fileinput-summary | Class name of the upload summary |
471
+ | p-fileinput-progress | Class name of a progress bar |
472
+ | p-fileinput-list | Class name of the file list |
473
+ | p-fileinput-item | Class name of a file row |
474
+ | p-fileinput-thumbnail | Class name of a thumbnail |
475
+ | p-fileinput-name | Class name of a file name |
476
+ | p-fileinput-meta | Class name of the size and status line |
477
+ | p-fileinput-action | Class name of an action button |
478
+ | p-fileinput-grid | Class name of the image grid |
479
+ | p-fileinput-tile | Class name of an image tile |
480
+ | p-fileinput-add | Class name of the add tile |
481
+ | p-fileinput-avatar | Class name of the avatar |
482
+
483
+ ### Design Tokens
484
+
485
+ | Token | CSS Variable | Description |
486
+ |-------|--------------|-------------|
487
+ | fileinput.gap | --p-fileinput-gap | Gap between the dropzone, the summary and the file list |
488
+ | fileinput.transition.duration | --p-fileinput-transition-duration | Transition duration |
489
+ | fileinput.dropzone.background | --p-fileinput-dropzone-background | Background |
490
+ | fileinput.dropzone.border.color | --p-fileinput-dropzone-border-color | Border color |
491
+ | fileinput.dropzone.hover.border.color | --p-fileinput-dropzone-hover-border-color | Border color while hovered |
492
+ | fileinput.dropzone.active.border.color | --p-fileinput-dropzone-active-border-color | Border color while files are dragged over |
493
+ | fileinput.dropzone.active.background | --p-fileinput-dropzone-active-background | Background while files are dragged over |
494
+ | fileinput.dropzone.color | --p-fileinput-dropzone-color | Text color |
495
+ | fileinput.dropzone.invalid.border.color | --p-fileinput-dropzone-invalid-border-color | Border color in invalid state |
496
+ | fileinput.dropzone.disabled.background | --p-fileinput-dropzone-disabled-background | Background in disabled state |
497
+ | fileinput.dropzone.disabled.color | --p-fileinput-dropzone-disabled-color | Text color in disabled state |
498
+ | fileinput.dropzone.border.radius | --p-fileinput-dropzone-border-radius | Border radius |
499
+ | fileinput.dropzone.padding | --p-fileinput-dropzone-padding | Padding |
500
+ | fileinput.dropzone.gap | --p-fileinput-dropzone-gap | Gap between the icon, the label and the hint |
501
+ | fileinput.dropzone.font.weight | --p-fileinput-dropzone-font-weight | Font weight of the label |
502
+ | fileinput.dropzone.focus.ring.width | --p-fileinput-dropzone-focus-ring-width | Focus ring width of the dropzone |
503
+ | fileinput.dropzone.focus.ring.style | --p-fileinput-dropzone-focus-ring-style | Focus ring style of the dropzone |
504
+ | fileinput.dropzone.focus.ring.color | --p-fileinput-dropzone-focus-ring-color | Focus ring color of the dropzone |
505
+ | fileinput.dropzone.focus.ring.offset | --p-fileinput-dropzone-focus-ring-offset | Focus ring offset of the dropzone |
506
+ | fileinput.dropzone.focus.ring.shadow | --p-fileinput-dropzone-focus-ring-shadow | Focus ring shadow of the dropzone |
507
+ | fileinput.dropzone.sm.padding | --p-fileinput-dropzone-sm-padding | Padding of the small size |
508
+ | fileinput.dropzone.sm.font.size | --p-fileinput-dropzone-sm-font-size | Font size of the small size |
509
+ | fileinput.dropzone.lg.padding | --p-fileinput-dropzone-lg-padding | Padding of the large size |
510
+ | fileinput.dropzone.lg.font.size | --p-fileinput-dropzone-lg-font-size | Font size of the large size |
511
+ | fileinput.icon.color | --p-fileinput-icon-color | Color of the dropzone icon |
512
+ | fileinput.icon.size | --p-fileinput-icon-size | Size of the dropzone icon |
513
+ | fileinput.hint.color | --p-fileinput-hint-color | Color of the hint |
514
+ | fileinput.hint.font.size | --p-fileinput-hint-font-size | Font size of the hint |
515
+ | fileinput.list.border.color | --p-fileinput-list-border-color | Border color of the file list |
516
+ | fileinput.list.border.radius | --p-fileinput-list-border-radius | Border radius of the file list |
517
+ | fileinput.item.padding | --p-fileinput-item-padding | Padding of a file row |
518
+ | fileinput.item.gap | --p-fileinput-item-gap | Gap inside a file row |
519
+ | fileinput.item.border.color | --p-fileinput-item-border-color | Separator color between rows |
520
+ | fileinput.item.error.background | --p-fileinput-item-error-background | Background of a row in error |
521
+ | fileinput.thumbnail.size | --p-fileinput-thumbnail-size | Size of a thumbnail |
522
+ | fileinput.thumbnail.border.radius | --p-fileinput-thumbnail-border-radius | Border radius of a thumbnail |
523
+ | fileinput.thumbnail.background | --p-fileinput-thumbnail-background | Background of a thumbnail |
524
+ | fileinput.thumbnail.color | --p-fileinput-thumbnail-color | Color of the file extension shown in a thumbnail |
525
+ | fileinput.meta.color | --p-fileinput-meta-color | Color of the size and status line |
526
+ | fileinput.meta.font.size | --p-fileinput-meta-font-size | Font size of the size and status line |
527
+ | fileinput.meta.gap | --p-fileinput-meta-gap | Gap inside the size and status line |
528
+ | fileinput.progress.height | --p-fileinput-progress-height | Height of a progress bar |
529
+ | fileinput.progress.border.radius | --p-fileinput-progress-border-radius | Border radius of a progress bar |
530
+ | fileinput.progress.background | --p-fileinput-progress-background | Track color of a progress bar |
531
+ | fileinput.progress.value.background | --p-fileinput-progress-value-background | Value color of a progress bar |
532
+ | fileinput.status.success.color | --p-fileinput-status-success-color | Color of the uploaded status |
533
+ | fileinput.status.error.color | --p-fileinput-status-error-color | Color of error messages |
534
+ | fileinput.action.size | --p-fileinput-action-size | Size of a row action button |
535
+ | fileinput.action.border.radius | --p-fileinput-action-border-radius | Border radius of a row action button |
536
+ | fileinput.action.color | --p-fileinput-action-color | Color of a row action button |
537
+ | fileinput.action.hover.color | --p-fileinput-action-hover-color | Color of a hovered row action button |
538
+ | fileinput.action.hover.background | --p-fileinput-action-hover-background | Background of a hovered row action button |
539
+ | fileinput.action.focus.ring.width | --p-fileinput-action-focus-ring-width | Focus ring width of the action |
540
+ | fileinput.action.focus.ring.style | --p-fileinput-action-focus-ring-style | Focus ring style of the action |
541
+ | fileinput.action.focus.ring.color | --p-fileinput-action-focus-ring-color | Focus ring color of the action |
542
+ | fileinput.action.focus.ring.offset | --p-fileinput-action-focus-ring-offset | Focus ring offset of the action |
543
+ | fileinput.action.focus.ring.shadow | --p-fileinput-action-focus-ring-shadow | Focus ring shadow of the action |
544
+ | fileinput.summary.gap | --p-fileinput-summary-gap | Gap inside the upload summary |
545
+ | fileinput.summary.color | --p-fileinput-summary-color | Color of the upload summary |
546
+ | fileinput.summary.font.size | --p-fileinput-summary-font-size | Font size of the upload summary |
547
+ | fileinput.grid.gap | --p-fileinput-grid-gap | Gap between image tiles |
548
+ | fileinput.grid.item.min.width | --p-fileinput-grid-item-min-width | Minimum width of an image tile |
549
+ | fileinput.tile.border.radius | --p-fileinput-tile-border-radius | Border radius of an image tile |
550
+ | fileinput.tile.border.color | --p-fileinput-tile-border-color | Border color of an image tile |
551
+ | fileinput.tile.error.border.color | --p-fileinput-tile-error-border-color | Border color of an image tile in error |
552
+ | fileinput.tile.background | --p-fileinput-tile-background | Background of an image tile |
553
+ | fileinput.tile.overlay.background | --p-fileinput-tile-overlay-background | Background of the progress overlay |
554
+ | fileinput.tile.overlay.color | --p-fileinput-tile-overlay-color | Text color of the overlays |
555
+ | fileinput.tile.error.overlay.background | --p-fileinput-tile-error-overlay-background | Background of the error overlay |
556
+ | fileinput.tile.action.background | --p-fileinput-tile-action-background | Background of the tile action buttons and badge |
557
+ | fileinput.tile.action.color | --p-fileinput-tile-action-color | Color of the tile action buttons and badge |
558
+ | fileinput.avatar.size | --p-fileinput-avatar-size | Size of the avatar |
559
+ | fileinput.avatar.background | --p-fileinput-avatar-background | Background of the avatar |
560
+ | fileinput.avatar.border.color | --p-fileinput-avatar-border-color | Border color of the avatar |
561
+ | fileinput.avatar.color | --p-fileinput-avatar-color | Icon color of an empty avatar |
562
+ | fileinput.avatar.square.border.radius | --p-fileinput-avatar-square-border-radius | Border radius of the square avatar |
563
+ | fileinput.avatar.overlay.background | --p-fileinput-avatar-overlay-background | Background of the avatar overlay |
564
+ | fileinput.avatar.overlay.color | --p-fileinput-avatar-overlay-color | Text color of the avatar overlay |
565
+