@exhaustive-ui/mcp 22.4.0 → 22.6.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/README.md +13 -1
- package/data/cards/accordion.md +91 -0
- package/data/cards/animateonscroll.md +155 -0
- package/data/cards/autocomplete.md +109 -0
- package/data/cards/autofocus.md +36 -0
- package/data/cards/avatar.md +45 -0
- package/data/cards/badge.md +44 -0
- package/data/cards/blockui.md +51 -0
- package/data/cards/breadcrumb.md +56 -0
- package/data/cards/button.md +83 -0
- package/data/cards/card.md +49 -0
- package/data/cards/carousel.md +101 -0
- package/data/cards/cascadeselect.md +77 -0
- package/data/cards/chart.md +105 -0
- package/data/cards/checkbox.md +59 -0
- package/data/cards/chip.md +50 -0
- package/data/cards/classnames.md +91 -0
- package/data/cards/colorpicker.md +52 -0
- package/data/cards/confirmdialog.md +119 -0
- package/data/cards/confirmpopup.md +96 -0
- package/data/cards/contextmenu.md +60 -0
- package/data/cards/dataview.md +134 -0
- package/data/cards/datepicker.md +103 -0
- package/data/cards/dialog.md +89 -0
- package/data/cards/divider.md +55 -0
- package/data/cards/dock.md +106 -0
- package/data/cards/dragdrop.md +106 -0
- package/data/cards/drawer.md +62 -0
- package/data/cards/dynamicdialog.md +103 -0
- package/data/cards/editor.md +55 -0
- package/data/cards/fieldset.md +54 -0
- package/data/cards/fileinput.md +72 -0
- package/data/cards/fileupload.md +88 -0
- package/data/cards/floatlabel.md +41 -0
- package/data/cards/fluid.md +49 -0
- package/data/cards/focustrap.md +64 -0
- package/data/cards/galleria.md +94 -0
- package/data/cards/iconfield.md +45 -0
- package/data/cards/iftalabel.md +38 -0
- package/data/cards/image.md +58 -0
- package/data/cards/imagecompare.md +45 -0
- package/data/cards/inplace.md +56 -0
- package/data/cards/inputgroup.md +77 -0
- package/data/cards/inputmask.md +71 -0
- package/data/cards/inputnumber.md +78 -0
- package/data/cards/inputotp.md +60 -0
- package/data/cards/inputtext.md +41 -0
- package/data/cards/keyfilter.md +49 -0
- package/data/cards/knob.md +55 -0
- package/data/cards/listbox.md +105 -0
- package/data/cards/megamenu.md +96 -0
- package/data/cards/menu.md +64 -0
- package/data/cards/menubar.md +102 -0
- package/data/cards/message.md +51 -0
- package/data/cards/metergroup.md +53 -0
- package/data/cards/multiselect.md +115 -0
- package/data/cards/orderlist.md +96 -0
- package/data/cards/organizationchart.md +84 -0
- package/data/cards/overlay.md +63 -0
- package/data/cards/paginator.md +62 -0
- package/data/cards/panel.md +57 -0
- package/data/cards/panelmenu.md +94 -0
- package/data/cards/password.md +81 -0
- package/data/cards/picklist.md +106 -0
- package/data/cards/popover.md +53 -0
- package/data/cards/progressbar.md +42 -0
- package/data/cards/progressspinner.md +38 -0
- package/data/cards/radiobutton.md +52 -0
- package/data/cards/rating.md +56 -0
- package/data/cards/ripple.md +37 -0
- package/data/cards/scroller.md +32 -0
- package/data/cards/scrollpanel.md +50 -0
- package/data/cards/scrolltop.md +48 -0
- package/data/cards/select.md +108 -0
- package/data/cards/selectbutton.md +64 -0
- package/data/cards/skeleton.md +54 -0
- package/data/cards/slider.md +52 -0
- package/data/cards/speeddial.md +102 -0
- package/data/cards/splitbutton.md +96 -0
- package/data/cards/splitter.md +52 -0
- package/data/cards/stepper.md +125 -0
- package/data/cards/styleclass.md +46 -0
- package/data/cards/table.md +305 -0
- package/data/cards/tabs.md +97 -0
- package/data/cards/tag.md +41 -0
- package/data/cards/terminal.md +76 -0
- package/data/cards/textarea.md +45 -0
- package/data/cards/tieredmenu.md +121 -0
- package/data/cards/timeline.md +58 -0
- package/data/cards/toast.md +58 -0
- package/data/cards/togglebutton.md +59 -0
- package/data/cards/toggleswitch.md +52 -0
- package/data/cards/toolbar.md +74 -0
- package/data/cards/tooltip.md +43 -0
- package/data/cards/tree.md +93 -0
- package/data/cards/treeselect.md +98 -0
- package/data/cards/treetable.md +231 -0
- package/data/components/accordion.md +31 -23
- package/data/components/animateonscroll.md +18 -15
- package/data/components/autocomplete.md +162 -93
- package/data/components/autofocus.md +9 -7
- package/data/components/avatar.md +56 -43
- package/data/components/badge.md +27 -18
- package/data/components/blockui.md +15 -8
- package/data/components/breadcrumb.md +20 -14
- package/data/components/button.md +121 -94
- package/data/components/card.md +12 -10
- package/data/components/carousel.md +75 -53
- package/data/components/cascadeselect.md +271 -238
- package/data/components/chart.md +88 -74
- package/data/components/checkbox.md +107 -97
- package/data/components/chip.md +20 -16
- package/data/components/classnames.md +22 -4
- package/data/components/colorpicker.md +54 -36
- package/data/components/confirmdialog.md +146 -43
- package/data/components/confirmpopup.md +95 -22
- package/data/components/contextmenu.md +110 -39
- package/data/components/dataview.md +176 -83
- package/data/components/datepicker.md +171 -141
- package/data/components/dialog.md +80 -68
- package/data/components/divider.md +17 -12
- package/data/components/dock.md +65 -29
- package/data/components/dragdrop.md +26 -12
- package/data/components/drawer.md +67 -48
- package/data/components/dynamicdialog.md +22 -13
- package/data/components/editor.md +42 -33
- package/data/components/fieldset.md +20 -17
- package/data/components/fileinput.md +92 -35
- package/data/components/fileupload.md +101 -61
- package/data/components/floatlabel.md +20 -11
- package/data/components/fluid.md +11 -9
- package/data/components/focustrap.md +11 -7
- package/data/components/galleria.md +231 -90
- package/data/components/iconfield.md +23 -15
- package/data/components/iftalabel.md +15 -9
- package/data/components/image.md +31 -26
- package/data/components/imagecompare.md +8 -6
- package/data/components/inplace.md +27 -22
- package/data/components/inputgroup.md +53 -29
- package/data/components/inputmask.md +107 -85
- package/data/components/inputnumber.md +128 -90
- package/data/components/inputotp.md +55 -42
- package/data/components/inputtext.md +72 -50
- package/data/components/keyfilter.md +6 -3
- package/data/components/knob.md +70 -58
- package/data/components/listbox.md +171 -141
- package/data/components/llms.md +4 -0
- package/data/components/megamenu.md +24 -23
- package/data/components/menu.md +37 -34
- package/data/components/menubar.md +27 -22
- package/data/components/message.md +44 -32
- package/data/components/metergroup.md +48 -17
- package/data/components/multiselect.md +232 -168
- package/data/components/orderlist.md +55 -48
- package/data/components/organizationchart.md +182 -13
- package/data/components/overlay.md +31 -26
- package/data/components/paginator.md +49 -34
- package/data/components/panel.md +23 -19
- package/data/components/panelmenu.md +51 -25
- package/data/components/password.md +104 -91
- package/data/components/picklist.md +93 -71
- package/data/components/popover.md +68 -46
- package/data/components/progressbar.md +28 -22
- package/data/components/progressspinner.md +13 -11
- package/data/components/radiobutton.md +69 -35
- package/data/components/rating.md +48 -40
- package/data/components/ripple.md +8 -6
- package/data/components/scroller.md +29 -29
- package/data/components/scrollpanel.md +9 -7
- package/data/components/scrolltop.md +20 -18
- package/data/components/select.md +248 -169
- package/data/components/selectbutton.md +118 -56
- package/data/components/skeleton.md +22 -18
- package/data/components/slider.md +73 -49
- package/data/components/speeddial.md +77 -59
- package/data/components/splitbutton.md +354 -329
- package/data/components/splitter.md +22 -18
- package/data/components/stepper.md +38 -21
- package/data/components/styleclass.md +12 -6
- package/data/components/table.md +524 -315
- package/data/components/tabs.md +44 -26
- package/data/components/tag.md +18 -14
- package/data/components/terminal.md +38 -27
- package/data/components/textarea.md +82 -47
- package/data/components/tieredmenu.md +34 -29
- package/data/components/timeline.md +29 -28
- package/data/components/toast.md +115 -57
- package/data/components/togglebutton.md +53 -39
- package/data/components/toggleswitch.md +41 -28
- package/data/components/toolbar.md +19 -18
- package/data/components/tooltip.md +43 -32
- package/data/components/tree.md +114 -81
- package/data/components/treeselect.md +176 -174
- package/data/components/treetable.md +1250 -1045
- package/data/components.json +4134 -4088
- package/data/llms-full.txt +8979 -6437
- package/data/llms.txt +100 -96
- package/data/manifest.json +183 -15
- package/data/pages/llms.md +29 -0
- package/data/pages/tailwind.md +20 -10
- package/data/snapshot.json +2 -2
- package/dist/index.d.mts +37 -2
- package/dist/index.mjs +1395 -1079
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -12,9 +12,9 @@ Advanced uploader provides dragdrop support, multi file uploads, auto uploading,
|
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component, inject } from '@angular/core';
|
|
15
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
15
16
|
import { FileUploadModule } from '@exhaustive-ui/core/fileupload';
|
|
16
17
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
17
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
18
18
|
|
|
19
19
|
interface UploadEvent {
|
|
20
20
|
originalEvent: Event;
|
|
@@ -38,7 +38,16 @@ interface UploadEvent {
|
|
|
38
38
|
})
|
|
39
39
|
export class FileuploadAdvancedDemo {
|
|
40
40
|
private messageService = inject(MessageService);
|
|
41
|
+
|
|
41
42
|
uploadedFiles: any[] = [];
|
|
43
|
+
|
|
44
|
+
onUpload(event: UploadEvent) {
|
|
45
|
+
for (let file of event.files) {
|
|
46
|
+
this.uploadedFiles.push(file);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
this.messageService.add({ severity: 'info', summary: 'File Uploaded', detail: '' });
|
|
50
|
+
}
|
|
42
51
|
}
|
|
43
52
|
```
|
|
44
53
|
|
|
@@ -48,9 +57,9 @@ When auto property is enabled, a file gets uploaded instantly after selection.
|
|
|
48
57
|
|
|
49
58
|
```typescript
|
|
50
59
|
import { Component, inject } from '@angular/core';
|
|
60
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
51
61
|
import { FileUploadModule } from '@exhaustive-ui/core/fileupload';
|
|
52
62
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
53
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
54
63
|
|
|
55
64
|
interface UploadEvent {
|
|
56
65
|
originalEvent: Event;
|
|
@@ -70,6 +79,10 @@ interface UploadEvent {
|
|
|
70
79
|
})
|
|
71
80
|
export class FileuploadAutoDemo {
|
|
72
81
|
private messageService = inject(MessageService);
|
|
82
|
+
|
|
83
|
+
onBasicUploadAuto(event: UploadEvent) {
|
|
84
|
+
this.messageService.add({ severity: 'info', summary: 'Success', detail: 'File Uploaded with Auto Mode' });
|
|
85
|
+
}
|
|
73
86
|
}
|
|
74
87
|
```
|
|
75
88
|
|
|
@@ -79,10 +92,10 @@ FileUpload basic mode provides a simpler UI as an alternative to default advance
|
|
|
79
92
|
|
|
80
93
|
```typescript
|
|
81
94
|
import { Component, inject } from '@angular/core';
|
|
82
|
-
import {
|
|
95
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
83
96
|
import { FileUploadModule } from '@exhaustive-ui/core/fileupload';
|
|
84
97
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
85
|
-
import {
|
|
98
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
86
99
|
|
|
87
100
|
interface UploadEvent {
|
|
88
101
|
originalEvent: Event;
|
|
@@ -98,11 +111,15 @@ interface UploadEvent {
|
|
|
98
111
|
</div>
|
|
99
112
|
`,
|
|
100
113
|
standalone: true,
|
|
101
|
-
imports: [
|
|
114
|
+
imports: [FileUploadModule, ToastModule, ButtonModule],
|
|
102
115
|
providers: [MessageService]
|
|
103
116
|
})
|
|
104
117
|
export class FileuploadBasicDemo {
|
|
105
118
|
private messageService = inject(MessageService);
|
|
119
|
+
|
|
120
|
+
onUpload(event: UploadEvent) {
|
|
121
|
+
this.messageService.add({ severity: 'info', summary: 'Success', detail: 'File Uploaded with Basic Mode' });
|
|
122
|
+
}
|
|
106
123
|
}
|
|
107
124
|
```
|
|
108
125
|
|
|
@@ -112,9 +129,9 @@ FileUpload basic mode provides a simpler UI as an alternative to default advance
|
|
|
112
129
|
|
|
113
130
|
```typescript
|
|
114
131
|
import { Component, inject } from '@angular/core';
|
|
132
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
115
133
|
import { FileUploadModule } from '@exhaustive-ui/core/fileupload';
|
|
116
134
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
117
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
118
135
|
|
|
119
136
|
@Component({
|
|
120
137
|
template: `
|
|
@@ -129,6 +146,20 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
129
146
|
})
|
|
130
147
|
export class FileuploadCustomDemo {
|
|
131
148
|
private messageService = inject(MessageService);
|
|
149
|
+
|
|
150
|
+
async customUploader(event) {
|
|
151
|
+
const file = event.files[0];
|
|
152
|
+
const reader = new FileReader();
|
|
153
|
+
let blob = await fetch(file.objectURL).then((r) => r.blob()); //blob:url
|
|
154
|
+
|
|
155
|
+
reader.readAsDataURL(blob);
|
|
156
|
+
|
|
157
|
+
reader.onloadend = function () {
|
|
158
|
+
const base64data = reader.result;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
this.messageService.add({ severity: 'info', summary: 'Success', detail: 'File Uploaded with Basic Mode' });
|
|
162
|
+
}
|
|
132
163
|
}
|
|
133
164
|
```
|
|
134
165
|
|
|
@@ -136,13 +167,14 @@ export class FileuploadCustomDemo {
|
|
|
136
167
|
|
|
137
168
|
```typescript
|
|
138
169
|
import { Component, inject } from '@angular/core';
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
170
|
+
import { CommonModule } from '@angular/common';
|
|
171
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
172
|
+
import { Exhaustive } from '@exhaustive-ui/core/config';
|
|
141
173
|
import { FileUploadModule } from '@exhaustive-ui/core/fileupload';
|
|
142
|
-
import { ProgressBarModule } from '@exhaustive-ui/core/progressbar';
|
|
143
174
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
175
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
176
|
+
import { BadgeModule } from '@exhaustive-ui/core/badge';
|
|
177
|
+
import { ProgressBarModule } from '@exhaustive-ui/core/progressbar';
|
|
146
178
|
|
|
147
179
|
@Component({
|
|
148
180
|
template: `
|
|
@@ -159,11 +191,11 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
159
191
|
<ng-template #header let-files let-chooseCallback="chooseCallback" let-clearCallback="clearCallback" let-uploadCallback="uploadCallback">
|
|
160
192
|
<div class="flex flex-wrap justify-between items-center flex-1 gap-4">
|
|
161
193
|
<div class="flex gap-2">
|
|
162
|
-
<p-button (onClick)="choose($event, chooseCallback)" icon="pi pi-images" [rounded]="true" [outlined]="true" />
|
|
163
|
-
<p-button (onClick)="uploadEvent(uploadCallback)" icon="pi pi-cloud-upload" [rounded]="true" [outlined]="true" severity="success" [disabled]="!files || files.length === 0" />
|
|
164
|
-
<p-button (onClick)="clearCallback()" icon="pi pi-times" [rounded]="true" [outlined]="true" severity="danger" [disabled]="!files || files.length === 0" />
|
|
194
|
+
<p-button (onClick)="choose($event, chooseCallback)" icon="pi pi-images" ariaLabel="Choose files" [rounded]="true" [outlined]="true" />
|
|
195
|
+
<p-button (onClick)="uploadEvent(uploadCallback)" icon="pi pi-cloud-upload" ariaLabel="Upload" [rounded]="true" [outlined]="true" severity="success" [disabled]="!files || files.length === 0" />
|
|
196
|
+
<p-button (onClick)="clearCallback()" icon="pi pi-times" ariaLabel="Clear" [rounded]="true" [outlined]="true" severity="danger" [disabled]="!files || files.length === 0" />
|
|
165
197
|
</div>
|
|
166
|
-
<p-progress-bar [value]="totalSizePercent" [showValue]="false" class="w-full" class="md:w-20rem h-1 w-full md:ml-auto">
|
|
198
|
+
<p-progress-bar [value]="totalSizePercent" aria-label="Total size" [showValue]="false" class="w-full" class="md:w-20rem h-1 w-full md:ml-auto">
|
|
167
199
|
<span class="whitespace-nowrap">{{ totalSize }}B / 1Mb</span>
|
|
168
200
|
</p-progress-bar>
|
|
169
201
|
</div>
|
|
@@ -180,7 +212,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
180
212
|
<span class="font-semibold text-ellipsis max-w-60 whitespace-nowrap overflow-hidden">{{ file.name }}</span>
|
|
181
213
|
<div>{{ formatSize(file.size) }}</div>
|
|
182
214
|
<p-badge value="Pending" severity="warn" />
|
|
183
|
-
<p-button icon="pi pi-times" (click)="onRemoveTemplatingFile($event, file, removeFileCallback,
|
|
215
|
+
<p-button icon="pi pi-times" (click)="onRemoveTemplatingFile($event, file, removeFileCallback, i)" [ariaLabel]="'Remove ' + file.name" [outlined]="true" [rounded]="true" severity="danger" />
|
|
184
216
|
</div>
|
|
185
217
|
</div>
|
|
186
218
|
</div>
|
|
@@ -194,7 +226,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
194
226
|
<span class="font-semibold text-ellipsis max-w-60 whitespace-nowrap overflow-hidden">{{ file.name }}</span>
|
|
195
227
|
<div>{{ formatSize(file.size) }}</div>
|
|
196
228
|
<p-badge value="Completed" class="mt-4" severity="success" />
|
|
197
|
-
<p-button icon="pi pi-times" (onClick)="removeUploadedFileCallback(
|
|
229
|
+
<p-button icon="pi pi-times" (onClick)="removeUploadedFileCallback(i)" [ariaLabel]="'Remove ' + file.name" [outlined]="true" [rounded]="true" severity="danger" />
|
|
198
230
|
</div>
|
|
199
231
|
</div>
|
|
200
232
|
</div>
|
|
@@ -211,15 +243,23 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
211
243
|
</div>
|
|
212
244
|
`,
|
|
213
245
|
standalone: true,
|
|
214
|
-
imports: [
|
|
246
|
+
imports: [CommonModule, FileUploadModule, ToastModule, ButtonModule, BadgeModule, ProgressBarModule],
|
|
215
247
|
providers: [MessageService]
|
|
216
248
|
})
|
|
217
249
|
export class FileuploadTemplateDemo {
|
|
250
|
+
private config = inject(Exhaustive);
|
|
218
251
|
private messageService = inject(MessageService);
|
|
219
|
-
|
|
252
|
+
|
|
253
|
+
files = [];
|
|
254
|
+
|
|
220
255
|
totalSize: number = 0;
|
|
256
|
+
|
|
221
257
|
totalSizePercent: number = 0;
|
|
222
258
|
|
|
259
|
+
choose(event, callback) {
|
|
260
|
+
callback();
|
|
261
|
+
}
|
|
262
|
+
|
|
223
263
|
onRemoveTemplatingFile(event, file, removeFileCallback, index) {
|
|
224
264
|
removeFileCallback(event, index);
|
|
225
265
|
this.totalSize -= parseInt(this.formatSize(file.size));
|
|
@@ -255,10 +295,10 @@ export class FileuploadTemplateDemo {
|
|
|
255
295
|
if (bytes === 0) {
|
|
256
296
|
return `0 ${sizes[0]}`;
|
|
257
297
|
}
|
|
258
|
-
|
|
298
|
+
|
|
259
299
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
260
300
|
const formattedSize = parseFloat((bytes / Math.pow(k, i)).toFixed(dm));
|
|
261
|
-
|
|
301
|
+
|
|
262
302
|
return `${formattedSize} ${sizes[i]}`;
|
|
263
303
|
}
|
|
264
304
|
}
|
|
@@ -272,46 +312,46 @@ FileUpload is an advanced uploader with dragdrop support, multi file uploads, au
|
|
|
272
312
|
|
|
273
313
|
| Name | Type | Default | Description |
|
|
274
314
|
|------|------|---------|-------------|
|
|
275
|
-
| dt |
|
|
276
|
-
| unstyled |
|
|
277
|
-
| pt |
|
|
278
|
-
| ptOptions |
|
|
279
|
-
| name |
|
|
280
|
-
| url |
|
|
281
|
-
| method |
|
|
282
|
-
| multiple |
|
|
283
|
-
| accept |
|
|
284
|
-
| disabled |
|
|
285
|
-
| auto |
|
|
286
|
-
| withCredentials |
|
|
287
|
-
| maxFileSize |
|
|
288
|
-
| invalidFileSizeMessageSummary |
|
|
289
|
-
| invalidFileSizeMessageDetail |
|
|
290
|
-
| invalidFileTypeMessageSummary |
|
|
291
|
-
| invalidFileTypeMessageDetail |
|
|
292
|
-
| invalidFileLimitMessageDetail |
|
|
293
|
-
| invalidFileLimitMessageSummary |
|
|
294
|
-
| style |
|
|
295
|
-
| styleClass |
|
|
296
|
-
| previewWidth |
|
|
297
|
-
| chooseLabel |
|
|
298
|
-
| uploadLabel |
|
|
299
|
-
| cancelLabel |
|
|
300
|
-
| chooseIcon |
|
|
301
|
-
| uploadIcon |
|
|
302
|
-
| cancelIcon |
|
|
303
|
-
| showUploadButton |
|
|
304
|
-
| showCancelButton |
|
|
305
|
-
| mode |
|
|
306
|
-
| headers |
|
|
307
|
-
| customUpload |
|
|
308
|
-
| fileLimit |
|
|
309
|
-
| uploadStyleClass |
|
|
310
|
-
| cancelStyleClass |
|
|
311
|
-
| chooseStyleClass |
|
|
312
|
-
| chooseButtonProps |
|
|
313
|
-
| uploadButtonProps |
|
|
314
|
-
| cancelButtonProps |
|
|
315
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
316
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
317
|
+
| pt | FileUploadPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
318
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
319
|
+
| name | string | - | Name of the request parameter to identify the files at backend. |
|
|
320
|
+
| url | string | - | Remote url to upload the files. |
|
|
321
|
+
| method | "post" \| "put" | 'post' | HTTP method to send the files to the url such as "post" and "put". |
|
|
322
|
+
| multiple | boolean | - | Used to select multiple files at once from file dialog. |
|
|
323
|
+
| accept | string | - | Comma-separated list of pattern to restrict the allowed file types. Can be any combination of either the MIME types (such as "image/*") or the file extensions (such as ".jpg"). |
|
|
324
|
+
| disabled | boolean | - | Disables the upload functionality. |
|
|
325
|
+
| auto | boolean | - | When enabled, upload begins automatically after selection is completed. |
|
|
326
|
+
| withCredentials | boolean | - | Cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. |
|
|
327
|
+
| maxFileSize | number | - | Maximum file size allowed in bytes. |
|
|
328
|
+
| invalidFileSizeMessageSummary | string | '{0}: Invalid file size, ' | Summary message of the invalid file size. |
|
|
329
|
+
| invalidFileSizeMessageDetail | string | 'maximum upload size is {0}.' | Detail message of the invalid file size. |
|
|
330
|
+
| invalidFileTypeMessageSummary | string | '{0}: Invalid file type, ' | Summary message of the invalid file type. |
|
|
331
|
+
| invalidFileTypeMessageDetail | string | 'allowed file types: {0}.' | Detail message of the invalid file type. |
|
|
332
|
+
| invalidFileLimitMessageDetail | string | 'limit is {0} at most.' | Detail message of the invalid file type. |
|
|
333
|
+
| invalidFileLimitMessageSummary | string | 'Maximum number of files exceeded, ' | Summary message of the invalid file type. |
|
|
334
|
+
| style | { [klass: string]: any } | - | Inline style of the element. |
|
|
335
|
+
| styleClass | string | - | Class of the element. |
|
|
336
|
+
| previewWidth | number | 50 | Width of the image thumbnail in pixels. |
|
|
337
|
+
| chooseLabel | string | - | Label of the choose button. Defaults to Exhaustive Locale configuration. |
|
|
338
|
+
| uploadLabel | string | - | Label of the upload button. Defaults to Exhaustive Locale configuration. |
|
|
339
|
+
| cancelLabel | string | - | Label of the cancel button. Defaults to Exhaustive Locale configuration. |
|
|
340
|
+
| chooseIcon | string | - | Icon of the choose button. |
|
|
341
|
+
| uploadIcon | string | - | Icon of the upload button. |
|
|
342
|
+
| cancelIcon | string | - | Icon of the cancel button. |
|
|
343
|
+
| showUploadButton | boolean | true | Whether to show the upload button. |
|
|
344
|
+
| showCancelButton | boolean | true | Whether to show the cancel button. |
|
|
345
|
+
| mode | "basic" \| "advanced" | 'advanced' | Defines the UI of the component. |
|
|
346
|
+
| headers | HttpHeaders | - | HttpHeaders class represents the header configuration options for an HTTP request. |
|
|
347
|
+
| customUpload | boolean | - | Whether to use the default upload or a manual implementation defined in uploadHandler callback. Defaults to Exhaustive Locale configuration. |
|
|
348
|
+
| fileLimit | number | - | Maximum number of files that can be uploaded. |
|
|
349
|
+
| uploadStyleClass | string | - | Style class of the upload button. |
|
|
350
|
+
| cancelStyleClass | string | - | Style class of the cancel button. |
|
|
351
|
+
| chooseStyleClass | string | - | Style class of the choose button. |
|
|
352
|
+
| chooseButtonProps | ButtonProps | - | Used to pass all properties of the ButtonProps to the choose button inside the component. |
|
|
353
|
+
| uploadButtonProps | ButtonProps | { severity: 'secondary' } | Used to pass all properties of the ButtonProps to the upload button inside the component. |
|
|
354
|
+
| cancelButtonProps | ButtonProps | { severity: 'secondary' } | Used to pass all properties of the ButtonProps to the cancel button inside the component. |
|
|
315
355
|
|
|
316
356
|
### Emits
|
|
317
357
|
|
|
@@ -26,7 +26,7 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
26
26
|
</div>
|
|
27
27
|
`,
|
|
28
28
|
standalone: true,
|
|
29
|
-
imports: [FloatLabelModule, InputTextModule
|
|
29
|
+
imports: [FormsModule, FloatLabelModule, InputTextModule]
|
|
30
30
|
})
|
|
31
31
|
export class FloatlabelBasicDemo {
|
|
32
32
|
value: string | undefined;
|
|
@@ -61,11 +61,13 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
61
61
|
</div>
|
|
62
62
|
`,
|
|
63
63
|
standalone: true,
|
|
64
|
-
imports: [FloatLabelModule, InputTextModule
|
|
64
|
+
imports: [FormsModule, FloatLabelModule, InputTextModule]
|
|
65
65
|
})
|
|
66
66
|
export class FloatlabelInvalidDemo {
|
|
67
67
|
value1: string | undefined;
|
|
68
|
+
|
|
68
69
|
value2: string | undefined;
|
|
70
|
+
|
|
69
71
|
value3: string | undefined;
|
|
70
72
|
}
|
|
71
73
|
```
|
|
@@ -78,8 +80,8 @@ The label follows the small and large sizes of the field it wraps, in every vari
|
|
|
78
80
|
import { Component } from '@angular/core';
|
|
79
81
|
import { FormsModule } from '@angular/forms';
|
|
80
82
|
import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
81
|
-
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
82
83
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
84
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
83
85
|
|
|
84
86
|
@Component({
|
|
85
87
|
template: `
|
|
@@ -115,16 +117,22 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
115
117
|
</div>
|
|
116
118
|
`,
|
|
117
119
|
standalone: true,
|
|
118
|
-
imports: [
|
|
120
|
+
imports: [FormsModule, FloatLabelModule, InputTextModule, SelectModule]
|
|
119
121
|
})
|
|
120
122
|
export class FloatlabelSizesDemo {
|
|
121
123
|
value1: string | undefined;
|
|
124
|
+
|
|
122
125
|
value2: string | undefined;
|
|
126
|
+
|
|
123
127
|
value3: string | undefined;
|
|
128
|
+
|
|
124
129
|
city1: string | undefined;
|
|
130
|
+
|
|
125
131
|
city2: string | undefined;
|
|
132
|
+
|
|
126
133
|
city3: string | undefined;
|
|
127
|
-
|
|
134
|
+
|
|
135
|
+
cities = ['New York', 'Rome', 'London', 'Istanbul', 'Paris'];
|
|
128
136
|
}
|
|
129
137
|
```
|
|
130
138
|
|
|
@@ -152,10 +160,11 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
152
160
|
</div>
|
|
153
161
|
`,
|
|
154
162
|
standalone: true,
|
|
155
|
-
imports: [FloatLabelModule, InputTextModule
|
|
163
|
+
imports: [FormsModule, FloatLabelModule, InputTextModule]
|
|
156
164
|
})
|
|
157
165
|
export class FloatlabelVariantsDemo {
|
|
158
166
|
value1: string | undefined;
|
|
167
|
+
|
|
159
168
|
value2: string | undefined;
|
|
160
169
|
}
|
|
161
170
|
```
|
|
@@ -168,11 +177,11 @@ FloatLabel appears on top of the input field when focused.
|
|
|
168
177
|
|
|
169
178
|
| Name | Type | Default | Description |
|
|
170
179
|
|------|------|---------|-------------|
|
|
171
|
-
| dt |
|
|
172
|
-
| unstyled |
|
|
173
|
-
| pt |
|
|
174
|
-
| ptOptions |
|
|
175
|
-
| variant |
|
|
180
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
181
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
182
|
+
| pt | FloatLabelPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
183
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
184
|
+
| variant | "in" \| "on" \| "over" | 'over' | Defines the positioning of the label relative to the input. |
|
|
176
185
|
|
|
177
186
|
## Pass Through Options
|
|
178
187
|
|
package/data/components/fluid.md
CHANGED
|
@@ -12,6 +12,7 @@ Components with the fluid option like InputText have the ability to span the ful
|
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component } from '@angular/core';
|
|
15
|
+
import { Fluid } from '@exhaustive-ui/core/fluid';
|
|
15
16
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
16
17
|
|
|
17
18
|
@Component({
|
|
@@ -28,18 +29,19 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
28
29
|
<p-fluid>
|
|
29
30
|
<span class="font-bold mb-2 block">Fluid Container</span>
|
|
30
31
|
<div class="grid grid-cols-2 gap-4">
|
|
31
|
-
<div><input type="text" pInputText /></div>
|
|
32
|
-
<div><input type="text" pInputText /></div>
|
|
33
|
-
<div class="col-span-full"><input type="text" pInputText /></div>
|
|
32
|
+
<div><input type="text" pInputText aria-label="First name" /></div>
|
|
33
|
+
<div><input type="text" pInputText aria-label="Last name" /></div>
|
|
34
|
+
<div class="col-span-full"><input type="text" pInputText aria-label="Address" /></div>
|
|
34
35
|
<div><input type="text" pInputText [fluid]="false" placeholder="Non-Fluid" /></div>
|
|
35
36
|
</div>
|
|
36
37
|
</p-fluid>
|
|
37
38
|
</div>
|
|
38
39
|
`,
|
|
39
40
|
standalone: true,
|
|
40
|
-
imports: [InputTextModule]
|
|
41
|
+
imports: [Fluid, InputTextModule]
|
|
41
42
|
})
|
|
42
|
-
export class FluidBasicDemo {
|
|
43
|
+
export class FluidBasicDemo {
|
|
44
|
+
}
|
|
43
45
|
```
|
|
44
46
|
|
|
45
47
|
## Fluid
|
|
@@ -50,10 +52,10 @@ Fluid is a layout component to make descendant components span full width of the
|
|
|
50
52
|
|
|
51
53
|
| Name | Type | Default | Description |
|
|
52
54
|
|------|------|---------|-------------|
|
|
53
|
-
| dt |
|
|
54
|
-
| unstyled |
|
|
55
|
-
| pt |
|
|
56
|
-
| ptOptions |
|
|
55
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
56
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
57
|
+
| pt | FluidPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
58
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
57
59
|
|
|
58
60
|
## Pass Through Options
|
|
59
61
|
|
|
@@ -9,8 +9,10 @@ FocusTrap is applied to a container element with the pFocusTrap directive.
|
|
|
9
9
|
```typescript
|
|
10
10
|
import { Component } from '@angular/core';
|
|
11
11
|
import { FormsModule } from '@angular/forms';
|
|
12
|
+
import { AutoFocusModule } from '@exhaustive-ui/core/autofocus';
|
|
12
13
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
13
14
|
import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
|
|
15
|
+
import { FocusTrapModule } from '@exhaustive-ui/core/focustrap';
|
|
14
16
|
import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
|
|
15
17
|
import { InputIconModule } from '@exhaustive-ui/core/inputicon';
|
|
16
18
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
@@ -32,7 +34,7 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
32
34
|
<input type="text" pInputText id="email" [(ngModel)]="email" type="email" placeholder="Email" [fluid]="true" />
|
|
33
35
|
</p-icon-field>
|
|
34
36
|
<div class="flex items-center gap-2">
|
|
35
|
-
<p-checkbox
|
|
37
|
+
<p-checkbox inputId="accept" [(ngModel)]="accept" name="accept" value="Accept" />
|
|
36
38
|
<label for="accept">I agree to the terms and conditions.</label>
|
|
37
39
|
</div>
|
|
38
40
|
<p-button type="submit" label="Submit" class="mt-2" styleClass="w-full" />
|
|
@@ -40,11 +42,13 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
40
42
|
</div>
|
|
41
43
|
`,
|
|
42
44
|
standalone: true,
|
|
43
|
-
imports: [ButtonModule, CheckboxModule, IconFieldModule, InputIconModule, InputTextModule
|
|
45
|
+
imports: [FormsModule, AutoFocusModule, ButtonModule, CheckboxModule, FocusTrapModule, IconFieldModule, InputIconModule, InputTextModule]
|
|
44
46
|
})
|
|
45
47
|
export class FocustrapBasicDemo {
|
|
46
48
|
name: string = '';
|
|
49
|
+
|
|
47
50
|
email: string = '';
|
|
51
|
+
|
|
48
52
|
accept: boolean = false;
|
|
49
53
|
}
|
|
50
54
|
```
|
|
@@ -57,9 +61,9 @@ Focus Trap keeps focus within a certain DOM element while tabbing.
|
|
|
57
61
|
|
|
58
62
|
| Name | Type | Default | Description |
|
|
59
63
|
|------|------|---------|-------------|
|
|
60
|
-
| dt |
|
|
61
|
-
| unstyled |
|
|
62
|
-
| pt |
|
|
63
|
-
| ptOptions |
|
|
64
|
-
| pFocusTrapDisabled |
|
|
64
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
65
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
66
|
+
| pt | any | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
67
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
68
|
+
| pFocusTrapDisabled | boolean | false | When set as true, focus wouldn't be managed. |
|
|
65
69
|
|