@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
|
@@ -109,8 +109,8 @@ import { Component } from '@angular/core';
|
|
|
109
109
|
import { FormsModule } from '@angular/forms';
|
|
110
110
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
111
111
|
import { DividerModule } from '@exhaustive-ui/core/divider';
|
|
112
|
-
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
113
112
|
import { PaginatorModule } from '@exhaustive-ui/core/paginator';
|
|
113
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
114
114
|
import { SliderModule } from '@exhaustive-ui/core/slider';
|
|
115
115
|
|
|
116
116
|
@Component({
|
|
@@ -161,7 +161,7 @@ import { SliderModule } from '@exhaustive-ui/core/slider';
|
|
|
161
161
|
</div>
|
|
162
162
|
`,
|
|
163
163
|
standalone: true,
|
|
164
|
-
imports: [ButtonModule, DividerModule,
|
|
164
|
+
imports: [ButtonModule, DividerModule, PaginatorModule, SelectModule, SliderModule, FormsModule]
|
|
165
165
|
})
|
|
166
166
|
export class PaginatorTemplateDemo {
|
|
167
167
|
first1: number = 0;
|
|
@@ -19,7 +19,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
|
|
|
19
19
|
@Component({
|
|
20
20
|
template: `
|
|
21
21
|
<div class="card flex justify-center">
|
|
22
|
-
<p-
|
|
22
|
+
<p-panel-menu [model]="items" class="w-full md:w-80" />
|
|
23
23
|
</div>
|
|
24
24
|
`,
|
|
25
25
|
standalone: true,
|
|
@@ -126,7 +126,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
|
|
|
126
126
|
template: `
|
|
127
127
|
<div class="card flex justify-center">
|
|
128
128
|
<p-toast />
|
|
129
|
-
<p-
|
|
129
|
+
<p-panel-menu [model]="items" class="w-full md:w-80" />
|
|
130
130
|
</div>
|
|
131
131
|
`,
|
|
132
132
|
standalone: true,
|
|
@@ -223,7 +223,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
|
|
|
223
223
|
template: `
|
|
224
224
|
<div class="card flex flex-col items-center gap-4">
|
|
225
225
|
<p-button label="Toggle All" [text]="true" (onClick)="toggleAll()" />
|
|
226
|
-
<p-
|
|
226
|
+
<p-panel-menu [model]="items" class="w-full md:w-80" />
|
|
227
227
|
</div>
|
|
228
228
|
`,
|
|
229
229
|
standalone: true,
|
|
@@ -320,7 +320,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
|
|
|
320
320
|
@Component({
|
|
321
321
|
template: `
|
|
322
322
|
<div class="card flex justify-center">
|
|
323
|
-
<p-
|
|
323
|
+
<p-panel-menu [model]="items" class="w-full md:w-80" [multiple]="true" />
|
|
324
324
|
</div>
|
|
325
325
|
`,
|
|
326
326
|
standalone: true,
|
|
@@ -425,7 +425,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
|
|
|
425
425
|
@Component({
|
|
426
426
|
template: `
|
|
427
427
|
<div class="card flex justify-center">
|
|
428
|
-
<p-
|
|
428
|
+
<p-panel-menu [model]="items" class="w-full md:w-80" />
|
|
429
429
|
</div>
|
|
430
430
|
`,
|
|
431
431
|
standalone: true,
|
|
@@ -497,7 +497,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
|
|
|
497
497
|
@Component({
|
|
498
498
|
template: `
|
|
499
499
|
<div class="card flex flex-col items-center">
|
|
500
|
-
<p-
|
|
500
|
+
<p-panel-menu [model]="items" class="w-full md:w-80">
|
|
501
501
|
<ng-template #item let-item>
|
|
502
502
|
<a pRipple class="flex items-center px-4 py-2 cursor-pointer group">
|
|
503
503
|
<i [class]="item.icon + ' text-primary group-hover:text-inherit'"></i>
|
|
@@ -506,7 +506,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
|
|
|
506
506
|
<span *ngIf="item.shortcut" class="ms-auto border border-surface rounded-sm bg-emphasis text-muted-color text-xs p-1">{{ item.shortcut }}</span>
|
|
507
507
|
</a>
|
|
508
508
|
</ng-template>
|
|
509
|
-
</p-
|
|
509
|
+
</p-panel-menu>
|
|
510
510
|
</div>
|
|
511
511
|
`,
|
|
512
512
|
standalone: true,
|
|
@@ -111,18 +111,18 @@ import { PasswordModule } from '@exhaustive-ui/core/password';
|
|
|
111
111
|
@Component({
|
|
112
112
|
template: `
|
|
113
113
|
<div class="card flex flex-wrap justify-center items-end gap-4">
|
|
114
|
-
<p-
|
|
114
|
+
<p-float-label>
|
|
115
115
|
<p-password [(ngModel)]="value1" inputId="over_label" autocomplete="off" />
|
|
116
116
|
<label for="over_label">Over Label</label>
|
|
117
|
-
</p-
|
|
118
|
-
<p-
|
|
117
|
+
</p-float-label>
|
|
118
|
+
<p-float-label variant="in">
|
|
119
119
|
<p-password [(ngModel)]="value2" inputId="in_label" autocomplete="off" />
|
|
120
120
|
<label for="in_label">In Label</label>
|
|
121
|
-
</p-
|
|
122
|
-
<p-
|
|
121
|
+
</p-float-label>
|
|
122
|
+
<p-float-label variant="on">
|
|
123
123
|
<p-password [(ngModel)]="value3" inputId="on_label" autocomplete="off" />
|
|
124
124
|
<label for="on_label">On Label</label>
|
|
125
|
-
</p-
|
|
125
|
+
</p-float-label>
|
|
126
126
|
</div>
|
|
127
127
|
`,
|
|
128
128
|
standalone: true,
|
|
@@ -171,10 +171,10 @@ import { PasswordModule } from '@exhaustive-ui/core/password';
|
|
|
171
171
|
@Component({
|
|
172
172
|
template: `
|
|
173
173
|
<div class="card flex justify-center">
|
|
174
|
-
<p-
|
|
174
|
+
<p-ifta-label>
|
|
175
175
|
<p-password [(ngModel)]="value" inputId="password" autocomplete="off" />
|
|
176
176
|
<label for="password">Password</label>
|
|
177
|
-
</p-
|
|
177
|
+
</p-ifta-label>
|
|
178
178
|
</div>
|
|
179
179
|
`,
|
|
180
180
|
standalone: true,
|
|
@@ -19,11 +19,11 @@ import { Product } from '@/domain/product';
|
|
|
19
19
|
@Component({
|
|
20
20
|
template: `
|
|
21
21
|
<div class="card">
|
|
22
|
-
<p-
|
|
22
|
+
<p-pick-list [source]="sourceProducts()" [target]="targetProducts()" [dragdrop]="true" [responsive]="true" breakpoint="1400px">
|
|
23
23
|
<ng-template let-item #item>
|
|
24
24
|
{{ item.name }}
|
|
25
25
|
</ng-template>
|
|
26
|
-
</p-
|
|
26
|
+
</p-pick-list>
|
|
27
27
|
</div>
|
|
28
28
|
`,
|
|
29
29
|
standalone: true,
|
|
@@ -56,7 +56,7 @@ import { Product } from '@/domain/product';
|
|
|
56
56
|
@Component({
|
|
57
57
|
template: `
|
|
58
58
|
<div class="card">
|
|
59
|
-
<p-
|
|
59
|
+
<p-pick-list
|
|
60
60
|
[source]="sourceProducts()"
|
|
61
61
|
[target]="targetProducts()"
|
|
62
62
|
[dragdrop]="true"
|
|
@@ -84,7 +84,7 @@ import { Product } from '@/domain/product';
|
|
|
84
84
|
<span class="font-bold sm:ml-8">{{ '$' + option.price }}</span>
|
|
85
85
|
</div>
|
|
86
86
|
</ng-template>
|
|
87
|
-
</p-
|
|
87
|
+
</p-pick-list>
|
|
88
88
|
</div>
|
|
89
89
|
`,
|
|
90
90
|
standalone: true,
|
|
@@ -117,7 +117,7 @@ import { Product } from '@/domain/product';
|
|
|
117
117
|
@Component({
|
|
118
118
|
template: `
|
|
119
119
|
<div class="card">
|
|
120
|
-
<p-
|
|
120
|
+
<p-pick-list [source]="sourceProducts()" [target]="targetProducts()" [dragdrop]="true" [responsive]="true" sourceFilterPlaceholder="Search by name" targetFilterPlaceholder="Search by name" breakpoint="1400px" scrollHeight="20rem">
|
|
121
121
|
<ng-template let-option let-selected="selected" #item>
|
|
122
122
|
<div class="flex flex-wrap p-1 items-center gap-4 w-full">
|
|
123
123
|
<img class="w-12 shrink-0 rounded-sm" src="https://exhaustive-ui.com/demo/product/{{ option.image }}" [alt]="option.name" />
|
|
@@ -135,7 +135,7 @@ import { Product } from '@/domain/product';
|
|
|
135
135
|
<span class="font-bold sm:ml-8">{{ '$' + option.price }}</span>
|
|
136
136
|
</div>
|
|
137
137
|
</ng-template>
|
|
138
|
-
</p-
|
|
138
|
+
</p-pick-list>
|
|
139
139
|
</div>
|
|
140
140
|
`,
|
|
141
141
|
standalone: true,
|
|
@@ -352,10 +352,10 @@ PickList is used to reorder items between different lists.
|
|
|
352
352
|
| Name | Type | Description |
|
|
353
353
|
|------|------|-------------|
|
|
354
354
|
| item | TemplateRef<PickListItemTemplateContext> | Custom item template. |
|
|
355
|
-
|
|
|
356
|
-
|
|
|
357
|
-
|
|
|
358
|
-
|
|
|
355
|
+
| sourceHeader | TemplateRef<void> | Custom source header template. |
|
|
356
|
+
| targetHeader | TemplateRef<void> | Custom target header template. |
|
|
357
|
+
| sourceFilter | TemplateRef<PickListFilterTemplateContext> | Custom source filter template. |
|
|
358
|
+
| targetFilter | TemplateRef<PickListFilterTemplateContext> | Custom target filter template. |
|
|
359
359
|
| emptymessagesource | TemplateRef<void> | Custom empty message when source is empty template. |
|
|
360
360
|
| emptyfiltermessagesource | TemplateRef<void> | Custom empty filter message when source is empty template. |
|
|
361
361
|
| emptymessagetarget | TemplateRef<void> | Custom empty message when target is empty template. |
|
|
@@ -25,20 +25,20 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
25
25
|
<div class="flex flex-col gap-4 w-100">
|
|
26
26
|
<div>
|
|
27
27
|
<span class="font-medium text-surface-900 dark:text-surface-0 block mb-2">Share this document</span>
|
|
28
|
-
<p-
|
|
28
|
+
<p-input-group>
|
|
29
29
|
<input pInputText value="https://exhaustive-ui.com/s/12323ff26t2g243g423g234gg52hy25XADXAG3" readonly class="w-100" />
|
|
30
|
-
<p-
|
|
30
|
+
<p-input-group-addon>
|
|
31
31
|
<i class="pi pi-copy"></i>
|
|
32
|
-
</p-
|
|
33
|
-
</p-
|
|
32
|
+
</p-input-group-addon>
|
|
33
|
+
</p-input-group>
|
|
34
34
|
</div>
|
|
35
35
|
<div>
|
|
36
36
|
<span class="font-medium text-surface-900 dark:text-surface-0 block mb-2">Invite Member</span>
|
|
37
37
|
<div class="flex">
|
|
38
|
-
<p-
|
|
38
|
+
<p-input-group>
|
|
39
39
|
<input pInputText disabled />
|
|
40
40
|
<button pButton label="Invite" icon="pi pi-users"></button>
|
|
41
|
-
</p-
|
|
41
|
+
</p-input-group>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
44
|
<div>
|
|
@@ -17,7 +17,7 @@ import { ProgressBarModule } from '@exhaustive-ui/core/progressbar';
|
|
|
17
17
|
@Component({
|
|
18
18
|
template: `
|
|
19
19
|
<div class="card">
|
|
20
|
-
<p-
|
|
20
|
+
<p-progress-bar [value]="50" />
|
|
21
21
|
</div>
|
|
22
22
|
`,
|
|
23
23
|
standalone: true,
|
|
@@ -40,7 +40,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
40
40
|
template: `
|
|
41
41
|
<div class="card">
|
|
42
42
|
<p-toast />
|
|
43
|
-
<p-
|
|
43
|
+
<p-progress-bar [value]="value" />
|
|
44
44
|
</div>
|
|
45
45
|
`,
|
|
46
46
|
standalone: true,
|
|
@@ -87,7 +87,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
87
87
|
@Component({
|
|
88
88
|
template: `
|
|
89
89
|
<div class="card">
|
|
90
|
-
<p-
|
|
90
|
+
<p-progress-bar mode="indeterminate" [style]="{ height: '6px' }" />
|
|
91
91
|
</div>
|
|
92
92
|
`,
|
|
93
93
|
standalone: true,
|
|
@@ -110,11 +110,11 @@ import { ProgressBarModule } from '@exhaustive-ui/core/progressbar';
|
|
|
110
110
|
@Component({
|
|
111
111
|
template: `
|
|
112
112
|
<div class="card">
|
|
113
|
-
<p-
|
|
113
|
+
<p-progress-bar [value]="50">
|
|
114
114
|
<ng-template #content let-value>
|
|
115
115
|
<span>{{ value }}/100</span>
|
|
116
116
|
</ng-template>
|
|
117
|
-
</p-
|
|
117
|
+
</p-progress-bar>
|
|
118
118
|
</div>
|
|
119
119
|
`,
|
|
120
120
|
standalone: true,
|
|
@@ -12,6 +12,7 @@ An infinite spin animation is displayed by default.
|
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component } from '@angular/core';
|
|
15
|
+
import { ProgressSpinnerModule } from '@exhaustive-ui/core/progressspinner';
|
|
15
16
|
|
|
16
17
|
@Component({
|
|
17
18
|
template: `
|
|
@@ -20,7 +21,7 @@ import { Component } from '@angular/core';
|
|
|
20
21
|
</div>
|
|
21
22
|
`,
|
|
22
23
|
standalone: true,
|
|
23
|
-
imports: []
|
|
24
|
+
imports: [ProgressSpinnerModule]
|
|
24
25
|
})
|
|
25
26
|
export class ProgressspinnerBasicDemo {}
|
|
26
27
|
```
|
|
@@ -31,6 +32,7 @@ ProgressSpinner can be customized with styling property like strokeWidth and fil
|
|
|
31
32
|
|
|
32
33
|
```typescript
|
|
33
34
|
import { Component } from '@angular/core';
|
|
35
|
+
import { ProgressSpinnerModule } from '@exhaustive-ui/core/progressspinner';
|
|
34
36
|
|
|
35
37
|
@Component({
|
|
36
38
|
template: `
|
|
@@ -39,7 +41,7 @@ import { Component } from '@angular/core';
|
|
|
39
41
|
</div>
|
|
40
42
|
`,
|
|
41
43
|
standalone: true,
|
|
42
|
-
imports: []
|
|
44
|
+
imports: [ProgressSpinnerModule]
|
|
43
45
|
})
|
|
44
46
|
export class ProgressspinnerCustomDemo {}
|
|
45
47
|
```
|
|
@@ -18,8 +18,8 @@ import { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';
|
|
|
18
18
|
@Component({
|
|
19
19
|
template: `
|
|
20
20
|
<div class="card flex justify-center gap-2">
|
|
21
|
-
<p-
|
|
22
|
-
<p-
|
|
21
|
+
<p-radio-button [(ngModel)]="value" [value]="1" [disabled]="true" />
|
|
22
|
+
<p-radio-button [(ngModel)]="value" [value]="2" [disabled]="true" />
|
|
23
23
|
</div>
|
|
24
24
|
`,
|
|
25
25
|
standalone: true,
|
|
@@ -44,7 +44,7 @@ import { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';
|
|
|
44
44
|
<div class="card flex justify-center">
|
|
45
45
|
<div class="flex flex-col gap-4">
|
|
46
46
|
<div *ngFor="let category of categories" class="field-checkbox">
|
|
47
|
-
<p-
|
|
47
|
+
<p-radio-button [inputId]="category.key" name="category" [value]="category" [(ngModel)]="selectedCategory" />
|
|
48
48
|
<label [for]="category.key" class="ml-2">{{ category.name }}</label>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
@@ -75,7 +75,7 @@ import { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';
|
|
|
75
75
|
@Component({
|
|
76
76
|
template: `
|
|
77
77
|
<div class="card flex justify-center">
|
|
78
|
-
<p-
|
|
78
|
+
<p-radio-button [(ngModel)]="checked" variant="filled" />
|
|
79
79
|
</div>
|
|
80
80
|
`,
|
|
81
81
|
standalone: true,
|
|
@@ -100,19 +100,19 @@ import { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';
|
|
|
100
100
|
<div class="card flex justify-center">
|
|
101
101
|
<div class="flex flex-wrap gap-4">
|
|
102
102
|
<div class="flex items-center">
|
|
103
|
-
<p-
|
|
103
|
+
<p-radio-button name="pizza" value="Cheese" [(ngModel)]="ingredient" inputId="ingredient1" />
|
|
104
104
|
<label for="ingredient1" class="ml-2">Cheese</label>
|
|
105
105
|
</div>
|
|
106
106
|
<div class="flex items-center">
|
|
107
|
-
<p-
|
|
107
|
+
<p-radio-button name="pizza" value="Mushroom" [(ngModel)]="ingredient" inputId="ingredient2" />
|
|
108
108
|
<label for="ingredient2" class="ml-2">Mushroom</label>
|
|
109
109
|
</div>
|
|
110
110
|
<div class="flex items-center">
|
|
111
|
-
<p-
|
|
111
|
+
<p-radio-button name="pizza" value="Pepper" [(ngModel)]="ingredient" inputId="ingredient3" />
|
|
112
112
|
<label for="ingredient3" class="ml-2">Pepper</label>
|
|
113
113
|
</div>
|
|
114
114
|
<div class="flex items-center">
|
|
115
|
-
<p-
|
|
115
|
+
<p-radio-button name="pizza" value="Onion" [(ngModel)]="ingredient" inputId="ingredient4" />
|
|
116
116
|
<label for="ingredient4" class="ml-2">Onion</label>
|
|
117
117
|
</div>
|
|
118
118
|
</div>
|
|
@@ -138,7 +138,7 @@ import { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';
|
|
|
138
138
|
@Component({
|
|
139
139
|
template: `
|
|
140
140
|
<div class="card flex justify-center">
|
|
141
|
-
<p-
|
|
141
|
+
<p-radio-button [(ngModel)]="value" [invalid]="!value" />
|
|
142
142
|
</div>
|
|
143
143
|
`,
|
|
144
144
|
standalone: true,
|
|
@@ -170,7 +170,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
170
170
|
<div class="flex flex-wrap gap-4">
|
|
171
171
|
@for (category of categories; track category.key) {
|
|
172
172
|
<div class="flex items-center gap-2">
|
|
173
|
-
<p-
|
|
173
|
+
<p-radio-button formControlName="selectedCategory" name="selectedCategory" [inputId]="category.key" [value]="category" [invalid]="isInvalid('selectedCategory')" />
|
|
174
174
|
<label [for]="category.key"> {{ category.name }} </label>
|
|
175
175
|
</div>
|
|
176
176
|
}
|
|
@@ -251,7 +251,7 @@ interface Category {
|
|
|
251
251
|
<div class="flex flex-wrap gap-4">
|
|
252
252
|
@for (category of categories; track category.key) {
|
|
253
253
|
<div class="flex items-center gap-2">
|
|
254
|
-
<p-
|
|
254
|
+
<p-radio-button [formField]="exampleForm.selectedCategory" [inputId]="category.key" [value]="category" />
|
|
255
255
|
<label [for]="category.key"> {{ category.name }} </label>
|
|
256
256
|
</div>
|
|
257
257
|
}
|
|
@@ -299,15 +299,15 @@ import { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';
|
|
|
299
299
|
<div class="card flex justify-center">
|
|
300
300
|
<div class="flex flex-wrap gap-4">
|
|
301
301
|
<div class="flex items-center gap-2">
|
|
302
|
-
<p-
|
|
302
|
+
<p-radio-button [(ngModel)]="size" inputId="size_small" name="size" value="Small" size="small" />
|
|
303
303
|
<label for="size_small" class="text-sm">Small</label>
|
|
304
304
|
</div>
|
|
305
305
|
<div class="flex items-center gap-2">
|
|
306
|
-
<p-
|
|
306
|
+
<p-radio-button [(ngModel)]="size" inputId="size_normal" name="size" value="Normal" />
|
|
307
307
|
<label for="size_normal">Normal</label>
|
|
308
308
|
</div>
|
|
309
309
|
<div class="flex items-center gap-2">
|
|
310
|
-
<p-
|
|
310
|
+
<p-radio-button [(ngModel)]="size" inputId="size_large" name="size" value="Large" size="large" />
|
|
311
311
|
<label for="size_large" class="text-lg">Large</label>
|
|
312
312
|
</div>
|
|
313
313
|
</div>
|
|
@@ -340,7 +340,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
340
340
|
<div class="flex flex-wrap gap-4">
|
|
341
341
|
@for (category of categories; track category.name) {
|
|
342
342
|
<div class="flex items-center gap-2">
|
|
343
|
-
<p-
|
|
343
|
+
<p-radio-button [(ngModel)]="ingredient" [inputId]="category.key" [value]="category" [invalid]="isInvalid(exampleForm)" name="ingredient" />
|
|
344
344
|
<label [for]="category.key"> {{ category.name }} </label>
|
|
345
345
|
</div>
|
|
346
346
|
}
|
|
@@ -17,7 +17,7 @@ import { ScrollPanelModule } from '@exhaustive-ui/core/scrollpanel';
|
|
|
17
17
|
@Component({
|
|
18
18
|
template: `
|
|
19
19
|
<div class="card">
|
|
20
|
-
<p-
|
|
20
|
+
<p-scroll-panel [style]="{ width: '100%', height: '150px' }">
|
|
21
21
|
<p>
|
|
22
22
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
23
23
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
@@ -30,7 +30,7 @@ import { ScrollPanelModule } from '@exhaustive-ui/core/scrollpanel';
|
|
|
30
30
|
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui
|
|
31
31
|
officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
|
|
32
32
|
</p>
|
|
33
|
-
</p-
|
|
33
|
+
</p-scroll-panel>
|
|
34
34
|
</div>
|
|
35
35
|
`,
|
|
36
36
|
standalone: true,
|
|
@@ -50,7 +50,7 @@ import { ScrollPanelModule } from '@exhaustive-ui/core/scrollpanel';
|
|
|
50
50
|
@Component({
|
|
51
51
|
template: `
|
|
52
52
|
<div class="card">
|
|
53
|
-
<p-
|
|
53
|
+
<p-scroll-panel [style]="{ width: '100%', height: '200px' }">
|
|
54
54
|
<p>
|
|
55
55
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
56
56
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
@@ -75,7 +75,7 @@ import { ScrollPanelModule } from '@exhaustive-ui/core/scrollpanel';
|
|
|
75
75
|
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui
|
|
76
76
|
officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
|
|
77
77
|
</p>
|
|
78
|
-
</p-
|
|
78
|
+
</p-scroll-panel>
|
|
79
79
|
</div>
|
|
80
80
|
`,
|
|
81
81
|
standalone: true,
|
|
@@ -19,7 +19,7 @@ import { ScrollTopModule } from '@exhaustive-ui/core/scrolltop';
|
|
|
19
19
|
<div class="card flex flex-col items-center">
|
|
20
20
|
<p>Scroll down the page to display the ScrollTo component.</p>
|
|
21
21
|
<i class="pi pi-angle-down animate-fadeout animate-duration-1000 animate-infinite" style="fontsize: 2rem; margin-bottom: 30rem"></i>
|
|
22
|
-
<p-
|
|
22
|
+
<p-scroll-top />
|
|
23
23
|
</div>
|
|
24
24
|
`,
|
|
25
25
|
standalone: true,
|
|
@@ -47,7 +47,7 @@ import { ScrollTopModule } from '@exhaustive-ui/core/scrolltop';
|
|
|
47
47
|
Cursus sit amet dictum sit amet. Tristique senectus et netus et malesuada fames ac turpis egestas. Et tortor consequat id porta nibh venenatis cras sed. Diam maecenas ultricies mi eget mauris. Eget egestas purus viverra accumsan
|
|
48
48
|
in nisl nisi. Suscipit adipiscing bibendum est ultricies integer. Mattis aliquam faucibus purus in massa tempor nec.
|
|
49
49
|
</p>
|
|
50
|
-
<p-
|
|
50
|
+
<p-scroll-top target="parent" [threshold]="100" icon="pi pi-arrow-up" [buttonProps]="{ severity: 'contrast', raised: true, rounded: true }" />
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
53
|
`,
|
|
@@ -131,8 +131,8 @@ Custom filter can be applied with the filterTemplate .
|
|
|
131
131
|
import { Component, OnInit } from '@angular/core';
|
|
132
132
|
import { FormsModule } from '@angular/forms';
|
|
133
133
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
134
|
-
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
135
134
|
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
135
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
136
136
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
137
137
|
import { Country } from '@/domain/customer';
|
|
138
138
|
|
|
@@ -147,10 +147,10 @@ interface City {
|
|
|
147
147
|
<p-select [options]="countries" [(ngModel)]="selectedCountry" optionLabel="name" [filter]="true" filterBy="name" [showClear]="true" placeholder="Select a Country">
|
|
148
148
|
<ng-template pTemplate="filter" let-options="options">
|
|
149
149
|
<div class="flex gap-1">
|
|
150
|
-
<p-
|
|
151
|
-
<p-
|
|
150
|
+
<p-input-group (click)="$event.stopPropagation()">
|
|
151
|
+
<p-input-group-addon><i class="pi pi-search"></i></p-input-group-addon>
|
|
152
152
|
<input type="text" pInputText placeholder="Filter" [(ngModel)]="filterValue" (keyup)="customFilterFunction($event, options)" />
|
|
153
|
-
</p-
|
|
153
|
+
</p-input-group>
|
|
154
154
|
<p-button icon="pi pi-times" (click)="resetFunction(options)" severity="secondary" />
|
|
155
155
|
</div>
|
|
156
156
|
</ng-template>
|
|
@@ -170,7 +170,7 @@ interface City {
|
|
|
170
170
|
</div>
|
|
171
171
|
`,
|
|
172
172
|
standalone: true,
|
|
173
|
-
imports: [ButtonModule,
|
|
173
|
+
imports: [ButtonModule, InputGroupModule, SelectModule, InputTextModule, FormsModule]
|
|
174
174
|
})
|
|
175
175
|
export class SelectCustomfilterDemo implements OnInit {
|
|
176
176
|
countries: City[] | undefined;
|
|
@@ -380,8 +380,8 @@ A floating label appears on top of the input field when focused. Visit FloatLabe
|
|
|
380
380
|
```typescript
|
|
381
381
|
import { Component, OnInit } from '@angular/core';
|
|
382
382
|
import { FormsModule } from '@angular/forms';
|
|
383
|
-
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
384
383
|
import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
384
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
385
385
|
|
|
386
386
|
interface City {
|
|
387
387
|
name: string;
|
|
@@ -391,22 +391,22 @@ interface City {
|
|
|
391
391
|
@Component({
|
|
392
392
|
template: `
|
|
393
393
|
<div class="card flex flex-wrap justify-center items-end gap-4">
|
|
394
|
-
<p-
|
|
394
|
+
<p-float-label class="w-full md:w-56">
|
|
395
395
|
<p-select [(ngModel)]="value1" inputId="over_label" [options]="cities" optionLabel="name" class="w-full" />
|
|
396
396
|
<label for="over_label">Over Label</label>
|
|
397
|
-
</p-
|
|
398
|
-
<p-
|
|
397
|
+
</p-float-label>
|
|
398
|
+
<p-float-label class="w-full md:w-56" variant="in">
|
|
399
399
|
<p-select [(ngModel)]="value2" inputId="in_label" [options]="cities" optionLabel="name" class="w-full" variant="filled" />
|
|
400
400
|
<label for="in_label">In Label</label>
|
|
401
|
-
</p-
|
|
402
|
-
<p-
|
|
401
|
+
</p-float-label>
|
|
402
|
+
<p-float-label class="w-full md:w-56" variant="on">
|
|
403
403
|
<p-select [(ngModel)]="value3" inputId="on_label" [options]="cities" optionLabel="name" class="w-full" />
|
|
404
404
|
<label for="on_label">On Label</label>
|
|
405
|
-
</p-
|
|
405
|
+
</p-float-label>
|
|
406
406
|
</div>
|
|
407
407
|
`,
|
|
408
408
|
standalone: true,
|
|
409
|
-
imports: [
|
|
409
|
+
imports: [FloatLabelModule, SelectModule, FormsModule]
|
|
410
410
|
})
|
|
411
411
|
export class SelectFloatlabelDemo implements OnInit {
|
|
412
412
|
cities: City[] | undefined;
|
|
@@ -539,8 +539,8 @@ IftaLabel is used to create infield top aligned labels. Visit IftaLabel document
|
|
|
539
539
|
```typescript
|
|
540
540
|
import { Component, OnInit } from '@angular/core';
|
|
541
541
|
import { FormsModule } from '@angular/forms';
|
|
542
|
-
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
543
542
|
import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
543
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
544
544
|
|
|
545
545
|
interface City {
|
|
546
546
|
name: string;
|
|
@@ -550,14 +550,14 @@ interface City {
|
|
|
550
550
|
@Component({
|
|
551
551
|
template: `
|
|
552
552
|
<div class="card flex justify-center">
|
|
553
|
-
<p-
|
|
553
|
+
<p-ifta-label class="w-full md:w-56">
|
|
554
554
|
<p-select [(ngModel)]="selectedCity" inputId="dd-city" [options]="cities" optionLabel="name" class="w-full" />
|
|
555
555
|
<label for="dd-city">City</label>
|
|
556
|
-
</p-
|
|
556
|
+
</p-ifta-label>
|
|
557
557
|
</div>
|
|
558
558
|
`,
|
|
559
559
|
standalone: true,
|
|
560
|
-
imports: [
|
|
560
|
+
imports: [IftaLabelModule, SelectModule, FormsModule]
|
|
561
561
|
})
|
|
562
562
|
export class SelectIftalabelDemo implements OnInit {
|
|
563
563
|
cities: City[] | undefined;
|
|
@@ -711,8 +711,8 @@ Select can also be used with reactive forms. In this case, the formControlName p
|
|
|
711
711
|
```typescript
|
|
712
712
|
import { Component, inject } from '@angular/core';
|
|
713
713
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
714
|
-
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
715
714
|
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
715
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
716
716
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
717
717
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
718
718
|
import { MessageService } from '@exhaustive-ui/core/api';
|
|
@@ -738,7 +738,7 @@ interface City {
|
|
|
738
738
|
</div>
|
|
739
739
|
`,
|
|
740
740
|
standalone: true,
|
|
741
|
-
imports: [
|
|
741
|
+
imports: [MessageModule, SelectModule, ToastModule, ButtonModule, ReactiveFormsModule]
|
|
742
742
|
})
|
|
743
743
|
export class SelectReactiveformsDemo {
|
|
744
744
|
messageService = inject(MessageService);
|
|
@@ -775,8 +775,8 @@ Select can also be used with Angular Signal Forms , the @angular/forms/signals A
|
|
|
775
775
|
```typescript
|
|
776
776
|
import { Component, inject, signal } from '@angular/core';
|
|
777
777
|
import { form, FormField, required, submit } from '@angular/forms/signals';
|
|
778
|
-
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
779
778
|
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
779
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
780
780
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
781
781
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
782
782
|
import { MessageService } from '@exhaustive-ui/core/api';
|
|
@@ -803,7 +803,7 @@ interface City {
|
|
|
803
803
|
</div>
|
|
804
804
|
`,
|
|
805
805
|
standalone: true,
|
|
806
|
-
imports: [
|
|
806
|
+
imports: [MessageModule, SelectModule, ToastModule, ButtonModule, FormField]
|
|
807
807
|
})
|
|
808
808
|
export class SelectSignalformsDemo {
|
|
809
809
|
messageService = inject(MessageService);
|
|
@@ -935,8 +935,8 @@ export class SelectTemplateDemo implements OnInit {
|
|
|
935
935
|
```typescript
|
|
936
936
|
import { Component, inject } from '@angular/core';
|
|
937
937
|
import { FormsModule } from '@angular/forms';
|
|
938
|
-
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
939
938
|
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
939
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
940
940
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
941
941
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
942
942
|
import { MessageService } from '@exhaustive-ui/core/api';
|
|
@@ -972,7 +972,7 @@ interface City {
|
|
|
972
972
|
</div>
|
|
973
973
|
`,
|
|
974
974
|
standalone: true,
|
|
975
|
-
imports: [
|
|
975
|
+
imports: [MessageModule, SelectModule, ToastModule, ButtonModule, FormsModule]
|
|
976
976
|
})
|
|
977
977
|
export class SelectTemplatedrivenformsDemo {
|
|
978
978
|
messageService = inject(MessageService);
|
|
@@ -1119,7 +1119,7 @@ Select is used to choose an item from a collection of options.
|
|
|
1119
1119
|
| item | TemplateRef<SelectItemTemplateContext<any>> | Custom item template. |
|
|
1120
1120
|
| group | TemplateRef<SelectGroupTemplateContext<any>> | Custom group template. |
|
|
1121
1121
|
| loader | TemplateRef<SelectLoaderTemplateContext> | Custom loader template. |
|
|
1122
|
-
|
|
|
1122
|
+
| selectedItem | TemplateRef<SelectSelectedItemTemplateContext<any>> | Custom selected item template. |
|
|
1123
1123
|
| header | TemplateRef<void> | Custom header template. |
|
|
1124
1124
|
| filter | TemplateRef<SelectFilterTemplateContext> | Custom filter template. |
|
|
1125
1125
|
| footer | TemplateRef<void> | Custom footer template. |
|