@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,60 @@
|
|
|
1
|
+
# Otp Input
|
|
2
|
+
|
|
3
|
+
Input Otp is used to enter one time passwords.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { InputOtp } from '@exhaustive-ui/core/inputotp'; // standalone; or InputOtpModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-input-otp` (also `p-inputOtp`, `p-inputotp`, legacy): InputOtp
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `integerOnly`: `boolean` = `false`: When present, it specifies that an input field is integer-only.
|
|
15
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
16
|
+
- `length`: `number` = `4`: Number of characters to initiate.
|
|
17
|
+
- `mask`: `boolean` = `false`: Mask pattern.
|
|
18
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
19
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
20
|
+
- `size`: `"large" | "small" | undefined`: Specifies the size of the component.
|
|
21
|
+
- `variant`: `"filled" | "outlined" | undefined`: Specifies the input variant of the component.
|
|
22
|
+
- Other inputs: `autofocus`, `disabled`, `readonly`, `styleClass`, `tabindex`.
|
|
23
|
+
|
|
24
|
+
Outputs:
|
|
25
|
+
- `(onBlur)`: `Event`
|
|
26
|
+
- `(onChange)`: `InputOtpChangeEvent`
|
|
27
|
+
- `(onFocus)`: `Event`
|
|
28
|
+
|
|
29
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
30
|
+
- `#input`: context { $implicit: string | number, events: InputOtpTemplateEvents, index: number }. Custom input template.
|
|
31
|
+
|
|
32
|
+
Read a context with `let-`: `<ng-template #input let-item let-events="events" let-index="index">` (`$implicit` is the bare `let-x`).
|
|
33
|
+
|
|
34
|
+
Types used in the contexts:
|
|
35
|
+
- `InputOtpTemplateEvents`: { input: (event: Event, index: number) => void, keydown: (event: Event) => void, focus: (event: Event) => void, blur: (event: Event) => void, paste: (event: Event) => void }
|
|
36
|
+
|
|
37
|
+
## Example: Basic
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import { Component } from '@angular/core';
|
|
41
|
+
import { FormsModule } from '@angular/forms';
|
|
42
|
+
import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
43
|
+
|
|
44
|
+
@Component({
|
|
45
|
+
template: `
|
|
46
|
+
<div class="card flex justify-center">
|
|
47
|
+
<p-input-otp [(ngModel)]="value" />
|
|
48
|
+
</div>
|
|
49
|
+
`,
|
|
50
|
+
standalone: true,
|
|
51
|
+
imports: [InputOtpModule, FormsModule]
|
|
52
|
+
})
|
|
53
|
+
export class InputotpBasicDemo {
|
|
54
|
+
value: any;
|
|
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/inputotp.md
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# InputText
|
|
2
|
+
|
|
3
|
+
InputText directive is an extension to standard input element with theming.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { InputText } from '@exhaustive-ui/core/inputtext'; // standalone; or InputTextModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `[pInputText]`: InputText
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
|
|
13
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
14
|
+
- `pSize`: `"large" | "small" | undefined`: Defines the size of the component.
|
|
15
|
+
- `variant`: `"filled" | "outlined" | undefined`: Specifies the input variant of the component.
|
|
16
|
+
- Other inputs: `hostName`, `pInputTextPT`, `pInputTextUnstyled`.
|
|
17
|
+
|
|
18
|
+
## Example: Basic
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { Component } from '@angular/core';
|
|
22
|
+
import { FormsModule } from '@angular/forms';
|
|
23
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
24
|
+
|
|
25
|
+
@Component({
|
|
26
|
+
template: `
|
|
27
|
+
<div class="card flex justify-center">
|
|
28
|
+
<input type="text" pInputText [(ngModel)]="value" />
|
|
29
|
+
</div>
|
|
30
|
+
`,
|
|
31
|
+
standalone: true,
|
|
32
|
+
imports: [InputTextModule, FormsModule]
|
|
33
|
+
})
|
|
34
|
+
export class InputtextBasicDemo {
|
|
35
|
+
value: string;
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
40
|
+
|
|
41
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/inputtext.md
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# KeyFilter
|
|
2
|
+
|
|
3
|
+
KeyFilter Directive is a built-in feature of InputText to restrict user input based on a regular expression.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { KeyFilter } from '@exhaustive-ui/core/keyfilter'; // standalone; or KeyFilterModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `[pKeyFilter]`: KeyFilter
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `pKeyFilter`: `RegExp | KeyFilterPattern | null | undefined`: Sets the pattern for key filtering.
|
|
13
|
+
- Other inputs: `pValidateOnly`.
|
|
14
|
+
|
|
15
|
+
Outputs:
|
|
16
|
+
- `(ngModelChange)`: `string | number`
|
|
17
|
+
|
|
18
|
+
## Example: Regex
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { Component } from '@angular/core';
|
|
22
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
template: `
|
|
26
|
+
<div class="card flex flex-wrap gap-4">
|
|
27
|
+
<div class="flex-auto">
|
|
28
|
+
<label for="blockspace" class="font-bold block mb-2"> Block Space </label>
|
|
29
|
+
<input pInputText id="blockspace" [pKeyFilter]="blockSpace" class="w-full" />
|
|
30
|
+
</div>
|
|
31
|
+
<div class="flex-auto">
|
|
32
|
+
<label for="block" class="font-bold block mb-2"> Block < > * ! </label>
|
|
33
|
+
<input pInputText id="block" [pKeyFilter]="blockChars" class="w-full" />
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
`,
|
|
37
|
+
standalone: true,
|
|
38
|
+
imports: [InputTextModule]
|
|
39
|
+
})
|
|
40
|
+
export class KeyfilterRegexDemo {
|
|
41
|
+
blockSpace: RegExp = /^[^\s]+$/;
|
|
42
|
+
blockChars: RegExp = /^[^<>*!]+$/;
|
|
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/keyfilter.md
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Knob
|
|
2
|
+
|
|
3
|
+
Knob is a form component to define number inputs with a dial.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Knob } from '@exhaustive-ui/core/knob'; // standalone; or KnobModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-knob`: Knob
|
|
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
|
+
- `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
|
+
- `rangeColor`: `string` = `$dt('knob.range.background').variable`: Background color of the range.
|
|
20
|
+
- `readonly`: `boolean` = `false`: When present, it specifies that the component value cannot be edited.
|
|
21
|
+
- `size`: `number` = `100`: Size of the component in pixels.
|
|
22
|
+
- `step`: `number` = `1`: Step factor to increment/decrement the value.
|
|
23
|
+
- `strokeWidth`: `number` = `14`: Width of the knob stroke.
|
|
24
|
+
- `valueColor`: `string` = `$dt('knob.value.background').variable`: Background of the value.
|
|
25
|
+
- `valueTemplate`: `string` = `'{value}'`: Template string of the value.
|
|
26
|
+
- Other inputs: `ariaLabel`, `ariaLabelledBy`, `required`, `showValue`, `tabindex`, `textColor`.
|
|
27
|
+
|
|
28
|
+
Outputs:
|
|
29
|
+
- `(onChange)`: `number`
|
|
30
|
+
|
|
31
|
+
## Example: Basic
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { Component } from '@angular/core';
|
|
35
|
+
import { FormsModule } from '@angular/forms';
|
|
36
|
+
import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
37
|
+
|
|
38
|
+
@Component({
|
|
39
|
+
template: `
|
|
40
|
+
<div class="card flex justify-center">
|
|
41
|
+
<p-knob [(ngModel)]="value" />
|
|
42
|
+
</div>
|
|
43
|
+
`,
|
|
44
|
+
standalone: true,
|
|
45
|
+
imports: [KnobModule, FormsModule]
|
|
46
|
+
})
|
|
47
|
+
export class KnobBasicDemo {
|
|
48
|
+
value!: number;
|
|
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/knob.md
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Listbox
|
|
2
|
+
|
|
3
|
+
ListBox is used to select one or more values from a list of items.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Listbox } from '@exhaustive-ui/core/listbox'; // standalone; or ListboxModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-listbox` (also `p-listBox`, `p-list-box`, legacy): Listbox
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `checkbox`: `boolean` = `false`: When specified, allows selecting items with checkboxes.
|
|
15
|
+
- `checkmark`: `boolean` = `false`: Whether the selected option will be shown with a check mark.
|
|
16
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
17
|
+
- `dragdrop`: `boolean` = `false`: Whether to enable dragdrop based reordering.
|
|
18
|
+
- `filter`: `boolean` = `false`: When specified, displays a filter input at header.
|
|
19
|
+
- `group`: `boolean | undefined`: Whether to display options as grouped when nested options are provided.
|
|
20
|
+
- `highlightOnSelect`: `boolean` = `true`: Whether the selected option will be add highlight class.
|
|
21
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
22
|
+
- `metaKeySelection`: `boolean` = `false`: Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually.
|
|
23
|
+
- `multiple`: `boolean | undefined`: When specified, allows selecting multiple values.
|
|
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[] | undefined`: An array of selectitems to display as the available options.
|
|
27
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
28
|
+
- `scrollHeight`: `string` = `'14rem'`: Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
|
|
29
|
+
- `selectAll`: `boolean | null | undefined`: Whether all data is selected.
|
|
30
|
+
- `striped`: `boolean | undefined` = `false`: Whether to displays rows with alternating colors.
|
|
31
|
+
- `virtualScroll`: `boolean | undefined`: Whether the data should be loaded on demand during scroll.
|
|
32
|
+
- `virtualScrollItemSize`: `number | undefined`: Height of an item in the list for VirtualScrolling.
|
|
33
|
+
- Other inputs: `ariaFilterLabel`, `ariaLabel`, `ariaLabelledBy`, `autoOptionFocus`, `dataKey`, `dropListData`, `emptyFilterMessage`, `emptyMessage`, `emptySelectionMessage`, `filterBy`, `filterFields`, `filterLocale`, `filterMatchMode`, `filterMessage`, `filterPlaceholder`, `filterValue`, `fluid`, `focusOnHover`, `hostName`, `id`, `lazy`, `listStyle`, `listStyleClass`, `optionDisabled`, `optionGroupChildren`, `optionGroupLabel`, `optionValue`, `readonly`, `searchMessage`, `selectionMessage`, `selectOnFocus`, `showToggleAll`, `tabindex`, `virtualScrollOptions`.
|
|
34
|
+
|
|
35
|
+
Outputs:
|
|
36
|
+
- `(onBlur)`: `FocusEvent`
|
|
37
|
+
- `(onChange)`: `ListboxChangeEvent`
|
|
38
|
+
- `(onClick)`: `ListboxClickEvent`
|
|
39
|
+
- `(onDblClick)`: `ListboxDoubleClickEvent`
|
|
40
|
+
- `(onDrop)`: `CdkDragDrop<string[], string[], any>`
|
|
41
|
+
- `(onFilter)`: `ListboxFilterEvent`
|
|
42
|
+
- `(onFocus)`: `FocusEvent`
|
|
43
|
+
- `(onLazyLoad)`: `ScrollerLazyLoadEvent`
|
|
44
|
+
- `(onSelectAllChange)`: `ListboxSelectAllChangeEvent`
|
|
45
|
+
|
|
46
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
47
|
+
- `#item`: context { $implicit: T, index: number, selected: boolean, disabled: boolean }. Custom item template.
|
|
48
|
+
- `#group`: context { $implicit: T }. Custom group template.
|
|
49
|
+
- `#header`: context { $implicit: T, options: any[] }. Custom header template.
|
|
50
|
+
- `#filter`: context { options: ListboxFilterOptions }. Custom filter template.
|
|
51
|
+
- `#footer`: context { $implicit: T, options: any[] }. Custom footer template.
|
|
52
|
+
- `#emptyfilter`: no context. Custom empty filter message template.
|
|
53
|
+
- `#empty`: no context. Custom empty message template.
|
|
54
|
+
- `#filtericon`: no context. Custom filter icon template.
|
|
55
|
+
- `#checkicon`: context { $implicit: boolean }. Custom check icon template.
|
|
56
|
+
- `#checkmark`: context { implicit: boolean }. Custom checkmark icon template.
|
|
57
|
+
- `#loader`: context { options: ScrollerOptions }. Custom loader template.
|
|
58
|
+
|
|
59
|
+
Read a context with `let-`: `<ng-template #item let-item let-index="index" let-selected="selected">` (`$implicit` is the bare `let-x`).
|
|
60
|
+
|
|
61
|
+
Types used in the contexts:
|
|
62
|
+
- `ListboxFilterOptions`: { filter?: ((value?: any) => void) | undefined, reset?: (() => void) | undefined }
|
|
63
|
+
|
|
64
|
+
## Example: Basic
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
import { Component, OnInit } from '@angular/core';
|
|
68
|
+
import { FormsModule } from '@angular/forms';
|
|
69
|
+
import { ListboxModule } from '@exhaustive-ui/core/listbox';
|
|
70
|
+
|
|
71
|
+
interface City {
|
|
72
|
+
name: string;
|
|
73
|
+
code: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@Component({
|
|
77
|
+
template: `
|
|
78
|
+
<div class="card flex justify-center">
|
|
79
|
+
<p-listbox [options]="cities" [(ngModel)]="selectedCity" optionLabel="name" class="w-full md:w-56" />
|
|
80
|
+
</div>
|
|
81
|
+
`,
|
|
82
|
+
standalone: true,
|
|
83
|
+
imports: [ListboxModule, FormsModule]
|
|
84
|
+
})
|
|
85
|
+
export class ListboxBasicDemo implements OnInit {
|
|
86
|
+
cities!: City[];
|
|
87
|
+
selectedCity!: City;
|
|
88
|
+
|
|
89
|
+
ngOnInit() {
|
|
90
|
+
this.cities = [
|
|
91
|
+
{ name: 'New York', code: 'NY' },
|
|
92
|
+
{ name: 'Rome', code: 'RM' },
|
|
93
|
+
{ name: 'London', code: 'LDN' },
|
|
94
|
+
{ name: 'Istanbul', code: 'IST' },
|
|
95
|
+
{ name: 'Paris', code: 'PRS' }
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
102
|
+
|
|
103
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/listbox.md
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# MegaMenu
|
|
2
|
+
|
|
3
|
+
MegaMenu is navigation component that displays submenus together.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { MegaMenu } from '@exhaustive-ui/core/megamenu'; // standalone; or MegaMenuModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-mega-menu` (also `p-megaMenu`, `p-megamenu`, legacy): MegaMenu
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `id`: `string | undefined`: Current id state as a string.
|
|
13
|
+
- `model`: `MegaMenuItem[] | undefined`: An array of menuitems.
|
|
14
|
+
- `orientation`: `string` = `'horizontal'`: Defines the orientation.
|
|
15
|
+
- Other inputs: `ariaLabel`, `ariaLabelledBy`, `breakpoint`, `disabled`, `scrollHeight`, `tabindex`.
|
|
16
|
+
|
|
17
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
18
|
+
- `#start`: no context. Defines template option for start.
|
|
19
|
+
- `#end`: no context. Defines template option for end.
|
|
20
|
+
- `#submenuicon`: no context. Defines template option for submenu icon.
|
|
21
|
+
- `#item`: context { $implicit: MenuItem }. Custom item template.
|
|
22
|
+
- `#button`: no context. Custom menu button template on responsive mode.
|
|
23
|
+
- `#buttonicon`: no context. Custom menu button icon template on responsive mode.
|
|
24
|
+
|
|
25
|
+
Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
|
|
26
|
+
|
|
27
|
+
### `p-mega-menu-sub` (also `p-megaMenuSub`, `p-megamenu-sub`, `ul[pMegaMenuSub]`, legacy): MegaMenuSub
|
|
28
|
+
|
|
29
|
+
- Inputs: `activeItem`, `ariaLabel`, `ariaLabelledBy`, `focusedItemId`, `id`, `items`, `itemTemplate`, `level`, `menuId`, `mobileActive`, `orientation`, `root`, `scrollHeight`, `submenu`, `tabindex`.
|
|
30
|
+
- Outputs: `(itemClick)`, `(itemMouseEnter)`, `(menuBlur)`, `(menuFocus)`, `(menuKeydown)`, `(menuMouseDown)`.
|
|
31
|
+
|
|
32
|
+
## Example: Router
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import { Component, OnInit } from '@angular/core';
|
|
36
|
+
import { MegaMenuModule } from '@exhaustive-ui/core/megamenu';
|
|
37
|
+
import { MegaMenuItem } from '@exhaustive-ui/core/api';
|
|
38
|
+
|
|
39
|
+
@Component({
|
|
40
|
+
template: `
|
|
41
|
+
<div class="card">
|
|
42
|
+
<p-mega-menu [model]="items" />
|
|
43
|
+
</div>
|
|
44
|
+
`,
|
|
45
|
+
standalone: true,
|
|
46
|
+
imports: [MegaMenuModule]
|
|
47
|
+
})
|
|
48
|
+
export class MegamenuRouterDemo implements OnInit {
|
|
49
|
+
items: MegaMenuItem[] | undefined;
|
|
50
|
+
|
|
51
|
+
ngOnInit() {
|
|
52
|
+
this.items = [
|
|
53
|
+
{
|
|
54
|
+
label: 'Router',
|
|
55
|
+
icon: 'pi pi-palette',
|
|
56
|
+
items: [
|
|
57
|
+
[
|
|
58
|
+
{
|
|
59
|
+
label: 'RouterLink',
|
|
60
|
+
items: [{ label: 'Theming', routerLink: '/theming' }]
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: 'Programmatic',
|
|
67
|
+
icon: 'pi pi-link',
|
|
68
|
+
command: () => {
|
|
69
|
+
this.router.navigate(['/installation']);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: 'External',
|
|
74
|
+
icon: 'pi pi-home',
|
|
75
|
+
items: [
|
|
76
|
+
[
|
|
77
|
+
{
|
|
78
|
+
label: 'External',
|
|
79
|
+
items: [
|
|
80
|
+
{ label: 'Angular', url: 'https://angular.dev/' },
|
|
81
|
+
{
|
|
82
|
+
label: 'Vite.js',
|
|
83
|
+
url: 'https://vitejs.dev/'
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
96
|
+
|
|
97
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/megamenu.md
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Menu
|
|
2
|
+
|
|
3
|
+
Menu is a navigation / command component that supports dynamic and static positioning.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Menu } from '@exhaustive-ui/core/menu'; // standalone; or MenuModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-menu`: Menu
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `id`: `string | undefined`: Current id state as a string.
|
|
13
|
+
- `model`: `MenuItem[] | undefined`: An array of menuitems.
|
|
14
|
+
- `popup`: `boolean | undefined`: Defines if menu would displayed as a popup.
|
|
15
|
+
- `style`: `{ [klass: string]: any; } | null | undefined`: Inline style of the component.
|
|
16
|
+
- `styleClass`: `string | undefined`: Style class of the component.
|
|
17
|
+
- Other inputs: `appendTo`, `ariaLabel`, `ariaLabelledBy`, `autoZIndex`, `baseZIndex`, `motionOptions`, `tabindex`.
|
|
18
|
+
|
|
19
|
+
Outputs:
|
|
20
|
+
- `(onBlur)`: `Event`
|
|
21
|
+
- `(onFocus)`: `Event`
|
|
22
|
+
- `(onHide)`: `any`
|
|
23
|
+
- `(onShow)`: `any`
|
|
24
|
+
|
|
25
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
26
|
+
- `#start`: no context. Defines template option for start.
|
|
27
|
+
- `#end`: no context. Defines template option for end.
|
|
28
|
+
- `#item`: context { $implicit: MenuItem }. Custom item template.
|
|
29
|
+
- `#submenuheader`: context { $implicit: MenuItem }. Custom submenu header template.
|
|
30
|
+
|
|
31
|
+
Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
|
|
32
|
+
|
|
33
|
+
### `[pMenuItemContent]`: MenuItemContent
|
|
34
|
+
|
|
35
|
+
- Inputs: `idx`, `itemTemplate`, `menuitemId`, `pMenuItemContent`.
|
|
36
|
+
- Outputs: `(onMenuItemClick)`.
|
|
37
|
+
|
|
38
|
+
## Example: Basic
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
import { Component, OnInit } from '@angular/core';
|
|
42
|
+
import { MenuModule } from '@exhaustive-ui/core/menu';
|
|
43
|
+
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
44
|
+
|
|
45
|
+
@Component({
|
|
46
|
+
template: `
|
|
47
|
+
<div class="card flex justify-center">
|
|
48
|
+
<p-menu [model]="items" />
|
|
49
|
+
</div>
|
|
50
|
+
`,
|
|
51
|
+
standalone: true,
|
|
52
|
+
imports: [MenuModule]
|
|
53
|
+
})
|
|
54
|
+
export class MenuBasicDemo implements OnInit {
|
|
55
|
+
items: MenuItem[] | undefined;
|
|
56
|
+
|
|
57
|
+
ngOnInit() {
|
|
58
|
+
this.items = [
|
|
59
|
+
{ label: 'New', icon: 'pi pi-plus' },
|
|
60
|
+
{ label: 'Search', icon: 'pi pi-search' }
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
67
|
+
|
|
68
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/menu.md
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Menubar
|
|
2
|
+
|
|
3
|
+
Menubar is a horizontal menu component.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Menubar } from '@exhaustive-ui/core/menubar'; // standalone; or MenubarModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-menubar`: Menubar
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `id`: `string | undefined`: Current id state as a string.
|
|
13
|
+
- `model`: `MenuItem[] | undefined`: An array of menuitems.
|
|
14
|
+
- Other inputs: `ariaLabel`, `ariaLabelledBy`, `autoDisplay`, `autoHide`, `autoHideDelay`, `breakpoint`.
|
|
15
|
+
|
|
16
|
+
Outputs:
|
|
17
|
+
- `(onBlur)`: `FocusEvent`
|
|
18
|
+
- `(onFocus)`: `FocusEvent`
|
|
19
|
+
|
|
20
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
21
|
+
- `#start`: no context. Defines template option for start.
|
|
22
|
+
- `#end`: no context. Defines template option for end.
|
|
23
|
+
- `#item`: context { $implicit: MenuItem, root: boolean }. Custom item template.
|
|
24
|
+
- `#menuicon`: no context. Defines template option for menu icon.
|
|
25
|
+
- `#submenuicon`: no context. Defines template option for submenu icon.
|
|
26
|
+
|
|
27
|
+
Read a context with `let-`: `<ng-template #item let-item let-root="root">` (`$implicit` is the bare `let-x`).
|
|
28
|
+
|
|
29
|
+
### `p-menubar-sub` (also `p-menubarSub`, `p-menubarsub`, `[pMenubarSub]`, legacy): MenubarSub
|
|
30
|
+
|
|
31
|
+
- Inputs: `activeItemPath`, `autoDisplay`, `focusedItemId`, `inlineStyles`, `items`, `itemTemplate`, `level`, `menuId`, `root`, `submenuiconTemplate`.
|
|
32
|
+
- Outputs: `(itemClick)`, `(itemMouseEnter)`.
|
|
33
|
+
|
|
34
|
+
## Example: Basic
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { Component, OnInit } from '@angular/core';
|
|
38
|
+
import { MenubarModule } from '@exhaustive-ui/core/menubar';
|
|
39
|
+
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
40
|
+
|
|
41
|
+
@Component({
|
|
42
|
+
template: `
|
|
43
|
+
<div class="card">
|
|
44
|
+
<p-menubar [model]="items" />
|
|
45
|
+
</div>
|
|
46
|
+
`,
|
|
47
|
+
standalone: true,
|
|
48
|
+
imports: [MenubarModule]
|
|
49
|
+
})
|
|
50
|
+
export class MenubarBasicDemo implements OnInit {
|
|
51
|
+
items: MenuItem[] | undefined;
|
|
52
|
+
|
|
53
|
+
ngOnInit() {
|
|
54
|
+
this.items = [
|
|
55
|
+
{
|
|
56
|
+
label: 'Home',
|
|
57
|
+
icon: 'pi pi-home'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: 'Features',
|
|
61
|
+
icon: 'pi pi-star'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: 'Projects',
|
|
65
|
+
icon: 'pi pi-search',
|
|
66
|
+
items: [
|
|
67
|
+
{
|
|
68
|
+
label: 'Components',
|
|
69
|
+
icon: 'pi pi-bolt'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'Blocks',
|
|
73
|
+
icon: 'pi pi-server'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: 'UI Kit',
|
|
77
|
+
icon: 'pi pi-pencil'
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: 'Templates',
|
|
81
|
+
icon: 'pi pi-palette',
|
|
82
|
+
items: [
|
|
83
|
+
{
|
|
84
|
+
label: 'Apollo',
|
|
85
|
+
icon: 'pi pi-palette'
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: 'Ultima',
|
|
89
|
+
icon: 'pi pi-palette'
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: 'Contact',
|
|
97
|
+
icon: 'pi pi-envelope'
|
|
98
|
+
}
|
|
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/menubar.md
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Message
|
|
2
|
+
|
|
3
|
+
Message groups a collection of contents in tabs.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Message } from '@exhaustive-ui/core/message'; // standalone; or MessageModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-message`: Message
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `closable`: `boolean` = `false`: Whether the message can be closed manually using the close icon.
|
|
13
|
+
- `icon`: `string | undefined`: Icon to display in the message.
|
|
14
|
+
- `life`: `number | undefined`: Delay in milliseconds to close the message automatically.
|
|
15
|
+
- `severity`: `MessageSeverity | null | undefined` = `'info'`: Severity level of the message.
|
|
16
|
+
- `size`: `"large" | "small" | undefined`: Defines the size of the component.
|
|
17
|
+
- `variant`: `"outlined" | "text" | "simple" | undefined`: Specifies the input variant of the component.
|
|
18
|
+
- Other inputs: `closeIcon`, `motionOptions`.
|
|
19
|
+
|
|
20
|
+
Outputs:
|
|
21
|
+
- `(onClose)`: `{ originalEvent: Event; }`
|
|
22
|
+
|
|
23
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
24
|
+
- `#container`: context { closeCallback: (event: Event) => void }. Custom template of the message container.
|
|
25
|
+
- `#icon`: no context. Custom template of the message icon.
|
|
26
|
+
- `#closeicon`: no context. Custom template of the close icon.
|
|
27
|
+
|
|
28
|
+
Read a context with `let-`: `<ng-template #container let-closeCallback="closeCallback">` (`$implicit` is the bare `let-x`).
|
|
29
|
+
|
|
30
|
+
## Example: Basic
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { Component } from '@angular/core';
|
|
34
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
35
|
+
|
|
36
|
+
@Component({
|
|
37
|
+
template: `
|
|
38
|
+
<div class="card">
|
|
39
|
+
<p-message>Message Content</p-message>
|
|
40
|
+
</div>
|
|
41
|
+
`,
|
|
42
|
+
standalone: true,
|
|
43
|
+
imports: [MessageModule]
|
|
44
|
+
})
|
|
45
|
+
export class MessageBasicDemo {}
|
|
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/message.md
|