@exhaustive-ui/mcp 22.5.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/data/cards/accordion.md +5 -2
- package/data/cards/animateonscroll.md +8 -5
- package/data/cards/autocomplete.md +8 -3
- package/data/cards/autofocus.md +4 -2
- package/data/cards/avatar.md +4 -2
- package/data/cards/badge.md +2 -1
- package/data/cards/breadcrumb.md +3 -1
- package/data/cards/button.md +8 -2
- package/data/cards/card.md +2 -1
- package/data/cards/carousel.md +7 -5
- package/data/cards/cascadeselect.md +2 -6
- package/data/cards/chart.md +9 -7
- package/data/cards/checkbox.md +4 -3
- package/data/cards/chip.md +2 -1
- package/data/cards/classnames.md +21 -3
- package/data/cards/colorpicker.md +2 -1
- package/data/cards/confirmdialog.md +35 -5
- package/data/cards/confirmpopup.md +25 -3
- package/data/cards/contextmenu.md +1 -7
- package/data/cards/dataview.md +28 -9
- package/data/cards/datepicker.md +4 -3
- package/data/cards/dialog.md +3 -3
- package/data/cards/divider.md +2 -1
- package/data/cards/dock.md +24 -3
- package/data/cards/dragdrop.md +5 -1
- package/data/cards/drawer.md +3 -3
- package/data/cards/dynamicdialog.md +41 -14
- package/data/cards/editor.md +1 -1
- package/data/cards/fieldset.md +2 -1
- package/data/cards/fileinput.md +1 -1
- package/data/cards/fileupload.md +7 -8
- package/data/cards/floatlabel.md +1 -1
- package/data/cards/fluid.md +7 -5
- package/data/cards/focustrap.md +6 -2
- package/data/cards/galleria.md +18 -25
- package/data/cards/iconfield.md +3 -2
- package/data/cards/iftalabel.md +1 -1
- package/data/cards/image.md +4 -2
- package/data/cards/imagecompare.md +4 -3
- package/data/cards/inplace.md +2 -1
- package/data/cards/inputgroup.md +14 -3
- package/data/cards/inputmask.md +2 -2
- package/data/cards/inputnumber.md +4 -3
- package/data/cards/inputotp.md +2 -2
- package/data/cards/inputtext.md +2 -2
- package/data/cards/keyfilter.md +2 -1
- package/data/cards/knob.md +3 -2
- package/data/cards/listbox.md +5 -3
- package/data/cards/megamenu.md +7 -8
- package/data/cards/menu.md +3 -7
- package/data/cards/menubar.md +3 -7
- package/data/cards/message.md +2 -1
- package/data/cards/metergroup.md +3 -7
- package/data/cards/multiselect.md +5 -9
- package/data/cards/orderlist.md +6 -4
- package/data/cards/organizationchart.md +33 -6
- package/data/cards/overlay.md +2 -1
- package/data/cards/paginator.md +2 -1
- package/data/cards/panel.md +2 -1
- package/data/cards/panelmenu.md +4 -13
- package/data/cards/password.md +6 -3
- package/data/cards/picklist.md +9 -5
- package/data/cards/popover.md +6 -5
- package/data/cards/progressbar.md +4 -3
- package/data/cards/progressspinner.md +2 -1
- package/data/cards/radiobutton.md +4 -3
- package/data/cards/rating.md +1 -1
- package/data/cards/ripple.md +2 -1
- package/data/cards/scrollpanel.md +2 -1
- package/data/cards/scrolltop.md +5 -3
- package/data/cards/select.md +2 -1
- package/data/cards/selectbutton.md +6 -2
- package/data/cards/skeleton.md +2 -1
- package/data/cards/slider.md +4 -3
- package/data/cards/speeddial.md +7 -4
- package/data/cards/splitbutton.md +21 -18
- package/data/cards/splitter.md +2 -1
- package/data/cards/stepper.md +8 -3
- package/data/cards/styleclass.md +4 -2
- package/data/cards/table.md +46 -11
- package/data/cards/tabs.md +2 -1
- package/data/cards/tag.md +2 -1
- package/data/cards/terminal.md +31 -22
- package/data/cards/textarea.md +3 -2
- package/data/cards/tieredmenu.md +1 -6
- package/data/cards/timeline.md +5 -5
- package/data/cards/toast.md +7 -8
- package/data/cards/togglebutton.md +1 -1
- package/data/cards/toggleswitch.md +4 -3
- package/data/cards/toolbar.md +8 -8
- package/data/cards/tooltip.md +2 -1
- package/data/cards/tree.md +3 -6
- package/data/cards/treeselect.md +6 -7
- package/data/cards/treetable.md +52 -31
- 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 -73
- 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 +63 -27
- 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 +224 -83
- 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 +127 -89
- 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/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 +92 -70
- 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 +523 -314
- 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 +4122 -4080
- package/data/llms-full.txt +8784 -6249
- package/data/manifest.json +154 -15
- package/data/pages/tailwind.md +20 -10
- package/data/snapshot.json +2 -2
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/data/cards/accordion.md
CHANGED
|
@@ -9,7 +9,7 @@ import { Accordion } from '@exhaustive-ui/core/accordion'; // standalone; or Acc
|
|
|
9
9
|
## `p-accordion`: Accordion
|
|
10
10
|
|
|
11
11
|
Inputs:
|
|
12
|
-
- `multiple`: `
|
|
12
|
+
- `multiple`: `boolean` = `false`: When enabled, multiple tabs can be activated at the same time.
|
|
13
13
|
- `value`: `string | number | string[] | number[] | null | undefined` (two-way: `[(${input.name})]`): Value of the active tab.
|
|
14
14
|
- Other inputs: `collapseIcon`, `expandIcon`, `motionOptions`, `selectOnFocus`.
|
|
15
15
|
|
|
@@ -20,6 +20,8 @@ Outputs:
|
|
|
20
20
|
|
|
21
21
|
### `p-accordion-content` (also `p-accordioncontent`, legacy): AccordionContent
|
|
22
22
|
|
|
23
|
+
Content of an accordion panel, shown while the panel is expanded.
|
|
24
|
+
|
|
23
25
|
### `p-accordion-header` (also `p-accordionheader`, legacy): AccordionHeader
|
|
24
26
|
|
|
25
27
|
AccordionHeader is a helper component for Accordion component.
|
|
@@ -80,7 +82,8 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
|
|
|
80
82
|
standalone: true,
|
|
81
83
|
imports: [AccordionModule]
|
|
82
84
|
})
|
|
83
|
-
export class AccordionBasicDemo {
|
|
85
|
+
export class AccordionBasicDemo {
|
|
86
|
+
}
|
|
84
87
|
```
|
|
85
88
|
|
|
86
89
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
@@ -17,6 +17,8 @@ Inputs:
|
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
19
|
import { Component } from '@angular/core';
|
|
20
|
+
import { CommonModule } from '@angular/common';
|
|
21
|
+
import { AnimateOnScrollModule } from '@exhaustive-ui/core/animateonscroll';
|
|
20
22
|
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
21
23
|
|
|
22
24
|
@Component({
|
|
@@ -70,17 +72,17 @@ import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
|
70
72
|
leaveClass="animate-leave fade-out-0"
|
|
71
73
|
class="flex flex-col border border-primary-200 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4"
|
|
72
74
|
>
|
|
73
|
-
<p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" shape="circle" size="xlarge" />
|
|
75
|
+
<p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" ariaLabel="Amy Elsner" shape="circle" size="xlarge" />
|
|
74
76
|
<span class="text-2xl font-medium">Jenna Thompson</span>
|
|
75
77
|
<span class="text-muted-color text-center">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>
|
|
76
78
|
</div>
|
|
77
79
|
<div pAnimateOnScroll enterClass="animate-enter fade-in-10 slide-in-from-b-20 animate-duration-1000" class="flex flex-col border border-primary-200 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4">
|
|
78
|
-
<p-avatar image="https://exhaustive-ui.com/demo/avatar/asiyajavayant.png" shape="circle" size="xlarge" />
|
|
80
|
+
<p-avatar image="https://exhaustive-ui.com/demo/avatar/asiyajavayant.png" ariaLabel="Asiya Javayant" shape="circle" size="xlarge" />
|
|
79
81
|
<span class="text-2xl font-medium">Isabel Garcia</span>
|
|
80
82
|
<span class="text-muted-color text-center">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>
|
|
81
83
|
</div>
|
|
82
84
|
<div pAnimateOnScroll enterClass="animate-enter fade-in-10 slide-in-from-t-20 animate-duration-1000" class="flex flex-col border border-primary-200 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4">
|
|
83
|
-
<p-avatar image="https://exhaustive-ui.com/demo/avatar/onyamalimba.png" shape="circle" size="xlarge" />
|
|
85
|
+
<p-avatar image="https://exhaustive-ui.com/demo/avatar/onyamalimba.png" ariaLabel="Onyama Limba" shape="circle" size="xlarge" />
|
|
84
86
|
<span class="text-2xl font-medium">Xavier Mason</span>
|
|
85
87
|
<span class="text-muted-color text-center">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>
|
|
86
88
|
</div>
|
|
@@ -142,9 +144,10 @@ import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
|
142
144
|
</div>
|
|
143
145
|
`,
|
|
144
146
|
standalone: true,
|
|
145
|
-
imports: [AvatarModule]
|
|
147
|
+
imports: [CommonModule, AnimateOnScrollModule, AvatarModule]
|
|
146
148
|
})
|
|
147
|
-
export class AnimateonscrollBasicDemo {
|
|
149
|
+
export class AnimateonscrollBasicDemo {
|
|
150
|
+
}
|
|
148
151
|
```
|
|
149
152
|
|
|
150
153
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
@@ -13,11 +13,14 @@ Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
|
13
13
|
Inputs:
|
|
14
14
|
- `addOnBlur`: `boolean` = `false`: Whether to add an item on blur event if the input has value and typeahead is false with multiple mode.
|
|
15
15
|
- `addOnTab`: `boolean` = `false`: When enabled, the input value is added to the selected items on tab key press when multiple is true and typeahead is false.
|
|
16
|
+
- `ariaLabel`: `string | undefined`: Defines a string that labels the input for accessibility.
|
|
17
|
+
- `ariaLabelledBy`: `string | undefined`: Specifies one or more IDs in the DOM that labels the input field.
|
|
16
18
|
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
17
19
|
- `dropdown`: `boolean | undefined`: Displays a button next to the input field when enabled.
|
|
18
20
|
- `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
|
|
19
21
|
- `forceSelection`: `boolean | undefined`: When present, autocomplete clears the manual input if it does not match of the suggestions to force only accepting values from the suggestions.
|
|
20
22
|
- `group`: `boolean | undefined`: Whether to display options as grouped when nested options are provided.
|
|
23
|
+
- `id`: `string | undefined`: Unique identifier of the component.
|
|
21
24
|
- `inputId`: `string | undefined`: Identifier of the focus input to match a label defined for the component.
|
|
22
25
|
- `inputStyleClass`: `string | undefined`: Inline style of the input field.
|
|
23
26
|
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
@@ -36,7 +39,7 @@ Inputs:
|
|
|
36
39
|
- `variant`: `"filled" | "outlined" | undefined` = `'outlined'`: Specifies the input variant of the component.
|
|
37
40
|
- `virtualScroll`: `boolean | undefined`: Whether the data should be loaded on demand during scroll.
|
|
38
41
|
- `virtualScrollItemSize`: `number | undefined`: Height of an item in the list for VirtualScrolling.
|
|
39
|
-
- Other inputs: `appendTo`, `
|
|
42
|
+
- Other inputs: `appendTo`, `autocomplete`, `autofocus`, `autoOptionFocus`, `completeOnFocus`, `dataKey`, `delay`, `dropdownAriaLabel`, `dropdownIcon`, `dropdownMode`, `emptyMessage`, `emptySelectionMessage`, `focusOnHover`, `inputSize`, `inputStyle`, `lazy`, `max`, `maxlength`, `min`, `minlength`, `minQueryLength`, `motionOptions`, `optionDisabled`, `optionGroupChildren`, `optionGroupLabel`, `overlayOptions`, `panelStyle`, `panelStyleClass`, `pattern`, `readonly`, `scrollHeight`, `searchLocale`, `searchMessage`, `selectionMessage`, `selectOnFocus`, `showEmptyMessage`, `step`, `tabindex`, `unique`, `virtualScrollOptions`.
|
|
40
43
|
|
|
41
44
|
Outputs:
|
|
42
45
|
- `(completeMethod)`: `AutoCompleteCompleteEvent`
|
|
@@ -71,6 +74,7 @@ Read a context with `let-`: `<ng-template #item let-item let-index="index">` (`$
|
|
|
71
74
|
## Example: Basic
|
|
72
75
|
|
|
73
76
|
```typescript
|
|
77
|
+
import { CommonModule } from '@angular/common';
|
|
74
78
|
import { Component } from '@angular/core';
|
|
75
79
|
import { FormsModule } from '@angular/forms';
|
|
76
80
|
import { AutoCompleteModule } from '@exhaustive-ui/core/autocomplete';
|
|
@@ -83,14 +87,15 @@ interface AutoCompleteCompleteEvent {
|
|
|
83
87
|
@Component({
|
|
84
88
|
template: `
|
|
85
89
|
<div class="card flex justify-center">
|
|
86
|
-
<p-auto-complete [(ngModel)]="value" [suggestions]="items" (completeMethod)="search($event)" />
|
|
90
|
+
<p-auto-complete [(ngModel)]="value" ariaLabel="Search" [suggestions]="items" (completeMethod)="search($event)" />
|
|
87
91
|
</div>
|
|
88
92
|
`,
|
|
89
93
|
standalone: true,
|
|
90
|
-
imports: [
|
|
94
|
+
imports: [CommonModule, FormsModule, AutoCompleteModule]
|
|
91
95
|
})
|
|
92
96
|
export class AutocompleteBasicDemo {
|
|
93
97
|
items: any[] = [];
|
|
98
|
+
|
|
94
99
|
value: any;
|
|
95
100
|
|
|
96
101
|
search(event: AutoCompleteCompleteEvent) {
|
package/data/cards/autofocus.md
CHANGED
|
@@ -15,6 +15,7 @@ Inputs:
|
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
17
|
import { Component } from '@angular/core';
|
|
18
|
+
import { AutoFocusModule } from '@exhaustive-ui/core/autofocus';
|
|
18
19
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
19
20
|
|
|
20
21
|
@Component({
|
|
@@ -24,9 +25,10 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
24
25
|
</div>
|
|
25
26
|
`,
|
|
26
27
|
standalone: true,
|
|
27
|
-
imports: [InputTextModule]
|
|
28
|
+
imports: [AutoFocusModule, InputTextModule]
|
|
28
29
|
})
|
|
29
|
-
export class AutofocusBasicDemo {
|
|
30
|
+
export class AutofocusBasicDemo {
|
|
31
|
+
}
|
|
30
32
|
```
|
|
31
33
|
|
|
32
34
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
package/data/cards/avatar.md
CHANGED
|
@@ -9,12 +9,13 @@ import { Avatar } from '@exhaustive-ui/core/avatar'; // standalone; or AvatarMod
|
|
|
9
9
|
## `p-avatar`: Avatar
|
|
10
10
|
|
|
11
11
|
Inputs:
|
|
12
|
+
- `ariaLabel`: `string | undefined`: Establishes a string value that labels the component.
|
|
12
13
|
- `icon`: `string | undefined`: Defines the icon to display.
|
|
13
14
|
- `image`: `string | undefined`: Defines the image to display.
|
|
14
15
|
- `label`: `string | undefined`: Defines the text to display.
|
|
15
16
|
- `shape`: `"circle" | "square" | undefined` = `'square'`: Shape of the element.
|
|
16
17
|
- `size`: `"large" | "xlarge" | "normal" | undefined` = `'normal'`: Size of the element.
|
|
17
|
-
- Other inputs: `
|
|
18
|
+
- Other inputs: `ariaLabelledBy`.
|
|
18
19
|
|
|
19
20
|
Outputs:
|
|
20
21
|
- `(onImageError)`: `Event`
|
|
@@ -35,7 +36,8 @@ import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
|
35
36
|
standalone: true,
|
|
36
37
|
imports: [AvatarModule]
|
|
37
38
|
})
|
|
38
|
-
export class AvatarShapeDemo {
|
|
39
|
+
export class AvatarShapeDemo {
|
|
40
|
+
}
|
|
39
41
|
```
|
|
40
42
|
|
|
41
43
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
package/data/cards/badge.md
CHANGED
|
@@ -35,7 +35,8 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
|
|
|
35
35
|
standalone: true,
|
|
36
36
|
imports: [BadgeModule]
|
|
37
37
|
})
|
|
38
|
-
export class BadgeBasicDemo {
|
|
38
|
+
export class BadgeBasicDemo {
|
|
39
|
+
}
|
|
39
40
|
```
|
|
40
41
|
|
|
41
42
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
package/data/cards/breadcrumb.md
CHANGED
|
@@ -26,8 +26,8 @@ Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the b
|
|
|
26
26
|
|
|
27
27
|
```typescript
|
|
28
28
|
import { Component, OnInit } from '@angular/core';
|
|
29
|
-
import { BreadcrumbModule } from '@exhaustive-ui/core/breadcrumb';
|
|
30
29
|
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
30
|
+
import { BreadcrumbModule } from '@exhaustive-ui/core/breadcrumb';
|
|
31
31
|
|
|
32
32
|
@Component({
|
|
33
33
|
template: `
|
|
@@ -40,10 +40,12 @@ import { MenuItem } from '@exhaustive-ui/core/api';
|
|
|
40
40
|
})
|
|
41
41
|
export class BreadcrumbBasicDemo implements OnInit {
|
|
42
42
|
items: MenuItem[] | undefined;
|
|
43
|
+
|
|
43
44
|
home: MenuItem | undefined;
|
|
44
45
|
|
|
45
46
|
ngOnInit() {
|
|
46
47
|
this.items = [{ label: 'Electronics' }, { label: 'Computer' }, { label: 'Accessories' }, { label: 'Keyboard' }, { label: 'Wireless' }];
|
|
48
|
+
|
|
47
49
|
this.home = { icon: 'pi pi-home' };
|
|
48
50
|
}
|
|
49
51
|
}
|
package/data/cards/button.md
CHANGED
|
@@ -9,6 +9,7 @@ import { Button } from '@exhaustive-ui/core/button'; // standalone; or ButtonMod
|
|
|
9
9
|
## `p-button`: Button
|
|
10
10
|
|
|
11
11
|
Inputs:
|
|
12
|
+
- `ariaLabel`: `string | undefined`: Used to define a string that autocomplete attribute the current element.
|
|
12
13
|
- `badge`: `string | undefined`: Value of the badge.
|
|
13
14
|
- `badgeSeverity`: `"success" | "info" | "warn" | "danger" | "secondary" | "contrast" | "help" | "primary" | null | undefined` = `'secondary'`: Severity type of the badge.
|
|
14
15
|
- `disabled`: `boolean | undefined`: When present, it specifies that the component should be disabled.
|
|
@@ -26,7 +27,7 @@ Inputs:
|
|
|
26
27
|
- `styleClass`: `string | undefined`: Class of the element.
|
|
27
28
|
- `text`: `boolean` = `false`: Add a textual class to the button without a background initially.
|
|
28
29
|
- `variant`: `"outlined" | "text" | undefined`: Specifies the variant of the component.
|
|
29
|
-
- Other inputs: `ariaControls`, `ariaExpanded`, `
|
|
30
|
+
- Other inputs: `ariaControls`, `ariaExpanded`, `autofocus`, `buttonProps`, `fluid`, `hostName`, `loadingIcon`, `plain`, `tabindex`, `type`.
|
|
30
31
|
|
|
31
32
|
Outputs:
|
|
32
33
|
- `(onBlur)`: `FocusEvent`
|
|
@@ -48,10 +49,14 @@ Button directive is an extension to button component.
|
|
|
48
49
|
|
|
49
50
|
### `[pButtonIcon]`: ButtonIcon
|
|
50
51
|
|
|
52
|
+
Icon of a pButton: `<i class="pi pi-check" pButtonIcon></i>` inside the button.
|
|
53
|
+
|
|
51
54
|
- Inputs: `pButtonIconPT`, `pButtonUnstyled`.
|
|
52
55
|
|
|
53
56
|
### `[pButtonLabel]`: ButtonLabel
|
|
54
57
|
|
|
58
|
+
Label of a pButton: `<span pButtonLabel>Save</span>` inside the button.
|
|
59
|
+
|
|
55
60
|
- Inputs: `pButtonLabelPT`, `pButtonLabelUnstyled`.
|
|
56
61
|
|
|
57
62
|
## Example: Basic
|
|
@@ -69,7 +74,8 @@ import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
|
69
74
|
standalone: true,
|
|
70
75
|
imports: [ButtonModule]
|
|
71
76
|
})
|
|
72
|
-
export class ButtonBasicDemo {
|
|
77
|
+
export class ButtonBasicDemo {
|
|
78
|
+
}
|
|
73
79
|
```
|
|
74
80
|
|
|
75
81
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
package/data/cards/card.md
CHANGED
|
@@ -40,7 +40,8 @@ import { CardModule } from '@exhaustive-ui/core/card';
|
|
|
40
40
|
standalone: true,
|
|
41
41
|
imports: [CardModule]
|
|
42
42
|
})
|
|
43
|
-
export class CardBasicDemo {
|
|
43
|
+
export class CardBasicDemo {
|
|
44
|
+
}
|
|
44
45
|
```
|
|
45
46
|
|
|
46
47
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
package/data/cards/carousel.md
CHANGED
|
@@ -35,12 +35,13 @@ Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the b
|
|
|
35
35
|
## Example: Vertical
|
|
36
36
|
|
|
37
37
|
```typescript
|
|
38
|
-
import {
|
|
38
|
+
import { CommonModule } from '@angular/common';
|
|
39
|
+
import { Component, inject, OnInit, signal } from '@angular/core';
|
|
39
40
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
40
41
|
import { CarouselModule } from '@exhaustive-ui/core/carousel';
|
|
41
42
|
import { TagModule } from '@exhaustive-ui/core/tag';
|
|
42
|
-
import { ProductService } from '@/service/productservice';
|
|
43
43
|
import { Product } from '@/domain/product';
|
|
44
|
+
import { ProductService } from '@/service/productservice';
|
|
44
45
|
|
|
45
46
|
@Component({
|
|
46
47
|
template: `
|
|
@@ -58,8 +59,8 @@ import { Product } from '@/domain/product';
|
|
|
58
59
|
<div class="flex justify-between items-center">
|
|
59
60
|
<div class="mt-0 font-semibold text-xl">{{ '$' + product.price }}</div>
|
|
60
61
|
<span>
|
|
61
|
-
<p-button icon="pi pi-heart" severity="secondary" [outlined]="true" />
|
|
62
|
-
<p-button icon="pi pi-shopping-cart" styleClass="ml-2" />
|
|
62
|
+
<p-button icon="pi pi-heart" ariaLabel="Add to favorites" severity="secondary" [outlined]="true" />
|
|
63
|
+
<p-button icon="pi pi-shopping-cart" ariaLabel="Add to cart" styleClass="ml-2" />
|
|
63
64
|
</span>
|
|
64
65
|
</div>
|
|
65
66
|
</div>
|
|
@@ -68,11 +69,12 @@ import { Product } from '@/domain/product';
|
|
|
68
69
|
</div>
|
|
69
70
|
`,
|
|
70
71
|
standalone: true,
|
|
71
|
-
imports: [
|
|
72
|
+
imports: [CommonModule, CarouselModule, ButtonModule, TagModule],
|
|
72
73
|
providers: [ProductService]
|
|
73
74
|
})
|
|
74
75
|
export class CarouselVerticalDemo implements OnInit {
|
|
75
76
|
private productService = inject(ProductService);
|
|
77
|
+
|
|
76
78
|
products = signal<Product[]>([]);
|
|
77
79
|
|
|
78
80
|
ngOnInit() {
|
|
@@ -53,11 +53,6 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
53
53
|
|
|
54
54
|
Read a context with `let-`: `<ng-template #value let-item let-placeholder="placeholder">` (`$implicit` is the bare `let-x`).
|
|
55
55
|
|
|
56
|
-
### `ul[pCascadeSelectSub]`: CascadeSelectSub
|
|
57
|
-
|
|
58
|
-
- Inputs: `activeOptionPath`, `focusedOptionId`, `groupicon`, `level`, `optionDisabled`, `optionGroupLabel`, `optionLabel`, `options`, `optionTemplate`, `root`, `selectId`.
|
|
59
|
-
- Outputs: `(onChange)`, `(onFocusChange)`, `(onFocusEnterChange)`.
|
|
60
|
-
|
|
61
56
|
## Example: Disabled
|
|
62
57
|
|
|
63
58
|
```typescript
|
|
@@ -73,7 +68,8 @@ import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
|
73
68
|
standalone: true,
|
|
74
69
|
imports: [CascadeSelectModule]
|
|
75
70
|
})
|
|
76
|
-
export class CascadeselectDisabledDemo {
|
|
71
|
+
export class CascadeselectDisabledDemo {
|
|
72
|
+
}
|
|
77
73
|
```
|
|
78
74
|
|
|
79
75
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
package/data/cards/chart.md
CHANGED
|
@@ -9,10 +9,11 @@ import { UIChart } from '@exhaustive-ui/core/chart'; // standalone; or ChartModu
|
|
|
9
9
|
## `p-chart`: UIChart
|
|
10
10
|
|
|
11
11
|
Inputs:
|
|
12
|
+
- `ariaLabel`: `string | undefined`: Used to define a string that autocomplete attribute the current element.
|
|
12
13
|
- `data`: `any`: Data to display.
|
|
13
14
|
- `options`: `any` = `{}`: Options to customize the chart.
|
|
14
15
|
- `type`: `"bar" | "line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar" | undefined`: Type of the chart.
|
|
15
|
-
- Other inputs: `
|
|
16
|
+
- Other inputs: `ariaLabelledBy`, `height`, `plugins`, `responsive`, `width`.
|
|
16
17
|
|
|
17
18
|
Outputs:
|
|
18
19
|
- `(onDataSelect)`: `ChartDataSelectEvent`
|
|
@@ -20,13 +21,14 @@ Outputs:
|
|
|
20
21
|
## Example: Basic
|
|
21
22
|
|
|
22
23
|
```typescript
|
|
23
|
-
import {
|
|
24
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
25
|
+
import { Component, inject, OnInit, PLATFORM_ID } from '@angular/core';
|
|
24
26
|
import { ChartModule } from '@exhaustive-ui/core/chart';
|
|
25
27
|
|
|
26
28
|
@Component({
|
|
27
29
|
template: `
|
|
28
30
|
<div class="card">
|
|
29
|
-
<p-chart type="bar" [data]="basicData" [options]="basicOptions" />
|
|
31
|
+
<p-chart type="bar" ariaLabel="Bar chart of sales by quarter" [data]="basicData" [options]="basicOptions" />
|
|
30
32
|
</div>
|
|
31
33
|
`,
|
|
32
34
|
standalone: true,
|
|
@@ -34,9 +36,10 @@ import { ChartModule } from '@exhaustive-ui/core/chart';
|
|
|
34
36
|
})
|
|
35
37
|
export class ChartBasicDemo implements OnInit {
|
|
36
38
|
basicData: any;
|
|
39
|
+
|
|
37
40
|
basicOptions: any;
|
|
41
|
+
|
|
38
42
|
platformId = inject(PLATFORM_ID);
|
|
39
|
-
configService = inject(AppConfigService);
|
|
40
43
|
|
|
41
44
|
ngOnInit() {
|
|
42
45
|
this.initChart();
|
|
@@ -48,7 +51,7 @@ export class ChartBasicDemo implements OnInit {
|
|
|
48
51
|
const textColor = documentStyle.getPropertyValue('--p-text-color');
|
|
49
52
|
const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
|
|
50
53
|
const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
|
|
51
|
-
|
|
54
|
+
|
|
52
55
|
this.basicData = {
|
|
53
56
|
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
54
57
|
datasets: [
|
|
@@ -61,7 +64,7 @@ export class ChartBasicDemo implements OnInit {
|
|
|
61
64
|
}
|
|
62
65
|
]
|
|
63
66
|
};
|
|
64
|
-
|
|
67
|
+
|
|
65
68
|
this.basicOptions = {
|
|
66
69
|
maintainAspectRatio: false,
|
|
67
70
|
aspectRatio: 0.8,
|
|
@@ -92,7 +95,6 @@ export class ChartBasicDemo implements OnInit {
|
|
|
92
95
|
}
|
|
93
96
|
}
|
|
94
97
|
};
|
|
95
|
-
this.cd.markForCheck();
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
100
|
}
|
package/data/cards/checkbox.md
CHANGED
|
@@ -11,6 +11,7 @@ import { Checkbox } from '@exhaustive-ui/core/checkbox'; // standalone; or Check
|
|
|
11
11
|
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
12
|
|
|
13
13
|
Inputs:
|
|
14
|
+
- `ariaLabel`: `string | undefined`: Used to define a string that labels the input element.
|
|
14
15
|
- `binary`: `boolean | undefined`: Allows to select a boolean value instead of multiple values.
|
|
15
16
|
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
16
17
|
- `indeterminate`: `boolean` = `false`: When present, it specifies input state as indeterminate.
|
|
@@ -20,7 +21,7 @@ Inputs:
|
|
|
20
21
|
- `size`: `"large" | "small" | undefined`: Specifies the size of the component.
|
|
21
22
|
- `value`: `any`: Value of the checkbox.
|
|
22
23
|
- `variant`: `"filled" | "outlined" | undefined`: Specifies the input variant of the component.
|
|
23
|
-
- Other inputs: `
|
|
24
|
+
- Other inputs: `ariaLabelledBy`, `autofocus`, `checkboxIcon`, `falseValue`, `formControl`, `hostName`, `inputClass`, `inputStyle`, `readonly`, `required`, `tabindex`, `trueValue`.
|
|
24
25
|
|
|
25
26
|
Outputs:
|
|
26
27
|
- `(onBlur)`: `Event`
|
|
@@ -42,11 +43,11 @@ import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
|
|
|
42
43
|
@Component({
|
|
43
44
|
template: `
|
|
44
45
|
<div class="card flex justify-center gap-4">
|
|
45
|
-
<p-checkbox [(ngModel)]="checked" [binary]="true" />
|
|
46
|
+
<p-checkbox [(ngModel)]="checked" [binary]="true" ariaLabel="Accept" />
|
|
46
47
|
</div>
|
|
47
48
|
`,
|
|
48
49
|
standalone: true,
|
|
49
|
-
imports: [
|
|
50
|
+
imports: [FormsModule, CheckboxModule]
|
|
50
51
|
})
|
|
51
52
|
export class CheckboxBasicDemo {
|
|
52
53
|
checked: any = null;
|
package/data/cards/chip.md
CHANGED
|
@@ -41,7 +41,8 @@ import { ChipModule } from '@exhaustive-ui/core/chip';
|
|
|
41
41
|
standalone: true,
|
|
42
42
|
imports: [ChipModule]
|
|
43
43
|
})
|
|
44
|
-
export class ChipBasicDemo {
|
|
44
|
+
export class ChipBasicDemo {
|
|
45
|
+
}
|
|
45
46
|
```
|
|
46
47
|
|
|
47
48
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
package/data/cards/classnames.md
CHANGED
|
@@ -14,7 +14,9 @@ Inputs:
|
|
|
14
14
|
## Example: Examples
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
import {
|
|
17
|
+
import { CommonModule } from '@angular/common';
|
|
18
|
+
import { Component, computed, signal } from '@angular/core';
|
|
19
|
+
import { ClassNamesModule } from '@exhaustive-ui/core/classnames';
|
|
18
20
|
|
|
19
21
|
@Component({
|
|
20
22
|
template: `
|
|
@@ -51,12 +53,28 @@ import { Component, signal } from '@angular/core';
|
|
|
51
53
|
</div>
|
|
52
54
|
`,
|
|
53
55
|
standalone: true,
|
|
54
|
-
imports: []
|
|
56
|
+
imports: [ClassNamesModule, CommonModule]
|
|
55
57
|
})
|
|
56
58
|
export class ClassnamesExamplesDemo {
|
|
57
59
|
active1 = signal<boolean>(false);
|
|
60
|
+
|
|
58
61
|
active2 = signal<boolean>(false);
|
|
59
|
-
|
|
62
|
+
|
|
63
|
+
nestedClasses = computed(() => [
|
|
64
|
+
'p-4',
|
|
65
|
+
'rounded-lg',
|
|
66
|
+
{
|
|
67
|
+
'bg-primary text-primary-contrast': this.active2()
|
|
68
|
+
},
|
|
69
|
+
[
|
|
70
|
+
'cursor-pointer select-none',
|
|
71
|
+
'border',
|
|
72
|
+
{
|
|
73
|
+
'bg-primary-100 text-primary-800': !this.active2()
|
|
74
|
+
},
|
|
75
|
+
['shadow-xs hover:shadow-lg', 'transition-all']
|
|
76
|
+
]
|
|
77
|
+
]);
|
|
60
78
|
|
|
61
79
|
toggle1() {
|
|
62
80
|
this.active1.set(!this.active1());
|
|
@@ -29,6 +29,7 @@ Outputs:
|
|
|
29
29
|
|
|
30
30
|
```typescript
|
|
31
31
|
import { Component } from '@angular/core';
|
|
32
|
+
import { CommonModule } from '@angular/common';
|
|
32
33
|
import { FormsModule } from '@angular/forms';
|
|
33
34
|
import { ColorPickerModule } from '@exhaustive-ui/core/colorpicker';
|
|
34
35
|
|
|
@@ -39,7 +40,7 @@ import { ColorPickerModule } from '@exhaustive-ui/core/colorpicker';
|
|
|
39
40
|
</div>
|
|
40
41
|
`,
|
|
41
42
|
standalone: true,
|
|
42
|
-
imports: [
|
|
43
|
+
imports: [CommonModule, FormsModule, ColorPickerModule]
|
|
43
44
|
})
|
|
44
45
|
export class ColorpickerBasicDemo {
|
|
45
46
|
color: string | undefined;
|
|
@@ -17,7 +17,7 @@ Inputs:
|
|
|
17
17
|
|
|
18
18
|
Outputs:
|
|
19
19
|
- `(onHide)`: `ConfirmEventType | undefined`
|
|
20
|
-
- `(visibleChange)`: `
|
|
20
|
+
- `(visibleChange)`: `boolean | undefined`
|
|
21
21
|
|
|
22
22
|
Templates (`<ng-template #name let-…>` inside the element):
|
|
23
23
|
- `#header`: context { ariaLabelledBy: string | null | undefined }. Custom header template.
|
|
@@ -34,10 +34,10 @@ Read a context with `let-`: `<ng-template #header let-ariaLabelledBy="ariaLabell
|
|
|
34
34
|
|
|
35
35
|
```typescript
|
|
36
36
|
import { Component, inject } from '@angular/core';
|
|
37
|
-
import {
|
|
37
|
+
import { ConfirmationService, MessageService } from '@exhaustive-ui/core/api';
|
|
38
38
|
import { ConfirmDialogModule } from '@exhaustive-ui/core/confirmdialog';
|
|
39
39
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
40
|
-
import {
|
|
40
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
41
41
|
|
|
42
42
|
@Component({
|
|
43
43
|
template: `
|
|
@@ -49,13 +49,43 @@ import { MessageService, ConfirmationService } from '@exhaustive-ui/core/api';
|
|
|
49
49
|
</div>
|
|
50
50
|
`,
|
|
51
51
|
standalone: true,
|
|
52
|
-
imports: [
|
|
52
|
+
imports: [ConfirmDialogModule, ToastModule, ButtonModule],
|
|
53
53
|
providers: [ConfirmationService, MessageService]
|
|
54
54
|
})
|
|
55
55
|
export class ConfirmdialogBasicDemo {
|
|
56
56
|
private confirmationService = inject(ConfirmationService);
|
|
57
57
|
private messageService = inject(MessageService);
|
|
58
58
|
|
|
59
|
+
confirm1(event: Event) {
|
|
60
|
+
this.confirmationService.confirm({
|
|
61
|
+
target: event.target as EventTarget,
|
|
62
|
+
message: 'Are you sure that you want to proceed?',
|
|
63
|
+
header: 'Confirmation',
|
|
64
|
+
closable: true,
|
|
65
|
+
closeOnEscape: true,
|
|
66
|
+
icon: 'pi pi-exclamation-triangle',
|
|
67
|
+
rejectButtonProps: {
|
|
68
|
+
label: 'Cancel',
|
|
69
|
+
severity: 'secondary',
|
|
70
|
+
outlined: true
|
|
71
|
+
},
|
|
72
|
+
acceptButtonProps: {
|
|
73
|
+
label: 'Save'
|
|
74
|
+
},
|
|
75
|
+
accept: () => {
|
|
76
|
+
this.messageService.add({ severity: 'info', summary: 'Confirmed', detail: 'You have accepted' });
|
|
77
|
+
},
|
|
78
|
+
reject: () => {
|
|
79
|
+
this.messageService.add({
|
|
80
|
+
severity: 'error',
|
|
81
|
+
summary: 'Rejected',
|
|
82
|
+
detail: 'You have rejected',
|
|
83
|
+
life: 3000
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
59
89
|
confirm2(event: Event) {
|
|
60
90
|
this.confirmationService.confirm({
|
|
61
91
|
target: event.target as EventTarget,
|
|
@@ -72,7 +102,7 @@ export class ConfirmdialogBasicDemo {
|
|
|
72
102
|
label: 'Delete',
|
|
73
103
|
severity: 'danger'
|
|
74
104
|
},
|
|
75
|
-
|
|
105
|
+
|
|
76
106
|
accept: () => {
|
|
77
107
|
this.messageService.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted' });
|
|
78
108
|
},
|
|
@@ -22,10 +22,10 @@ Read a context with `let-`: `<ng-template #content let-item>` (`$implicit` is th
|
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
24
|
import { Component, inject } from '@angular/core';
|
|
25
|
-
import {
|
|
25
|
+
import { ConfirmationService, MessageService } from '@exhaustive-ui/core/api';
|
|
26
26
|
import { ConfirmPopupModule } from '@exhaustive-ui/core/confirmpopup';
|
|
27
27
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
28
|
-
import {
|
|
28
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
29
29
|
|
|
30
30
|
@Component({
|
|
31
31
|
template: `
|
|
@@ -37,13 +37,35 @@ import { MessageService, ConfirmationService } from '@exhaustive-ui/core/api';
|
|
|
37
37
|
</div>
|
|
38
38
|
`,
|
|
39
39
|
standalone: true,
|
|
40
|
-
imports: [
|
|
40
|
+
imports: [ConfirmPopupModule, ToastModule, ButtonModule],
|
|
41
41
|
providers: [ConfirmationService, MessageService]
|
|
42
42
|
})
|
|
43
43
|
export class ConfirmpopupBasicDemo {
|
|
44
44
|
private confirmationService = inject(ConfirmationService);
|
|
45
45
|
private messageService = inject(MessageService);
|
|
46
46
|
|
|
47
|
+
confirm1(event: Event) {
|
|
48
|
+
this.confirmationService.confirm({
|
|
49
|
+
target: event.currentTarget as EventTarget,
|
|
50
|
+
message: 'Are you sure you want to proceed?',
|
|
51
|
+
icon: 'pi pi-exclamation-triangle',
|
|
52
|
+
rejectButtonProps: {
|
|
53
|
+
label: 'Cancel',
|
|
54
|
+
severity: 'secondary',
|
|
55
|
+
outlined: true
|
|
56
|
+
},
|
|
57
|
+
acceptButtonProps: {
|
|
58
|
+
label: 'Save'
|
|
59
|
+
},
|
|
60
|
+
accept: () => {
|
|
61
|
+
this.messageService.add({ severity: 'info', summary: 'Confirmed', detail: 'You have accepted', life: 3000 });
|
|
62
|
+
},
|
|
63
|
+
reject: () => {
|
|
64
|
+
this.messageService.add({ severity: 'error', summary: 'Rejected', detail: 'You have rejected', life: 3000 });
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
47
69
|
confirm2(event: Event) {
|
|
48
70
|
this.confirmationService.confirm({
|
|
49
71
|
target: event.currentTarget as EventTarget,
|
|
@@ -26,18 +26,12 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
26
26
|
|
|
27
27
|
Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
|
|
28
28
|
|
|
29
|
-
### `p-context-menu-sub` (also `p-contextMenuSub`, `p-contextmenu-sub`, legacy): ContextMenuSub
|
|
30
|
-
|
|
31
|
-
- Inputs: `activeItemPath`, `ariaLabel`, `ariaLabelledBy`, `focusedItemId`, `items`, `itemTemplate`, `level`, `menuId`, `motionOptions`, `root`, `tabindex`, `visible`.
|
|
32
|
-
- Outputs: `(itemClick)`, `(itemMouseEnter)`, `(menuBlur)`, `(menuFocus)`, `(menuKeydown)`.
|
|
33
|
-
|
|
34
29
|
## Example: Basic
|
|
35
30
|
|
|
36
31
|
```typescript
|
|
37
32
|
import { Component, OnInit } from '@angular/core';
|
|
38
|
-
import { ContextMenu, ContextMenuModule } from '@exhaustive-ui/core/contextmenu';
|
|
39
33
|
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
40
|
-
import {
|
|
34
|
+
import { ContextMenuModule } from '@exhaustive-ui/core/contextmenu';
|
|
41
35
|
|
|
42
36
|
@Component({
|
|
43
37
|
template: `
|