@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
|
@@ -20,7 +20,7 @@ import { Product } from '@/domain/product';
|
|
|
20
20
|
@Component({
|
|
21
21
|
template: `
|
|
22
22
|
<div class="card">
|
|
23
|
-
<p-
|
|
23
|
+
<p-auto-complete
|
|
24
24
|
[(ngModel)]="selectedProducts"
|
|
25
25
|
[suggestions]="filteredProducts"
|
|
26
26
|
(completeMethod)="filterProducts($event)"
|
|
@@ -53,7 +53,7 @@ import { Product } from '@/domain/product';
|
|
|
53
53
|
<span class="font-semibold">{{ value }}</span>
|
|
54
54
|
}
|
|
55
55
|
</ng-template>
|
|
56
|
-
</p-
|
|
56
|
+
</p-auto-complete>
|
|
57
57
|
</div>
|
|
58
58
|
`,
|
|
59
59
|
standalone: true,
|
|
@@ -116,13 +116,13 @@ import { AutoCompleteModule } from '@exhaustive-ui/core/autocomplete';
|
|
|
116
116
|
template: `
|
|
117
117
|
<div class="card">
|
|
118
118
|
<label for="chips-blur" class="font-bold mb-2 block">With Add On Blur</label>
|
|
119
|
-
<p-
|
|
119
|
+
<p-auto-complete [(ngModel)]="valueBlur" inputId="chips-blur" multiple fluid [typeahead]="false" [addOnBlur]="true" placeholder="Type and click outside to add..." />
|
|
120
120
|
<label for="chips-tab" class="font-bold mt-8 mb-2 block">With Add On Tab</label>
|
|
121
|
-
<p-
|
|
121
|
+
<p-auto-complete [(ngModel)]="valueTab" inputId="chips-tab" multiple fluid [typeahead]="false" [addOnTab]="true" placeholder="Type and press Tab to add..." />
|
|
122
122
|
<label for="chips-separator" class="font-bold mt-8 mb-2 block">With Separator (Comma)</label>
|
|
123
|
-
<p-
|
|
123
|
+
<p-auto-complete [(ngModel)]="valueSeparator" inputId="chips-separator" multiple fluid [typeahead]="false" separator="," placeholder="Type items separated by comma..." />
|
|
124
124
|
<label for="chips-combined" class="font-bold mt-8 mb-2 block">Combined Features</label>
|
|
125
|
-
<p-
|
|
125
|
+
<p-auto-complete [(ngModel)]="valueCombined" inputId="chips-combined" multiple fluid [typeahead]="false" [addOnBlur]="true" [addOnTab]="true" separator="," placeholder="Use Tab, Blur, or Comma to add items..." />
|
|
126
126
|
</div>
|
|
127
127
|
`,
|
|
128
128
|
standalone: true,
|
|
@@ -153,7 +153,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
153
153
|
@Component({
|
|
154
154
|
template: `
|
|
155
155
|
<div class="card flex justify-center">
|
|
156
|
-
<p-
|
|
156
|
+
<p-auto-complete [(ngModel)]="value" [suggestions]="items" (completeMethod)="search($event)" />
|
|
157
157
|
</div>
|
|
158
158
|
`,
|
|
159
159
|
standalone: true,
|
|
@@ -186,7 +186,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
186
186
|
@Component({
|
|
187
187
|
template: `
|
|
188
188
|
<div class="card flex justify-center">
|
|
189
|
-
<p-
|
|
189
|
+
<p-auto-complete [(ngModel)]="value" [suggestions]="items" (completeMethod)="search($event)" [showClear]="true" inputStyleClass="w-56" />
|
|
190
190
|
</div>
|
|
191
191
|
`,
|
|
192
192
|
standalone: true,
|
|
@@ -219,7 +219,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
219
219
|
@Component({
|
|
220
220
|
template: `
|
|
221
221
|
<div class="card flex justify-center">
|
|
222
|
-
<p-
|
|
222
|
+
<p-auto-complete [(ngModel)]="selectedItem" [suggestions]="suggestions" placeholder="Disabled" (completeMethod)="search($event)" [disabled]="true" />
|
|
223
223
|
</div>
|
|
224
224
|
`,
|
|
225
225
|
standalone: true,
|
|
@@ -253,7 +253,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
253
253
|
@Component({
|
|
254
254
|
template: `
|
|
255
255
|
<div class="card flex justify-center">
|
|
256
|
-
<p-
|
|
256
|
+
<p-auto-complete [(ngModel)]="value" [dropdown]="true" [suggestions]="items" (completeMethod)="search($event)" />
|
|
257
257
|
</div>
|
|
258
258
|
`,
|
|
259
259
|
standalone: true,
|
|
@@ -288,7 +288,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
288
288
|
@Component({
|
|
289
289
|
template: `
|
|
290
290
|
<div class="card flex justify-center">
|
|
291
|
-
<p-
|
|
291
|
+
<p-auto-complete [(ngModel)]="selectedItem" [suggestions]="suggestions" (completeMethod)="search($event)" variant="filled" />
|
|
292
292
|
</div>
|
|
293
293
|
`,
|
|
294
294
|
standalone: true,
|
|
@@ -323,18 +323,18 @@ interface AutoCompleteCompleteEvent {
|
|
|
323
323
|
@Component({
|
|
324
324
|
template: `
|
|
325
325
|
<div class="card flex flex-wrap justify-center items-end gap-4">
|
|
326
|
-
<p-
|
|
327
|
-
<p-
|
|
326
|
+
<p-float-label>
|
|
327
|
+
<p-auto-complete [(ngModel)]="value1" [suggestions]="items" (completeMethod)="search($event)" inputId="over_label" />
|
|
328
328
|
<label for="over_label">Over Label</label>
|
|
329
|
-
</p-
|
|
330
|
-
<p-
|
|
331
|
-
<p-
|
|
329
|
+
</p-float-label>
|
|
330
|
+
<p-float-label variant="in">
|
|
331
|
+
<p-auto-complete [(ngModel)]="value2" [suggestions]="items" (completeMethod)="search($event)" inputId="in_label" />
|
|
332
332
|
<label for="in_label">In Label</label>
|
|
333
|
-
</p-
|
|
334
|
-
<p-
|
|
335
|
-
<p-
|
|
333
|
+
</p-float-label>
|
|
334
|
+
<p-float-label variant="on">
|
|
335
|
+
<p-auto-complete [(ngModel)]="value3" [suggestions]="items" (completeMethod)="search($event)" inputId="on_label" />
|
|
336
336
|
<label for="on_label">On Label</label>
|
|
337
|
-
</p-
|
|
337
|
+
</p-float-label>
|
|
338
338
|
</div>
|
|
339
339
|
`,
|
|
340
340
|
standalone: true,
|
|
@@ -369,7 +369,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
369
369
|
@Component({
|
|
370
370
|
template: `
|
|
371
371
|
<div class="card">
|
|
372
|
-
<p-
|
|
372
|
+
<p-auto-complete [(ngModel)]="value" [suggestions]="items" (completeMethod)="search($event)" fluid />
|
|
373
373
|
</div>
|
|
374
374
|
`,
|
|
375
375
|
standalone: true,
|
|
@@ -403,7 +403,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
403
403
|
@Component({
|
|
404
404
|
template: `
|
|
405
405
|
<div class="card flex justify-center">
|
|
406
|
-
<p-
|
|
406
|
+
<p-auto-complete [(ngModel)]="selectedCountry" [forceSelection]="true" [suggestions]="filteredCountries" (completeMethod)="filterCountry($event)" optionLabel="name" />
|
|
407
407
|
</div>
|
|
408
408
|
`,
|
|
409
409
|
standalone: true,
|
|
@@ -456,14 +456,14 @@ interface AutoCompleteCompleteEvent {
|
|
|
456
456
|
@Component({
|
|
457
457
|
template: `
|
|
458
458
|
<div class="card flex justify-center">
|
|
459
|
-
<p-
|
|
459
|
+
<p-auto-complete [(ngModel)]="selectedCity" [group]="true" [suggestions]="filteredGroups" (completeMethod)="filterGroupedCity($event)" placeholder="Hint: type 'a'">
|
|
460
460
|
<ng-template let-group #group>
|
|
461
461
|
<div class="flex items-center">
|
|
462
462
|
<img src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" [class]="'mr-2 flag flag-' + group.value" style="width: 20px" />
|
|
463
463
|
<span>{{ group.label }}</span>
|
|
464
464
|
</div>
|
|
465
465
|
</ng-template>
|
|
466
|
-
</p-
|
|
466
|
+
</p-auto-complete>
|
|
467
467
|
</div>
|
|
468
468
|
`,
|
|
469
469
|
standalone: true,
|
|
@@ -547,10 +547,10 @@ interface AutoCompleteCompleteEvent {
|
|
|
547
547
|
@Component({
|
|
548
548
|
template: `
|
|
549
549
|
<div class="card flex justify-center">
|
|
550
|
-
<p-
|
|
551
|
-
<p-
|
|
550
|
+
<p-ifta-label>
|
|
551
|
+
<p-auto-complete [(ngModel)]="value" [suggestions]="items" (completeMethod)="search($event)" inputId="ac" />
|
|
552
552
|
<label for="ac">Identifier</label>
|
|
553
|
-
</p-
|
|
553
|
+
</p-ifta-label>
|
|
554
554
|
</div>
|
|
555
555
|
`,
|
|
556
556
|
standalone: true,
|
|
@@ -583,8 +583,8 @@ interface AutoCompleteCompleteEvent {
|
|
|
583
583
|
@Component({
|
|
584
584
|
template: `
|
|
585
585
|
<div class="card flex flex-wrap justify-center gap-4">
|
|
586
|
-
<p-
|
|
587
|
-
<p-
|
|
586
|
+
<p-auto-complete [(ngModel)]="value1" [suggestions]="suggestions" [invalid]="!value1" (completeMethod)="search($event)" placeholder="Code" />
|
|
587
|
+
<p-auto-complete [(ngModel)]="value2" [suggestions]="suggestions" [invalid]="!value2" (completeMethod)="search($event)" variant="filled" placeholder="Code" />
|
|
588
588
|
</div>
|
|
589
589
|
`,
|
|
590
590
|
standalone: true,
|
|
@@ -619,9 +619,9 @@ interface AutoCompleteCompleteEvent {
|
|
|
619
619
|
template: `
|
|
620
620
|
<div class="card">
|
|
621
621
|
<label for="multiple-ac-1" class="font-bold mb-2 block">With Typeahead</label>
|
|
622
|
-
<p-
|
|
622
|
+
<p-auto-complete [(ngModel)]="value1" inputId="multiple-ac-1" multiple fluid [suggestions]="items" (completeMethod)="search($event)" />
|
|
623
623
|
<label for="multiple-ac-2" class="font-bold mt-8 mb-2 block">Without Typeahead</label>
|
|
624
|
-
<p-
|
|
624
|
+
<p-auto-complete [(ngModel)]="value2" inputId="multiple-ac-2" multiple fluid (completeMethod)="search($event)" [typeahead]="false" />
|
|
625
625
|
</div>
|
|
626
626
|
`,
|
|
627
627
|
standalone: true,
|
|
@@ -657,7 +657,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
657
657
|
@Component({
|
|
658
658
|
template: `
|
|
659
659
|
<div class="card flex justify-center">
|
|
660
|
-
<p-
|
|
660
|
+
<p-auto-complete [(ngModel)]="selectedCountry" [suggestions]="filteredCountries" (completeMethod)="filterCountry($event)" optionLabel="name" />
|
|
661
661
|
</div>
|
|
662
662
|
`,
|
|
663
663
|
standalone: true,
|
|
@@ -716,7 +716,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
716
716
|
<div class="card flex justify-center">
|
|
717
717
|
<form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex justify-center flex-col gap-4 md:w-56">
|
|
718
718
|
<div class="flex flex-col gap-1">
|
|
719
|
-
<p-
|
|
719
|
+
<p-auto-complete formControlName="value" [suggestions]="items" [invalid]="isInvalid('value')" (completeMethod)="search($event)" fluid />
|
|
720
720
|
@if (isInvalid('value')) {
|
|
721
721
|
<p-message severity="error" size="small" variant="simple">Value is required.</p-message>
|
|
722
722
|
}
|
|
@@ -784,7 +784,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
784
784
|
<div class="card flex justify-center">
|
|
785
785
|
<form novalidate (submit)="onSubmit($event)" class="flex justify-center flex-col gap-4 md:w-56">
|
|
786
786
|
<div class="flex flex-col gap-1">
|
|
787
|
-
<p-
|
|
787
|
+
<p-auto-complete [formField]="exampleForm.value" [suggestions]="items" (completeMethod)="search($event)" fluid />
|
|
788
788
|
@let value = exampleForm.value();
|
|
789
789
|
@if (value.invalid() && value.touched()) {
|
|
790
790
|
<p-message severity="error" size="small" variant="simple">Value is required.</p-message>
|
|
@@ -831,9 +831,9 @@ import { AutoCompleteModule } from '@exhaustive-ui/core/autocomplete';
|
|
|
831
831
|
@Component({
|
|
832
832
|
template: `
|
|
833
833
|
<div class="card flex flex-col items-center gap-4">
|
|
834
|
-
<p-
|
|
835
|
-
<p-
|
|
836
|
-
<p-
|
|
834
|
+
<p-auto-complete [(ngModel)]="value1" [suggestions]="items" (completeMethod)="search()" size="small" placeholder="Small" dropdown />
|
|
835
|
+
<p-auto-complete [(ngModel)]="value2" [suggestions]="items" (completeMethod)="search()" placeholder="Normal" dropdown />
|
|
836
|
+
<p-auto-complete [(ngModel)]="value3" [suggestions]="items" (completeMethod)="search()" size="large" placeholder="Large" dropdown />
|
|
837
837
|
</div>
|
|
838
838
|
`,
|
|
839
839
|
standalone: true,
|
|
@@ -870,7 +870,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
870
870
|
@Component({
|
|
871
871
|
template: `
|
|
872
872
|
<div class="card flex justify-center">
|
|
873
|
-
<p-
|
|
873
|
+
<p-auto-complete [(ngModel)]="selectedCountryAdvanced" [suggestions]="filteredCountries" (completeMethod)="filterCountry($event)" optionLabel="name">
|
|
874
874
|
<ng-template let-country #item>
|
|
875
875
|
<div class="flex items-center gap-2">
|
|
876
876
|
<img src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" [class]="'flag flag-' + country.code.toLowerCase()" style="width: 18px" />
|
|
@@ -885,7 +885,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
885
885
|
<p-button label="Add New" fluid severity="secondary" text size="small" icon="pi pi-plus" />
|
|
886
886
|
</div>
|
|
887
887
|
</ng-template>
|
|
888
|
-
</p-
|
|
888
|
+
</p-auto-complete>
|
|
889
889
|
</div>
|
|
890
890
|
`,
|
|
891
891
|
standalone: true,
|
|
@@ -936,7 +936,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
936
936
|
<div class="card flex justify-center">
|
|
937
937
|
<form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex justify-center flex-col gap-4 md:w-56">
|
|
938
938
|
<div class="flex flex-col gap-1">
|
|
939
|
-
<p-
|
|
939
|
+
<p-auto-complete #val="ngModel" [(ngModel)]="value" [suggestions]="items" [invalid]="val.invalid && (val.touched || exampleForm.submitted)" name="val" (completeMethod)="search($event)" required fluid />
|
|
940
940
|
@if (val.invalid && (val.touched || exampleForm.submitted)) {
|
|
941
941
|
<p-message severity="error" size="small" variant="simple">Value is required.</p-message>
|
|
942
942
|
}
|
|
@@ -983,7 +983,7 @@ interface AutoCompleteCompleteEvent {
|
|
|
983
983
|
@Component({
|
|
984
984
|
template: `
|
|
985
985
|
<div class="card flex justify-center">
|
|
986
|
-
<p-
|
|
986
|
+
<p-auto-complete [(ngModel)]="selectedItem" [virtualScroll]="true" [suggestions]="filteredItems" [virtualScrollItemSize]="34" (completeMethod)="filterItems($event)" optionLabel="label" [dropdown]="true" />
|
|
987
987
|
</div>
|
|
988
988
|
`,
|
|
989
989
|
standalone: true,
|
|
@@ -13,6 +13,7 @@ Grouping is available by wrapping multiple Avatar components inside an AvatarGro
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component } from '@angular/core';
|
|
15
15
|
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
16
|
+
import { AvatarGroupModule } from '@exhaustive-ui/core/avatargroup';
|
|
16
17
|
|
|
17
18
|
@Component({
|
|
18
19
|
template: `
|
|
@@ -28,7 +29,7 @@ import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
|
28
29
|
</div>
|
|
29
30
|
`,
|
|
30
31
|
standalone: true,
|
|
31
|
-
imports: [AvatarModule]
|
|
32
|
+
imports: [AvatarModule, AvatarGroupModule]
|
|
32
33
|
})
|
|
33
34
|
export class AvatarAvatargroupDemo {}
|
|
34
35
|
```
|
|
@@ -146,6 +147,7 @@ A font icon is displayed as an Avatar with the icon property.
|
|
|
146
147
|
```typescript
|
|
147
148
|
import { Component } from '@angular/core';
|
|
148
149
|
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
150
|
+
import { OverlayBadgeModule } from '@exhaustive-ui/core/overlaybadge';
|
|
149
151
|
|
|
150
152
|
@Component({
|
|
151
153
|
template: `
|
|
@@ -173,7 +175,7 @@ import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
|
173
175
|
</div>
|
|
174
176
|
`,
|
|
175
177
|
standalone: true,
|
|
176
|
-
imports: [AvatarModule]
|
|
178
|
+
imports: [AvatarModule, OverlayBadgeModule]
|
|
177
179
|
})
|
|
178
180
|
export class AvatarIconDemo {}
|
|
179
181
|
```
|
|
@@ -185,6 +187,7 @@ Use the image property to display an image as an Avatar.
|
|
|
185
187
|
```typescript
|
|
186
188
|
import { Component } from '@angular/core';
|
|
187
189
|
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
190
|
+
import { OverlayBadgeModule } from '@exhaustive-ui/core/overlaybadge';
|
|
188
191
|
|
|
189
192
|
@Component({
|
|
190
193
|
template: `
|
|
@@ -210,7 +213,7 @@ import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
|
210
213
|
</div>
|
|
211
214
|
`,
|
|
212
215
|
standalone: true,
|
|
213
|
-
imports: [AvatarModule]
|
|
216
|
+
imports: [AvatarModule, OverlayBadgeModule]
|
|
214
217
|
})
|
|
215
218
|
export class AvatarImageDemo {}
|
|
216
219
|
```
|
|
@@ -222,6 +225,7 @@ A letter Avatar is defined with the label property.
|
|
|
222
225
|
```typescript
|
|
223
226
|
import { Component } from '@angular/core';
|
|
224
227
|
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
228
|
+
import { OverlayBadgeModule } from '@exhaustive-ui/core/overlaybadge';
|
|
225
229
|
|
|
226
230
|
@Component({
|
|
227
231
|
template: `
|
|
@@ -249,7 +253,7 @@ import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
|
249
253
|
</div>
|
|
250
254
|
`,
|
|
251
255
|
standalone: true,
|
|
252
|
-
imports: [AvatarModule]
|
|
256
|
+
imports: [AvatarModule, OverlayBadgeModule]
|
|
253
257
|
})
|
|
254
258
|
export class AvatarLabelDemo {}
|
|
255
259
|
```
|
package/data/components/badge.md
CHANGED
|
@@ -77,15 +77,15 @@ import { OverlayBadgeModule } from '@exhaustive-ui/core/overlaybadge';
|
|
|
77
77
|
@Component({
|
|
78
78
|
template: `
|
|
79
79
|
<div class="card flex flex-wrap justify-center gap-6">
|
|
80
|
-
<p-
|
|
80
|
+
<p-overlay-badge value="2">
|
|
81
81
|
<i class="pi pi-bell" style="font-size: 2rem"></i>
|
|
82
|
-
</p-
|
|
83
|
-
<p-
|
|
82
|
+
</p-overlay-badge>
|
|
83
|
+
<p-overlay-badge value="4" severity="danger">
|
|
84
84
|
<i class="pi pi-calendar" style="font-size: 2rem"></i>
|
|
85
|
-
</p-
|
|
86
|
-
<p-
|
|
85
|
+
</p-overlay-badge>
|
|
86
|
+
<p-overlay-badge severity="danger">
|
|
87
87
|
<i class="pi pi-envelope" style="font-size: 2rem"></i>
|
|
88
|
-
</p-
|
|
88
|
+
</p-overlay-badge>
|
|
89
89
|
</div>
|
|
90
90
|
`,
|
|
91
91
|
standalone: true,
|
|
@@ -21,7 +21,7 @@ import { PanelModule } from '@exhaustive-ui/core/panel';
|
|
|
21
21
|
<div class="card">
|
|
22
22
|
<p-button label="Block" (click)="blockedPanel = true" class="me-2" severity="secondary" />
|
|
23
23
|
<p-button label="Unblock" (click)="blockedPanel = false" severity="secondary" />
|
|
24
|
-
<p-
|
|
24
|
+
<p-block-ui [target]="pnl" [blocked]="blockedPanel" />
|
|
25
25
|
<p-panel #pnl header="Header" class="mt-6">
|
|
26
26
|
<p class="m-0">
|
|
27
27
|
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
|
|
@@ -50,7 +50,7 @@ import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
|
50
50
|
@Component({
|
|
51
51
|
template: `
|
|
52
52
|
<div class="card">
|
|
53
|
-
<p-
|
|
53
|
+
<p-block-ui [blocked]="blockedDocument" />
|
|
54
54
|
<p-button label="Block" (click)="blockDocument()" />
|
|
55
55
|
</div>
|
|
56
56
|
`,
|
|
@@ -58,11 +58,11 @@ import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
|
58
58
|
@Component({
|
|
59
59
|
template: `
|
|
60
60
|
<div class="card flex justify-center">
|
|
61
|
-
<p-
|
|
61
|
+
<p-button-group>
|
|
62
62
|
<p-button label="Save" icon="pi pi-check" />
|
|
63
63
|
<p-button label="Delete" icon="pi pi-trash" />
|
|
64
64
|
<p-button label="Cancel" icon="pi pi-times" />
|
|
65
|
-
</p-
|
|
65
|
+
</p-button-group>
|
|
66
66
|
</div>
|
|
67
67
|
`,
|
|
68
68
|
standalone: true,
|
|
@@ -18,7 +18,7 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
18
18
|
@Component({
|
|
19
19
|
template: `
|
|
20
20
|
<div class="card flex justify-center">
|
|
21
|
-
<p-
|
|
21
|
+
<p-cascade-select [(ngModel)]="selectedCity" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" [style]="{ minWidth: '14rem' }" placeholder="Select a City" />
|
|
22
22
|
</div>
|
|
23
23
|
`,
|
|
24
24
|
standalone: true,
|
|
@@ -119,7 +119,7 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
119
119
|
@Component({
|
|
120
120
|
template: `
|
|
121
121
|
<div class="card flex justify-center">
|
|
122
|
-
<p-
|
|
122
|
+
<p-cascade-select [(ngModel)]="selectedCity" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" placeholder="Select a City" [style]="{ minWidth: '14rem' }" [showClear]="true" />
|
|
123
123
|
</div>
|
|
124
124
|
`,
|
|
125
125
|
standalone: true,
|
|
@@ -219,7 +219,7 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
219
219
|
@Component({
|
|
220
220
|
template: `
|
|
221
221
|
<div class="card flex justify-center">
|
|
222
|
-
<p-
|
|
222
|
+
<p-cascade-select [disabled]="true" placeholder="Disabled" [style]="{ minWidth: '14rem' }" />
|
|
223
223
|
</div>
|
|
224
224
|
`,
|
|
225
225
|
standalone: true,
|
|
@@ -240,7 +240,7 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
240
240
|
@Component({
|
|
241
241
|
template: `
|
|
242
242
|
<div class="card flex justify-center">
|
|
243
|
-
<p-
|
|
243
|
+
<p-cascade-select [(ngModel)]="selectedCity" variant="filled" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" [style]="{ minWidth: '14rem' }" placeholder="Select a City" />
|
|
244
244
|
</div>
|
|
245
245
|
`,
|
|
246
246
|
standalone: true,
|
|
@@ -342,18 +342,18 @@ import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
|
342
342
|
@Component({
|
|
343
343
|
template: `
|
|
344
344
|
<div class="card flex flex-wrap justify-center items-end gap-4">
|
|
345
|
-
<p-
|
|
346
|
-
<p-
|
|
345
|
+
<p-float-label class="w-full md:w-56">
|
|
346
|
+
<p-cascade-select [(ngModel)]="value1" inputId="over_label" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" class="w-full" />
|
|
347
347
|
<label for="over_label">Over Label</label>
|
|
348
|
-
</p-
|
|
349
|
-
<p-
|
|
350
|
-
<p-
|
|
348
|
+
</p-float-label>
|
|
349
|
+
<p-float-label class="w-full md:w-56" variant="in">
|
|
350
|
+
<p-cascade-select [(ngModel)]="value2" inputId="in_label" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" class="w-full" />
|
|
351
351
|
<label for="in_label">In Label</label>
|
|
352
|
-
</p-
|
|
353
|
-
<p-
|
|
354
|
-
<p-
|
|
352
|
+
</p-float-label>
|
|
353
|
+
<p-float-label class="w-full md:w-56" variant="on">
|
|
354
|
+
<p-cascade-select [(ngModel)]="value3" inputId="on_label" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" class="w-full" />
|
|
355
355
|
<label for="on_label">On Label</label>
|
|
356
|
-
</p-
|
|
356
|
+
</p-float-label>
|
|
357
357
|
</div>
|
|
358
358
|
`,
|
|
359
359
|
standalone: true,
|
|
@@ -457,7 +457,7 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
457
457
|
@Component({
|
|
458
458
|
template: `
|
|
459
459
|
<div class="card">
|
|
460
|
-
<p-
|
|
460
|
+
<p-cascade-select [(ngModel)]="selectedCity" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" placeholder="Select a City" fluid />
|
|
461
461
|
</div>
|
|
462
462
|
`,
|
|
463
463
|
standalone: true,
|
|
@@ -559,10 +559,10 @@ import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
|
559
559
|
@Component({
|
|
560
560
|
template: `
|
|
561
561
|
<div class="card flex justify-center">
|
|
562
|
-
<p-
|
|
563
|
-
<p-
|
|
562
|
+
<p-ifta-label class="w-full md:w-56">
|
|
563
|
+
<p-cascade-select [(ngModel)]="selectedCity" inputId="cs_city" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" class="w-full" />
|
|
564
564
|
<label for="cs_city">City</label>
|
|
565
|
-
</p-
|
|
565
|
+
</p-ifta-label>
|
|
566
566
|
</div>
|
|
567
567
|
`,
|
|
568
568
|
standalone: true,
|
|
@@ -663,8 +663,8 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
663
663
|
@Component({
|
|
664
664
|
template: `
|
|
665
665
|
<div class="card flex flex-wrap justify-center gap-4">
|
|
666
|
-
<p-
|
|
667
|
-
<p-
|
|
666
|
+
<p-cascade-select [(ngModel)]="selectedCity1" [invalid]="!selectedCity1" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City" />
|
|
667
|
+
<p-cascade-select
|
|
668
668
|
[(ngModel)]="selectedCity2"
|
|
669
669
|
[invalid]="!selectedCity2"
|
|
670
670
|
[options]="countries"
|
|
@@ -775,7 +775,7 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
775
775
|
@Component({
|
|
776
776
|
template: `
|
|
777
777
|
<div class="card flex justify-center">
|
|
778
|
-
<p-
|
|
778
|
+
<p-cascade-select [loading]="true" [style]="{ minWidth: '14rem' }" placeholder="Loading..." />
|
|
779
779
|
</div>
|
|
780
780
|
`,
|
|
781
781
|
standalone: true,
|
|
@@ -803,7 +803,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
803
803
|
<div class="card flex justify-center">
|
|
804
804
|
<form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4">
|
|
805
805
|
<div class="flex flex-col gap-1">
|
|
806
|
-
<p-
|
|
806
|
+
<p-cascade-select
|
|
807
807
|
formControlName="selectedCity"
|
|
808
808
|
[options]="countries"
|
|
809
809
|
optionLabel="cname"
|
|
@@ -946,7 +946,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
946
946
|
<div class="card flex justify-center">
|
|
947
947
|
<form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4">
|
|
948
948
|
<div class="flex flex-col gap-1">
|
|
949
|
-
<p-
|
|
949
|
+
<p-cascade-select
|
|
950
950
|
[formField]="exampleForm.selectedCity"
|
|
951
951
|
[options]="countries"
|
|
952
952
|
optionLabel="cname"
|
|
@@ -1075,9 +1075,9 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
1075
1075
|
@Component({
|
|
1076
1076
|
template: `
|
|
1077
1077
|
<div class="card flex flex-col items-center gap-4">
|
|
1078
|
-
<p-
|
|
1079
|
-
<p-
|
|
1080
|
-
<p-
|
|
1078
|
+
<p-cascade-select [(ngModel)]="value1" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" class="w-56" size="small" placeholder="Small" />
|
|
1079
|
+
<p-cascade-select [(ngModel)]="value2" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" class="w-56" placeholder="Normal" />
|
|
1080
|
+
<p-cascade-select [(ngModel)]="value3" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" class="w-56" size="large" placeholder="Large" />
|
|
1081
1081
|
</div>
|
|
1082
1082
|
`,
|
|
1083
1083
|
standalone: true,
|
|
@@ -1181,7 +1181,7 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
1181
1181
|
@Component({
|
|
1182
1182
|
template: `
|
|
1183
1183
|
<div class="card flex justify-center">
|
|
1184
|
-
<p-
|
|
1184
|
+
<p-cascade-select [(ngModel)]="selectedCity" [options]="countries" optionLabel="cname" optionGroupLabel="name" [optionGroupChildren]="['states', 'cities']" [style]="{ minWidth: '14rem' }" placeholder="Select a City">
|
|
1185
1185
|
<ng-template #option let-option>
|
|
1186
1186
|
<div class="flex items-center">
|
|
1187
1187
|
<img *ngIf="option.states" src="https://exhaustive-ui.com/demo/flag/flag_placeholder.png" [class]="'mr-2 flag flag-' + option.code.toLowerCase()" style="width: 18px" />
|
|
@@ -1201,7 +1201,7 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
1201
1201
|
<p-button label="Add New" fluid severity="secondary" text size="small" icon="pi pi-plus" />
|
|
1202
1202
|
</div>
|
|
1203
1203
|
</ng-template>
|
|
1204
|
-
</p-
|
|
1204
|
+
</p-cascade-select>
|
|
1205
1205
|
</div>
|
|
1206
1206
|
`,
|
|
1207
1207
|
standalone: true,
|
|
@@ -1307,7 +1307,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
1307
1307
|
<div class="card flex justify-center">
|
|
1308
1308
|
<form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex justify-center flex-col gap-4">
|
|
1309
1309
|
<div class="flex flex-col gap-1">
|
|
1310
|
-
<p-
|
|
1310
|
+
<p-cascade-select
|
|
1311
1311
|
#city="ngModel"
|
|
1312
1312
|
[(ngModel)]="selectedCity"
|
|
1313
1313
|
[options]="countries"
|
|
@@ -522,7 +522,7 @@ Checkbox is an extension to standard checkbox element with theming.
|
|
|
522
522
|
|
|
523
523
|
| Name | Type | Description |
|
|
524
524
|
|------|------|-------------|
|
|
525
|
-
|
|
|
525
|
+
| icon | TemplateRef<CheckboxIconTemplateContext> | Custom checkbox icon template. |
|
|
526
526
|
|
|
527
527
|
## Pass Through Options
|
|
528
528
|
|