@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,48 @@
|
|
|
1
|
+
# Scroll Top
|
|
2
|
+
|
|
3
|
+
ScrollTop gets displayed after a certain scroll position and used to navigates to the top of the page quickly.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { ScrollTop } from '@exhaustive-ui/core/scrolltop'; // standalone; or ScrollTopModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-scroll-top` (also `p-scrollTop`, `p-scrolltop`, legacy): ScrollTop
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `buttonAriaLabel`: `string | undefined`: Establishes a string value that labels the scroll-top button.
|
|
13
|
+
- `buttonProps`: `ButtonProps` = `{ rounded: true }`: Used to pass all properties of the ButtonProps to the Button component.
|
|
14
|
+
- `icon`: `string | undefined`: Name of the icon or JSX.Element for icon.
|
|
15
|
+
- `style`: `{ [klass: string]: any; } | null | undefined`: Inline style of the element.
|
|
16
|
+
- `target`: `"window" | "parent" | undefined` = `'window'`: Target of the ScrollTop.
|
|
17
|
+
- `threshold`: `number` = `400`: Defines the threshold value of the vertical scroll position of the target to toggle the visibility.
|
|
18
|
+
- Other inputs: `behavior`, `motionOptions`, `styleClass`.
|
|
19
|
+
|
|
20
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
21
|
+
- `#icon`: context { styleClass: string }. Custom icon template.
|
|
22
|
+
|
|
23
|
+
Read a context with `let-`: `<ng-template #icon let-styleClass="styleClass">` (`$implicit` is the bare `let-x`).
|
|
24
|
+
|
|
25
|
+
## Example: Basic
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { Component } from '@angular/core';
|
|
29
|
+
import { ScrollTopModule } from '@exhaustive-ui/core/scrolltop';
|
|
30
|
+
|
|
31
|
+
@Component({
|
|
32
|
+
template: `
|
|
33
|
+
<div class="card flex flex-col items-center">
|
|
34
|
+
<p>Scroll down the page to display the ScrollTo component.</p>
|
|
35
|
+
<i class="pi pi-angle-down animate-fadeout animate-duration-1000 animate-infinite" style="fontsize: 2rem; margin-bottom: 30rem"></i>
|
|
36
|
+
<p-scroll-top buttonAriaLabel="Scroll to top" />
|
|
37
|
+
</div>
|
|
38
|
+
`,
|
|
39
|
+
standalone: true,
|
|
40
|
+
imports: [ScrollTopModule]
|
|
41
|
+
})
|
|
42
|
+
export class ScrolltopBasicDemo {
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
47
|
+
|
|
48
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/scrolltop.md
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Select
|
|
2
|
+
|
|
3
|
+
Select is used to choose an item from a collection of options.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Select } from '@exhaustive-ui/core/select'; // standalone; or SelectModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-select`: Select
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `checkmark`: `boolean` = `false`: Whether the selected option will be shown with a check mark.
|
|
15
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
16
|
+
- `editable`: `boolean | undefined`: When present, custom value instead of predefined options can be entered using the editable input field.
|
|
17
|
+
- `filter`: `boolean | undefined`: When specified, displays an input field to filter the items on keyup.
|
|
18
|
+
- `filterBy`: `string | undefined`: When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
|
|
19
|
+
- `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
|
|
20
|
+
- `group`: `boolean | undefined`: Whether to display options as grouped when nested options are provided.
|
|
21
|
+
- `inputId`: `string | undefined`: Identifier of the accessible input element.
|
|
22
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
23
|
+
- `loading`: `boolean | undefined` = `false`: Whether the select is in loading state.
|
|
24
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
25
|
+
- `optionLabel`: `string | undefined`: Name of the label field of an option.
|
|
26
|
+
- `options`: `any[] | null | undefined`: An array of objects to display as the available options.
|
|
27
|
+
- `placeholder`: `string | undefined`: Default text to display when no option is selected.
|
|
28
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
29
|
+
- `showClear`: `boolean | undefined`: When enabled, a clear icon is displayed to clear the value.
|
|
30
|
+
- `size`: `"large" | "small" | undefined`: Specifies the size of the component.
|
|
31
|
+
- `variant`: `"filled" | "outlined" | undefined` = `'outlined'`: Specifies the input variant of the component.
|
|
32
|
+
- `virtualScroll`: `boolean | undefined`: Whether the data should be loaded on demand during scroll.
|
|
33
|
+
- `virtualScrollItemSize`: `number | undefined`: Height of an item in the list for VirtualScrolling.
|
|
34
|
+
- `virtualScrollOptions`: `ScrollerOptions | undefined`: Whether to use the scroller feature.
|
|
35
|
+
- Other inputs: `appendTo`, `ariaFilterLabel`, `ariaLabel`, `ariaLabelledBy`, `autofocus`, `autofocusFilter`, `autoOptionFocus`, `dataKey`, `dropdownIcon`, `emptyFilterMessage`, `emptyMessage`, `filterFields`, `filterLocale`, `filterMatchMode`, `filterPlaceholder`, `filterValue`, `focusOnHover`, `id`, `inputSize`, `lazy`, `loadingIcon`, `max`, `maxlength`, `min`, `minlength`, `motionOptions`, `optionDisabled`, `optionGroupChildren`, `optionGroupLabel`, `optionValue`, `overlayOptions`, `panelStyle`, `panelStyleClass`, `pattern`, `readonly`, `resetFilterOnHide`, `scrollHeight`, `selectOnFocus`, `step`, `tabindex`, `tooltip`, `tooltipPosition`, `tooltipPositionStyle`, `tooltipStyleClass`.
|
|
36
|
+
|
|
37
|
+
Outputs:
|
|
38
|
+
- `(onBlur)`: `Event`
|
|
39
|
+
- `(onChange)`: `SelectChangeEvent`
|
|
40
|
+
- `(onClear)`: `Event | undefined`
|
|
41
|
+
- `(onClick)`: `MouseEvent`
|
|
42
|
+
- `(onFilter)`: `SelectFilterEvent`
|
|
43
|
+
- `(onFocus)`: `Event`
|
|
44
|
+
- `(onHide)`: `AnimationEvent`
|
|
45
|
+
- `(onLazyLoad)`: `SelectLazyLoadEvent`
|
|
46
|
+
- `(onShow)`: `AnimationEvent`
|
|
47
|
+
|
|
48
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
49
|
+
- `#item`: context { $implicit: T }. Custom item template.
|
|
50
|
+
- `#group`: context { $implicit: T }. Custom group template.
|
|
51
|
+
- `#loader`: context { options: ScrollerOptions }. Custom loader template.
|
|
52
|
+
- `#selectedItem`: context { $implicit: T }. Custom selected item template.
|
|
53
|
+
- `#header`: no context. Custom header template.
|
|
54
|
+
- `#filter`: context { options: SelectFilterOptions }. Custom filter template.
|
|
55
|
+
- `#footer`: no context. Custom footer template.
|
|
56
|
+
- `#emptyfilter`: no context. Custom empty filter template.
|
|
57
|
+
- `#empty`: no context. Custom empty template.
|
|
58
|
+
- `#dropdownicon`: context { class: string }. Custom dropdown icon template.
|
|
59
|
+
- `#loadingicon`: no context. Custom loading icon template.
|
|
60
|
+
- `#clearicon`: context { class: string }. Custom clear icon template.
|
|
61
|
+
- `#filtericon`: no context. Custom filter icon template.
|
|
62
|
+
|
|
63
|
+
Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
|
|
64
|
+
|
|
65
|
+
Types used in the contexts:
|
|
66
|
+
- `SelectFilterOptions`: { filter?: ((value?: any) => void) | undefined, reset?: (() => void) | undefined }
|
|
67
|
+
|
|
68
|
+
## Example: Basic
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import { Component, OnInit } from '@angular/core';
|
|
72
|
+
import { FormsModule } from '@angular/forms';
|
|
73
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
74
|
+
|
|
75
|
+
interface City {
|
|
76
|
+
name: string;
|
|
77
|
+
code: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@Component({
|
|
81
|
+
template: `
|
|
82
|
+
<div class="card flex justify-center">
|
|
83
|
+
<p-select [options]="cities" [(ngModel)]="selectedCity" optionLabel="name" placeholder="Select a City" class="w-full md:w-56" />
|
|
84
|
+
</div>
|
|
85
|
+
`,
|
|
86
|
+
standalone: true,
|
|
87
|
+
imports: [FormsModule, SelectModule]
|
|
88
|
+
})
|
|
89
|
+
export class SelectBasicDemo implements OnInit {
|
|
90
|
+
cities: City[];
|
|
91
|
+
|
|
92
|
+
selectedCity: City | undefined;
|
|
93
|
+
|
|
94
|
+
ngOnInit() {
|
|
95
|
+
this.cities = [
|
|
96
|
+
{ name: 'New York', code: 'NY' },
|
|
97
|
+
{ name: 'Rome', code: 'RM' },
|
|
98
|
+
{ name: 'London', code: 'LDN' },
|
|
99
|
+
{ name: 'Istanbul', code: 'IST' },
|
|
100
|
+
{ name: 'Paris', code: 'PRS' }
|
|
101
|
+
];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
107
|
+
|
|
108
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/select.md
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# SelectButton
|
|
2
|
+
|
|
3
|
+
SelectButton is used to choose single or multiple items from a list using buttons.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { SelectButton } from '@exhaustive-ui/core/selectbutton'; // standalone; or SelectButtonModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-select-button` (also `p-selectButton`, `p-selectbutton`, legacy): SelectButton
|
|
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
|
+
- `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
|
|
16
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
17
|
+
- `multiple`: `boolean | undefined`: When specified, allows selecting multiple values.
|
|
18
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
19
|
+
- `optionDisabled`: `string | undefined`: Name of the disabled field of an option.
|
|
20
|
+
- `optionLabel`: `string | undefined`: Name of the label field of an option.
|
|
21
|
+
- `options`: `any[] | undefined`: An array of selectitems to display as the available options.
|
|
22
|
+
- `optionValue`: `string | undefined`: Name of the value field of an option.
|
|
23
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
24
|
+
- `size`: `"large" | "small" | undefined`: Specifies the size of the component.
|
|
25
|
+
- Other inputs: `allowEmpty`, `ariaLabelledBy`, `autofocus`, `dataKey`, `styleClass`, `unselectable`.
|
|
26
|
+
|
|
27
|
+
Outputs:
|
|
28
|
+
- `(onChange)`: `SelectButtonChangeEvent`
|
|
29
|
+
- `(onOptionClick)`: `SelectButtonOptionClickEvent`
|
|
30
|
+
|
|
31
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
32
|
+
- `#item`: context { $implicit: any, index: number }. Custom item template.
|
|
33
|
+
|
|
34
|
+
Read a context with `let-`: `<ng-template #item let-item let-index="index">` (`$implicit` is the bare `let-x`).
|
|
35
|
+
|
|
36
|
+
## Example: Basic
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { Component } from '@angular/core';
|
|
40
|
+
import { FormsModule } from '@angular/forms';
|
|
41
|
+
import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
|
|
42
|
+
|
|
43
|
+
@Component({
|
|
44
|
+
template: `
|
|
45
|
+
<div class="card flex justify-center">
|
|
46
|
+
<p-select-button [options]="stateOptions" [(ngModel)]="value" optionLabel="label" optionValue="value" aria-labelledby="basic" />
|
|
47
|
+
</div>
|
|
48
|
+
`,
|
|
49
|
+
standalone: true,
|
|
50
|
+
imports: [FormsModule, SelectButtonModule]
|
|
51
|
+
})
|
|
52
|
+
export class SelectbuttonBasicDemo {
|
|
53
|
+
stateOptions: any[] = [
|
|
54
|
+
{ label: 'One-Way', value: 'one-way' },
|
|
55
|
+
{ label: 'Return', value: 'return' }
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
value: string = 'one-way';
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
63
|
+
|
|
64
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/selectbutton.md
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Skeleton
|
|
2
|
+
|
|
3
|
+
Skeleton is a placeholder to display instead of the actual content.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Skeleton } from '@exhaustive-ui/core/skeleton'; // standalone; or SkeletonModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-skeleton`: Skeleton
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `borderRadius`: `string | undefined`: Border radius of the element, defaults to value from theme.
|
|
13
|
+
- `height`: `string` = `'1rem'`: Height of the element.
|
|
14
|
+
- `shape`: `string` = `'rectangle'`: Shape of the element.
|
|
15
|
+
- `size`: `string | undefined`: Size of the skeleton.
|
|
16
|
+
- `width`: `string` = `'100%'`: Width of the element.
|
|
17
|
+
- Other inputs: `animation`.
|
|
18
|
+
|
|
19
|
+
## Example: Card
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { Component } from '@angular/core';
|
|
23
|
+
import { SkeletonModule } from '@exhaustive-ui/core/skeleton';
|
|
24
|
+
|
|
25
|
+
@Component({
|
|
26
|
+
template: `
|
|
27
|
+
<div class="card">
|
|
28
|
+
<div class="rounded-sm border border-surface-200 dark:border-surface-700 p-6 bg-surface-0 dark:bg-surface-900">
|
|
29
|
+
<div class="flex mb-4">
|
|
30
|
+
<p-skeleton shape="circle" size="4rem" class="mr-2" />
|
|
31
|
+
<div>
|
|
32
|
+
<p-skeleton width="10rem" class="mb-2" />
|
|
33
|
+
<p-skeleton width="5rem" class="mb-2" />
|
|
34
|
+
<p-skeleton height=".5rem" />
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<p-skeleton width="100%" height="150px" />
|
|
38
|
+
<div class="flex justify-between mt-4">
|
|
39
|
+
<p-skeleton width="4rem" height="2rem" />
|
|
40
|
+
<p-skeleton width="4rem" height="2rem" />
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
`,
|
|
45
|
+
standalone: true,
|
|
46
|
+
imports: [SkeletonModule]
|
|
47
|
+
})
|
|
48
|
+
export class SkeletonCardDemo {
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
53
|
+
|
|
54
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/skeleton.md
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Slider
|
|
2
|
+
|
|
3
|
+
Slider is a component to provide input with a drag handle.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Slider } from '@exhaustive-ui/core/slider'; // standalone; or SliderModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-slider`: Slider
|
|
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
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
16
|
+
- `max`: `number` = `100`: Maximum boundary value.
|
|
17
|
+
- `min`: `number` = `0`: Mininum boundary value.
|
|
18
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
19
|
+
- `orientation`: `"vertical" | "horizontal"` = `'horizontal'`: Orientation of the slider.
|
|
20
|
+
- `range`: `boolean | undefined`: When specified, allows two boundary values to be picked.
|
|
21
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
22
|
+
- `step`: `number | undefined`: Step factor to increment/decrement the value.
|
|
23
|
+
- Other inputs: `animate`, `ariaLabelledBy`, `autofocus`, `disabled`, `tabindex`.
|
|
24
|
+
|
|
25
|
+
Outputs:
|
|
26
|
+
- `(onChange)`: `SliderChangeEvent`
|
|
27
|
+
- `(onSlideEnd)`: `SliderSlideEndEvent`
|
|
28
|
+
|
|
29
|
+
## Example: Basic
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { Component } from '@angular/core';
|
|
33
|
+
import { FormsModule } from '@angular/forms';
|
|
34
|
+
import { SliderModule } from '@exhaustive-ui/core/slider';
|
|
35
|
+
|
|
36
|
+
@Component({
|
|
37
|
+
template: `
|
|
38
|
+
<div class="card flex justify-center">
|
|
39
|
+
<p-slider [(ngModel)]="value" class="w-56" ariaLabel="Volume" />
|
|
40
|
+
</div>
|
|
41
|
+
`,
|
|
42
|
+
standalone: true,
|
|
43
|
+
imports: [FormsModule, SliderModule]
|
|
44
|
+
})
|
|
45
|
+
export class SliderBasicDemo {
|
|
46
|
+
value!: number;
|
|
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/slider.md
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Speed Dial
|
|
2
|
+
|
|
3
|
+
When pressed, a floating action button can display multiple primary actions that can be performed on a page.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { SpeedDial } from '@exhaustive-ui/core/speeddial'; // standalone; or SpeedDialModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-speed-dial` (also `p-speeddial`, `p-speedDial`, legacy): SpeedDial
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `ariaLabel`: `string | undefined`: Defines a string value that labels an interactive element.
|
|
13
|
+
- `buttonProps`: `ButtonProps | undefined`: Used to pass all properties of the ButtonProps to the Button component.
|
|
14
|
+
- `direction`: `"left" | "right" | "up" | "down" | "up-left" | "up-right" | "down-left" | "down-right" | undefined` = `'up'`: Specifies the opening direction of actions.
|
|
15
|
+
- `id`: `string | undefined`: List of items id.
|
|
16
|
+
- `mask`: `boolean` = `false`: Whether to show a mask element behind the speeddial.
|
|
17
|
+
- `model`: `MenuItem[] | null`: MenuModel instance to define the action items.
|
|
18
|
+
- `radius`: `number` = `0`: Radius for *circle types.
|
|
19
|
+
- `style`: `{ [klass: string]: any; } | null | undefined`: Inline style of the element.
|
|
20
|
+
- `tooltipOptions`: `TooltipOptions | undefined`: Whether to display the tooltip on items.
|
|
21
|
+
- `transitionDelay`: `number` = `30`: Transition delay step for each action item.
|
|
22
|
+
- `type`: `"circle" | "linear" | "semi-circle" | "quarter-circle" | undefined` = `'linear'`: Specifies the opening type of actions.
|
|
23
|
+
- Other inputs: `ariaLabelledBy`, `buttonClassName`, `buttonStyle`, `className`, `disabled`, `hideIcon`, `hideOnClickOutside`, `maskClassName`, `maskStyle`, `rotateAnimation`, `showIcon`, `visible`.
|
|
24
|
+
|
|
25
|
+
Outputs:
|
|
26
|
+
- `(onClick)`: `MouseEvent`
|
|
27
|
+
- `(onHide)`: `Event | undefined`
|
|
28
|
+
- `(onShow)`: `Event | undefined`
|
|
29
|
+
- `(onVisibleChange)`: `boolean`
|
|
30
|
+
- `(visibleChange)`: `boolean`
|
|
31
|
+
|
|
32
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
33
|
+
- `#button`: context { toggleCallback: (event: MouseEvent) => void }. Custom button template.
|
|
34
|
+
- `#item`: context { $implicit: MenuItem, index: number, toggleCallback: (event: Event, item: MenuItem) => void }. Custom item template.
|
|
35
|
+
- `#icon`: no context. Custom icon template.
|
|
36
|
+
|
|
37
|
+
Read a context with `let-`: `<ng-template #button let-toggleCallback="toggleCallback">` (`$implicit` is the bare `let-x`).
|
|
38
|
+
|
|
39
|
+
## Example: Mask
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
import { Component, OnInit, inject } from '@angular/core';
|
|
43
|
+
import { RouterModule } from '@angular/router';
|
|
44
|
+
import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
|
|
45
|
+
import { SpeedDialModule } from '@exhaustive-ui/core/speeddial';
|
|
46
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
47
|
+
|
|
48
|
+
@Component({
|
|
49
|
+
template: `
|
|
50
|
+
<div class="card p-4">
|
|
51
|
+
<div [style]="{ position: 'relative', height: '350px' }">
|
|
52
|
+
<p-toast />
|
|
53
|
+
<p-speed-dial [model]="items" ariaLabel="Actions" direction="up" mask [style]="{ position: 'absolute', right: '1rem', bottom: '1rem' }" />
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
`,
|
|
57
|
+
standalone: true,
|
|
58
|
+
imports: [SpeedDialModule, ToastModule, RouterModule],
|
|
59
|
+
providers: [MessageService]
|
|
60
|
+
})
|
|
61
|
+
export class SpeeddialMaskDemo implements OnInit {
|
|
62
|
+
private messageService = inject(MessageService);
|
|
63
|
+
|
|
64
|
+
items: MenuItem[] | undefined;
|
|
65
|
+
|
|
66
|
+
ngOnInit() {
|
|
67
|
+
this.items = [
|
|
68
|
+
{
|
|
69
|
+
icon: 'pi pi-pencil',
|
|
70
|
+
command: () => {
|
|
71
|
+
this.messageService.add({ severity: 'info', summary: 'Add', detail: 'Data Added' });
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
icon: 'pi pi-refresh',
|
|
76
|
+
command: () => {
|
|
77
|
+
this.messageService.add({ severity: 'success', summary: 'Update', detail: 'Data Updated' });
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
icon: 'pi pi-trash',
|
|
82
|
+
command: () => {
|
|
83
|
+
this.messageService.add({ severity: 'error', summary: 'Delete', detail: 'Data Deleted' });
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
icon: 'pi pi-upload',
|
|
88
|
+
routerLink: ['/fileupload']
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
icon: 'pi pi-external-link',
|
|
92
|
+
target: '_blank',
|
|
93
|
+
url: 'https://angular.dev'
|
|
94
|
+
}
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
101
|
+
|
|
102
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/speeddial.md
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# SplitButton
|
|
2
|
+
|
|
3
|
+
SplitButton groups a set of commands in an overlay with a default command.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { SplitButton } from '@exhaustive-ui/core/splitbutton'; // standalone; or SplitButtonModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-split-button` (also `p-splitbutton`, `p-splitButton`, legacy): SplitButton
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the element should be disabled.
|
|
13
|
+
- `dropdownIcon`: `string | undefined`: Name of the dropdown icon.
|
|
14
|
+
- `icon`: `string | undefined`: Name of the icon.
|
|
15
|
+
- `label`: `string | undefined`: Text of the button.
|
|
16
|
+
- `model`: `MenuItem[] | undefined`: MenuModel instance to define the overlay items.
|
|
17
|
+
- `outlined`: `boolean` = `false`: Add a border class without a background initially.
|
|
18
|
+
- `raised`: `boolean` = `false`: Add a shadow to indicate elevation.
|
|
19
|
+
- `rounded`: `boolean` = `false`: Add a circular border radius to the button.
|
|
20
|
+
- `severity`: `ButtonSeverity`: Defines the style of the button.
|
|
21
|
+
- `size`: `"large" | "small" | null | undefined`: Defines the size of the button.
|
|
22
|
+
- `text`: `boolean` = `false`: Add a textual class to the button without a background initially.
|
|
23
|
+
- Other inputs: `appendTo`, `autofocus`, `buttonDisabled`, `buttonProps`, `expandAriaLabel`, `iconPos`, `menuButtonDisabled`, `menuButtonProps`, `menuStyle`, `menuStyleClass`, `motionOptions`, `tabindex`, `tooltip`, `tooltipOptions`.
|
|
24
|
+
|
|
25
|
+
Outputs:
|
|
26
|
+
- `(onClick)`: `MouseEvent`
|
|
27
|
+
- `(onDropdownClick)`: `MouseEvent | undefined`
|
|
28
|
+
- `(onMenuHide)`: `any`
|
|
29
|
+
- `(onMenuShow)`: `any`
|
|
30
|
+
|
|
31
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
32
|
+
- `#content`: no context. Custom content template.
|
|
33
|
+
- `#dropdownicon`: no context. Custom dropdown icon template.
|
|
34
|
+
|
|
35
|
+
## Example: Basic
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import { Component, inject } from '@angular/core';
|
|
39
|
+
import { RouterModule } from '@angular/router';
|
|
40
|
+
import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
|
|
41
|
+
import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
|
|
42
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
43
|
+
|
|
44
|
+
@Component({
|
|
45
|
+
template: `
|
|
46
|
+
<div class="card flex justify-center">
|
|
47
|
+
<p-toast />
|
|
48
|
+
<p-split-button label="Save" (onClick)="save()" [model]="items" />
|
|
49
|
+
</div>
|
|
50
|
+
`,
|
|
51
|
+
standalone: true,
|
|
52
|
+
imports: [SplitButtonModule, ToastModule, RouterModule],
|
|
53
|
+
providers: [MessageService]
|
|
54
|
+
})
|
|
55
|
+
export class SplitbuttonBasicDemo {
|
|
56
|
+
private messageService = inject(MessageService);
|
|
57
|
+
|
|
58
|
+
items: MenuItem[];
|
|
59
|
+
|
|
60
|
+
constructor() {
|
|
61
|
+
this.items = [
|
|
62
|
+
{
|
|
63
|
+
label: 'Update',
|
|
64
|
+
command: () => {
|
|
65
|
+
this.update();
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: 'Delete',
|
|
70
|
+
command: () => {
|
|
71
|
+
this.delete();
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{ label: 'Angular.dev', url: 'https://angular.dev' },
|
|
75
|
+
{ separator: true },
|
|
76
|
+
{ label: 'Upload', routerLink: ['/fileupload'] }
|
|
77
|
+
];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
save() {
|
|
81
|
+
this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Data Saved' });
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
update() {
|
|
85
|
+
this.messageService.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated' });
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
delete() {
|
|
89
|
+
this.messageService.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted' });
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
95
|
+
|
|
96
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/splitbutton.md
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Splitter
|
|
2
|
+
|
|
3
|
+
Splitter is utilized to separate and resize panels.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Splitter } from '@exhaustive-ui/core/splitter'; // standalone; or SplitterModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-splitter`: Splitter
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `layout`: `string | undefined` = `'horizontal'`: Orientation of the panels.
|
|
13
|
+
- `minSizes`: `number[]` = `[]`: Minimum size of the elements relative to 100%.
|
|
14
|
+
- `panelSizes`: `number[]` = `[]`: Size of the elements relative to 100%.
|
|
15
|
+
- Other inputs: `gutterSize`, `maxSizes`, `panelStyle`, `panelStyleClass`, `stateKey`, `stateStorage`, `step`.
|
|
16
|
+
|
|
17
|
+
Outputs:
|
|
18
|
+
- `(onResizeEnd)`: `SplitterResizeEndEvent`
|
|
19
|
+
- `(onResizeStart)`: `SplitterResizeStartEvent`
|
|
20
|
+
|
|
21
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
22
|
+
- `#panel`: no context. Content of a panel.
|
|
23
|
+
|
|
24
|
+
## Example: Horizontal
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { Component } from '@angular/core';
|
|
28
|
+
import { SplitterModule } from '@exhaustive-ui/core/splitter';
|
|
29
|
+
|
|
30
|
+
@Component({
|
|
31
|
+
template: `
|
|
32
|
+
<div class="card">
|
|
33
|
+
<p-splitter [style]="{ height: '300px' }" class="mb-8">
|
|
34
|
+
<ng-template #panel>
|
|
35
|
+
<div class="flex items-center justify-center h-full">Panel 1</div>
|
|
36
|
+
</ng-template>
|
|
37
|
+
<ng-template #panel>
|
|
38
|
+
<div class="flex items-center justify-center h-full">Panel 2</div>
|
|
39
|
+
</ng-template>
|
|
40
|
+
</p-splitter>
|
|
41
|
+
</div>
|
|
42
|
+
`,
|
|
43
|
+
standalone: true,
|
|
44
|
+
imports: [SplitterModule]
|
|
45
|
+
})
|
|
46
|
+
export class SplitterHorizontalDemo {
|
|
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/splitter.md
|