@exhaustive-ui/mcp 0.0.0-stage → 3.0.0-alpha.1
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.
- package/LICENSE +23 -0
- package/README.md +167 -2
- package/data/components/accordion.md +421 -0
- package/data/components/animateonscroll.md +163 -0
- package/data/components/autocomplete.md +1077 -0
- package/data/components/autofocus.md +38 -0
- package/data/components/avatar.md +417 -0
- package/data/components/badge.md +234 -0
- package/data/components/blockui.md +108 -0
- package/data/components/breadcrumb.md +178 -0
- package/data/components/button.md +774 -0
- package/data/components/card.md +138 -0
- package/data/components/carousel.md +440 -0
- package/data/components/cascadeselect.md +1387 -0
- package/data/components/chart.md +1178 -0
- package/data/components/checkbox.md +529 -0
- package/data/components/chip.md +180 -0
- package/data/components/colorpicker.md +301 -0
- package/data/components/confirmdialog.md +287 -0
- package/data/components/confirmpopup.md +417 -0
- package/data/components/contextmenu.md +491 -0
- package/data/components/dataview.md +600 -0
- package/data/components/datepicker.md +1262 -0
- package/data/components/dialog.md +622 -0
- package/data/components/divider.md +250 -0
- package/data/components/dock.md +500 -0
- package/data/components/dragdrop.md +285 -0
- package/data/components/drawer.md +510 -0
- package/data/components/dynamicdialog.md +109 -0
- package/data/components/editor.md +291 -0
- package/data/components/fieldset.md +182 -0
- package/data/components/fileupload.md +430 -0
- package/data/components/floatlabel.md +155 -0
- package/data/components/fluid.md +72 -0
- package/data/components/focustrap.md +65 -0
- package/data/components/galleria.md +627 -0
- package/data/components/iconfield.md +246 -0
- package/data/components/iftalabel.md +105 -0
- package/data/components/imagecompare.md +97 -0
- package/data/components/inplace.md +233 -0
- package/data/components/inputgroup.md +306 -0
- package/data/components/inputmask.md +518 -0
- package/data/components/inputnumber.md +675 -0
- package/data/components/inputotp.md +336 -0
- package/data/components/inputtext.md +488 -0
- package/data/components/keyfilter.md +85 -0
- package/data/components/knob.md +462 -0
- package/data/components/listbox.md +798 -0
- package/data/components/llms.md +28 -0
- package/data/components/megamenu.md +587 -0
- package/data/components/menu.md +483 -0
- package/data/components/menubar.md +462 -0
- package/data/components/message.md +449 -0
- package/data/components/metergroup.md +241 -0
- package/data/components/multiselect.md +1047 -0
- package/data/components/orderlist.md +342 -0
- package/data/components/organizationchart.md +197 -0
- package/data/components/overlay.md +217 -0
- package/data/components/paginator.md +314 -0
- package/data/components/panel.md +214 -0
- package/data/components/panelmenu.md +699 -0
- package/data/components/password.md +570 -0
- package/data/components/picklist.md +420 -0
- package/data/components/popover.md +378 -0
- package/data/components/progressbar.md +181 -0
- package/data/components/progressspinner.md +91 -0
- package/data/components/radiobutton.md +377 -0
- package/data/components/rating.md +312 -0
- package/data/components/ripple.md +89 -0
- package/data/components/scroller.md +122 -0
- package/data/components/scrollpanel.md +149 -0
- package/data/components/scrolltop.md +105 -0
- package/data/components/select.md +1206 -0
- package/data/components/selectbutton.md +356 -0
- package/data/components/skeleton.md +242 -0
- package/data/components/slider.md +337 -0
- package/data/components/speeddial.md +589 -0
- package/data/components/splitbutton.md +945 -0
- package/data/components/splitter.md +196 -0
- package/data/components/stepper.md +411 -0
- package/data/components/styleclass.md +126 -0
- package/data/components/table.md +4557 -0
- package/data/components/tabs.md +467 -0
- package/data/components/tag.md +200 -0
- package/data/components/terminal.md +118 -0
- package/data/components/textarea.md +416 -0
- package/data/components/tieredmenu.md +578 -0
- package/data/components/timeline.md +310 -0
- package/data/components/toast.md +596 -0
- package/data/components/togglebutton.md +356 -0
- package/data/components/toggleswitch.md +285 -0
- package/data/components/toolbar.md +182 -0
- package/data/components/tooltip.md +211 -0
- package/data/components/tree.md +746 -0
- package/data/components/treeselect.md +912 -0
- package/data/components/treetable.md +2814 -0
- package/data/components.json +43751 -0
- package/data/llms-full.txt +47433 -0
- package/data/llms.txt +121 -0
- package/data/manifest.json +46513 -0
- package/data/pages/accessibility.md +28 -0
- package/data/pages/animations.md +28 -0
- package/data/pages/configuration.md +210 -0
- package/data/pages/contribution.md +20 -0
- package/data/pages/customicons.md +20 -0
- package/data/pages/faq.md +20 -0
- package/data/pages/icons.md +66 -0
- package/data/pages/installation.md +71 -0
- package/data/pages/llms.md +61 -0
- package/data/pages/passthrough.md +32 -0
- package/data/pages/philosophy.md +28 -0
- package/data/pages/primeflex.md +20 -0
- package/data/pages/rtl.md +12 -0
- package/data/pages/styled.md +132 -0
- package/data/pages/tailwind.md +40 -0
- package/data/pages/unstyled.md +39 -0
- package/data/snapshot.json +9 -0
- package/dist/index.d.mts +448 -0
- package/dist/index.mjs +2501 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +67 -3
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
# Angular PickList Component
|
|
2
|
+
|
|
3
|
+
PickList is used to reorder items between different lists.
|
|
4
|
+
|
|
5
|
+
## Accessibility
|
|
6
|
+
|
|
7
|
+
Screen Reader Value to describe the source listbox and target listbox can be provided with ariaLabelledBy or ariaLabel 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. PickList 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
|
+
|
|
9
|
+
## Basic
|
|
10
|
+
|
|
11
|
+
PickList is used as a controlled input with source and target properties. Content of a list item needs to be defined with the item template that receives an object in the list as parameter. Drag & drop functionality depends on @angular/cdk package.
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Component, OnInit, inject, signal } from '@angular/core';
|
|
15
|
+
import { PickListModule } from '@exhaustive-ui/core/picklist';
|
|
16
|
+
import { ProductService } from '@/service/productservice';
|
|
17
|
+
import { Product } from '@/domain/product';
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
template: `
|
|
21
|
+
<div class="card">
|
|
22
|
+
<p-picklist [source]="sourceProducts()" [target]="targetProducts()" [dragdrop]="true" [responsive]="true" breakpoint="1400px">
|
|
23
|
+
<ng-template let-item #item>
|
|
24
|
+
{{ item.name }}
|
|
25
|
+
</ng-template>
|
|
26
|
+
</p-picklist>
|
|
27
|
+
</div>
|
|
28
|
+
`,
|
|
29
|
+
standalone: true,
|
|
30
|
+
imports: [PickListModule],
|
|
31
|
+
providers: [ProductService]
|
|
32
|
+
})
|
|
33
|
+
export class PicklistBasicDemo implements OnInit {
|
|
34
|
+
private productService = inject(ProductService);
|
|
35
|
+
sourceProducts = signal<Product[]>([]);
|
|
36
|
+
targetProducts = signal<Product[]>([]);
|
|
37
|
+
|
|
38
|
+
ngOnInit() {
|
|
39
|
+
this.carService.getProductsSmall().then((products) => {
|
|
40
|
+
this.sourceProducts.set(products);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Filter
|
|
47
|
+
|
|
48
|
+
Filter value is checked against the property of an object configured with the filterBy property.
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
import { Component, OnInit, inject, signal } from '@angular/core';
|
|
52
|
+
import { PickListModule } from '@exhaustive-ui/core/picklist';
|
|
53
|
+
import { ProductService } from '@/service/productservice';
|
|
54
|
+
import { Product } from '@/domain/product';
|
|
55
|
+
|
|
56
|
+
@Component({
|
|
57
|
+
template: `
|
|
58
|
+
<div class="card">
|
|
59
|
+
<p-picklist
|
|
60
|
+
[source]="sourceProducts()"
|
|
61
|
+
[target]="targetProducts()"
|
|
62
|
+
[dragdrop]="true"
|
|
63
|
+
[responsive]="true"
|
|
64
|
+
filterBy="name"
|
|
65
|
+
sourceFilterPlaceholder="Search by name"
|
|
66
|
+
targetFilterPlaceholder="Search by name"
|
|
67
|
+
breakpoint="1400px"
|
|
68
|
+
scrollHeight="20rem"
|
|
69
|
+
>
|
|
70
|
+
<ng-template let-option let-selected="selected" #option>
|
|
71
|
+
<div class="flex flex-wrap p-1 items-center gap-4 w-full">
|
|
72
|
+
<img class="w-12 shrink-0 rounded" src="https://exhaustive-ui.e-xiste.com/demo/product/{{ option.image }}" [alt]="option.name" />
|
|
73
|
+
<div class="flex-1 flex flex-col">
|
|
74
|
+
<span class="font-medium text-sm">{{ option.name }}</span>
|
|
75
|
+
<span
|
|
76
|
+
[ngClass]="{
|
|
77
|
+
'text-surface-500': !selected,
|
|
78
|
+
'dark:text-surface-400': !selected,
|
|
79
|
+
'text-inherit': selected
|
|
80
|
+
}"
|
|
81
|
+
>{{ option.category }}</span
|
|
82
|
+
>
|
|
83
|
+
</div>
|
|
84
|
+
<span class="font-bold sm:ml-8">{{ '$' + option.price }}</span>
|
|
85
|
+
</div>
|
|
86
|
+
</ng-template>
|
|
87
|
+
</p-picklist>
|
|
88
|
+
</div>
|
|
89
|
+
`,
|
|
90
|
+
standalone: true,
|
|
91
|
+
imports: [PickListModule],
|
|
92
|
+
providers: [ProductService]
|
|
93
|
+
})
|
|
94
|
+
export class PicklistFilterDemo implements OnInit {
|
|
95
|
+
private productService = inject(ProductService);
|
|
96
|
+
sourceProducts = signal<Product[]>([]);
|
|
97
|
+
targetProducts = signal<Product[]>([]);
|
|
98
|
+
|
|
99
|
+
ngOnInit() {
|
|
100
|
+
this.carService.getProductsSmall().then((products) => {
|
|
101
|
+
this.sourceProducts.set(products);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Template
|
|
108
|
+
|
|
109
|
+
For custom content support define an item template that gets the item instance as a parameter. In addition sourceheader and targetheader templates are provided for further customization.
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
import { Component, OnInit, inject, signal } from '@angular/core';
|
|
113
|
+
import { PickListModule } from '@exhaustive-ui/core/picklist';
|
|
114
|
+
import { ProductService } from '@/service/productservice';
|
|
115
|
+
import { Product } from '@/domain/product';
|
|
116
|
+
|
|
117
|
+
@Component({
|
|
118
|
+
template: `
|
|
119
|
+
<div class="card">
|
|
120
|
+
<p-picklist [source]="sourceProducts()" [target]="targetProducts()" [dragdrop]="true" [responsive]="true" sourceFilterPlaceholder="Search by name" targetFilterPlaceholder="Search by name" breakpoint="1400px" scrollHeight="20rem">
|
|
121
|
+
<ng-template let-option let-selected="selected" #item>
|
|
122
|
+
<div class="flex flex-wrap p-1 items-center gap-4 w-full">
|
|
123
|
+
<img class="w-12 shrink-0 rounded" src="https://exhaustive-ui.e-xiste.com/demo/product/{{ option.image }}" [alt]="option.name" />
|
|
124
|
+
<div class="flex-1 flex flex-col">
|
|
125
|
+
<span class="font-medium text-sm">{{ option.name }}</span>
|
|
126
|
+
<span
|
|
127
|
+
[ngClass]="{
|
|
128
|
+
'text-surface-500': !selected,
|
|
129
|
+
'dark:text-surface-400': !selected,
|
|
130
|
+
'text-inherit': selected
|
|
131
|
+
}"
|
|
132
|
+
>{{ option.category }}</span
|
|
133
|
+
>
|
|
134
|
+
</div>
|
|
135
|
+
<span class="font-bold sm:ml-8">{{ '$' + option.price }}</span>
|
|
136
|
+
</div>
|
|
137
|
+
</ng-template>
|
|
138
|
+
</p-picklist>
|
|
139
|
+
</div>
|
|
140
|
+
`,
|
|
141
|
+
standalone: true,
|
|
142
|
+
imports: [PickListModule],
|
|
143
|
+
providers: [ProductService]
|
|
144
|
+
})
|
|
145
|
+
export class PicklistTemplateDemo implements OnInit {
|
|
146
|
+
private productService = inject(ProductService);
|
|
147
|
+
sourceProducts = signal<Product[]>([]);
|
|
148
|
+
targetProducts = signal<Product[]>([]);
|
|
149
|
+
|
|
150
|
+
ngOnInit() {
|
|
151
|
+
this.carService.getProductsSmall().then((products) => {
|
|
152
|
+
this.sourceProducts.set(products);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## templates-doc
|
|
159
|
+
|
|
160
|
+
```typescript
|
|
161
|
+
import { Component } from '@angular/core';
|
|
162
|
+
|
|
163
|
+
@Component({
|
|
164
|
+
template: `
|
|
165
|
+
<div class="doc-tablewrapper">
|
|
166
|
+
<table class="doc-table">
|
|
167
|
+
<thead>
|
|
168
|
+
<tr>
|
|
169
|
+
<th>Name</th>
|
|
170
|
+
<th>Parameters</th>
|
|
171
|
+
</tr>
|
|
172
|
+
</thead>
|
|
173
|
+
<tbody>
|
|
174
|
+
<tr>
|
|
175
|
+
<td>item</td>
|
|
176
|
+
<td>
|
|
177
|
+
$implicit: Data of the item<br />
|
|
178
|
+
index: Index of the item
|
|
179
|
+
</td>
|
|
180
|
+
</tr>
|
|
181
|
+
<tr>
|
|
182
|
+
<td>sourceHeader</td>
|
|
183
|
+
<td>-</td>
|
|
184
|
+
</tr>
|
|
185
|
+
<tr>
|
|
186
|
+
<td>targetHeader</td>
|
|
187
|
+
<td>-</td>
|
|
188
|
+
</tr>
|
|
189
|
+
<tr>
|
|
190
|
+
<td>sourceFilter</td>
|
|
191
|
+
<td>
|
|
192
|
+
options.filter: Callback to filter data by the value param<br />
|
|
193
|
+
options.reset: Resets the filters.
|
|
194
|
+
</td>
|
|
195
|
+
</tr>
|
|
196
|
+
<tr>
|
|
197
|
+
<td>targetFilter</td>
|
|
198
|
+
<td>
|
|
199
|
+
options.filter: Callback to filter data by the value param<br />
|
|
200
|
+
options.reset: Resets the filters
|
|
201
|
+
</td>
|
|
202
|
+
</tr>
|
|
203
|
+
<tr>
|
|
204
|
+
<td>emptymessagesource</td>
|
|
205
|
+
<td>-</td>
|
|
206
|
+
</tr>
|
|
207
|
+
<tr>
|
|
208
|
+
<td>emptyfiltermessagesource</td>
|
|
209
|
+
<td>-</td>
|
|
210
|
+
</tr>
|
|
211
|
+
<tr>
|
|
212
|
+
<td>emptymessagetarget</td>
|
|
213
|
+
<td>-</td>
|
|
214
|
+
</tr>
|
|
215
|
+
<tr>
|
|
216
|
+
<td>emptyfiltermessagetarget</td>
|
|
217
|
+
<td>-</td>
|
|
218
|
+
</tr>
|
|
219
|
+
<tr>
|
|
220
|
+
<td>moveupicon</td>
|
|
221
|
+
<td>-</td>
|
|
222
|
+
</tr>
|
|
223
|
+
<tr>
|
|
224
|
+
<td>movetopicon</td>
|
|
225
|
+
<td>-</td>
|
|
226
|
+
</tr>
|
|
227
|
+
<tr>
|
|
228
|
+
<td>movedownicon</td>
|
|
229
|
+
<td>-</td>
|
|
230
|
+
</tr>
|
|
231
|
+
<tr>
|
|
232
|
+
<td>movebottomicon</td>
|
|
233
|
+
<td>-</td>
|
|
234
|
+
</tr>
|
|
235
|
+
<tr>
|
|
236
|
+
<td>movetotargeticon</td>
|
|
237
|
+
<td>$implicit: viewChanged</td>
|
|
238
|
+
</tr>
|
|
239
|
+
<tr>
|
|
240
|
+
<td>movealltotargeticon</td>
|
|
241
|
+
<td>$implicit: viewChanged</td>
|
|
242
|
+
</tr>
|
|
243
|
+
<tr>
|
|
244
|
+
<td>movetosourceicon</td>
|
|
245
|
+
<td>$implicit: viewChanged</td>
|
|
246
|
+
</tr>
|
|
247
|
+
<tr>
|
|
248
|
+
<td>movealltosourceicon</td>
|
|
249
|
+
<td>$implicit: viewChanged</td>
|
|
250
|
+
</tr>
|
|
251
|
+
<tr>
|
|
252
|
+
<td>targetfiltericon</td>
|
|
253
|
+
<td>-</td>
|
|
254
|
+
</tr>
|
|
255
|
+
<tr>
|
|
256
|
+
<td>sourcefiltericon</td>
|
|
257
|
+
<td>-</td>
|
|
258
|
+
</tr>
|
|
259
|
+
</tbody>
|
|
260
|
+
</table>
|
|
261
|
+
</div>
|
|
262
|
+
`,
|
|
263
|
+
standalone: true,
|
|
264
|
+
imports: []
|
|
265
|
+
})
|
|
266
|
+
export class PicklistTemplatesDemo {}
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
## Pick List
|
|
270
|
+
|
|
271
|
+
PickList is used to reorder items between different lists.
|
|
272
|
+
|
|
273
|
+
### Props
|
|
274
|
+
|
|
275
|
+
| Name | Type | Default | Description |
|
|
276
|
+
|------|------|---------|-------------|
|
|
277
|
+
| dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
|
|
278
|
+
| unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
|
|
279
|
+
| pt | InputSignal<any> | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
280
|
+
| ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
|
|
281
|
+
| source | ModelSignal<any[]> | ... | An array of objects for the source list. |
|
|
282
|
+
| target | ModelSignal<any[]> | ... | An array of objects for the target list. |
|
|
283
|
+
| dataKey | InputSignal<string> | ... | Name of the field that uniquely identifies the options. |
|
|
284
|
+
| sourceHeader | InputSignal<string> | ... | Text for the source list caption |
|
|
285
|
+
| tabindex | InputSignalWithTransform<number, unknown> | ... | Index of the element in tabbing order. |
|
|
286
|
+
| rightButtonAriaLabel | InputSignal<string> | ... | Defines a string that labels the move to right button for accessibility. |
|
|
287
|
+
| leftButtonAriaLabel | InputSignal<string> | ... | Defines a string that labels the move to left button for accessibility. |
|
|
288
|
+
| allRightButtonAriaLabel | InputSignal<string> | ... | Defines a string that labels the move to all right button for accessibility. |
|
|
289
|
+
| allLeftButtonAriaLabel | InputSignal<string> | ... | Defines a string that labels the move to all left button for accessibility. |
|
|
290
|
+
| upButtonAriaLabel | InputSignal<string> | ... | Defines a string that labels the move to up button for accessibility. |
|
|
291
|
+
| downButtonAriaLabel | InputSignal<string> | ... | Defines a string that labels the move to down button for accessibility. |
|
|
292
|
+
| topButtonAriaLabel | InputSignal<string> | ... | Defines a string that labels the move to top button for accessibility. |
|
|
293
|
+
| bottomButtonAriaLabel | InputSignal<string> | ... | Defines a string that labels the move to bottom button for accessibility. |
|
|
294
|
+
| sourceAriaLabel | InputSignal<string> | ... | Defines a string that labels the source list. |
|
|
295
|
+
| targetAriaLabel | InputSignal<string> | ... | Defines a string that labels the target list. |
|
|
296
|
+
| targetHeader | InputSignal<string> | ... | Text for the target list caption |
|
|
297
|
+
| responsive | InputSignalWithTransform<boolean, unknown> | ... | When enabled orderlist adjusts its controls based on screen size. |
|
|
298
|
+
| filterBy | InputSignal<string> | ... | When specified displays an input field to filter the items on keyup and decides which field to search (Accepts multiple fields with a comma). |
|
|
299
|
+
| filterLocale | InputSignal<string> | ... | Locale to use in filtering. The default locale is the host environment's current locale. |
|
|
300
|
+
| trackBy | InputSignal<Function> | ... | Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity. Use sourceTrackBy or targetTrackBy in case different algorithms are needed per list. |
|
|
301
|
+
| sourceTrackBy | InputSignal<Function> | ... | Function to optimize the dom operations by delegating to ngForTrackBy in source list, default algorithm checks for object identity. |
|
|
302
|
+
| targetTrackBy | InputSignal<Function> | ... | Function to optimize the dom operations by delegating to ngForTrackBy in target list, default algorithm checks for object identity. |
|
|
303
|
+
| showSourceFilter | InputSignalWithTransform<boolean, unknown> | ... | Whether to show filter input for source list when filterBy is enabled. |
|
|
304
|
+
| showTargetFilter | InputSignalWithTransform<boolean, unknown> | ... | Whether to show filter input for target list when filterBy is enabled. |
|
|
305
|
+
| metaKeySelection | InputSignalWithTransform<boolean, unknown> | ... | Defines how multiple items can be selected, 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. |
|
|
306
|
+
| dragdrop | InputSignalWithTransform<boolean, unknown> | ... | Whether to enable dragdrop based reordering. |
|
|
307
|
+
| style | InputSignal<{ [klass: string]: any }> | ... | Inline style of the component. |
|
|
308
|
+
| styleClass | InputSignal<string> | ... | Style class of the component. |
|
|
309
|
+
| sourceStyle | InputSignal<any> | ... | Inline style of the source list element. |
|
|
310
|
+
| targetStyle | InputSignal<any> | ... | Inline style of the target list element. |
|
|
311
|
+
| showSourceControls | InputSignalWithTransform<boolean, unknown> | ... | Whether to show buttons of source list. |
|
|
312
|
+
| showTargetControls | InputSignalWithTransform<boolean, unknown> | ... | Whether to show buttons of target list. |
|
|
313
|
+
| sourceFilterPlaceholder | InputSignal<string> | ... | Placeholder text on source filter input. |
|
|
314
|
+
| targetFilterPlaceholder | InputSignal<string> | ... | Placeholder text on target filter input. |
|
|
315
|
+
| disabled | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the component should be disabled. |
|
|
316
|
+
| sourceOptionDisabled | InputSignal<string \| ((item: any) => boolean)> | ... | Name of the disabled field of a target option or function to determine disabled state. |
|
|
317
|
+
| targetOptionDisabled | InputSignal<string \| ((item: any) => boolean)> | ... | Name of the disabled field of a target option or function to determine disabled state. |
|
|
318
|
+
| ariaSourceFilterLabel | InputSignal<string> | ... | Defines a string that labels the filter input of source list. |
|
|
319
|
+
| ariaTargetFilterLabel | InputSignal<string> | ... | Defines a string that labels the filter input of target list. |
|
|
320
|
+
| filterMatchMode | InputSignal<string> | ... | Defines how the items are filtered. |
|
|
321
|
+
| stripedRows | InputSignalWithTransform<boolean, unknown> | ... | Whether to displays rows with alternating colors. |
|
|
322
|
+
| keepSelection | InputSignalWithTransform<boolean, unknown> | ... | Keeps selection on the transfer list. |
|
|
323
|
+
| scrollHeight | InputSignal<string> | ... | Height of the viewport, a scrollbar is defined if height of list exceeds this value. |
|
|
324
|
+
| autoOptionFocus | InputSignalWithTransform<boolean, unknown> | ... | Whether to focus on the first visible or selected element. |
|
|
325
|
+
| buttonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the Button component. |
|
|
326
|
+
| moveUpButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move up button inside the component. |
|
|
327
|
+
| moveTopButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move top button inside the component. |
|
|
328
|
+
| moveDownButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move down button inside the component. |
|
|
329
|
+
| moveBottomButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move bottom button inside the component. |
|
|
330
|
+
| moveToTargetProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move to target button inside the component. |
|
|
331
|
+
| moveAllToTargetProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move all to target button inside the component. |
|
|
332
|
+
| moveToSourceProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move to source button inside the component. |
|
|
333
|
+
| moveAllToSourceProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the move all to source button inside the component. |
|
|
334
|
+
| breakpoint | InputSignal<string> | ... | Indicates the width of the screen at which the component should change its behavior. |
|
|
335
|
+
|
|
336
|
+
### Emits
|
|
337
|
+
|
|
338
|
+
| Name | Parameters | Description |
|
|
339
|
+
|------|------------|-------------|
|
|
340
|
+
| onMoveToSource | event: PickListMoveToSourceEvent | Callback to invoke when items are moved from target to source. |
|
|
341
|
+
| onMoveAllToSource | event: PickListMoveAllToSourceEvent | Callback to invoke when all items are moved from target to source. |
|
|
342
|
+
| onMoveAllToTarget | event: PickListMoveAllToTargetEvent | Callback to invoke when all items are moved from source to target. |
|
|
343
|
+
| onMoveToTarget | event: PickListMoveToTargetEvent | Callback to invoke when items are moved from source to target. |
|
|
344
|
+
| onSourceReorder | event: PickListSourceReorderEvent | Callback to invoke when items are reordered within source list. |
|
|
345
|
+
| onTargetReorder | event: PickListTargetReorderEvent | Callback to invoke when items are reordered within target list. |
|
|
346
|
+
| onSourceSelect | event: PickListSourceSelectEvent | Callback to invoke when items are selected within source list. |
|
|
347
|
+
| onTargetSelect | event: PickListTargetSelectEvent | Callback to invoke when items are selected within target list. |
|
|
348
|
+
| onSourceFilter | event: PickListSourceFilterEvent | Callback to invoke when the source list is filtered |
|
|
349
|
+
| onTargetFilter | event: PickListTargetFilterEvent | Callback to invoke when the target list is filtered |
|
|
350
|
+
| onFocus | event: Event | Callback to invoke when the list is focused |
|
|
351
|
+
| onBlur | event: Event | Callback to invoke when the list is blurred |
|
|
352
|
+
|
|
353
|
+
### Templates
|
|
354
|
+
|
|
355
|
+
| Name | Type | Description |
|
|
356
|
+
|------|------|-------------|
|
|
357
|
+
| item | TemplateRef<PickListItemTemplateContext> | Custom item template. |
|
|
358
|
+
| sourceheader | TemplateRef<void> | Custom source header template. |
|
|
359
|
+
| targetheader | TemplateRef<void> | Custom target header template. |
|
|
360
|
+
| sourcefilter | TemplateRef<PickListFilterTemplateContext> | Custom source filter template. |
|
|
361
|
+
| targetfilter | TemplateRef<PickListFilterTemplateContext> | Custom target filter template. |
|
|
362
|
+
| emptymessagesource | TemplateRef<void> | Custom empty message when source is empty template. |
|
|
363
|
+
| emptyfiltermessagesource | TemplateRef<void> | Custom empty filter message when source is empty template. |
|
|
364
|
+
| emptymessagetarget | TemplateRef<void> | Custom empty message when target is empty template. |
|
|
365
|
+
| emptyfiltermessagetarget | TemplateRef<void> | Custom empty filter message when target is empty template. |
|
|
366
|
+
| moveupicon | TemplateRef<void> | Custom move up icon template. |
|
|
367
|
+
| movetopicon | TemplateRef<void> | Custom move top icon template. |
|
|
368
|
+
| movedownicon | TemplateRef<void> | Custom move down icon template. |
|
|
369
|
+
| movebottomicon | TemplateRef<void> | Custom move bottom icon template. |
|
|
370
|
+
| movetotargeticon | TemplateRef<PickListTransferIconTemplateContext> | Custom move to target icon template. |
|
|
371
|
+
| movealltotargeticon | TemplateRef<PickListTransferIconTemplateContext> | Custom move all to target icon template. |
|
|
372
|
+
| movetosourceicon | TemplateRef<PickListTransferIconTemplateContext> | Custom move to source icon template. |
|
|
373
|
+
| movealltosourceicon | TemplateRef<PickListTransferIconTemplateContext> | Custom move all to source icon template. |
|
|
374
|
+
| targetfiltericon | TemplateRef<void> | Custom target filter icon template. |
|
|
375
|
+
| sourcefiltericon | TemplateRef<void> | Custom source filter icon template. |
|
|
376
|
+
|
|
377
|
+
## Pass Through Options
|
|
378
|
+
|
|
379
|
+
| Name | Type | Description |
|
|
380
|
+
|------|------|-------------|
|
|
381
|
+
| root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
|
|
382
|
+
| sourceControls | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the source controls' DOM element. |
|
|
383
|
+
| sourceListContainer | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the source list container's DOM element. |
|
|
384
|
+
| transferControls | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the transfer controls' DOM element. |
|
|
385
|
+
| targetListContainer | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the target list container's DOM element. |
|
|
386
|
+
| targetControls | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the target controls' DOM element. |
|
|
387
|
+
| pcSourceMoveUpButton | ButtonPassThrough | Used to pass attributes to the source move up Button component. |
|
|
388
|
+
| pcSourceMoveTopButton | ButtonPassThrough | Used to pass attributes to the source move top Button component. |
|
|
389
|
+
| pcSourceMoveDownButton | ButtonPassThrough | Used to pass attributes to the source move down Button component. |
|
|
390
|
+
| pcSourceMoveBottomButton | ButtonPassThrough | Used to pass attributes to the source move bottom Button component. |
|
|
391
|
+
| pcMoveToTargetButton | ButtonPassThrough | Used to pass attributes to the move to target Button component. |
|
|
392
|
+
| pcMoveAllToTargetButton | ButtonPassThrough | Used to pass attributes to the move all to target Button component. |
|
|
393
|
+
| pcMoveToSourceButton | ButtonPassThrough | Used to pass attributes to the move to source Button component. |
|
|
394
|
+
| pcMoveAllToSourceButton | ButtonPassThrough | Used to pass attributes to the move all to source Button component. |
|
|
395
|
+
| pcTargetMoveUpButton | ButtonPassThrough | Used to pass attributes to the target move up Button component. |
|
|
396
|
+
| pcTargetMoveTopButton | ButtonPassThrough | Used to pass attributes to the target move top Button component. |
|
|
397
|
+
| pcTargetMoveDownButton | ButtonPassThrough | Used to pass attributes to the target move down Button component. |
|
|
398
|
+
| pcTargetMoveBottomButton | ButtonPassThrough | Used to pass attributes to the target move bottom Button component. |
|
|
399
|
+
| pcListbox | ListBoxPassThrough | Used to pass attributes to the Listbox component. |
|
|
400
|
+
|
|
401
|
+
## Theming
|
|
402
|
+
|
|
403
|
+
### CSS Classes
|
|
404
|
+
|
|
405
|
+
| Class | Description |
|
|
406
|
+
|-------|-------------|
|
|
407
|
+
| p-picklist | Class name of the root element |
|
|
408
|
+
| p-picklist-source-controls | Class name of the source controls element |
|
|
409
|
+
| p-picklist-source-list-container | Class name of the source list container element |
|
|
410
|
+
| p-picklist-transfer-controls | Class name of the transfer controls element |
|
|
411
|
+
| p-picklist-target-list-container | Class name of the target list container element |
|
|
412
|
+
| p-picklist-target-controls | Class name of the target controls element |
|
|
413
|
+
|
|
414
|
+
### Design Tokens
|
|
415
|
+
|
|
416
|
+
| Token | CSS Variable | Description |
|
|
417
|
+
|-------|--------------|-------------|
|
|
418
|
+
| picklist.gap | --p-picklist-gap | Gap of root |
|
|
419
|
+
| picklist.controls.gap | --p-picklist-controls-gap | Gap of controls |
|
|
420
|
+
|