@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.
Files changed (205) hide show
  1. package/README.md +13 -1
  2. package/data/cards/accordion.md +91 -0
  3. package/data/cards/animateonscroll.md +155 -0
  4. package/data/cards/autocomplete.md +109 -0
  5. package/data/cards/autofocus.md +36 -0
  6. package/data/cards/avatar.md +45 -0
  7. package/data/cards/badge.md +44 -0
  8. package/data/cards/blockui.md +51 -0
  9. package/data/cards/breadcrumb.md +56 -0
  10. package/data/cards/button.md +83 -0
  11. package/data/cards/card.md +49 -0
  12. package/data/cards/carousel.md +101 -0
  13. package/data/cards/cascadeselect.md +77 -0
  14. package/data/cards/chart.md +105 -0
  15. package/data/cards/checkbox.md +59 -0
  16. package/data/cards/chip.md +50 -0
  17. package/data/cards/classnames.md +91 -0
  18. package/data/cards/colorpicker.md +52 -0
  19. package/data/cards/confirmdialog.md +119 -0
  20. package/data/cards/confirmpopup.md +96 -0
  21. package/data/cards/contextmenu.md +60 -0
  22. package/data/cards/dataview.md +134 -0
  23. package/data/cards/datepicker.md +103 -0
  24. package/data/cards/dialog.md +89 -0
  25. package/data/cards/divider.md +55 -0
  26. package/data/cards/dock.md +106 -0
  27. package/data/cards/dragdrop.md +106 -0
  28. package/data/cards/drawer.md +62 -0
  29. package/data/cards/dynamicdialog.md +103 -0
  30. package/data/cards/editor.md +55 -0
  31. package/data/cards/fieldset.md +54 -0
  32. package/data/cards/fileinput.md +72 -0
  33. package/data/cards/fileupload.md +88 -0
  34. package/data/cards/floatlabel.md +41 -0
  35. package/data/cards/fluid.md +49 -0
  36. package/data/cards/focustrap.md +64 -0
  37. package/data/cards/galleria.md +94 -0
  38. package/data/cards/iconfield.md +45 -0
  39. package/data/cards/iftalabel.md +38 -0
  40. package/data/cards/image.md +58 -0
  41. package/data/cards/imagecompare.md +45 -0
  42. package/data/cards/inplace.md +56 -0
  43. package/data/cards/inputgroup.md +77 -0
  44. package/data/cards/inputmask.md +71 -0
  45. package/data/cards/inputnumber.md +78 -0
  46. package/data/cards/inputotp.md +60 -0
  47. package/data/cards/inputtext.md +41 -0
  48. package/data/cards/keyfilter.md +49 -0
  49. package/data/cards/knob.md +55 -0
  50. package/data/cards/listbox.md +105 -0
  51. package/data/cards/megamenu.md +96 -0
  52. package/data/cards/menu.md +64 -0
  53. package/data/cards/menubar.md +102 -0
  54. package/data/cards/message.md +51 -0
  55. package/data/cards/metergroup.md +53 -0
  56. package/data/cards/multiselect.md +115 -0
  57. package/data/cards/orderlist.md +96 -0
  58. package/data/cards/organizationchart.md +84 -0
  59. package/data/cards/overlay.md +63 -0
  60. package/data/cards/paginator.md +62 -0
  61. package/data/cards/panel.md +57 -0
  62. package/data/cards/panelmenu.md +94 -0
  63. package/data/cards/password.md +81 -0
  64. package/data/cards/picklist.md +106 -0
  65. package/data/cards/popover.md +53 -0
  66. package/data/cards/progressbar.md +42 -0
  67. package/data/cards/progressspinner.md +38 -0
  68. package/data/cards/radiobutton.md +52 -0
  69. package/data/cards/rating.md +56 -0
  70. package/data/cards/ripple.md +37 -0
  71. package/data/cards/scroller.md +32 -0
  72. package/data/cards/scrollpanel.md +50 -0
  73. package/data/cards/scrolltop.md +48 -0
  74. package/data/cards/select.md +108 -0
  75. package/data/cards/selectbutton.md +64 -0
  76. package/data/cards/skeleton.md +54 -0
  77. package/data/cards/slider.md +52 -0
  78. package/data/cards/speeddial.md +102 -0
  79. package/data/cards/splitbutton.md +96 -0
  80. package/data/cards/splitter.md +52 -0
  81. package/data/cards/stepper.md +125 -0
  82. package/data/cards/styleclass.md +46 -0
  83. package/data/cards/table.md +305 -0
  84. package/data/cards/tabs.md +97 -0
  85. package/data/cards/tag.md +41 -0
  86. package/data/cards/terminal.md +76 -0
  87. package/data/cards/textarea.md +45 -0
  88. package/data/cards/tieredmenu.md +121 -0
  89. package/data/cards/timeline.md +58 -0
  90. package/data/cards/toast.md +58 -0
  91. package/data/cards/togglebutton.md +59 -0
  92. package/data/cards/toggleswitch.md +52 -0
  93. package/data/cards/toolbar.md +74 -0
  94. package/data/cards/tooltip.md +43 -0
  95. package/data/cards/tree.md +93 -0
  96. package/data/cards/treeselect.md +98 -0
  97. package/data/cards/treetable.md +231 -0
  98. package/data/components/accordion.md +31 -23
  99. package/data/components/animateonscroll.md +18 -15
  100. package/data/components/autocomplete.md +162 -93
  101. package/data/components/autofocus.md +9 -7
  102. package/data/components/avatar.md +56 -43
  103. package/data/components/badge.md +27 -18
  104. package/data/components/blockui.md +15 -8
  105. package/data/components/breadcrumb.md +20 -14
  106. package/data/components/button.md +121 -94
  107. package/data/components/card.md +12 -10
  108. package/data/components/carousel.md +75 -53
  109. package/data/components/cascadeselect.md +271 -238
  110. package/data/components/chart.md +88 -74
  111. package/data/components/checkbox.md +107 -97
  112. package/data/components/chip.md +20 -16
  113. package/data/components/classnames.md +22 -4
  114. package/data/components/colorpicker.md +54 -36
  115. package/data/components/confirmdialog.md +146 -43
  116. package/data/components/confirmpopup.md +95 -22
  117. package/data/components/contextmenu.md +110 -39
  118. package/data/components/dataview.md +176 -83
  119. package/data/components/datepicker.md +171 -141
  120. package/data/components/dialog.md +80 -68
  121. package/data/components/divider.md +17 -12
  122. package/data/components/dock.md +65 -29
  123. package/data/components/dragdrop.md +26 -12
  124. package/data/components/drawer.md +67 -48
  125. package/data/components/dynamicdialog.md +22 -13
  126. package/data/components/editor.md +42 -33
  127. package/data/components/fieldset.md +20 -17
  128. package/data/components/fileinput.md +92 -35
  129. package/data/components/fileupload.md +101 -61
  130. package/data/components/floatlabel.md +20 -11
  131. package/data/components/fluid.md +11 -9
  132. package/data/components/focustrap.md +11 -7
  133. package/data/components/galleria.md +231 -90
  134. package/data/components/iconfield.md +23 -15
  135. package/data/components/iftalabel.md +15 -9
  136. package/data/components/image.md +31 -26
  137. package/data/components/imagecompare.md +8 -6
  138. package/data/components/inplace.md +27 -22
  139. package/data/components/inputgroup.md +53 -29
  140. package/data/components/inputmask.md +107 -85
  141. package/data/components/inputnumber.md +128 -90
  142. package/data/components/inputotp.md +55 -42
  143. package/data/components/inputtext.md +72 -50
  144. package/data/components/keyfilter.md +6 -3
  145. package/data/components/knob.md +70 -58
  146. package/data/components/listbox.md +171 -141
  147. package/data/components/llms.md +4 -0
  148. package/data/components/megamenu.md +24 -23
  149. package/data/components/menu.md +37 -34
  150. package/data/components/menubar.md +27 -22
  151. package/data/components/message.md +44 -32
  152. package/data/components/metergroup.md +48 -17
  153. package/data/components/multiselect.md +232 -168
  154. package/data/components/orderlist.md +55 -48
  155. package/data/components/organizationchart.md +182 -13
  156. package/data/components/overlay.md +31 -26
  157. package/data/components/paginator.md +49 -34
  158. package/data/components/panel.md +23 -19
  159. package/data/components/panelmenu.md +51 -25
  160. package/data/components/password.md +104 -91
  161. package/data/components/picklist.md +93 -71
  162. package/data/components/popover.md +68 -46
  163. package/data/components/progressbar.md +28 -22
  164. package/data/components/progressspinner.md +13 -11
  165. package/data/components/radiobutton.md +69 -35
  166. package/data/components/rating.md +48 -40
  167. package/data/components/ripple.md +8 -6
  168. package/data/components/scroller.md +29 -29
  169. package/data/components/scrollpanel.md +9 -7
  170. package/data/components/scrolltop.md +20 -18
  171. package/data/components/select.md +248 -169
  172. package/data/components/selectbutton.md +118 -56
  173. package/data/components/skeleton.md +22 -18
  174. package/data/components/slider.md +73 -49
  175. package/data/components/speeddial.md +77 -59
  176. package/data/components/splitbutton.md +354 -329
  177. package/data/components/splitter.md +22 -18
  178. package/data/components/stepper.md +38 -21
  179. package/data/components/styleclass.md +12 -6
  180. package/data/components/table.md +524 -315
  181. package/data/components/tabs.md +44 -26
  182. package/data/components/tag.md +18 -14
  183. package/data/components/terminal.md +38 -27
  184. package/data/components/textarea.md +82 -47
  185. package/data/components/tieredmenu.md +34 -29
  186. package/data/components/timeline.md +29 -28
  187. package/data/components/toast.md +115 -57
  188. package/data/components/togglebutton.md +53 -39
  189. package/data/components/toggleswitch.md +41 -28
  190. package/data/components/toolbar.md +19 -18
  191. package/data/components/tooltip.md +43 -32
  192. package/data/components/tree.md +114 -81
  193. package/data/components/treeselect.md +176 -174
  194. package/data/components/treetable.md +1250 -1045
  195. package/data/components.json +4134 -4088
  196. package/data/llms-full.txt +8979 -6437
  197. package/data/llms.txt +100 -96
  198. package/data/manifest.json +183 -15
  199. package/data/pages/llms.md +29 -0
  200. package/data/pages/tailwind.md +20 -10
  201. package/data/snapshot.json +2 -2
  202. package/dist/index.d.mts +37 -2
  203. package/dist/index.mjs +1395 -1079
  204. package/dist/index.mjs.map +1 -1
  205. package/package.json +1 -1
