@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
@@ -11,7 +11,7 @@ Screen Reader Value to describe the component can either be provided with ariaLa
11
11
  CascadeSelect requires a value to bind and a collection of arbitrary objects with a nested hierarchy. optionGroupLabel is used for the text of a category and optionGroupChildren is to define the children of the category. Note that order of the optionGroupChildren matters and it should correspond to the data hierarchy.
12
12
 
13
13
  ```typescript
14
- import { Component, OnInit } from '@angular/core';
14
+ import { Component } from '@angular/core';
15
15
  import { FormsModule } from '@angular/forms';
16
16
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
17
17
 
@@ -22,10 +22,11 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
22
22
  </div>
23
23
  `,
24
24
  standalone: true,
25
- imports: [CascadeSelectModule, FormsModule]
25
+ imports: [FormsModule, CascadeSelectModule]
26
26
  })
27
- export class CascadeselectBasicDemo implements OnInit {
27
+ export class CascadeselectBasicDemo {
28
28
  countries: any[] | undefined;
29
+
29
30
  selectedCity: any;
30
31
 
31
32
  ngOnInit() {
@@ -112,7 +113,7 @@ export class CascadeselectBasicDemo implements OnInit {
112
113
  When showClear is enabled, a clear icon is displayed to clear the value.
113
114
 
114
115
  ```typescript
115
- import { Component, OnInit } from '@angular/core';
116
+ import { Component } from '@angular/core';
116
117
  import { FormsModule } from '@angular/forms';
117
118
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
118
119
 
@@ -123,10 +124,11 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
123
124
  </div>
124
125
  `,
125
126
  standalone: true,
126
- imports: [CascadeSelectModule, FormsModule]
127
+ imports: [FormsModule, CascadeSelectModule]
127
128
  })
128
- export class CascadeselectCleariconDemo implements OnInit {
129
+ export class CascadeselectCleariconDemo {
129
130
  countries: any[] | undefined;
131
+
130
132
  selectedCity: any;
131
133
 
132
134
  ngOnInit() {
@@ -225,7 +227,8 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
225
227
  standalone: true,
226
228
  imports: [CascadeSelectModule]
227
229
  })
228
- export class CascadeselectDisabledDemo {}
230
+ export class CascadeselectDisabledDemo {
231
+ }
229
232
  ```
230
233
 
231
234
  ## Filled
@@ -233,7 +236,7 @@ export class CascadeselectDisabledDemo {}
233
236
  Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.
234
237
 
235
238
  ```typescript
236
- import { Component, OnInit } from '@angular/core';
239
+ import { Component } from '@angular/core';
237
240
  import { FormsModule } from '@angular/forms';
238
241
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
239
242
 
@@ -244,10 +247,11 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
244
247
  </div>
245
248
  `,
246
249
  standalone: true,
247
- imports: [CascadeSelectModule, FormsModule]
250
+ imports: [FormsModule, CascadeSelectModule]
248
251
  })
249
- export class CascadeselectFilledDemo implements OnInit {
252
+ export class CascadeselectFilledDemo {
250
253
  countries: any[] | undefined;
254
+
251
255
  selectedCity: any;
252
256
 
253
257
  ngOnInit() {
@@ -334,8 +338,9 @@ export class CascadeselectFilledDemo implements OnInit {
334
338
  A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.
335
339
 
336
340
  ```typescript
337
- import { Component, OnInit } from '@angular/core';
341
+ import { Component } from '@angular/core';
338
342
  import { FormsModule } from '@angular/forms';
343
+ import { RouterModule } from '@angular/router';
339
344
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
340
345
  import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
341
346
 
@@ -357,14 +362,16 @@ import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
357
362
  </div>
358
363
  `,
359
364
  standalone: true,
360
- imports: [CascadeSelectModule, FloatLabelModule, FormsModule]
365
+ imports: [FormsModule, RouterModule, CascadeSelectModule, FloatLabelModule]
361
366
  })
362
- export class CascadeselectFloatlabelDemo implements OnInit {
367
+ export class CascadeselectFloatlabelDemo {
363
368
  value1: string | undefined;
369
+
364
370
  value2: string | undefined;
371
+
365
372
  value3: string | undefined;
373
+
366
374
  countries: any[] | undefined;
367
- selectedCity: any;
368
375
 
369
376
  ngOnInit() {
370
377
  this.countries = [
@@ -450,7 +457,7 @@ export class CascadeselectFloatlabelDemo implements OnInit {
450
457
  The fluid prop makes the component take up the full width of its container when set to true.
451
458
 
452
459
  ```typescript
453
- import { Component, OnInit } from '@angular/core';
460
+ import { Component } from '@angular/core';
454
461
  import { FormsModule } from '@angular/forms';
455
462
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
456
463
 
@@ -461,10 +468,11 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
461
468
  </div>
462
469
  `,
463
470
  standalone: true,
464
- imports: [CascadeSelectModule, FormsModule]
471
+ imports: [FormsModule, CascadeSelectModule]
465
472
  })
466
- export class CascadeselectFluidDemo implements OnInit {
473
+ export class CascadeselectFluidDemo {
467
474
  countries: any[] | undefined;
475
+
468
476
  selectedCity: any;
469
477
 
470
478
  ngOnInit() {
@@ -551,8 +559,9 @@ export class CascadeselectFluidDemo implements OnInit {
551
559
  IftaLabel is used to create infield top aligned labels. Visit IftaLabel documentation for more information.
552
560
 
553
561
  ```typescript
554
- import { Component, OnInit } from '@angular/core';
562
+ import { Component } from '@angular/core';
555
563
  import { FormsModule } from '@angular/forms';
564
+ import { RouterModule } from '@angular/router';
556
565
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
557
566
  import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
558
567
 
@@ -566,10 +575,11 @@ import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
566
575
  </div>
567
576
  `,
568
577
  standalone: true,
569
- imports: [CascadeSelectModule, IftaLabelModule, FormsModule]
578
+ imports: [FormsModule, RouterModule, CascadeSelectModule, IftaLabelModule]
570
579
  })
571
- export class CascadeselectIftalabelDemo implements OnInit {
580
+ export class CascadeselectIftalabelDemo {
572
581
  countries: any[] | undefined;
582
+
573
583
  selectedCity: any;
574
584
 
575
585
  ngOnInit() {
@@ -656,7 +666,7 @@ export class CascadeselectIftalabelDemo implements OnInit {
656
666
  The invalid state is applied using the ⁠invalid property to indicate failed validation, which can be integrated with Angular Forms.
657
667
 
658
668
  ```typescript
659
- import { Component, OnInit } from '@angular/core';
669
+ import { Component } from '@angular/core';
660
670
  import { FormsModule } from '@angular/forms';
661
671
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
662
672
 
@@ -678,11 +688,13 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
678
688
  </div>
679
689
  `,
680
690
  standalone: true,
681
- imports: [CascadeSelectModule, FormsModule]
691
+ imports: [FormsModule, CascadeSelectModule]
682
692
  })
683
- export class CascadeselectInvalidDemo implements OnInit {
693
+ export class CascadeselectInvalidDemo {
684
694
  countries: any[] | undefined;
695
+
685
696
  selectedCity1: any;
697
+
686
698
  selectedCity2: any;
687
699
 
688
700
  ngOnInit() {
@@ -781,7 +793,8 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
781
793
  standalone: true,
782
794
  imports: [CascadeSelectModule]
783
795
  })
784
- export class CascadeselectLoadingDemo {}
796
+ export class CascadeselectLoadingDemo {
797
+ }
785
798
  ```
786
799
 
787
800
  ## reactiveforms-doc
@@ -790,12 +803,13 @@ CascadeSelect can also be used with reactive forms. In this case, the formContro
790
803
 
791
804
  ```typescript
792
805
  import { Component, inject } from '@angular/core';
793
- import { ReactiveFormsModule } from '@angular/forms';
806
+ import { CommonModule } from '@angular/common';
807
+ import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
808
+ import { MessageService } from '@exhaustive-ui/core/api';
794
809
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
795
- import { MessageModule } from '@exhaustive-ui/core/message';
796
810
  import { ToastModule } from '@exhaustive-ui/core/toast';
811
+ import { MessageModule } from '@exhaustive-ui/core/message';
797
812
  import { ButtonModule } from '@exhaustive-ui/core/button';
798
- import { MessageService } from '@exhaustive-ui/core/api';
799
813
 
800
814
  @Component({
801
815
  template: `
@@ -822,93 +836,99 @@ import { MessageService } from '@exhaustive-ui/core/api';
822
836
  </div>
823
837
  `,
824
838
  standalone: true,
825
- imports: [CascadeSelectModule, MessageModule, ToastModule, ButtonModule, ReactiveFormsModule]
839
+ imports: [CommonModule, ReactiveFormsModule, CascadeSelectModule, ToastModule, MessageModule, ButtonModule],
840
+ providers: [MessageService]
826
841
  })
827
842
  export class CascadeselectReactiveformsDemo {
843
+ private fb = inject(FormBuilder);
844
+
828
845
  countries: any[] | undefined;
829
- formGroup: FormGroup | undefined;
846
+
830
847
  messageService = inject(MessageService);
848
+
831
849
  exampleForm: FormGroup | undefined;
850
+
832
851
  formSubmitted: boolean = false;
833
852
 
834
853
  constructor() {
835
854
  this.countries = [
855
+ {
856
+ name: 'Australia',
857
+ code: 'AU',
858
+ states: [
836
859
  {
837
- name: 'Australia',
838
- code: 'AU',
839
- states: [
840
- {
841
- name: 'New South Wales',
842
- cities: [
843
- { cname: 'Sydney', code: 'A-SY' },
844
- { cname: 'Newcastle', code: 'A-NE' },
845
- { cname: 'Wollongong', code: 'A-WO' }
846
- ]
847
- },
848
- {
849
- name: 'Queensland',
850
- cities: [
851
- { cname: 'Brisbane', code: 'A-BR' },
852
- { cname: 'Townsville', code: 'A-TO' }
853
- ]
854
- }
860
+ name: 'New South Wales',
861
+ cities: [
862
+ { cname: 'Sydney', code: 'A-SY' },
863
+ { cname: 'Newcastle', code: 'A-NE' },
864
+ { cname: 'Wollongong', code: 'A-WO' }
855
865
  ]
856
866
  },
857
867
  {
858
- name: 'Canada',
859
- code: 'CA',
860
- states: [
861
- {
862
- name: 'Quebec',
863
- cities: [
864
- { cname: 'Montreal', code: 'C-MO' },
865
- { cname: 'Quebec City', code: 'C-QU' }
866
- ]
867
- },
868
- {
869
- name: 'Ontario',
870
- cities: [
871
- { cname: 'Ottawa', code: 'C-OT' },
872
- { cname: 'Toronto', code: 'C-TO' }
873
- ]
874
- }
868
+ name: 'Queensland',
869
+ cities: [
870
+ { cname: 'Brisbane', code: 'A-BR' },
871
+ { cname: 'Townsville', code: 'A-TO' }
872
+ ]
873
+ }
874
+ ]
875
+ },
876
+ {
877
+ name: 'Canada',
878
+ code: 'CA',
879
+ states: [
880
+ {
881
+ name: 'Quebec',
882
+ cities: [
883
+ { cname: 'Montreal', code: 'C-MO' },
884
+ { cname: 'Quebec City', code: 'C-QU' }
875
885
  ]
876
886
  },
877
887
  {
878
- name: 'United States',
879
- code: 'US',
880
- states: [
881
- {
882
- name: 'California',
883
- cities: [
884
- { cname: 'Los Angeles', code: 'US-LA' },
885
- { cname: 'San Diego', code: 'US-SD' },
886
- { cname: 'San Francisco', code: 'US-SF' }
887
- ]
888
- },
889
- {
890
- name: 'Florida',
891
- cities: [
892
- { cname: 'Jacksonville', code: 'US-JA' },
893
- { cname: 'Miami', code: 'US-MI' },
894
- { cname: 'Tampa', code: 'US-TA' },
895
- { cname: 'Orlando', code: 'US-OR' }
896
- ]
897
- },
898
- {
899
- name: 'Texas',
900
- cities: [
901
- { cname: 'Austin', code: 'US-AU' },
902
- { cname: 'Dallas', code: 'US-DA' },
903
- { cname: 'Houston', code: 'US-HO' }
904
- ]
905
- }
888
+ name: 'Ontario',
889
+ cities: [
890
+ { cname: 'Ottawa', code: 'C-OT' },
891
+ { cname: 'Toronto', code: 'C-TO' }
906
892
  ]
907
893
  }
908
- ];
909
- this.exampleForm = this.fb.group({
910
- selectedCity: ['', Validators.required]
911
- });
894
+ ]
895
+ },
896
+ {
897
+ name: 'United States',
898
+ code: 'US',
899
+ states: [
900
+ {
901
+ name: 'California',
902
+ cities: [
903
+ { cname: 'Los Angeles', code: 'US-LA' },
904
+ { cname: 'San Diego', code: 'US-SD' },
905
+ { cname: 'San Francisco', code: 'US-SF' }
906
+ ]
907
+ },
908
+ {
909
+ name: 'Florida',
910
+ cities: [
911
+ { cname: 'Jacksonville', code: 'US-JA' },
912
+ { cname: 'Miami', code: 'US-MI' },
913
+ { cname: 'Tampa', code: 'US-TA' },
914
+ { cname: 'Orlando', code: 'US-OR' }
915
+ ]
916
+ },
917
+ {
918
+ name: 'Texas',
919
+ cities: [
920
+ { cname: 'Austin', code: 'US-AU' },
921
+ { cname: 'Dallas', code: 'US-DA' },
922
+ { cname: 'Houston', code: 'US-HO' }
923
+ ]
924
+ }
925
+ ]
926
+ }
927
+ ];
928
+
929
+ this.exampleForm = this.fb.group({
930
+ selectedCity: ['', Validators.required]
931
+ });
912
932
  }
913
933
 
914
934
  onSubmit() {
@@ -934,11 +954,11 @@ CascadeSelect can also be used with Angular Signal Forms , the @angular/forms/si
934
954
  ```typescript
935
955
  import { Component, inject, signal } from '@angular/core';
936
956
  import { form, FormField, required, submit } from '@angular/forms/signals';
957
+ import { MessageService } from '@exhaustive-ui/core/api';
937
958
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
938
- import { MessageModule } from '@exhaustive-ui/core/message';
939
- import { ToastModule } from '@exhaustive-ui/core/toast';
940
959
  import { ButtonModule } from '@exhaustive-ui/core/button';
941
- import { MessageService } from '@exhaustive-ui/core/api';
960
+ import { ToastModule } from '@exhaustive-ui/core/toast';
961
+ import { MessageModule } from '@exhaustive-ui/core/message';
942
962
 
943
963
  @Component({
944
964
  template: `
@@ -966,91 +986,95 @@ import { MessageService } from '@exhaustive-ui/core/api';
966
986
  </div>
967
987
  `,
968
988
  standalone: true,
969
- imports: [CascadeSelectModule, MessageModule, ToastModule, ButtonModule, FormField]
989
+ imports: [FormField, CascadeSelectModule, ButtonModule, ToastModule, MessageModule],
990
+ providers: [MessageService]
970
991
  })
971
992
  export class CascadeselectSignalformsDemo {
972
993
  messageService = inject(MessageService);
994
+
973
995
  countries: any[] | undefined;
996
+
974
997
  model = signal<{ selectedCity: string | null }>({ selectedCity: null });
998
+
975
999
  exampleForm = form(this.model, (f) => {
976
1000
  required(f.selectedCity);
977
1001
  });
978
1002
 
979
1003
  constructor() {
980
1004
  this.countries = [
1005
+ {
1006
+ name: 'Australia',
1007
+ code: 'AU',
1008
+ states: [
981
1009
  {
982
- name: 'Australia',
983
- code: 'AU',
984
- states: [
985
- {
986
- name: 'New South Wales',
987
- cities: [
988
- { cname: 'Sydney', code: 'A-SY' },
989
- { cname: 'Newcastle', code: 'A-NE' },
990
- { cname: 'Wollongong', code: 'A-WO' }
991
- ]
992
- },
993
- {
994
- name: 'Queensland',
995
- cities: [
996
- { cname: 'Brisbane', code: 'A-BR' },
997
- { cname: 'Townsville', code: 'A-TO' }
998
- ]
999
- }
1010
+ name: 'New South Wales',
1011
+ cities: [
1012
+ { cname: 'Sydney', code: 'A-SY' },
1013
+ { cname: 'Newcastle', code: 'A-NE' },
1014
+ { cname: 'Wollongong', code: 'A-WO' }
1000
1015
  ]
1001
1016
  },
1002
1017
  {
1003
- name: 'Canada',
1004
- code: 'CA',
1005
- states: [
1006
- {
1007
- name: 'Quebec',
1008
- cities: [
1009
- { cname: 'Montreal', code: 'C-MO' },
1010
- { cname: 'Quebec City', code: 'C-QU' }
1011
- ]
1012
- },
1013
- {
1014
- name: 'Ontario',
1015
- cities: [
1016
- { cname: 'Ottawa', code: 'C-OT' },
1017
- { cname: 'Toronto', code: 'C-TO' }
1018
- ]
1019
- }
1018
+ name: 'Queensland',
1019
+ cities: [
1020
+ { cname: 'Brisbane', code: 'A-BR' },
1021
+ { cname: 'Townsville', code: 'A-TO' }
1022
+ ]
1023
+ }
1024
+ ]
1025
+ },
1026
+ {
1027
+ name: 'Canada',
1028
+ code: 'CA',
1029
+ states: [
1030
+ {
1031
+ name: 'Quebec',
1032
+ cities: [
1033
+ { cname: 'Montreal', code: 'C-MO' },
1034
+ { cname: 'Quebec City', code: 'C-QU' }
1020
1035
  ]
1021
1036
  },
1022
1037
  {
1023
- name: 'United States',
1024
- code: 'US',
1025
- states: [
1026
- {
1027
- name: 'California',
1028
- cities: [
1029
- { cname: 'Los Angeles', code: 'US-LA' },
1030
- { cname: 'San Diego', code: 'US-SD' },
1031
- { cname: 'San Francisco', code: 'US-SF' }
1032
- ]
1033
- },
1034
- {
1035
- name: 'Florida',
1036
- cities: [
1037
- { cname: 'Jacksonville', code: 'US-JA' },
1038
- { cname: 'Miami', code: 'US-MI' },
1039
- { cname: 'Tampa', code: 'US-TA' },
1040
- { cname: 'Orlando', code: 'US-OR' }
1041
- ]
1042
- },
1043
- {
1044
- name: 'Texas',
1045
- cities: [
1046
- { cname: 'Austin', code: 'US-AU' },
1047
- { cname: 'Dallas', code: 'US-DA' },
1048
- { cname: 'Houston', code: 'US-HO' }
1049
- ]
1050
- }
1038
+ name: 'Ontario',
1039
+ cities: [
1040
+ { cname: 'Ottawa', code: 'C-OT' },
1041
+ { cname: 'Toronto', code: 'C-TO' }
1051
1042
  ]
1052
1043
  }
1053
- ];
1044
+ ]
1045
+ },
1046
+ {
1047
+ name: 'United States',
1048
+ code: 'US',
1049
+ states: [
1050
+ {
1051
+ name: 'California',
1052
+ cities: [
1053
+ { cname: 'Los Angeles', code: 'US-LA' },
1054
+ { cname: 'San Diego', code: 'US-SD' },
1055
+ { cname: 'San Francisco', code: 'US-SF' }
1056
+ ]
1057
+ },
1058
+ {
1059
+ name: 'Florida',
1060
+ cities: [
1061
+ { cname: 'Jacksonville', code: 'US-JA' },
1062
+ { cname: 'Miami', code: 'US-MI' },
1063
+ { cname: 'Tampa', code: 'US-TA' },
1064
+ { cname: 'Orlando', code: 'US-OR' }
1065
+ ]
1066
+ },
1067
+ {
1068
+ name: 'Texas',
1069
+ cities: [
1070
+ { cname: 'Austin', code: 'US-AU' },
1071
+ { cname: 'Dallas', code: 'US-DA' },
1072
+ { cname: 'Houston', code: 'US-HO' }
1073
+ ]
1074
+ }
1075
+ ]
1076
+ }
1077
+ ];
1054
1078
  }
1055
1079
 
1056
1080
  onSubmit(event: Event) {
@@ -1068,7 +1092,7 @@ export class CascadeselectSignalformsDemo {
1068
1092
  CascadeSelect provides small and large sizes as alternatives to the base.
1069
1093
 
1070
1094
  ```typescript
1071
- import { Component, OnInit } from '@angular/core';
1095
+ import { Component } from '@angular/core';
1072
1096
  import { FormsModule } from '@angular/forms';
1073
1097
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
1074
1098
 
@@ -1081,12 +1105,15 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
1081
1105
  </div>
1082
1106
  `,
1083
1107
  standalone: true,
1084
- imports: [CascadeSelectModule, FormsModule]
1108
+ imports: [FormsModule, CascadeSelectModule]
1085
1109
  })
1086
- export class CascadeselectSizesDemo implements OnInit {
1110
+ export class CascadeselectSizesDemo {
1087
1111
  countries: any[] | undefined;
1112
+
1088
1113
  value1: any;
1114
+
1089
1115
  value2: any;
1116
+
1090
1117
  value3: any;
1091
1118
 
1092
1119
  ngOnInit() {
@@ -1173,10 +1200,11 @@ export class CascadeselectSizesDemo implements OnInit {
1173
1200
  Label of an option is used as the display text of an item by default, for custom content support define an option template that gets the option instance as a parameter. In addition value , dropdownicon , loadingicon , and optiongroupicon slots are provided for further customization.
1174
1201
 
1175
1202
  ```typescript
1176
- import { Component, OnInit } from '@angular/core';
1203
+ import { Component } from '@angular/core';
1204
+ import { CommonModule } from '@angular/common';
1177
1205
  import { FormsModule } from '@angular/forms';
1178
- import { ButtonModule } from '@exhaustive-ui/core/button';
1179
1206
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
1207
+ import { ButtonModule } from '@exhaustive-ui/core/button';
1180
1208
 
1181
1209
  @Component({
1182
1210
  template: `
@@ -1205,10 +1233,11 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
1205
1233
  </div>
1206
1234
  `,
1207
1235
  standalone: true,
1208
- imports: [ButtonModule, CascadeSelectModule, FormsModule]
1236
+ imports: [CommonModule, FormsModule, CascadeSelectModule, ButtonModule]
1209
1237
  })
1210
- export class CascadeselectTemplateDemo implements OnInit {
1238
+ export class CascadeselectTemplateDemo {
1211
1239
  countries: any[] | undefined;
1240
+
1212
1241
  selectedCity: any;
1213
1242
 
1214
1243
  ngOnInit() {
@@ -1294,12 +1323,13 @@ export class CascadeselectTemplateDemo implements OnInit {
1294
1323
 
1295
1324
  ```typescript
1296
1325
  import { Component, inject } from '@angular/core';
1326
+ import { CommonModule } from '@angular/common';
1297
1327
  import { FormsModule } from '@angular/forms';
1328
+ import { MessageService } from '@exhaustive-ui/core/api';
1298
1329
  import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
1299
- import { MessageModule } from '@exhaustive-ui/core/message';
1300
1330
  import { ToastModule } from '@exhaustive-ui/core/toast';
1331
+ import { MessageModule } from '@exhaustive-ui/core/message';
1301
1332
  import { ButtonModule } from '@exhaustive-ui/core/button';
1302
- import { MessageService } from '@exhaustive-ui/core/api';
1303
1333
 
1304
1334
  @Component({
1305
1335
  template: `
@@ -1329,88 +1359,91 @@ import { MessageService } from '@exhaustive-ui/core/api';
1329
1359
  </div>
1330
1360
  `,
1331
1361
  standalone: true,
1332
- imports: [CascadeSelectModule, MessageModule, ToastModule, ButtonModule, FormsModule]
1362
+ imports: [CommonModule, FormsModule, CascadeSelectModule, ToastModule, MessageModule, ButtonModule],
1363
+ providers: [MessageService]
1333
1364
  })
1334
1365
  export class CascadeselectTemplatedrivenformsDemo {
1335
1366
  messageService = inject(MessageService);
1367
+
1336
1368
  countries: any[] | undefined;
1369
+
1337
1370
  selectedCity: any = null;
1338
1371
 
1339
1372
  constructor() {
1340
1373
  this.countries = [
1374
+ {
1375
+ name: 'Australia',
1376
+ code: 'AU',
1377
+ states: [
1341
1378
  {
1342
- name: 'Australia',
1343
- code: 'AU',
1344
- states: [
1345
- {
1346
- name: 'New South Wales',
1347
- cities: [
1348
- { cname: 'Sydney', code: 'A-SY' },
1349
- { cname: 'Newcastle', code: 'A-NE' },
1350
- { cname: 'Wollongong', code: 'A-WO' }
1351
- ]
1352
- },
1353
- {
1354
- name: 'Queensland',
1355
- cities: [
1356
- { cname: 'Brisbane', code: 'A-BR' },
1357
- { cname: 'Townsville', code: 'A-TO' }
1358
- ]
1359
- }
1379
+ name: 'New South Wales',
1380
+ cities: [
1381
+ { cname: 'Sydney', code: 'A-SY' },
1382
+ { cname: 'Newcastle', code: 'A-NE' },
1383
+ { cname: 'Wollongong', code: 'A-WO' }
1360
1384
  ]
1361
1385
  },
1362
1386
  {
1363
- name: 'Canada',
1364
- code: 'CA',
1365
- states: [
1366
- {
1367
- name: 'Quebec',
1368
- cities: [
1369
- { cname: 'Montreal', code: 'C-MO' },
1370
- { cname: 'Quebec City', code: 'C-QU' }
1371
- ]
1372
- },
1373
- {
1374
- name: 'Ontario',
1375
- cities: [
1376
- { cname: 'Ottawa', code: 'C-OT' },
1377
- { cname: 'Toronto', code: 'C-TO' }
1378
- ]
1379
- }
1387
+ name: 'Queensland',
1388
+ cities: [
1389
+ { cname: 'Brisbane', code: 'A-BR' },
1390
+ { cname: 'Townsville', code: 'A-TO' }
1391
+ ]
1392
+ }
1393
+ ]
1394
+ },
1395
+ {
1396
+ name: 'Canada',
1397
+ code: 'CA',
1398
+ states: [
1399
+ {
1400
+ name: 'Quebec',
1401
+ cities: [
1402
+ { cname: 'Montreal', code: 'C-MO' },
1403
+ { cname: 'Quebec City', code: 'C-QU' }
1380
1404
  ]
1381
1405
  },
1382
1406
  {
1383
- name: 'United States',
1384
- code: 'US',
1385
- states: [
1386
- {
1387
- name: 'California',
1388
- cities: [
1389
- { cname: 'Los Angeles', code: 'US-LA' },
1390
- { cname: 'San Diego', code: 'US-SD' },
1391
- { cname: 'San Francisco', code: 'US-SF' }
1392
- ]
1393
- },
1394
- {
1395
- name: 'Florida',
1396
- cities: [
1397
- { cname: 'Jacksonville', code: 'US-JA' },
1398
- { cname: 'Miami', code: 'US-MI' },
1399
- { cname: 'Tampa', code: 'US-TA' },
1400
- { cname: 'Orlando', code: 'US-OR' }
1401
- ]
1402
- },
1403
- {
1404
- name: 'Texas',
1405
- cities: [
1406
- { cname: 'Austin', code: 'US-AU' },
1407
- { cname: 'Dallas', code: 'US-DA' },
1408
- { cname: 'Houston', code: 'US-HO' }
1409
- ]
1410
- }
1407
+ name: 'Ontario',
1408
+ cities: [
1409
+ { cname: 'Ottawa', code: 'C-OT' },
1410
+ { cname: 'Toronto', code: 'C-TO' }
1411
1411
  ]
1412
1412
  }
1413
- ];
1413
+ ]
1414
+ },
1415
+ {
1416
+ name: 'United States',
1417
+ code: 'US',
1418
+ states: [
1419
+ {
1420
+ name: 'California',
1421
+ cities: [
1422
+ { cname: 'Los Angeles', code: 'US-LA' },
1423
+ { cname: 'San Diego', code: 'US-SD' },
1424
+ { cname: 'San Francisco', code: 'US-SF' }
1425
+ ]
1426
+ },
1427
+ {
1428
+ name: 'Florida',
1429
+ cities: [
1430
+ { cname: 'Jacksonville', code: 'US-JA' },
1431
+ { cname: 'Miami', code: 'US-MI' },
1432
+ { cname: 'Tampa', code: 'US-TA' },
1433
+ { cname: 'Orlando', code: 'US-OR' }
1434
+ ]
1435
+ },
1436
+ {
1437
+ name: 'Texas',
1438
+ cities: [
1439
+ { cname: 'Austin', code: 'US-AU' },
1440
+ { cname: 'Dallas', code: 'US-DA' },
1441
+ { cname: 'Houston', code: 'US-HO' }
1442
+ ]
1443
+ }
1444
+ ]
1445
+ }
1446
+ ];
1414
1447
  }
1415
1448
 
1416
1449
  onSubmit(form: any) {