@exhaustive-ui/mcp 22.2.0 → 22.4.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.
- package/data/components/autocomplete.md +41 -41
- package/data/components/avatar.md +8 -4
- package/data/components/badge.md +6 -6
- package/data/components/blockui.md +3 -3
- package/data/components/button.md +2 -2
- package/data/components/cascadeselect.md +28 -28
- package/data/components/checkbox.md +1 -1
- package/data/components/colorpicker.md +9 -9
- package/data/components/confirmdialog.md +9 -9
- package/data/components/confirmpopup.md +5 -5
- package/data/components/contextmenu.md +6 -6
- package/data/components/dataview.md +14 -14
- package/data/components/datepicker.md +53 -52
- package/data/components/dialog.md +14 -14
- package/data/components/dock.md +1 -1
- package/data/components/editor.md +1 -1
- package/data/components/fileinput.md +18 -18
- package/data/components/fileupload.md +10 -10
- package/data/components/floatlabel.md +26 -26
- package/data/components/focustrap.md +8 -8
- package/data/components/galleria.md +8 -8
- package/data/components/iconfield.md +40 -40
- package/data/components/iftalabel.md +18 -18
- package/data/components/imagecompare.md +4 -4
- package/data/components/inputgroup.md +73 -73
- package/data/components/inputmask.md +9 -9
- package/data/components/inputnumber.md +46 -46
- package/data/components/inputotp.md +13 -13
- package/data/components/inputtext.md +8 -8
- package/data/components/megamenu.md +6 -6
- package/data/components/message.md +1 -1
- package/data/components/metergroup.md +8 -8
- package/data/components/multiselect.md +34 -34
- package/data/components/orderlist.md +10 -10
- package/data/components/organizationchart.md +8 -4
- package/data/components/paginator.md +2 -2
- package/data/components/panelmenu.md +7 -7
- package/data/components/password.md +8 -8
- package/data/components/picklist.md +10 -10
- package/data/components/popover.md +6 -6
- package/data/components/progressbar.md +5 -5
- package/data/components/progressspinner.md +4 -2
- package/data/components/radiobutton.md +15 -15
- package/data/components/scrollpanel.md +4 -4
- package/data/components/scrolltop.md +2 -2
- package/data/components/select.md +24 -24
- package/data/components/selectbutton.md +14 -14
- package/data/components/slider.md +1 -1
- package/data/components/speeddial.md +18 -18
- package/data/components/splitbutton.md +57 -57
- package/data/components/splitter.md +6 -0
- package/data/components/stepper.md +10 -10
- package/data/components/table.md +174 -140
- package/data/components/tabs.md +64 -64
- package/data/components/textarea.md +8 -8
- package/data/components/tieredmenu.md +6 -6
- package/data/components/toast.md +2 -2
- package/data/components/togglebutton.md +11 -11
- package/data/components/toggleswitch.md +9 -9
- package/data/components/toolbar.md +4 -4
- package/data/components/tree.md +2 -2
- package/data/components/treeselect.md +33 -33
- package/data/components/treetable.md +136 -105
- package/data/components.json +776 -441
- package/data/llms-full.txt +1234 -1117
- package/data/llms.txt +1 -0
- package/data/manifest.json +920 -258
- package/data/pages/naming.md +27 -0
- package/data/pages/tailwind.md +1 -1
- package/data/snapshot.json +3 -3
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
18
18
|
@Component({
|
|
19
19
|
template: `
|
|
20
20
|
<div class="card flex justify-center">
|
|
21
|
-
<p-
|
|
21
|
+
<p-date-picker [(ngModel)]="date" />
|
|
22
22
|
</div>
|
|
23
23
|
`,
|
|
24
24
|
standalone: true,
|
|
@@ -42,8 +42,8 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
42
42
|
@Component({
|
|
43
43
|
template: `
|
|
44
44
|
<div class="card flex justify-center gap-4 flex-wrap">
|
|
45
|
-
<p-
|
|
46
|
-
<p-
|
|
45
|
+
<p-date-picker [(ngModel)]="date" [showButtonBar]="true" placeholder="Basic" />
|
|
46
|
+
<p-date-picker [(ngModel)]="dates" [showButtonBar]="true" placeholder="Customized" selectionMode="range" [readonlyInput]="true">
|
|
47
47
|
<ng-template #buttonbar let-todayCallback="todayCallback" let-clearCallback="clearCallback">
|
|
48
48
|
<div class="flex justify-between w-full">
|
|
49
49
|
<div class="flex gap-2">
|
|
@@ -56,7 +56,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
56
56
|
</div>
|
|
57
57
|
</div>
|
|
58
58
|
</ng-template>
|
|
59
|
-
</p-
|
|
59
|
+
</p-date-picker>
|
|
60
60
|
</div>
|
|
61
61
|
`,
|
|
62
62
|
standalone: true,
|
|
@@ -80,7 +80,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
80
80
|
@Component({
|
|
81
81
|
template: `
|
|
82
82
|
<div class="card flex justify-center">
|
|
83
|
-
<p-
|
|
83
|
+
<p-date-picker [(ngModel)]="date" [showClear]="true" inputStyleClass="w-56" />
|
|
84
84
|
</div>
|
|
85
85
|
`,
|
|
86
86
|
standalone: true,
|
|
@@ -103,12 +103,12 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
103
103
|
@Component({
|
|
104
104
|
template: `
|
|
105
105
|
<div class="card flex justify-center">
|
|
106
|
-
<p-
|
|
106
|
+
<p-date-picker [(ngModel)]="date">
|
|
107
107
|
<ng-template #date let-date>
|
|
108
108
|
<strong *ngIf="date.day > 10 && date.day < 15; else elseBlock" style="text-decoration: line-through">{{ date.day }}</strong>
|
|
109
109
|
<ng-template #elseBlock>{{ date.day }}</ng-template>
|
|
110
110
|
</ng-template>
|
|
111
|
-
</p-
|
|
111
|
+
</p-date-picker>
|
|
112
112
|
</div>
|
|
113
113
|
`,
|
|
114
114
|
standalone: true,
|
|
@@ -131,7 +131,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
131
131
|
@Component({
|
|
132
132
|
template: `
|
|
133
133
|
<div class="card flex justify-center">
|
|
134
|
-
<p-
|
|
134
|
+
<p-date-picker [(ngModel)]="date" [disabled]="true" />
|
|
135
135
|
</div>
|
|
136
136
|
`,
|
|
137
137
|
standalone: true,
|
|
@@ -249,7 +249,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
249
249
|
@Component({
|
|
250
250
|
template: `
|
|
251
251
|
<div class="card flex justify-center">
|
|
252
|
-
<p-
|
|
252
|
+
<p-date-picker [(ngModel)]="date" variant="filled" />
|
|
253
253
|
</div>
|
|
254
254
|
`,
|
|
255
255
|
standalone: true,
|
|
@@ -273,18 +273,18 @@ import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
|
273
273
|
@Component({
|
|
274
274
|
template: `
|
|
275
275
|
<div class="card flex flex-wrap justify-center items-end gap-4">
|
|
276
|
-
<p-
|
|
277
|
-
<p-
|
|
276
|
+
<p-float-label>
|
|
277
|
+
<p-date-picker [(ngModel)]="value1" inputId="over_label" showIcon iconDisplay="input" />
|
|
278
278
|
<label for="over_label">Over Label</label>
|
|
279
|
-
</p-
|
|
280
|
-
<p-
|
|
281
|
-
<p-
|
|
279
|
+
</p-float-label>
|
|
280
|
+
<p-float-label variant="in">
|
|
281
|
+
<p-date-picker [(ngModel)]="value2" inputId="in_label" showIcon iconDisplay="input" />
|
|
282
282
|
<label for="in_label">In Label</label>
|
|
283
|
-
</p-
|
|
284
|
-
<p-
|
|
285
|
-
<p-
|
|
283
|
+
</p-float-label>
|
|
284
|
+
<p-float-label variant="on">
|
|
285
|
+
<p-date-picker [(ngModel)]="value3" inputId="on_label" showIcon iconDisplay="input" />
|
|
286
286
|
<label for="on_label">On Label</label>
|
|
287
|
-
</p-
|
|
287
|
+
</p-float-label>
|
|
288
288
|
</div>
|
|
289
289
|
`,
|
|
290
290
|
standalone: true,
|
|
@@ -309,7 +309,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
309
309
|
@Component({
|
|
310
310
|
template: `
|
|
311
311
|
<div class="card">
|
|
312
|
-
<p-
|
|
312
|
+
<p-date-picker [(ngModel)]="date" fluid />
|
|
313
313
|
</div>
|
|
314
314
|
`,
|
|
315
315
|
standalone: true,
|
|
@@ -332,7 +332,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
332
332
|
@Component({
|
|
333
333
|
template: `
|
|
334
334
|
<div class="card flex justify-center">
|
|
335
|
-
<p-
|
|
335
|
+
<p-date-picker [(ngModel)]="date" dateFormat="dd.mm.yy" />
|
|
336
336
|
</div>
|
|
337
337
|
`,
|
|
338
338
|
standalone: true,
|
|
@@ -357,19 +357,19 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
357
357
|
<p-fluid class="card flex flex-wrap gap-4">
|
|
358
358
|
<div class="flex-auto">
|
|
359
359
|
<label for="buttondisplay" class="font-bold block mb-2"> Button </label>
|
|
360
|
-
<p-
|
|
360
|
+
<p-date-picker [(ngModel)]="date1" [showIcon]="true" inputId="buttondisplay" [showOnFocus]="false" />
|
|
361
361
|
</div>
|
|
362
362
|
<div class="flex-auto">
|
|
363
363
|
<label for="icondisplay" class="font-bold block mb-2"> Default Icon </label>
|
|
364
|
-
<p-
|
|
364
|
+
<p-date-picker [(ngModel)]="date2" [iconDisplay]="'input'" [showIcon]="true" inputId="icondisplay" />
|
|
365
365
|
</div>
|
|
366
366
|
<div class="flex-auto">
|
|
367
367
|
<label for="templatedisplay" class="font-bold block mb-2"> Custom Icon </label>
|
|
368
|
-
<p-
|
|
368
|
+
<p-date-picker [(ngModel)]="date3" [iconDisplay]="'input'" [showIcon]="true" [timeOnly]="true" inputId="templatedisplay">
|
|
369
369
|
<ng-template #inputicon let-clickCallBack="clickCallBack">
|
|
370
370
|
<i class="pi pi-clock" (click)="clickCallBack($event)"></i>
|
|
371
371
|
</ng-template>
|
|
372
|
-
</p-
|
|
372
|
+
</p-date-picker>
|
|
373
373
|
</div>
|
|
374
374
|
</p-fluid>
|
|
375
375
|
`,
|
|
@@ -396,10 +396,10 @@ import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
|
396
396
|
@Component({
|
|
397
397
|
template: `
|
|
398
398
|
<div class="card flex justify-center">
|
|
399
|
-
<p-
|
|
400
|
-
<p-
|
|
399
|
+
<p-ifta-label>
|
|
400
|
+
<p-date-picker [(ngModel)]="value" inputId="date" showIcon iconDisplay="input" />
|
|
401
401
|
<label for="date">Date</label>
|
|
402
|
-
</p-
|
|
402
|
+
</p-ifta-label>
|
|
403
403
|
</div>
|
|
404
404
|
`,
|
|
405
405
|
standalone: true,
|
|
@@ -422,7 +422,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
422
422
|
@Component({
|
|
423
423
|
template: `
|
|
424
424
|
<div class="card flex justify-center">
|
|
425
|
-
<p-
|
|
425
|
+
<p-date-picker class="max-w-full" [(ngModel)]="date" [inline]="true" [showWeek]="true" />
|
|
426
426
|
</div>
|
|
427
427
|
`,
|
|
428
428
|
standalone: true,
|
|
@@ -445,8 +445,8 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
445
445
|
@Component({
|
|
446
446
|
template: `
|
|
447
447
|
<div class="card flex flex-wrap justify-center gap-4">
|
|
448
|
-
<p-
|
|
449
|
-
<p-
|
|
448
|
+
<p-date-picker [(ngModel)]="date1" [invalid]="!date1" placeholder="Date" />
|
|
449
|
+
<p-date-picker [(ngModel)]="date2" [invalid]="!date2" variant="filled" placeholder="Date" />
|
|
450
450
|
</div>
|
|
451
451
|
`,
|
|
452
452
|
standalone: true,
|
|
@@ -475,7 +475,7 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
475
475
|
@Component({
|
|
476
476
|
template: `
|
|
477
477
|
<div class="card flex justify-center">
|
|
478
|
-
<p-
|
|
478
|
+
<p-date-picker [(ngModel)]="date" dateFormat="dd/mm/yy" placeholder="dd/mm/yyyy" pInputMask="99/99/9999" />
|
|
479
479
|
</div>
|
|
480
480
|
`,
|
|
481
481
|
standalone: true,
|
|
@@ -532,7 +532,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
532
532
|
@Component({
|
|
533
533
|
template: `
|
|
534
534
|
<div class="card flex justify-center">
|
|
535
|
-
<p-
|
|
535
|
+
<p-date-picker [(ngModel)]="date" [minDate]="minDate" [maxDate]="maxDate" [readonlyInput]="true" />
|
|
536
536
|
</div>
|
|
537
537
|
`,
|
|
538
538
|
standalone: true,
|
|
@@ -573,7 +573,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
573
573
|
@Component({
|
|
574
574
|
template: `
|
|
575
575
|
<div class="card flex justify-center">
|
|
576
|
-
<p-
|
|
576
|
+
<p-date-picker [(ngModel)]="date" view="month" dateFormat="mm/yy" [readonlyInput]="true" />
|
|
577
577
|
</div>
|
|
578
578
|
`,
|
|
579
579
|
standalone: true,
|
|
@@ -596,7 +596,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
596
596
|
@Component({
|
|
597
597
|
template: `
|
|
598
598
|
<div class="card flex justify-center">
|
|
599
|
-
<p-
|
|
599
|
+
<p-date-picker [(ngModel)]="dates" selectionMode="multiple" [readonlyInput]="true" />
|
|
600
600
|
</div>
|
|
601
601
|
`,
|
|
602
602
|
standalone: true,
|
|
@@ -619,7 +619,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
619
619
|
@Component({
|
|
620
620
|
template: `
|
|
621
621
|
<div class="card flex justify-center">
|
|
622
|
-
<p-
|
|
622
|
+
<p-date-picker [(ngModel)]="date" [numberOfMonths]="2" />
|
|
623
623
|
</div>
|
|
624
624
|
`,
|
|
625
625
|
standalone: true,
|
|
@@ -642,7 +642,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
642
642
|
@Component({
|
|
643
643
|
template: `
|
|
644
644
|
<div class="card flex justify-center">
|
|
645
|
-
<p-
|
|
645
|
+
<p-date-picker [(ngModel)]="rangeDates" selectionMode="range" [readonlyInput]="true" />
|
|
646
646
|
</div>
|
|
647
647
|
`,
|
|
648
648
|
standalone: true,
|
|
@@ -672,7 +672,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
672
672
|
<div class="card flex justify-center">
|
|
673
673
|
<form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4">
|
|
674
674
|
<div class="flex flex-col gap-1">
|
|
675
|
-
<p-
|
|
675
|
+
<p-date-picker formControlName="selectedDate" [invalid]="isInvalid('selectedDate')" />
|
|
676
676
|
@if (isInvalid('selectedDate')) {
|
|
677
677
|
<p-message severity="error" size="small" variant="simple">Date is required.</p-message>
|
|
678
678
|
}
|
|
@@ -730,7 +730,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
730
730
|
<div class="card flex justify-center">
|
|
731
731
|
<form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4">
|
|
732
732
|
<div class="flex flex-col gap-1">
|
|
733
|
-
<p-
|
|
733
|
+
<p-date-picker [formField]="exampleForm.selectedDate" />
|
|
734
734
|
@let selectedDate = exampleForm.selectedDate();
|
|
735
735
|
@if (selectedDate.invalid() && selectedDate.touched()) {
|
|
736
736
|
<p-message severity="error" size="small" variant="simple">Date is required.</p-message>
|
|
@@ -772,9 +772,9 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
772
772
|
@Component({
|
|
773
773
|
template: `
|
|
774
774
|
<div class="card flex flex-col items-center gap-4">
|
|
775
|
-
<p-
|
|
776
|
-
<p-
|
|
777
|
-
<p-
|
|
775
|
+
<p-date-picker [(ngModel)]="value1" size="small" placeholder="Small" showIcon iconDisplay="input" />
|
|
776
|
+
<p-date-picker [(ngModel)]="value2" placeholder="Normal" showIcon iconDisplay="input" />
|
|
777
|
+
<p-date-picker [(ngModel)]="value3" size="large" placeholder="Large" showIcon iconDisplay="input" />
|
|
778
778
|
</div>
|
|
779
779
|
`,
|
|
780
780
|
standalone: true,
|
|
@@ -789,23 +789,24 @@ export class DatepickerSizesDemo {
|
|
|
789
789
|
|
|
790
790
|
## template-doc
|
|
791
791
|
|
|
792
|
-
|
|
792
|
+
DatePicker accepts custom content using header and footer templates.
|
|
793
793
|
|
|
794
794
|
```typescript
|
|
795
795
|
import { Component } from '@angular/core';
|
|
796
796
|
import { FormsModule } from '@angular/forms';
|
|
797
|
+
import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
797
798
|
|
|
798
799
|
@Component({
|
|
799
800
|
template: `
|
|
800
801
|
<div class="card flex justify-center">
|
|
801
|
-
<p-
|
|
802
|
+
<p-date-picker [(ngModel)]="date">
|
|
802
803
|
<ng-template #header>Header</ng-template>
|
|
803
804
|
<ng-template #footer>Footer</ng-template>
|
|
804
|
-
</p-
|
|
805
|
+
</p-date-picker>
|
|
805
806
|
</div>
|
|
806
807
|
`,
|
|
807
808
|
standalone: true,
|
|
808
|
-
imports: [FormsModule]
|
|
809
|
+
imports: [DatePickerModule, FormsModule]
|
|
809
810
|
})
|
|
810
811
|
export class DatepickerTemplateDemo {
|
|
811
812
|
date: Date[] | undefined;
|
|
@@ -829,7 +830,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
829
830
|
<div class="card flex justify-center">
|
|
830
831
|
<form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex flex-col gap-4">
|
|
831
832
|
<div class="flex flex-col gap-1">
|
|
832
|
-
<p-
|
|
833
|
+
<p-date-picker name="date" [invalid]="dateModel.invalid && (dateModel.touched || exampleForm.submitted)" #dateModel="ngModel" [(ngModel)]="date" required />
|
|
833
834
|
@if (dateModel.invalid && (dateModel.touched || exampleForm.submitted)) {
|
|
834
835
|
<p-message severity="error" size="small" variant="simple">Date is required.</p-message>
|
|
835
836
|
}
|
|
@@ -934,15 +935,15 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
934
935
|
<p-fluid class="card flex flex-wrap gap-4">
|
|
935
936
|
<div class="flex-auto">
|
|
936
937
|
<label for="calendar-12h" class="font-bold block mb-2"> 12h Format </label>
|
|
937
|
-
<p-
|
|
938
|
+
<p-date-picker inputId="calendar-12h" [(ngModel)]="datetime12h" [showTime]="true" [hourFormat]="12" />
|
|
938
939
|
</div>
|
|
939
940
|
<div class="flex-auto">
|
|
940
941
|
<label for="calendar-24h" class="font-bold block mb-2"> 24h Format </label>
|
|
941
|
-
<p-
|
|
942
|
+
<p-date-picker inputId="calendar-24h" [(ngModel)]="datetime24h" [showTime]="true" [hourFormat]="24" />
|
|
942
943
|
</div>
|
|
943
944
|
<div class="flex-auto">
|
|
944
945
|
<label for="calendar-timeonly" class="font-bold block mb-2"> Time Only </label>
|
|
945
|
-
<p-
|
|
946
|
+
<p-date-picker inputId="calendar-timeonly" [(ngModel)]="time" [timeOnly]="true" />
|
|
946
947
|
</div>
|
|
947
948
|
</p-fluid>
|
|
948
949
|
`,
|
|
@@ -968,7 +969,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
968
969
|
@Component({
|
|
969
970
|
template: `
|
|
970
971
|
<div class="card flex justify-center">
|
|
971
|
-
<p-
|
|
972
|
+
<p-date-picker [(ngModel)]="date" [touchUI]="true" [readonlyInput]="true" />
|
|
972
973
|
</div>
|
|
973
974
|
`,
|
|
974
975
|
standalone: true,
|
|
@@ -991,7 +992,7 @@ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
|
|
|
991
992
|
@Component({
|
|
992
993
|
template: `
|
|
993
994
|
<div class="card flex justify-center">
|
|
994
|
-
<p-
|
|
995
|
+
<p-date-picker [(ngModel)]="date" view="year" dateFormat="yy" />
|
|
995
996
|
</div>
|
|
996
997
|
`,
|
|
997
998
|
standalone: true,
|
|
@@ -1110,7 +1111,7 @@ DatePicker is a form component to work with dates.
|
|
|
1110
1111
|
| date | TemplateRef<DatePickerDateTemplateContext> | Custom template for date cells. |
|
|
1111
1112
|
| header | TemplateRef<void> | Custom template for header section. |
|
|
1112
1113
|
| footer | TemplateRef<void> | Custom template for footer section. |
|
|
1113
|
-
|
|
|
1114
|
+
| disabledDate | TemplateRef<DatePickerDisabledDateTemplateContext> | Custom template for disabled date cells. |
|
|
1114
1115
|
| decade | TemplateRef<DatePickerDecadeTemplateContext> | Custom template for decade view. |
|
|
1115
1116
|
| previousicon | TemplateRef<void> | Custom template for previous month icon. |
|
|
1116
1117
|
| nexticon | TemplateRef<void> | Custom template for next month icon. |
|
|
@@ -538,6 +538,13 @@ Dialog is a container to display content in an overlay window.
|
|
|
538
538
|
| position | InputSignal<"top" \| "bottom" \| "center" \| "left" \| "right" \| "topleft" \| "bottomleft" \| "topright" \| "bottomright"> | ... | Position of the dialog. |
|
|
539
539
|
| ariaLabelledBy | InputSignal<string> | ... | Identifier of the element that labels the dialog. Defaults to the id of the generated header title. |
|
|
540
540
|
| appendTo | InputSignal<any> | 'self' | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
|
|
541
|
+
| headerTemplate | InputSignal<TemplateRef<DialogHeaderTemplateContext>> | ... | Header template passed as an input, for a template defined outside the dialog. A <ng-template #header> inside the dialog takes precedence. |
|
|
542
|
+
| contentTemplate | InputSignal<TemplateRef<void>> | ... | Content template passed as an input, for a template defined outside the dialog. A <ng-template #content> inside the dialog takes precedence. |
|
|
543
|
+
| footerTemplate | InputSignal<TemplateRef<void>> | ... | Footer template passed as an input, for a template defined outside the dialog. A <ng-template #footer> inside the dialog takes precedence. |
|
|
544
|
+
| closeIconTemplate | InputSignal<TemplateRef<void>> | ... | Close icon template passed as an input, for a template defined outside the dialog. A <ng-template #closeicon> inside the dialog takes precedence. |
|
|
545
|
+
| maximizeIconTemplate | InputSignal<TemplateRef<void>> | ... | Maximize icon template passed as an input, for a template defined outside the dialog. A <ng-template #maximizeicon> inside the dialog takes precedence. |
|
|
546
|
+
| minimizeIconTemplate | InputSignal<TemplateRef<void>> | ... | Minimize icon template passed as an input, for a template defined outside the dialog. A <ng-template #minimizeicon> inside the dialog takes precedence. |
|
|
547
|
+
| headlessTemplate | InputSignal<TemplateRef<void>> | ... | Headless template passed as an input, for a template defined outside the dialog. A <ng-template #headless> inside the dialog takes precedence. |
|
|
541
548
|
|
|
542
549
|
### Emits
|
|
543
550
|
|
|
@@ -555,20 +562,13 @@ Dialog is a container to display content in an overlay window.
|
|
|
555
562
|
|
|
556
563
|
| Name | Type | Description |
|
|
557
564
|
|------|------|-------------|
|
|
558
|
-
| header |
|
|
559
|
-
| content |
|
|
560
|
-
| footer |
|
|
561
|
-
| closeicon |
|
|
562
|
-
| maximizeicon |
|
|
563
|
-
| minimizeicon |
|
|
564
|
-
| headless |
|
|
565
|
-
| _header | TemplateRef<void> | Custom header template. |
|
|
566
|
-
| _content | TemplateRef<void> | Custom content template. |
|
|
567
|
-
| _footer | TemplateRef<void> | Custom footer template. |
|
|
568
|
-
| _closeicon | TemplateRef<void> | Custom close icon template. |
|
|
569
|
-
| _maximizeicon | TemplateRef<void> | Custom maximize icon template. |
|
|
570
|
-
| _minimizeicon | TemplateRef<void> | Custom minimize icon template. |
|
|
571
|
-
| _headless | TemplateRef<void> | Custom headless template. |
|
|
565
|
+
| header | TemplateRef<DialogHeaderTemplateContext> | Custom header template. |
|
|
566
|
+
| content | TemplateRef<void> | Custom content template. |
|
|
567
|
+
| footer | TemplateRef<void> | Custom footer template. |
|
|
568
|
+
| closeicon | TemplateRef<void> | Custom close icon template. |
|
|
569
|
+
| maximizeicon | TemplateRef<void> | Custom maximize icon template. |
|
|
570
|
+
| minimizeicon | TemplateRef<void> | Custom minimize icon template. |
|
|
571
|
+
| headless | TemplateRef<void> | Custom headless template. |
|
|
572
572
|
|
|
573
573
|
## Pass Through Options
|
|
574
574
|
|
package/data/components/dock.md
CHANGED
|
@@ -380,7 +380,7 @@ import { MenuItem } from '@exhaustive-ui/core/api';
|
|
|
380
380
|
<div class="card">
|
|
381
381
|
<div class="flex flex-wrap gap-4 mb-8">
|
|
382
382
|
<div *ngFor="let pos of positionOptions" class="flex items-center">
|
|
383
|
-
<p-
|
|
383
|
+
<p-radio-button name="dock" [value]="pos.value" [label]="pos.label" [(ngModel)]="position" [inputId]="pos.label" />
|
|
384
384
|
<label [for]="pos.label" class="ml-2"> {{ pos.label }} </label>
|
|
385
385
|
</div>
|
|
386
386
|
</div>
|
|
@@ -277,7 +277,7 @@ Editor groups a collection of contents in tabs.
|
|
|
277
277
|
|
|
278
278
|
| Name | Type | Description |
|
|
279
279
|
|------|------|-------------|
|
|
280
|
-
| header | TemplateRef<
|
|
280
|
+
| header | TemplateRef<void> | Custom item template. |
|
|
281
281
|
|
|
282
282
|
## Pass Through Options
|
|
283
283
|
|
|
@@ -18,8 +18,8 @@ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
|
|
|
18
18
|
@Component({
|
|
19
19
|
template: `
|
|
20
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" />
|
|
21
|
+
<p-file-input variant="avatar" accept="image/*" capture="user" ariaLabel="Profile picture" [(ngModel)]="photo" />
|
|
22
|
+
<p-file-input variant="avatar" avatarShape="square" accept="image/*" ariaLabel="Company logo" [(ngModel)]="logo" />
|
|
23
23
|
</div>
|
|
24
24
|
`,
|
|
25
25
|
standalone: true,
|
|
@@ -43,7 +43,7 @@ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
|
|
|
43
43
|
@Component({
|
|
44
44
|
template: `
|
|
45
45
|
<div class="card">
|
|
46
|
-
<p-file [(ngModel)]="files" />
|
|
46
|
+
<p-file-input [(ngModel)]="files" />
|
|
47
47
|
</div>
|
|
48
48
|
`,
|
|
49
49
|
standalone: true,
|
|
@@ -65,7 +65,7 @@ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
|
|
|
65
65
|
@Component({
|
|
66
66
|
template: `
|
|
67
67
|
<div class="card">
|
|
68
|
-
<p-file disabled />
|
|
68
|
+
<p-file-input disabled />
|
|
69
69
|
</div>
|
|
70
70
|
`,
|
|
71
71
|
standalone: true,
|
|
@@ -88,7 +88,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
88
88
|
template: `
|
|
89
89
|
<p-toast />
|
|
90
90
|
<div class="card">
|
|
91
|
-
<p-file [existing]="attachments" (onRemoveExisting)="onRemoveExisting($event)" />
|
|
91
|
+
<p-file-input [existing]="attachments" (onRemoveExisting)="onRemoveExisting($event)" />
|
|
92
92
|
</div>
|
|
93
93
|
`,
|
|
94
94
|
standalone: true,
|
|
@@ -116,7 +116,7 @@ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
|
|
|
116
116
|
@Component({
|
|
117
117
|
template: `
|
|
118
118
|
<div class="card">
|
|
119
|
-
<p-file variant="images" accept="image/*" [maxFiles]="6" [maxFileSize]="5000000" [uploadHandler]="upload" [(ngModel)]="photos" />
|
|
119
|
+
<p-file-input variant="images" accept="image/*" [maxFiles]="6" [maxFileSize]="5000000" [uploadHandler]="upload" [(ngModel)]="photos" />
|
|
120
120
|
</div>
|
|
121
121
|
`,
|
|
122
122
|
standalone: true,
|
|
@@ -139,7 +139,7 @@ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
|
|
|
139
139
|
@Component({
|
|
140
140
|
template: `
|
|
141
141
|
<div class="card">
|
|
142
|
-
<p-file [invalid]="files.length === 0" (onSelect)="files = $event.items" />
|
|
142
|
+
<p-file-input [invalid]="files.length === 0" (onSelect)="files = $event.items" />
|
|
143
143
|
</div>
|
|
144
144
|
`,
|
|
145
145
|
standalone: true,
|
|
@@ -161,7 +161,7 @@ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
|
|
|
161
161
|
@Component({
|
|
162
162
|
template: `
|
|
163
163
|
<div class="card">
|
|
164
|
-
<p-file [labels]="labels" [maxFileSize]="2000000" hint="2 Mo maximum par fichier" />
|
|
164
|
+
<p-file-input [labels]="labels" [maxFileSize]="2000000" hint="2 Mo maximum par fichier" />
|
|
165
165
|
</div>
|
|
166
166
|
`,
|
|
167
167
|
standalone: true,
|
|
@@ -192,7 +192,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
192
192
|
<form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4">
|
|
193
193
|
<div class="flex flex-col gap-2">
|
|
194
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')" />
|
|
195
|
+
<p-file-input formControlName="documents" ariaLabelledBy="documents-label" size="small" [maxFiles]="3" [invalid]="isInvalid('documents')" />
|
|
196
196
|
@if (isInvalid('documents')) {
|
|
197
197
|
<p-message severity="error" size="small" variant="simple">At least one document is required.</p-message>
|
|
198
198
|
}
|
|
@@ -251,7 +251,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
251
251
|
<form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4">
|
|
252
252
|
<div class="flex flex-col gap-2">
|
|
253
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" />
|
|
254
|
+
<p-file-input [formField]="listingForm.photos" variant="images" accept="image/*" [maxFiles]="4" ariaLabelledBy="photos-label" />
|
|
255
255
|
@let photos = listingForm.photos();
|
|
256
256
|
@if (photos.invalid() && photos.touched()) {
|
|
257
257
|
<p-message severity="error" size="small" variant="simple">Add at least one photo.</p-message>
|
|
@@ -292,9 +292,9 @@ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
|
|
|
292
292
|
@Component({
|
|
293
293
|
template: `
|
|
294
294
|
<div class="card flex flex-col gap-4">
|
|
295
|
-
<p-file size="small" />
|
|
296
|
-
<p-file />
|
|
297
|
-
<p-file size="large" />
|
|
295
|
+
<p-file-input size="small" />
|
|
296
|
+
<p-file-input />
|
|
297
|
+
<p-file-input size="large" />
|
|
298
298
|
</div>
|
|
299
299
|
`,
|
|
300
300
|
standalone: true,
|
|
@@ -315,7 +315,7 @@ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
|
|
|
315
315
|
@Component({
|
|
316
316
|
template: `
|
|
317
317
|
<div class="card">
|
|
318
|
-
<p-file accept=".csv,.xlsx">
|
|
318
|
+
<p-file-input accept=".csv,.xlsx">
|
|
319
319
|
<ng-template #dropzone let-active="active">
|
|
320
320
|
<i class="pi pi-file-excel !text-3xl text-muted-color"></i>
|
|
321
321
|
<span class="font-semibold">{{ active ? 'Release to import' : 'Import a spreadsheet' }}</span>
|
|
@@ -326,7 +326,7 @@ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
|
|
|
326
326
|
<span class="flex-1 truncate">{{ item.name }}</span>
|
|
327
327
|
<p-button icon="pi pi-times" severity="secondary" text rounded [ariaLabel]="'Remove ' + item.name" (onClick)="remove()" />
|
|
328
328
|
</ng-template>
|
|
329
|
-
</p-file>
|
|
329
|
+
</p-file-input>
|
|
330
330
|
</div>
|
|
331
331
|
`,
|
|
332
332
|
standalone: true,
|
|
@@ -355,7 +355,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
355
355
|
<form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex flex-col gap-4">
|
|
356
356
|
<div class="flex flex-col gap-2">
|
|
357
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 />
|
|
358
|
+
<p-file-input #model="ngModel" [(ngModel)]="receipts" name="receipts" ariaLabelledBy="receipts-label" size="small" accept="image/*,.pdf" [invalid]="model.invalid && exampleForm.submitted" required />
|
|
359
359
|
@if (model.invalid && exampleForm.submitted) {
|
|
360
360
|
<p-message severity="error" size="small" variant="simple">At least one receipt is required.</p-message>
|
|
361
361
|
}
|
|
@@ -394,7 +394,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
394
394
|
template: `
|
|
395
395
|
<p-toast />
|
|
396
396
|
<div class="card">
|
|
397
|
-
<p-file [uploadHandler]="upload" (onUpload)="onUpload($event)" />
|
|
397
|
+
<p-file-input [uploadHandler]="upload" (onUpload)="onUpload($event)" />
|
|
398
398
|
</div>
|
|
399
399
|
`,
|
|
400
400
|
standalone: true,
|
|
@@ -422,7 +422,7 @@ import { FileInputModule } from '@exhaustive-ui/core/fileinput';
|
|
|
422
422
|
@Component({
|
|
423
423
|
template: `
|
|
424
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" />
|
|
425
|
+
<p-file-input 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
426
|
</div>
|
|
427
427
|
`,
|
|
428
428
|
standalone: true,
|
|
@@ -25,11 +25,11 @@ interface UploadEvent {
|
|
|
25
25
|
template: `
|
|
26
26
|
<div class="card">
|
|
27
27
|
<p-toast />
|
|
28
|
-
<p-
|
|
28
|
+
<p-file-upload name="demo[]" url="https://exhaustive-ui.com/api/upload" (onUpload)="onUpload($event)" [multiple]="true" accept="image/*" maxFileSize="1000000" mode="advanced">
|
|
29
29
|
<ng-template #empty>
|
|
30
30
|
<div>Drag and drop files to here to upload.</div>
|
|
31
31
|
</ng-template>
|
|
32
|
-
</p-
|
|
32
|
+
</p-file-upload>
|
|
33
33
|
</div>
|
|
34
34
|
`,
|
|
35
35
|
standalone: true,
|
|
@@ -61,7 +61,7 @@ interface UploadEvent {
|
|
|
61
61
|
template: `
|
|
62
62
|
<div class="card flex justify-center">
|
|
63
63
|
<p-toast />
|
|
64
|
-
<p-
|
|
64
|
+
<p-file-upload mode="basic" name="demo[]" chooseIcon="pi pi-upload" url="https://exhaustive-ui.com/api/upload" accept="image/*" maxFileSize="1000000" (onUpload)="onBasicUploadAuto($event)" [auto]="true" chooseLabel="Browse" />
|
|
65
65
|
</div>
|
|
66
66
|
`,
|
|
67
67
|
standalone: true,
|
|
@@ -93,7 +93,7 @@ interface UploadEvent {
|
|
|
93
93
|
template: `
|
|
94
94
|
<p-toast />
|
|
95
95
|
<div class="card flex flex-wrap gap-6 items-center justify-between">
|
|
96
|
-
<p-
|
|
96
|
+
<p-file-upload #fu mode="basic" chooseLabel="Choose" chooseIcon="pi pi-upload" name="demo[]" url="https://exhaustive-ui.com/api/upload" accept="image/*" maxFileSize="1000000" (onUpload)="onUpload($event)" />
|
|
97
97
|
<p-button label="Upload" (onClick)="fu.upload()" severity="secondary" />
|
|
98
98
|
</div>
|
|
99
99
|
`,
|
|
@@ -120,7 +120,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
120
120
|
template: `
|
|
121
121
|
<div class="card flex justify-center">
|
|
122
122
|
<p-toast></p-toast>
|
|
123
|
-
<p-
|
|
123
|
+
<p-file-upload name="myfile[]" [customUpload]="true" (uploadHandler)="customUploader($event)"></p-file-upload>
|
|
124
124
|
</div>
|
|
125
125
|
`,
|
|
126
126
|
standalone: true,
|
|
@@ -155,7 +155,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
155
155
|
>
|
|
156
156
|
<div class="card">
|
|
157
157
|
<p-toast />
|
|
158
|
-
<p-
|
|
158
|
+
<p-file-upload name="myfile[]" url="https://exhaustive-ui.com/api/upload" [multiple]="true" accept="image/*" maxFileSize="1000000" (onUpload)="onTemplatedUpload()" (onSelect)="onSelectedFiles($event)">
|
|
159
159
|
<ng-template #header let-files let-chooseCallback="chooseCallback" let-clearCallback="clearCallback" let-uploadCallback="uploadCallback">
|
|
160
160
|
<div class="flex flex-wrap justify-between items-center flex-1 gap-4">
|
|
161
161
|
<div class="flex gap-2">
|
|
@@ -163,9 +163,9 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
163
163
|
<p-button (onClick)="uploadEvent(uploadCallback)" icon="pi pi-cloud-upload" [rounded]="true" [outlined]="true" severity="success" [disabled]="!files || files.length === 0" />
|
|
164
164
|
<p-button (onClick)="clearCallback()" icon="pi pi-times" [rounded]="true" [outlined]="true" severity="danger" [disabled]="!files || files.length === 0" />
|
|
165
165
|
</div>
|
|
166
|
-
<p-
|
|
166
|
+
<p-progress-bar [value]="totalSizePercent" [showValue]="false" class="w-full" class="md:w-20rem h-1 w-full md:ml-auto">
|
|
167
167
|
<span class="whitespace-nowrap">{{ totalSize }}B / 1Mb</span>
|
|
168
|
-
</p-
|
|
168
|
+
</p-progress-bar>
|
|
169
169
|
</div>
|
|
170
170
|
</ng-template>
|
|
171
171
|
<ng-template #content let-files let-uploadedFiles="uploadedFiles" let-removeFileCallback="removeFileCallback" let-removeUploadedFileCallback="removeUploadedFileCallback">
|
|
@@ -207,7 +207,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
207
207
|
<p class="mt-6 mb-0">Drag and drop files to here to upload.</p>
|
|
208
208
|
</div>
|
|
209
209
|
</ng-template>
|
|
210
|
-
</p-
|
|
210
|
+
</p-file-upload>
|
|
211
211
|
</div>
|
|
212
212
|
`,
|
|
213
213
|
standalone: true,
|
|
@@ -333,7 +333,7 @@ FileUpload is an advanced uploader with dragdrop support, multi file uploads, au
|
|
|
333
333
|
|
|
334
334
|
| Name | Type | Description |
|
|
335
335
|
|------|------|-------------|
|
|
336
|
-
| file | TemplateRef<
|
|
336
|
+
| file | TemplateRef<FileUploadFileTemplateContext> | Custom file template. |
|
|
337
337
|
| header | TemplateRef<FileUploadHeaderTemplateContext> | Custom header template. |
|
|
338
338
|
| content | TemplateRef<FileUploadContentTemplateContext> | Custom content template. |
|
|
339
339
|
| toolbar | TemplateRef<void> | Custom toolbar template. |
|