@@ -14,6 +14,7 @@ Spinner buttons are enabled using the showButtons options and layout is defined
14
14
  import { Component } from '@angular/core';
15
15
  import { FormsModule } from '@angular/forms';
16
16
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
17
+ import { FluidModule } from '@exhaustive-ui/core/fluid';
17
18
 
18
19
  @Component({
19
20
  template: `
@@ -28,7 +29,7 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
28
29
  </div>
29
30
  <div class="flex-auto">
30
31
  <label class="mb-2 block font-bold" for="horizontal">Horizontal with Step</label>
31
- <p-input-number [(ngModel)]="value3" [showButtons]="true" buttonLayout="horizontal" inputId="horizontal" spinnerMode="horizontal" [step]="0.25" mode="currency" currency="EUR">
32
+ <p-input-number [(ngModel)]="value3" [showButtons]="true" buttonLayout="horizontal" inputId="horizontal" [step]="0.25" mode="currency" currency="EUR">
32
33
  <ng-template #incrementbuttonicon>
33
34
  <span class="pi pi-plus"></span>
34
35
  </ng-template>
@@ -40,11 +41,13 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
40
41
  </p-fluid>
41
42
  `,
42
43
  standalone: true,
43
- imports: [InputNumberModule, FormsModule]
44
+ imports: [FormsModule, InputNumberModule, FluidModule]
44
45
  })
