@exhaustive-ui/mcp 22.5.0 → 22.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/data/cards/accordion.md +5 -2
  2. package/data/cards/animateonscroll.md +8 -5
  3. package/data/cards/autocomplete.md +8 -3
  4. package/data/cards/autofocus.md +4 -2
  5. package/data/cards/avatar.md +4 -2
  6. package/data/cards/badge.md +2 -1
  7. package/data/cards/breadcrumb.md +3 -1
  8. package/data/cards/button.md +8 -2
  9. package/data/cards/card.md +2 -1
  10. package/data/cards/carousel.md +7 -5
  11. package/data/cards/cascadeselect.md +2 -6
  12. package/data/cards/chart.md +9 -7
  13. package/data/cards/checkbox.md +4 -3
  14. package/data/cards/chip.md +2 -1
  15. package/data/cards/classnames.md +21 -3
  16. package/data/cards/colorpicker.md +2 -1
  17. package/data/cards/confirmdialog.md +35 -5
  18. package/data/cards/confirmpopup.md +25 -3
  19. package/data/cards/contextmenu.md +1 -7
  20. package/data/cards/dataview.md +28 -9
  21. package/data/cards/datepicker.md +4 -3
  22. package/data/cards/dialog.md +3 -3
  23. package/data/cards/divider.md +2 -1
  24. package/data/cards/dock.md +24 -3
  25. package/data/cards/dragdrop.md +5 -1
  26. package/data/cards/drawer.md +3 -3
  27. package/data/cards/dynamicdialog.md +41 -14
  28. package/data/cards/editor.md +1 -1
  29. package/data/cards/fieldset.md +2 -1
  30. package/data/cards/fileinput.md +1 -1
  31. package/data/cards/fileupload.md +7 -8
  32. package/data/cards/floatlabel.md +1 -1
  33. package/data/cards/fluid.md +7 -5
  34. package/data/cards/focustrap.md +6 -2
  35. package/data/cards/galleria.md +18 -25
  36. package/data/cards/iconfield.md +3 -2
  37. package/data/cards/iftalabel.md +1 -1
  38. package/data/cards/image.md +4 -2
  39. package/data/cards/imagecompare.md +4 -3
  40. package/data/cards/inplace.md +2 -1
  41. package/data/cards/inputgroup.md +14 -3
  42. package/data/cards/inputmask.md +2 -2
  43. package/data/cards/inputnumber.md +4 -3
  44. package/data/cards/inputotp.md +2 -2
  45. package/data/cards/inputtext.md +2 -2
  46. package/data/cards/keyfilter.md +2 -1
  47. package/data/cards/knob.md +3 -2
  48. package/data/cards/listbox.md +5 -3
  49. package/data/cards/megamenu.md +7 -8
  50. package/data/cards/menu.md +3 -7
  51. package/data/cards/menubar.md +3 -7
  52. package/data/cards/message.md +2 -1
  53. package/data/cards/metergroup.md +3 -7
  54. package/data/cards/multiselect.md +5 -9
  55. package/data/cards/orderlist.md +6 -4
  56. package/data/cards/organizationchart.md +33 -6
  57. package/data/cards/overlay.md +2 -1
  58. package/data/cards/paginator.md +2 -1
  59. package/data/cards/panel.md +2 -1
  60. package/data/cards/panelmenu.md +4 -13
  61. package/data/cards/password.md +6 -3
  62. package/data/cards/picklist.md +9 -5
  63. package/data/cards/popover.md +6 -5
  64. package/data/cards/progressbar.md +4 -3
  65. package/data/cards/progressspinner.md +2 -1
  66. package/data/cards/radiobutton.md +4 -3
  67. package/data/cards/rating.md +1 -1
  68. package/data/cards/ripple.md +2 -1
  69. package/data/cards/scrollpanel.md +2 -1
  70. package/data/cards/scrolltop.md +5 -3
  71. package/data/cards/select.md +2 -1
  72. package/data/cards/selectbutton.md +6 -2
  73. package/data/cards/skeleton.md +2 -1
  74. package/data/cards/slider.md +4 -3
  75. package/data/cards/speeddial.md +7 -4
  76. package/data/cards/splitbutton.md +21 -18
  77. package/data/cards/splitter.md +2 -1
  78. package/data/cards/stepper.md +8 -3
  79. package/data/cards/styleclass.md +4 -2
  80. package/data/cards/table.md +46 -11
  81. package/data/cards/tabs.md +2 -1
  82. package/data/cards/tag.md +2 -1
  83. package/data/cards/terminal.md +31 -22
  84. package/data/cards/textarea.md +3 -2
  85. package/data/cards/tieredmenu.md +1 -6
  86. package/data/cards/timeline.md +5 -5
  87. package/data/cards/toast.md +7 -8
  88. package/data/cards/togglebutton.md +1 -1
  89. package/data/cards/toggleswitch.md +4 -3
  90. package/data/cards/toolbar.md +8 -8
  91. package/data/cards/tooltip.md +2 -1
  92. package/data/cards/tree.md +3 -6
  93. package/data/cards/treeselect.md +6 -7
  94. package/data/cards/treetable.md +52 -31
  95. package/data/components/accordion.md +31 -23
  96. package/data/components/animateonscroll.md +18 -15
  97. package/data/components/autocomplete.md +162 -93
  98. package/data/components/autofocus.md +9 -7
  99. package/data/components/avatar.md +56 -43
  100. package/data/components/badge.md +27 -18
  101. package/data/components/blockui.md +15 -8
  102. package/data/components/breadcrumb.md +20 -14
  103. package/data/components/button.md +121 -94
  104. package/data/components/card.md +12 -10
  105. package/data/components/carousel.md +75 -53
  106. package/data/components/cascadeselect.md +271 -238
  107. package/data/components/chart.md +88 -74
  108. package/data/components/checkbox.md +107 -73
  109. package/data/components/chip.md +20 -16
  110. package/data/components/classnames.md +22 -4
  111. package/data/components/colorpicker.md +54 -36
  112. package/data/components/confirmdialog.md +146 -43
  113. package/data/components/confirmpopup.md +95 -22
  114. package/data/components/contextmenu.md +110 -39
  115. package/data/components/dataview.md +176 -83
  116. package/data/components/datepicker.md +171 -141
  117. package/data/components/dialog.md +80 -68
  118. package/data/components/divider.md +17 -12
  119. package/data/components/dock.md +63 -27
  120. package/data/components/dragdrop.md +26 -12
  121. package/data/components/drawer.md +67 -48
  122. package/data/components/dynamicdialog.md +22 -13
  123. package/data/components/editor.md +42 -33
  124. package/data/components/fieldset.md +20 -17
  125. package/data/components/fileinput.md +92 -35
  126. package/data/components/fileupload.md +101 -61
  127. package/data/components/floatlabel.md +20 -11
  128. package/data/components/fluid.md +11 -9
  129. package/data/components/focustrap.md +11 -7
  130. package/data/components/galleria.md +224 -83
  131. package/data/components/iconfield.md +23 -15
  132. package/data/components/iftalabel.md +15 -9
  133. package/data/components/image.md +31 -26
  134. package/data/components/imagecompare.md +8 -6
  135. package/data/components/inplace.md +27 -22
  136. package/data/components/inputgroup.md +53 -29
  137. package/data/components/inputmask.md +107 -85
  138. package/data/components/inputnumber.md +127 -89
  139. package/data/components/inputotp.md +55 -42
  140. package/data/components/inputtext.md +72 -50
  141. package/data/components/keyfilter.md +6 -3
  142. package/data/components/knob.md +70 -58
  143. package/data/components/listbox.md +171 -141
  144. package/data/components/megamenu.md +24 -23
  145. package/data/components/menu.md +37 -34
  146. package/data/components/menubar.md +27 -22
  147. package/data/components/message.md +44 -32
  148. package/data/components/metergroup.md +48 -17
  149. package/data/components/multiselect.md +232 -168
  150. package/data/components/orderlist.md +55 -48
  151. package/data/components/organizationchart.md +182 -13
  152. package/data/components/overlay.md +31 -26
  153. package/data/components/paginator.md +49 -34
  154. package/data/components/panel.md +23 -19
  155. package/data/components/panelmenu.md +51 -25
  156. package/data/components/password.md +104 -91
  157. package/data/components/picklist.md +92 -70
  158. package/data/components/popover.md +68 -46
  159. package/data/components/progressbar.md +28 -22
  160. package/data/components/progressspinner.md +13 -11
  161. package/data/components/radiobutton.md +69 -35
  162. package/data/components/rating.md +48 -40
  163. package/data/components/ripple.md +8 -6
  164. package/data/components/scroller.md +29 -29
  165. package/data/components/scrollpanel.md +9 -7
  166. package/data/components/scrolltop.md +20 -18
  167. package/data/components/select.md +248 -169
  168. package/data/components/selectbutton.md +118 -56
  169. package/data/components/skeleton.md +22 -18
  170. package/data/components/slider.md +73 -49
  171. package/data/components/speeddial.md +77 -59
  172. package/data/components/splitbutton.md +354 -329
  173. package/data/components/splitter.md +22 -18
  174. package/data/components/stepper.md +38 -21
  175. package/data/components/styleclass.md +12 -6
  176. package/data/components/table.md +523 -314
  177. package/data/components/tabs.md +44 -26
  178. package/data/components/tag.md +18 -14
  179. package/data/components/terminal.md +38 -27
  180. package/data/components/textarea.md +82 -47
  181. package/data/components/tieredmenu.md +34 -29
  182. package/data/components/timeline.md +29 -28
  183. package/data/components/toast.md +115 -57
  184. package/data/components/togglebutton.md +53 -39
  185. package/data/components/toggleswitch.md +41 -28
  186. package/data/components/toolbar.md +19 -18
  187. package/data/components/tooltip.md +43 -32
  188. package/data/components/tree.md +114 -81
  189. package/data/components/treeselect.md +176 -174
  190. package/data/components/treetable.md +1250 -1045
  191. package/data/components.json +4122 -4080
  192. package/data/llms-full.txt +8784 -6249
  193. package/data/manifest.json +154 -15
  194. package/data/pages/tailwind.md +20 -10
  195. package/data/snapshot.json +2 -2
  196. package/dist/index.d.mts +2 -0
  197. package/dist/index.mjs +3 -3
  198. package/dist/index.mjs.map +1 -1
  199. package/package.json +1 -1
