@exhaustive-ui/mcp 22.4.0 → 22.5.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 +88 -0
- package/data/cards/animateonscroll.md +152 -0
- package/data/cards/autocomplete.md +104 -0
- package/data/cards/autofocus.md +34 -0
- package/data/cards/avatar.md +43 -0
- package/data/cards/badge.md +43 -0
- package/data/cards/blockui.md +51 -0
- package/data/cards/breadcrumb.md +54 -0
- package/data/cards/button.md +77 -0
- package/data/cards/card.md +48 -0
- package/data/cards/carousel.md +99 -0
- package/data/cards/cascadeselect.md +81 -0
- package/data/cards/chart.md +103 -0
- package/data/cards/checkbox.md +58 -0
- package/data/cards/chip.md +49 -0
- package/data/cards/classnames.md +73 -0
- package/data/cards/colorpicker.md +51 -0
- package/data/cards/confirmdialog.md +89 -0
- package/data/cards/confirmpopup.md +74 -0
- package/data/cards/contextmenu.md +66 -0
- package/data/cards/dataview.md +115 -0
- package/data/cards/datepicker.md +102 -0
- package/data/cards/dialog.md +89 -0
- package/data/cards/divider.md +54 -0
- package/data/cards/dock.md +85 -0
- package/data/cards/dragdrop.md +102 -0
- package/data/cards/drawer.md +62 -0
- package/data/cards/dynamicdialog.md +76 -0
- package/data/cards/editor.md +55 -0
- package/data/cards/fieldset.md +53 -0
- package/data/cards/fileinput.md +72 -0
- package/data/cards/fileupload.md +89 -0
- package/data/cards/floatlabel.md +41 -0
- package/data/cards/fluid.md +47 -0
- package/data/cards/focustrap.md +60 -0
- package/data/cards/galleria.md +101 -0
- package/data/cards/iconfield.md +44 -0
- package/data/cards/iftalabel.md +38 -0
- package/data/cards/image.md +56 -0
- package/data/cards/imagecompare.md +44 -0
- package/data/cards/inplace.md +55 -0
- package/data/cards/inputgroup.md +66 -0
- package/data/cards/inputmask.md +71 -0
- package/data/cards/inputnumber.md +77 -0
- package/data/cards/inputotp.md +60 -0
- package/data/cards/inputtext.md +41 -0
- package/data/cards/keyfilter.md +48 -0
- package/data/cards/knob.md +54 -0
- package/data/cards/listbox.md +103 -0
- package/data/cards/megamenu.md +97 -0
- package/data/cards/menu.md +68 -0
- package/data/cards/menubar.md +106 -0
- package/data/cards/message.md +50 -0
- package/data/cards/metergroup.md +57 -0
- package/data/cards/multiselect.md +119 -0
- package/data/cards/orderlist.md +94 -0
- package/data/cards/organizationchart.md +57 -0
- package/data/cards/overlay.md +62 -0
- package/data/cards/paginator.md +61 -0
- package/data/cards/panel.md +56 -0
- package/data/cards/panelmenu.md +103 -0
- package/data/cards/password.md +78 -0
- package/data/cards/picklist.md +102 -0
- package/data/cards/popover.md +52 -0
- package/data/cards/progressbar.md +41 -0
- package/data/cards/progressspinner.md +37 -0
- package/data/cards/radiobutton.md +51 -0
- package/data/cards/rating.md +56 -0
- package/data/cards/ripple.md +36 -0
- package/data/cards/scroller.md +32 -0
- package/data/cards/scrollpanel.md +49 -0
- package/data/cards/scrolltop.md +46 -0
- package/data/cards/select.md +107 -0
- package/data/cards/selectbutton.md +60 -0
- package/data/cards/skeleton.md +53 -0
- package/data/cards/slider.md +51 -0
- package/data/cards/speeddial.md +99 -0
- package/data/cards/splitbutton.md +93 -0
- package/data/cards/splitter.md +51 -0
- package/data/cards/stepper.md +120 -0
- package/data/cards/styleclass.md +44 -0
- package/data/cards/table.md +270 -0
- package/data/cards/tabs.md +96 -0
- package/data/cards/tag.md +40 -0
- package/data/cards/terminal.md +67 -0
- package/data/cards/textarea.md +44 -0
- package/data/cards/tieredmenu.md +126 -0
- package/data/cards/timeline.md +58 -0
- package/data/cards/toast.md +59 -0
- package/data/cards/togglebutton.md +59 -0
- package/data/cards/toggleswitch.md +51 -0
- package/data/cards/toolbar.md +74 -0
- package/data/cards/tooltip.md +42 -0
- package/data/cards/tree.md +96 -0
- package/data/cards/treeselect.md +99 -0
- package/data/cards/treetable.md +210 -0
- package/data/components/checkbox.md +0 -24
- package/data/components/dock.md +2 -2
- package/data/components/galleria.md +7 -7
- package/data/components/inputnumber.md +2 -2
- package/data/components/llms.md +4 -0
- package/data/components/password.md +3 -3
- package/data/components/picklist.md +1 -1
- package/data/components/table.md +1 -1
- package/data/components.json +26 -22
- package/data/llms-full.txt +49 -42
- package/data/llms.txt +100 -96
- package/data/manifest.json +30 -1
- package/data/pages/llms.md +29 -0
- package/data/snapshot.json +2 -2
- package/dist/index.d.mts +35 -2
- package/dist/index.mjs +1393 -1077
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Fluid
|
|
2
|
+
|
|
3
|
+
Fluid is a layout component to make descendant components span full width of their container.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Fluid } from '@exhaustive-ui/core/fluid'; // standalone; or FluidModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-fluid`: Fluid
|
|
10
|
+
|
|
11
|
+
## Example: Basic
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Component } from '@angular/core';
|
|
15
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
template: `
|
|
19
|
+
<div class="card flex flex-col gap-6">
|
|
20
|
+
<div>
|
|
21
|
+
<label for="non-fluid" class="font-bold mb-2 block">Non-Fluid</label>
|
|
22
|
+
<input type="text" pInputText id="non-fluid" />
|
|
23
|
+
</div>
|
|
24
|
+
<div>
|
|
25
|
+
<label for="fluid" class="font-bold mb-2 block">Fluid Prop</label>
|
|
26
|
+
<input type="text" pInputText id="fluid" fluid />
|
|
27
|
+
</div>
|
|
28
|
+
<p-fluid>
|
|
29
|
+
<span class="font-bold mb-2 block">Fluid Container</span>
|
|
30
|
+
<div class="grid grid-cols-2 gap-4">
|
|
31
|
+
<div><input type="text" pInputText /></div>
|
|
32
|
+
<div><input type="text" pInputText /></div>
|
|
33
|
+
<div class="col-span-full"><input type="text" pInputText /></div>
|
|
34
|
+
<div><input type="text" pInputText [fluid]="false" placeholder="Non-Fluid" /></div>
|
|
35
|
+
</div>
|
|
36
|
+
</p-fluid>
|
|
37
|
+
</div>
|
|
38
|
+
`,
|
|
39
|
+
standalone: true,
|
|
40
|
+
imports: [InputTextModule]
|
|
41
|
+
})
|
|
42
|
+
export class FluidBasicDemo {}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
46
|
+
|
|
47
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/fluid.md
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Focus Trap
|
|
2
|
+
|
|
3
|
+
Focus Trap keeps focus within a certain DOM element while tabbing.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { FocusTrap } from '@exhaustive-ui/core/focustrap'; // standalone; or FocusTrapModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `[pFocusTrap]`: FocusTrap
|
|
10
|
+
|
|
11
|
+
- Inputs: `pFocusTrapDisabled`.
|
|
12
|
+
|
|
13
|
+
## Example: Basic
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { Component } from '@angular/core';
|
|
17
|
+
import { FormsModule } from '@angular/forms';
|
|
18
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
19
|
+
import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
|
|
20
|
+
import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
|
|
21
|
+
import { InputIconModule } from '@exhaustive-ui/core/inputicon';
|
|
22
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
template: `
|
|
26
|
+
<div class="card flex justify-center">
|
|
27
|
+
<div pFocusTrap class="w-full sm:w-80 flex flex-col gap-6">
|
|
28
|
+
<p-icon-field>
|
|
29
|
+
<p-input-icon>
|
|
30
|
+
<i class="pi pi-user"></i>
|
|
31
|
+
</p-input-icon>
|
|
32
|
+
<input type="text" pInputText id="input" [(ngModel)]="name" type="text" placeholder="Name" [pAutoFocus]="true" [fluid]="true" />
|
|
33
|
+
</p-icon-field>
|
|
34
|
+
<p-icon-field>
|
|
35
|
+
<p-input-icon>
|
|
36
|
+
<i class="pi pi-envelope"> </i>
|
|
37
|
+
</p-input-icon>
|
|
38
|
+
<input type="text" pInputText id="email" [(ngModel)]="email" type="email" placeholder="Email" [fluid]="true" />
|
|
39
|
+
</p-icon-field>
|
|
40
|
+
<div class="flex items-center gap-2">
|
|
41
|
+
<p-checkbox id="accept" [(ngModel)]="accept" name="accept" value="Accept" />
|
|
42
|
+
<label for="accept">I agree to the terms and conditions.</label>
|
|
43
|
+
</div>
|
|
44
|
+
<p-button type="submit" label="Submit" class="mt-2" styleClass="w-full" />
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
`,
|
|
48
|
+
standalone: true,
|
|
49
|
+
imports: [ButtonModule, CheckboxModule, IconFieldModule, InputIconModule, InputTextModule, FormsModule]
|
|
50
|
+
})
|
|
51
|
+
export class FocustrapBasicDemo {
|
|
52
|
+
name: string = '';
|
|
53
|
+
email: string = '';
|
|
54
|
+
accept: boolean = false;
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
59
|
+
|
|
60
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/focustrap.md
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Gallery
|
|
2
|
+
|
|
3
|
+
Galleria is an advanced content gallery component.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Galleria } from '@exhaustive-ui/core/galleria'; // standalone; or GalleriaModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-galleria`: Galleria
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `activeIndex`: `number` = `0` (two-way: `[(${input.name})]`): Index of the first item, supports one or two-way binding as well.
|
|
13
|
+
- `autoPlay`: `boolean` = `false`: Items are displayed with a slideshow in autoPlay mode.
|
|
14
|
+
- `circular`: `boolean` = `false`: Defines if scrolling would be infinite.
|
|
15
|
+
- `containerStyle`: `{ [klass: string]: any; } | null | undefined`: Inline style of the component on fullscreen mode.
|
|
16
|
+
- `numVisible`: `number` = `3`: Number of items per page.
|
|
17
|
+
- `responsiveOptions`: `GalleriaResponsiveOptions[] | undefined`: An array of options for responsive design.
|
|
18
|
+
- `showItemNavigators`: `boolean` = `false`: Whether to display navigation buttons in item section.
|
|
19
|
+
- `showItemNavigatorsOnHover`: `boolean` = `false`: Whether to display navigation buttons on item hover.
|
|
20
|
+
- `showThumbnails`: `boolean` = `true`: Whether to display thumbnail container.
|
|
21
|
+
- `thumbnailsPosition`: `"top" | "bottom" | "left" | "right" | undefined` = `'bottom'`: Position of thumbnails.
|
|
22
|
+
- `transitionInterval`: `number` = `4000`: Time in milliseconds to scroll items.
|
|
23
|
+
- `value`: `any[] | undefined`: An array of objects to display.
|
|
24
|
+
- Other inputs: `baseZIndex`, `changeItemOnIndicatorHover`, `fullScreen`, `id`, `indicatorsPosition`, `maskClass`, `maskMotionOptions`, `motionOptions`, `shouldStopAutoplayByClick`, `showIndicators`, `showIndicatorsOnItem`, `showThumbnailNavigators`, `verticalThumbnailViewPortHeight`, `visible`.
|
|
25
|
+
|
|
26
|
+
Outputs:
|
|
27
|
+
- `(activeIndexChange)`: `number`
|
|
28
|
+
- `(visibleChange)`: `boolean`
|
|
29
|
+
|
|
30
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
31
|
+
- `#header`: no context. Custom header template.
|
|
32
|
+
- `#footer`: no context. Custom footer template.
|
|
33
|
+
- `#indicator`: context { $implicit: number }. Custom indicator template.
|
|
34
|
+
- `#caption`: context { $implicit: T }. Custom caption template.
|
|
35
|
+
- `#closeicon`: no context. Custom close icon template.
|
|
36
|
+
- `#previousthumbnailicon`: no context. Custom previous thumbnail icon template.
|
|
37
|
+
- `#nextthumbnailicon`: no context. Custom next thumbnail icon template.
|
|
38
|
+
- `#itempreviousicon`: no context. Custom item previous icon template.
|
|
39
|
+
- `#itemnexticon`: no context. Custom item next icon template.
|
|
40
|
+
- `#item`: context { $implicit: T }. Custom item template.
|
|
41
|
+
- `#thumbnail`: context { $implicit: T }. Custom thumbnail template.
|
|
42
|
+
|
|
43
|
+
Read a context with `let-`: `<ng-template #indicator let-item>` (`$implicit` is the bare `let-x`).
|
|
44
|
+
|
|
45
|
+
### `div[pGalleriaContent]`: GalleriaContent
|
|
46
|
+
|
|
47
|
+
- Inputs: `activeIndex`, `numVisible`, `value`.
|
|
48
|
+
- Outputs: `(activeItemChange)`, `(maskHide)`.
|
|
49
|
+
|
|
50
|
+
### `div[pGalleriaItem]`: GalleriaItem
|
|
51
|
+
|
|
52
|
+
- Inputs: `activeIndex`, `autoPlay`, `captionFacet`, `changeItemOnIndicatorHover`, `circular`, `id`, `indicatorFacet`, `showIndicators`, `showItemNavigators`, `slideShowActive`, `templates`, `value`.
|
|
53
|
+
- Outputs: `(onActiveIndexChange)`, `(startSlideShow)`, `(stopSlideShow)`.
|
|
54
|
+
|
|
55
|
+
### `div[pGalleriaItemSlot]`: GalleriaItemSlot
|
|
56
|
+
|
|
57
|
+
- Inputs: `index`, `item`, `templates`, `type`.
|
|
58
|
+
|
|
59
|
+
### `div[pGalleriaThumbnails]`: GalleriaThumbnails
|
|
60
|
+
|
|
61
|
+
- Inputs: `activeIndex`, `circular`, `containerId`, `contentHeight`, `isVertical`, `numVisible`, `responsiveOptions`, `showThumbnailNavigators`, `slideShowActive`, `templates`, `value`.
|
|
62
|
+
- Outputs: `(onActiveIndexChange)`, `(stopSlideShow)`.
|
|
63
|
+
|
|
64
|
+
## Example: Basic
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
import { Component, OnInit, inject } from '@angular/core';
|
|
68
|
+
import { GalleriaModule } from '@exhaustive-ui/core/galleria';
|
|
69
|
+
import { PhotoService } from '@/service/photoservice';
|
|
70
|
+
|
|
71
|
+
@Component({
|
|
72
|
+
template: `
|
|
73
|
+
<div class="card">
|
|
74
|
+
<p-galleria [value]="images" [responsiveOptions]="responsiveOptions" [containerStyle]="{ 'max-width': '640px' }" [numVisible]="5">
|
|
75
|
+
<ng-template #item let-item>
|
|
76
|
+
<img [src]="item.itemImageSrc" style="width:100%" />
|
|
77
|
+
</ng-template>
|
|
78
|
+
<ng-template #thumbnail let-item>
|
|
79
|
+
<img [src]="item.thumbnailImageSrc" />
|
|
80
|
+
</ng-template>
|
|
81
|
+
</p-galleria>
|
|
82
|
+
</div>
|
|
83
|
+
`,
|
|
84
|
+
standalone: true,
|
|
85
|
+
imports: [GalleriaModule],
|
|
86
|
+
providers: [PhotoService]
|
|
87
|
+
})
|
|
88
|
+
export class GalleriaBasicDemo implements OnInit {
|
|
89
|
+
private photoService = inject(PhotoService);
|
|
90
|
+
images: any = model([]);
|
|
91
|
+
responsiveOptions: any[];
|
|
92
|
+
|
|
93
|
+
ngOnInit() {
|
|
94
|
+
this.photoService.getImages().then((images) => this.images.set(images));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
100
|
+
|
|
101
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/galleria.md
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# IconField
|
|
2
|
+
|
|
3
|
+
IconField wraps an input and an icon.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { IconField } from '@exhaustive-ui/core/iconfield'; // standalone; or IconFieldModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-icon-field` (also `p-iconfield`, `p-iconField`, legacy): IconField
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `iconPosition`: `"left" | "right"` = `'left'`: Position of the icon.
|
|
13
|
+
- Other inputs: `hostName`.
|
|
14
|
+
|
|
15
|
+
## Example: Basic
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { Component } from '@angular/core';
|
|
19
|
+
import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
|
|
20
|
+
import { InputIconModule } from '@exhaustive-ui/core/inputicon';
|
|
21
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
22
|
+
|
|
23
|
+
@Component({
|
|
24
|
+
template: `
|
|
25
|
+
<div class="card flex flex-wrap justify-center gap-4">
|
|
26
|
+
<p-icon-field>
|
|
27
|
+
<p-input-icon class="pi pi-search" />
|
|
28
|
+
<input type="text" pInputText placeholder="Search" />
|
|
29
|
+
</p-icon-field>
|
|
30
|
+
<p-icon-field>
|
|
31
|
+
<input type="text" pInputText />
|
|
32
|
+
<p-input-icon class="pi pi-spinner pi-spin" />
|
|
33
|
+
</p-icon-field>
|
|
34
|
+
</div>
|
|
35
|
+
`,
|
|
36
|
+
standalone: true,
|
|
37
|
+
imports: [IconFieldModule, InputIconModule, InputTextModule]
|
|
38
|
+
})
|
|
39
|
+
export class IconfieldBasicDemo {}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
43
|
+
|
|
44
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/iconfield.md
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Ifta Label
|
|
2
|
+
|
|
3
|
+
IftaLabel is used to create infield top aligned labels.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { IftaLabel } from '@exhaustive-ui/core/iftalabel'; // standalone; or IftaLabelModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-ifta-label` (also `p-iftalabel`, `p-iftaLabel`, legacy): IftaLabel
|
|
10
|
+
|
|
11
|
+
## Example: Basic
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Component } from '@angular/core';
|
|
15
|
+
import { FormsModule } from '@angular/forms';
|
|
16
|
+
import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
17
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
template: `
|
|
21
|
+
<div class="card flex justify-center">
|
|
22
|
+
<p-ifta-label>
|
|
23
|
+
<input pInputText id="username" [(ngModel)]="value" autocomplete="off" />
|
|
24
|
+
<label for="username">Username</label>
|
|
25
|
+
</p-ifta-label>
|
|
26
|
+
</div>
|
|
27
|
+
`,
|
|
28
|
+
standalone: true,
|
|
29
|
+
imports: [IftaLabelModule, InputTextModule, FormsModule]
|
|
30
|
+
})
|
|
31
|
+
export class IftalabelBasicDemo {
|
|
32
|
+
value: string | undefined;
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
37
|
+
|
|
38
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/iftalabel.md
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Image
|
|
2
|
+
|
|
3
|
+
Displays an image with preview and tranformation options.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Image } from '@exhaustive-ui/core/image'; // standalone; or ImageModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-image`: Image
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `alt`: `string | undefined`: Attribute of the preview image element.
|
|
13
|
+
- `preview`: `boolean` = `false`: Controls the preview functionality.
|
|
14
|
+
- `previewImageSrc`: `string | SafeUrl | undefined`: The source path for the preview image.
|
|
15
|
+
- `src`: `string | SafeUrl | undefined`: The source path for the main image.
|
|
16
|
+
- `width`: `string | undefined`: Attribute of the image element.
|
|
17
|
+
- Other inputs: `appendTo`, `height`, `imageClass`, `imageStyle`, `loading`, `maskMotionOptions`, `motionOptions`, `previewAriaLabel`, `previewImageSizes`, `previewImageSrcSet`, `sizes`, `srcSet`.
|
|
18
|
+
|
|
19
|
+
Outputs:
|
|
20
|
+
- `(onHide)`: `any`
|
|
21
|
+
- `(onImageError)`: `Event`
|
|
22
|
+
- `(onShow)`: `any`
|
|
23
|
+
|
|
24
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
25
|
+
- `#indicator`: no context. Custom indicator template.
|
|
26
|
+
- `#rotaterighticon`: no context. Custom rotate right icon template.
|
|
27
|
+
- `#rotatelefticon`: no context. Custom rotate left icon template.
|
|
28
|
+
- `#zoomouticon`: no context. Custom zoom out icon template.
|
|
29
|
+
- `#zoominicon`: no context. Custom zoom in icon template.
|
|
30
|
+
- `#closeicon`: no context. Custom close icon template.
|
|
31
|
+
- `#preview`: context { class: string, style: { [key: string]: any; }, previewCallback: () => void }. Custom preview template.
|
|
32
|
+
- `#image`: context { errorCallback: (event: Event) => void }. Custom image template.
|
|
33
|
+
|
|
34
|
+
Read a context with `let-`: `<ng-template #preview let-class="class" let-style="style" let-previewCallback="previewCallback">` (`$implicit` is the bare `let-x`).
|
|
35
|
+
|
|
36
|
+
## Example: Basic
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { Component } from '@angular/core';
|
|
40
|
+
import { ImageModule } from '@exhaustive-ui/core/image';
|
|
41
|
+
|
|
42
|
+
@Component({
|
|
43
|
+
template: `
|
|
44
|
+
<div class="card flex justify-center">
|
|
45
|
+
<p-image src="https://exhaustive-ui.com/demo/galleria/galleria10.jpg" alt="Image" width="250" />
|
|
46
|
+
</div>
|
|
47
|
+
`,
|
|
48
|
+
standalone: true,
|
|
49
|
+
imports: [ImageModule]
|
|
50
|
+
})
|
|
51
|
+
export class ImageBasicDemo {}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
55
|
+
|
|
56
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/image.md
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# ImageCompare
|
|
2
|
+
|
|
3
|
+
Compare two images side by side with a slider.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { ImageCompare } from '@exhaustive-ui/core/imagecompare'; // standalone; or ImageCompareModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-image-compare` (also `p-imageCompare`, `p-imagecompare`, legacy): ImageCompare
|
|
10
|
+
|
|
11
|
+
- Inputs: `ariaLabel`, `ariaLabelledBy`, `tabindex`.
|
|
12
|
+
|
|
13
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
14
|
+
- `#left`: no context. Custom left side template.
|
|
15
|
+
- `#right`: no context. Custom right side template.
|
|
16
|
+
|
|
17
|
+
## Example: Basic
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { Component } from '@angular/core';
|
|
21
|
+
import { ImageCompareModule } from '@exhaustive-ui/core/imagecompare';
|
|
22
|
+
|
|
23
|
+
@Component({
|
|
24
|
+
template: `
|
|
25
|
+
<div class="card flex justify-center">
|
|
26
|
+
<p-image-compare class="shadow-lg rounded-2xl">
|
|
27
|
+
<ng-template #left>
|
|
28
|
+
<img src="https://exhaustive-ui.com/demo/compare/island1.jpg" />
|
|
29
|
+
</ng-template>
|
|
30
|
+
<ng-template #right>
|
|
31
|
+
<img src="https://exhaustive-ui.com/demo/compare/island2.jpg" />
|
|
32
|
+
</ng-template>
|
|
33
|
+
</p-image-compare>
|
|
34
|
+
</div>
|
|
35
|
+
`,
|
|
36
|
+
standalone: true,
|
|
37
|
+
imports: [ImageCompareModule]
|
|
38
|
+
})
|
|
39
|
+
export class ImagecompareBasicDemo {}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
43
|
+
|
|
44
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/imagecompare.md
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Inplace
|
|
2
|
+
|
|
3
|
+
Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Inplace } from '@exhaustive-ui/core/inplace'; // standalone; or InplaceModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-inplace`: Inplace
|
|
10
|
+
|
|
11
|
+
- Inputs: `active`, `closeAriaLabel`, `disabled`, `preventClick`.
|
|
12
|
+
|
|
13
|
+
Outputs:
|
|
14
|
+
- `(activeChange)`: `boolean | undefined`
|
|
15
|
+
- `(onActivate)`: `Event | undefined`
|
|
16
|
+
- `(onDeactivate)`: `Event | undefined`
|
|
17
|
+
|
|
18
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
19
|
+
- `#display`: no context. Custom display template.
|
|
20
|
+
- `#content`: context { closeCallback: (event: MouseEvent) => void }. Custom content template.
|
|
21
|
+
- `#closeicon`: no context. Custom close icon template.
|
|
22
|
+
|
|
23
|
+
Read a context with `let-`: `<ng-template #content let-closeCallback="closeCallback">` (`$implicit` is the bare `let-x`).
|
|
24
|
+
|
|
25
|
+
## Example: Basic
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { Component } from '@angular/core';
|
|
29
|
+
import { InplaceModule } from '@exhaustive-ui/core/inplace';
|
|
30
|
+
|
|
31
|
+
@Component({
|
|
32
|
+
template: `
|
|
33
|
+
<div class="card">
|
|
34
|
+
<p-inplace>
|
|
35
|
+
<ng-template #display>
|
|
36
|
+
<span>View Content</span>
|
|
37
|
+
</ng-template>
|
|
38
|
+
<ng-template #content>
|
|
39
|
+
<p class="m-0">
|
|
40
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
41
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
42
|
+
</p>
|
|
43
|
+
</ng-template>
|
|
44
|
+
</p-inplace>
|
|
45
|
+
</div>
|
|
46
|
+
`,
|
|
47
|
+
standalone: true,
|
|
48
|
+
imports: [InplaceModule]
|
|
49
|
+
})
|
|
50
|
+
export class InplaceBasicDemo {}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
54
|
+
|
|
55
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/inplace.md
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# InputGroup
|
|
2
|
+
|
|
3
|
+
InputGroup displays text, icon, buttons and other content can be grouped next to an input.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { InputGroup } from '@exhaustive-ui/core/inputgroup'; // standalone; or InputGroupModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-input-group` (also `p-inputgroup`, `p-inputGroup`, legacy): InputGroup
|
|
10
|
+
|
|
11
|
+
## Example: Basic
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Component } from '@angular/core';
|
|
15
|
+
import { FormsModule } from '@angular/forms';
|
|
16
|
+
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
17
|
+
import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
18
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
19
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
20
|
+
|
|
21
|
+
interface City {
|
|
22
|
+
name: string;
|
|
23
|
+
code: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
template: `
|
|
28
|
+
<div class="card grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
29
|
+
<p-input-group>
|
|
30
|
+
<p-input-group-addon>
|
|
31
|
+
<i class="pi pi-user"></i>
|
|
32
|
+
</p-input-group-addon>
|
|
33
|
+
<input pInputText [(ngModel)]="text1" placeholder="Username" />
|
|
34
|
+
</p-input-group>
|
|
35
|
+
<p-input-group>
|
|
36
|
+
<p-input-group-addon>$</p-input-group-addon>
|
|
37
|
+
<p-input-number [(ngModel)]="number" placeholder="Price" />
|
|
38
|
+
<p-input-group-addon>.00</p-input-group-addon>
|
|
39
|
+
</p-input-group>
|
|
40
|
+
<p-input-group>
|
|
41
|
+
<p-input-group-addon>www</p-input-group-addon>
|
|
42
|
+
<input pInputText [(ngModel)]="text2" placeholder="Website" />
|
|
43
|
+
</p-input-group>
|
|
44
|
+
<p-input-group>
|
|
45
|
+
<p-input-group-addon>
|
|
46
|
+
<i class="pi pi-map"></i>
|
|
47
|
+
</p-input-group-addon>
|
|
48
|
+
<p-select [(ngModel)]="selectedCity" [options]="cities" optionLabel="name" placeholder="City" />
|
|
49
|
+
</p-input-group>
|
|
50
|
+
</div>
|
|
51
|
+
`,
|
|
52
|
+
standalone: true,
|
|
53
|
+
imports: [InputGroupModule, InputNumberModule, SelectModule, InputTextModule, FormsModule]
|
|
54
|
+
})
|
|
55
|
+
export class InputgroupBasicDemo {
|
|
56
|
+
text1: string | undefined;
|
|
57
|
+
text2: string | undefined;
|
|
58
|
+
number: string | undefined;
|
|
59
|
+
selectedCity: City | undefined;
|
|
60
|
+
cities: City[];
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
65
|
+
|
|
66
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/inputgroup.md
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# InputMask
|
|
2
|
+
|
|
3
|
+
InputMask directive is applied directly to input elements to enable masked input.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { InputMask } from '@exhaustive-ui/core/inputmask'; // standalone; or InputMaskModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-input-mask` (also `p-inputmask`, `p-inputMask`, legacy): InputMask
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `autocomplete`: `string | undefined`: Used to define a string that autocomplete attribute the current element.
|
|
15
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
16
|
+
- `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
|
|
17
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
18
|
+
- `mask`: `string | null | undefined`: Mask pattern.
|
|
19
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
20
|
+
- `placeholder`: `string | undefined`: Advisory information to display on input.
|
|
21
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
22
|
+
- `showClear`: `boolean` = `false`: When enabled, a clear icon is displayed to clear the value.
|
|
23
|
+
- `size`: `"large" | "small" | undefined`: Specifies the size of the component.
|
|
24
|
+
- `slotChar`: `string` = `'_'`: Placeholder character in mask, default is underscore.
|
|
25
|
+
- `type`: `string` = `'text'`: HTML5 input type.
|
|
26
|
+
- `variant`: `"filled" | "outlined" | undefined` = `'outlined'`: Specifies the input variant of the component.
|
|
27
|
+
- Other inputs: `ariaLabel`, `ariaLabelledBy`, `ariaRequired`, `autoClear`, `autofocus`, `characterPattern`, `inputId`, `inputSize`, `keepBuffer`, `max`, `maxlength`, `min`, `minlength`, `pattern`, `readonly`, `step`, `style`, `styleClass`, `tabindex`, `title`, `unmask`.
|
|
28
|
+
|
|
29
|
+
Outputs:
|
|
30
|
+
- `(onBlur)`: `Event`
|
|
31
|
+
- `(onClear)`: `void`
|
|
32
|
+
- `(onComplete)`: `void`
|
|
33
|
+
- `(onFocus)`: `Event`
|
|
34
|
+
- `(onInput)`: `Event`
|
|
35
|
+
- `(onKeydown)`: `Event`
|
|
36
|
+
|
|
37
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
38
|
+
- `#clearicon`: no context. Custom clear icon template.
|
|
39
|
+
|
|
40
|
+
### `[pInputMask]`: InputMaskDirective
|
|
41
|
+
|
|
42
|
+
InputMask directive is applied directly to input elements to enable masked input.
|
|
43
|
+
|
|
44
|
+
- Inputs: `autoClear`, `characterPattern`, `keepBuffer`, `pInputMask`, `pInputMaskPT`, `pInputMaskUnstyled`, `slotChar`.
|
|
45
|
+
- Outputs: `(onComplete)`, `(onUnmaskedChange)`.
|
|
46
|
+
|
|
47
|
+
## Example: Basic
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
import { Component } from '@angular/core';
|
|
51
|
+
import { FormsModule } from '@angular/forms';
|
|
52
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
53
|
+
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
54
|
+
|
|
55
|
+
@Component({
|
|
56
|
+
template: `
|
|
57
|
+
<div class="card flex justify-center">
|
|
58
|
+
<input pInputText pInputMask="99-999999" [(ngModel)]="value" placeholder="99-999999" />
|
|
59
|
+
</div>
|
|
60
|
+
`,
|
|
61
|
+
standalone: true,
|
|
62
|
+
imports: [InputTextModule, InputMaskModule, FormsModule]
|
|
63
|
+
})
|
|
64
|
+
export class InputmaskBasicDemo {
|
|
65
|
+
value: string | undefined;
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
70
|
+
|
|
71
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/inputmask.md
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# InputNumber
|
|
2
|
+
|
|
3
|
+
InputNumber is an input component to provide numerical input.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { InputNumber } from '@exhaustive-ui/core/inputnumber'; // standalone; or InputNumberModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-input-number` (also `p-inputNumber`, `p-inputnumber`, legacy): InputNumber
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `buttonLayout`: `string` = `'stacked'`: Layout of the buttons, valid values are "stacked" (default), "horizontal" and "vertical".
|
|
15
|
+
- `currency`: `string | undefined`: The currency to use in currency formatting.
|
|
16
|
+
- `currencyDisplay`: `any`: How to display the currency in currency formatting.
|
|
17
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
18
|
+
- `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
|
|
19
|
+
- `inputId`: `string | undefined`: Identifier of the focus input to match a label defined for the component.
|
|
20
|
+
- `inputStyle`: `any`: Inline style of the input field.
|
|
21
|
+
- `inputStyleClass`: `string | undefined`: Style class of the input field.
|
|
22
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
23
|
+
- `locale`: `string | undefined`: Locale to be used in formatting.
|
|
24
|
+
- `max`: `number | null | undefined`: The value must be less than or equal to the value.
|
|
25
|
+
- `maxFractionDigits`: `number | undefined`: The maximum number of fraction digits to use.
|
|
26
|
+
- `min`: `number | null | undefined`: The value must be greater than or equal to the value.
|
|
27
|
+
- `minFractionDigits`: `number | undefined`: The minimum number of fraction digits to use.
|
|
28
|
+
- `mode`: `any` = `'decimal'`: Defines the behavior of the component, valid values are "decimal" and "currency".
|
|
29
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
30
|
+
- `placeholder`: `string | undefined`: Advisory information to display on input.
|
|
31
|
+
- `prefix`: `string | undefined`: Text to display before the value.
|
|
32
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
33
|
+
- `showButtons`: `boolean` = `false`: Displays spinner buttons.
|
|
34
|
+
- `showClear`: `boolean` = `false`: When enabled, a clear icon is displayed to clear the value.
|
|
35
|
+
- `size`: `"large" | "small" | undefined`: Specifies the size of the component.
|
|
36
|
+
- `step`: `number | null | undefined`: Unless the step is set to the any literal, the value must be min + an integral multiple of the step.
|
|
37
|
+
- `suffix`: `string | undefined`: Text to display after the value.
|
|
38
|
+
- `useGrouping`: `boolean` = `true`: Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
|
|
39
|
+
- `variant`: `"filled" | "outlined" | undefined` = `'outlined'`: Specifies the input variant of the component.
|
|
40
|
+
- Other inputs: `allowEmpty`, `ariaDescribedBy`, `ariaLabel`, `ariaLabelledBy`, `ariaRequired`, `autocomplete`, `autofocus`, `decrementButtonClass`, `decrementButtonIcon`, `format`, `incrementButtonClass`, `incrementButtonIcon`, `inputSize`, `localeMatcher`, `maxlength`, `minlength`, `pattern`, `readonly`, `tabindex`, `title`.
|
|
41
|
+
|
|
42
|
+
Outputs:
|
|
43
|
+
- `(onBlur)`: `Event`
|
|
44
|
+
- `(onClear)`: `void`
|
|
45
|
+
- `(onFocus)`: `Event`
|
|
46
|
+
- `(onInput)`: `InputNumberInputEvent`
|
|
47
|
+
- `(onKeyDown)`: `KeyboardEvent`
|
|
48
|
+
|
|
49
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
50
|
+
- `#clearicon`: no context. Custom clear icon template.
|
|
51
|
+
- `#incrementbuttonicon`: no context. Custom increment button icon template.
|
|
52
|
+
- `#decrementbuttonicon`: no context. Custom decrement button icon template.
|
|
53
|
+
|
|
54
|
+
## Example: Filled
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
import { Component } from '@angular/core';
|
|
58
|
+
import { FormsModule } from '@angular/forms';
|
|
59
|
+
import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
60
|
+
|
|
61
|
+
@Component({
|
|
62
|
+
template: `
|
|
63
|
+
<div class="card flex justify-center">
|
|
64
|
+
<p-input-number variant="filled" [(ngModel)]="value1" />
|
|
65
|
+
</div>
|
|
66
|
+
`,
|
|
67
|
+
standalone: true,
|
|
68
|
+
imports: [InputNumberModule, FormsModule]
|
|
69
|
+
})
|
|
70
|
+
export class InputnumberFilledDemo {
|
|
71
|
+
value1!: number;
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
76
|
+
|
|
77
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/inputnumber.md
|