@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
|
@@ -7,7 +7,9 @@ pDraggable and pDroppable directives apply drag-drop behaviors to any element.
|
|
|
7
7
|
pDraggable and pDroppable are attached to a target element to add drag-drop behavior. The value of a Directive attribute is required and it defines the scope to match draggables with droppables. Droppable scope can also be an array to accept multiple droppables.
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
+
import { CommonModule } from '@angular/common';
|
|
10
11
|
import { Component, OnInit } from '@angular/core';
|
|
12
|
+
import { DragDropModule } from '@exhaustive-ui/core/dragdrop';
|
|
11
13
|
import { Product } from '@/domain/product';
|
|
12
14
|
|
|
13
15
|
@Component({
|
|
@@ -31,11 +33,13 @@ import { Product } from '@/domain/product';
|
|
|
31
33
|
</div>
|
|
32
34
|
`,
|
|
33
35
|
standalone: true,
|
|
34
|
-
imports: []
|
|
36
|
+
imports: [CommonModule, DragDropModule]
|
|
35
37
|
})
|
|
36
38
|
export class DragdropBasicDemo implements OnInit {
|
|
37
39
|
availableProducts: Product[] | undefined;
|
|
40
|
+
|
|
38
41
|
selectedProducts: Product[] | undefined;
|
|
42
|
+
|
|
39
43
|
draggedProduct: Product | undefined | null;
|
|
40
44
|
|
|
41
45
|
ngOnInit() {
|
|
@@ -81,11 +85,13 @@ export class DragdropBasicDemo implements OnInit {
|
|
|
81
85
|
Drag and Drop to Table
|
|
82
86
|
|
|
83
87
|
```typescript
|
|
88
|
+
import { CommonModule } from '@angular/common';
|
|
84
89
|
import { Component, OnInit, inject } from '@angular/core';
|
|
85
|
-
import {
|
|
90
|
+
import { DragDropModule } from '@exhaustive-ui/core/dragdrop';
|
|
91
|
+
import { TableModule } from '@exhaustive-ui/core/table';
|
|
86
92
|
import { TagModule } from '@exhaustive-ui/core/tag';
|
|
87
|
-
import { ProductService } from '@/service/productservice';
|
|
88
93
|
import { Product } from '@/domain/product';
|
|
94
|
+
import { ProductService } from '@/service/productservice';
|
|
89
95
|
|
|
90
96
|
@Component({
|
|
91
97
|
template: `
|
|
@@ -110,7 +116,7 @@ import { Product } from '@/domain/product';
|
|
|
110
116
|
</div>
|
|
111
117
|
<div class="col-span-12 md:col-span-6 drop-column" pDroppable="products" (onDrop)="drop()">
|
|
112
118
|
<p-table [value]="selectedProducts">
|
|
113
|
-
<ng-template
|
|
119
|
+
<ng-template #header>
|
|
114
120
|
<tr>
|
|
115
121
|
<th>ID</th>
|
|
116
122
|
<th>Category</th>
|
|
@@ -118,7 +124,7 @@ import { Product } from '@/domain/product';
|
|
|
118
124
|
<th>Price</th>
|
|
119
125
|
</tr>
|
|
120
126
|
</ng-template>
|
|
121
|
-
<ng-template
|
|
127
|
+
<ng-template #body let-product>
|
|
122
128
|
<tr>
|
|
123
129
|
<td>{{ product.id }}</td>
|
|
124
130
|
<td>{{ product.category }}</td>
|
|
@@ -131,13 +137,16 @@ import { Product } from '@/domain/product';
|
|
|
131
137
|
</div>
|
|
132
138
|
`,
|
|
133
139
|
standalone: true,
|
|
134
|
-
imports: [TableModule, TagModule],
|
|
140
|
+
imports: [CommonModule, DragDropModule, TableModule, TagModule],
|
|
135
141
|
providers: [ProductService]
|
|
136
142
|
})
|
|
137
143
|
export class DragdropDatatableDemo implements OnInit {
|
|
138
144
|
private productService = inject(ProductService);
|
|
145
|
+
|
|
139
146
|
availableProducts: Product[] | undefined;
|
|
147
|
+
|
|
140
148
|
selectedProducts: Product[] | undefined;
|
|
149
|
+
|
|
141
150
|
draggedProduct: Product | undefined | null;
|
|
142
151
|
|
|
143
152
|
ngOnInit() {
|
|
@@ -192,8 +201,8 @@ dragHandle is used to restrict dragging unless mousedown occurs on the specified
|
|
|
192
201
|
|
|
193
202
|
```typescript
|
|
194
203
|
import { Component } from '@angular/core';
|
|
204
|
+
import { DragDropModule } from '@exhaustive-ui/core/dragdrop';
|
|
195
205
|
import { PanelModule } from '@exhaustive-ui/core/panel';
|
|
196
|
-
import { Product } from '@/domain/product';
|
|
197
206
|
|
|
198
207
|
@Component({
|
|
199
208
|
template: `
|
|
@@ -204,9 +213,10 @@ import { Product } from '@/domain/product';
|
|
|
204
213
|
</div>
|
|
205
214
|
`,
|
|
206
215
|
standalone: true,
|
|
207
|
-
imports: [PanelModule]
|
|
216
|
+
imports: [DragDropModule, PanelModule]
|
|
208
217
|
})
|
|
209
|
-
export class DragdropDraghandleDemo {
|
|
218
|
+
export class DragdropDraghandleDemo {
|
|
219
|
+
}
|
|
210
220
|
```
|
|
211
221
|
|
|
212
222
|
## Drop Indicator
|
|
@@ -214,7 +224,9 @@ export class DragdropDraghandleDemo {}
|
|
|
214
224
|
When a suitable draggable enters a droppable area, the area gets p-draggable-enter class that can be used to style the droppable section.
|
|
215
225
|
|
|
216
226
|
```typescript
|
|
217
|
-
import {
|
|
227
|
+
import { CommonModule } from '@angular/common';
|
|
228
|
+
import { Component } from '@angular/core';
|
|
229
|
+
import { DragDropModule } from '@exhaustive-ui/core/dragdrop';
|
|
218
230
|
import { Product } from '@/domain/product';
|
|
219
231
|
|
|
220
232
|
@Component({
|
|
@@ -238,11 +250,13 @@ import { Product } from '@/domain/product';
|
|
|
238
250
|
</div>
|
|
239
251
|
`,
|
|
240
252
|
standalone: true,
|
|
241
|
-
imports: []
|
|
253
|
+
imports: [CommonModule, DragDropModule]
|
|
242
254
|
})
|
|
243
|
-
export class DragdropDropindicatorDemo
|
|
255
|
+
export class DragdropDropindicatorDemo {
|
|
244
256
|
availableProducts: Product[] | undefined;
|
|
257
|
+
|
|
245
258
|
selectedProducts: Product[] | undefined;
|
|
259
|
+
|
|
246
260
|
draggedProduct: Product | undefined | null;
|
|
247
261
|
|
|
248
262
|
ngOnInit() {
|
|
@@ -12,8 +12,8 @@ Drawer is used as a container and visibility is controlled with a binding to vis
|
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component } from '@angular/core';
|
|
15
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
16
15
|
import { DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
16
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
17
17
|
|
|
18
18
|
@Component({
|
|
19
19
|
template: `
|
|
@@ -24,11 +24,11 @@ import { DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
|
24
24
|
consequat.
|
|
25
25
|
</p>
|
|
26
26
|
</p-drawer>
|
|
27
|
-
<p-button (click)="visible = true" icon="pi pi-arrow-right" />
|
|
27
|
+
<p-button (click)="visible = true" icon="pi pi-arrow-right" ariaLabel="Open drawer" />
|
|
28
28
|
</div>
|
|
29
29
|
`,
|
|
30
30
|
standalone: true,
|
|
31
|
-
imports: [
|
|
31
|
+
imports: [DrawerModule, ButtonModule]
|
|
32
32
|
})
|
|
33
33
|
export class DrawerBasicDemo {
|
|
34
34
|
visible: boolean = false;
|
|
@@ -41,6 +41,7 @@ Drawer can cover the whole page when fullScreen property is enabled.
|
|
|
41
41
|
|
|
42
42
|
```typescript
|
|
43
43
|
import { Component } from '@angular/core';
|
|
44
|
+
import { FormsModule } from '@angular/forms';
|
|
44
45
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
45
46
|
import { DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
46
47
|
|
|
@@ -53,11 +54,11 @@ import { DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
|
53
54
|
consequat.
|
|
54
55
|
</p>
|
|
55
56
|
</p-drawer>
|
|
56
|
-
<p-button (click)="visible = true" icon="pi pi-window-maximize" />
|
|
57
|
+
<p-button (click)="visible = true" icon="pi pi-window-maximize" ariaLabel="Open full screen drawer" />
|
|
57
58
|
</div>
|
|
58
59
|
`,
|
|
59
60
|
standalone: true,
|
|
60
|
-
imports: [ButtonModule,
|
|
61
|
+
imports: [DrawerModule, ButtonModule, FormsModule]
|
|
61
62
|
})
|
|
62
63
|
export class DrawerFullscreenDemo {
|
|
63
64
|
visible: boolean = false;
|
|
@@ -69,11 +70,14 @@ export class DrawerFullscreenDemo {
|
|
|
69
70
|
Headless mode allows you to customize the entire user interface instead of the default elements.
|
|
70
71
|
|
|
71
72
|
```typescript
|
|
72
|
-
import { Component } from '@angular/core';
|
|
73
|
-
import {
|
|
73
|
+
import { Component, ViewChild } from '@angular/core';
|
|
74
|
+
import { FormsModule } from '@angular/forms';
|
|
75
|
+
import { Drawer } from '@exhaustive-ui/core/drawer';
|
|
76
|
+
import { DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
74
77
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
75
|
-
import {
|
|
78
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
76
79
|
import { RippleModule } from '@exhaustive-ui/core/ripple';
|
|
80
|
+
import { StyleClassModule } from '@exhaustive-ui/core/styleclass';
|
|
77
81
|
|
|
78
82
|
@Component({
|
|
79
83
|
template: `
|
|
@@ -115,7 +119,7 @@ import { RippleModule } from '@exhaustive-ui/core/ripple';
|
|
|
115
119
|
<span class="font-semibold text-2xl text-primary">Your Logo</span>
|
|
116
120
|
</span>
|
|
117
121
|
<span>
|
|
118
|
-
<p-button type="button" (click)="closeCallback($event)" icon="pi pi-times" rounded="true" outlined="true" styleClass="h-8 w-8"></p-button>
|
|
122
|
+
<p-button type="button" (click)="closeCallback($event)" icon="pi pi-times" ariaLabel="Close" rounded="true" outlined="true" styleClass="h-8 w-8"></p-button>
|
|
119
123
|
</span>
|
|
120
124
|
</div>
|
|
121
125
|
<div class="overflow-y-auto">
|
|
@@ -279,18 +283,20 @@ import { RippleModule } from '@exhaustive-ui/core/ripple';
|
|
|
279
283
|
</div>
|
|
280
284
|
</ng-template>
|
|
281
285
|
</p-drawer>
|
|
282
|
-
<p-button (click)="visible = true" icon="pi pi-bars" />
|
|
286
|
+
<p-button (click)="visible = true" icon="pi pi-bars" ariaLabel="Open menu" />
|
|
283
287
|
</div>
|
|
284
288
|
`,
|
|
285
289
|
standalone: true,
|
|
286
|
-
imports: [
|
|
290
|
+
imports: [DrawerModule, ButtonModule, FormsModule, AvatarModule, RippleModule, StyleClassModule]
|
|
287
291
|
})
|
|
288
292
|
export class DrawerHeadlessDemo {
|
|
289
|
-
|
|
293
|
+
@ViewChild('drawerRef') drawerRef!: Drawer;
|
|
290
294
|
|
|
291
295
|
closeCallback(e): void {
|
|
292
296
|
this.drawerRef.close(e);
|
|
293
297
|
}
|
|
298
|
+
|
|
299
|
+
visible: boolean = false;
|
|
294
300
|
}
|
|
295
301
|
```
|
|
296
302
|
|
|
@@ -300,8 +306,9 @@ Drawer location is configured with the position property that can take left , ri
|
|
|
300
306
|
|
|
301
307
|
```typescript
|
|
302
308
|
import { Component } from '@angular/core';
|
|
309
|
+
import { FormsModule } from '@angular/forms';
|
|
310
|
+
import { DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
303
311
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
304
|
-
import { Drawer, DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
305
312
|
|
|
306
313
|
@Component({
|
|
307
314
|
template: `
|
|
@@ -331,20 +338,23 @@ import { Drawer, DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
|
331
338
|
</p>
|
|
332
339
|
</p-drawer>
|
|
333
340
|
<div class="flex gap-2 justify-center">
|
|
334
|
-
<p-button type="button" (click)="visible1 = true" icon="pi pi-arrow-right" />
|
|
335
|
-
<p-button type="button" (click)="visible2 = true" icon="pi pi-arrow-left" />
|
|
336
|
-
<p-button type="button" (click)="visible3 = true" icon="pi pi-arrow-down" />
|
|
337
|
-
<p-button type="button" (click)="visible4 = true" icon="pi pi-arrow-up" />
|
|
341
|
+
<p-button type="button" (click)="visible1 = true" icon="pi pi-arrow-right" ariaLabel="Open left drawer" />
|
|
342
|
+
<p-button type="button" (click)="visible2 = true" icon="pi pi-arrow-left" ariaLabel="Open right drawer" />
|
|
343
|
+
<p-button type="button" (click)="visible3 = true" icon="pi pi-arrow-down" ariaLabel="Open top drawer" />
|
|
344
|
+
<p-button type="button" (click)="visible4 = true" icon="pi pi-arrow-up" ariaLabel="Open bottom drawer" />
|
|
338
345
|
</div>
|
|
339
346
|
</div>
|
|
340
347
|
`,
|
|
341
348
|
standalone: true,
|
|
342
|
-
imports: [ButtonModule,
|
|
349
|
+
imports: [DrawerModule, ButtonModule, FormsModule]
|
|
343
350
|
})
|
|
344
351
|
export class DrawerPositionDemo {
|
|
345
352
|
visible1: boolean = false;
|
|
353
|
+
|
|
346
354
|
visible2: boolean = false;
|
|
355
|
+
|
|
347
356
|
visible3: boolean = false;
|
|
357
|
+
|
|
348
358
|
visible4: boolean = false;
|
|
349
359
|
}
|
|
350
360
|
```
|
|
@@ -355,8 +365,9 @@ Drawer dimension can be defined with style or class properties, this responsive
|
|
|
355
365
|
|
|
356
366
|
```typescript
|
|
357
367
|
import { Component } from '@angular/core';
|
|
358
|
-
import {
|
|
368
|
+
import { FormsModule } from '@angular/forms';
|
|
359
369
|
import { DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
370
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
360
371
|
|
|
361
372
|
@Component({
|
|
362
373
|
template: `
|
|
@@ -367,11 +378,11 @@ import { DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
|
367
378
|
consequat.
|
|
368
379
|
</p>
|
|
369
380
|
</p-drawer>
|
|
370
|
-
<p-button (click)="visible = true" icon="pi pi-arrow-right" />
|
|
381
|
+
<p-button (click)="visible = true" icon="pi pi-arrow-right" ariaLabel="Open drawer" />
|
|
371
382
|
</div>
|
|
372
383
|
`,
|
|
373
384
|
standalone: true,
|
|
374
|
-
imports: [ButtonModule,
|
|
385
|
+
imports: [DrawerModule, ButtonModule, FormsModule]
|
|
375
386
|
})
|
|
376
387
|
export class DrawerSizeDemo {
|
|
377
388
|
visible: boolean = false;
|
|
@@ -384,9 +395,9 @@ Drawer is customizable by header , content , footer templates.
|
|
|
384
395
|
|
|
385
396
|
```typescript
|
|
386
397
|
import { Component } from '@angular/core';
|
|
387
|
-
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
388
398
|
import { DrawerModule } from '@exhaustive-ui/core/drawer';
|
|
389
399
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
400
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
390
401
|
|
|
391
402
|
@Component({
|
|
392
403
|
template: `
|
|
@@ -404,16 +415,24 @@ import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
|
404
415
|
</p>
|
|
405
416
|
<ng-template #footer>
|
|
406
417
|
<div class="flex items-center gap-2">
|
|
407
|
-
<button pButton
|
|
408
|
-
|
|
418
|
+
<button pButton class="w-full" outlined>
|
|
419
|
+
<i class="pi pi-user" pButtonIcon></i>
|
|
420
|
+
<span pButtonLabel>Account</span>
|
|
421
|
+
</button>
|
|
422
|
+
<button pButton class="w-full" severity="danger" text>
|
|
423
|
+
<i class="pi pi-sign-out" pButtonIcon></i>
|
|
424
|
+
<span pButtonLabel>Logout</span>
|
|
425
|
+
</button>
|
|
409
426
|
</div>
|
|
410
427
|
</ng-template>
|
|
411
428
|
</p-drawer>
|
|
412
|
-
<button pButton (click)="visible = true"
|
|
429
|
+
<button pButton (click)="visible = true" aria-label="Open drawer">
|
|
430
|
+
<i class="pi pi-plus" pButtonIcon></i>
|
|
431
|
+
</button>
|
|
413
432
|
</div>
|
|
414
433
|
`,
|
|
415
434
|
standalone: true,
|
|
416
|
-
imports: [
|
|
435
|
+
imports: [DrawerModule, ButtonModule, AvatarModule]
|
|
417
436
|
})
|
|
418
437
|
export class DrawerTemplateDemo {
|
|
419
438
|
visible: boolean = false;
|
|
@@ -428,28 +447,28 @@ Sidebar is a panel component displayed as an overlay at the edges of the screen.
|
|
|
428
447
|
|
|
429
448
|
| Name | Type | Default | Description |
|
|
430
449
|
|------|------|---------|-------------|
|
|
431
|
-
| dt |
|
|
432
|
-
| unstyled |
|
|
433
|
-
| pt |
|
|
434
|
-
| ptOptions |
|
|
435
|
-
| appendTo |
|
|
436
|
-
| motionOptions |
|
|
437
|
-
| blockScroll |
|
|
438
|
-
| style |
|
|
439
|
-
| styleClass |
|
|
440
|
-
| closeAriaLabel |
|
|
441
|
-
| autoZIndex |
|
|
442
|
-
| baseZIndex |
|
|
443
|
-
| modal |
|
|
444
|
-
| closeButtonProps |
|
|
445
|
-
| dismissible |
|
|
446
|
-
| closeOnEscape |
|
|
447
|
-
| visible |
|
|
448
|
-
| position |
|
|
449
|
-
| fullScreen |
|
|
450
|
-
| header |
|
|
451
|
-
| maskStyle |
|
|
452
|
-
| closable |
|
|
450
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
451
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
452
|
+
| pt | DrawerPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
453
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
454
|
+
| 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). |
|
|
455
|
+
| motionOptions | MotionOptions | - | The motion options. |
|
|
456
|
+
| blockScroll | boolean | false | Whether to block scrolling of the document when drawer is active. |
|
|
457
|
+
| style | { [klass: string]: any } | - | Inline style of the component. |
|
|
458
|
+
| styleClass | string | - | Style class of the component. |
|
|
459
|
+
| closeAriaLabel | string | - | Aria label of the close icon. |
|
|
460
|
+
| autoZIndex | boolean | true | Whether to automatically manage layering. |
|
|
461
|
+
| baseZIndex | number | 0 | Base zIndex value to use in layering. |
|
|
462
|
+
| modal | boolean | true | Whether an overlay mask is displayed behind the drawer. |
|
|
463
|
+
| closeButtonProps | ButtonProps | { severity: 'secondary', text: true, rounded: true } | Used to pass all properties of the ButtonProps to the Button component. |
|
|
464
|
+
| dismissible | boolean | true | Whether to dismiss drawer on click of the mask. |
|
|
465
|
+
| closeOnEscape | boolean | true | Specifies if pressing escape key should hide the drawer. |
|
|
466
|
+
| visible | boolean | false | The visible property is an input that determines the visibility of the component. Emits `visibleChange` with the new value when the visibility of the component changes. |
|
|
467
|
+
| position | "top" \| "bottom" \| "left" \| "right" \| "full" | 'left' | Specifies the position of the drawer, valid values are "left", "right", "bottom" and "top". |
|
|
468
|
+
| fullScreen | boolean | false | Adds a close icon to the header to hide the dialog. |
|
|
469
|
+
| header | string | - | Title content of the dialog. |
|
|
470
|
+
| maskStyle | { [klass: string]: any } | - | Style of the mask. |
|
|
471
|
+
| closable | boolean | true | Whether to display close button. |
|
|
453
472
|
|
|
454
473
|
### Emits
|
|
455
474
|
|
|
@@ -15,12 +15,13 @@ DynamicDialog uses the Dialog component internally, visit dialog for more inform
|
|
|
15
15
|
Dynamic dialogs require an instance of a DialogService that is responsible for displaying a dialog with a component as its content. Calling open method of DialogService will display dynamic dialog. First parameter of open method is the type of component to load and the second parameter is the configuration of the Dialog such as header , width and more.
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import { Component, inject } from '@angular/core';
|
|
18
|
+
import { Component, OnDestroy, inject } from '@angular/core';
|
|
19
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
19
20
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
21
|
+
import { DialogService, DynamicDialogRef } from '@exhaustive-ui/core/dynamicdialog';
|
|
20
22
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { Dialog } from '@exhaustive-ui/core/dialog';
|
|
23
|
+
import { Footer } from './demo/footer';
|
|
24
|
+
import { ProductListDemo } from './demo/productlistdemo';
|
|
24
25
|
|
|
25
26
|
@Component({
|
|
26
27
|
template: `
|
|
@@ -30,12 +31,20 @@ import { Dialog } from '@exhaustive-ui/core/dialog';
|
|
|
30
31
|
</div>
|
|
31
32
|
`,
|
|
32
33
|
standalone: true,
|
|
33
|
-
imports: [
|
|
34
|
+
imports: [ToastModule, ButtonModule],
|
|
34
35
|
providers: [DialogService, MessageService]
|
|
35
36
|
})
|
|
36
|
-
export class DynamicdialogExampleDemo {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
export class DynamicdialogExampleDemo implements OnDestroy {
|
|
38
|
+
public dialogService = inject(DialogService);
|
|
39
|
+
public messageService = inject(MessageService);
|
|
40
|
+
|
|
41
|
+
ref: DynamicDialogRef | undefined;
|
|
42
|
+
|
|
43
|
+
ngOnDestroy() {
|
|
44
|
+
if (this.ref) {
|
|
45
|
+
this.ref.close();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
39
48
|
|
|
40
49
|
show() {
|
|
41
50
|
this.ref = this.dialogService.open(ProductListDemo, {
|
|
@@ -52,8 +61,8 @@ export class DynamicdialogExampleDemo {
|
|
|
52
61
|
footer: Footer
|
|
53
62
|
}
|
|
54
63
|
});
|
|
55
|
-
|
|
56
|
-
this.ref
|
|
64
|
+
|
|
65
|
+
this.ref?.onClose.subscribe((data: any) => {
|
|
57
66
|
let summary_and_detail;
|
|
58
67
|
if (data) {
|
|
59
68
|
const buttonType = data?.buttonType;
|
|
@@ -63,8 +72,8 @@ export class DynamicdialogExampleDemo {
|
|
|
63
72
|
}
|
|
64
73
|
this.messageService.add({ severity: 'info', ...summary_and_detail, life: 3000 });
|
|
65
74
|
});
|
|
66
|
-
|
|
67
|
-
this.ref
|
|
75
|
+
|
|
76
|
+
this.ref?.onMaximize.subscribe((value) => {
|
|
68
77
|
this.messageService.add({
|
|
69
78
|
severity: 'info',
|
|
70
79
|
summary: 'Maximized',
|
|
@@ -77,7 +86,7 @@ export class DynamicdialogExampleDemo {
|
|
|
77
86
|
|
|
78
87
|
## Opening a Dialog
|
|
79
88
|
|
|
80
|
-
The open method of the DialogService is used to open a Dialog. First parameter is the component to load and second one is the configuration object to customize the Dialog.
|
|
89
|
+
The open method of the DialogService is used to open a Dialog. First parameter is the component to load and second one is the configuration object to customize the Dialog. It returns the DynamicDialogRef of the new dialog, or null when a dialog with the same component is already open, unless duplicate is enabled in the configuration.
|
|
81
90
|
|
|
82
91
|
## Passing Data
|
|
83
92
|
|
|
@@ -22,7 +22,7 @@ import { EditorModule } from '@exhaustive-ui/core/editor';
|
|
|
22
22
|
</div>
|
|
23
23
|
`,
|
|
24
24
|
standalone: true,
|
|
25
|
-
imports: [
|
|
25
|
+
imports: [FormsModule, EditorModule]
|
|
26
26
|
})
|
|
27
27
|
export class EditorBasicDemo {
|
|
28
28
|
text: string | undefined;
|
|
@@ -53,7 +53,7 @@ import { EditorModule } from '@exhaustive-ui/core/editor';
|
|
|
53
53
|
</div>
|
|
54
54
|
`,
|
|
55
55
|
standalone: true,
|
|
56
|
-
imports: [
|
|
56
|
+
imports: [FormsModule, EditorModule]
|
|
57
57
|
})
|
|
58
58
|
export class EditorCustomtoolbarDemo {
|
|
59
59
|
text: string = '<div>Hello World!</div><div>ExhaustiveUI <b>Editor</b> Rocks</div><div><br></div>';
|
|
@@ -70,12 +70,12 @@ Editor can also be used with reactive forms. In this case, the formControlName p
|
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
72
|
import { Component, inject } from '@angular/core';
|
|
73
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
73
|
+
import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
74
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
74
75
|
import { EditorModule } from '@exhaustive-ui/core/editor';
|
|
75
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
76
76
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
77
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
77
78
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
78
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
79
79
|
|
|
80
80
|
@Component({
|
|
81
81
|
template: `
|
|
@@ -93,18 +93,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
93
93
|
</div>
|
|
94
94
|
`,
|
|
95
95
|
standalone: true,
|
|
96
|
-
imports: [
|
|
96
|
+
imports: [ReactiveFormsModule, EditorModule, ToastModule, MessageModule, ButtonModule],
|
|
97
|
+
providers: [MessageService]
|
|
97
98
|
})
|
|
98
99
|
export class EditorReactiveformsDemo {
|
|
100
|
+
private fb = inject(FormBuilder);
|
|
101
|
+
|
|
99
102
|
messageService = inject(MessageService);
|
|
100
|
-
|
|
103
|
+
|
|
101
104
|
exampleForm: FormGroup | undefined;
|
|
105
|
+
|
|
102
106
|
formSubmitted: boolean = false;
|
|
103
107
|
|
|
104
108
|
constructor() {
|
|
105
109
|
this.exampleForm = this.fb.group({
|
|
106
|
-
|
|
107
|
-
|
|
110
|
+
text: ['', Validators.required]
|
|
111
|
+
});
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
onSubmit() {
|
|
@@ -139,7 +143,7 @@ import { EditorModule } from '@exhaustive-ui/core/editor';
|
|
|
139
143
|
</div>
|
|
140
144
|
`,
|
|
141
145
|
standalone: true,
|
|
142
|
-
imports: [
|
|
146
|
+
imports: [FormsModule, EditorModule]
|
|
143
147
|
})
|
|
144
148
|
export class EditorReadonlyDemo {
|
|
145
149
|
text: string = 'Always bet on Prime!';
|
|
@@ -153,11 +157,11 @@ Editor can also be used with Angular Signal Forms , the @angular/forms/signals A
|
|
|
153
157
|
```typescript
|
|
154
158
|
import { Component, inject, signal } from '@angular/core';
|
|
155
159
|
import { form, FormField, required, submit } from '@angular/forms/signals';
|
|
160
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
156
161
|
import { EditorModule } from '@exhaustive-ui/core/editor';
|
|
157
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
158
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
159
162
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
160
|
-
import {
|
|
163
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
164
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
161
165
|
|
|
162
166
|
@Component({
|
|
163
167
|
template: `
|
|
@@ -176,11 +180,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
176
180
|
</div>
|
|
177
181
|
`,
|
|
178
182
|
standalone: true,
|
|
179
|
-
imports: [EditorModule,
|
|
183
|
+
imports: [FormField, EditorModule, ButtonModule, ToastModule, MessageModule],
|
|
184
|
+
providers: [MessageService]
|
|
180
185
|
})
|
|
181
186
|
export class EditorSignalformsDemo {
|
|
182
187
|
messageService = inject(MessageService);
|
|
188
|
+
|
|
183
189
|
model = signal({ text: '' });
|
|
190
|
+
|
|
184
191
|
exampleForm = form(this.model, (f) => {
|
|
185
192
|
required(f.text);
|
|
186
193
|
});
|
|
@@ -200,11 +207,11 @@ export class EditorSignalformsDemo {
|
|
|
200
207
|
```typescript
|
|
201
208
|
import { Component, inject } from '@angular/core';
|
|
202
209
|
import { FormsModule } from '@angular/forms';
|
|
210
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
203
211
|
import { EditorModule } from '@exhaustive-ui/core/editor';
|
|
204
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
205
212
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
213
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
206
214
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
207
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
208
215
|
|
|
209
216
|
@Component({
|
|
210
217
|
template: `
|
|
@@ -222,10 +229,12 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
222
229
|
</div>
|
|
223
230
|
`,
|
|
224
231
|
standalone: true,
|
|
225
|
-
imports: [
|
|
232
|
+
imports: [FormsModule, EditorModule, ToastModule, MessageModule, ButtonModule],
|
|
233
|
+
providers: [MessageService]
|
|
226
234
|
})
|
|
227
235
|
export class EditorTemplatedrivenformsDemo {
|
|
228
236
|
messageService = inject(MessageService);
|
|
237
|
+
|
|
229
238
|
text: string | undefined;
|
|
230
239
|
|
|
231
240
|
onSubmit(form: any) {
|
|
@@ -245,22 +254,22 @@ Editor groups a collection of contents in tabs.
|
|
|
245
254
|
|
|
246
255
|
| Name | Type | Default | Description |
|
|
247
256
|
|------|------|---------|-------------|
|
|
248
|
-
| dt |
|
|
249
|
-
| unstyled |
|
|
250
|
-
| pt |
|
|
251
|
-
| ptOptions |
|
|
252
|
-
| required |
|
|
253
|
-
| invalid |
|
|
254
|
-
| disabled |
|
|
255
|
-
| name |
|
|
256
|
-
| style |
|
|
257
|
-
| placeholder |
|
|
258
|
-
| formats |
|
|
259
|
-
| modules |
|
|
260
|
-
| bounds |
|
|
261
|
-
| scrollingContainer |
|
|
262
|
-
| debug |
|
|
263
|
-
| readonly |
|
|
257
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
258
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
259
|
+
| pt | EditorPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
260
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
261
|
+
| required | boolean | false | There must be a value (if set). |
|
|
262
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
263
|
+
| disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
|
|
264
|
+
| name | string | undefined | When present, it specifies that the name of the input. |
|
|
265
|
+
| style | { [klass: string]: any } | - | Inline style of the container. |
|
|
266
|
+
| placeholder | string | - | Placeholder text to show when editor is empty. |
|
|
267
|
+
| formats | string[] | - | Whitelist of formats to display, see [here](https://quilljs.com/docs/formats/) for available options. |
|
|
268
|
+
| modules | object | - | Modules configuration of Editor, see [here](https://quilljs.com/docs/modules/) for available options. |
|
|
269
|
+
| bounds | string \| HTMLElement | - | DOM Element or a CSS selector for a DOM Element, within which the editor’s p elements (i.e. tooltips, etc.) should be confined. Currently, it only considers left and right boundaries. |
|
|
270
|
+
| scrollingContainer | string \| HTMLElement | - | DOM Element or a CSS selector for a DOM Element, specifying which container has the scrollbars (i.e. overflow-y: auto), if is has been changed from the default ql-editor with custom CSS. Necessary to fix scroll jumping bugs when Quill is set to auto grow its height, and another ancestor container is responsible from the scrolling.. |
|
|
271
|
+
| debug | string | - | Shortcut for debug. Note debug is a static method and will affect other instances of Quill editors on the page. Only warning and error messages are enabled by default. |
|
|
272
|
+
| readonly | boolean | false | Whether to instantiate the editor to read-only mode. |
|
|
264
273
|
|
|
265
274
|
### Emits
|
|
266
275
|
|