@@ -4,22 +4,22 @@ OrderList is used to sort a collection.
4
4
 
5
5
  ## Accessibility
6
6
 
7
- Screen Reader Value to describe the source listbox and target listbox can be provided with sourceListProps and targetListProps by passing aria-labelledby or aria-label props. The list elements has a listbox role with the aria-multiselectable attribute. Each list item has an option role with aria-selected and aria-disabled as their attributes. Controls buttons are button elements with an aria-label that refers to the aria.moveTop , aria.moveUp , aria.moveDown , aria.moveBottom , aria.moveTo , aria.moveAllTo , aria.moveFrom and aria.moveAllFrom properties of the locale API by default, alternatively you may use moveTopButtonProps , moveUpButtonProps , moveDownButtonProps , moveToButtonProps , moveAllToButtonProps , moveFromButtonProps , moveFromButtonProps and moveAllFromButtonProps to customize the buttons like overriding the default aria-label attributes. OrderList Keyboard Support Key Function tab Moves focus to the first selected option, if there is none then first option receives the focus. up arrow Moves focus to the previous option. down arrow Moves focus to the next option. enter Toggles the selected state of the focused option. space Toggles the selected state of the focused option. home Moves focus to the first option. end Moves focus to the last option. shift + down arrow Moves focus to the next option and toggles the selection state. shift + up arrow Moves focus to the previous option and toggles the selection state. shift + space Selects the items between the most recently selected option and the focused option. control + shift + home Selects the focused options and all the options up to the first one. control + shift + end Selects the focused options and all the options down to the first one. control + a Selects all options. Buttons Keyboard Support Key Function enter Executes button action. space Executes button action.
7
+ Screen Reader Value to describe the listbox can be provided with ariaLabelledBy or ariaLabel props. The list element has a listbox role with the aria-multiselectable attribute. Each list item has an option role with aria-selected and aria-disabled as their attributes. Controls buttons are button elements with an aria-label that refers to the aria.moveTop , aria.moveUp , aria.moveDown and aria.moveBottom properties of the locale API. The buttons can be customized with buttonProps , moveTopButtonProps , moveUpButtonProps , moveDownButtonProps and moveBottomButtonProps . OrderList Keyboard Support Key Function tab Moves focus to the first selected option, if there is none then first option receives the focus. up arrow Moves focus to the previous option. down arrow Moves focus to the next option. enter Toggles the selected state of the focused option. space Toggles the selected state of the focused option. home Moves focus to the first option. end Moves focus to the last option. shift + down arrow Moves focus to the next option and toggles the selection state. shift + up arrow Moves focus to the previous option and toggles the selection state. shift + space Selects the items between the most recently selected option and the focused option. control + shift + home Selects the focused options and all the options up to the first one. control + shift + end Selects the focused options and all the options down to the first one. control + a Selects all options. Buttons Keyboard Support Key Function enter Executes button action. space Executes button action.
8
8
 
