@exhaustive-ui/mcp 22.4.0 → 22.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/data/cards/accordion.md +91 -0
- package/data/cards/animateonscroll.md +155 -0
- package/data/cards/autocomplete.md +109 -0
- package/data/cards/autofocus.md +36 -0
- package/data/cards/avatar.md +45 -0
- package/data/cards/badge.md +44 -0
- package/data/cards/blockui.md +51 -0
- package/data/cards/breadcrumb.md +56 -0
- package/data/cards/button.md +83 -0
- package/data/cards/card.md +49 -0
- package/data/cards/carousel.md +101 -0
- package/data/cards/cascadeselect.md +77 -0
- package/data/cards/chart.md +105 -0
- package/data/cards/checkbox.md +59 -0
- package/data/cards/chip.md +50 -0
- package/data/cards/classnames.md +91 -0
- package/data/cards/colorpicker.md +52 -0
- package/data/cards/confirmdialog.md +119 -0
- package/data/cards/confirmpopup.md +96 -0
- package/data/cards/contextmenu.md +60 -0
- package/data/cards/dataview.md +134 -0
- package/data/cards/datepicker.md +103 -0
- package/data/cards/dialog.md +89 -0
- package/data/cards/divider.md +55 -0
- package/data/cards/dock.md +106 -0
- package/data/cards/dragdrop.md +106 -0
- package/data/cards/drawer.md +62 -0
- package/data/cards/dynamicdialog.md +103 -0
- package/data/cards/editor.md +55 -0
- package/data/cards/fieldset.md +54 -0
- package/data/cards/fileinput.md +72 -0
- package/data/cards/fileupload.md +88 -0
- package/data/cards/floatlabel.md +41 -0
- package/data/cards/fluid.md +49 -0
- package/data/cards/focustrap.md +64 -0
- package/data/cards/galleria.md +94 -0
- package/data/cards/iconfield.md +45 -0
- package/data/cards/iftalabel.md +38 -0
- package/data/cards/image.md +58 -0
- package/data/cards/imagecompare.md +45 -0
- package/data/cards/inplace.md +56 -0
- package/data/cards/inputgroup.md +77 -0
- package/data/cards/inputmask.md +71 -0
- package/data/cards/inputnumber.md +78 -0
- package/data/cards/inputotp.md +60 -0
- package/data/cards/inputtext.md +41 -0
- package/data/cards/keyfilter.md +49 -0
- package/data/cards/knob.md +55 -0
- package/data/cards/listbox.md +105 -0
- package/data/cards/megamenu.md +96 -0
- package/data/cards/menu.md +64 -0
- package/data/cards/menubar.md +102 -0
- package/data/cards/message.md +51 -0
- package/data/cards/metergroup.md +53 -0
- package/data/cards/multiselect.md +115 -0
- package/data/cards/orderlist.md +96 -0
- package/data/cards/organizationchart.md +84 -0
- package/data/cards/overlay.md +63 -0
- package/data/cards/paginator.md +62 -0
- package/data/cards/panel.md +57 -0
- package/data/cards/panelmenu.md +94 -0
- package/data/cards/password.md +81 -0
- package/data/cards/picklist.md +106 -0
- package/data/cards/popover.md +53 -0
- package/data/cards/progressbar.md +42 -0
- package/data/cards/progressspinner.md +38 -0
- package/data/cards/radiobutton.md +52 -0
- package/data/cards/rating.md +56 -0
- package/data/cards/ripple.md +37 -0
- package/data/cards/scroller.md +32 -0
- package/data/cards/scrollpanel.md +50 -0
- package/data/cards/scrolltop.md +48 -0
- package/data/cards/select.md +108 -0
- package/data/cards/selectbutton.md +64 -0
- package/data/cards/skeleton.md +54 -0
- package/data/cards/slider.md +52 -0
- package/data/cards/speeddial.md +102 -0
- package/data/cards/splitbutton.md +96 -0
- package/data/cards/splitter.md +52 -0
- package/data/cards/stepper.md +125 -0
- package/data/cards/styleclass.md +46 -0
- package/data/cards/table.md +305 -0
- package/data/cards/tabs.md +97 -0
- package/data/cards/tag.md +41 -0
- package/data/cards/terminal.md +76 -0
- package/data/cards/textarea.md +45 -0
- package/data/cards/tieredmenu.md +121 -0
- package/data/cards/timeline.md +58 -0
- package/data/cards/toast.md +58 -0
- package/data/cards/togglebutton.md +59 -0
- package/data/cards/toggleswitch.md +52 -0
- package/data/cards/toolbar.md +74 -0
- package/data/cards/tooltip.md +43 -0
- package/data/cards/tree.md +93 -0
- package/data/cards/treeselect.md +98 -0
- package/data/cards/treetable.md +231 -0
- package/data/components/accordion.md +31 -23
- package/data/components/animateonscroll.md +18 -15
- package/data/components/autocomplete.md +162 -93
- package/data/components/autofocus.md +9 -7
- package/data/components/avatar.md +56 -43
- package/data/components/badge.md +27 -18
- package/data/components/blockui.md +15 -8
- package/data/components/breadcrumb.md +20 -14
- package/data/components/button.md +121 -94
- package/data/components/card.md +12 -10
- package/data/components/carousel.md +75 -53
- package/data/components/cascadeselect.md +271 -238
- package/data/components/chart.md +88 -74
- package/data/components/checkbox.md +107 -97
- package/data/components/chip.md +20 -16
- package/data/components/classnames.md +22 -4
- package/data/components/colorpicker.md +54 -36
- package/data/components/confirmdialog.md +146 -43
- package/data/components/confirmpopup.md +95 -22
- package/data/components/contextmenu.md +110 -39
- package/data/components/dataview.md +176 -83
- package/data/components/datepicker.md +171 -141
- package/data/components/dialog.md +80 -68
- package/data/components/divider.md +17 -12
- package/data/components/dock.md +65 -29
- package/data/components/dragdrop.md +26 -12
- package/data/components/drawer.md +67 -48
- package/data/components/dynamicdialog.md +22 -13
- package/data/components/editor.md +42 -33
- package/data/components/fieldset.md +20 -17
- package/data/components/fileinput.md +92 -35
- package/data/components/fileupload.md +101 -61
- package/data/components/floatlabel.md +20 -11
- package/data/components/fluid.md +11 -9
- package/data/components/focustrap.md +11 -7
- package/data/components/galleria.md +231 -90
- package/data/components/iconfield.md +23 -15
- package/data/components/iftalabel.md +15 -9
- package/data/components/image.md +31 -26
- package/data/components/imagecompare.md +8 -6
- package/data/components/inplace.md +27 -22
- package/data/components/inputgroup.md +53 -29
- package/data/components/inputmask.md +107 -85
- package/data/components/inputnumber.md +128 -90
- package/data/components/inputotp.md +55 -42
- package/data/components/inputtext.md +72 -50
- package/data/components/keyfilter.md +6 -3
- package/data/components/knob.md +70 -58
- package/data/components/listbox.md +171 -141
- package/data/components/llms.md +4 -0
- package/data/components/megamenu.md +24 -23
- package/data/components/menu.md +37 -34
- package/data/components/menubar.md +27 -22
- package/data/components/message.md +44 -32
- package/data/components/metergroup.md +48 -17
- package/data/components/multiselect.md +232 -168
- package/data/components/orderlist.md +55 -48
- package/data/components/organizationchart.md +182 -13
- package/data/components/overlay.md +31 -26
- package/data/components/paginator.md +49 -34
- package/data/components/panel.md +23 -19
- package/data/components/panelmenu.md +51 -25
- package/data/components/password.md +104 -91
- package/data/components/picklist.md +93 -71
- package/data/components/popover.md +68 -46
- package/data/components/progressbar.md +28 -22
- package/data/components/progressspinner.md +13 -11
- package/data/components/radiobutton.md +69 -35
- package/data/components/rating.md +48 -40
- package/data/components/ripple.md +8 -6
- package/data/components/scroller.md +29 -29
- package/data/components/scrollpanel.md +9 -7
- package/data/components/scrolltop.md +20 -18
- package/data/components/select.md +248 -169
- package/data/components/selectbutton.md +118 -56
- package/data/components/skeleton.md +22 -18
- package/data/components/slider.md +73 -49
- package/data/components/speeddial.md +77 -59
- package/data/components/splitbutton.md +354 -329
- package/data/components/splitter.md +22 -18
- package/data/components/stepper.md +38 -21
- package/data/components/styleclass.md +12 -6
- package/data/components/table.md +524 -315
- package/data/components/tabs.md +44 -26
- package/data/components/tag.md +18 -14
- package/data/components/terminal.md +38 -27
- package/data/components/textarea.md +82 -47
- package/data/components/tieredmenu.md +34 -29
- package/data/components/timeline.md +29 -28
- package/data/components/toast.md +115 -57
- package/data/components/togglebutton.md +53 -39
- package/data/components/toggleswitch.md +41 -28
- package/data/components/toolbar.md +19 -18
- package/data/components/tooltip.md +43 -32
- package/data/components/tree.md +114 -81
- package/data/components/treeselect.md +176 -174
- package/data/components/treetable.md +1250 -1045
- package/data/components.json +4134 -4088
- package/data/llms-full.txt +8979 -6437
- package/data/llms.txt +100 -96
- package/data/manifest.json +183 -15
- package/data/pages/llms.md +29 -0
- package/data/pages/tailwind.md +20 -10
- package/data/snapshot.json +2 -2
- package/dist/index.d.mts +37 -2
- package/dist/index.mjs +1395 -1079
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -18,11 +18,11 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
|
|
|
18
18
|
@Component({
|
|
19
19
|
template: `
|
|
20
20
|
<div class="card flex justify-center">
|
|
21
|
-
<p-toggle-switch [(ngModel)]="checked" />
|
|
21
|
+
<p-toggle-switch [(ngModel)]="checked" ariaLabel="Notifications" />
|
|
22
22
|
</div>
|
|
23
23
|
`,
|
|
24
24
|
standalone: true,
|
|
25
|
-
imports: [
|
|
25
|
+
imports: [FormsModule, ToggleSwitchModule]
|
|
26
26
|
})
|
|
27
27
|
export class ToggleswitchBasicDemo {
|
|
28
28
|
checked: boolean = false;
|
|
@@ -41,11 +41,11 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
|
|
|
41
41
|
@Component({
|
|
42
42
|
template: `
|
|
43
43
|
<div class="card flex justify-center">
|
|
44
|
-
<p-toggle-switch [(ngModel)]="checked" [disabled]="true" />
|
|
44
|
+
<p-toggle-switch [(ngModel)]="checked" [disabled]="true" ariaLabel="Notifications" />
|
|
45
45
|
</div>
|
|
46
46
|
`,
|
|
47
47
|
standalone: true,
|
|
48
|
-
imports: [
|
|
48
|
+
imports: [FormsModule, ToggleSwitchModule]
|
|
49
49
|
})
|
|
50
50
|
export class ToggleswitchDisabledDemo {
|
|
51
51
|
checked: boolean = false;
|
|
@@ -64,11 +64,11 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
|
|
|
64
64
|
@Component({
|
|
65
65
|
template: `
|
|
66
66
|
<div class="card flex justify-center">
|
|
67
|
-
<p-toggle-switch [(ngModel)]="checked" [invalid]="!checked" />
|
|
67
|
+
<p-toggle-switch [(ngModel)]="checked" [invalid]="!checked" ariaLabel="Notifications" />
|
|
68
68
|
</div>
|
|
69
69
|
`,
|
|
70
70
|
standalone: true,
|
|
71
|
-
imports: [
|
|
71
|
+
imports: [FormsModule, ToggleSwitchModule]
|
|
72
72
|
})
|
|
73
73
|
export class ToggleswitchInvalidDemo {
|
|
74
74
|
checked: boolean = false;
|
|
@@ -87,11 +87,11 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
|
|
|
87
87
|
@Component({
|
|
88
88
|
template: `
|
|
89
89
|
<div class="card flex justify-center">
|
|
90
|
-
<p-toggle-switch [(ngModel)]="checked" />
|
|
90
|
+
<p-toggle-switch [(ngModel)]="checked" ariaLabel="Notifications" />
|
|
91
91
|
</div>
|
|
92
92
|
`,
|
|
93
93
|
standalone: true,
|
|
94
|
-
imports: [
|
|
94
|
+
imports: [FormsModule, ToggleSwitchModule]
|
|
95
95
|
})
|
|
96
96
|
export class ToggleswitchPreselectionDemo {
|
|
97
97
|
checked: boolean = true;
|
|
@@ -104,12 +104,13 @@ ToggleSwitch can also be used with reactive forms. In this case, the formControl
|
|
|
104
104
|
|
|
105
105
|
```typescript
|
|
106
106
|
import { Component, inject } from '@angular/core';
|
|
107
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
107
|
+
import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
108
|
+
import { CommonModule } from '@angular/common';
|
|
109
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
110
110
|
import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
|
|
111
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
112
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
111
113
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
112
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
113
114
|
|
|
114
115
|
@Component({
|
|
115
116
|
template: `
|
|
@@ -117,7 +118,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
117
118
|
<div class="card flex justify-center">
|
|
118
119
|
<form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4 w-48">
|
|
119
120
|
<div class="flex flex-col items-center gap-2">
|
|
120
|
-
<p-toggle-switch name="activation" formControlName="activation" [invalid]="isInvalid('activation')" />
|
|
121
|
+
<p-toggle-switch name="activation" formControlName="activation" [invalid]="isInvalid('activation')" ariaLabel="Notifications" />
|
|
121
122
|
@if (isInvalid('activation')) {
|
|
122
123
|
<p-message severity="error" size="small" variant="simple">Activation is required.</p-message>
|
|
123
124
|
}
|
|
@@ -127,17 +128,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
127
128
|
</div>
|
|
128
129
|
`,
|
|
129
130
|
standalone: true,
|
|
130
|
-
imports: [
|
|
131
|
+
imports: [CommonModule, ReactiveFormsModule, ToggleSwitchModule, ToastModule, MessageModule, ButtonModule],
|
|
132
|
+
providers: [MessageService]
|
|
131
133
|
})
|
|
132
134
|
export class ToggleswitchReactiveformsDemo {
|
|
135
|
+
private fb = inject(FormBuilder);
|
|
136
|
+
|
|
133
137
|
messageService = inject(MessageService);
|
|
138
|
+
|
|
134
139
|
exampleForm: FormGroup | undefined;
|
|
140
|
+
|
|
135
141
|
formSubmitted: boolean = false;
|
|
136
142
|
|
|
137
143
|
constructor() {
|
|
138
144
|
this.exampleForm = this.fb.group({
|
|
139
|
-
|
|
140
|
-
|
|
145
|
+
activation: ['', Validators.required]
|
|
146
|
+
});
|
|
141
147
|
}
|
|
142
148
|
|
|
143
149
|
onSubmit() {
|
|
@@ -163,11 +169,11 @@ ToggleSwitch can also be used with Angular Signal Forms , the @angular/forms/sig
|
|
|
163
169
|
```typescript
|
|
164
170
|
import { Component, inject, signal } from '@angular/core';
|
|
165
171
|
import { form, FormField, required, submit } from '@angular/forms/signals';
|
|
166
|
-
import {
|
|
167
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
172
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
168
173
|
import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
|
|
169
174
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
170
|
-
import {
|
|
175
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
176
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
171
177
|
|
|
172
178
|
@Component({
|
|
173
179
|
template: `
|
|
@@ -175,7 +181,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
175
181
|
<div class="card flex justify-center">
|
|
176
182
|
<form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4 w-48">
|
|
177
183
|
<div class="flex flex-col items-center gap-2">
|
|
178
|
-
<p-toggle-switch [formField]="exampleForm.activation" />
|
|
184
|
+
<p-toggle-switch [formField]="exampleForm.activation" ariaLabel="Notifications" />
|
|
179
185
|
@let activation = exampleForm.activation();
|
|
180
186
|
@if (activation.invalid() && activation.touched()) {
|
|
181
187
|
<p-message severity="error" size="small" variant="simple">Activation is required.</p-message>
|
|
@@ -186,11 +192,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
186
192
|
</div>
|
|
187
193
|
`,
|
|
188
194
|
standalone: true,
|
|
189
|
-
imports: [
|
|
195
|
+
imports: [FormField, ToggleSwitchModule, ButtonModule, ToastModule, MessageModule],
|
|
196
|
+
providers: [MessageService]
|
|
190
197
|
})
|
|
191
198
|
export class ToggleswitchSignalformsDemo {
|
|
192
199
|
messageService = inject(MessageService);
|
|
200
|
+
|
|
193
201
|
model = signal({ activation: false });
|
|
202
|
+
|
|
194
203
|
exampleForm = form(this.model, (f) => {
|
|
195
204
|
required(f.activation);
|
|
196
205
|
});
|
|
@@ -211,13 +220,14 @@ The handle template is available to display custom content.
|
|
|
211
220
|
|
|
212
221
|
```typescript
|
|
213
222
|
import { Component } from '@angular/core';
|
|
223
|
+
import { CommonModule } from '@angular/common';
|
|
214
224
|
import { FormsModule } from '@angular/forms';
|
|
215
225
|
import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
|
|
216
226
|
|
|
217
227
|
@Component({
|
|
218
228
|
template: `
|
|
219
229
|
<div class="card flex justify-center gap-4">
|
|
220
|
-
<p-toggle-switch [(ngModel)]="checked">
|
|
230
|
+
<p-toggle-switch [(ngModel)]="checked" ariaLabel="Notifications">
|
|
221
231
|
<ng-template #handle let-checked="checked">
|
|
222
232
|
<i [ngClass]="['text-xs!', 'pi', checked ? 'pi-check' : 'pi-times']"></i>
|
|
223
233
|
</ng-template>
|
|
@@ -225,7 +235,7 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
|
|
|
225
235
|
</div>
|
|
226
236
|
`,
|
|
227
237
|
standalone: true,
|
|
228
|
-
imports: [
|
|
238
|
+
imports: [CommonModule, FormsModule, ToggleSwitchModule]
|
|
229
239
|
})
|
|
230
240
|
export class ToggleswitchTemplateDemo {
|
|
231
241
|
checked: boolean = false;
|
|
@@ -236,12 +246,13 @@ export class ToggleswitchTemplateDemo {
|
|
|
236
246
|
|
|
237
247
|
```typescript
|
|
238
248
|
import { Component, inject } from '@angular/core';
|
|
249
|
+
import { CommonModule } from '@angular/common';
|
|
239
250
|
import { FormsModule } from '@angular/forms';
|
|
240
|
-
import {
|
|
241
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
251
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
242
252
|
import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
|
|
253
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
254
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
243
255
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
244
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
245
256
|
|
|
246
257
|
@Component({
|
|
247
258
|
template: `
|
|
@@ -249,7 +260,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
249
260
|
<div class="card flex justify-center">
|
|
250
261
|
<form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex flex-col gap-4 w-48">
|
|
251
262
|
<div class="flex flex-col items-center gap-2">
|
|
252
|
-
<p-toggle-switch #model="ngModel" [(ngModel)]="checked" name="activation" [invalid]="model.invalid && exampleForm.submitted" required />
|
|
263
|
+
<p-toggle-switch #model="ngModel" [(ngModel)]="checked" name="activation" [invalid]="model.invalid && exampleForm.submitted" required ariaLabel="Notifications" />
|
|
253
264
|
@if (model.invalid && exampleForm.submitted) {
|
|
254
265
|
<p-message severity="error" size="small" variant="simple">Activation is required.</p-message>
|
|
255
266
|
}
|
|
@@ -259,10 +270,12 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
259
270
|
</div>
|
|
260
271
|
`,
|
|
261
272
|
standalone: true,
|
|
262
|
-
imports: [
|
|
273
|
+
imports: [CommonModule, FormsModule, ToggleSwitchModule, ToastModule, MessageModule, ButtonModule],
|
|
274
|
+
providers: [MessageService]
|
|
263
275
|
})
|
|
264
276
|
export class ToggleswitchTemplatedrivenformsDemo {
|
|
265
277
|
messageService = inject(MessageService);
|
|
278
|
+
|
|
266
279
|
checked: boolean;
|
|
267
280
|
|
|
268
281
|
onSubmit(form: any) {
|
|
@@ -12,22 +12,22 @@ Toolbar is a grouping component for buttons and other content. Its content can b
|
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component, OnInit } from '@angular/core';
|
|
15
|
+
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
16
|
+
import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
|
|
15
17
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
16
|
-
import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
|
|
17
|
-
import { InputIconModule } from '@exhaustive-ui/core/inputicon';
|
|
18
18
|
import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
|
|
19
|
-
import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
|
|
20
19
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
21
|
-
import {
|
|
20
|
+
import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
|
|
21
|
+
import { InputIconModule } from '@exhaustive-ui/core/inputicon';
|
|
22
22
|
|
|
23
23
|
@Component({
|
|
24
24
|
template: `
|
|
25
25
|
<div class="card">
|
|
26
26
|
<p-toolbar>
|
|
27
27
|
<ng-template #start>
|
|
28
|
-
<p-button icon="pi pi-plus" class="mr-2" text severity="secondary" />
|
|
29
|
-
<p-button icon="pi pi-print" class="mr-2" text severity="secondary" />
|
|
30
|
-
<p-button icon="pi pi-upload" text severity="secondary" />
|
|
28
|
+
<p-button icon="pi pi-plus" ariaLabel="New" class="mr-2" text severity="secondary" />
|
|
29
|
+
<p-button icon="pi pi-print" ariaLabel="Print" class="mr-2" text severity="secondary" />
|
|
30
|
+
<p-button icon="pi pi-upload" ariaLabel="Upload" text severity="secondary" />
|
|
31
31
|
</ng-template>
|
|
32
32
|
<ng-template #center>
|
|
33
33
|
<p-icon-field iconPosition="left">
|
|
@@ -42,7 +42,7 @@ import { MenuItem } from '@exhaustive-ui/core/api';
|
|
|
42
42
|
</div>
|
|
43
43
|
`,
|
|
44
44
|
standalone: true,
|
|
45
|
-
imports: [
|
|
45
|
+
imports: [ToolbarModule, ButtonModule, SplitButtonModule, InputTextModule, IconFieldModule, InputIconModule]
|
|
46
46
|
})
|
|
47
47
|
export class ToolbarBasicDemo implements OnInit {
|
|
48
48
|
items: MenuItem[] | undefined;
|
|
@@ -68,9 +68,9 @@ Content can also be placed using the start , center and end templates.
|
|
|
68
68
|
|
|
69
69
|
```typescript
|
|
70
70
|
import { Component } from '@angular/core';
|
|
71
|
-
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
72
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
73
71
|
import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
|
|
72
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
73
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
74
74
|
|
|
75
75
|
@Component({
|
|
76
76
|
template: `
|
|
@@ -115,16 +115,17 @@ import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
|
|
|
115
115
|
<ng-template #end>
|
|
116
116
|
<div class="flex items-center gap-2">
|
|
117
117
|
<p-button label="Share" severity="contrast" size="small" />
|
|
118
|
-
<p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" [style]="{ width: '32px', height: '32px' }" />
|
|
118
|
+
<p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" ariaLabel="Amy Elsner" [style]="{ width: '32px', height: '32px' }" />
|
|
119
119
|
</div>
|
|
120
120
|
</ng-template>
|
|
121
121
|
</p-toolbar>
|
|
122
122
|
</div>
|
|
123
123
|
`,
|
|
124
124
|
standalone: true,
|
|
125
|
-
imports: [
|
|
125
|
+
imports: [ToolbarModule, ButtonModule, AvatarModule]
|
|
126
126
|
})
|
|
127
|
-
export class ToolbarCustomDemo {
|
|
127
|
+
export class ToolbarCustomDemo {
|
|
128
|
+
}
|
|
128
129
|
```
|
|
129
130
|
|
|
130
131
|
## Toolbar
|
|
@@ -135,11 +136,11 @@ Toolbar is a grouping component for buttons and other content.
|
|
|
135
136
|
|
|
136
137
|
| Name | Type | Default | Description |
|
|
137
138
|
|------|------|---------|-------------|
|
|
138
|
-
| dt |
|
|
139
|
-
| unstyled |
|
|
140
|
-
| pt |
|
|
141
|
-
| ptOptions |
|
|
142
|
-
| ariaLabelledBy |
|
|
139
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
140
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
141
|
+
| pt | ToolbarPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
142
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
143
|
+
| ariaLabelledBy | string | - | Defines a string value that labels an interactive element. |
|
|
143
144
|
|
|
144
145
|
### Templates
|
|
145
146
|
|
|
@@ -25,7 +25,8 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
|
|
|
25
25
|
standalone: true,
|
|
26
26
|
imports: [InputTextModule, TooltipModule]
|
|
27
27
|
})
|
|
28
|
-
export class TooltipAutohideDemo {
|
|
28
|
+
export class TooltipAutohideDemo {
|
|
29
|
+
}
|
|
29
30
|
```
|
|
30
31
|
|
|
31
32
|
## Custom
|
|
@@ -34,6 +35,7 @@ Tooltip can use either a string or a TemplateRef .
|
|
|
34
35
|
|
|
35
36
|
```typescript
|
|
36
37
|
import { Component } from '@angular/core';
|
|
38
|
+
import { CommonModule } from '@angular/common';
|
|
37
39
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
38
40
|
import { TooltipModule } from '@exhaustive-ui/core/tooltip';
|
|
39
41
|
|
|
@@ -50,9 +52,10 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
|
|
|
50
52
|
</div>
|
|
51
53
|
`,
|
|
52
54
|
standalone: true,
|
|
53
|
-
imports: [ButtonModule, TooltipModule]
|
|
55
|
+
imports: [CommonModule, ButtonModule, TooltipModule]
|
|
54
56
|
})
|
|
55
|
-
export class TooltipCustomDemo {
|
|
57
|
+
export class TooltipCustomDemo {
|
|
58
|
+
}
|
|
56
59
|
```
|
|
57
60
|
|
|
58
61
|
## Delay
|
|
@@ -73,7 +76,8 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
|
|
|
73
76
|
standalone: true,
|
|
74
77
|
imports: [ButtonModule, TooltipModule]
|
|
75
78
|
})
|
|
76
|
-
export class TooltipDelayDemo {
|
|
79
|
+
export class TooltipDelayDemo {
|
|
80
|
+
}
|
|
77
81
|
```
|
|
78
82
|
|
|
79
83
|
## Event
|
|
@@ -94,7 +98,8 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
|
|
|
94
98
|
standalone: true,
|
|
95
99
|
imports: [InputTextModule, TooltipModule]
|
|
96
100
|
})
|
|
97
|
-
export class TooltipEventDemo {
|
|
101
|
+
export class TooltipEventDemo {
|
|
102
|
+
}
|
|
98
103
|
```
|
|
99
104
|
|
|
100
105
|
## Tooltip Options
|
|
@@ -116,7 +121,12 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
|
|
|
116
121
|
imports: [InputTextModule, TooltipModule]
|
|
117
122
|
})
|
|
118
123
|
export class TooltipOptionsDemo {
|
|
119
|
-
tooltipOptions
|
|
124
|
+
tooltipOptions = {
|
|
125
|
+
showDelay: 150,
|
|
126
|
+
autoHide: false,
|
|
127
|
+
tooltipEvent: 'hover',
|
|
128
|
+
tooltipPosition: 'left'
|
|
129
|
+
};
|
|
120
130
|
}
|
|
121
131
|
```
|
|
122
132
|
|
|
@@ -141,7 +151,8 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
|
|
|
141
151
|
standalone: true,
|
|
142
152
|
imports: [InputTextModule, TooltipModule]
|
|
143
153
|
})
|
|
144
|
-
export class TooltipPositionDemo {
|
|
154
|
+
export class TooltipPositionDemo {
|
|
155
|
+
}
|
|
145
156
|
```
|
|
146
157
|
|
|
147
158
|
## Tooltip
|
|
@@ -152,31 +163,31 @@ Tooltip directive provides advisory information for a component.
|
|
|
152
163
|
|
|
153
164
|
| Name | Type | Default | Description |
|
|
154
165
|
|------|------|---------|-------------|
|
|
155
|
-
| dt |
|
|
156
|
-
| unstyled |
|
|
157
|
-
| pt |
|
|
158
|
-
| ptOptions |
|
|
159
|
-
| tooltipPosition |
|
|
160
|
-
| tooltipEvent |
|
|
161
|
-
| positionStyle |
|
|
162
|
-
| tooltipStyleClass |
|
|
163
|
-
| tooltipZIndex |
|
|
164
|
-
| escape |
|
|
165
|
-
| showDelay |
|
|
166
|
-
| hideDelay |
|
|
167
|
-
| life |
|
|
168
|
-
| positionTop |
|
|
169
|
-
| positionLeft |
|
|
170
|
-
| autoHide |
|
|
171
|
-
| fitContent |
|
|
172
|
-
| hideOnEscape |
|
|
173
|
-
| showOnEllipsis |
|
|
174
|
-
| content |
|
|
175
|
-
| disabled |
|
|
176
|
-
| tooltipOptions |
|
|
177
|
-
| appendTo |
|
|
178
|
-
| pTooltipPT |
|
|
179
|
-
| pTooltipUnstyled |
|
|
166
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
167
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
168
|
+
| pt | TooltipPassThroughOptions<unknown> | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
169
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
170
|
+
| tooltipPosition | string | - | Position of the tooltip. |
|
|
171
|
+
| tooltipEvent | "focus" \| "hover" \| "both" | 'hover' | Event to show the tooltip. |
|
|
172
|
+
| positionStyle | string | - | Type of CSS position. |
|
|
173
|
+
| tooltipStyleClass | string | - | Style class of the tooltip. |
|
|
174
|
+
| tooltipZIndex | string | - | Whether the z-index should be managed automatically to always go on top or have a fixed value. |
|
|
175
|
+
| escape | boolean | true | By default the tooltip contents are rendered as text. Set to false to support html tags in the content. |
|
|
176
|
+
| showDelay | number | - | Delay to show the tooltip in milliseconds. |
|
|
177
|
+
| hideDelay | number | - | Delay to hide the tooltip in milliseconds. |
|
|
178
|
+
| life | number | - | Time to wait in milliseconds to hide the tooltip even it is active. |
|
|
179
|
+
| positionTop | number | - | Specifies the additional vertical offset of the tooltip from its default position. |
|
|
180
|
+
| positionLeft | number | - | Specifies the additional horizontal offset of the tooltip from its default position. |
|
|
181
|
+
| autoHide | boolean | true | Whether to hide tooltip when hovering over tooltip content. |
|
|
182
|
+
| fitContent | boolean | true | Automatically adjusts the element position when there is not enough space on the selected position. |
|
|
183
|
+
| hideOnEscape | boolean | true | Whether to hide tooltip on escape key press. |
|
|
184
|
+
| showOnEllipsis | boolean | false | Whether to show the tooltip only when the target text overflows (e.g., ellipsis is active). |
|
|
185
|
+
| content | string \| TemplateRef<HTMLElement> | - | Content of the tooltip. |
|
|
186
|
+
| disabled | boolean | false | When present, it specifies that the component should be disabled. |
|
|
187
|
+
| tooltipOptions | TooltipOptions | - | Specifies the tooltip configuration options for the component. |
|
|
188
|
+
| appendTo | any | 'self' | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
|
|
189
|
+
| pTooltipPT | TooltipPassThrough | undefined | Used to pass attributes to DOM elements inside the Tooltip component. |
|
|
190
|
+
| pTooltipUnstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
180
191
|
|
|
181
192
|
## Pass Through Options
|
|
182
193
|
|