@exhaustive-ui/mcp 22.5.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.
Files changed (199) hide show
  1. package/data/cards/accordion.md +5 -2
  2. package/data/cards/animateonscroll.md +8 -5
  3. package/data/cards/autocomplete.md +8 -3
  4. package/data/cards/autofocus.md +4 -2
  5. package/data/cards/avatar.md +4 -2
  6. package/data/cards/badge.md +2 -1
  7. package/data/cards/breadcrumb.md +3 -1
  8. package/data/cards/button.md +8 -2
  9. package/data/cards/card.md +2 -1
  10. package/data/cards/carousel.md +7 -5
  11. package/data/cards/cascadeselect.md +2 -6
  12. package/data/cards/chart.md +9 -7
  13. package/data/cards/checkbox.md +4 -3
  14. package/data/cards/chip.md +2 -1
  15. package/data/cards/classnames.md +21 -3
  16. package/data/cards/colorpicker.md +2 -1
  17. package/data/cards/confirmdialog.md +35 -5
  18. package/data/cards/confirmpopup.md +25 -3
  19. package/data/cards/contextmenu.md +1 -7
  20. package/data/cards/dataview.md +28 -9
  21. package/data/cards/datepicker.md +4 -3
  22. package/data/cards/dialog.md +3 -3
  23. package/data/cards/divider.md +2 -1
  24. package/data/cards/dock.md +24 -3
  25. package/data/cards/dragdrop.md +5 -1
  26. package/data/cards/drawer.md +3 -3
  27. package/data/cards/dynamicdialog.md +41 -14
  28. package/data/cards/editor.md +1 -1
  29. package/data/cards/fieldset.md +2 -1
  30. package/data/cards/fileinput.md +1 -1
  31. package/data/cards/fileupload.md +7 -8
  32. package/data/cards/floatlabel.md +1 -1
  33. package/data/cards/fluid.md +7 -5
  34. package/data/cards/focustrap.md +6 -2
  35. package/data/cards/galleria.md +18 -25
  36. package/data/cards/iconfield.md +3 -2
  37. package/data/cards/iftalabel.md +1 -1
  38. package/data/cards/image.md +4 -2
  39. package/data/cards/imagecompare.md +4 -3
  40. package/data/cards/inplace.md +2 -1
  41. package/data/cards/inputgroup.md +14 -3
  42. package/data/cards/inputmask.md +2 -2
  43. package/data/cards/inputnumber.md +4 -3
  44. package/data/cards/inputotp.md +2 -2
  45. package/data/cards/inputtext.md +2 -2
  46. package/data/cards/keyfilter.md +2 -1
  47. package/data/cards/knob.md +3 -2
  48. package/data/cards/listbox.md +5 -3
  49. package/data/cards/megamenu.md +7 -8
  50. package/data/cards/menu.md +3 -7
  51. package/data/cards/menubar.md +3 -7
  52. package/data/cards/message.md +2 -1
  53. package/data/cards/metergroup.md +3 -7
  54. package/data/cards/multiselect.md +5 -9
  55. package/data/cards/orderlist.md +6 -4
  56. package/data/cards/organizationchart.md +33 -6
  57. package/data/cards/overlay.md +2 -1
  58. package/data/cards/paginator.md +2 -1
  59. package/data/cards/panel.md +2 -1
  60. package/data/cards/panelmenu.md +4 -13
  61. package/data/cards/password.md +6 -3
  62. package/data/cards/picklist.md +9 -5
  63. package/data/cards/popover.md +6 -5
  64. package/data/cards/progressbar.md +4 -3
  65. package/data/cards/progressspinner.md +2 -1
  66. package/data/cards/radiobutton.md +4 -3
  67. package/data/cards/rating.md +1 -1
  68. package/data/cards/ripple.md +2 -1
  69. package/data/cards/scrollpanel.md +2 -1
  70. package/data/cards/scrolltop.md +5 -3
  71. package/data/cards/select.md +2 -1
  72. package/data/cards/selectbutton.md +6 -2
  73. package/data/cards/skeleton.md +2 -1
  74. package/data/cards/slider.md +4 -3
  75. package/data/cards/speeddial.md +7 -4
  76. package/data/cards/splitbutton.md +21 -18
  77. package/data/cards/splitter.md +2 -1
  78. package/data/cards/stepper.md +8 -3
  79. package/data/cards/styleclass.md +4 -2
  80. package/data/cards/table.md +46 -11
  81. package/data/cards/tabs.md +2 -1
  82. package/data/cards/tag.md +2 -1
  83. package/data/cards/terminal.md +31 -22
  84. package/data/cards/textarea.md +3 -2
  85. package/data/cards/tieredmenu.md +1 -6
  86. package/data/cards/timeline.md +5 -5
  87. package/data/cards/toast.md +7 -8
  88. package/data/cards/togglebutton.md +1 -1
  89. package/data/cards/toggleswitch.md +4 -3
  90. package/data/cards/toolbar.md +8 -8
  91. package/data/cards/tooltip.md +2 -1
  92. package/data/cards/tree.md +3 -6
  93. package/data/cards/treeselect.md +6 -7
  94. package/data/cards/treetable.md +52 -31
  95. package/data/components/accordion.md +31 -23
  96. package/data/components/animateonscroll.md +18 -15
  97. package/data/components/autocomplete.md +162 -93
  98. package/data/components/autofocus.md +9 -7
  99. package/data/components/avatar.md +56 -43
  100. package/data/components/badge.md +27 -18
  101. package/data/components/blockui.md +15 -8
  102. package/data/components/breadcrumb.md +20 -14
  103. package/data/components/button.md +121 -94
  104. package/data/components/card.md +12 -10
  105. package/data/components/carousel.md +75 -53
  106. package/data/components/cascadeselect.md +271 -238
  107. package/data/components/chart.md +88 -74
  108. package/data/components/checkbox.md +107 -73
  109. package/data/components/chip.md +20 -16
  110. package/data/components/classnames.md +22 -4
  111. package/data/components/colorpicker.md +54 -36
  112. package/data/components/confirmdialog.md +146 -43
  113. package/data/components/confirmpopup.md +95 -22
  114. package/data/components/contextmenu.md +110 -39
  115. package/data/components/dataview.md +176 -83
  116. package/data/components/datepicker.md +171 -141
  117. package/data/components/dialog.md +80 -68
  118. package/data/components/divider.md +17 -12
  119. package/data/components/dock.md +63 -27
  120. package/data/components/dragdrop.md +26 -12
  121. package/data/components/drawer.md +67 -48
  122. package/data/components/dynamicdialog.md +22 -13
  123. package/data/components/editor.md +42 -33
  124. package/data/components/fieldset.md +20 -17
  125. package/data/components/fileinput.md +92 -35
  126. package/data/components/fileupload.md +101 -61
  127. package/data/components/floatlabel.md +20 -11
  128. package/data/components/fluid.md +11 -9
  129. package/data/components/focustrap.md +11 -7
  130. package/data/components/galleria.md +224 -83
  131. package/data/components/iconfield.md +23 -15
  132. package/data/components/iftalabel.md +15 -9
  133. package/data/components/image.md +31 -26
  134. package/data/components/imagecompare.md +8 -6
  135. package/data/components/inplace.md +27 -22
  136. package/data/components/inputgroup.md +53 -29
  137. package/data/components/inputmask.md +107 -85
  138. package/data/components/inputnumber.md +127 -89
  139. package/data/components/inputotp.md +55 -42
  140. package/data/components/inputtext.md +72 -50
  141. package/data/components/keyfilter.md +6 -3
  142. package/data/components/knob.md +70 -58
  143. package/data/components/listbox.md +171 -141
  144. package/data/components/megamenu.md +24 -23
  145. package/data/components/menu.md +37 -34
  146. package/data/components/menubar.md +27 -22
  147. package/data/components/message.md +44 -32
  148. package/data/components/metergroup.md +48 -17
  149. package/data/components/multiselect.md +232 -168
  150. package/data/components/orderlist.md +55 -48
  151. package/data/components/organizationchart.md +182 -13
  152. package/data/components/overlay.md +31 -26
  153. package/data/components/paginator.md +49 -34
  154. package/data/components/panel.md +23 -19
  155. package/data/components/panelmenu.md +51 -25
  156. package/data/components/password.md +104 -91
  157. package/data/components/picklist.md +92 -70
  158. package/data/components/popover.md +68 -46
  159. package/data/components/progressbar.md +28 -22
  160. package/data/components/progressspinner.md +13 -11
  161. package/data/components/radiobutton.md +69 -35
  162. package/data/components/rating.md +48 -40
  163. package/data/components/ripple.md +8 -6
  164. package/data/components/scroller.md +29 -29
  165. package/data/components/scrollpanel.md +9 -7
  166. package/data/components/scrolltop.md +20 -18
  167. package/data/components/select.md +248 -169
  168. package/data/components/selectbutton.md +118 -56
  169. package/data/components/skeleton.md +22 -18
  170. package/data/components/slider.md +73 -49
  171. package/data/components/speeddial.md +77 -59
  172. package/data/components/splitbutton.md +354 -329
  173. package/data/components/splitter.md +22 -18
  174. package/data/components/stepper.md +38 -21
  175. package/data/components/styleclass.md +12 -6
  176. package/data/components/table.md +523 -314
  177. package/data/components/tabs.md +44 -26
  178. package/data/components/tag.md +18 -14
  179. package/data/components/terminal.md +38 -27
  180. package/data/components/textarea.md +82 -47
  181. package/data/components/tieredmenu.md +34 -29
  182. package/data/components/timeline.md +29 -28
  183. package/data/components/toast.md +115 -57
  184. package/data/components/togglebutton.md +53 -39
  185. package/data/components/toggleswitch.md +41 -28
  186. package/data/components/toolbar.md +19 -18
  187. package/data/components/tooltip.md +43 -32
  188. package/data/components/tree.md +114 -81
  189. package/data/components/treeselect.md +176 -174
  190. package/data/components/treetable.md +1250 -1045
  191. package/data/components.json +4122 -4080
  192. package/data/llms-full.txt +8784 -6249
  193. package/data/manifest.json +154 -15
  194. package/data/pages/tailwind.md +20 -10
  195. package/data/snapshot.json +2 -2
  196. package/dist/index.d.mts +2 -0
  197. package/dist/index.mjs +3 -3
  198. package/dist/index.mjs.map +1 -1
  199. 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 { ButtonModule } from '@exhaustive-ui/core/button';
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 { MessageService } from '@exhaustive-ui/core/api';
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: [ButtonModule, FileUploadModule, ToastModule],
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 { BadgeModule } from '@exhaustive-ui/core/badge';
140
- import { ButtonModule } from '@exhaustive-ui/core/button';
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 { Exhaustive } from '@exhaustive-ui/core/config';
145
- import { MessageService } from '@exhaustive-ui/core/api';
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, index)" [outlined]="true" [rounded]="true" severity="danger" />
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(index)" [outlined]="true" [rounded]="true" severity="danger" />
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: [BadgeModule, ButtonModule, FileUploadModule, ProgressBarModule, ToastModule],
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
- files: any[] = [];
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 | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
276
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
277
- | pt | InputSignal<FileUploadPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
278
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
279
- | name | InputSignal<string> | ... | Name of the request parameter to identify the files at backend. |
280
- | url | InputSignal<string> | ... | Remote url to upload the files. |
281
- | method | InputSignal<"post" \| "put"> | ... | HTTP method to send the files to the url such as "post" and "put". |
282
- | multiple | InputSignalWithTransform<boolean, unknown> | ... | Used to select multiple files at once from file dialog. |
283
- | accept | InputSignal<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"). |
284
- | disabled | InputSignalWithTransform<boolean, unknown> | ... | Disables the upload functionality. |
285
- | auto | InputSignalWithTransform<boolean, unknown> | ... | When enabled, upload begins automatically after selection is completed. |
286
- | withCredentials | InputSignalWithTransform<boolean, unknown> | ... | Cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. |
287
- | maxFileSize | InputSignalWithTransform<number, unknown> | ... | Maximum file size allowed in bytes. |
288
- | invalidFileSizeMessageSummary | InputSignal<string> | ... | Summary message of the invalid file size. |
289
- | invalidFileSizeMessageDetail | InputSignal<string> | ... | Detail message of the invalid file size. |
290
- | invalidFileTypeMessageSummary | InputSignal<string> | ... | Summary message of the invalid file type. |
291
- | invalidFileTypeMessageDetail | InputSignal<string> | ... | Detail message of the invalid file type. |
292
- | invalidFileLimitMessageDetail | InputSignal<string> | ... | Detail message of the invalid file type. |
293
- | invalidFileLimitMessageSummary | InputSignal<string> | ... | Summary message of the invalid file type. |
294
- | style | InputSignal<{ [klass: string]: any }> | ... | Inline style of the element. |
295
- | styleClass | InputSignal<string> | ... | Class of the element. |
296
- | previewWidth | InputSignalWithTransform<number, unknown> | ... | Width of the image thumbnail in pixels. |
297
- | chooseLabel | InputSignal<string> | ... | Label of the choose button. Defaults to Exhaustive Locale configuration. |
298
- | uploadLabel | InputSignal<string> | ... | Label of the upload button. Defaults to Exhaustive Locale configuration. |
299
- | cancelLabel | InputSignal<string> | ... | Label of the cancel button. Defaults to Exhaustive Locale configuration. |
300
- | chooseIcon | InputSignal<string> | ... | Icon of the choose button. |
301
- | uploadIcon | InputSignal<string> | ... | Icon of the upload button. |
302
- | cancelIcon | InputSignal<string> | ... | Icon of the cancel button. |
303
- | showUploadButton | InputSignalWithTransform<boolean, unknown> | ... | Whether to show the upload button. |
304
- | showCancelButton | InputSignalWithTransform<boolean, unknown> | ... | Whether to show the cancel button. |
305
- | mode | InputSignal<"basic" \| "advanced"> | ... | Defines the UI of the component. |
306
- | headers | InputSignal<HttpHeaders> | ... | HttpHeaders class represents the header configuration options for an HTTP request. |
307
- | customUpload | InputSignalWithTransform<boolean, unknown> | ... | Whether to use the default upload or a manual implementation defined in uploadHandler callback. Defaults to Exhaustive Locale configuration. |
308
- | fileLimit | InputSignalWithTransform<number, unknown> | ... | Maximum number of files that can be uploaded. |
309
- | uploadStyleClass | InputSignal<string> | ... | Style class of the upload button. |
310
- | cancelStyleClass | InputSignal<string> | ... | Style class of the cancel button. |
311
- | chooseStyleClass | InputSignal<string> | ... | Style class of the choose button. |
312
- | chooseButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the choose button inside the component. |
313
- | uploadButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the upload button inside the component. |
314
- | cancelButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the cancel button inside the component. |
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, FormsModule]
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, FormsModule]
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: [FloatLabelModule, SelectModule, InputTextModule, FormsModule]
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
- cities: any[] = ['New York', 'Rome', 'London', 'Istanbul', 'Paris'];
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, FormsModule]
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 | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
172
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
173
- | pt | InputSignal<FloatLabelPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
174
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
175
- | variant | InputSignal<"in" \| "on" \| "over"> | ... | Defines the positioning of the label relative to the input. |
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
 
@@ -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 | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
54
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
55
- | pt | InputSignal<FluidPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
56
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
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 id="accept" [(ngModel)]="accept" name="accept" value="Accept" />
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, FormsModule]
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 | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
61
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
62
- | pt | InputSignal<any> | undefined | Used to pass attributes to DOM elements inside the component. |
63
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
64
- | pFocusTrapDisabled | InputSignalWithTransform<boolean, unknown> | ... | When set as true, focus wouldn't be managed. |
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