9
9
  ## Basic
10
10
 
11
11
  OrderList is used as a controlled input with value property. Content of a list item needs to be defined with the item template that receives an object in the list as parameter.
12
12
 
13
13
  ```typescript
14
- import { Component, OnInit, inject, signal } from '@angular/core';
14
+ import { Component, inject, OnInit, signal } from '@angular/core';
15
15
  import { OrderListModule } from '@exhaustive-ui/core/orderlist';
16
- import { ProductService } from '@/service/productservice';
17
16
  import { Product } from '@/domain/product';
17
+ import { ProductService } from '@/service/productservice';
18
18
 
19
19
  @Component({
20
20
  template: `
21
21
  <div class="card sm:flex sm:justify-center">
22
- <p-order-list [value]="products()" dataKey="id" [responsive]="true" breakpoint="575px">
22
+ <p-order-list [value]="products()" dataKey="id" [responsive]="true" breakpoint="575px" ariaLabel="Products">
23
23
  <ng-template #item let-option>
24
24
  {{ option.name }}
25
25
  </ng-template>
@@ -32,6 +32,7 @@ import { Product } from '@/domain/product';
32
32
  })
33
33
  export class OrderlistBasicDemo implements OnInit {
34
34
  private productService = inject(ProductService);
35
+
35
36
  products = signal<Product[]>([]);
36
37
 
37
38
  ngOnInit() {
@@ -58,15 +59,16 @@ export class OrderlistBasicDemo implements OnInit {
58
59
  Items can be reordered using drag and drop by enabling dragdrop property. Depends on @angular/cdk package.
59
60
 
60
61
  ```typescript
61
- import { Component, OnInit, inject, signal } from '@angular/core';
62
+ import { CommonModule } from '@angular/common';
63
+ import { Component, inject, OnInit, signal } from '@angular/core';
62
64
  import { OrderListModule } from '@exhaustive-ui/core/orderlist';
63
- import { ProductService } from '@/service/productservice';
64
65
  import { Product } from '@/domain/product';
66
+ import { ProductService } from '@/service/productservice';
65
67
 
66
68
  @Component({
67
69
  template: `
68
70
  <div class="card sm:flex sm:justify-center">
69
- <p-order-list [value]="products()" dataKey="id" [dragdrop]="true" [responsive]="true" breakpoint="575px" scrollHeight="20rem">
71
+ <p-order-list [value]="products()" dataKey="id" [dragdrop]="true" [responsive]="true" breakpoint="575px" scrollHeight="20rem" ariaLabel="Products">
70
72
  <ng-template let-option let-selected="selected" #item>
71
73
  <div class="flex flex-wrap p-1 items-center gap-4 w-full">
72
74
  <img class="w-12 shrink-0 rounded-sm" src="https://exhaustive-ui.com/demo/product/{{ option.image }}" [alt]="option.name" />
@@ -89,11 +91,12 @@ import { Product } from '@/domain/product';
89
91
  </div>
90
92
  `,
91
93
  standalone: true,
92
- imports: [OrderListModule],
94
+ imports: [CommonModule, OrderListModule],
93
95
  providers: [ProductService]
94
96
  })
95
97
  export class OrderlistDragdropDemo implements OnInit {
96
98
  private productService = inject(ProductService);
99
+
97
100
  products = signal<Product[]>([]);
98
101
 
99
102
  ngOnInit() {
@@ -120,15 +123,16 @@ export class OrderlistDragdropDemo implements OnInit {
120
123
  Filter value is checked against the property of an object configured with the filterBy property
121
124
 
122
125
  ```typescript
123
- import { Component, OnInit, inject, signal } from '@angular/core';
126
+ import { CommonModule } from '@angular/common';
127
+ import { Component, inject, OnInit, signal } from '@angular/core';
124
128
  import { OrderListModule } from '@exhaustive-ui/core/orderlist';
125
- import { ProductService } from '@/service/productservice';
126
129
  import { Product } from '@/domain/product';
130
+ import { ProductService } from '@/service/productservice';
127
131
 
128
132
  @Component({
129
133
  template: `
130
134
  <div class="card sm:flex sm:justify-center">
131
- <p-order-list [value]="products()" filterBy="name" filterPlaceholder="Filter by name" [responsive]="true" breakpoint="575px" scrollHeight="20rem" class="sm:min-w-96">
135
+ <p-order-list [value]="products()" filterBy="name" filterPlaceholder="Filter by name" [responsive]="true" breakpoint="575px" scrollHeight="20rem" class="sm:min-w-96" ariaLabel="Products">
132
136
  <ng-template let-option let-selected="selected" #item>
133
137
  <div class="flex flex-wrap p-1 items-center gap-4 w-full">
134
138
  <img class="w-12 shrink-0 rounded-sm" src="https://exhaustive-ui.com/demo/product/{{ option.image }}" [alt]="option.name" />
@@ -151,11 +155,12 @@ import { Product } from '@/domain/product';
151
155
  </div>
152
156
  `,
153
157
  standalone: true,
154
- imports: [OrderListModule],
158
+ imports: [CommonModule, OrderListModule],
155
159
  providers: [ProductService]
156
160
  })
157
161
  export class OrderlistFilterDemo implements OnInit {
158
162
  private productService = inject(ProductService);
163
+
159
164
  products = signal<Product[]>([]);
160
165
 
161
166
  ngOnInit() {
@@ -182,15 +187,16 @@ export class OrderlistFilterDemo implements OnInit {
182
187
  For custom content support define an item template that gets the item instance as a parameter. In addition header template is provided for further customization.
183
188
 
184
189
  ```typescript
185
- import { Component, OnInit, inject, signal } from '@angular/core';
190
+ import { CommonModule } from '@angular/common';
191
+ import { Component, inject, OnInit, signal } from '@angular/core';
186
192
  import { OrderListModule } from '@exhaustive-ui/core/orderlist';
187
- import { ProductService } from '@/service/productservice';
188
193
  import { Product } from '@/domain/product';
194
+ import { ProductService } from '@/service/productservice';
189
195
 
190
196
  @Component({
191
197
  template: `
192
198
  <div class="card sm:flex sm:justify-center">
193
- <p-order-list [value]="products()" dataKey="id" [responsive]="true" breakpoint="575px" scrollHeight="20rem">
199
+ <p-order-list [value]="products()" dataKey="id" [responsive]="true" breakpoint="575px" scrollHeight="20rem" ariaLabel="Products">
194
200
  <ng-template let-option let-selected="selected" #item>
195
201
  <div class="flex flex-wrap p-1 items-center gap-4 w-full">
196
202
  <img class="w-12 shrink-0 rounded-sm" src="https://exhaustive-ui.com/demo/product/{{ option.image }}" [alt]="option.name" />
@@ -213,11 +219,12 @@ import { Product } from '@/domain/product';
213
219
  </div>
214
220
  `,
215
221
  standalone: true,
216
- imports: [OrderListModule],
222
+ imports: [CommonModule, OrderListModule],
217
223
  providers: [ProductService]
218
224
  })
219
225
  export class OrderlistTemplateDemo implements OnInit {
220
226
  private productService = inject(ProductService);
227
+
221
228
  products = signal<Product[]>([]);
222
229
 
223
230
  ngOnInit() {
@@ -247,38 +254,38 @@ OrderList is used to manage the order of a collection.
247
254
 
248
255
  | Name | Type | Default | Description |
249
256
  |------|------|---------|-------------|
250
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
251
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
252
- | pt | InputSignal<OrderListPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
253
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
254
- | tabindex | InputSignalWithTransform<number, unknown> | ... | Index of the element in tabbing order. |
255
- | ariaLabel | InputSignal<string> | ... | Defines a string that labels the input for accessibility. |
256
- | ariaLabelledBy | InputSignal<string> | ... | Specifies one or more IDs in the DOM that labels the input field. |
257
- | listStyle | InputSignal<{ [klass: string]: any }> | ... | Inline style of the list element. |
258
- | responsive | InputSignalWithTransform<boolean, unknown> | ... | A boolean value that indicates whether the component should be responsive. |
259
- | filterBy | InputSignal<string> | ... | When specified displays an input field to filter the items on keyup and decides which fields to search against. |
260
- | filterPlaceholder | InputSignal<string> | ... | Placeholder of the filter input. |
261
- | filterLocale | InputSignal<string> | ... | Locale to use in filtering. The default locale is the host environment's current locale. |
262
- | metaKeySelection | InputSignalWithTransform<boolean, unknown> | ... | When true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically. |
263
- | dragdrop | InputSignalWithTransform<boolean, unknown> | ... | Whether to enable dragdrop based reordering. |
264
- | controlsPosition | InputSignal<"left" \| "right"> | ... | Defines the location of the buttons with respect to the list. |
265
- | ariaFilterLabel | InputSignal<string> | ... | Defines a string that labels the filter input. |
266
- | filterMatchMode | InputSignal<"gt" \| "lt" \| "in" \| "startsWith" \| "contains" \| "endsWith" \| "equals" \| "notEquals" \| "lte" \| "gte"> | ... | Defines how the items are filtered. |
267
- | breakpoint | InputSignal<string> | ... | Indicates the width of the screen at which the component should change its behavior. |
268
- | stripedRows | InputSignalWithTransform<boolean, unknown> | ... | Whether to displays rows with alternating colors. |
269
- | disabled | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the component should be disabled. |
270
- | scrollHeight | InputSignal<string> | ... | Height of the viewport, a scrollbar is defined if height of list exceeds this value. |
271
- | autoOptionFocus | InputSignalWithTransform<boolean, unknown> | ... | Whether to focus on the first visible or selected element. |
272
- | focusOnHover | InputSignalWithTransform<boolean, unknown> | ... | When enabled, the hovered option will be focused. |
273
- | dataKey | InputSignal<string> | ... | Name of the field that uniquely identifies the record in the data. |
274
- | optionLabel | InputSignal<string> | ... | Name of the label field of an option, used to display it and to search it with the keyboard. Defaults to dataKey, then to 'name'. |
275
- | selection | ModelSignal<any[]> | ... | A list of values that are currently selected. Two-way bindable with `[(selection)]` : `selectionChange` is emitted with the new selection when it changes. |
276
- | value | InputSignal<any[]> | ... | Array of values to be displayed in the component. It represents the data source for the list of items. |
277
- | buttonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the Button component. |
278
- | moveUpButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move up button inside the component. |
279
- | moveTopButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move top button inside the component. |
280
- | moveDownButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move down button inside the component. |
281
- | moveBottomButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move bottom button inside the component. |
257
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
258
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
259
+ | pt | OrderListPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
260
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
261
+ | tabindex | number | - | Index of the element in tabbing order. |
262
+ | ariaLabel | string | - | Defines a string that labels the input for accessibility. |
263
+ | ariaLabelledBy | string | - | Specifies one or more IDs in the DOM that labels the input field. |
264
+ | listStyle | { [klass: string]: any } | - | Inline style of the list element. |
265
+ | responsive | boolean | - | A boolean value that indicates whether the component should be responsive. |
266
+ | filterBy | string | - | When specified displays an input field to filter the items on keyup and decides which fields to search against. |
267
+ | filterPlaceholder | string | - | Placeholder of the filter input. |
268
+ | filterLocale | string | - | Locale to use in filtering. The default locale is the host environment's current locale. |
269
+ | metaKeySelection | boolean | false | When true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically. |
270
+ | dragdrop | boolean | false | Whether to enable dragdrop based reordering. |
271
+ | controlsPosition | "left" \| "right" | 'left' | Defines the location of the buttons with respect to the list. |
272
+ | ariaFilterLabel | string | - | Defines a string that labels the filter input. |
273
+ | filterMatchMode | "gt" \| "lt" \| "in" \| "startsWith" \| "contains" \| "endsWith" \| "equals" \| "notEquals" \| "lte" \| "gte" | 'contains' | Defines how the items are filtered. |
274
+ | breakpoint | string | '960px' | Indicates the width of the screen at which the component should change its behavior. |
275
+ | stripedRows | boolean | - | Whether to displays rows with alternating colors. |
276
+ | disabled | boolean | - | When present, it specifies that the component should be disabled. |
277
+ | scrollHeight | string | '14rem' | Height of the viewport, a scrollbar is defined if height of list exceeds this value. |
278
+ | autoOptionFocus | boolean | true | Whether to focus on the first visible or selected element. |
279
+ | focusOnHover | boolean | true | When enabled, the hovered option will be focused. |
280
+ | dataKey | string | - | Name of the field that uniquely identifies the record in the data. |
281
+ | optionLabel | string | - | Name of the label field of an option, used to display it and to search it with the keyboard. Defaults to dataKey, then to 'name'. |
282
+ | selection | any[] | [] | A list of values that are currently selected. Two-way bindable with `[(selection)]` : `selectionChange` is emitted with the new selection when it changes. |
283
+ | value | any[] | - | Array of values to be displayed in the component. It represents the data source for the list of items. |
284
+ | buttonProps | ButtonProps | { severity: 'secondary' } | Used to pass all properties of the ButtonProps to the Button component. |
285
+ | moveUpButtonProps | ButtonProps | - | Used to pass all properties of the ButtonProps to the move up button inside the component. |
286
+ | moveTopButtonProps | ButtonProps | - | Used to pass all properties of the ButtonProps to the move top button inside the component. |
287
+ | moveDownButtonProps | ButtonProps | - | Used to pass all properties of the ButtonProps to the move down button inside the component. |
288
+ | moveBottomButtonProps | ButtonProps | - | Used to pass all properties of the ButtonProps to the move bottom button inside the component. |
282
289
 
283
290
  ### Emits
284
291
 
@@ -12,8 +12,8 @@ OrganizationChart requires a collection of TreeNode instances as a value .
12
12
 
13
13
  ```typescript
14
14
  import { Component } from '@angular/core';
15
- import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
16
15
  import { TreeNode } from '@exhaustive-ui/core/api';
16
+ import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
17
17
 
18
18
  @Component({
19
19
  template: `
@@ -25,16 +25,47 @@ import { TreeNode } from '@exhaustive-ui/core/api';
25
25
  imports: [OrganizationChartModule]
26
26
  })
27
27
  export class OrganizationchartBasicDemo {
28
- data: TreeNode[];
28
+ data: TreeNode[] = [
29
+ {
30
+ label: 'Argentina',
31
+ expanded: true,
32
+ children: [
33
+ {
34
+ label: 'Argentina',
35
+ expanded: true,
36
+ children: [
37
+ {
38
+ label: 'Argentina'
39
+ },
40
+ {
41
+ label: 'France'
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ label: 'France',
47
+ expanded: true,
48
+ children: [
49
+ {
50
+ label: 'France'
51
+ },
52
+ {
53
+ label: 'Morocco'
54
+ }
55
+ ]
56
+ }
57
+ ]
58
+ }
59
+ ];
29
60
  }
30
61
  ```
31
62
 
32
- ## colored.-doc
63
+ ## Colored
33
64
 
34
65
  ```typescript
35
66
  import { Component } from '@angular/core';
36
- import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
37
67
  import { TreeNode } from '@exhaustive-ui/core/api';
68
+ import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
38
69
 
39
70
  @Component({
40
71
  template: `
@@ -46,7 +77,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
46
77
  <ng-template let-node pTemplate="person">
47
78
  <div class="flex flex-col">
48
79
  <div class="flex flex-col items-center">
49
- <img [src]="node.data.image" class="mb-4 w-12 h-12" />
80
+ <img [src]="node.data.image" alt="" class="mb-4 w-12 h-12" />
50
81
  <span class="font-bold mb-2">{{ node.data.name }}</span>
51
82
  <span>{{ node.data.title }}</span>
52
83
  </div>
@@ -58,8 +89,61 @@ import { TreeNode } from '@exhaustive-ui/core/api';
58
89
  standalone: true,
59
90
  imports: [OrganizationChartModule]
60
91
  })
61
- export class OrganizationchartColored.Demo {
62
- data: TreeNode[];
92
+ export class OrganizationchartColoredDemo {
93
+ data: TreeNode[] = [
94
+ {
95
+ expanded: true,
96
+ type: 'person',
97
+ styleClass: 'bg-indigo-100! text-indigo-900! rounded-xl',
98
+ data: {
99
+ image: 'https://exhaustive-ui.com/demo/avatar/amyelsner.png',
100
+ name: 'Amy Elsner',
101
+ title: 'CEO'
102
+ },
103
+ children: [
104
+ {
105
+ expanded: true,
106
+ type: 'person',
107
+ styleClass: 'bg-purple-100! text-purple-900! rounded-xl',
108
+ data: {
109
+ image: 'https://exhaustive-ui.com/demo/avatar/annafali.png',
110
+ name: 'Anna Fali',
111
+ title: 'CMO'
112
+ },
113
+ children: [
114
+ {
115
+ label: 'Sales',
116
+ styleClass: 'bg-purple-100! text-purple-900! rounded-xl'
117
+ },
118
+ {
119
+ label: 'Marketing',
120
+ styleClass: 'bg-purple-100! text-purple-900! rounded-xl'
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ expanded: true,
126
+ type: 'person',
127
+ styleClass: 'bg-teal-100! text-teal-900! rounded-xl',
128
+ data: {
129
+ image: 'https://exhaustive-ui.com/demo/avatar/stephenshaw.png',
130
+ name: 'Stephen Shaw',
131
+ title: 'CTO'
132
+ },
133
+ children: [
134
+ {
135
+ label: 'Development',
136
+ styleClass: 'bg-teal-100! text-teal-900! rounded-xl'
137
+ },
138
+ {
139
+ label: 'UI/UX Design',
140
+ styleClass: 'bg-teal-100! text-teal-900! rounded-xl'
141
+ }
142
+ ]
143
+ }
144
+ ]
145
+ }
146
+ ];
63
147
  }
64
148
  ```
65
149
 
@@ -67,8 +151,8 @@ export class OrganizationchartColored.Demo {
67
151
 
68
152
  ```typescript
69
153
  import { Component } from '@angular/core';
70
- import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
71
154
  import { TreeNode } from '@exhaustive-ui/core/api';
155
+ import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
72
156
 
73
157
  @Component({
74
158
  template: `
@@ -82,7 +166,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
82
166
  <ng-template let-node pTemplate="person">
83
167
  <div class="flex flex-col">
84
168
  <div class="flex flex-col items-center">
85
- <img [src]="node.data.image" class="mb-4 w-12 h-12" />
169
+ <img [src]="node.data.image" alt="" class="mb-4 w-12 h-12" />
86
170
  <div class="font-bold mb-2">{{ node.data.name }}</div>
87
171
  <div>{{ node.data.title }}</div>
88
172
  </div>
@@ -96,7 +180,54 @@ import { TreeNode } from '@exhaustive-ui/core/api';
96
180
  })
97
181
  export class OrganizationchartSelectionDemo {
98
182
  selectedNodes!: TreeNode[];
99
- data: TreeNode[];
183
+
184
+ data: TreeNode[] = [
185
+ {
186
+ expanded: true,
187
+ type: 'person',
188
+ data: {
189
+ image: 'https://exhaustive-ui.com/demo/avatar/amyelsner.png',
190
+ name: 'Amy Elsner',
191
+ title: 'CEO'
192
+ },
193
+ children: [
194
+ {
195
+ expanded: true,
196
+ type: 'person',
197
+ data: {
198
+ image: 'https://exhaustive-ui.com/demo/avatar/annafali.png',
199
+ name: 'Anna Fali',
200
+ title: 'CMO'
201
+ },
202
+ children: [
203
+ {
204
+ label: 'Sales'
205
+ },
206
+ {
207
+ label: 'Marketing'
208
+ }
209
+ ]
210
+ },
211
+ {
212
+ expanded: true,
213
+ type: 'person',
214
+ data: {
215
+ image: 'https://exhaustive-ui.com/demo/avatar/stephenshaw.png',
216
+ name: 'Stephen Shaw',
217
+ title: 'CTO'
218
+ },
219
+ children: [
220
+ {
221
+ label: 'Development'
222
+ },
223
+ {
224
+ label: 'UI/UX Design'
225
+ }
226
+ ]
227
+ }
228
+ ]
229
+ }
230
+ ];
100
231
  }
101
232
  ```
102
233
 
@@ -106,8 +237,8 @@ Custom content instead of a node label is defined using the pTemplate property.
106
237
 
107
238
  ```typescript
108
239
  import { Component } from '@angular/core';
109
- import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
110
240
  import { TreeNode } from '@exhaustive-ui/core/api';
241
+ import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
111
242
 
112
243
  @Component({
113
244
  template: `
@@ -115,7 +246,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
115
246
  <p-organization-chart [value]="data" [collapsible]="true">
116
247
  <ng-template let-node pTemplate="default">
117
248
  <div class="flex flex-col items-center">
118
- <img src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" [alt]="node.label" [class]="'flag' + ' flag-' + node.data" width="32" />
249
+ <img src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" alt="" [class]="'flag' + ' flag-' + node.data" width="32" />
119
250
  <div class="mt-4 font-medium text-lg">{{ node.label }}</div>
120
251
  </div>
121
252
  </ng-template>
@@ -126,7 +257,45 @@ import { TreeNode } from '@exhaustive-ui/core/api';
126
257
  imports: [OrganizationChartModule]
127
258
  })
128
259
  export class OrganizationchartTemplateDemo {
129
- data: TreeNode[];
260
+ data: TreeNode[] = [
261
+ {
262
+ label: 'Argentina',
263
+ expanded: true,
264
+ data: 'ar',
265
+ children: [
266
+ {
267
+ label: 'Argentina',
268
+ expanded: true,
269
+ data: 'ar',
270
+ children: [
271
+ {
272
+ label: 'Argentina',
273
+ data: 'ar'
274
+ },
275
+ {
276
+ label: 'Croatia',
277
+ data: 'hr'
278
+ }
279
+ ]
280
+ },
281
+ {
282
+ label: 'France',
283
+ expanded: true,
284
+ data: 'fr',
285
+ children: [
286
+ {
287
+ label: 'France',
288
+ data: 'fr'
289
+ },
290
+ {
291
+ label: 'Morocco',
292
+ data: 'ma'
293
+ }
294
+ ]
295
+ }
296
+ ]
297
+ }
298
+ ];
130
299
  }
131
300
  ```
132
301
 
@@ -12,7 +12,7 @@ Overlay can be mounted into its location, body or DOM element instance using thi
12
12
 
13
13
  ## autozindex-doc
14
14
 
15
- The autoZIndex determines whether to automatically manage layering. Its default value is 'false'.
15
+ The autoZIndex determines whether to automatically manage layering. Its default value is 'true'.
16
16
 
17
17
  ## basezindex-doc
18
18
 
@@ -25,6 +25,7 @@ Overlay is a container to display content in an overlay window. All the options
25
25
  ```typescript
26
26
  import { Component } from '@angular/core';
27
27
  import { ButtonModule } from '@exhaustive-ui/core/button';
28
+ import { OverlayModule } from '@exhaustive-ui/core/overlay';
28
29
 
29
30
  @Component({
30
31
  template: `
@@ -34,7 +35,7 @@ import { ButtonModule } from '@exhaustive-ui/core/button';
34
35
  </div>
35
36
  `,
36
37
  standalone: true,
37
- imports: [ButtonModule]
38
+ imports: [ButtonModule, OverlayModule]
38
39
  })
39
40
  export class OverlayBasicDemo {
40
41
  overlayVisible: boolean = false;
@@ -58,12 +59,13 @@ import { Component } from '@angular/core';
58
59
  standalone: true,
59
60
  imports: []
60
61
  })
61
- export class OverlayEventsDemo {}
62
+ export class OverlayEventsDemo {
63
+ }
62
64
  ```
63
65
 
64
66
  ## hideonescape-doc
65
67
 
66
- The hideOnEscape determines to hide the overlay when escape key pressed. Accepts boolean, default value is false .
68
+ The hideOnEscape determines to hide the overlay when escape key pressed. Accepts boolean, the overlay is hidden unless it is set to false .
67
69
 
68
70
  ## Mode
69
71
 
@@ -100,7 +102,8 @@ import { Component } from '@angular/core';
100
102
  standalone: true,
101
103
  imports: []
102
104
  })
103
- export class OverlayResponsiveDemo {}
105
+ export class OverlayResponsiveDemo {
106
+ }
104
107
  ```
105
108
 
106
109
  ## Target
@@ -126,7 +129,8 @@ import { Component } from '@angular/core';
126
129
  standalone: true,
127
130
  imports: []
128
131
  })
129
- export class OverlayTargetDemo {}
132
+ export class OverlayTargetDemo {
133
+ }
130
134
  ```
131
135
 
132
136
  ## Template
@@ -136,6 +140,7 @@ Content can be customized with the content template.
136
140
  ```typescript
137
141
  import { Component } from '@angular/core';
138
142
  import { ButtonModule } from '@exhaustive-ui/core/button';
143
+ import { OverlayModule } from '@exhaustive-ui/core/overlay';
139
144
 
140
145
  @Component({
141
146
  template: `
@@ -147,7 +152,7 @@ import { ButtonModule } from '@exhaustive-ui/core/button';
147
152
  </div>
148
153
  `,
149
154
  standalone: true,
150
- imports: [ButtonModule]
155
+ imports: [ButtonModule, OverlayModule]
151
156
  })
152
157
  export class OverlayTemplateDemo {
153
158
  overlayVisible: boolean = false;
@@ -166,25 +171,25 @@ This API allows overlay components to be controlled from Exhaustive. In this way
166
171
 
167
172
  | Name | Type | Default | Description |
168
173
  |------|------|---------|-------------|
169
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
170
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
171
- | pt | InputSignal<any> | undefined | Used to pass attributes to DOM elements inside the component. |
172
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
173
- | visible | ModelSignal<boolean> | false | The visible property is an input that determines the visibility of the component. Emits its new value whenever the visibility state of the component changes. |
174
- | mode | InputSignal<string> | null | The mode property is an input that determines the overlay mode type or string. |
175
- | style | InputSignal<{ [klass: string]: any }> | null | The style property is an input that determines the style object for the component. |
176
- | styleClass | InputSignal<string> | null | The styleClass property is an input that determines the CSS class(es) for the component. |
177
- | contentStyle | InputSignal<{ [klass: string]: any }> | null | The contentStyle property is an input that determines the style object for the content of the component. |
178
- | contentStyleClass | InputSignal<string> | null | The contentStyleClass property is an input that determines the CSS class(es) for the content of the component. |
179
- | target | InputSignal<string> | null | The target property is an input that specifies the target element or selector for the component. |
180
- | autoZIndex | InputSignal<boolean> | false | The autoZIndex determines whether to automatically manage layering. Its default value is 'false'. |
181
- | baseZIndex | InputSignal<number> | null | The baseZIndex is base zIndex value to use in layering. |
182
- | listener | InputSignal<any> | null | The listener property is an input that specifies the listener object for the component. |
183
- | responsive | InputSignal<ResponsiveOverlayOptions> | null | It is the option used to determine in which mode it should appear according to the given media or breakpoint. |
184
- | options | InputSignal<OverlayOptions> | null | The options property is an input that specifies the overlay options for the component. |
185
- | appendTo | InputSignal<any> | 'self' | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
186
- | inline | InputSignal<boolean> | false | Specifies whether the overlay should be rendered inline within the current component's template. |
187
- | motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
174
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
175
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
176
+ | pt | any | undefined | Used to pass attributes to DOM elements inside the component. |
177
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
178
+ | visible | boolean | false | The visible property is an input that determines the visibility of the component. Emits its new value whenever the visibility state of the component changes. |
179
+ | mode | string | null | The mode property is an input that determines the overlay mode type or string. |
180
+ | style | { [klass: string]: any } | null | The style property is an input that determines the style object for the component. |
181
+ | styleClass | string | null | The styleClass property is an input that determines the CSS class(es) for the component. |
182
+ | contentStyle | { [klass: string]: any } | null | The contentStyle property is an input that determines the style object for the content of the component. |
183
+ | contentStyleClass | string | null | The contentStyleClass property is an input that determines the CSS class(es) for the content of the component. |
184
+ | target | string | null | The target property is an input that specifies the target element or selector for the component. |
185
+ | autoZIndex | boolean | false | The autoZIndex determines whether to automatically manage layering. Its default value is 'false'. |
186
+ | baseZIndex | number | null | The baseZIndex is base zIndex value to use in layering. |
187
+ | listener | any | null | The listener property is an input that specifies the listener object for the component. |
188
+ | responsive | ResponsiveOverlayOptions | null | It is the option used to determine in which mode it should appear according to the given media or breakpoint. |
189
+ | options | OverlayOptions | null | The options property is an input that specifies the overlay options for the component. |
190
+ | appendTo | any | 'self' | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
191
+ | inline | boolean | false | Specifies whether the overlay should be rendered inline within the current component's template. |
192
+ | motionOptions | MotionOptions | - | The motion options. |
188
193
 
189
194
  ### Emits
190
195