45
46
  export class InputnumberButtonsDemo {
46
47
  value1: number = 20;
48
+
47
49
  value2: number = 10.5;
50
+
48
51
  value3: number = 25;
49
52
  }
50
53
  ```
@@ -56,6 +59,7 @@ When showClear is enabled, a clear icon is displayed to clear the value.
56
59
  ```typescript
57
60
  import { Component } from '@angular/core';
58
61
  import { FormsModule } from '@angular/forms';
62
+ import { RouterModule } from '@angular/router';
59
63
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
60
64
 
61
65
  @Component({
@@ -65,7 +69,7 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
65
69
  </div>
66
70
  `,
67
71
  standalone: true,
68
- imports: [InputNumberModule, FormsModule]
72
+ imports: [FormsModule, RouterModule, InputNumberModule]
69
73
  })
70
74
  export class InputnumberCleariconDemo {
71
75
  value: number | undefined;
@@ -80,6 +84,7 @@ Currency formatting is specified by setting the mode option to currency and curr
80
84
  import { Component } from '@angular/core';
81
85
  import { FormsModule } from '@angular/forms';
82
86
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
87
+ import { FluidModule } from '@exhaustive-ui/core/fluid';
83
88
 
84
89
  @Component({
85
90
  template: `
@@ -103,12 +108,15 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
103
108
  </p-fluid>
104
109
  `,
105
110
  standalone: true,
106
- imports: [InputNumberModule, FormsModule]
111
+ imports: [FormsModule, InputNumberModule, FluidModule]
107
112
  })
108
113
  export class InputnumberCurrencyDemo {
109
114
  value1: number = 1500;
115
+
110
116
  value2: number = 2500;
117
+
111
118
  value3: number = 4250;
119
+
112
120
  value4: number = 5002;
113
121
  }
114
122
  ```
@@ -129,7 +137,7 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
129
137
  </div>
130
138
  `,
131
139
  standalone: true,
132
- imports: [InputNumberModule, FormsModule]
140
+ imports: [FormsModule, InputNumberModule]
133
141
  })
134
142
  export class InputnumberDisabledDemo {
135
143
  value1: number = 50;
@@ -148,11 +156,11 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
148
156
  @Component({
149
157
  template: `
150
158
  <div class="card flex justify-center">
151
- <p-input-number variant="filled" [(ngModel)]="value1" />
159
+ <p-input-number variant="filled" [(ngModel)]="value1" ariaLabel="Quantity" />
152
160
  </div>
153
161
  `,
154
162
  standalone: true,
155
- imports: [InputNumberModule, FormsModule]
163
+ imports: [FormsModule, InputNumberModule]
156
164
  })
157
165
  export class InputnumberFilledDemo {
158
166
  value1!: number;
@@ -166,8 +174,9 @@ A floating label appears on top of the input field when focused. Visit FloatLabe
166
174
  ```typescript
167
175
  import { Component } from '@angular/core';
168
176
  import { FormsModule } from '@angular/forms';
169
- import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
177
+ import { RouterModule } from '@angular/router';
170
178
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
179
+ import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
171
180
 
172
181
  @Component({
173
182
  template: `
@@ -187,11 +196,13 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
187
196
  </div>
188
197
  `,
189
198
  standalone: true,
190
- imports: [FloatLabelModule, InputNumberModule, FormsModule]
199
+ imports: [FormsModule, RouterModule, InputNumberModule, FloatLabelModule]
191
200
  })
192
201
  export class InputnumberFloatlabelDemo {
193
202
  value1: number | undefined;
203
+
194
204
  value2: number | undefined;
205
+
195
206
  value3: number | undefined;
196
207
  }
197
208
  ```
@@ -203,6 +214,7 @@ The fluid prop makes the component take up the full width of its container when
203
214
  ```typescript
204
215
  import { Component } from '@angular/core';
205
216
  import { FormsModule } from '@angular/forms';
217
+ import { RouterModule } from '@angular/router';
206
218
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
207
219
 
208
220
  @Component({
@@ -212,7 +224,7 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
212
224
  </div>
213
225
  `,
214
226
  standalone: true,
215
- imports: [InputNumberModule, FormsModule]
227
+ imports: [FormsModule, RouterModule, InputNumberModule]
216
228
  })
217
229
  export class InputnumberFluidDemo {
218
230
  value: number | undefined;
@@ -226,8 +238,9 @@ IftaLabel is used to create infield top aligned labels. Visit IftaLabel document
226
238
  ```typescript
227
239
  import { Component } from '@angular/core';
228
240
  import { FormsModule } from '@angular/forms';
229
- import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
241
+ import { RouterModule } from '@angular/router';
230
242
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
243
+ import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
231
244
 
232
245
  @Component({
233
246
  template: `
@@ -239,7 +252,7 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
239
252
  </div>
240
253
  `,
241
254
  standalone: true,
242
- imports: [IftaLabelModule, InputNumberModule, FormsModule]
255
+ imports: [FormsModule, RouterModule, InputNumberModule, IftaLabelModule]
243
256
  })
244
257
  export class InputnumberIftalabelDemo {
245
258
  value: number | undefined;
@@ -258,15 +271,16 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
258
271
  @Component({
259
272
  template: `
260
273
  <div class="card flex flex-wrap justify-center gap-4">
261
- <p-input-number [(ngModel)]="value1" [invalid]="value1 === undefined" mode="decimal" [minFractionDigits]="2" placeholder="Amount" />
262
- <p-input-number [(ngModel)]="value2" [invalid]="value2 === undefined" mode="decimal" [minFractionDigits]="2" variant="filled" placeholder="Amount" />
274
+ <p-input-number [(ngModel)]="value1" [invalid]="value1 === undefined" mode="decimal" [minFractionDigits]="2" placeholder="Amount" ariaLabel="Amount" />
275
+ <p-input-number [(ngModel)]="value2" [invalid]="value2 === undefined" mode="decimal" [minFractionDigits]="2" variant="filled" placeholder="Amount" ariaLabel="Amount" />
263
276
  </div>
264
277
  `,
265
278
  standalone: true,
266
- imports: [InputNumberModule, FormsModule]
279
+ imports: [FormsModule, InputNumberModule]
267
280
  })
268
281
  export class InputnumberInvalidDemo {
269
282
  value1!: number;
283
+
270
284
  value2!: number;
271
285
  }
272
286
  ```
@@ -279,6 +293,7 @@ Localization information such as grouping and decimal symbols are defined with t
279
293
  import { Component } from '@angular/core';
280
294
  import { FormsModule } from '@angular/forms';
281
295
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
296
+ import { FluidModule } from '@exhaustive-ui/core/fluid';
282
297
 
283
298
  @Component({
284
299
  template: `
@@ -302,12 +317,15 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
302
317
  </p-fluid>
303
318
  `,
304
319
  standalone: true,
305
- imports: [InputNumberModule, FormsModule]
320
+ imports: [FormsModule, InputNumberModule, FluidModule]
306
321
  })
307
322
  export class InputnumberLocaleDemo {
308
323
  value1: number = 151351;
324
+
309
325
  value2: number = 115744;
326
+
310
327
  value3: number = 635524;
328
+
311
329
  value4: number = 732762;
312
330
  }
313
331
  ```
@@ -320,6 +338,7 @@ InputNumber is used as a controlled input with ngModel property.
320
338
  import { Component } from '@angular/core';
321
339
  import { FormsModule } from '@angular/forms';
322
340
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
341
+ import { FluidModule } from '@exhaustive-ui/core/fluid';
323
342
 
324
343
  @Component({
325
344
  template: `
@@ -343,12 +362,15 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
343
362
  </p-fluid>
344
363
  `,
345
364
  standalone: true,
346
- imports: [InputNumberModule, FormsModule]
365
+ imports: [FormsModule, InputNumberModule, FluidModule]
347
366
  })
348
367
  export class InputnumberNumeralsDemo {
349
368
  value1: number = 42723;
369
+
350
370
  value2: number = 58151;
371
+
351
372
  value3: number = 2351.35;
373
+
352
374
  value4: number = 50;
353
375
  }
354
376
  ```
@@ -361,6 +383,7 @@ Custom texts e.g. units can be placed before or after the input section with the
361
383
  import { Component } from '@angular/core';
362
384
  import { FormsModule } from '@angular/forms';
363
385
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
386
+ import { FluidModule } from '@exhaustive-ui/core/fluid';
364
387
 
365
388
  @Component({
366
389
  template: `
@@ -384,12 +407,15 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
384
407
  </p-fluid>
385
408
  `,
386
409
  standalone: true,
387
- imports: [InputNumberModule, FormsModule]
410
+ imports: [FormsModule, InputNumberModule, FluidModule]
388
411
  })
389
412
  export class InputnumberPrefixsuffixDemo {
390
413
  value1: number = 20;
414
+
391
415
  value2: number = 50;
416
+
392
417
  value3: number = 10;
418
+
393
419
  value4: number = 20;
394
420
  }
395
421
  ```
@@ -400,12 +426,12 @@ InputNumber can also be used with reactive forms. In this case, the formControlN
400
426
 
401
427
  ```typescript
402
428
  import { Component, inject } from '@angular/core';
403
- import { ReactiveFormsModule } from '@angular/forms';
429
+ import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
430
+ import { MessageService } from '@exhaustive-ui/core/api';
404
431
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
405
- import { MessageModule } from '@exhaustive-ui/core/message';
406
- import { ToastModule } from '@exhaustive-ui/core/toast';
407
432
  import { ButtonModule } from '@exhaustive-ui/core/button';
408
- import { MessageService } from '@exhaustive-ui/core/api';
433
+ import { ToastModule } from '@exhaustive-ui/core/toast';
434
+ import { MessageModule } from '@exhaustive-ui/core/message';
409
435
 
410
436
  @Component({
411
437
  template: `
@@ -423,17 +449,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
423
449
  </div>
424
450
  `,
425
451
  standalone: true,
426
- imports: [InputNumberModule, MessageModule, ToastModule, ButtonModule, ReactiveFormsModule]
452
+ imports: [ReactiveFormsModule, InputNumberModule, ButtonModule, ToastModule, MessageModule],
453
+ providers: [MessageService]
427
454
  })
428
455
  export class InputnumberReactiveformsDemo {
456
+ private fb = inject(FormBuilder);
457
+
429
458
  messageService = inject(MessageService);
459
+
430
460
  exampleForm: FormGroup | undefined;
431
- formSubmitted: boolean = false;
461
+
462
+ formSubmitted = false;
432
463
 
433
464
  constructor() {
434
465
  this.exampleForm = this.fb.group({
435
- value: [undefined, Validators.required]
436
- });
466
+ value: [undefined, Validators.required]
467
+ });
437
468
  }
438
469
 
439
470
  onSubmit() {
@@ -459,11 +490,11 @@ InputNumber can also be used with Angular Signal Forms , the @angular/forms/sign
459
490
  ```typescript
460
491
  import { Component, inject, signal } from '@angular/core';
461
492
  import { form, FormField, required, submit } from '@angular/forms/signals';
493
+ import { MessageService } from '@exhaustive-ui/core/api';
462
494
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
463
- import { MessageModule } from '@exhaustive-ui/core/message';
464
- import { ToastModule } from '@exhaustive-ui/core/toast';
465
495
  import { ButtonModule } from '@exhaustive-ui/core/button';
466
- import { MessageService } from '@exhaustive-ui/core/api';
496
+ import { ToastModule } from '@exhaustive-ui/core/toast';
497
+ import { MessageModule } from '@exhaustive-ui/core/message';
467
498
 
468
499
  @Component({
469
500
  template: `
@@ -482,11 +513,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
482
513
  </div>
483
514
  `,
484
515
  standalone: true,
485
- imports: [InputNumberModule, MessageModule, ToastModule, ButtonModule, FormField]
516
+ imports: [FormField, InputNumberModule, ButtonModule, ToastModule, MessageModule],
517
+ providers: [MessageService]
486
518
  })
487
519
  export class InputnumberSignalformsDemo {
488
520
  messageService = inject(MessageService);
521
+
489
522
  model = signal<{ value: number | null }>({ value: null });
523
+
490
524
  exampleForm = form(this.model, (f) => {
491
525
  required(f.value);
492
526
  });
@@ -513,17 +547,19 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
513
547
  @Component({
514
548
  template: `
515
549
  <div class="card flex flex-col items-center gap-4">
516
- <p-input-number [(ngModel)]="value1" size="small" placeholder="Small" mode="currency" currency="USD" locale="en-US" />
517
- <p-input-number [(ngModel)]="value2" placeholder="Normal" mode="currency" currency="USD" locale="en-US" />
518
- <p-input-number [(ngModel)]="value3" size="large" placeholder="Large" mode="currency" currency="USD" locale="en-US" />
550
+ <p-input-number [(ngModel)]="value1" size="small" placeholder="Small" mode="currency" currency="USD" locale="en-US" ariaLabel="Small" />
551
+ <p-input-number [(ngModel)]="value2" placeholder="Normal" mode="currency" currency="USD" locale="en-US" ariaLabel="Normal" />
552
+ <p-input-number [(ngModel)]="value3" size="large" placeholder="Large" mode="currency" currency="USD" locale="en-US" ariaLabel="Large" />
519
553
  </div>
520
554
  `,
521
555
  standalone: true,
522
- imports: [InputNumberModule, FormsModule]
556
+ imports: [FormsModule, InputNumberModule]
523
557
  })
524
558
  export class InputnumberSizesDemo {
525
559
  value1!: number;
560
+
526
561
  value2!: number;
562
+
527
563
  value3!: number;
528
564
  }
529
565
  ```
@@ -533,11 +569,11 @@ export class InputnumberSizesDemo {
533
569
  ```typescript
534
570
  import { Component, inject } from '@angular/core';
535
571
  import { FormsModule } from '@angular/forms';
572
+ import { MessageService } from '@exhaustive-ui/core/api';
536
573
  import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
537
- import { MessageModule } from '@exhaustive-ui/core/message';
538
- import { ToastModule } from '@exhaustive-ui/core/toast';
539
574
  import { ButtonModule } from '@exhaustive-ui/core/button';
540
- import { MessageService } from '@exhaustive-ui/core/api';
575
+ import { ToastModule } from '@exhaustive-ui/core/toast';
576
+ import { MessageModule } from '@exhaustive-ui/core/message';
541
577
 
542
578
  @Component({
543
579
  template: `
@@ -555,10 +591,12 @@ import { MessageService } from '@exhaustive-ui/core/api';
555
591
  </div>
556
592
  `,
557
593
  standalone: true,
558
- imports: [InputNumberModule, MessageModule, ToastModule, ButtonModule, FormsModule]
594
+ imports: [FormsModule, InputNumberModule, ButtonModule, ToastModule, MessageModule],
595
+ providers: [MessageService]
559
596
  })
560
597
  export class InputnumberTemplatedrivenformsDemo {
561
598
  messageService = inject(MessageService);
599
+
562
600
  value: any;
563
601
 
564
602
  onSubmit(form: any) {
@@ -582,7 +620,7 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
582
620
  @Component({
583
621
  template: `
584
622
  <div class="card flex justify-center">
585
- <p-input-number [(ngModel)]="value1" [showButtons]="true" buttonLayout="vertical" spinnerMode="vertical" inputId="vertical" [inputStyle]="{ width: '3rem' }">
623
+ <p-input-number [(ngModel)]="value1" [showButtons]="true" buttonLayout="vertical" inputId="vertical" ariaLabel="Quantity" [inputStyle]="{ width: '3rem' }">
586
624
  <ng-template #incrementbuttonicon>
587
625
  <span class="pi pi-plus"></span>
588
626
  </ng-template>
@@ -593,7 +631,7 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
593
631
  </div>
594
632
  `,
595
633
  standalone: true,
596
- imports: [InputNumberModule, FormsModule]
634
+ imports: [FormsModule, InputNumberModule]
597
635
  })
598
636
  export class InputnumberVerticalDemo {
599
637
  value1: number = 50;
@@ -608,56 +646,56 @@ InputNumber is an input component to provide numerical input.
608
646
 
609
647
  | Name | Type | Default | Description |
610
648
  |------|------|---------|-------------|
611
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
612
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
613
- | pt | InputSignal<InputNumberPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
614
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
615
- | required | InputSignalWithTransform<boolean, unknown> | false | There must be a value (if set). |
616
- | invalid | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have invalid state style. |
617
- | disabled | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have disabled state style. |
618
- | name | InputSignal<string> | undefined | When present, it specifies that the name of the input. |
619
- | fluid | InputSignalWithTransform<boolean, unknown> | false | Spans 100% width of the container when enabled. |
620
- | variant | InputSignal<"outlined" \| "filled"> | 'outlined' | Specifies the input variant of the component. |
621
- | size | InputSignal<"small" \| "large"> | undefined | Specifies the size of the component. |
622
- | inputSize | InputSignal<number> | undefined | Specifies the visible width of the input element in characters. |
623
- | pattern | InputSignalWithTransform<string, string \| readonly RegExp[]> | undefined | Specifies the value must match the pattern. |
624
- | min | InputSignalWithTransform<number, unknown> | undefined | The value must be greater than or equal to the value. |
625
- | max | InputSignalWithTransform<number, unknown> | undefined | The value must be less than or equal to the value. |
626
- | step | InputSignal<number> | undefined | Unless the step is set to the any literal, the value must be min + an integral multiple of the step. |
627
- | minlength | InputSignal<number> | undefined | The number of characters (code points) must not be less than the value of the attribute, if non-empty. |
628
- | maxlength | InputSignal<number> | undefined | The number of characters (code points) must not exceed the value of the attribute. |
629
- | showButtons | InputSignalWithTransform<boolean, unknown> | ... | Displays spinner buttons. |
630
- | format | InputSignalWithTransform<boolean, unknown> | ... | Whether to format the value. |
631
- | buttonLayout | InputSignal<string> | ... | Layout of the buttons, valid values are "stacked" (default), "horizontal" and "vertical". |
632
- | inputId | InputSignal<string> | ... | Identifier of the focus input to match a label defined for the component. |
633
- | placeholder | InputSignal<string> | ... | Advisory information to display on input. |
634
- | tabindex | InputSignalWithTransform<number, unknown> | ... | Specifies tab order of the element. |
635
- | title | InputSignal<string> | ... | Title text of the input text. |
636
- | ariaLabelledBy | InputSignal<string> | ... | Specifies one or more IDs in the DOM that labels the input field. |
637
- | ariaDescribedBy | InputSignal<string> | ... | Specifies one or more IDs in the DOM that describes the input field. |
638
- | ariaLabel | InputSignal<string> | ... | Used to define a string that labels the input element. |
639
- | ariaRequired | InputSignalWithTransform<boolean, unknown> | ... | Used to indicate that user input is required on an element before a form can be submitted. |
640
- | autocomplete | InputSignal<string> | ... | Used to define a string that autocomplete attribute the current element. |
641
- | incrementButtonClass | InputSignal<string> | ... | Style class of the increment button. |
642
- | decrementButtonClass | InputSignal<string> | ... | Style class of the decrement button. |
643
- | incrementButtonIcon | InputSignal<string> | ... | Style class of the increment button. |
644
- | decrementButtonIcon | InputSignal<string> | ... | Style class of the decrement button. |
645
- | readonly | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that an input field is read-only. |
646
- | allowEmpty | InputSignalWithTransform<boolean, unknown> | ... | Determines whether the input field is empty. |
647
- | locale | InputSignal<string> | ... | Locale to be used in formatting. |
648
- | localeMatcher | InputSignal<any> | ... | The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". See Locale Negotiation for details. |
649
- | mode | InputSignal<any> | ... | Defines the behavior of the component, valid values are "decimal" and "currency". |
650
- | currency | InputSignal<string> | ... | The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB. There is no default value; if the style is "currency", the currency property must be provided. |
651
- | currencyDisplay | InputSignal<any> | ... | How to display the currency in currency formatting. Possible values are "symbol" to use a localized currency symbol such as €, ü"code" to use the ISO currency code, "name" to use a localized currency name such as "dollar"; the default is "symbol". |
652
- | useGrouping | InputSignalWithTransform<boolean, unknown> | ... | Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. |
653
- | minFractionDigits | InputSignalWithTransform<number, unknown> | ... | The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information). |
654
- | maxFractionDigits | InputSignalWithTransform<number, unknown> | ... | The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information). |
655
- | prefix | InputSignal<string> | ... | Text to display before the value. |
656
- | suffix | InputSignal<string> | ... | Text to display after the value. |
657
- | inputStyle | InputSignal<any> | ... | Inline style of the input field. |
658
- | inputStyleClass | InputSignal<string> | ... | Style class of the input field. |
659
- | showClear | InputSignalWithTransform<boolean, unknown> | ... | When enabled, a clear icon is displayed to clear the value. |
660
- | autofocus | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the component should automatically get focus on load. |
649
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
650
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
651
+ | pt | InputNumberPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
652
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
653
+ | required | boolean | false | There must be a value (if set). |
654
+ | invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
655
+ | disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
656
+ | name | string | undefined | When present, it specifies that the name of the input. |
657
+ | fluid | boolean | false | Spans 100% width of the container when enabled. |
658
+ | variant | "outlined" \| "filled" | 'outlined' | Specifies the input variant of the component. |
659
+ | size | "small" \| "large" | undefined | Specifies the size of the component. |
660
+ | inputSize | number | undefined | Specifies the visible width of the input element in characters. |
661
+ | pattern | string | undefined | Specifies the value must match the pattern. |
662
+ | min | number | undefined | The value must be greater than or equal to the value. |
663
+ | max | number | undefined | The value must be less than or equal to the value. |
664
+ | step | number | undefined | Unless the step is set to the any literal, the value must be min + an integral multiple of the step. |
665
+ | minlength | number | undefined | The number of characters (code points) must not be less than the value of the attribute, if non-empty. |
666
+ | maxlength | number | undefined | The number of characters (code points) must not exceed the value of the attribute. |
667
+ | showButtons | boolean | false | Displays spinner buttons. |
668
+ | format | boolean | true | Whether to format the value. |
669
+ | buttonLayout | string | 'stacked' | Layout of the buttons, valid values are "stacked" (default), "horizontal" and "vertical". |
670
+ | inputId | string | - | Identifier of the focus input to match a label defined for the component. |
671
+ | placeholder | string | - | Advisory information to display on input. |
672
+ | tabindex | number | - | Specifies tab order of the element. |
673
+ | title | string | - | Title text of the input text. |
674
+ | ariaLabelledBy | string | - | Specifies one or more IDs in the DOM that labels the input field. |
675
+ | ariaDescribedBy | string | - | Specifies one or more IDs in the DOM that describes the input field. |
676
+ | ariaLabel | string | - | Used to define a string that labels the input element. |
677
+ | ariaRequired | boolean | - | Used to indicate that user input is required on an element before a form can be submitted. |
678
+ | autocomplete | string | - | Used to define a string that autocomplete attribute the current element. |
679
+ | incrementButtonClass | string | - | Style class of the increment button. |
680
+ | decrementButtonClass | string | - | Style class of the decrement button. |
681
+ | incrementButtonIcon | string | - | Style class of the increment button. |
682
+ | decrementButtonIcon | string | - | Style class of the decrement button. |
683
+ | readonly | boolean | - | When present, it specifies that an input field is read-only. |
684
+ | allowEmpty | boolean | true | Determines whether the input field is empty. |
685
+ | locale | string | - | Locale to be used in formatting. |
686
+ | localeMatcher | any | - | The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". See Locale Negotiation for details. |
687
+ | mode | any | 'decimal' | Defines the behavior of the component, valid values are "decimal" and "currency". |
688
+ | currency | string | - | The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB. There is no default value; if the style is "currency", the currency property must be provided. |
689
+ | currencyDisplay | any | - | How to display the currency in currency formatting. Possible values are "symbol" to use a localized currency symbol such as €, "code" to use the ISO currency code, "name" to use a localized currency name such as "dollar"; the default is "symbol". |
690
+ | useGrouping | boolean | true | Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. |
691
+ | minFractionDigits | number | - | The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information). |
692
+ | maxFractionDigits | number | - | The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information). |
693
+ | prefix | string | - | Text to display before the value. |
694
+ | suffix | string | - | Text to display after the value. |
695
+ | inputStyle | any | - | Inline style of the input field. |
696
+ | inputStyleClass | string | - | Style class of the input field. |
697
+ | showClear | boolean | false | When enabled, a clear icon is displayed to clear the value. |
698
+ | autofocus | boolean | - | When present, it specifies that the component should automatically get focus on load. |
661
699
 
662
700
  ### Emits
663
701