@exhaustive-ui/mcp 22.2.0 → 22.3.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.
- package/data/components/autocomplete.md +41 -41
- package/data/components/avatar.md +8 -4
- package/data/components/badge.md +6 -6
- package/data/components/blockui.md +2 -2
- package/data/components/button.md +2 -2
- package/data/components/cascadeselect.md +28 -28
- package/data/components/checkbox.md +1 -1
- package/data/components/colorpicker.md +9 -9
- package/data/components/confirmdialog.md +8 -8
- package/data/components/confirmpopup.md +5 -5
- package/data/components/contextmenu.md +6 -6
- package/data/components/dataview.md +14 -14
- package/data/components/datepicker.md +53 -52
- package/data/components/dialog.md +14 -14
- package/data/components/dock.md +1 -1
- package/data/components/fileinput.md +18 -18
- package/data/components/fileupload.md +9 -9
- package/data/components/floatlabel.md +26 -26
- package/data/components/focustrap.md +8 -8
- package/data/components/galleria.md +8 -8
- package/data/components/iconfield.md +40 -40
- package/data/components/iftalabel.md +18 -18
- package/data/components/imagecompare.md +4 -4
- package/data/components/inputgroup.md +73 -73
- package/data/components/inputmask.md +9 -9
- package/data/components/inputnumber.md +46 -46
- package/data/components/inputotp.md +13 -13
- package/data/components/inputtext.md +8 -8
- package/data/components/megamenu.md +6 -6
- package/data/components/message.md +1 -1
- package/data/components/metergroup.md +8 -8
- package/data/components/multiselect.md +34 -34
- package/data/components/orderlist.md +10 -10
- package/data/components/organizationchart.md +8 -4
- package/data/components/paginator.md +2 -2
- package/data/components/panelmenu.md +7 -7
- package/data/components/password.md +8 -8
- package/data/components/picklist.md +10 -10
- package/data/components/popover.md +6 -6
- package/data/components/progressbar.md +5 -5
- package/data/components/progressspinner.md +4 -2
- package/data/components/radiobutton.md +15 -15
- package/data/components/scrollpanel.md +4 -4
- package/data/components/scrolltop.md +2 -2
- package/data/components/select.md +24 -24
- package/data/components/selectbutton.md +14 -14
- package/data/components/slider.md +1 -1
- package/data/components/speeddial.md +18 -18
- package/data/components/splitbutton.md +57 -57
- package/data/components/splitter.md +6 -0
- package/data/components/stepper.md +10 -10
- package/data/components/table.md +174 -140
- package/data/components/tabs.md +64 -64
- package/data/components/textarea.md +8 -8
- package/data/components/tieredmenu.md +6 -6
- package/data/components/toast.md +2 -2
- package/data/components/togglebutton.md +11 -11
- package/data/components/toggleswitch.md +9 -9
- package/data/components/toolbar.md +4 -4
- package/data/components/tree.md +2 -2
- package/data/components/treeselect.md +33 -33
- package/data/components/treetable.md +136 -105
- package/data/components.json +770 -435
- package/data/llms-full.txt +1230 -1113
- package/data/llms.txt +1 -0
- package/data/manifest.json +788 -269
- package/data/pages/naming.md +27 -0
- package/data/pages/tailwind.md +1 -1
- package/data/snapshot.json +3 -3
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
18
18
|
@Component({
|
|
19
19
|
template: `
|
|
20
20
|
<div class="card flex justify-center">
|
|
21
|
-
<p-
|
|
21
|
+
<p-input-otp [(ngModel)]="value" />
|
|
22
22
|
</div>
|
|
23
23
|
`,
|
|
24
24
|
standalone: true,
|
|
@@ -41,7 +41,7 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
41
41
|
@Component({
|
|
42
42
|
template: `
|
|
43
43
|
<div class="card flex justify-center">
|
|
44
|
-
<p-
|
|
44
|
+
<p-input-otp [(ngModel)]="value" [integerOnly]="true" />
|
|
45
45
|
</div>
|
|
46
46
|
`,
|
|
47
47
|
standalone: true,
|
|
@@ -64,7 +64,7 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
64
64
|
@Component({
|
|
65
65
|
template: `
|
|
66
66
|
<div class="card flex justify-center">
|
|
67
|
-
<p-
|
|
67
|
+
<p-input-otp [(ngModel)]="value" [mask]="true" />
|
|
68
68
|
</div>
|
|
69
69
|
`,
|
|
70
70
|
standalone: true,
|
|
@@ -94,7 +94,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
94
94
|
<div class="card flex justify-center">
|
|
95
95
|
<form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4">
|
|
96
96
|
<div class="flex flex-col gap-1">
|
|
97
|
-
<p-
|
|
97
|
+
<p-input-otp formControlName="value" [invalid]="isInvalid('value')" />
|
|
98
98
|
@if (isInvalid('value')) {
|
|
99
99
|
<p-message severity="error" size="small" variant="simple">Passcode is required.</p-message>
|
|
100
100
|
}
|
|
@@ -149,14 +149,14 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
149
149
|
<div class="flex flex-col items-center">
|
|
150
150
|
<div class="font-bold text-xl mb-2">Authenticate Your Account</div>
|
|
151
151
|
<p class="text-muted-color block mb-8">Please enter the code sent to your phone.</p>
|
|
152
|
-
<p-
|
|
152
|
+
<p-input-otp [(ngModel)]="value" [length]="6">
|
|
153
153
|
<ng-template #input let-token let-events="events" let-index="index">
|
|
154
154
|
<input type="text" [maxLength]="1" (input)="events.input($event)" (keydown)="events.keydown($event)" [attr.value]="token" class="custom-otp-input" />
|
|
155
155
|
<div *ngIf="index === 3" class="px-4">
|
|
156
156
|
<i class="pi pi-minus"></i>
|
|
157
157
|
</div>
|
|
158
158
|
</ng-template>
|
|
159
|
-
</p-
|
|
159
|
+
</p-input-otp>
|
|
160
160
|
<div class="flex justify-between mt-8 self-stretch">
|
|
161
161
|
<p-button label="Resend Code" [link]="true" class="p-0" />
|
|
162
162
|
<p-button label="Submit Code" />
|
|
@@ -191,7 +191,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
191
191
|
<div class="card flex justify-center">
|
|
192
192
|
<form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4">
|
|
193
193
|
<div class="flex flex-col gap-1">
|
|
194
|
-
<p-
|
|
194
|
+
<p-input-otp [formField]="exampleForm.value" />
|
|
195
195
|
@let value = exampleForm.value();
|
|
196
196
|
@if (value.invalid() && value.touched()) {
|
|
197
197
|
<p-message severity="error" size="small" variant="simple">Passcode is required.</p-message>
|
|
@@ -234,9 +234,9 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
234
234
|
@Component({
|
|
235
235
|
template: `
|
|
236
236
|
<div class="card flex flex-col items-center gap-4">
|
|
237
|
-
<p-
|
|
238
|
-
<p-
|
|
239
|
-
<p-
|
|
237
|
+
<p-input-otp [(ngModel)]="value1" size="small" />
|
|
238
|
+
<p-input-otp [(ngModel)]="value2" />
|
|
239
|
+
<p-input-otp [(ngModel)]="value3" size="large" />
|
|
240
240
|
</div>
|
|
241
241
|
`,
|
|
242
242
|
standalone: true,
|
|
@@ -261,11 +261,11 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
261
261
|
@Component({
|
|
262
262
|
template: `
|
|
263
263
|
<div class="card flex justify-center">
|
|
264
|
-
<p-
|
|
264
|
+
<p-input-otp [(ngModel)]="value">
|
|
265
265
|
<ng-template #input let-token let-events="events">
|
|
266
266
|
<input class="custom-otp-input" (keydown)="events.keydown($event)" (input)="events.input($event)" type="text" [attr.value]="token" [maxLength]="1" />
|
|
267
267
|
</ng-template>
|
|
268
|
-
</p-
|
|
268
|
+
</p-input-otp>
|
|
269
269
|
</div>
|
|
270
270
|
`,
|
|
271
271
|
standalone: true,
|
|
@@ -293,7 +293,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
293
293
|
<div class="card flex justify-center">
|
|
294
294
|
<form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex flex-col gap-4">
|
|
295
295
|
<div class="flex flex-col gap-1">
|
|
296
|
-
<p-
|
|
296
|
+
<p-input-otp #otpModel="ngModel" [(ngModel)]="value" [invalid]="otpModel.invalid && (otpModel.touched || exampleForm.submitted)" name="value" required [minlength]="4" />
|
|
297
297
|
@if (otpModel.invalid && (otpModel.touched || exampleForm.submitted)) {
|
|
298
298
|
<p-message severity="error" size="small" variant="simple">Passcode is required.</p-message>
|
|
299
299
|
}
|
|
@@ -88,18 +88,18 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
88
88
|
@Component({
|
|
89
89
|
template: `
|
|
90
90
|
<div class="card flex flex-wrap justify-center items-end gap-4">
|
|
91
|
-
<p-
|
|
91
|
+
<p-float-label>
|
|
92
92
|
<input pInputText id="over_label" [(ngModel)]="value1" autocomplete="off" />
|
|
93
93
|
<label for="over_label">Over Label</label>
|
|
94
|
-
</p-
|
|
95
|
-
<p-
|
|
94
|
+
</p-float-label>
|
|
95
|
+
<p-float-label variant="in">
|
|
96
96
|
<input pInputText id="in_label" [(ngModel)]="value2" autocomplete="off" />
|
|
97
97
|
<label for="in_label">In Label</label>
|
|
98
|
-
</p-
|
|
99
|
-
<p-
|
|
98
|
+
</p-float-label>
|
|
99
|
+
<p-float-label variant="on">
|
|
100
100
|
<input pInputText id="on_label" [(ngModel)]="value3" autocomplete="off" />
|
|
101
101
|
<label for="on_label">On Label</label>
|
|
102
|
-
</p-
|
|
102
|
+
</p-float-label>
|
|
103
103
|
</div>
|
|
104
104
|
`,
|
|
105
105
|
standalone: true,
|
|
@@ -206,10 +206,10 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
206
206
|
@Component({
|
|
207
207
|
template: `
|
|
208
208
|
<div class="card flex justify-center">
|
|
209
|
-
<p-
|
|
209
|
+
<p-ifta-label>
|
|
210
210
|
<input pInputText id="username" [(ngModel)]="value" autocomplete="off" />
|
|
211
211
|
<label for="username">Username</label>
|
|
212
|
-
</p-
|
|
212
|
+
</p-ifta-label>
|
|
213
213
|
</div>
|
|
214
214
|
`,
|
|
215
215
|
standalone: true,
|
|
@@ -19,7 +19,7 @@ import { Table } from '@exhaustive-ui/core/table';
|
|
|
19
19
|
@Component({
|
|
20
20
|
template: `
|
|
21
21
|
<div class="card">
|
|
22
|
-
<p-
|
|
22
|
+
<p-mega-menu [model]="items" />
|
|
23
23
|
</div>
|
|
24
24
|
`,
|
|
25
25
|
standalone: true,
|
|
@@ -145,7 +145,7 @@ import { MegaMenuItem } from '@exhaustive-ui/core/api';
|
|
|
145
145
|
@Component({
|
|
146
146
|
template: `
|
|
147
147
|
<div class="card">
|
|
148
|
-
<p-
|
|
148
|
+
<p-mega-menu [model]="items" />
|
|
149
149
|
</div>
|
|
150
150
|
`,
|
|
151
151
|
standalone: true,
|
|
@@ -200,7 +200,7 @@ export class MegamenuRouterDemo implements OnInit {
|
|
|
200
200
|
|
|
201
201
|
## Template
|
|
202
202
|
|
|
203
|
-
Custom content can be placed between p-
|
|
203
|
+
Custom content can be placed between p-mega-menu tags. Megamenu should be horizontal for custom content.
|
|
204
204
|
|
|
205
205
|
```typescript
|
|
206
206
|
import { Component, OnInit } from '@angular/core';
|
|
@@ -213,7 +213,7 @@ import { MegaMenuItem } from '@exhaustive-ui/core/api';
|
|
|
213
213
|
@Component({
|
|
214
214
|
template: `
|
|
215
215
|
<div class="card">
|
|
216
|
-
<p-
|
|
216
|
+
<p-mega-menu [model]="items" [style]="{ 'border-radius': '3rem', display: 'flex' }" class="p-4 bg-surface-0 dark:bg-surface-900">
|
|
217
217
|
<ng-template #start>
|
|
218
218
|
<svg width="31" height="33" viewBox="0 0 31 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
219
219
|
<path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--p-primary-color)" />
|
|
@@ -268,7 +268,7 @@ import { MegaMenuItem } from '@exhaustive-ui/core/api';
|
|
|
268
268
|
<ng-template #end>
|
|
269
269
|
<p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" shape="circle" />
|
|
270
270
|
</ng-template>
|
|
271
|
-
</p-
|
|
271
|
+
</p-mega-menu>
|
|
272
272
|
</div>
|
|
273
273
|
`,
|
|
274
274
|
standalone: true,
|
|
@@ -339,7 +339,7 @@ import { MegaMenu } from '@exhaustive-ui/core/megamenu';
|
|
|
339
339
|
@Component({
|
|
340
340
|
template: `
|
|
341
341
|
<div class="card">
|
|
342
|
-
<p-
|
|
342
|
+
<p-mega-menu [model]="items" orientation="vertical" />
|
|
343
343
|
</div>
|
|
344
344
|
`,
|
|
345
345
|
standalone: true,
|
|
@@ -112,7 +112,7 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
112
112
|
}
|
|
113
113
|
</div>
|
|
114
114
|
<div class="flex flex-col gap-1">
|
|
115
|
-
<p-
|
|
115
|
+
<p-input-mask mask="(999) 999-9999" [(ngModel)]="phone" placeholder="Phone" [invalid]="!phone" />
|
|
116
116
|
@if (!phone) {
|
|
117
117
|
<p-message severity="error" variant="simple" size="small">Phone number is required</p-message>
|
|
118
118
|
}
|
|
@@ -17,7 +17,7 @@ import { MeterGroupModule } from '@exhaustive-ui/core/metergroup';
|
|
|
17
17
|
@Component({
|
|
18
18
|
template: `
|
|
19
19
|
<div class="card">
|
|
20
|
-
<p-
|
|
20
|
+
<p-meter-group [value]="value" />
|
|
21
21
|
</div>
|
|
22
22
|
`,
|
|
23
23
|
standalone: true,
|
|
@@ -39,7 +39,7 @@ import { MeterGroupModule } from '@exhaustive-ui/core/metergroup';
|
|
|
39
39
|
@Component({
|
|
40
40
|
template: `
|
|
41
41
|
<div class="card">
|
|
42
|
-
<p-
|
|
42
|
+
<p-meter-group [value]="value" />
|
|
43
43
|
</div>
|
|
44
44
|
`,
|
|
45
45
|
standalone: true,
|
|
@@ -61,7 +61,7 @@ import { MeterGroupModule } from '@exhaustive-ui/core/metergroup';
|
|
|
61
61
|
@Component({
|
|
62
62
|
template: `
|
|
63
63
|
<div class="card">
|
|
64
|
-
<p-
|
|
64
|
+
<p-meter-group [value]="value" labelPosition="start" labelOrientation="vertical" />
|
|
65
65
|
</div>
|
|
66
66
|
`,
|
|
67
67
|
standalone: true,
|
|
@@ -83,7 +83,7 @@ import { MeterGroupModule } from '@exhaustive-ui/core/metergroup';
|
|
|
83
83
|
@Component({
|
|
84
84
|
template: `
|
|
85
85
|
<div class="card">
|
|
86
|
-
<p-
|
|
86
|
+
<p-meter-group [value]="value" [max]="200" />
|
|
87
87
|
</div>
|
|
88
88
|
`,
|
|
89
89
|
standalone: true,
|
|
@@ -105,7 +105,7 @@ import { MeterGroupModule } from '@exhaustive-ui/core/metergroup';
|
|
|
105
105
|
@Component({
|
|
106
106
|
template: `
|
|
107
107
|
<div class="card">
|
|
108
|
-
<p-
|
|
108
|
+
<p-meter-group [value]="value" />
|
|
109
109
|
</div>
|
|
110
110
|
`,
|
|
111
111
|
standalone: true,
|
|
@@ -129,7 +129,7 @@ import { MeterGroupModule } from '@exhaustive-ui/core/metergroup';
|
|
|
129
129
|
@Component({
|
|
130
130
|
template: `
|
|
131
131
|
<div class="card">
|
|
132
|
-
<p-
|
|
132
|
+
<p-meter-group [value]="value" labelPosition="start">
|
|
133
133
|
<ng-template #label>
|
|
134
134
|
<div class="flex flex-wrap gap-4">
|
|
135
135
|
<ng-container *ngFor="let meterItem of value; let index = index">
|
|
@@ -163,7 +163,7 @@ import { MeterGroupModule } from '@exhaustive-ui/core/metergroup';
|
|
|
163
163
|
<p-button label="Update Plan" size="small" />
|
|
164
164
|
</div>
|
|
165
165
|
</ng-template>
|
|
166
|
-
</p-
|
|
166
|
+
</p-meter-group>
|
|
167
167
|
</div>
|
|
168
168
|
`,
|
|
169
169
|
standalone: true,
|
|
@@ -185,7 +185,7 @@ import { MeterGroupModule } from '@exhaustive-ui/core/metergroup';
|
|
|
185
185
|
@Component({
|
|
186
186
|
template: `
|
|
187
187
|
<div class="card flex justify-center">
|
|
188
|
-
<p-
|
|
188
|
+
<p-meter-group [value]="value" orientation="vertical" labelOrientation="vertical" [style]="{ height: '300px' }" />
|
|
189
189
|
</div>
|
|
190
190
|
`,
|
|
191
191
|
standalone: true,
|
|
@@ -23,7 +23,7 @@ interface City {
|
|
|
23
23
|
@Component({
|
|
24
24
|
template: `
|
|
25
25
|
<div class="card flex justify-center">
|
|
26
|
-
<p-
|
|
26
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" class="w-full md:w-80" />
|
|
27
27
|
</div>
|
|
28
28
|
`,
|
|
29
29
|
standalone: true,
|
|
@@ -62,7 +62,7 @@ interface City {
|
|
|
62
62
|
@Component({
|
|
63
63
|
template: `
|
|
64
64
|
<div class="card flex justify-center">
|
|
65
|
-
<p-
|
|
65
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities" placeholder="Select Cities" optionLabel="name" display="chip" class="w-full md:w-80" />
|
|
66
66
|
</div>
|
|
67
67
|
`,
|
|
68
68
|
standalone: true,
|
|
@@ -101,7 +101,7 @@ interface City {
|
|
|
101
101
|
@Component({
|
|
102
102
|
template: `
|
|
103
103
|
<div class="card flex justify-center">
|
|
104
|
-
<p-
|
|
104
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" class="w-full md:w-80" [showClear]="true" />
|
|
105
105
|
</div>
|
|
106
106
|
`,
|
|
107
107
|
standalone: true,
|
|
@@ -140,7 +140,7 @@ interface City {
|
|
|
140
140
|
@Component({
|
|
141
141
|
template: `
|
|
142
142
|
<div class="card flex justify-center">
|
|
143
|
-
<p-
|
|
143
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities" [disabled]="true" optionLabel="name" placeholder="Select Cities" class="w-full md:w-80" />
|
|
144
144
|
</div>
|
|
145
145
|
`,
|
|
146
146
|
standalone: true,
|
|
@@ -179,7 +179,7 @@ interface City {
|
|
|
179
179
|
@Component({
|
|
180
180
|
template: `
|
|
181
181
|
<div class="card flex justify-center">
|
|
182
|
-
<p-
|
|
182
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities" variant="filled" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" class="w-full md:w-80" />
|
|
183
183
|
</div>
|
|
184
184
|
`,
|
|
185
185
|
standalone: true,
|
|
@@ -218,7 +218,7 @@ interface City {
|
|
|
218
218
|
@Component({
|
|
219
219
|
template: `
|
|
220
220
|
<div class="card flex justify-center">
|
|
221
|
-
<p-
|
|
221
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities" [filter]="true" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" class="w-full md:w-80" />
|
|
222
222
|
</div>
|
|
223
223
|
`,
|
|
224
224
|
standalone: true,
|
|
@@ -258,18 +258,18 @@ interface City {
|
|
|
258
258
|
@Component({
|
|
259
259
|
template: `
|
|
260
260
|
<div class="card flex flex-wrap justify-center items-end gap-4">
|
|
261
|
-
<p-
|
|
262
|
-
<p-
|
|
261
|
+
<p-float-label class="w-full md:w-80">
|
|
262
|
+
<p-multi-select id="over_label" [(ngModel)]="value1" [options]="cities" optionLabel="name" filter [maxSelectedLabels]="3" class="w-full" />
|
|
263
263
|
<label for="over_label">Over Label</label>
|
|
264
|
-
</p-
|
|
265
|
-
<p-
|
|
266
|
-
<p-
|
|
264
|
+
</p-float-label>
|
|
265
|
+
<p-float-label class="w-full md:w-80" variant="in">
|
|
266
|
+
<p-multi-select id="in_label" [(ngModel)]="value2" [options]="cities" optionLabel="name" filter [maxSelectedLabels]="3" class="w-full" />
|
|
267
267
|
<label for="in_label">In Label</label>
|
|
268
|
-
</p-
|
|
269
|
-
<p-
|
|
270
|
-
<p-
|
|
268
|
+
</p-float-label>
|
|
269
|
+
<p-float-label class="w-full md:w-80" variant="on">
|
|
270
|
+
<p-multi-select id="on_label" [(ngModel)]="value3" [options]="cities" optionLabel="name" filter [maxSelectedLabels]="3" class="w-full" />
|
|
271
271
|
<label for="on_label">On Label</label>
|
|
272
|
-
</p-
|
|
272
|
+
</p-float-label>
|
|
273
273
|
</div>
|
|
274
274
|
`,
|
|
275
275
|
standalone: true,
|
|
@@ -310,7 +310,7 @@ interface City {
|
|
|
310
310
|
@Component({
|
|
311
311
|
template: `
|
|
312
312
|
<div class="card flex justify-center">
|
|
313
|
-
<p-
|
|
313
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" fluid />
|
|
314
314
|
</div>
|
|
315
315
|
`,
|
|
316
316
|
standalone: true,
|
|
@@ -350,14 +350,14 @@ interface City {
|
|
|
350
350
|
@Component({
|
|
351
351
|
template: `
|
|
352
352
|
<div class="card flex justify-center">
|
|
353
|
-
<p-
|
|
353
|
+
<p-multi-select [options]="groupedCities" [group]="true" [(ngModel)]="selectedCities" placeholder="Select Cities" scrollHeight="250px" display="chip" class="w-full md:w-80">
|
|
354
354
|
<ng-template let-group #group>
|
|
355
355
|
<div class="flex items-center">
|
|
356
356
|
<img src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" [class]="'mr-2 flag flag-' + group.value" style="width: 20px" />
|
|
357
357
|
<span>{{ group.label }}</span>
|
|
358
358
|
</div>
|
|
359
359
|
</ng-template>
|
|
360
|
-
</p-
|
|
360
|
+
</p-multi-select>
|
|
361
361
|
</div>
|
|
362
362
|
`,
|
|
363
363
|
standalone: true,
|
|
@@ -422,10 +422,10 @@ interface City {
|
|
|
422
422
|
@Component({
|
|
423
423
|
template: `
|
|
424
424
|
<div class="card flex justify-center">
|
|
425
|
-
<p-
|
|
426
|
-
<p-
|
|
425
|
+
<p-ifta-label class="w-full md:w-80">
|
|
426
|
+
<p-multi-select [(ngModel)]="selectedCities" inputId="ms_cities" [options]="cities" optionLabel="name" [filter]="true" [maxSelectedLabels]="3" class="w-full" />
|
|
427
427
|
<label for="ms_cities">Cities</label>
|
|
428
|
-
</p-
|
|
428
|
+
</p-ifta-label>
|
|
429
429
|
</div>
|
|
430
430
|
`,
|
|
431
431
|
standalone: true,
|
|
@@ -464,8 +464,8 @@ interface City {
|
|
|
464
464
|
@Component({
|
|
465
465
|
template: `
|
|
466
466
|
<div class="card flex justify-center gap-4">
|
|
467
|
-
<p-
|
|
468
|
-
<p-
|
|
467
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities1" [invalid]="value1" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" class="w-full md:w-80" />
|
|
468
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities2" [invalid]="value2" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" class="w-full md:w-80" variant="filled" />
|
|
469
469
|
</div>
|
|
470
470
|
`,
|
|
471
471
|
standalone: true,
|
|
@@ -497,7 +497,7 @@ interface City {
|
|
|
497
497
|
@Component({
|
|
498
498
|
template: `
|
|
499
499
|
<div class="card flex justify-center">
|
|
500
|
-
<p-
|
|
500
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities" [loading]="true" optionLabel="name" placeholder="Loading..." class="w-full md:w-80" />
|
|
501
501
|
</div>
|
|
502
502
|
`,
|
|
503
503
|
standalone: true,
|
|
@@ -543,7 +543,7 @@ interface City {
|
|
|
543
543
|
<div class="card flex justify-center">
|
|
544
544
|
<form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex justify-center flex-col gap-4 w-full md:w-80">
|
|
545
545
|
<div class="flex flex-col gap-1">
|
|
546
|
-
<p-
|
|
546
|
+
<p-multi-select [options]="cities" formControlName="city" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" [fluid]="true" [invalid]="isInvalid('city')" />
|
|
547
547
|
@if (isInvalid('city')) {
|
|
548
548
|
<p-message severity="error" size="small" variant="simple">City is required.</p-message>
|
|
549
549
|
}
|
|
@@ -609,7 +609,7 @@ interface City {
|
|
|
609
609
|
<div class="card flex justify-center">
|
|
610
610
|
<form novalidate (submit)="onSubmit($event)" class="flex justify-center flex-col gap-4 w-full md:w-80">
|
|
611
611
|
<div class="flex flex-col gap-1">
|
|
612
|
-
<p-
|
|
612
|
+
<p-multi-select [options]="cities" [formField]="exampleForm.city" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" [fluid]="true" />
|
|
613
613
|
@let city = exampleForm.city();
|
|
614
614
|
@if (city.invalid() && city.touched()) {
|
|
615
615
|
<p-message severity="error" size="small" variant="simple">City is required.</p-message>
|
|
@@ -658,9 +658,9 @@ interface City {
|
|
|
658
658
|
@Component({
|
|
659
659
|
template: `
|
|
660
660
|
<div class="card flex flex-col items-center gap-4">
|
|
661
|
-
<p-
|
|
662
|
-
<p-
|
|
663
|
-
<p-
|
|
661
|
+
<p-multi-select [(ngModel)]="value1" [options]="cities" optionLabel="name" [maxSelectedLabels]="3" class="w-full md:w-80" size="small" placeholder="Small" />
|
|
662
|
+
<p-multi-select [(ngModel)]="value2" [options]="cities" optionLabel="name" [maxSelectedLabels]="3" class="w-full md:w-80" placeholder="Normal" />
|
|
663
|
+
<p-multi-select [(ngModel)]="value3" [options]="cities" optionLabel="name" [maxSelectedLabels]="3" class="w-full md:w-80" size="large" placeholder="Large" />
|
|
664
664
|
</div>
|
|
665
665
|
`,
|
|
666
666
|
standalone: true,
|
|
@@ -703,7 +703,7 @@ interface Country {
|
|
|
703
703
|
@Component({
|
|
704
704
|
template: `
|
|
705
705
|
<div class="card flex justify-center">
|
|
706
|
-
<p-
|
|
706
|
+
<p-multi-select [options]="countries" [(ngModel)]="selectedCountries" placeholder="Select Countries" optionLabel="name" class="w-full md:w-80" display="chip">
|
|
707
707
|
<ng-template let-country #item>
|
|
708
708
|
<div class="flex items-center gap-2">
|
|
709
709
|
<img src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" [class]="'flag flag-' + country.code.toLowerCase()" style="width: 18px" />
|
|
@@ -725,7 +725,7 @@ interface Country {
|
|
|
725
725
|
<p-button label="Remove All" severity="danger" text size="small" icon="pi pi-times" />
|
|
726
726
|
</div>
|
|
727
727
|
</ng-template>
|
|
728
|
-
</p-
|
|
728
|
+
</p-multi-select>
|
|
729
729
|
</div>
|
|
730
730
|
`,
|
|
731
731
|
standalone: true,
|
|
@@ -774,7 +774,7 @@ interface City {
|
|
|
774
774
|
<div class="card flex justify-center">
|
|
775
775
|
<form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex justify-center flex-col gap-4 w-full md:w-80">
|
|
776
776
|
<div class="flex flex-col gap-1">
|
|
777
|
-
<p-
|
|
777
|
+
<p-multi-select
|
|
778
778
|
#city="ngModel"
|
|
779
779
|
[(ngModel)]="selectedCity"
|
|
780
780
|
[options]="cities"
|
|
@@ -825,7 +825,7 @@ import { MultiSelectModule } from '@exhaustive-ui/core/multiselect';
|
|
|
825
825
|
@Component({
|
|
826
826
|
template: `
|
|
827
827
|
<div class="card flex justify-center">
|
|
828
|
-
<p-
|
|
828
|
+
<p-multi-select
|
|
829
829
|
[options]="items"
|
|
830
830
|
[showToggleAll]="true"
|
|
831
831
|
[selectAll]="selectAll"
|
|
@@ -843,7 +843,7 @@ import { MultiSelectModule } from '@exhaustive-ui/core/multiselect';
|
|
|
843
843
|
<i class="pi pi-check" *ngIf="allSelected"></i>
|
|
844
844
|
<i class="pi pi-minus" *ngIf="partialSelected" [ngStyle]="{ color: 'var(--text-color)' }"></i>
|
|
845
845
|
</ng-template>
|
|
846
|
-
</p-
|
|
846
|
+
</p-multi-select>
|
|
847
847
|
</div>
|
|
848
848
|
`,
|
|
849
849
|
standalone: true,
|
|
@@ -19,11 +19,11 @@ import { Product } from '@/domain/product';
|
|
|
19
19
|
@Component({
|
|
20
20
|
template: `
|
|
21
21
|
<div class="card sm:flex sm:justify-center">
|
|
22
|
-
<p-
|
|
22
|
+
<p-order-list [value]="products()" dataKey="id" [responsive]="true" breakpoint="575px">
|
|
23
23
|
<ng-template #item let-option>
|
|
24
24
|
{{ option.name }}
|
|
25
25
|
</ng-template>
|
|
26
|
-
</p-
|
|
26
|
+
</p-order-list>
|
|
27
27
|
</div>
|
|
28
28
|
`,
|
|
29
29
|
standalone: true,
|
|
@@ -66,7 +66,7 @@ import { Product } from '@/domain/product';
|
|
|
66
66
|
@Component({
|
|
67
67
|
template: `
|
|
68
68
|
<div class="card sm:flex sm:justify-center">
|
|
69
|
-
<p-
|
|
69
|
+
<p-order-list [value]="products()" dataKey="id" [dragdrop]="true" [responsive]="true" breakpoint="575px" scrollHeight="20rem">
|
|
70
70
|
<ng-template let-option let-selected="selected" #item>
|
|
71
71
|
<div class="flex flex-wrap p-1 items-center gap-4 w-full">
|
|
72
72
|
<img class="w-12 shrink-0 rounded-sm" src="https://exhaustive-ui.com/demo/product/{{ option.image }}" [alt]="option.name" />
|
|
@@ -85,7 +85,7 @@ import { Product } from '@/domain/product';
|
|
|
85
85
|
<span class="font-bold sm:ml-8">{{ '$' + option.price }}</span>
|
|
86
86
|
</div>
|
|
87
87
|
</ng-template>
|
|
88
|
-
</p-
|
|
88
|
+
</p-order-list>
|
|
89
89
|
</div>
|
|
90
90
|
`,
|
|
91
91
|
standalone: true,
|
|
@@ -128,7 +128,7 @@ import { Product } from '@/domain/product';
|
|
|
128
128
|
@Component({
|
|
129
129
|
template: `
|
|
130
130
|
<div class="card sm:flex sm:justify-center">
|
|
131
|
-
<p-
|
|
131
|
+
<p-order-list [value]="products()" filterBy="name" filterPlaceholder="Filter by name" [responsive]="true" breakpoint="575px" scrollHeight="20rem" class="sm:min-w-96">
|
|
132
132
|
<ng-template let-option let-selected="selected" #item>
|
|
133
133
|
<div class="flex flex-wrap p-1 items-center gap-4 w-full">
|
|
134
134
|
<img class="w-12 shrink-0 rounded-sm" src="https://exhaustive-ui.com/demo/product/{{ option.image }}" [alt]="option.name" />
|
|
@@ -147,7 +147,7 @@ import { Product } from '@/domain/product';
|
|
|
147
147
|
<span class="font-bold sm:ml-8">{{ '$' + option.price }}</span>
|
|
148
148
|
</div>
|
|
149
149
|
</ng-template>
|
|
150
|
-
</p-
|
|
150
|
+
</p-order-list>
|
|
151
151
|
</div>
|
|
152
152
|
`,
|
|
153
153
|
standalone: true,
|
|
@@ -190,7 +190,7 @@ import { Product } from '@/domain/product';
|
|
|
190
190
|
@Component({
|
|
191
191
|
template: `
|
|
192
192
|
<div class="card sm:flex sm:justify-center">
|
|
193
|
-
<p-
|
|
193
|
+
<p-order-list [value]="products()" dataKey="id" [responsive]="true" breakpoint="575px" scrollHeight="20rem">
|
|
194
194
|
<ng-template let-option let-selected="selected" #item>
|
|
195
195
|
<div class="flex flex-wrap p-1 items-center gap-4 w-full">
|
|
196
196
|
<img class="w-12 shrink-0 rounded-sm" src="https://exhaustive-ui.com/demo/product/{{ option.image }}" [alt]="option.name" />
|
|
@@ -209,7 +209,7 @@ import { Product } from '@/domain/product';
|
|
|
209
209
|
<span class="font-bold sm:ml-8">{{ '$' + option.price }}</span>
|
|
210
210
|
</div>
|
|
211
211
|
</ng-template>
|
|
212
|
-
</p-
|
|
212
|
+
</p-order-list>
|
|
213
213
|
</div>
|
|
214
214
|
`,
|
|
215
215
|
standalone: true,
|
|
@@ -295,8 +295,8 @@ OrderList is used to manage the order of a collection.
|
|
|
295
295
|
| Name | Type | Description |
|
|
296
296
|
|------|------|-------------|
|
|
297
297
|
| item | TemplateRef<OrderListItemTemplateContext> | Custom item template. |
|
|
298
|
-
|
|
|
299
|
-
|
|
|
298
|
+
| empty | TemplateRef<void> | Custom empty template. |
|
|
299
|
+
| emptyfilter | TemplateRef<void> | Custom empty filter template. |
|
|
300
300
|
| filter | TemplateRef<OrderListFilterTemplateContext> | Custom filter template. |
|
|
301
301
|
| header | TemplateRef<void> | Custom header template. |
|
|
302
302
|
| moveupicon | TemplateRef<void> | Custom move up icon template. |
|
|
@@ -12,6 +12,7 @@ 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';
|
|
15
16
|
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
16
17
|
|
|
17
18
|
@Component({
|
|
@@ -21,7 +22,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
21
22
|
</div>
|
|
22
23
|
`,
|
|
23
24
|
standalone: true,
|
|
24
|
-
imports: []
|
|
25
|
+
imports: [OrganizationChartModule]
|
|
25
26
|
})
|
|
26
27
|
export class OrganizationchartBasicDemo {
|
|
27
28
|
data: TreeNode[];
|
|
@@ -32,6 +33,7 @@ export class OrganizationchartBasicDemo {
|
|
|
32
33
|
|
|
33
34
|
```typescript
|
|
34
35
|
import { Component } from '@angular/core';
|
|
36
|
+
import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
|
|
35
37
|
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
36
38
|
|
|
37
39
|
@Component({
|
|
@@ -54,7 +56,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
54
56
|
</div>
|
|
55
57
|
`,
|
|
56
58
|
standalone: true,
|
|
57
|
-
imports: []
|
|
59
|
+
imports: [OrganizationChartModule]
|
|
58
60
|
})
|
|
59
61
|
export class OrganizationchartColored.Demo {
|
|
60
62
|
data: TreeNode[];
|
|
@@ -65,6 +67,7 @@ export class OrganizationchartColored.Demo {
|
|
|
65
67
|
|
|
66
68
|
```typescript
|
|
67
69
|
import { Component } from '@angular/core';
|
|
70
|
+
import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
|
|
68
71
|
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
69
72
|
|
|
70
73
|
@Component({
|
|
@@ -89,7 +92,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
89
92
|
</div>
|
|
90
93
|
`,
|
|
91
94
|
standalone: true,
|
|
92
|
-
imports: []
|
|
95
|
+
imports: [OrganizationChartModule]
|
|
93
96
|
})
|
|
94
97
|
export class OrganizationchartSelectionDemo {
|
|
95
98
|
selectedNodes!: TreeNode[];
|
|
@@ -103,6 +106,7 @@ Custom content instead of a node label is defined using the pTemplate property.
|
|
|
103
106
|
|
|
104
107
|
```typescript
|
|
105
108
|
import { Component } from '@angular/core';
|
|
109
|
+
import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
|
|
106
110
|
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
107
111
|
|
|
108
112
|
@Component({
|
|
@@ -119,7 +123,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
119
123
|
</div>
|
|
120
124
|
`,
|
|
121
125
|
standalone: true,
|
|
122
|
-
imports: []
|
|
126
|
+
imports: [OrganizationChartModule]
|
|
123
127
|
})
|
|
124
128
|
export class OrganizationchartTemplateDemo {
|
|
125
129
|
data: TreeNode[];
|