@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
@@ -18,11 +18,11 @@ import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
18
18
  @Component({
19
19
  template: `
20
20
  <div class="card flex justify-center gap-4">
21
- <p-checkbox [(ngModel)]="checked" [binary]="true" />
21
+ <p-checkbox [(ngModel)]="checked" [binary]="true" ariaLabel="Accept" />
22
22
  </div>
23
23
  `,
24
24
  standalone: true,
25
- imports: [CheckboxModule, FormsModule]
25
+ imports: [FormsModule, CheckboxModule]
26
26
  })
27
27
  export class CheckboxBasicDemo {
28
28
  checked: any = null;
@@ -41,15 +41,16 @@ import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
41
41
  @Component({
42
42
  template: `
43
43
  <div class="card flex justify-center gap-2">
44
- <p-checkbox [(ngModel)]="checked1" [binary]="true" [disabled]="true" />
45
- <p-checkbox [(ngModel)]="checked2" [binary]="true" [disabled]="true" />
44
+ <p-checkbox [(ngModel)]="checked1" [binary]="true" ariaLabel="Unchecked option" [disabled]="true" />
45
+ <p-checkbox [(ngModel)]="checked2" [binary]="true" ariaLabel="Checked option" [disabled]="true" />
46
46
  </div>
47
47
  `,
48
48
  standalone: true,
49
- imports: [CheckboxModule, FormsModule]
49
+ imports: [FormsModule, CheckboxModule]
50
50
  })
51
51
  export class CheckboxDisabledDemo {
52
52
  checked1: boolean = false;
53
+
53
54
  checked2: boolean = true;
54
55
  }
55
56
  ```
@@ -59,7 +60,8 @@ export class CheckboxDisabledDemo {
59
60
  Checkboxes can be generated using a list of values.
60
61
 
61
62
  ```typescript
62
- import { Component, OnInit } from '@angular/core';
63
+ import { Component } from '@angular/core';
64
+ import { CommonModule } from '@angular/common';
63
65
  import { FormsModule } from '@angular/forms';
64
66
  import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
65
67
 
@@ -75,11 +77,17 @@ import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
75
77
  </div>
76
78
  `,
77
79
  standalone: true,
78
- imports: [CheckboxModule, FormsModule]
80
+ imports: [CommonModule, FormsModule, CheckboxModule]
79
81
  })
80
- export class CheckboxDynamicDemo implements OnInit {
82
+ export class CheckboxDynamicDemo {
81
83
  selectedCategories: any[] = [];
82
- categories: any[];
84
+
85
+ categories: any[] = [
86
+ { name: 'Accounting', key: 'A' },
87
+ { name: 'Marketing', key: 'M' },
88
+ { name: 'Production', key: 'P' },
89
+ { name: 'Research', key: 'R' }
90
+ ];
83
91
 
84
92
  ngOnInit() {
85
93
  this.selectedCategories = [this.categories[1]];
@@ -99,11 +107,11 @@ import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
99
107
  @Component({
100
108
  template: `
101
109
  <div class="card flex justify-center">
102
- <p-checkbox [(ngModel)]="checked" [binary]="true" variant="filled" />
110
+ <p-checkbox [(ngModel)]="checked" [binary]="true" variant="filled" ariaLabel="Accept" />
103
111
  </div>
104
112
  `,
105
113
  standalone: true,
106
- imports: [CheckboxModule, FormsModule]
114
+ imports: [FormsModule, CheckboxModule]
107
115
  })
108
116
  export class CheckboxFilledDemo {
109
117
  checked: boolean = false;
@@ -122,11 +130,11 @@ import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
122
130
  @Component({
123
131
  template: `
124
132
  <div class="card flex justify-center gap-4">
125
- <p-checkbox [(ngModel)]="checked" [binary]="true" [indeterminate]="true" />
133
+ <p-checkbox [(ngModel)]="checked" [binary]="true" [indeterminate]="true" ariaLabel="Select all" />
126
134
  </div>
127
135
  `,
128
136
  standalone: true,
129
- imports: [CheckboxModule, FormsModule]
137
+ imports: [FormsModule, CheckboxModule]
130
138
  })
131
139
  export class CheckboxIndeterminateDemo {
132
140
  checked: any = null;
@@ -145,41 +153,17 @@ import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
145
153
  @Component({
146
154
  template: `
147
155
  <div class="card flex justify-center">
148
- <p-checkbox [(ngModel)]="checked" [binary]="true" [invalid]="!checked" />
156
+ <p-checkbox [(ngModel)]="checked" [binary]="true" [invalid]="!checked" ariaLabel="Accept" />
149
157
  </div>
150
158
  `,
151
159
  standalone: true,
152
- imports: [CheckboxModule, FormsModule]
160
+ imports: [FormsModule, CheckboxModule]
153
161
  })
154
162
  export class CheckboxInvalidDemo {
155
163
  checked: boolean = false;
156
164
  }
157
165
  ```
158
166
 
159
- ## label-doc
160
-
161
- The label attribute provides a label text for the checkbox. This label is also clickable and toggles the checked state.
162
-
163
- ```typescript
164
- import { Component } from '@angular/core';
165
- import { FormsModule } from '@angular/forms';
166
- import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
167
-
168
- @Component({
169
- template: `
170
- <div class="card flex justify-center gap-4">
171
- <p-checkbox name="groupname" value="val1" label="Value 1" [(ngModel)]="selectedValues"></p-checkbox>
172
- <p-checkbox name="groupname" value="val2" label="Value 2" [(ngModel)]="selectedValues"></p-checkbox>
173
- </div>
174
- `,
175
- standalone: true,
176
- imports: [CheckboxModule, FormsModule]
177
- })
178
- export class CheckboxLabelDemo {
179
- selectedValues: string[] = [];
180
- }
181
- ```
182
-
183
167
  ## multiple-doc
184
168
 
185
169
  Multiple checkboxes can be grouped together.
@@ -211,7 +195,7 @@ import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
211
195
  </div>
212
196
  `,
213
197
  standalone: true,
214
- imports: [CheckboxModule, FormsModule]
198
+ imports: [FormsModule, CheckboxModule]
215
199
  })
216
200
  export class CheckboxMultipleDemo {
217
201
  pizza: string[] = [];
@@ -224,12 +208,13 @@ Checkbox can also be used with reactive forms. In this case, the formControlName
224
208
 
225
209
  ```typescript
226
210
  import { Component, inject } from '@angular/core';
227
- import { ReactiveFormsModule } from '@angular/forms';
211
+ import { CommonModule } from '@angular/common';
212
+ import { ReactiveFormsModule, FormBuilder, FormGroup } from '@angular/forms';
213
+ import { MessageService } from '@exhaustive-ui/core/api';
228
214
  import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
229
- import { MessageModule } from '@exhaustive-ui/core/message';
230
- import { ToastModule } from '@exhaustive-ui/core/toast';
231
215
  import { ButtonModule } from '@exhaustive-ui/core/button';
232
- import { MessageService } from '@exhaustive-ui/core/api';
216
+ import { ToastModule } from '@exhaustive-ui/core/toast';
217
+ import { MessageModule } from '@exhaustive-ui/core/message';
233
218
 
234
219
  @Component({
235
220
  template: `
@@ -254,27 +239,35 @@ import { MessageService } from '@exhaustive-ui/core/api';
254
239
  </div>
255
240
  `,
256
241
  standalone: true,
257
- imports: [CheckboxModule, MessageModule, ToastModule, ButtonModule, ReactiveFormsModule]
242
+ imports: [CommonModule, ReactiveFormsModule, CheckboxModule, ButtonModule, ToastModule, MessageModule],
243
+ providers: [MessageService]
258
244
  })
259
245
  export class CheckboxReactiveformsDemo {
246
+ private fb = inject(FormBuilder);
247
+
260
248
  messageService = inject(MessageService);
249
+
261
250
  formSubmitted: boolean = false;
251
+
262
252
  exampleForm: FormGroup;
263
253
 
264
254
  constructor() {
265
255
  this.exampleForm = this.fb.group(
266
- {
267
- cheese: [false],
268
- mushroom: [false],
269
- pepper: [false],
270
- onion: [false]
271
- },
272
- { validators: this.atLeastOneSelectedValidator }
273
- );
256
+ {
257
+ cheese: [false],
258
+ mushroom: [false],
259
+ pepper: [false],
260
+ onion: [false]
261
+ },
262
+ { validators: this.atLeastOneSelectedValidator }
263
+ );
274
264
  }
275
265
 
276
- atLeastOneSelectedValidator(group: FormGroup) {
277
- [key: string]: any } | null {
266
+ get formKeys(): string[] {
267
+ return Object.keys(this.exampleForm.controls);
268
+ }
269
+
270
+ atLeastOneSelectedValidator(group: FormGroup): { [key: string]: any } | null {
278
271
  const anySelected = Object.values(group.controls).some((control) => control.value === true);
279
272
  return anySelected ? null : { atLeastOneRequired: true };
280
273
  }
@@ -290,7 +283,7 @@ export class CheckboxReactiveformsDemo {
290
283
 
291
284
  onSubmit() {
292
285
  this.formSubmitted = true;
293
-
286
+
294
287
  if (this.exampleForm.valid) {
295
288
  this.messageService.add({
296
289
  severity: 'success',
@@ -298,14 +291,14 @@ export class CheckboxReactiveformsDemo {
298
291
  detail: 'Form is submitted',
299
292
  life: 3000
300
293
  });
301
-
294
+
302
295
  this.exampleForm.reset({
303
296
  cheese: false,
304
297
  mushroom: false,
305
298
  pepper: false,
306
299
  onion: false
307
300
  });
308
-
301
+
309
302
  this.formSubmitted = false;
310
303
  }
311
304
  }
@@ -319,11 +312,11 @@ Checkbox can also be used with Angular Signal Forms , the @angular/forms/signals
319
312
  ```typescript
320
313
  import { Component, inject, signal } from '@angular/core';
321
314
  import { form, FormField, submit, validate } from '@angular/forms/signals';
315
+ import { MessageService } from '@exhaustive-ui/core/api';
322
316
  import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
323
- import { MessageModule } from '@exhaustive-ui/core/message';
324
- import { ToastModule } from '@exhaustive-ui/core/toast';
325
317
  import { ButtonModule } from '@exhaustive-ui/core/button';
326
- import { MessageService } from '@exhaustive-ui/core/api';
318
+ import { ToastModule } from '@exhaustive-ui/core/toast';
319
+ import { MessageModule } from '@exhaustive-ui/core/message';
327
320
 
328
321
  type Ingredient = 'cheese' | 'mushroom' | 'pepper' | 'onion';
329
322
 
@@ -348,12 +341,16 @@ type Ingredient = 'cheese' | 'mushroom' | 'pepper' | 'onion';
348
341
  </div>
349
342
  `,
350
343
  standalone: true,
351
- imports: [CheckboxModule, MessageModule, ToastModule, ButtonModule, FormField]
344
+ imports: [FormField, CheckboxModule, ButtonModule, ToastModule, MessageModule],
345
+ providers: [MessageService]
352
346
  })
353
347
  export class CheckboxSignalformsDemo {
354
348
  messageService = inject(MessageService);
349
+
355
350
  formKeys: Ingredient[] = ['cheese', 'mushroom', 'pepper', 'onion'];
351
+
356
352
  model = signal({ cheese: false, mushroom: false, pepper: false, onion: false });
353
+
357
354
  exampleForm = form(this.model, (f) => {
358
355
  validate(f, ({ value }) => (Object.values(value()).some(Boolean) ? null : { kind: 'atLeastOneRequired' }));
359
356
  });
@@ -395,7 +392,7 @@ import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
395
392
  </div>
396
393
  `,
397
394
  standalone: true,
398
- imports: [CheckboxModule, FormsModule]
395
+ imports: [FormsModule, CheckboxModule]
399
396
  })
400
397
  export class CheckboxSizesDemo {
401
398
  size: any = null;
@@ -406,12 +403,13 @@ export class CheckboxSizesDemo {
406
403
 
407
404
  ```typescript
408
405
  import { Component, inject } from '@angular/core';
409
- import { FormsModule } from '@angular/forms';
406
+ import { CommonModule } from '@angular/common';
407
+ import { FormsModule, NgForm } from '@angular/forms';
408
+ import { MessageService } from '@exhaustive-ui/core/api';
410
409
  import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
411
- import { MessageModule } from '@exhaustive-ui/core/message';
412
- import { ToastModule } from '@exhaustive-ui/core/toast';
413
410
  import { ButtonModule } from '@exhaustive-ui/core/button';
414
- import { MessageService } from '@exhaustive-ui/core/api';
411
+ import { ToastModule } from '@exhaustive-ui/core/toast';
412
+ import { MessageModule } from '@exhaustive-ui/core/message';
415
413
 
416
414
  @Component({
417
415
  template: `
@@ -436,12 +434,24 @@ import { MessageService } from '@exhaustive-ui/core/api';
436
434
  </div>
437
435
  `,
438
436
  standalone: true,
439
- imports: [CheckboxModule, MessageModule, ToastModule, ButtonModule, FormsModule]
437
+ imports: [CommonModule, FormsModule, CheckboxModule, ButtonModule, ToastModule, MessageModule],
438
+ providers: [MessageService]
440
439
  })
441
440
  export class CheckboxTemplatedrivenformsDemo {
442
441
  messageService = inject(MessageService);
442
+
443
443
  formSubmitted: boolean = false;
444
- formModel: any;
444
+
445
+ formModel = {
446
+ cheese: false,
447
+ mushroom: false,
448
+ pepper: false,
449
+ onion: false
450
+ };
451
+
452
+ get formKeys(): string[] {
453
+ return Object.keys(this.formModel);
454
+ }
445
455
 
446
456
  isInvalid(): boolean {
447
457
  return this.formSubmitted && !this.isAtLeastOneSelected();
@@ -453,7 +463,7 @@ export class CheckboxTemplatedrivenformsDemo {
453
463
 
454
464
  onSubmit(form: NgForm) {
455
465
  this.formSubmitted = true;
456
-
466
+
457
467
  if (this.isAtLeastOneSelected()) {
458
468
  this.messageService.add({
459
469
  severity: 'success',
@@ -461,7 +471,7 @@ export class CheckboxTemplatedrivenformsDemo {
461
471
  detail: 'Form is submitted',
462
472
  life: 3000
463
473
  });
464
-
474
+
465
475
  this.formModel = {
466
476
  cheese: false,
467
477
  mushroom: false,
@@ -469,7 +479,7 @@ export class CheckboxTemplatedrivenformsDemo {
469
479
  onion: false
470
480
  };
471
481
  form.resetForm(this.formModel);
472
-
482
+
473
483
  this.formSubmitted = false;
474
484
  }
475
485
  }
@@ -484,31 +494,31 @@ Checkbox is an extension to standard checkbox element with theming.
484
494
 
485
495
  | Name | Type | Default | Description |
486
496
  |------|------|---------|-------------|
487
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
488
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
489
- | pt | InputSignal<CheckboxPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
490
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
491
- | required | InputSignalWithTransform<boolean, unknown> | false | There must be a value (if set). |
492
- | invalid | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have invalid state style. |
493
- | disabled | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have disabled state style. |
494
- | name | InputSignal<string> | undefined | When present, it specifies that the name of the input. |
495
- | value | InputSignal<any> | ... | Value of the checkbox. |
496
- | binary | InputSignalWithTransform<boolean, unknown> | ... | Allows to select a boolean value instead of multiple values. |
497
- | ariaLabelledBy | InputSignal<string> | ... | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
498
- | ariaLabel | InputSignal<string> | ... | Used to define a string that labels the input element. |
499
- | tabindex | InputSignalWithTransform<number, unknown> | ... | Index of the element in tabbing order. |
500
- | inputId | InputSignal<string> | ... | Identifier of the focus input to match a label defined for the component. |
501
- | inputStyle | InputSignal<{ [klass: string]: any }> | ... | Inline style of the input element. |
502
- | inputClass | InputSignal<string> | ... | Style class of the input element. |
503
- | indeterminate | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies input state as indeterminate. |
504
- | formControl | InputSignal<FormControl<any>> | ... | Form control value. |
505
- | checkboxIcon | InputSignal<string> | ... | Icon class of the checkbox icon. |
506
- | readonly | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the component cannot be edited. |
507
- | autofocus | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the component should automatically get focus on load. |
508
- | trueValue | InputSignal<any> | ... | Value in checked state. |
509
- | falseValue | InputSignal<any> | ... | Value in unchecked state. |
510
- | variant | InputSignal<"outlined" \| "filled"> | undefined | Specifies the input variant of the component. |
511
- | size | InputSignal<"small" \| "large"> | undefined | Specifies the size of the component. |
497
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
498
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
499
+ | pt | CheckboxPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
500
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
501
+ | required | boolean | false | There must be a value (if set). |
502
+ | invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
503
+ | disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
504
+ | name | string | undefined | When present, it specifies that the name of the input. |
505
+ | value | any | - | Value of the checkbox. |
506
+ | binary | boolean | - | Allows to select a boolean value instead of multiple values. |
507
+ | ariaLabelledBy | string | - | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
508
+ | ariaLabel | string | - | Used to define a string that labels the input element. |
509
+ | tabindex | number | - | Index of the element in tabbing order. |
510
+ | inputId | string | - | Identifier of the focus input to match a label defined for the component. |
511
+ | inputStyle | { [klass: string]: any } | - | Inline style of the input element. |
512
+ | inputClass | string | - | Style class of the input element. |
513
+ | indeterminate | boolean | false | When present, it specifies input state as indeterminate. |
514
+ | formControl | FormControl<any> | - | Form control value. |
515
+ | checkboxIcon | string | - | Icon class of the checkbox icon. |
516
+ | readonly | boolean | - | When present, it specifies that the component cannot be edited. |
517
+ | autofocus | boolean | - | When present, it specifies that the component should automatically get focus on load. |
518
+ | trueValue | any | true | Value in checked state. |
519
+ | falseValue | any | false | Value in unchecked state. |
520
+ | variant | "outlined" \| "filled" | undefined | Specifies the input variant of the component. |
521
+ | size | "small" \| "large" | undefined | Specifies the size of the component. |
512
522
 
513
523
  ### Emits
514
524
 
@@ -26,7 +26,8 @@ import { ChipModule } from '@exhaustive-ui/core/chip';
26
26
  standalone: true,
27
27
  imports: [ChipModule]
28
28
  })
29
- export class ChipBasicDemo {}
29
+ export class ChipBasicDemo {
30
+ }
30
31
  ```
31
32
 
32
33
  ## Icon
@@ -49,7 +50,8 @@ import { ChipModule } from '@exhaustive-ui/core/chip';
49
50
  standalone: true,
50
51
  imports: [ChipModule]
51
52
  })
52
- export class ChipIconDemo {}
53
+ export class ChipIconDemo {
54
+ }
53
55
  ```
54
56
 
55
57
  ## Image
@@ -72,7 +74,8 @@ import { ChipModule } from '@exhaustive-ui/core/chip';
72
74
  standalone: true,
73
75
  imports: [ChipModule]
74
76
  })
75
- export class ChipImageDemo {}
77
+ export class ChipImageDemo {
78
+ }
76
79
  ```
77
80
 
78
81
  ## Template
@@ -95,7 +98,8 @@ import { ChipModule } from '@exhaustive-ui/core/chip';
95
98
  standalone: true,
96
99
  imports: [ChipModule]
97
100
  })
98
- export class ChipTemplateDemo {}
101
+ export class ChipTemplateDemo {
102
+ }
99
103
  ```
100
104
 
101
105
  ## Chip
@@ -106,18 +110,18 @@ Chip represents people using icons, labels and images.
106
110
 
107
111
  | Name | Type | Default | Description |
108
112
  |------|------|---------|-------------|
109
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
110
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
111
- | pt | InputSignal<ChipPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
112
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
113
- | label | InputSignal<string> | ... | Defines the text to display. |
114
- | icon | InputSignal<string> | ... | Defines the icon to display. |
115
- | image | InputSignal<string> | ... | Defines the image to display. |
116
- | alt | InputSignal<string> | ... | Alt attribute of the image. |
117
- | disabled | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the element should be disabled. |
118
- | removable | InputSignalWithTransform<boolean, unknown> | ... | Whether to display a remove icon. |
119
- | removeIcon | InputSignal<string> | ... | Icon of the remove element. |
120
- | chipProps | InputSignal<ChipProps> | ... | Used to pass all properties of the chipProps to the Chip component. |
113
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
114
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
115
+ | pt | ChipPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
116
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
117
+ | label | string | - | Defines the text to display. |
118
+ | icon | string | - | Defines the icon to display. |
119
+ | image | string | - | Defines the image to display. |
120
+ | alt | string | - | Alt attribute of the image. |
121
+ | disabled | boolean | false | When present, it specifies that the element should be disabled. |
122
+ | removable | boolean | false | Whether to display a remove icon. |
123
+ | removeIcon | string | - | Icon of the remove element. |
124
+ | chipProps | ChipProps | - | Used to pass all properties of the chipProps to the Chip component. |
121
125
 
122
126
  ### Emits
123
127
 
@@ -7,7 +7,9 @@ ClassNames provides extended class binding functionality that is not possible wi
7
7
  pClass directive accepts a string , array , object or any combination of these types with support for nesting. Angular's native class directive does not support combining multiple types with a single directive, nor white-space separated values in a single string. Note: For Tailwind Users, it is recommended to use the classAttributes configuration for intellisense support.
8
8
 
9
9
  ```typescript
10
- import { Component, signal } from '@angular/core';
10
+ import { CommonModule } from '@angular/common';
11
+ import { Component, computed, signal } from '@angular/core';
12
+ import { ClassNamesModule } from '@exhaustive-ui/core/classnames';
11
13
 
12
14
  @Component({
13
15
  template: `
@@ -44,12 +46,28 @@ import { Component, signal } from '@angular/core';
44
46
  </div>
45
47
  `,
46
48
  standalone: true,
47
- imports: []
49
+ imports: [ClassNamesModule, CommonModule]
48
50
  })
49
51
  export class ClassnamesExamplesDemo {
50
52
  active1 = signal<boolean>(false);
53
+
51
54
  active2 = signal<boolean>(false);
52
- nestedClasses: any;
55
+
56
+ nestedClasses = computed(() => [
57
+ 'p-4',
58
+ 'rounded-lg',
59
+ {
60
+ 'bg-primary text-primary-contrast': this.active2()
61
+ },
62
+ [
63
+ 'cursor-pointer select-none',
64
+ 'border',
65
+ {
66
+ 'bg-primary-100 text-primary-800': !this.active2()
67
+ },
68
+ ['shadow-xs hover:shadow-lg', 'transition-all']
69
+ ]
70
+ ]);
53
71
 
54
72
  toggle1() {
55
73
  this.active1.set(!this.active1());
@@ -70,5 +88,5 @@ Supports strings, arrays, objects, and mixed combinations.
70
88
 
71
89
  | Name | Type | Default | Description |
72
90
  |------|------|---------|-------------|
73
- | classNames | InputSignal<any> | ... | Class value(s) to be applied. Can be a string, array, object, or combination. |
91
+ | classNames | any | - | Class value(s) to be applied. Can be a string, array, object, or combination. |
74
92