@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
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# PanelMenu
|
|
2
|
+
|
|
3
|
+
PanelMenu is a hybrid of Accordion and Tree components.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { PanelMenu } from '@exhaustive-ui/core/panelmenu'; // standalone; or PanelMenuModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-panel-menu` (also `p-panelMenu`, `p-panelmenu`, legacy): PanelMenu
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `model`: `MenuItem[] | undefined`: An array of menuitems.
|
|
13
|
+
- `multiple`: `boolean` = `false`: Whether multiple tabs can be activated at the same time or not.
|
|
14
|
+
- Other inputs: `id`, `motionOptions`.
|
|
15
|
+
|
|
16
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
17
|
+
- `#submenuicon`: no context. Template option of submenu icon.
|
|
18
|
+
- `#headericon`: no context. Template option of header icon.
|
|
19
|
+
- `#item`: context { $implicit: MenuItem }. Template option of item.
|
|
20
|
+
|
|
21
|
+
Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
|
|
22
|
+
|
|
23
|
+
## Example: Router
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { Component, OnInit, inject } from '@angular/core';
|
|
27
|
+
import { Router } from '@angular/router';
|
|
28
|
+
import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
|
|
29
|
+
import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
|
|
30
|
+
|
|
31
|
+
@Component({
|
|
32
|
+
template: `
|
|
33
|
+
<div class="card flex justify-center">
|
|
34
|
+
<p-panel-menu [model]="items" class="w-full md:w-80" />
|
|
35
|
+
</div>
|
|
36
|
+
`,
|
|
37
|
+
standalone: true,
|
|
38
|
+
imports: [PanelMenu],
|
|
39
|
+
providers: [MessageService]
|
|
40
|
+
})
|
|
41
|
+
export class PanelmenuRouterDemo implements OnInit {
|
|
42
|
+
private router = inject(Router);
|
|
43
|
+
|
|
44
|
+
items: MenuItem[];
|
|
45
|
+
|
|
46
|
+
ngOnInit() {
|
|
47
|
+
this.items = [
|
|
48
|
+
{
|
|
49
|
+
label: 'Router',
|
|
50
|
+
icon: 'pi pi-palette',
|
|
51
|
+
items: [
|
|
52
|
+
{
|
|
53
|
+
label: 'Installation',
|
|
54
|
+
icon: 'pi pi-eraser',
|
|
55
|
+
routerLink: '/installation'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: 'Configuration',
|
|
59
|
+
icon: 'pi pi-heart',
|
|
60
|
+
routerLink: '/configuration'
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: 'Programmatic',
|
|
66
|
+
icon: 'pi pi-link',
|
|
67
|
+
command: () => {
|
|
68
|
+
this.router.navigate(['/installation']);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'External',
|
|
73
|
+
icon: 'pi pi-home',
|
|
74
|
+
items: [
|
|
75
|
+
{
|
|
76
|
+
label: 'Angular',
|
|
77
|
+
icon: 'pi pi-star',
|
|
78
|
+
url: 'https://angular.io/'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: 'Vite.js',
|
|
82
|
+
icon: 'pi pi-bookmark',
|
|
83
|
+
url: 'https://vitejs.dev/'
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
93
|
+
|
|
94
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/panelmenu.md
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Password
|
|
2
|
+
|
|
3
|
+
Password displays strength indicator for password fields.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Password } from '@exhaustive-ui/core/password'; // standalone; or PasswordModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-password`: Password
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `ariaLabel`: `string | undefined`: Defines a string that labels the input for accessibility.
|
|
15
|
+
- `autocomplete`: `string | undefined`: Specify automated assistance in filling out password by browser.
|
|
16
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
17
|
+
- `feedback`: `boolean` = `true`: Whether to show the strength indicator or not.
|
|
18
|
+
- `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
|
|
19
|
+
- `inputId`: `string | undefined`: Identifier of the accessible input element.
|
|
20
|
+
- `inputStyleClass`: `string | undefined`: Style class of the input field.
|
|
21
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
22
|
+
- `mediumLabel`: `string | undefined`: Text for a medium password.
|
|
23
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
24
|
+
- `placeholder`: `string | undefined`: Advisory information to display on input.
|
|
25
|
+
- `promptLabel`: `string | undefined`: Text to prompt password entry.
|
|
26
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
27
|
+
- `showClear`: `boolean` = `false`: When enabled, a clear icon is displayed to clear the value.
|
|
28
|
+
- `size`: `"large" | "small" | undefined`: Specifies the size of the component.
|
|
29
|
+
- `strongLabel`: `string | undefined`: Text for a strong password.
|
|
30
|
+
- `toggleMask`: `boolean | undefined`: Whether to show an icon to display the password as plain text.
|
|
31
|
+
- `variant`: `"filled" | "outlined" | undefined` = `'outlined'`: Specifies the input variant of the component.
|
|
32
|
+
- `weakLabel`: `string | undefined`: Text for a weak password.
|
|
33
|
+
- Other inputs: `appendTo`, `ariaLabelledBy`, `autofocus`, `inputSize`, `inputStyle`, `label`, `max`, `maxlength`, `mediumRegex`, `min`, `minlength`, `motionOptions`, `overlayOptions`, `pattern`, `readonly`, `step`, `strongRegex`, `tabindex`.
|
|
34
|
+
|
|
35
|
+
Outputs:
|
|
36
|
+
- `(onBlur)`: `Event`
|
|
37
|
+
- `(onClear)`: `any`
|
|
38
|
+
- `(onFocus)`: `Event`
|
|
39
|
+
|
|
40
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
41
|
+
- `#content`: no context. Custom template of content.
|
|
42
|
+
- `#footer`: no context. Custom template of footer.
|
|
43
|
+
- `#header`: no context. Custom template of header.
|
|
44
|
+
- `#clearicon`: no context. Custom template of clear icon.
|
|
45
|
+
- `#hideicon`: context { class: string }. Custom template of hide icon.
|
|
46
|
+
- `#showicon`: context { class: string }. Custom template of show icon.
|
|
47
|
+
|
|
48
|
+
Read a context with `let-`: `<ng-template #hideicon let-class="class">` (`$implicit` is the bare `let-x`).
|
|
49
|
+
|
|
50
|
+
### `[pPassword]`: PasswordDirective
|
|
51
|
+
|
|
52
|
+
Adds the password strength meter to a native input: `<input type="password" pPassword />`.
|
|
53
|
+
|
|
54
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
55
|
+
|
|
56
|
+
- Inputs: `disabled`, `feedback`, `fluid`, `invalid`, `mediumLabel`, `mediumRegex`, `name`, `pPasswordPT`, `pPasswordUnstyled`, `promptLabel`, `pSize`, `required`, `showPassword`, `strongLabel`, `strongRegex`, `variant`, `weakLabel`.
|
|
57
|
+
|
|
58
|
+
## Example: Basic
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import { Component } from '@angular/core';
|
|
62
|
+
import { FormsModule } from '@angular/forms';
|
|
63
|
+
import { PasswordModule } from '@exhaustive-ui/core/password';
|
|
64
|
+
|
|
65
|
+
@Component({
|
|
66
|
+
template: `
|
|
67
|
+
<div class="card flex justify-center">
|
|
68
|
+
<p-password [(ngModel)]="value" [feedback]="false" autocomplete="off" ariaLabel="Password" />
|
|
69
|
+
</div>
|
|
70
|
+
`,
|
|
71
|
+
standalone: true,
|
|
72
|
+
imports: [FormsModule, PasswordModule]
|
|
73
|
+
})
|
|
74
|
+
export class PasswordBasicDemo {
|
|
75
|
+
value!: string;
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
80
|
+
|
|
81
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/password.md
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# PickList
|
|
2
|
+
|
|
3
|
+
PickList is used to reorder items between different lists.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { PickList } from '@exhaustive-ui/core/picklist'; // standalone; or PickListModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-pick-list` (also `p-pickList`, `p-picklist`, legacy): PickList
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `breakpoint`: `string` = `'960px'`: Indicates the width of the screen at which the component should change its behavior.
|
|
13
|
+
- `dragdrop`: `boolean` = `false`: Whether to enable dragdrop based reordering.
|
|
14
|
+
- `filterBy`: `string | undefined`: When specified displays an input field to filter the items on keyup and decides which field to search (Accepts multiple fields with a comma).
|
|
15
|
+
- `responsive`: `boolean | undefined`: When enabled orderlist adjusts its controls based on screen size.
|
|
16
|
+
- `scrollHeight`: `string` = `'14rem'`: Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
|
17
|
+
- `source`: `any[]` = `[]` (two-way: `[(${input.name})]`): An array of objects for the source list.
|
|
18
|
+
- `sourceAriaLabel`: `string | undefined`: Defines a string that labels the source list.
|
|
19
|
+
- `sourceFilterPlaceholder`: `string | undefined`: Placeholder text on source filter input.
|
|
20
|
+
- `target`: `any[]` = `[]` (two-way: `[(${input.name})]`): An array of objects for the target list.
|
|
21
|
+
- `targetAriaLabel`: `string | undefined`: Defines a string that labels the target list.
|
|
22
|
+
- `targetFilterPlaceholder`: `string | undefined`: Placeholder text on target filter input.
|
|
23
|
+
- Other inputs: `allLeftButtonAriaLabel`, `allRightButtonAriaLabel`, `ariaSourceFilterLabel`, `ariaTargetFilterLabel`, `autoOptionFocus`, `bottomButtonAriaLabel`, `buttonProps`, `dataKey`, `disabled`, `downButtonAriaLabel`, `filterLocale`, `filterMatchMode`, `hostName`, `keepSelection`, `leftButtonAriaLabel`, `metaKeySelection`, `moveAllToSourceProps`, `moveAllToTargetProps`, `moveBottomButtonProps`, `moveDownButtonProps`, `moveTopButtonProps`, `moveToSourceProps`, `moveToTargetProps`, `moveUpButtonProps`, `rightButtonAriaLabel`, `showSourceControls`, `showSourceFilter`, `showTargetControls`, `showTargetFilter`, `sourceHeader`, `sourceOptionDisabled`, `sourceStyle`, `stripedRows`, `style`, `styleClass`, `tabindex`, `targetHeader`, `targetOptionDisabled`, `targetStyle`, `topButtonAriaLabel`, `upButtonAriaLabel`.
|
|
24
|
+
|
|
25
|
+
Outputs:
|
|
26
|
+
- `(onBlur)`: `Event`
|
|
27
|
+
- `(onFocus)`: `Event`
|
|
28
|
+
- `(onMoveAllToSource)`: `PickListMoveAllToSourceEvent`
|
|
29
|
+
- `(onMoveAllToTarget)`: `PickListMoveAllToTargetEvent`
|
|
30
|
+
- `(onMoveToSource)`: `PickListMoveToSourceEvent`
|
|
31
|
+
- `(onMoveToTarget)`: `PickListMoveToTargetEvent`
|
|
32
|
+
- `(onSourceFilter)`: `PickListSourceFilterEvent`
|
|
33
|
+
- `(onSourceReorder)`: `PickListSourceReorderEvent`
|
|
34
|
+
- `(onSourceSelect)`: `PickListSourceSelectEvent`
|
|
35
|
+
- `(onTargetFilter)`: `PickListTargetFilterEvent`
|
|
36
|
+
- `(onTargetReorder)`: `PickListTargetReorderEvent`
|
|
37
|
+
- `(onTargetSelect)`: `PickListTargetSelectEvent`
|
|
38
|
+
- `(sourceChange)`: `any[]`
|
|
39
|
+
- `(targetChange)`: `any[]`
|
|
40
|
+
|
|
41
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
42
|
+
- `#item`: context { $implicit: any, index: number, selected: boolean, disabled: boolean }. Custom item template.
|
|
43
|
+
- `#sourceHeader`: no context. Custom source header template.
|
|
44
|
+
- `#targetHeader`: no context. Custom target header template.
|
|
45
|
+
- `#sourceFilter`: context { options: PickListFilterOptions }. Custom source filter template.
|
|
46
|
+
- `#targetFilter`: context { options: PickListFilterOptions }. Custom target filter template.
|
|
47
|
+
- `#emptymessagesource`: no context. Custom empty message when source is empty template.
|
|
48
|
+
- `#emptyfiltermessagesource`: no context. Custom empty filter message when source is empty template.
|
|
49
|
+
- `#emptymessagetarget`: no context. Custom empty message when target is empty template.
|
|
50
|
+
- `#emptyfiltermessagetarget`: no context. Custom empty filter message when target is empty template.
|
|
51
|
+
- `#moveupicon`: no context. Custom move up icon template.
|
|
52
|
+
- `#movetopicon`: no context. Custom move top icon template.
|
|
53
|
+
- `#movedownicon`: no context. Custom move down icon template.
|
|
54
|
+
- `#movebottomicon`: no context. Custom move bottom icon template.
|
|
55
|
+
- `#movetotargeticon`: context { $implicit: boolean }. Custom move to target icon template.
|
|
56
|
+
- `#movealltotargeticon`: context { $implicit: boolean }. Custom move all to target icon template.
|
|
57
|
+
- `#movetosourceicon`: context { $implicit: boolean }. Custom move to source icon template.
|
|
58
|
+
- `#movealltosourceicon`: context { $implicit: boolean }. Custom move all to source icon template.
|
|
59
|
+
- `#targetfiltericon`: no context. Custom target filter icon template.
|
|
60
|
+
- `#sourcefiltericon`: no context. Custom source filter icon template.
|
|
61
|
+
|
|
62
|
+
Read a context with `let-`: `<ng-template #item let-item let-index="index" let-selected="selected">` (`$implicit` is the bare `let-x`).
|
|
63
|
+
|
|
64
|
+
Types used in the contexts:
|
|
65
|
+
- `PickListFilterOptions`: { filter?: ((value?: any) => void) | undefined, reset?: (() => void) | undefined }
|
|
66
|
+
|
|
67
|
+
## Example: Basic
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import { Component, inject, OnInit, signal } from '@angular/core';
|
|
71
|
+
import { PickListModule } from '@exhaustive-ui/core/picklist';
|
|
72
|
+
import { Product } from '@/domain/product';
|
|
73
|
+
import { ProductService } from '@/service/productservice';
|
|
74
|
+
|
|
75
|
+
@Component({
|
|
76
|
+
template: `
|
|
77
|
+
<div class="card">
|
|
78
|
+
<p-pick-list [source]="sourceProducts()" [target]="targetProducts()" [dragdrop]="true" [responsive]="true" breakpoint="1400px" sourceAriaLabel="Available products" targetAriaLabel="Selected products">
|
|
79
|
+
<ng-template let-item #item>
|
|
80
|
+
{{ item.name }}
|
|
81
|
+
</ng-template>
|
|
82
|
+
</p-pick-list>
|
|
83
|
+
</div>
|
|
84
|
+
`,
|
|
85
|
+
standalone: true,
|
|
86
|
+
imports: [PickListModule],
|
|
87
|
+
providers: [ProductService]
|
|
88
|
+
})
|
|
89
|
+
export class PicklistBasicDemo implements OnInit {
|
|
90
|
+
private carService = inject(ProductService);
|
|
91
|
+
|
|
92
|
+
sourceProducts = signal<Product[]>([]);
|
|
93
|
+
|
|
94
|
+
targetProducts = signal<Product[]>([]);
|
|
95
|
+
|
|
96
|
+
ngOnInit() {
|
|
97
|
+
this.carService.getProductsSmall().then((products) => {
|
|
98
|
+
this.sourceProducts.set(products);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
105
|
+
|
|
106
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/picklist.md
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Popover
|
|
2
|
+
|
|
3
|
+
Popover is a container component that can overlay other components on page.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Popover } from '@exhaustive-ui/core/popover'; // standalone; or PopoverModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-popover`: Popover
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `ariaLabel`: `string | undefined`: Defines a string that labels the input for accessibility.
|
|
13
|
+
- `style`: `{ [klass: string]: any; } | null | undefined`: Inline style of the component.
|
|
14
|
+
- `styleClass`: `string | undefined`: Style class of the component.
|
|
15
|
+
- Other inputs: `appendTo`, `ariaLabelledBy`, `autoZIndex`, `baseZIndex`, `dismissable`, `focusOnShow`, `motionOptions`.
|
|
16
|
+
|
|
17
|
+
Outputs:
|
|
18
|
+
- `(onHide)`: `any`
|
|
19
|
+
- `(onShow)`: `any`
|
|
20
|
+
|
|
21
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
22
|
+
- `#content`: context { closeCallback: VoidFunction }. Custom content template.
|
|
23
|
+
|
|
24
|
+
Read a context with `let-`: `<ng-template #content let-closeCallback="closeCallback">` (`$implicit` is the bare `let-x`).
|
|
25
|
+
|
|
26
|
+
## Example: Template
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { Component } from '@angular/core';
|
|
30
|
+
import { PopoverModule } from '@exhaustive-ui/core/popover';
|
|
31
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
32
|
+
|
|
33
|
+
@Component({
|
|
34
|
+
template: `
|
|
35
|
+
<div class="card flex justify-center">
|
|
36
|
+
<p-popover #op>
|
|
37
|
+
<ng-template #content>
|
|
38
|
+
<h4>Custom Content</h4>
|
|
39
|
+
</ng-template>
|
|
40
|
+
</p-popover>
|
|
41
|
+
<p-button (click)="op.toggle($event)" icon="pi pi-image" label="Show"></p-button>
|
|
42
|
+
</div>
|
|
43
|
+
`,
|
|
44
|
+
standalone: true,
|
|
45
|
+
imports: [PopoverModule, ButtonModule]
|
|
46
|
+
})
|
|
47
|
+
export class PopoverTemplateDemo {
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
52
|
+
|
|
53
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/popover.md
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# ProgressBar
|
|
2
|
+
|
|
3
|
+
ProgressBar is a process status indicator.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { ProgressBar } from '@exhaustive-ui/core/progressbar'; // standalone; or ProgressBarModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-progress-bar` (also `p-progressBar`, `p-progressbar`, legacy): ProgressBar
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `mode`: `"determinate" | "indeterminate"` = `'determinate'`: Defines the mode of the…
|
|
13
|
+
- `value`: `number | undefined`: Current value of the progress.
|
|
14
|
+
- Other inputs: `ariaLabel`, `ariaLabelledBy`, `color`, `showValue`, `unit`, `valueStyleClass`.
|
|
15
|
+
|
|
16
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
17
|
+
- `#content`: context { $implicit: number | undefined }. Template of the content.
|
|
18
|
+
|
|
19
|
+
Read a context with `let-`: `<ng-template #content let-item>` (`$implicit` is the bare `let-x`).
|
|
20
|
+
|
|
21
|
+
## Example: Basic
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { Component } from '@angular/core';
|
|
25
|
+
import { ProgressBarModule } from '@exhaustive-ui/core/progressbar';
|
|
26
|
+
|
|
27
|
+
@Component({
|
|
28
|
+
template: `
|
|
29
|
+
<div class="card">
|
|
30
|
+
<p-progress-bar aria-label="Task progress" [value]="50" />
|
|
31
|
+
</div>
|
|
32
|
+
`,
|
|
33
|
+
standalone: true,
|
|
34
|
+
imports: [ProgressBarModule]
|
|
35
|
+
})
|
|
36
|
+
export class ProgressbarBasicDemo {
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
41
|
+
|
|
42
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/progressbar.md
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# ProgressSpinner
|
|
2
|
+
|
|
3
|
+
ProgressSpinner is a process status indicator.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { ProgressSpinner } from '@exhaustive-ui/core/progressspinner'; // standalone; or ProgressSpinnerModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-progress-spinner` (also `p-progressSpinner`, `p-progressspinner`, legacy): ProgressSpinner
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `animationDuration`: `string` = `'2s'`: Duration of the rotate animation.
|
|
13
|
+
- `ariaLabel`: `string | undefined`: Used to define a aria label attribute the current element.
|
|
14
|
+
- `fill`: `string` = `'none'`: Color for the background of the circle.
|
|
15
|
+
- `strokeWidth`: `string` = `'2'`: Width of the circle stroke.
|
|
16
|
+
|
|
17
|
+
## Example: Basic
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { Component } from '@angular/core';
|
|
21
|
+
import { ProgressSpinnerModule } from '@exhaustive-ui/core/progressspinner';
|
|
22
|
+
|
|
23
|
+
@Component({
|
|
24
|
+
template: `
|
|
25
|
+
<div class="card flex justify-center">
|
|
26
|
+
<p-progress-spinner ariaLabel="loading" />
|
|
27
|
+
</div>
|
|
28
|
+
`,
|
|
29
|
+
standalone: true,
|
|
30
|
+
imports: [ProgressSpinnerModule]
|
|
31
|
+
})
|
|
32
|
+
export class ProgressspinnerBasicDemo {
|
|
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/progressspinner.md
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# RadioButton
|
|
2
|
+
|
|
3
|
+
RadioButton is an extension to standard radio button element with theming.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { RadioButton } from '@exhaustive-ui/core/radiobutton'; // standalone; or RadioButtonModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-radio-button` (also `p-radioButton`, `p-radiobutton`, legacy): RadioButton
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `ariaLabel`: `string | undefined`: Used to define a string that labels the input element.
|
|
15
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
16
|
+
- `inputId`: `string | undefined`: Identifier of the focus input to match a label defined for the component.
|
|
17
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
18
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
19
|
+
- `size`: `"large" | "small" | undefined`: Specifies the size of the component.
|
|
20
|
+
- `value`: `any`: Value of the radiobutton.
|
|
21
|
+
- `variant`: `"filled" | "outlined" | undefined`: Specifies the input variant of the component.
|
|
22
|
+
- Other inputs: `ariaLabelledBy`, `autofocus`, `binary`, `required`, `tabindex`.
|
|
23
|
+
|
|
24
|
+
Outputs:
|
|
25
|
+
- `(onBlur)`: `Event`
|
|
26
|
+
- `(onClick)`: `RadioButtonClickEvent`
|
|
27
|
+
- `(onFocus)`: `Event`
|
|
28
|
+
|
|
29
|
+
## Example: Invalid
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { Component } from '@angular/core';
|
|
33
|
+
import { FormsModule } from '@angular/forms';
|
|
34
|
+
import { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';
|
|
35
|
+
|
|
36
|
+
@Component({
|
|
37
|
+
template: `
|
|
38
|
+
<div class="card flex justify-center">
|
|
39
|
+
<p-radio-button [(ngModel)]="value" [invalid]="!value" ariaLabel="Option" />
|
|
40
|
+
</div>
|
|
41
|
+
`,
|
|
42
|
+
standalone: true,
|
|
43
|
+
imports: [FormsModule, RadioButtonModule]
|
|
44
|
+
})
|
|
45
|
+
export class RadiobuttonInvalidDemo {
|
|
46
|
+
value: boolean = false;
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
51
|
+
|
|
52
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/radiobutton.md
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Rating
|
|
2
|
+
|
|
3
|
+
Rating is an extension to standard radio button element with theming.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Rating } from '@exhaustive-ui/core/rating'; // standalone; or RatingModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-rating`: Rating
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
15
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
16
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
17
|
+
- `readonly`: `boolean | undefined`: When present, changing the value is not possible.
|
|
18
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
19
|
+
- `stars`: `number` = `5`: Number of stars.
|
|
20
|
+
- Other inputs: `autofocus`, `iconOffClass`, `iconOffStyle`, `iconOnClass`, `iconOnStyle`.
|
|
21
|
+
|
|
22
|
+
Outputs:
|
|
23
|
+
- `(onBlur)`: `FocusEvent`
|
|
24
|
+
- `(onFocus)`: `FocusEvent`
|
|
25
|
+
- `(onRate)`: `RatingRateEvent`
|
|
26
|
+
|
|
27
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
28
|
+
- `#onicon`: context { $implicit: number, class: string }. Custom on icon template.
|
|
29
|
+
- `#officon`: context { $implicit: number, class: string }. Custom off icon template.
|
|
30
|
+
|
|
31
|
+
Read a context with `let-`: `<ng-template #onicon let-item let-class="class">` (`$implicit` is the bare `let-x`).
|
|
32
|
+
|
|
33
|
+
## Example: Basic
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
import { Component } from '@angular/core';
|
|
37
|
+
import { FormsModule } from '@angular/forms';
|
|
38
|
+
import { RatingModule } from '@exhaustive-ui/core/rating';
|
|
39
|
+
|
|
40
|
+
@Component({
|
|
41
|
+
template: `
|
|
42
|
+
<div class="card flex justify-center">
|
|
43
|
+
<p-rating [(ngModel)]="value" />
|
|
44
|
+
</div>
|
|
45
|
+
`,
|
|
46
|
+
standalone: true,
|
|
47
|
+
imports: [FormsModule, RatingModule]
|
|
48
|
+
})
|
|
49
|
+
export class RatingBasicDemo {
|
|
50
|
+
value!: number;
|
|
51
|
+
}
|
|
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/rating.md
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Ripple
|
|
2
|
+
|
|
3
|
+
Ripple directive adds ripple effect to the host element.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Ripple } from '@exhaustive-ui/core/ripple'; // standalone; or RippleModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `[pRipple]`: Ripple
|
|
10
|
+
|
|
11
|
+
## Example: Default
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Component } from '@angular/core';
|
|
15
|
+
import { RippleModule } from '@exhaustive-ui/core/ripple';
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
template: `
|
|
19
|
+
<div class="card flex flex-col items-center gap-4">
|
|
20
|
+
<span
|
|
21
|
+
>Ripple option at the
|
|
22
|
+
<span class="mx-1 h-8 w-8 rounded-border inline-flex items-center justify-center bg-primary text-primary-contrast"><i class="pi pi-palette"></i></span>
|
|
23
|
+
configurator needs to be turned on for the demo.</span
|
|
24
|
+
>
|
|
25
|
+
<div pRipple class="ripple-box">Default</div>
|
|
26
|
+
</div>
|
|
27
|
+
`,
|
|
28
|
+
standalone: true,
|
|
29
|
+
imports: [RippleModule]
|
|
30
|
+
})
|
|
31
|
+
export class RippleDefaultDemo {
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
36
|
+
|
|
37
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/ripple.md
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Virtual Scroller
|
|
2
|
+
|
|
3
|
+
Scroller is a performance-approach to handle huge data efficiently.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Scroller } from '@exhaustive-ui/core/scroller'; // standalone; or ScrollerModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-scroller` (also `p-virtualscroller`, `p-virtual-scroller`, `p-virtualScroller`, legacy): Scroller
|
|
10
|
+
|
|
11
|
+
- Inputs: `appendOnly`, `autoSize`, `columns`, `delay`, `disabled`, `hostName`, `id`, `inline`, `items`, `itemSize`, `lazy`, `loaderDisabled`, `loading`, `numToleratedItems`, `options`, `orientation`, `resizeDelay`, `scrollHeight`, `scrollWidth`, `showLoader`, `showSpacer`, `step`, `style`, `styleClass`, `tabindex`, `trackBy`.
|
|
12
|
+
|
|
13
|
+
Outputs:
|
|
14
|
+
- `(onLazyLoad)`: `ScrollerLazyLoadEvent`
|
|
15
|
+
- `(onScroll)`: `ScrollerScrollEvent`
|
|
16
|
+
- `(onScrollIndexChange)`: `ScrollerScrollIndexChangeEvent`
|
|
17
|
+
|
|
18
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
19
|
+
- `#content`: context { $implicit: any, options: ScrollerContentOptions }. Content template of the component.
|
|
20
|
+
- `#item`: context { $implicit: any, options: ScrollerItemOptions }. Item template of the component.
|
|
21
|
+
- `#loader`: context { options: ScrollerLoaderOptions }. Loader template of the component.
|
|
22
|
+
- `#loadericon`: context { options: ScrollerLoaderIconOptions }. Loader icon template of the component.
|
|
23
|
+
|
|
24
|
+
Read a context with `let-`: `<ng-template #content let-item let-options="options">` (`$implicit` is the bare `let-x`).
|
|
25
|
+
|
|
26
|
+
Types used in the contexts:
|
|
27
|
+
- `ScrollerItemOptions`: { index?: number | undefined, count?: number | undefined, first?: boolean | undefined, last?: boolean | undefined, even?: boolean | undefined, odd?: boolean | undefined }
|
|
28
|
+
- `ScrollerLoaderOptions`: { index?: number | undefined, count?: number | undefined, first?: boolean | undefined, last?: boolean | undefined, even?: boolean | undefined, odd?: boolean | undefined }
|
|
29
|
+
|
|
30
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
31
|
+
|
|
32
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/scroller.md
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Scroll Panel
|
|
2
|
+
|
|
3
|
+
ScrollPanel is a cross browser, lightweight and themable alternative to native browser scrollbar.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { ScrollPanel } from '@exhaustive-ui/core/scrollpanel'; // standalone; or ScrollPanelModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-scroll-panel` (also `p-scrollPanel`, `p-scrollpanel`, legacy): ScrollPanel
|
|
10
|
+
|
|
11
|
+
- Inputs: `step`.
|
|
12
|
+
|
|
13
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
14
|
+
- `#content`: no context. Custom content template.
|
|
15
|
+
|
|
16
|
+
## Example: Basic
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { Component } from '@angular/core';
|
|
20
|
+
import { ScrollPanelModule } from '@exhaustive-ui/core/scrollpanel';
|
|
21
|
+
|
|
22
|
+
@Component({
|
|
23
|
+
template: `
|
|
24
|
+
<div class="card">
|
|
25
|
+
<p-scroll-panel [style]="{ width: '100%', height: '150px' }">
|
|
26
|
+
<p>
|
|
27
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
28
|
+
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.
|
|
29
|
+
</p>
|
|
30
|
+
<p>
|
|
31
|
+
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
|
|
32
|
+
ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
|
|
33
|
+
</p>
|
|
34
|
+
<p class="m-0">
|
|
35
|
+
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui
|
|
36
|
+
officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
|
|
37
|
+
</p>
|
|
38
|
+
</p-scroll-panel>
|
|
39
|
+
</div>
|
|
40
|
+
`,
|
|
41
|
+
standalone: true,
|
|
42
|
+
imports: [ScrollPanelModule]
|
|
43
|
+
})
|
|
44
|
+
export class ScrollpanelBasicDemo {
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
49
|
+
|
|
50
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/scrollpanel.md
|