@exhaustive-ui/mcp 22.5.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/data/cards/accordion.md +5 -2
- package/data/cards/animateonscroll.md +8 -5
- package/data/cards/autocomplete.md +8 -3
- package/data/cards/autofocus.md +4 -2
- package/data/cards/avatar.md +4 -2
- package/data/cards/badge.md +2 -1
- package/data/cards/breadcrumb.md +3 -1
- package/data/cards/button.md +8 -2
- package/data/cards/card.md +2 -1
- package/data/cards/carousel.md +7 -5
- package/data/cards/cascadeselect.md +2 -6
- package/data/cards/chart.md +9 -7
- package/data/cards/checkbox.md +4 -3
- package/data/cards/chip.md +2 -1
- package/data/cards/classnames.md +21 -3
- package/data/cards/colorpicker.md +2 -1
- package/data/cards/confirmdialog.md +35 -5
- package/data/cards/confirmpopup.md +25 -3
- package/data/cards/contextmenu.md +1 -7
- package/data/cards/dataview.md +28 -9
- package/data/cards/datepicker.md +4 -3
- package/data/cards/dialog.md +3 -3
- package/data/cards/divider.md +2 -1
- package/data/cards/dock.md +24 -3
- package/data/cards/dragdrop.md +5 -1
- package/data/cards/drawer.md +3 -3
- package/data/cards/dynamicdialog.md +41 -14
- package/data/cards/editor.md +1 -1
- package/data/cards/fieldset.md +2 -1
- package/data/cards/fileinput.md +1 -1
- package/data/cards/fileupload.md +7 -8
- package/data/cards/floatlabel.md +1 -1
- package/data/cards/fluid.md +7 -5
- package/data/cards/focustrap.md +6 -2
- package/data/cards/galleria.md +18 -25
- package/data/cards/iconfield.md +3 -2
- package/data/cards/iftalabel.md +1 -1
- package/data/cards/image.md +4 -2
- package/data/cards/imagecompare.md +4 -3
- package/data/cards/inplace.md +2 -1
- package/data/cards/inputgroup.md +14 -3
- package/data/cards/inputmask.md +2 -2
- package/data/cards/inputnumber.md +4 -3
- package/data/cards/inputotp.md +2 -2
- package/data/cards/inputtext.md +2 -2
- package/data/cards/keyfilter.md +2 -1
- package/data/cards/knob.md +3 -2
- package/data/cards/listbox.md +5 -3
- package/data/cards/megamenu.md +7 -8
- package/data/cards/menu.md +3 -7
- package/data/cards/menubar.md +3 -7
- package/data/cards/message.md +2 -1
- package/data/cards/metergroup.md +3 -7
- package/data/cards/multiselect.md +5 -9
- package/data/cards/orderlist.md +6 -4
- package/data/cards/organizationchart.md +33 -6
- package/data/cards/overlay.md +2 -1
- package/data/cards/paginator.md +2 -1
- package/data/cards/panel.md +2 -1
- package/data/cards/panelmenu.md +4 -13
- package/data/cards/password.md +6 -3
- package/data/cards/picklist.md +9 -5
- package/data/cards/popover.md +6 -5
- package/data/cards/progressbar.md +4 -3
- package/data/cards/progressspinner.md +2 -1
- package/data/cards/radiobutton.md +4 -3
- package/data/cards/rating.md +1 -1
- package/data/cards/ripple.md +2 -1
- package/data/cards/scrollpanel.md +2 -1
- package/data/cards/scrolltop.md +5 -3
- package/data/cards/select.md +2 -1
- package/data/cards/selectbutton.md +6 -2
- package/data/cards/skeleton.md +2 -1
- package/data/cards/slider.md +4 -3
- package/data/cards/speeddial.md +7 -4
- package/data/cards/splitbutton.md +21 -18
- package/data/cards/splitter.md +2 -1
- package/data/cards/stepper.md +8 -3
- package/data/cards/styleclass.md +4 -2
- package/data/cards/table.md +46 -11
- package/data/cards/tabs.md +2 -1
- package/data/cards/tag.md +2 -1
- package/data/cards/terminal.md +31 -22
- package/data/cards/textarea.md +3 -2
- package/data/cards/tieredmenu.md +1 -6
- package/data/cards/timeline.md +5 -5
- package/data/cards/toast.md +7 -8
- package/data/cards/togglebutton.md +1 -1
- package/data/cards/toggleswitch.md +4 -3
- package/data/cards/toolbar.md +8 -8
- package/data/cards/tooltip.md +2 -1
- package/data/cards/tree.md +3 -6
- package/data/cards/treeselect.md +6 -7
- package/data/cards/treetable.md +52 -31
- 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 -73
- 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 +63 -27
- 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 +224 -83
- 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 +127 -89
- 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/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 +92 -70
- 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 +523 -314
- 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 +4122 -4080
- package/data/llms-full.txt +8784 -6249
- package/data/manifest.json +154 -15
- package/data/pages/tailwind.md +20 -10
- package/data/snapshot.json +2 -2
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
26
26
|
</div>
|
|
27
27
|
`,
|
|
28
28
|
standalone: true,
|
|
29
|
-
imports: [IftaLabelModule, InputTextModule
|
|
29
|
+
imports: [FormsModule, IftaLabelModule, InputTextModule]
|
|
30
30
|
})
|
|
31
31
|
export class IftalabelBasicDemo {
|
|
32
32
|
value: string | undefined;
|
|
@@ -53,7 +53,7 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
53
53
|
</div>
|
|
54
54
|
`,
|
|
55
55
|
standalone: true,
|
|
56
|
-
imports: [IftaLabelModule, InputTextModule
|
|
56
|
+
imports: [FormsModule, IftaLabelModule, InputTextModule]
|
|
57
57
|
})
|
|
58
58
|
export class IftalabelInvalidDemo {
|
|
59
59
|
value: string | undefined;
|
|
@@ -68,8 +68,8 @@ The label follows the small and large sizes of the field it wraps: its inset, it
|
|
|
68
68
|
import { Component } from '@angular/core';
|
|
69
69
|
import { FormsModule } from '@angular/forms';
|
|
70
70
|
import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
71
|
-
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
72
71
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
72
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
73
73
|
|
|
74
74
|
@Component({
|
|
75
75
|
template: `
|
|
@@ -105,16 +105,22 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
105
105
|
</div>
|
|
106
106
|
`,
|
|
107
107
|
standalone: true,
|
|
108
|
-
imports: [
|
|
108
|
+
imports: [FormsModule, IftaLabelModule, InputTextModule, SelectModule]
|
|
109
109
|
})
|
|
110
110
|
export class IftalabelSizesDemo {
|
|
111
111
|
value1: string | undefined;
|
|
112
|
+
|
|
112
113
|
value2: string | undefined;
|
|
114
|
+
|
|
113
115
|
value3: string | undefined;
|
|
116
|
+
|
|
114
117
|
city1: string | undefined;
|
|
118
|
+
|
|
115
119
|
city2: string | undefined;
|
|
120
|
+
|
|
116
121
|
city3: string | undefined;
|
|
117
|
-
|
|
122
|
+
|
|
123
|
+
cities = ['New York', 'Rome', 'London', 'Istanbul', 'Paris'];
|
|
118
124
|
}
|
|
119
125
|
```
|
|
120
126
|
|
|
@@ -126,10 +132,10 @@ IftaLabel is used to create infield top aligned labels.
|
|
|
126
132
|
|
|
127
133
|
| Name | Type | Default | Description |
|
|
128
134
|
|------|------|---------|-------------|
|
|
129
|
-
| dt |
|
|
130
|
-
| unstyled |
|
|
131
|
-
| pt |
|
|
132
|
-
| ptOptions |
|
|
135
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
136
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
137
|
+
| pt | IftaLabelPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
138
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
133
139
|
|
|
134
140
|
## Pass Through Options
|
|
135
141
|
|
package/data/components/image.md
CHANGED
|
@@ -12,6 +12,7 @@ Image is used as the native img element and supports all properties that the nat
|
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component } from '@angular/core';
|
|
15
|
+
import { RouterModule } from '@angular/router';
|
|
15
16
|
import { ImageModule } from '@exhaustive-ui/core/image';
|
|
16
17
|
|
|
17
18
|
@Component({
|
|
@@ -21,9 +22,10 @@ import { ImageModule } from '@exhaustive-ui/core/image';
|
|
|
21
22
|
</div>
|
|
22
23
|
`,
|
|
23
24
|
standalone: true,
|
|
24
|
-
imports: [ImageModule]
|
|
25
|
+
imports: [ImageModule, RouterModule]
|
|
25
26
|
})
|
|
26
|
-
export class ImageBasicDemo {
|
|
27
|
+
export class ImageBasicDemo {
|
|
28
|
+
}
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
## Preview
|
|
@@ -43,7 +45,8 @@ import { ImageModule } from '@exhaustive-ui/core/image';
|
|
|
43
45
|
standalone: true,
|
|
44
46
|
imports: [ImageModule]
|
|
45
47
|
})
|
|
46
|
-
export class ImagePreviewDemo {
|
|
48
|
+
export class ImagePreviewDemo {
|
|
49
|
+
}
|
|
47
50
|
```
|
|
48
51
|
|
|
49
52
|
## previewimagesource-doc
|
|
@@ -63,7 +66,8 @@ import { ImageModule } from '@exhaustive-ui/core/image';
|
|
|
63
66
|
standalone: true,
|
|
64
67
|
imports: [ImageModule]
|
|
65
68
|
})
|
|
66
|
-
export class ImagePreviewimagesourceDemo {
|
|
69
|
+
export class ImagePreviewimagesourceDemo {
|
|
70
|
+
}
|
|
67
71
|
```
|
|
68
72
|
|
|
69
73
|
## Template
|
|
@@ -93,7 +97,8 @@ import { ImageModule } from '@exhaustive-ui/core/image';
|
|
|
93
97
|
standalone: true,
|
|
94
98
|
imports: [ImageModule]
|
|
95
99
|
})
|
|
96
|
-
export class ImageTemplateDemo {
|
|
100
|
+
export class ImageTemplateDemo {
|
|
101
|
+
}
|
|
97
102
|
```
|
|
98
103
|
|
|
99
104
|
## Image
|
|
@@ -104,27 +109,27 @@ Displays an image with preview and tranformation options. For multiple image, se
|
|
|
104
109
|
|
|
105
110
|
| Name | Type | Default | Description |
|
|
106
111
|
|------|------|---------|-------------|
|
|
107
|
-
| dt |
|
|
108
|
-
| unstyled |
|
|
109
|
-
| pt |
|
|
110
|
-
| ptOptions |
|
|
111
|
-
| imageClass |
|
|
112
|
-
| imageStyle |
|
|
113
|
-
| src |
|
|
114
|
-
| srcSet |
|
|
115
|
-
| sizes |
|
|
116
|
-
| previewImageSrc |
|
|
117
|
-
| previewImageSrcSet |
|
|
118
|
-
| previewImageSizes |
|
|
119
|
-
| alt |
|
|
120
|
-
| previewAriaLabel |
|
|
121
|
-
| width |
|
|
122
|
-
| height |
|
|
123
|
-
| loading |
|
|
124
|
-
| preview |
|
|
125
|
-
| appendTo |
|
|
126
|
-
| maskMotionOptions |
|
|
127
|
-
| motionOptions |
|
|
112
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
113
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
114
|
+
| pt | ImagePassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
115
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
116
|
+
| imageClass | string | - | Style class of the image element. |
|
|
117
|
+
| imageStyle | { [klass: string]: any } | - | Inline style of the image element. |
|
|
118
|
+
| src | string \| SafeUrl | - | The source path for the main image. |
|
|
119
|
+
| srcSet | string \| SafeUrl | - | The srcset definition for the main image. |
|
|
120
|
+
| sizes | string | - | The sizes definition for the main image. |
|
|
121
|
+
| previewImageSrc | string \| SafeUrl | - | The source path for the preview image. |
|
|
122
|
+
| previewImageSrcSet | string \| SafeUrl | - | The srcset definition for the preview image. |
|
|
123
|
+
| previewImageSizes | string | - | The sizes definition for the preview image. |
|
|
124
|
+
| alt | string | - | Attribute of the preview image element. |
|
|
125
|
+
| previewAriaLabel | string | - | Accessible name of the preview dialog. Defaults to the alt text, then to the zoomImage ARIA translation. |
|
|
126
|
+
| width | string | - | Attribute of the image element. |
|
|
127
|
+
| height | string | - | Attribute of the image element. |
|
|
128
|
+
| loading | "eager" \| "lazy" | - | Attribute of the image element. |
|
|
129
|
+
| preview | boolean | false | Controls the preview functionality. |
|
|
130
|
+
| 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). |
|
|
131
|
+
| maskMotionOptions | MotionOptions | - | The motion options for the mask. |
|
|
132
|
+
| motionOptions | MotionOptions | - | The motion options. |
|
|
128
133
|
|
|
129
134
|
### Emits
|
|
130
135
|
|
|
@@ -19,10 +19,10 @@ import { ImageCompareModule } from '@exhaustive-ui/core/imagecompare';
|
|
|
19
19
|
<div class="card flex justify-center">
|
|
20
20
|
<p-image-compare class="shadow-lg rounded-2xl">
|
|
21
21
|
<ng-template #left>
|
|
22
|
-
<img src="https://exhaustive-ui.com/demo/compare/island1.jpg" />
|
|
22
|
+
<img src="https://exhaustive-ui.com/demo/compare/island1.jpg" alt="Island, before" />
|
|
23
23
|
</ng-template>
|
|
24
24
|
<ng-template #right>
|
|
25
|
-
<img src="https://exhaustive-ui.com/demo/compare/island2.jpg" />
|
|
25
|
+
<img src="https://exhaustive-ui.com/demo/compare/island2.jpg" alt="Island, after" />
|
|
26
26
|
</ng-template>
|
|
27
27
|
</p-image-compare>
|
|
28
28
|
</div>
|
|
@@ -30,7 +30,8 @@ import { ImageCompareModule } from '@exhaustive-ui/core/imagecompare';
|
|
|
30
30
|
standalone: true,
|
|
31
31
|
imports: [ImageCompareModule]
|
|
32
32
|
})
|
|
33
|
-
export class ImagecompareBasicDemo {
|
|
33
|
+
export class ImagecompareBasicDemo {
|
|
34
|
+
}
|
|
34
35
|
```
|
|
35
36
|
|
|
36
37
|
## Responsive
|
|
@@ -46,10 +47,10 @@ import { ImageCompareModule } from '@exhaustive-ui/core/imagecompare';
|
|
|
46
47
|
<div class="card flex justify-center">
|
|
47
48
|
<p-image-compare class="sm:w-96! shadow-lg rounded-2xl">
|
|
48
49
|
<ng-template #left>
|
|
49
|
-
<img src="https://exhaustive-ui.com/demo/compare/island1.jpg" />
|
|
50
|
+
<img src="https://exhaustive-ui.com/demo/compare/island1.jpg" alt="Island, before" />
|
|
50
51
|
</ng-template>
|
|
51
52
|
<ng-template #right>
|
|
52
|
-
<img src="https://exhaustive-ui.com/demo/compare/island2.jpg" />
|
|
53
|
+
<img src="https://exhaustive-ui.com/demo/compare/island2.jpg" alt="Island, after" />
|
|
53
54
|
</ng-template>
|
|
54
55
|
</p-image-compare>
|
|
55
56
|
</div>
|
|
@@ -57,7 +58,8 @@ import { ImageCompareModule } from '@exhaustive-ui/core/imagecompare';
|
|
|
57
58
|
standalone: true,
|
|
58
59
|
imports: [ImageCompareModule]
|
|
59
60
|
})
|
|
60
|
-
export class ImagecompareResponsiveDemo {
|
|
61
|
+
export class ImagecompareResponsiveDemo {
|
|
62
|
+
}
|
|
61
63
|
```
|
|
62
64
|
|
|
63
65
|
## Pass Through Options
|
|
@@ -4,7 +4,7 @@ Inplace provides an easy to do editing and display at the same time where clicki
|
|
|
4
4
|
|
|
5
5
|
## Accessibility
|
|
6
6
|
|
|
7
|
-
Screen Reader Inplace component defines aria-live as "polite" by default, since any valid attribute is passed to the main container aria roles and attributes of the root element can be customized easily. Display element uses button role in view mode
|
|
7
|
+
Screen Reader Inplace component defines aria-live as "polite" by default, since any valid attribute is passed to the main container aria roles and attributes of the root element can be customized easily. Display element uses button role in view mode. Closable inplace components display a close button whose aria-label is defined with the closeAriaLabel property. View Mode Keyboard Support Key Function enter Switches to content. Close Button Keyboard Support Key Function enter Switches to display. space Switches to display.
|
|
8
8
|
|
|
9
9
|
## Basic
|
|
10
10
|
|
|
@@ -33,7 +33,8 @@ import { InplaceModule } from '@exhaustive-ui/core/inplace';
|
|
|
33
33
|
standalone: true,
|
|
34
34
|
imports: [InplaceModule]
|
|
35
35
|
})
|
|
36
|
-
export class InplaceBasicDemo {
|
|
36
|
+
export class InplaceBasicDemo {
|
|
37
|
+
}
|
|
37
38
|
```
|
|
38
39
|
|
|
39
40
|
## Image
|
|
@@ -43,7 +44,6 @@ Any content such as an image can be placed inside an Inplace.
|
|
|
43
44
|
```typescript
|
|
44
45
|
import { Component } from '@angular/core';
|
|
45
46
|
import { InplaceModule } from '@exhaustive-ui/core/inplace';
|
|
46
|
-
import { Photo } from '@/domain/photo';
|
|
47
47
|
|
|
48
48
|
@Component({
|
|
49
49
|
template: `
|
|
@@ -64,7 +64,8 @@ import { Photo } from '@/domain/photo';
|
|
|
64
64
|
standalone: true,
|
|
65
65
|
imports: [InplaceModule]
|
|
66
66
|
})
|
|
67
|
-
export class InplaceImageDemo {
|
|
67
|
+
export class InplaceImageDemo {
|
|
68
|
+
}
|
|
68
69
|
```
|
|
69
70
|
|
|
70
71
|
## Input
|
|
@@ -74,8 +75,9 @@ The closeCallback switches the state back to display mode when called from an ev
|
|
|
74
75
|
```typescript
|
|
75
76
|
import { Component } from '@angular/core';
|
|
76
77
|
import { InplaceModule } from '@exhaustive-ui/core/inplace';
|
|
77
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
78
78
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
79
|
+
import { AutoFocusModule } from '@exhaustive-ui/core/autofocus';
|
|
80
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
79
81
|
|
|
80
82
|
@Component({
|
|
81
83
|
template: `
|
|
@@ -96,9 +98,10 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
96
98
|
</div>
|
|
97
99
|
`,
|
|
98
100
|
standalone: true,
|
|
99
|
-
imports: [InplaceModule,
|
|
101
|
+
imports: [InplaceModule, InputTextModule, AutoFocusModule, ButtonModule]
|
|
100
102
|
})
|
|
101
|
-
export class InplaceInputDemo {
|
|
103
|
+
export class InplaceInputDemo {
|
|
104
|
+
}
|
|
102
105
|
```
|
|
103
106
|
|
|
104
107
|
## Lazy
|
|
@@ -106,11 +109,11 @@ export class InplaceInputDemo {}
|
|
|
106
109
|
Using the onActivate event, data can be loaded in a lazy manner before displaying it in a table.
|
|
107
110
|
|
|
108
111
|
```typescript
|
|
109
|
-
import { Component,
|
|
112
|
+
import { Component, inject } from '@angular/core';
|
|
110
113
|
import { InplaceModule } from '@exhaustive-ui/core/inplace';
|
|
111
114
|
import { TableModule } from '@exhaustive-ui/core/table';
|
|
112
|
-
import { ProductService } from '@/service/productservice';
|
|
113
115
|
import { Product } from '@/domain/product';
|
|
116
|
+
import { ProductService } from '@/service/productservice';
|
|
114
117
|
|
|
115
118
|
@Component({
|
|
116
119
|
template: `
|
|
@@ -120,7 +123,7 @@ import { Product } from '@/domain/product';
|
|
|
120
123
|
<span>View Data</span>
|
|
121
124
|
</ng-template>
|
|
122
125
|
<ng-template #content>
|
|
123
|
-
<p-table [value]="products"
|
|
126
|
+
<p-table [value]="products">
|
|
124
127
|
<ng-template #header>
|
|
125
128
|
<tr>
|
|
126
129
|
<th>Code</th>
|
|
@@ -146,11 +149,13 @@ import { Product } from '@/domain/product';
|
|
|
146
149
|
imports: [InplaceModule, TableModule],
|
|
147
150
|
providers: [ProductService]
|
|
148
151
|
})
|
|
149
|
-
export class InplaceLazyDemo
|
|
152
|
+
export class InplaceLazyDemo {
|
|
150
153
|
private productService = inject(ProductService);
|
|
154
|
+
|
|
151
155
|
products: Product[] | undefined;
|
|
152
156
|
|
|
153
|
-
|
|
157
|
+
loadData() {
|
|
158
|
+
this.productService.getProductsMini().then((products) => (this.products = products));
|
|
154
159
|
}
|
|
155
160
|
}
|
|
156
161
|
```
|
|
@@ -163,16 +168,16 @@ Inplace provides an easy to do editing and display at the same time where clicki
|
|
|
163
168
|
|
|
164
169
|
| Name | Type | Default | Description |
|
|
165
170
|
|------|------|---------|-------------|
|
|
166
|
-
| dt |
|
|
167
|
-
| unstyled |
|
|
168
|
-
| pt |
|
|
169
|
-
| ptOptions |
|
|
170
|
-
| active |
|
|
171
|
-
| closable |
|
|
172
|
-
| disabled |
|
|
173
|
-
| preventClick |
|
|
174
|
-
| closeIcon |
|
|
175
|
-
| closeAriaLabel |
|
|
171
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
172
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
173
|
+
| pt | InplacePassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
174
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
175
|
+
| active | boolean | false | Whether the content is displayed or not, supports one or two-way binding as well. Emits `activeChange` with the new value when the content is activated or deactivated. |
|
|
176
|
+
| closable | boolean | false | Displays a button to switch back to display mode. **(Deprecated)** |
|
|
177
|
+
| disabled | boolean | false | When present, it specifies that the element should be disabled. |
|
|
178
|
+
| preventClick | boolean | - | Allows to prevent clicking. |
|
|
179
|
+
| closeIcon | string | - | Icon to display in the close button. **(Deprecated)** |
|
|
180
|
+
| closeAriaLabel | string | - | Establishes a string value that labels the close button. |
|
|
176
181
|
|
|
177
182
|
### Emits
|
|
178
183
|
|
|
@@ -14,9 +14,10 @@ A group is created by wrapping the input and add-ons with the p-input-group comp
|
|
|
14
14
|
import { Component } from '@angular/core';
|
|
15
15
|
import { FormsModule } from '@angular/forms';
|
|
16
16
|
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
17
|
+
import { InputGroupAddonModule } from '@exhaustive-ui/core/inputgroupaddon';
|
|
18
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
17
19
|
import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
18
20
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
19
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
20
21
|
|
|
21
22
|
interface City {
|
|
22
23
|
name: string;
|
|
@@ -50,14 +51,24 @@ interface City {
|
|
|
50
51
|
</div>
|
|
51
52
|
`,
|
|
52
53
|
standalone: true,
|
|
53
|
-
imports: [
|
|
54
|
+
imports: [FormsModule, InputGroupModule, InputGroupAddonModule, InputTextModule, InputNumberModule, SelectModule]
|
|
54
55
|
})
|
|
55
56
|
export class InputgroupBasicDemo {
|
|
56
57
|
text1: string | undefined;
|
|
58
|
+
|
|
57
59
|
text2: string | undefined;
|
|
60
|
+
|
|
58
61
|
number: string | undefined;
|
|
62
|
+
|
|
59
63
|
selectedCity: City | undefined;
|
|
60
|
-
|
|
64
|
+
|
|
65
|
+
cities: City[] = [
|
|
66
|
+
{ name: 'New York', code: 'NY' },
|
|
67
|
+
{ name: 'Rome', code: 'RM' },
|
|
68
|
+
{ name: 'London', code: 'LDN' },
|
|
69
|
+
{ name: 'Istanbul', code: 'IST' },
|
|
70
|
+
{ name: 'Paris', code: 'PRS' }
|
|
71
|
+
];
|
|
61
72
|
}
|
|
62
73
|
```
|
|
63
74
|
|
|
@@ -66,12 +77,13 @@ export class InputgroupBasicDemo {
|
|
|
66
77
|
Buttons can be placed at either side of an input element.
|
|
67
78
|
|
|
68
79
|
```typescript
|
|
69
|
-
import { Component
|
|
70
|
-
import {
|
|
80
|
+
import { Component } from '@angular/core';
|
|
81
|
+
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
71
82
|
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
72
|
-
import {
|
|
83
|
+
import { InputGroupAddonModule } from '@exhaustive-ui/core/inputgroupaddon';
|
|
73
84
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
74
|
-
import {
|
|
85
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
86
|
+
import { MenuModule } from '@exhaustive-ui/core/menu';
|
|
75
87
|
|
|
76
88
|
@Component({
|
|
77
89
|
template: `
|
|
@@ -83,25 +95,25 @@ import { MenuItem } from '@exhaustive-ui/core/api';
|
|
|
83
95
|
<p-input-group>
|
|
84
96
|
<input pInputText placeholder="Keyword" />
|
|
85
97
|
<p-input-group-addon>
|
|
86
|
-
<p-button icon="pi pi-search" severity="secondary" variant="text" (click)="menu.toggle($event)" />
|
|
98
|
+
<p-button icon="pi pi-search" ariaLabel="Search options" severity="secondary" variant="text" (click)="menu.toggle($event)" />
|
|
87
99
|
</p-input-group-addon>
|
|
88
100
|
</p-input-group>
|
|
89
101
|
<p-menu #menu [model]="items" popup styleClass="min-w-fit!" />
|
|
90
102
|
<p-input-group>
|
|
91
103
|
<p-input-group-addon>
|
|
92
|
-
<p-button icon="pi pi-check" severity="secondary" />
|
|
104
|
+
<p-button icon="pi pi-check" ariaLabel="Vote yes" severity="secondary" />
|
|
93
105
|
</p-input-group-addon>
|
|
94
106
|
<input pInputText placeholder="Vote" />
|
|
95
107
|
<p-input-group-addon>
|
|
96
|
-
<p-button icon="pi pi-times" severity="secondary" />
|
|
108
|
+
<p-button icon="pi pi-times" ariaLabel="Vote no" severity="secondary" />
|
|
97
109
|
</p-input-group-addon>
|
|
98
110
|
</p-input-group>
|
|
99
111
|
</div>
|
|
100
112
|
`,
|
|
101
113
|
standalone: true,
|
|
102
|
-
imports: [
|
|
114
|
+
imports: [InputGroupModule, InputGroupAddonModule, InputTextModule, ButtonModule, MenuModule]
|
|
103
115
|
})
|
|
104
|
-
export class InputgroupButtonDemo
|
|
116
|
+
export class InputgroupButtonDemo {
|
|
105
117
|
items: MenuItem[] | undefined;
|
|
106
118
|
|
|
107
119
|
ngOnInit() {
|
|
@@ -117,36 +129,40 @@ Checkbox and RadioButton components can be combined with an input element under
|
|
|
117
129
|
```typescript
|
|
118
130
|
import { Component } from '@angular/core';
|
|
119
131
|
import { FormsModule } from '@angular/forms';
|
|
120
|
-
import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
|
|
121
132
|
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
122
|
-
import {
|
|
133
|
+
import { InputGroupAddonModule } from '@exhaustive-ui/core/inputgroupaddon';
|
|
123
134
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
135
|
+
import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
|
|
136
|
+
import { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';
|
|
124
137
|
|
|
125
138
|
@Component({
|
|
126
139
|
template: `
|
|
127
140
|
<div class="card flex flex-col md:flex-row gap-4">
|
|
128
141
|
<p-input-group>
|
|
129
142
|
<input type="text" pInputText placeholder="Price" />
|
|
130
|
-
<p-input-group-addon><p-radio-button [(ngModel)]="radioValue1" name="rb1" value="rb1" /></p-input-group-addon>
|
|
143
|
+
<p-input-group-addon><p-radio-button [(ngModel)]="radioValue1" name="rb1" value="rb1" ariaLabel="Select price" /></p-input-group-addon>
|
|
131
144
|
</p-input-group>
|
|
132
145
|
<p-input-group>
|
|
133
|
-
<p-input-group-addon><p-checkbox [(ngModel)]="checked1" [binary]="true" /></p-input-group-addon>
|
|
146
|
+
<p-input-group-addon><p-checkbox [(ngModel)]="checked1" [binary]="true" ariaLabel="Enable username" /></p-input-group-addon>
|
|
134
147
|
<input type="text" pInputText placeholder="Username" />
|
|
135
148
|
</p-input-group>
|
|
136
149
|
<p-input-group>
|
|
137
|
-
<p-input-group-addon><p-checkbox [(ngModel)]="checked2" [binary]="true" /></p-input-group-addon>
|
|
150
|
+
<p-input-group-addon><p-checkbox [(ngModel)]="checked2" [binary]="true" ariaLabel="Enable website" /></p-input-group-addon>
|
|
138
151
|
<input type="text" pInputText placeholder="Website" />
|
|
139
|
-
<p-input-group-addon><p-radio-button name="rb2" value="rb2" [(ngModel)]="category" /></p-input-group-addon>
|
|
152
|
+
<p-input-group-addon><p-radio-button name="rb2" value="rb2" [(ngModel)]="category" ariaLabel="Select website" /></p-input-group-addon>
|
|
140
153
|
</p-input-group>
|
|
141
154
|
</div>
|
|
142
155
|
`,
|
|
143
156
|
standalone: true,
|
|
144
|
-
imports: [
|
|
157
|
+
imports: [FormsModule, InputGroupModule, InputGroupAddonModule, InputTextModule, CheckboxModule, RadioButtonModule]
|
|
145
158
|
})
|
|
146
159
|
export class InputgroupCheckboxDemo {
|
|
147
160
|
radioValue1: boolean = false;
|
|
161
|
+
|
|
148
162
|
checked1: boolean = false;
|
|
163
|
+
|
|
149
164
|
checked2: boolean = false;
|
|
165
|
+
|
|
150
166
|
category: string | undefined;
|
|
151
167
|
}
|
|
152
168
|
```
|
|
@@ -158,9 +174,11 @@ FloatLabel visually integrates a label with its form element. Visit FloatLabel d
|
|
|
158
174
|
```typescript
|
|
159
175
|
import { Component } from '@angular/core';
|
|
160
176
|
import { FormsModule } from '@angular/forms';
|
|
161
|
-
import {
|
|
177
|
+
import { RouterModule } from '@angular/router';
|
|
162
178
|
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
179
|
+
import { InputGroupAddonModule } from '@exhaustive-ui/core/inputgroupaddon';
|
|
163
180
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
181
|
+
import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
164
182
|
|
|
165
183
|
@Component({
|
|
166
184
|
template: `
|
|
@@ -192,11 +210,13 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
192
210
|
</div>
|
|
193
211
|
`,
|
|
194
212
|
standalone: true,
|
|
195
|
-
imports: [
|
|
213
|
+
imports: [FormsModule, RouterModule, InputGroupModule, InputGroupAddonModule, InputTextModule, FloatLabelModule]
|
|
196
214
|
})
|
|
197
215
|
export class InputgroupFloatlabelDemo {
|
|
198
216
|
value1: string | undefined;
|
|
217
|
+
|
|
199
218
|
value2: string | undefined;
|
|
219
|
+
|
|
200
220
|
value3: string | undefined;
|
|
201
221
|
}
|
|
202
222
|
```
|
|
@@ -208,9 +228,11 @@ IftaLabel is used to create infield top aligned labels. Visit IftaLabel document
|
|
|
208
228
|
```typescript
|
|
209
229
|
import { Component } from '@angular/core';
|
|
210
230
|
import { FormsModule } from '@angular/forms';
|
|
211
|
-
import {
|
|
231
|
+
import { RouterModule } from '@angular/router';
|
|
212
232
|
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
233
|
+
import { InputGroupAddonModule } from '@exhaustive-ui/core/inputgroupaddon';
|
|
213
234
|
import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
235
|
+
import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
214
236
|
|
|
215
237
|
@Component({
|
|
216
238
|
template: `
|
|
@@ -227,7 +249,7 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
|
227
249
|
</div>
|
|
228
250
|
`,
|
|
229
251
|
standalone: true,
|
|
230
|
-
imports: [
|
|
252
|
+
imports: [FormsModule, RouterModule, InputGroupModule, InputGroupAddonModule, InputNumberModule, IftaLabelModule]
|
|
231
253
|
})
|
|
232
254
|
export class InputgroupIftalabelDemo {
|
|
233
255
|
value: number = 10;
|
|
@@ -241,6 +263,7 @@ Multiple add-ons can be placed inside the same group.
|
|
|
241
263
|
```typescript
|
|
242
264
|
import { Component } from '@angular/core';
|
|
243
265
|
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
266
|
+
import { InputGroupAddonModule } from '@exhaustive-ui/core/inputgroupaddon';
|
|
244
267
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
245
268
|
|
|
246
269
|
@Component({
|
|
@@ -260,9 +283,10 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
260
283
|
</div>
|
|
261
284
|
`,
|
|
262
285
|
standalone: true,
|
|
263
|
-
imports: [InputGroupModule, InputTextModule]
|
|
286
|
+
imports: [InputGroupModule, InputGroupAddonModule, InputTextModule]
|
|
264
287
|
})
|
|
265
|
-
export class InputgroupMultipleDemo {
|
|
288
|
+
export class InputgroupMultipleDemo {
|
|
289
|
+
}
|
|
266
290
|
```
|
|
267
291
|
|
|
268
292
|
## Input Group
|
|
@@ -273,10 +297,10 @@ InputGroup displays text, icon, buttons and other content can be grouped next to
|
|
|
273
297
|
|
|
274
298
|
| Name | Type | Default | Description |
|
|
275
299
|
|------|------|---------|-------------|
|
|
276
|
-
| dt |
|
|
277
|
-
| unstyled |
|
|
278
|
-
| pt |
|
|
279
|
-
| ptOptions |
|
|
300
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
301
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
302
|
+
| pt | InputGroupPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
303
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
280
304
|
|
|
281
305
|
## Pass Through Options
|
|
282
306
|
|