@exhaustive-ui/mcp 22.3.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/blockui.md +1 -1
- package/data/components/checkbox.md +0 -24
- package/data/components/confirmdialog.md +1 -1
- package/data/components/dialog.md +2 -2
- package/data/components/dock.md +2 -2
- package/data/components/editor.md +1 -1
- package/data/components/fileupload.md +1 -1
- 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 +3 -3
- package/data/components.json +34 -30
- package/data/llms-full.txt +57 -50
- package/data/llms.txt +100 -96
- package/data/manifest.json +196 -24
- 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,107 @@
|
|
|
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: [SelectModule, FormsModule]
|
|
88
|
+
})
|
|
89
|
+
export class SelectBasicDemo implements OnInit {
|
|
90
|
+
cities: City[];
|
|
91
|
+
selectedCity: City | undefined;
|
|
92
|
+
|
|
93
|
+
ngOnInit() {
|
|
94
|
+
this.cities = [
|
|
95
|
+
{ name: 'New York', code: 'NY' },
|
|
96
|
+
{ name: 'Rome', code: 'RM' },
|
|
97
|
+
{ name: 'London', code: 'LDN' },
|
|
98
|
+
{ name: 'Istanbul', code: 'IST' },
|
|
99
|
+
{ name: 'Paris', code: 'PRS' }
|
|
100
|
+
];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
106
|
+
|
|
107
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/select.md
|
|
@@ -0,0 +1,60 @@
|
|
|
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: [SelectButtonModule, FormsModule]
|
|
51
|
+
})
|
|
52
|
+
export class SelectbuttonBasicDemo {
|
|
53
|
+
stateOptions: any[];
|
|
54
|
+
value: string = 'one-way';
|
|
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/selectbutton.md
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
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/skeleton.md
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
15
|
+
- `max`: `number` = `100`: Maximum boundary value.
|
|
16
|
+
- `min`: `number` = `0`: Mininum boundary value.
|
|
17
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
18
|
+
- `orientation`: `"vertical" | "horizontal"` = `'horizontal'`: Orientation of the slider.
|
|
19
|
+
- `range`: `boolean | undefined`: When specified, allows two boundary values to be picked.
|
|
20
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
21
|
+
- `step`: `number | undefined`: Step factor to increment/decrement the value.
|
|
22
|
+
- Other inputs: `animate`, `ariaLabel`, `ariaLabelledBy`, `autofocus`, `disabled`, `tabindex`.
|
|
23
|
+
|
|
24
|
+
Outputs:
|
|
25
|
+
- `(onChange)`: `SliderChangeEvent`
|
|
26
|
+
- `(onSlideEnd)`: `SliderSlideEndEvent`
|
|
27
|
+
|
|
28
|
+
## Example: Basic
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { Component } from '@angular/core';
|
|
32
|
+
import { FormsModule } from '@angular/forms';
|
|
33
|
+
import { SliderModule } from '@exhaustive-ui/core/slider';
|
|
34
|
+
|
|
35
|
+
@Component({
|
|
36
|
+
template: `
|
|
37
|
+
<div class="card flex justify-center">
|
|
38
|
+
<p-slider [(ngModel)]="value" class="w-56" />
|
|
39
|
+
</div>
|
|
40
|
+
`,
|
|
41
|
+
standalone: true,
|
|
42
|
+
imports: [SliderModule, FormsModule]
|
|
43
|
+
})
|
|
44
|
+
export class SliderBasicDemo {
|
|
45
|
+
value!: number;
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
50
|
+
|
|
51
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/slider.md
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
- `buttonProps`: `ButtonProps | undefined`: Used to pass all properties of the ButtonProps to the Button component.
|
|
13
|
+
- `direction`: `"left" | "right" | "up" | "down" | "up-left" | "up-right" | "down-left" | "down-right" | undefined` = `'up'`: Specifies the opening direction of actions.
|
|
14
|
+
- `id`: `string | undefined`: List of items id.
|
|
15
|
+
- `mask`: `boolean` = `false`: Whether to show a mask element behind the speeddial.
|
|
16
|
+
- `model`: `MenuItem[] | null`: MenuModel instance to define the action items.
|
|
17
|
+
- `radius`: `number` = `0`: Radius for *circle types.
|
|
18
|
+
- `style`: `{ [klass: string]: any; } | null | undefined`: Inline style of the element.
|
|
19
|
+
- `tooltipOptions`: `TooltipOptions | undefined`: Whether to display the tooltip on items.
|
|
20
|
+
- `transitionDelay`: `number` = `30`: Transition delay step for each action item.
|
|
21
|
+
- `type`: `"circle" | "linear" | "semi-circle" | "quarter-circle" | undefined` = `'linear'`: Specifies the opening type of actions.
|
|
22
|
+
- Other inputs: `ariaLabel`, `ariaLabelledBy`, `buttonClassName`, `buttonStyle`, `className`, `disabled`, `hideIcon`, `hideOnClickOutside`, `maskClassName`, `maskStyle`, `rotateAnimation`, `showIcon`, `visible`.
|
|
23
|
+
|
|
24
|
+
Outputs:
|
|
25
|
+
- `(onClick)`: `MouseEvent`
|
|
26
|
+
- `(onHide)`: `Event | undefined`
|
|
27
|
+
- `(onShow)`: `Event | undefined`
|
|
28
|
+
- `(onVisibleChange)`: `boolean`
|
|
29
|
+
- `(visibleChange)`: `boolean`
|
|
30
|
+
|
|
31
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
32
|
+
- `#button`: context { toggleCallback: (event: MouseEvent) => void }. Custom button template.
|
|
33
|
+
- `#item`: context { $implicit: MenuItem, index: number, toggleCallback: (event: Event, item: MenuItem) => void }. Custom item template.
|
|
34
|
+
- `#icon`: no context. Custom icon template.
|
|
35
|
+
|
|
36
|
+
Read a context with `let-`: `<ng-template #button let-toggleCallback="toggleCallback">` (`$implicit` is the bare `let-x`).
|
|
37
|
+
|
|
38
|
+
## Example: Mask
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
import { Component, OnInit, inject } from '@angular/core';
|
|
42
|
+
import { SpeedDialModule } from '@exhaustive-ui/core/speeddial';
|
|
43
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
44
|
+
import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
|
|
45
|
+
|
|
46
|
+
@Component({
|
|
47
|
+
template: `
|
|
48
|
+
<div class="card p-4">
|
|
49
|
+
<div [style]="{ position: 'relative', height: '350px' }">
|
|
50
|
+
<p-toast />
|
|
51
|
+
<p-speed-dial [model]="items" direction="up" mask [style]="{ position: 'absolute', right: '1rem', bottom: '1rem' }" />
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
`,
|
|
55
|
+
standalone: true,
|
|
56
|
+
imports: [SpeedDialModule, ToastModule],
|
|
57
|
+
providers: [MessageService]
|
|
58
|
+
})
|
|
59
|
+
export class SpeeddialMaskDemo implements OnInit {
|
|
60
|
+
private messageService = inject(MessageService);
|
|
61
|
+
items: MenuItem[] | undefined;
|
|
62
|
+
|
|
63
|
+
ngOnInit() {
|
|
64
|
+
this.items = [
|
|
65
|
+
{
|
|
66
|
+
icon: 'pi pi-pencil',
|
|
67
|
+
command: () => {
|
|
68
|
+
this.messageService.add({ severity: 'info', summary: 'Add', detail: 'Data Added' });
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
icon: 'pi pi-refresh',
|
|
73
|
+
command: () => {
|
|
74
|
+
this.messageService.add({ severity: 'success', summary: 'Update', detail: 'Data Updated' });
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
icon: 'pi pi-trash',
|
|
79
|
+
command: () => {
|
|
80
|
+
this.messageService.add({ severity: 'error', summary: 'Delete', detail: 'Data Deleted' });
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
icon: 'pi pi-upload',
|
|
85
|
+
routerLink: ['/fileupload']
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
icon: 'pi pi-external-link',
|
|
89
|
+
target: '_blank',
|
|
90
|
+
url: 'https://angular.dev'
|
|
91
|
+
}
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
98
|
+
|
|
99
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/speeddial.md
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
|
|
40
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
41
|
+
import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
|
|
42
|
+
|
|
43
|
+
@Component({
|
|
44
|
+
template: `
|
|
45
|
+
<div class="card flex justify-center">
|
|
46
|
+
<p-toast />
|
|
47
|
+
<p-split-button label="Save" (onClick)="save()" [model]="items" />
|
|
48
|
+
</div>
|
|
49
|
+
`,
|
|
50
|
+
standalone: true,
|
|
51
|
+
imports: [SplitButtonModule, ToastModule],
|
|
52
|
+
providers: [MessageService]
|
|
53
|
+
})
|
|
54
|
+
export class SplitbuttonBasicDemo {
|
|
55
|
+
private messageService = inject(MessageService);
|
|
56
|
+
|
|
57
|
+
constructor() {
|
|
58
|
+
this.items = [
|
|
59
|
+
{
|
|
60
|
+
label: 'Update',
|
|
61
|
+
command: () => {
|
|
62
|
+
this.update();
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: 'Delete',
|
|
67
|
+
command: () => {
|
|
68
|
+
this.delete();
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{ label: 'Angular.dev', url: 'https://angular.dev' },
|
|
72
|
+
{ separator: true },
|
|
73
|
+
{ label: 'Upload', routerLink: ['/fileupload'] }
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
save() {
|
|
78
|
+
this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Data Saved' });
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
update() {
|
|
82
|
+
this.messageService.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated' });
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
delete() {
|
|
86
|
+
this.messageService.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted' });
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
92
|
+
|
|
93
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/splitbutton.md
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
50
|
+
|
|
51
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/splitter.md
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Stepper
|
|
2
|
+
|
|
3
|
+
StepperSeparator is a helper component for Stepper component used in vertical orientation.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Stepper } from '@exhaustive-ui/core/stepper'; // standalone; or StepperModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-stepper`: Stepper
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `linear`: `boolean` = `false`: A boolean variable that captures user input.
|
|
13
|
+
- `value`: `number | undefined` (two-way: `[(${input.name})]`): A model that can hold a numeric value or be undefined.
|
|
14
|
+
- Other inputs: `motionOptions`.
|
|
15
|
+
|
|
16
|
+
Outputs:
|
|
17
|
+
- `(valueChange)`: `number | undefined`
|
|
18
|
+
|
|
19
|
+
### `p-step`: Step
|
|
20
|
+
|
|
21
|
+
Step is a helper component for Stepper component.
|
|
22
|
+
|
|
23
|
+
- Inputs: `disabled`, `value`.
|
|
24
|
+
- Outputs: `(valueChange)`.
|
|
25
|
+
|
|
26
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
27
|
+
- `#content`: context { activateCallback: () => void, value: number, active: boolean }. Content template.
|
|
28
|
+
|
|
29
|
+
Read a context with `let-`: `<ng-template #content let-activateCallback="activateCallback" let-value="value" let-active="active">` (`$implicit` is the bare `let-x`).
|
|
30
|
+
|
|
31
|
+
### `p-step-item`: StepItem
|
|
32
|
+
|
|
33
|
+
StepItem is a helper component for Stepper component used in vertical orientation.
|
|
34
|
+
|
|
35
|
+
- Inputs: `value`.
|
|
36
|
+
- Outputs: `(valueChange)`.
|
|
37
|
+
|
|
38
|
+
### `p-step-list`: StepList
|
|
39
|
+
|
|
40
|
+
### `p-step-panel`: StepPanel
|
|
41
|
+
|
|
42
|
+
StepPanel is a helper component for Stepper component.
|
|
43
|
+
|
|
44
|
+
- Inputs: `value`.
|
|
45
|
+
- Outputs: `(valueChange)`.
|
|
46
|
+
|
|
47
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
48
|
+
- `#content`: context { activateCallback: (index: number) => void, value: number, active: boolean }. Content template.
|
|
49
|
+
|
|
50
|
+
Read a context with `let-`: `<ng-template #content let-activateCallback="activateCallback" let-value="value" let-active="active">` (`$implicit` is the bare `let-x`).
|
|
51
|
+
|
|
52
|
+
### `p-step-panels`: StepPanels
|
|
53
|
+
|
|
54
|
+
### `p-stepper-separator`: StepperSeparator
|
|
55
|
+
|
|
56
|
+
StepperSeparator is a helper component for Stepper component used in vertical orientation.
|
|
57
|
+
|
|
58
|
+
## Example: Vertical
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import { Component } from '@angular/core';
|
|
62
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
63
|
+
import { StepperModule } from '@exhaustive-ui/core/stepper';
|
|
64
|
+
|
|
65
|
+
@Component({
|
|
66
|
+
template: `
|
|
67
|
+
<div class="card">
|
|
68
|
+
<p-stepper [value]="1">
|
|
69
|
+
<p-step-item [value]="1">
|
|
70
|
+
<p-step>Header I</p-step>
|
|
71
|
+
<p-step-panel>
|
|
72
|
+
<ng-template #content let-activateCallback="activateCallback">
|
|
73
|
+
<div class="flex flex-col h-48">
|
|
74
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content I</div>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="py-6">
|
|
77
|
+
<p-button label="Next" (onClick)="activateCallback(2)" />
|
|
78
|
+
</div>
|
|
79
|
+
</ng-template>
|
|
80
|
+
</p-step-panel>
|
|
81
|
+
</p-step-item>
|
|
82
|
+
<p-step-item [value]="2">
|
|
83
|
+
<p-step>Header II</p-step>
|
|
84
|
+
<p-step-panel>
|
|
85
|
+
<ng-template #content let-activateCallback="activateCallback">
|
|
86
|
+
<div class="flex flex-col h-48">
|
|
87
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content II</div>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="flex py-6 gap-2">
|
|
90
|
+
<p-button label="Back" severity="secondary" (onClick)="activateCallback(1)" />
|
|
91
|
+
<p-button label="Next" (onClick)="activateCallback(3)" />
|
|
92
|
+
</div>
|
|
93
|
+
</ng-template>
|
|
94
|
+
</p-step-panel>
|
|
95
|
+
</p-step-item>
|
|
96
|
+
<p-step-item [value]="3">
|
|
97
|
+
<p-step>Header III</p-step>
|
|
98
|
+
<p-step-panel>
|
|
99
|
+
<ng-template #content let-activateCallback="activateCallback">
|
|
100
|
+
<div class="flex flex-col h-48">
|
|
101
|
+
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded-sm bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content III</div>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="py-6">
|
|
104
|
+
<p-button label="Back" severity="secondary" (onClick)="activateCallback(2)" />
|
|
105
|
+
</div>
|
|
106
|
+
</ng-template>
|
|
107
|
+
</p-step-panel>
|
|
108
|
+
</p-step-item>
|
|
109
|
+
</p-stepper>
|
|
110
|
+
</div>
|
|
111
|
+
`,
|
|
112
|
+
standalone: true,
|
|
113
|
+
imports: [ButtonModule, StepperModule]
|
|
114
|
+
})
|
|
115
|
+
export class StepperVerticalDemo {}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
119
|
+
|
|
120
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/stepper.md
|