@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/inputgroup.md
CHANGED
|
@@ -14,9 +14,10 @@ import { InputGroup } from '@exhaustive-ui/core/inputgroup'; // standalone; or I
|
|
|
14
14
|
import { Component } from '@angular/core';
|
|
15
15
|
import { FormsModule } from '@angular/forms';
|
|
16
16
|
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
17
|
+
import { InputGroupAddonModule } from '@exhaustive-ui/core/inputgroupaddon';
|
|
18
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
17
19
|
import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
18
20
|
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
19
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
20
21
|
|
|
21
22
|
interface City {
|
|
22
23
|
name: string;
|
|
@@ -50,14 +51,24 @@ interface City {
|
|
|
50
51
|
</div>
|
|
51
52
|
`,
|
|
52
53
|
standalone: true,
|
|
53
|
-
imports: [
|
|
54
|
+
imports: [FormsModule, InputGroupModule, InputGroupAddonModule, InputTextModule, InputNumberModule, SelectModule]
|
|
54
55
|
})
|
|
55
56
|
export class InputgroupBasicDemo {
|
|
56
57
|
text1: string | undefined;
|
|
58
|
+
|
|
57
59
|
text2: string | undefined;
|
|
60
|
+
|
|
58
61
|
number: string | undefined;
|
|
62
|
+
|
|
59
63
|
selectedCity: City | undefined;
|
|
60
|
-
|
|
64
|
+
|
|
65
|
+
cities: City[] = [
|
|
66
|
+
{ name: 'New York', code: 'NY' },
|
|
67
|
+
{ name: 'Rome', code: 'RM' },
|
|
68
|
+
{ name: 'London', code: 'LDN' },
|
|
69
|
+
{ name: 'Istanbul', code: 'IST' },
|
|
70
|
+
{ name: 'Paris', code: 'PRS' }
|
|
71
|
+
];
|
|
61
72
|
}
|
|
62
73
|
```
|
|
63
74
|
|
package/data/cards/inputmask.md
CHANGED
|
@@ -49,8 +49,8 @@ InputMask directive is applied directly to input elements to enable masked input
|
|
|
49
49
|
```typescript
|
|
50
50
|
import { Component } from '@angular/core';
|
|
51
51
|
import { FormsModule } from '@angular/forms';
|
|
52
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
53
52
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
53
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
54
54
|
|
|
55
55
|
@Component({
|
|
56
56
|
template: `
|
|
@@ -59,7 +59,7 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
59
59
|
</div>
|
|
60
60
|
`,
|
|
61
61
|
standalone: true,
|
|
62
|
-
imports: [
|
|
62
|
+
imports: [FormsModule, InputMaskModule, InputText]
|
|
63
63
|
})
|
|
64
64
|
export class InputmaskBasicDemo {
|
|
65
65
|
value: string | undefined;
|
|
@@ -11,6 +11,7 @@ import { InputNumber } from '@exhaustive-ui/core/inputnumber'; // standalone; or
|
|
|
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
|
- `buttonLayout`: `string` = `'stacked'`: Layout of the buttons, valid values are "stacked" (default), "horizontal" and "vertical".
|
|
15
16
|
- `currency`: `string | undefined`: The currency to use in currency formatting.
|
|
16
17
|
- `currencyDisplay`: `any`: How to display the currency in currency formatting.
|
|
@@ -37,7 +38,7 @@ Inputs:
|
|
|
37
38
|
- `suffix`: `string | undefined`: Text to display after the value.
|
|
38
39
|
- `useGrouping`: `boolean` = `true`: Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
|
|
39
40
|
- `variant`: `"filled" | "outlined" | undefined` = `'outlined'`: Specifies the input variant of the component.
|
|
40
|
-
- Other inputs: `allowEmpty`, `ariaDescribedBy`, `
|
|
41
|
+
- Other inputs: `allowEmpty`, `ariaDescribedBy`, `ariaLabelledBy`, `ariaRequired`, `autocomplete`, `autofocus`, `decrementButtonClass`, `decrementButtonIcon`, `format`, `incrementButtonClass`, `incrementButtonIcon`, `inputSize`, `localeMatcher`, `maxlength`, `minlength`, `pattern`, `readonly`, `tabindex`, `title`.
|
|
41
42
|
|
|
42
43
|
Outputs:
|
|
43
44
|
- `(onBlur)`: `Event`
|
|
@@ -61,11 +62,11 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
|
61
62
|
@Component({
|
|
62
63
|
template: `
|
|
63
64
|
<div class="card flex justify-center">
|
|
64
|
-
<p-input-number variant="filled" [(ngModel)]="value1" />
|
|
65
|
+
<p-input-number variant="filled" [(ngModel)]="value1" ariaLabel="Quantity" />
|
|
65
66
|
</div>
|
|
66
67
|
`,
|
|
67
68
|
standalone: true,
|
|
68
|
-
imports: [
|
|
69
|
+
imports: [FormsModule, InputNumberModule]
|
|
69
70
|
})
|
|
70
71
|
export class InputnumberFilledDemo {
|
|
71
72
|
value1!: number;
|
package/data/cards/inputotp.md
CHANGED
|
@@ -27,7 +27,7 @@ Outputs:
|
|
|
27
27
|
- `(onFocus)`: `Event`
|
|
28
28
|
|
|
29
29
|
Templates (`<ng-template #name let-…>` inside the element):
|
|
30
|
-
- `#input`: context { $implicit: string | number, events: InputOtpTemplateEvents, index: number }. Custom input template.
|
|
30
|
+
- `#input`: context { $implicit: string | number, events: InputOtpTemplateEvents, index: number, ariaLabel?: string | undefined }. Custom input template.
|
|
31
31
|
|
|
32
32
|
Read a context with `let-`: `<ng-template #input let-item let-events="events" let-index="index">` (`$implicit` is the bare `let-x`).
|
|
33
33
|
|
|
@@ -48,7 +48,7 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
48
48
|
</div>
|
|
49
49
|
`,
|
|
50
50
|
standalone: true,
|
|
51
|
-
imports: [
|
|
51
|
+
imports: [FormsModule, InputOtpModule]
|
|
52
52
|
})
|
|
53
53
|
export class InputotpBasicDemo {
|
|
54
54
|
value: any;
|
package/data/cards/inputtext.md
CHANGED
|
@@ -25,11 +25,11 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
25
25
|
@Component({
|
|
26
26
|
template: `
|
|
27
27
|
<div class="card flex justify-center">
|
|
28
|
-
<input type="text" pInputText [(ngModel)]="value" />
|
|
28
|
+
<input type="text" pInputText [(ngModel)]="value" aria-label="Name" />
|
|
29
29
|
</div>
|
|
30
30
|
`,
|
|
31
31
|
standalone: true,
|
|
32
|
-
imports: [
|
|
32
|
+
imports: [FormsModule, InputTextModule]
|
|
33
33
|
})
|
|
34
34
|
export class InputtextBasicDemo {
|
|
35
35
|
value: string;
|
package/data/cards/keyfilter.md
CHANGED
|
@@ -20,6 +20,7 @@ Outputs:
|
|
|
20
20
|
```typescript
|
|
21
21
|
import { Component } from '@angular/core';
|
|
22
22
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
23
|
+
import { KeyFilterModule } from '@exhaustive-ui/core/keyfilter';
|
|
23
24
|
|
|
24
25
|
@Component({
|
|
25
26
|
template: `
|
|
@@ -35,7 +36,7 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
35
36
|
</div>
|
|
36
37
|
`,
|
|
37
38
|
standalone: true,
|
|
38
|
-
imports: [InputTextModule]
|
|
39
|
+
imports: [InputTextModule, KeyFilterModule]
|
|
39
40
|
})
|
|
40
41
|
export class KeyfilterRegexDemo {
|
|
41
42
|
blockSpace: RegExp = /^[^\s]+$/;
|
package/data/cards/knob.md
CHANGED
|
@@ -11,6 +11,7 @@ import { Knob } from '@exhaustive-ui/core/knob'; // standalone; or KnobModule fo
|
|
|
11
11
|
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
12
|
|
|
13
13
|
Inputs:
|
|
14
|
+
- `ariaLabel`: `string | undefined`: Defines a string that labels the input for accessibility.
|
|
14
15
|
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
15
16
|
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
16
17
|
- `max`: `number` = `100`: Maximum boundary value.
|
|
@@ -23,7 +24,7 @@ Inputs:
|
|
|
23
24
|
- `strokeWidth`: `number` = `14`: Width of the knob stroke.
|
|
24
25
|
- `valueColor`: `string` = `$dt('knob.value.background').variable`: Background of the value.
|
|
25
26
|
- `valueTemplate`: `string` = `'{value}'`: Template string of the value.
|
|
26
|
-
- Other inputs: `
|
|
27
|
+
- Other inputs: `ariaLabelledBy`, `required`, `showValue`, `tabindex`, `textColor`.
|
|
27
28
|
|
|
28
29
|
Outputs:
|
|
29
30
|
- `(onChange)`: `number`
|
|
@@ -42,7 +43,7 @@ import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
|
42
43
|
</div>
|
|
43
44
|
`,
|
|
44
45
|
standalone: true,
|
|
45
|
-
imports: [
|
|
46
|
+
imports: [FormsModule, KnobModule]
|
|
46
47
|
})
|
|
47
48
|
export class KnobBasicDemo {
|
|
48
49
|
value!: number;
|
package/data/cards/listbox.md
CHANGED
|
@@ -11,6 +11,7 @@ import { Listbox } from '@exhaustive-ui/core/listbox'; // standalone; or Listbox
|
|
|
11
11
|
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
12
|
|
|
13
13
|
Inputs:
|
|
14
|
+
- `ariaLabel`: `string | undefined`: Defines a string that labels the input for accessibility.
|
|
14
15
|
- `checkbox`: `boolean` = `false`: When specified, allows selecting items with checkboxes.
|
|
15
16
|
- `checkmark`: `boolean` = `false`: Whether the selected option will be shown with a check mark.
|
|
16
17
|
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
@@ -30,7 +31,7 @@ Inputs:
|
|
|
30
31
|
- `striped`: `boolean | undefined` = `false`: Whether to displays rows with alternating colors.
|
|
31
32
|
- `virtualScroll`: `boolean | undefined`: Whether the data should be loaded on demand during scroll.
|
|
32
33
|
- `virtualScrollItemSize`: `number | undefined`: Height of an item in the list for VirtualScrolling.
|
|
33
|
-
- Other inputs: `ariaFilterLabel`, `
|
|
34
|
+
- Other inputs: `ariaFilterLabel`, `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
|
|
|
35
36
|
Outputs:
|
|
36
37
|
- `(onBlur)`: `FocusEvent`
|
|
@@ -76,14 +77,15 @@ interface City {
|
|
|
76
77
|
@Component({
|
|
77
78
|
template: `
|
|
78
79
|
<div class="card flex justify-center">
|
|
79
|
-
<p-listbox [options]="cities" [(ngModel)]="selectedCity" optionLabel="name" class="w-full md:w-56" />
|
|
80
|
+
<p-listbox [options]="cities" [(ngModel)]="selectedCity" optionLabel="name" class="w-full md:w-56" ariaLabel="City" />
|
|
80
81
|
</div>
|
|
81
82
|
`,
|
|
82
83
|
standalone: true,
|
|
83
|
-
imports: [
|
|
84
|
+
imports: [FormsModule, ListboxModule]
|
|
84
85
|
})
|
|
85
86
|
export class ListboxBasicDemo implements OnInit {
|
|
86
87
|
cities!: City[];
|
|
88
|
+
|
|
87
89
|
selectedCity!: City;
|
|
88
90
|
|
|
89
91
|
ngOnInit() {
|
package/data/cards/megamenu.md
CHANGED
|
@@ -9,10 +9,11 @@ import { MegaMenu } from '@exhaustive-ui/core/megamenu'; // standalone; or MegaM
|
|
|
9
9
|
## `p-mega-menu` (also `p-megaMenu`, `p-megamenu`, legacy): MegaMenu
|
|
10
10
|
|
|
11
11
|
Inputs:
|
|
12
|
+
- `ariaLabel`: `string | undefined`: Defines a string value that labels an interactive element.
|
|
12
13
|
- `id`: `string | undefined`: Current id state as a string.
|
|
13
14
|
- `model`: `MegaMenuItem[] | undefined`: An array of menuitems.
|
|
14
15
|
- `orientation`: `string` = `'horizontal'`: Defines the orientation.
|
|
15
|
-
- Other inputs: `
|
|
16
|
+
- Other inputs: `ariaLabelledBy`, `breakpoint`, `disabled`, `scrollHeight`, `tabindex`.
|
|
16
17
|
|
|
17
18
|
Templates (`<ng-template #name let-…>` inside the element):
|
|
18
19
|
- `#start`: no context. Defines template option for start.
|
|
@@ -24,17 +25,13 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
24
25
|
|
|
25
26
|
Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
|
|
26
27
|
|
|
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
28
|
## Example: Router
|
|
33
29
|
|
|
34
30
|
```typescript
|
|
35
|
-
import { Component, OnInit } from '@angular/core';
|
|
36
|
-
import {
|
|
31
|
+
import { Component, OnInit, inject } from '@angular/core';
|
|
32
|
+
import { Router } from '@angular/router';
|
|
37
33
|
import { MegaMenuItem } from '@exhaustive-ui/core/api';
|
|
34
|
+
import { MegaMenuModule } from '@exhaustive-ui/core/megamenu';
|
|
38
35
|
|
|
39
36
|
@Component({
|
|
40
37
|
template: `
|
|
@@ -46,6 +43,8 @@ import { MegaMenuItem } from '@exhaustive-ui/core/api';
|
|
|
46
43
|
imports: [MegaMenuModule]
|
|
47
44
|
})
|
|
48
45
|
export class MegamenuRouterDemo implements OnInit {
|
|
46
|
+
private router = inject(Router);
|
|
47
|
+
|
|
49
48
|
items: MegaMenuItem[] | undefined;
|
|
50
49
|
|
|
51
50
|
ngOnInit() {
|
package/data/cards/menu.md
CHANGED
|
@@ -9,12 +9,13 @@ import { Menu } from '@exhaustive-ui/core/menu'; // standalone; or MenuModule fo
|
|
|
9
9
|
## `p-menu`: Menu
|
|
10
10
|
|
|
11
11
|
Inputs:
|
|
12
|
+
- `ariaLabel`: `string | undefined`: Defines a string value that labels an interactive element.
|
|
12
13
|
- `id`: `string | undefined`: Current id state as a string.
|
|
13
14
|
- `model`: `MenuItem[] | undefined`: An array of menuitems.
|
|
14
15
|
- `popup`: `boolean | undefined`: Defines if menu would displayed as a popup.
|
|
15
16
|
- `style`: `{ [klass: string]: any; } | null | undefined`: Inline style of the component.
|
|
16
17
|
- `styleClass`: `string | undefined`: Style class of the component.
|
|
17
|
-
- Other inputs: `appendTo`, `
|
|
18
|
+
- Other inputs: `appendTo`, `ariaLabelledBy`, `autoZIndex`, `baseZIndex`, `motionOptions`, `tabindex`.
|
|
18
19
|
|
|
19
20
|
Outputs:
|
|
20
21
|
- `(onBlur)`: `Event`
|
|
@@ -30,17 +31,12 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
30
31
|
|
|
31
32
|
Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
|
|
32
33
|
|
|
33
|
-
### `[pMenuItemContent]`: MenuItemContent
|
|
34
|
-
|
|
35
|
-
- Inputs: `idx`, `itemTemplate`, `menuitemId`, `pMenuItemContent`.
|
|
36
|
-
- Outputs: `(onMenuItemClick)`.
|
|
37
|
-
|
|
38
34
|
## Example: Basic
|
|
39
35
|
|
|
40
36
|
```typescript
|
|
41
37
|
import { Component, OnInit } from '@angular/core';
|
|
42
|
-
import { MenuModule } from '@exhaustive-ui/core/menu';
|
|
43
38
|
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
39
|
+
import { MenuModule } from '@exhaustive-ui/core/menu';
|
|
44
40
|
|
|
45
41
|
@Component({
|
|
46
42
|
template: `
|
package/data/cards/menubar.md
CHANGED
|
@@ -9,9 +9,10 @@ import { Menubar } from '@exhaustive-ui/core/menubar'; // standalone; or Menubar
|
|
|
9
9
|
## `p-menubar`: Menubar
|
|
10
10
|
|
|
11
11
|
Inputs:
|
|
12
|
+
- `ariaLabel`: `string | undefined`: Defines a string value that labels an interactive element.
|
|
12
13
|
- `id`: `string | undefined`: Current id state as a string.
|
|
13
14
|
- `model`: `MenuItem[] | undefined`: An array of menuitems.
|
|
14
|
-
- Other inputs: `
|
|
15
|
+
- Other inputs: `ariaLabelledBy`, `autoDisplay`, `autoHide`, `autoHideDelay`, `breakpoint`.
|
|
15
16
|
|
|
16
17
|
Outputs:
|
|
17
18
|
- `(onBlur)`: `FocusEvent`
|
|
@@ -26,17 +27,12 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
26
27
|
|
|
27
28
|
Read a context with `let-`: `<ng-template #item let-item let-root="root">` (`$implicit` is the bare `let-x`).
|
|
28
29
|
|
|
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
30
|
## Example: Basic
|
|
35
31
|
|
|
36
32
|
```typescript
|
|
37
33
|
import { Component, OnInit } from '@angular/core';
|
|
38
|
-
import { MenubarModule } from '@exhaustive-ui/core/menubar';
|
|
39
34
|
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
35
|
+
import { MenubarModule } from '@exhaustive-ui/core/menubar';
|
|
40
36
|
|
|
41
37
|
@Component({
|
|
42
38
|
template: `
|
package/data/cards/message.md
CHANGED
|
@@ -42,7 +42,8 @@ import { MessageModule } from '@exhaustive-ui/core/message';
|
|
|
42
42
|
standalone: true,
|
|
43
43
|
imports: [MessageModule]
|
|
44
44
|
})
|
|
45
|
-
export class MessageBasicDemo {
|
|
45
|
+
export class MessageBasicDemo {
|
|
46
|
+
}
|
|
46
47
|
```
|
|
47
48
|
|
|
48
49
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
package/data/cards/metergroup.md
CHANGED
|
@@ -14,7 +14,7 @@ Inputs:
|
|
|
14
14
|
- `max`: `number` = `100`: Maximum boundary value.
|
|
15
15
|
- `orientation`: `"vertical" | "horizontal"` = `'horizontal'`: Specifies the layout of the component, valid values are 'horizontal' and 'vertical'.
|
|
16
16
|
- `value`: `MeterItem[] | undefined`: Current value of the metergroup.
|
|
17
|
-
- Other inputs: `min`.
|
|
17
|
+
- Other inputs: `ariaLabel`, `ariaLabelledBy`, `min`.
|
|
18
18
|
|
|
19
19
|
Templates (`<ng-template #name let-…>` inside the element):
|
|
20
20
|
- `#label`: context { $implicit: MeterItem[], totalPercent: number, percentages: number[] }. Custom label template.
|
|
@@ -25,10 +25,6 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
25
25
|
|
|
26
26
|
Read a context with `let-`: `<ng-template #label let-item let-totalPercent="totalPercent" let-percentages="percentages">` (`$implicit` is the bare `let-x`).
|
|
27
27
|
|
|
28
|
-
### `p-meter-group-label` (also `p-meterGroupLabel`, `p-metergrouplabel`, legacy): MeterGroupLabel
|
|
29
|
-
|
|
30
|
-
- Inputs: `iconTemplate`, `labelOrientation`, `labelPosition`, `max`, `min`, `value`.
|
|
31
|
-
|
|
32
28
|
Types used in the contexts:
|
|
33
29
|
- `MeterItem`: { label?: string | undefined, value?: number | undefined, color?: string | undefined, icon?: string | undefined }
|
|
34
30
|
|
|
@@ -41,14 +37,14 @@ import { MeterGroupModule } from '@exhaustive-ui/core/metergroup';
|
|
|
41
37
|
@Component({
|
|
42
38
|
template: `
|
|
43
39
|
<div class="card">
|
|
44
|
-
<p-meter-group [value]="value" />
|
|
40
|
+
<p-meter-group [value]="value" aria-label="Storage usage" />
|
|
45
41
|
</div>
|
|
46
42
|
`,
|
|
47
43
|
standalone: true,
|
|
48
44
|
imports: [MeterGroupModule]
|
|
49
45
|
})
|
|
50
46
|
export class MetergroupBasicDemo {
|
|
51
|
-
value
|
|
47
|
+
value = [{ label: 'Space used', value: 15, color: 'var(--p-primary-color)' }];
|
|
52
48
|
}
|
|
53
49
|
```
|
|
54
50
|
|
|
@@ -11,12 +11,12 @@ import { MultiSelect } from '@exhaustive-ui/core/multiselect'; // standalone; or
|
|
|
11
11
|
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
12
|
|
|
13
13
|
Inputs:
|
|
14
|
+
- `ariaLabel`: `string | undefined`: Defines a string that labels the input for accessibility.
|
|
14
15
|
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
15
16
|
- `display`: `string` = `'comma'`: Defines how the selected items are displayed.
|
|
16
17
|
- `filter`: `boolean` = `true`: When specified, displays an input field to filter the items on keyup.
|
|
17
18
|
- `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
|
|
18
19
|
- `group`: `boolean | undefined`: Whether to display options as grouped when nested options are provided.
|
|
19
|
-
- `id`: `string | undefined`: Unique identifier of the…
|
|
20
20
|
- `inputId`: `string | undefined`: Identifier of the focus input to match a label defined for the component.
|
|
21
21
|
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
22
22
|
- `loading`: `boolean | undefined` = `false`: Whether the multiselect is in loading state.
|
|
@@ -34,7 +34,7 @@ Inputs:
|
|
|
34
34
|
- `variant`: `"filled" | "outlined" | undefined`: Specifies the input variant of the component.
|
|
35
35
|
- `virtualScroll`: `boolean | undefined`: Whether the data should be loaded on demand during scroll.
|
|
36
36
|
- `virtualScrollItemSize`: `number | undefined`: Height of an item in the list for VirtualScrolling.
|
|
37
|
-
- Other inputs: `appendTo`, `ariaFilterLabel`, `
|
|
37
|
+
- Other inputs: `appendTo`, `ariaFilterLabel`, `ariaLabelledBy`, `autocomplete`, `autofocus`, `autofocusFilter`, `autoOptionFocus`, `chipIcon`, `dataKey`, `displaySelectedLabel`, `dropdownIcon`, `emptyFilterMessage`, `emptyMessage`, `filterBy`, `filterLocale`, `filterMatchMode`, `filterPlaceholder`, `filterValue`, `focusOnHover`, `highlightOnSelect`, `id`, `lazy`, `loadingIcon`, `motionOptions`, `optionDisabled`, `optionGroupChildren`, `optionGroupLabel`, `optionValue`, `overlayOptions`, `overlayVisible`, `panelStyle`, `panelStyleClass`, `readonly`, `resetFilterOnHide`, `selectedItemsLabel`, `selectionLimit`, `selectOnFocus`, `showHeader`, `tabindex`, `tooltip`, `tooltipPosition`, `tooltipPositionStyle`, `tooltipStyleClass`, `virtualScrollOptions`.
|
|
38
38
|
|
|
39
39
|
Outputs:
|
|
40
40
|
- `(onBlur)`: `MultiSelectBlurEvent`
|
|
@@ -69,11 +69,6 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
69
69
|
|
|
70
70
|
Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
|
|
71
71
|
|
|
72
|
-
### `li[pMultiSelectItem]`: MultiSelectItem
|
|
73
|
-
|
|
74
|
-
- Inputs: `ariaPosInset`, `ariaSetSize`, `disabled`, `focused`, `highlightOnSelect`, `itemCheckboxIconTemplate`, `itemSize`, `label`, `option`, `selected`, `template`, `variant`.
|
|
75
|
-
- Outputs: `(onClick)`, `(onMouseEnter)`.
|
|
76
|
-
|
|
77
72
|
Types used in the contexts:
|
|
78
73
|
- `MultiSelectFilterOptions`: { filter?: ((value?: any) => void) | undefined, reset?: (() => void) | undefined }
|
|
79
74
|
|
|
@@ -92,14 +87,15 @@ interface City {
|
|
|
92
87
|
@Component({
|
|
93
88
|
template: `
|
|
94
89
|
<div class="card flex justify-center">
|
|
95
|
-
<p-multi-select [options]="cities" [(ngModel)]="selectedCities" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" class="w-full md:w-80" />
|
|
90
|
+
<p-multi-select [options]="cities" [(ngModel)]="selectedCities" optionLabel="name" placeholder="Select Cities" [maxSelectedLabels]="3" class="w-full md:w-80" ariaLabel="Cities" />
|
|
96
91
|
</div>
|
|
97
92
|
`,
|
|
98
93
|
standalone: true,
|
|
99
|
-
imports: [
|
|
94
|
+
imports: [FormsModule, MultiSelectModule]
|
|
100
95
|
})
|
|
101
96
|
export class MultiselectBasicDemo implements OnInit {
|
|
102
97
|
cities!: City[];
|
|
98
|
+
|
|
103
99
|
selectedCities!: any[];
|
|
104
100
|
|
|
105
101
|
ngOnInit() {
|
package/data/cards/orderlist.md
CHANGED
|
@@ -9,6 +9,7 @@ import { OrderList } from '@exhaustive-ui/core/orderlist'; // standalone; or Ord
|
|
|
9
9
|
## `p-order-list` (also `p-orderList`, `p-orderlist`, legacy): OrderList
|
|
10
10
|
|
|
11
11
|
Inputs:
|
|
12
|
+
- `ariaLabel`: `string | undefined`: Defines a string that labels the input for accessibility.
|
|
12
13
|
- `breakpoint`: `string` = `'960px'`: Indicates the width of the screen at which the component should change its behavior.
|
|
13
14
|
- `dataKey`: `string | undefined`: Name of the field that uniquely identifies the record in the data.
|
|
14
15
|
- `dragdrop`: `boolean` = `false`: Whether to enable dragdrop based reordering.
|
|
@@ -17,7 +18,7 @@ Inputs:
|
|
|
17
18
|
- `responsive`: `boolean | undefined`: A boolean value that indicates whether the component should be responsive.
|
|
18
19
|
- `scrollHeight`: `string` = `'14rem'`: Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
|
19
20
|
- `value`: `any[] | undefined`: Array of values to be displayed in the component.
|
|
20
|
-
- Other inputs: `ariaFilterLabel`, `
|
|
21
|
+
- Other inputs: `ariaFilterLabel`, `ariaLabelledBy`, `autoOptionFocus`, `buttonProps`, `controlsPosition`, `disabled`, `filterLocale`, `filterMatchMode`, `focusOnHover`, `listStyle`, `metaKeySelection`, `moveBottomButtonProps`, `moveDownButtonProps`, `moveTopButtonProps`, `moveUpButtonProps`, `optionLabel`, `selection`, `stripedRows`, `tabindex`.
|
|
21
22
|
|
|
22
23
|
Outputs:
|
|
23
24
|
- `(onBlur)`: `Event`
|
|
@@ -47,15 +48,15 @@ Types used in the contexts:
|
|
|
47
48
|
## Example: Basic
|
|
48
49
|
|
|
49
50
|
```typescript
|
|
50
|
-
import { Component,
|
|
51
|
+
import { Component, inject, OnInit, signal } from '@angular/core';
|
|
51
52
|
import { OrderListModule } from '@exhaustive-ui/core/orderlist';
|
|
52
|
-
import { ProductService } from '@/service/productservice';
|
|
53
53
|
import { Product } from '@/domain/product';
|
|
54
|
+
import { ProductService } from '@/service/productservice';
|
|
54
55
|
|
|
55
56
|
@Component({
|
|
56
57
|
template: `
|
|
57
58
|
<div class="card sm:flex sm:justify-center">
|
|
58
|
-
<p-order-list [value]="products()" dataKey="id" [responsive]="true" breakpoint="575px">
|
|
59
|
+
<p-order-list [value]="products()" dataKey="id" [responsive]="true" breakpoint="575px" ariaLabel="Products">
|
|
59
60
|
<ng-template #item let-option>
|
|
60
61
|
{{ option.name }}
|
|
61
62
|
</ng-template>
|
|
@@ -68,6 +69,7 @@ import { Product } from '@/domain/product';
|
|
|
68
69
|
})
|
|
69
70
|
export class OrderlistBasicDemo implements OnInit {
|
|
70
71
|
private productService = inject(ProductService);
|
|
72
|
+
|
|
71
73
|
products = signal<Product[]>([]);
|
|
72
74
|
|
|
73
75
|
ngOnInit() {
|
|
@@ -27,16 +27,12 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
27
27
|
|
|
28
28
|
Read a context with `let-`: `<ng-template #togglericon let-item>` (`$implicit` is the bare `let-x`).
|
|
29
29
|
|
|
30
|
-
### `[pOrganizationChartNode]`: OrganizationChartNode
|
|
31
|
-
|
|
32
|
-
- Inputs: `collapsible`, `node`.
|
|
33
|
-
|
|
34
30
|
## Example: Basic
|
|
35
31
|
|
|
36
32
|
```typescript
|
|
37
33
|
import { Component } from '@angular/core';
|
|
38
|
-
import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
|
|
39
34
|
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
35
|
+
import { OrganizationChartModule } from '@exhaustive-ui/core/organizationchart';
|
|
40
36
|
|
|
41
37
|
@Component({
|
|
42
38
|
template: `
|
|
@@ -48,7 +44,38 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
48
44
|
imports: [OrganizationChartModule]
|
|
49
45
|
})
|
|
50
46
|
export class OrganizationchartBasicDemo {
|
|
51
|
-
data: TreeNode[]
|
|
47
|
+
data: TreeNode[] = [
|
|
48
|
+
{
|
|
49
|
+
label: 'Argentina',
|
|
50
|
+
expanded: true,
|
|
51
|
+
children: [
|
|
52
|
+
{
|
|
53
|
+
label: 'Argentina',
|
|
54
|
+
expanded: true,
|
|
55
|
+
children: [
|
|
56
|
+
{
|
|
57
|
+
label: 'Argentina'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: 'France'
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: 'France',
|
|
66
|
+
expanded: true,
|
|
67
|
+
children: [
|
|
68
|
+
{
|
|
69
|
+
label: 'France'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'Morocco'
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
];
|
|
52
79
|
}
|
|
53
80
|
```
|
|
54
81
|
|
package/data/cards/overlay.md
CHANGED
|
@@ -37,6 +37,7 @@ Read a context with `let-`: `<ng-template #content let-item>` (`$implicit` is th
|
|
|
37
37
|
```typescript
|
|
38
38
|
import { Component } from '@angular/core';
|
|
39
39
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
40
|
+
import { OverlayModule } from '@exhaustive-ui/core/overlay';
|
|
40
41
|
|
|
41
42
|
@Component({
|
|
42
43
|
template: `
|
|
@@ -46,7 +47,7 @@ import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
|
46
47
|
</div>
|
|
47
48
|
`,
|
|
48
49
|
standalone: true,
|
|
49
|
-
imports: [ButtonModule]
|
|
50
|
+
imports: [ButtonModule, OverlayModule]
|
|
50
51
|
})
|
|
51
52
|
export class OverlayBasicDemo {
|
|
52
53
|
overlayVisible: boolean = false;
|
package/data/cards/paginator.md
CHANGED
|
@@ -34,7 +34,7 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
34
34
|
|
|
35
35
|
```typescript
|
|
36
36
|
import { Component } from '@angular/core';
|
|
37
|
-
import {
|
|
37
|
+
import { PaginatorState, PaginatorModule } from '@exhaustive-ui/core/paginator';
|
|
38
38
|
|
|
39
39
|
@Component({
|
|
40
40
|
template: `
|
|
@@ -47,6 +47,7 @@ import { Paginator, PaginatorModule } from '@exhaustive-ui/core/paginator';
|
|
|
47
47
|
})
|
|
48
48
|
export class PaginatorBasicDemo {
|
|
49
49
|
first: number = 0;
|
|
50
|
+
|
|
50
51
|
rows: number = 10;
|
|
51
52
|
|
|
52
53
|
onPageChange(event: PaginatorState) {
|
package/data/cards/panel.md
CHANGED
|
@@ -48,7 +48,8 @@ import { PanelModule } from '@exhaustive-ui/core/panel';
|
|
|
48
48
|
standalone: true,
|
|
49
49
|
imports: [PanelModule]
|
|
50
50
|
})
|
|
51
|
-
export class PanelBasicDemo {
|
|
51
|
+
export class PanelBasicDemo {
|
|
52
|
+
}
|
|
52
53
|
```
|
|
53
54
|
|
|
54
55
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
package/data/cards/panelmenu.md
CHANGED
|
@@ -20,21 +20,11 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
20
20
|
|
|
21
21
|
Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
|
|
22
22
|
|
|
23
|
-
### `ul[pPanelMenuList]`: PanelMenuList
|
|
24
|
-
|
|
25
|
-
- Inputs: `items`, `itemTemplate`, `motionOptions`, `panelId`, `parentExpanded`, `root`.
|
|
26
|
-
- Outputs: `(headerFocus)`, `(itemToggle)`.
|
|
27
|
-
|
|
28
|
-
### `ul[pPanelMenuSub]`: PanelMenuSub
|
|
29
|
-
|
|
30
|
-
- Inputs: `activeItemPath`, `focusedItemId`, `items`, `itemTemplate`, `level`, `motionOptions`, `panelId`, `parentExpanded`, `root`.
|
|
31
|
-
- Outputs: `(itemToggle)`, `(menuBlur)`, `(menuFocus)`.
|
|
32
|
-
|
|
33
23
|
## Example: Router
|
|
34
24
|
|
|
35
25
|
```typescript
|
|
36
26
|
import { Component, OnInit, inject } from '@angular/core';
|
|
37
|
-
import {
|
|
27
|
+
import { Router } from '@angular/router';
|
|
38
28
|
import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
|
|
39
29
|
import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
|
|
40
30
|
|
|
@@ -45,11 +35,12 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
|
|
|
45
35
|
</div>
|
|
46
36
|
`,
|
|
47
37
|
standalone: true,
|
|
48
|
-
imports: [
|
|
38
|
+
imports: [PanelMenu],
|
|
49
39
|
providers: [MessageService]
|
|
50
40
|
})
|
|
51
41
|
export class PanelmenuRouterDemo implements OnInit {
|
|
52
|
-
private
|
|
42
|
+
private router = inject(Router);
|
|
43
|
+
|
|
53
44
|
items: MenuItem[];
|
|
54
45
|
|
|
55
46
|
ngOnInit() {
|
package/data/cards/password.md
CHANGED
|
@@ -11,6 +11,7 @@ import { Password } from '@exhaustive-ui/core/password'; // standalone; or Passw
|
|
|
11
11
|
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
12
|
|
|
13
13
|
Inputs:
|
|
14
|
+
- `ariaLabel`: `string | undefined`: Defines a string that labels the input for accessibility.
|
|
14
15
|
- `autocomplete`: `string | undefined`: Specify automated assistance in filling out password by browser.
|
|
15
16
|
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
16
17
|
- `feedback`: `boolean` = `true`: Whether to show the strength indicator or not.
|
|
@@ -29,7 +30,7 @@ Inputs:
|
|
|
29
30
|
- `toggleMask`: `boolean | undefined`: Whether to show an icon to display the password as plain text.
|
|
30
31
|
- `variant`: `"filled" | "outlined" | undefined` = `'outlined'`: Specifies the input variant of the component.
|
|
31
32
|
- `weakLabel`: `string | undefined`: Text for a weak password.
|
|
32
|
-
- Other inputs: `appendTo`, `
|
|
33
|
+
- Other inputs: `appendTo`, `ariaLabelledBy`, `autofocus`, `inputSize`, `inputStyle`, `label`, `max`, `maxlength`, `mediumRegex`, `min`, `minlength`, `motionOptions`, `overlayOptions`, `pattern`, `readonly`, `step`, `strongRegex`, `tabindex`.
|
|
33
34
|
|
|
34
35
|
Outputs:
|
|
35
36
|
- `(onBlur)`: `Event`
|
|
@@ -48,6 +49,8 @@ Read a context with `let-`: `<ng-template #hideicon let-class="class">` (`$impli
|
|
|
48
49
|
|
|
49
50
|
### `[pPassword]`: PasswordDirective
|
|
50
51
|
|
|
52
|
+
Adds the password strength meter to a native input: `<input type="password" pPassword />`.
|
|
53
|
+
|
|
51
54
|
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
52
55
|
|
|
53
56
|
- Inputs: `disabled`, `feedback`, `fluid`, `invalid`, `mediumLabel`, `mediumRegex`, `name`, `pPasswordPT`, `pPasswordUnstyled`, `promptLabel`, `pSize`, `required`, `showPassword`, `strongLabel`, `strongRegex`, `variant`, `weakLabel`.
|
|
@@ -62,11 +65,11 @@ import { PasswordModule } from '@exhaustive-ui/core/password';
|
|
|
62
65
|
@Component({
|
|
63
66
|
template: `
|
|
64
67
|
<div class="card flex justify-center">
|
|
65
|
-
<p-password [(ngModel)]="value" [feedback]="false" autocomplete="off" />
|
|
68
|
+
<p-password [(ngModel)]="value" [feedback]="false" autocomplete="off" ariaLabel="Password" />
|
|
66
69
|
</div>
|
|
67
70
|
`,
|
|
68
71
|
standalone: true,
|
|
69
|
-
imports: [
|
|
72
|
+
imports: [FormsModule, PasswordModule]
|
|
70
73
|
})
|
|
71
74
|
export class PasswordBasicDemo {
|
|
72
75
|
value!: string;
|