@exhaustive-ui/mcp 22.4.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/checkbox.md +0 -24
- package/data/components/dock.md +2 -2
- 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 +1 -1
- package/data/components.json +26 -22
- package/data/llms-full.txt +49 -42
- package/data/llms.txt +100 -96
- package/data/manifest.json +30 -1
- 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,77 @@
|
|
|
1
|
+
# Button
|
|
2
|
+
|
|
3
|
+
Button directive is an extension to button component.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Button } from '@exhaustive-ui/core/button'; // standalone; or ButtonModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-button`: Button
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `badge`: `string | undefined`: Value of the badge.
|
|
13
|
+
- `badgeSeverity`: `"success" | "info" | "warn" | "danger" | "secondary" | "contrast" | "help" | "primary" | null | undefined` = `'secondary'`: Severity type of the badge.
|
|
14
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should be disabled.
|
|
15
|
+
- `icon`: `string | undefined`: Name of the icon.
|
|
16
|
+
- `iconPos`: `ButtonIconPosition` = `'left'`: Position of the icon.
|
|
17
|
+
- `label`: `string | undefined`: Text of the button.
|
|
18
|
+
- `link`: `boolean` = `false`: Add a link style to the button.
|
|
19
|
+
- `loading`: `boolean` = `false`: Whether the button is in loading state.
|
|
20
|
+
- `outlined`: `boolean` = `false`: Add a border class without a background initially.
|
|
21
|
+
- `raised`: `boolean` = `false`: Add a shadow to indicate elevation.
|
|
22
|
+
- `rounded`: `boolean` = `false`: Add a circular border radius to the button.
|
|
23
|
+
- `severity`: `ButtonSeverity`: Defines the style of the button.
|
|
24
|
+
- `size`: `"large" | "small" | undefined`: Defines the size of the button.
|
|
25
|
+
- `style`: `{ [klass: string]: any; } | null | undefined`: Inline style of the element.
|
|
26
|
+
- `styleClass`: `string | undefined`: Class of the element.
|
|
27
|
+
- `text`: `boolean` = `false`: Add a textual class to the button without a background initially.
|
|
28
|
+
- `variant`: `"outlined" | "text" | undefined`: Specifies the variant of the component.
|
|
29
|
+
- Other inputs: `ariaControls`, `ariaExpanded`, `ariaLabel`, `autofocus`, `buttonProps`, `fluid`, `hostName`, `loadingIcon`, `plain`, `tabindex`, `type`.
|
|
30
|
+
|
|
31
|
+
Outputs:
|
|
32
|
+
- `(onBlur)`: `FocusEvent`
|
|
33
|
+
- `(onClick)`: `MouseEvent`
|
|
34
|
+
- `(onFocus)`: `FocusEvent`
|
|
35
|
+
|
|
36
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
37
|
+
- `#content`: no context. Custom content template.
|
|
38
|
+
- `#loadingicon`: context { class: string, pt: any }. Custom loading icon template.
|
|
39
|
+
- `#icon`: context { class: string, pt: any }. Custom icon template.
|
|
40
|
+
|
|
41
|
+
Read a context with `let-`: `<ng-template #loadingicon let-class="class" let-pt="pt">` (`$implicit` is the bare `let-x`).
|
|
42
|
+
|
|
43
|
+
### `[pButton]`: ButtonDirective
|
|
44
|
+
|
|
45
|
+
Button directive is an extension to button component.
|
|
46
|
+
|
|
47
|
+
- Inputs: `fluid`, `hostName`, `iconPos`, `loading`, `loadingIcon`, `outlined`, `pButtonPT`, `pButtonUnstyled`, `plain`, `raised`, `rounded`, `severity`, `size`, `text`.
|
|
48
|
+
|
|
49
|
+
### `[pButtonIcon]`: ButtonIcon
|
|
50
|
+
|
|
51
|
+
- Inputs: `pButtonIconPT`, `pButtonUnstyled`.
|
|
52
|
+
|
|
53
|
+
### `[pButtonLabel]`: ButtonLabel
|
|
54
|
+
|
|
55
|
+
- Inputs: `pButtonLabelPT`, `pButtonLabelUnstyled`.
|
|
56
|
+
|
|
57
|
+
## Example: Basic
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
import { Component } from '@angular/core';
|
|
61
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
62
|
+
|
|
63
|
+
@Component({
|
|
64
|
+
template: `
|
|
65
|
+
<div class="card flex justify-center">
|
|
66
|
+
<p-button label="Submit" />
|
|
67
|
+
</div>
|
|
68
|
+
`,
|
|
69
|
+
standalone: true,
|
|
70
|
+
imports: [ButtonModule]
|
|
71
|
+
})
|
|
72
|
+
export class ButtonBasicDemo {}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
76
|
+
|
|
77
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/button.md
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Card
|
|
2
|
+
|
|
3
|
+
Card is a flexible container component.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Card } from '@exhaustive-ui/core/card'; // standalone; or CardModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-card`: Card
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `header`: `string | undefined`: Header of the card.
|
|
13
|
+
- `style`: `{ [klass: string]: any; } | null | undefined`: Inline style of the element.
|
|
14
|
+
- Other inputs: `subheader`.
|
|
15
|
+
|
|
16
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
17
|
+
- `#header`: no context. Custom header template.
|
|
18
|
+
- `#title`: no context. Custom title template.
|
|
19
|
+
- `#subtitle`: no context. Custom subtitle template.
|
|
20
|
+
- `#content`: no context. Custom content template.
|
|
21
|
+
- `#footer`: no context. Custom footer template.
|
|
22
|
+
|
|
23
|
+
## Example: Basic
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { Component } from '@angular/core';
|
|
27
|
+
import { CardModule } from '@exhaustive-ui/core/card';
|
|
28
|
+
|
|
29
|
+
@Component({
|
|
30
|
+
template: `
|
|
31
|
+
<div class="mb-4 p-8">
|
|
32
|
+
<p-card header="Simple Card">
|
|
33
|
+
<p class="m-0">
|
|
34
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque
|
|
35
|
+
quas!
|
|
36
|
+
</p>
|
|
37
|
+
</p-card>
|
|
38
|
+
</div>
|
|
39
|
+
`,
|
|
40
|
+
standalone: true,
|
|
41
|
+
imports: [CardModule]
|
|
42
|
+
})
|
|
43
|
+
export class CardBasicDemo {}
|
|
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/card.md
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Carousel
|
|
2
|
+
|
|
3
|
+
Carousel is a content slider featuring various customization options.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Carousel } from '@exhaustive-ui/core/carousel'; // standalone; or CarouselModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-carousel`: Carousel
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `autoplayInterval`: `number` = `0`: Time in milliseconds to scroll items automatically.
|
|
13
|
+
- `circular`: `boolean` = `false`: Defines if scrolling would be infinite.
|
|
14
|
+
- `contentClass`: `string` = `''`: Style class of main content.
|
|
15
|
+
- `numScroll`: `number` = `1`: Number of items to scroll.
|
|
16
|
+
- `numVisible`: `number` = `1`: Number of items per page.
|
|
17
|
+
- `orientation`: `"vertical" | "horizontal"` = `'horizontal'`: Specifies the layout of the component.
|
|
18
|
+
- `responsiveOptions`: `CarouselResponsiveOptions[] | undefined`: An array of options for responsive design.
|
|
19
|
+
- `value`: `any[] | null | undefined`: An array of objects to display.
|
|
20
|
+
- `verticalViewPortHeight`: `string` = `'300px'`: Height of the viewport in vertical layout.
|
|
21
|
+
- Other inputs: `indicatorsContentClass`, `indicatorsContentStyle`, `indicatorStyle`, `indicatorStyleClass`, `nextButtonProps`, `page`, `prevButtonProps`, `showIndicators`, `showNavigators`.
|
|
22
|
+
|
|
23
|
+
Outputs:
|
|
24
|
+
- `(onPage)`: `CarouselPageEvent`
|
|
25
|
+
|
|
26
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
27
|
+
- `#item`: context { $implicit: T }. Custom item template.
|
|
28
|
+
- `#header`: no context. Custom header template.
|
|
29
|
+
- `#footer`: no context. Custom footer template.
|
|
30
|
+
- `#previousicon`: no context. Custom previous icon template.
|
|
31
|
+
- `#nexticon`: no context. Custom next icon template.
|
|
32
|
+
|
|
33
|
+
Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
|
|
34
|
+
|
|
35
|
+
## Example: Vertical
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import { Component, OnInit, inject, signal } from '@angular/core';
|
|
39
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
40
|
+
import { CarouselModule } from '@exhaustive-ui/core/carousel';
|
|
41
|
+
import { TagModule } from '@exhaustive-ui/core/tag';
|
|
42
|
+
import { ProductService } from '@/service/productservice';
|
|
43
|
+
import { Product } from '@/domain/product';
|
|
44
|
+
|
|
45
|
+
@Component({
|
|
46
|
+
template: `
|
|
47
|
+
<div class="card">
|
|
48
|
+
<p-carousel [value]="products()" [numVisible]="1" [numScroll]="1" orientation="vertical" verticalViewPortHeight="330px" contentClass="flex items-center">
|
|
49
|
+
<ng-template let-product #item>
|
|
50
|
+
<div class="border border-surface-200 dark:border-surface-700 rounded-sm m-2 p-4">
|
|
51
|
+
<div class="mb-4">
|
|
52
|
+
<div class="relative mx-auto">
|
|
53
|
+
<img src="https://exhaustive-ui.com/demo/product/{{ product.image }}" [alt]="product.name" class="w-full rounded-sm" />
|
|
54
|
+
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)" class="absolute dark:bg-surface-900!" [ngStyle]="{ 'left.px': 5, 'top.px': 5 }" />
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="mb-4 font-medium">{{ product.name }}</div>
|
|
58
|
+
<div class="flex justify-between items-center">
|
|
59
|
+
<div class="mt-0 font-semibold text-xl">{{ '$' + product.price }}</div>
|
|
60
|
+
<span>
|
|
61
|
+
<p-button icon="pi pi-heart" severity="secondary" [outlined]="true" />
|
|
62
|
+
<p-button icon="pi pi-shopping-cart" styleClass="ml-2" />
|
|
63
|
+
</span>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</ng-template>
|
|
67
|
+
</p-carousel>
|
|
68
|
+
</div>
|
|
69
|
+
`,
|
|
70
|
+
standalone: true,
|
|
71
|
+
imports: [ButtonModule, CarouselModule, TagModule],
|
|
72
|
+
providers: [ProductService]
|
|
73
|
+
})
|
|
74
|
+
export class CarouselVerticalDemo implements OnInit {
|
|
75
|
+
private productService = inject(ProductService);
|
|
76
|
+
products = signal<Product[]>([]);
|
|
77
|
+
|
|
78
|
+
ngOnInit() {
|
|
79
|
+
this.productService.getProductsSmall().then((products) => {
|
|
80
|
+
this.products.set(products);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
getSeverity(status: string) {
|
|
85
|
+
switch (status) {
|
|
86
|
+
case 'INSTOCK':
|
|
87
|
+
return 'success';
|
|
88
|
+
case 'LOWSTOCK':
|
|
89
|
+
return 'warn';
|
|
90
|
+
case 'OUTOFSTOCK':
|
|
91
|
+
return 'danger';
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
98
|
+
|
|
99
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/carousel.md
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# CascadeSelect
|
|
2
|
+
|
|
3
|
+
CascadeSelect is a form component to select a value from a nested structure of options.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { CascadeSelect } from '@exhaustive-ui/core/cascadeselect'; // standalone; or CascadeSelectModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-cascade-select` (also `p-cascadeSelect`, `p-cascadeselect`, legacy): CascadeSelect
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
15
|
+
- `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
|
|
16
|
+
- `inputId`: `string | undefined`: Identifier of the underlying input element.
|
|
17
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
18
|
+
- `loading`: `boolean | undefined` = `false`: Whether the dropdown is in loading state.
|
|
19
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
20
|
+
- `optionGroupChildren`: `string | string[] | null | undefined`: Property name or getter function to retrieve the items of a group.
|
|
21
|
+
- `optionGroupLabel`: `string | undefined`: Property name or getter function to use as the label of an option group.
|
|
22
|
+
- `optionLabel`: `string | undefined`: Property name or getter function to use as the label of an option.
|
|
23
|
+
- `options`: `any[] | null | undefined`: An array of selectitems to display as the available options.
|
|
24
|
+
- `optionValue`: `string | undefined`: Property name or getter function to use as the value of an option, defaults to the option itself when not defined.
|
|
25
|
+
- `placeholder`: `string | undefined`: Default text to display when no option is selected.
|
|
26
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
27
|
+
- `showClear`: `boolean` = `false`: When enabled, a clear icon is displayed to clear the value.
|
|
28
|
+
- `size`: `"large" | "small" | undefined`: Specifies the size of the component.
|
|
29
|
+
- `variant`: `"filled" | "outlined" | undefined`: Specifies the input variant of the component.
|
|
30
|
+
- Other inputs: `appendTo`, `ariaLabel`, `ariaLabelledBy`, `autofocus`, `autoOptionFocus`, `breakpoint`, `dataKey`, `emptySearchMessage`, `emptySelectionMessage`, `focusOnHover`, `id`, `loadingIcon`, `motionOptions`, `optionDisabled`, `overlayOptions`, `panelStyle`, `panelStyleClass`, `searchLocale`, `searchMessage`, `selectionMessage`, `selectOnFocus`, `tabindex`, `value`.
|
|
31
|
+
|
|
32
|
+
Outputs:
|
|
33
|
+
- `(onBeforeHide)`: `CascadeSelectBeforeHideEvent`
|
|
34
|
+
- `(onBeforeShow)`: `CascadeSelectBeforeShowEvent`
|
|
35
|
+
- `(onBlur)`: `FocusEvent`
|
|
36
|
+
- `(onChange)`: `CascadeSelectChangeEvent`
|
|
37
|
+
- `(onClear)`: `any`
|
|
38
|
+
- `(onFocus)`: `FocusEvent`
|
|
39
|
+
- `(onGroupChange)`: `Event`
|
|
40
|
+
- `(onHide)`: `CascadeSelectHideEvent`
|
|
41
|
+
- `(onShow)`: `CascadeSelectShowEvent`
|
|
42
|
+
- `(valueChange)`: `any`
|
|
43
|
+
|
|
44
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
45
|
+
- `#value`: context { $implicit: T, placeholder: string }. Custom value template.
|
|
46
|
+
- `#option`: context { $implicit: T, level: number }. Custom option template.
|
|
47
|
+
- `#header`: no context. Custom header template.
|
|
48
|
+
- `#footer`: no context. Custom footer template.
|
|
49
|
+
- `#triggericon`: no context. Custom trigger icon template.
|
|
50
|
+
- `#loadingicon`: no context. Custom loading icon template.
|
|
51
|
+
- `#optiongroupicon`: no context. Custom option group icon template.
|
|
52
|
+
- `#clearicon`: no context. Custom clear icon template.
|
|
53
|
+
|
|
54
|
+
Read a context with `let-`: `<ng-template #value let-item let-placeholder="placeholder">` (`$implicit` is the bare `let-x`).
|
|
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
|
+
## Example: Disabled
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
import { Component } from '@angular/core';
|
|
65
|
+
import { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';
|
|
66
|
+
|
|
67
|
+
@Component({
|
|
68
|
+
template: `
|
|
69
|
+
<div class="card flex justify-center">
|
|
70
|
+
<p-cascade-select [disabled]="true" placeholder="Disabled" [style]="{ minWidth: '14rem' }" />
|
|
71
|
+
</div>
|
|
72
|
+
`,
|
|
73
|
+
standalone: true,
|
|
74
|
+
imports: [CascadeSelectModule]
|
|
75
|
+
})
|
|
76
|
+
export class CascadeselectDisabledDemo {}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
80
|
+
|
|
81
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/cascadeselect.md
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Chart
|
|
2
|
+
|
|
3
|
+
Chart groups a collection of contents in tabs.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { UIChart } from '@exhaustive-ui/core/chart'; // standalone; or ChartModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-chart`: UIChart
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `data`: `any`: Data to display.
|
|
13
|
+
- `options`: `any` = `{}`: Options to customize the chart.
|
|
14
|
+
- `type`: `"bar" | "line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar" | undefined`: Type of the chart.
|
|
15
|
+
- Other inputs: `ariaLabel`, `ariaLabelledBy`, `height`, `plugins`, `responsive`, `width`.
|
|
16
|
+
|
|
17
|
+
Outputs:
|
|
18
|
+
- `(onDataSelect)`: `ChartDataSelectEvent`
|
|
19
|
+
|
|
20
|
+
## Example: Basic
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { Component, OnInit, inject } from '@angular/core';
|
|
24
|
+
import { ChartModule } from '@exhaustive-ui/core/chart';
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
template: `
|
|
28
|
+
<div class="card">
|
|
29
|
+
<p-chart type="bar" [data]="basicData" [options]="basicOptions" />
|
|
30
|
+
</div>
|
|
31
|
+
`,
|
|
32
|
+
standalone: true,
|
|
33
|
+
imports: [ChartModule]
|
|
34
|
+
})
|
|
35
|
+
export class ChartBasicDemo implements OnInit {
|
|
36
|
+
basicData: any;
|
|
37
|
+
basicOptions: any;
|
|
38
|
+
platformId = inject(PLATFORM_ID);
|
|
39
|
+
configService = inject(AppConfigService);
|
|
40
|
+
|
|
41
|
+
ngOnInit() {
|
|
42
|
+
this.initChart();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
initChart() {
|
|
46
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
47
|
+
const documentStyle = getComputedStyle(document.documentElement);
|
|
48
|
+
const textColor = documentStyle.getPropertyValue('--p-text-color');
|
|
49
|
+
const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
|
|
50
|
+
const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
|
|
51
|
+
|
|
52
|
+
this.basicData = {
|
|
53
|
+
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
54
|
+
datasets: [
|
|
55
|
+
{
|
|
56
|
+
label: 'Sales',
|
|
57
|
+
data: [540, 325, 702, 620],
|
|
58
|
+
backgroundColor: ['rgba(249, 115, 22, 0.2)', 'rgba(6, 182, 212, 0.2)', 'rgb(107, 114, 128, 0.2)', 'rgba(139, 92, 246, 0.2)'],
|
|
59
|
+
borderColor: ['rgb(249, 115, 22)', 'rgb(6, 182, 212)', 'rgb(107, 114, 128)', 'rgb(139, 92, 246)'],
|
|
60
|
+
borderWidth: 1
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
this.basicOptions = {
|
|
66
|
+
maintainAspectRatio: false,
|
|
67
|
+
aspectRatio: 0.8,
|
|
68
|
+
plugins: {
|
|
69
|
+
legend: {
|
|
70
|
+
labels: {
|
|
71
|
+
color: textColor
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
scales: {
|
|
76
|
+
x: {
|
|
77
|
+
ticks: {
|
|
78
|
+
color: textColorSecondary
|
|
79
|
+
},
|
|
80
|
+
grid: {
|
|
81
|
+
color: surfaceBorder
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
y: {
|
|
85
|
+
beginAtZero: true,
|
|
86
|
+
ticks: {
|
|
87
|
+
color: textColorSecondary
|
|
88
|
+
},
|
|
89
|
+
grid: {
|
|
90
|
+
color: surfaceBorder
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
this.cd.markForCheck();
|
|
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/chart.md
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Checkbox
|
|
2
|
+
|
|
3
|
+
Checkbox is an extension to standard checkbox element with theming.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Checkbox } from '@exhaustive-ui/core/checkbox'; // standalone; or CheckboxModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-checkbox` (also `p-checkBox`, `p-check-box`, legacy): Checkbox
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `binary`: `boolean | undefined`: Allows to select a boolean value instead of multiple values.
|
|
15
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
16
|
+
- `indeterminate`: `boolean` = `false`: When present, it specifies input state as indeterminate.
|
|
17
|
+
- `inputId`: `string | undefined`: Identifier of the focus input to match a label defined for the component.
|
|
18
|
+
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
19
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
20
|
+
- `size`: `"large" | "small" | undefined`: Specifies the size of the component.
|
|
21
|
+
- `value`: `any`: Value of the checkbox.
|
|
22
|
+
- `variant`: `"filled" | "outlined" | undefined`: Specifies the input variant of the component.
|
|
23
|
+
- Other inputs: `ariaLabel`, `ariaLabelledBy`, `autofocus`, `checkboxIcon`, `falseValue`, `formControl`, `hostName`, `inputClass`, `inputStyle`, `readonly`, `required`, `tabindex`, `trueValue`.
|
|
24
|
+
|
|
25
|
+
Outputs:
|
|
26
|
+
- `(onBlur)`: `Event`
|
|
27
|
+
- `(onChange)`: `CheckboxChangeEvent`
|
|
28
|
+
- `(onFocus)`: `Event`
|
|
29
|
+
|
|
30
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
31
|
+
- `#icon`: context { checked: boolean, class: string, dataP: string }. Custom checkbox icon template.
|
|
32
|
+
|
|
33
|
+
Read a context with `let-`: `<ng-template #icon let-checked="checked" let-class="class" let-dataP="dataP">` (`$implicit` is the bare `let-x`).
|
|
34
|
+
|
|
35
|
+
## Example: Basic
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import { Component } from '@angular/core';
|
|
39
|
+
import { FormsModule } from '@angular/forms';
|
|
40
|
+
import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
|
|
41
|
+
|
|
42
|
+
@Component({
|
|
43
|
+
template: `
|
|
44
|
+
<div class="card flex justify-center gap-4">
|
|
45
|
+
<p-checkbox [(ngModel)]="checked" [binary]="true" />
|
|
46
|
+
</div>
|
|
47
|
+
`,
|
|
48
|
+
standalone: true,
|
|
49
|
+
imports: [CheckboxModule, FormsModule]
|
|
50
|
+
})
|
|
51
|
+
export class CheckboxBasicDemo {
|
|
52
|
+
checked: any = null;
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
57
|
+
|
|
58
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/checkbox.md
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Chip
|
|
2
|
+
|
|
3
|
+
Chip represents people using icons, labels and images.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { Chip } from '@exhaustive-ui/core/chip'; // standalone; or ChipModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-chip`: Chip
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `alt`: `string | undefined`: Alt attribute of the image.
|
|
13
|
+
- `icon`: `string | undefined`: Defines the icon to display.
|
|
14
|
+
- `image`: `string | undefined`: Defines the image to display.
|
|
15
|
+
- `label`: `string | undefined`: Defines the text to display.
|
|
16
|
+
- `removable`: `boolean | undefined` = `false`: Whether to display a remove icon.
|
|
17
|
+
- Other inputs: `chipProps`, `disabled`, `removeIcon`.
|
|
18
|
+
|
|
19
|
+
Outputs:
|
|
20
|
+
- `(onImageError)`: `Event`
|
|
21
|
+
- `(onRemove)`: `MouseEvent`
|
|
22
|
+
|
|
23
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
24
|
+
- `#removeicon`: no context. Custom remove icon template.
|
|
25
|
+
|
|
26
|
+
## Example: Basic
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { Component } from '@angular/core';
|
|
30
|
+
import { ChipModule } from '@exhaustive-ui/core/chip';
|
|
31
|
+
|
|
32
|
+
@Component({
|
|
33
|
+
template: `
|
|
34
|
+
<div class="card flex items-center gap-2 flex-wrap">
|
|
35
|
+
<p-chip label="Action" />
|
|
36
|
+
<p-chip label="Comedy" />
|
|
37
|
+
<p-chip label="Mystery" />
|
|
38
|
+
<p-chip label="Thriller" [removable]="true" />
|
|
39
|
+
</div>
|
|
40
|
+
`,
|
|
41
|
+
standalone: true,
|
|
42
|
+
imports: [ChipModule]
|
|
43
|
+
})
|
|
44
|
+
export class ChipBasicDemo {}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
48
|
+
|
|
49
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/chip.md
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# ClassNames
|
|
2
|
+
|
|
3
|
+
PClass directive provides extends class binding functionality.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { ClassNames } from '@exhaustive-ui/core/classnames'; // standalone; or ClassNamesModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `[pClass]`: ClassNames
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `pClass`: `any`: Class value(s) to be applied.
|
|
13
|
+
|
|
14
|
+
## Example: Examples
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { Component, signal } from '@angular/core';
|
|
18
|
+
|
|
19
|
+
@Component({
|
|
20
|
+
template: `
|
|
21
|
+
<div class="card">
|
|
22
|
+
<div class="flex justify-between gap-4">
|
|
23
|
+
<div class="flex flex-col gap-4">
|
|
24
|
+
<div class="font-semibold">pClass Directive</div>
|
|
25
|
+
<div class="flex flex-wrap items-center gap-4">
|
|
26
|
+
<div pClass="py-4 px-8 border border-surface rounded-lg">String</div>
|
|
27
|
+
<div [pClass]="['py-4', 'px-8', 'bg-primary text-primary-contrast', 'font-semibold', 'rounded-lg']">Array</div>
|
|
28
|
+
<div [pClass]="['p-4 rounded-lg', ['cursor-pointer', 'select-none', 'border'], { 'bg-primary text-primary-contrast border-primary': active1() }]" (click)="toggle1()">Combined</div>
|
|
29
|
+
<div [pClass]="nestedClasses()" (click)="toggle2()">Nested</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="flex flex-col gap-4">
|
|
33
|
+
<div class="font-semibold">Native Class Directive</div>
|
|
34
|
+
<div class="flex flex-wrap items-center gap-4">
|
|
35
|
+
<div class="py-4 px-8 border border-surface rounded-lg">String</div>
|
|
36
|
+
<div [class]="['py-4', 'px-8', 'bg-primary', 'text-primary-contrast', 'font-semibold', 'rounded-lg']">Array</div>
|
|
37
|
+
<div
|
|
38
|
+
class="p-4 rounded-lg"
|
|
39
|
+
[class]="['cursor-pointer', 'select-none', 'border']"
|
|
40
|
+
[class.bg-primary]="active1()"
|
|
41
|
+
[class.text-primary-contrast]="active1()"
|
|
42
|
+
[class.border-surface]="active1()"
|
|
43
|
+
[class.border-primary]="active1()"
|
|
44
|
+
(click)="toggle1()"
|
|
45
|
+
>
|
|
46
|
+
Combined
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
`,
|
|
53
|
+
standalone: true,
|
|
54
|
+
imports: []
|
|
55
|
+
})
|
|
56
|
+
export class ClassnamesExamplesDemo {
|
|
57
|
+
active1 = signal<boolean>(false);
|
|
58
|
+
active2 = signal<boolean>(false);
|
|
59
|
+
nestedClasses: any;
|
|
60
|
+
|
|
61
|
+
toggle1() {
|
|
62
|
+
this.active1.set(!this.active1());
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
toggle2() {
|
|
66
|
+
this.active2.set(!this.active2());
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
72
|
+
|
|
73
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/classnames.md
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# ColorPicker
|
|
2
|
+
|
|
3
|
+
ColorPicker groups a collection of contents in tabs.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { ColorPicker } from '@exhaustive-ui/core/colorpicker'; // standalone; or ColorPickerModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-color-picker` (also `p-colorPicker`, `p-colorpicker`, legacy): ColorPicker
|
|
10
|
+
|
|
11
|
+
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
|
+
|
|
13
|
+
Inputs:
|
|
14
|
+
- `defaultColor`: `string | undefined` = `'ff0000'`: Default color to display initially when model value is not present.
|
|
15
|
+
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
16
|
+
- `format`: `"hex" | "rgb" | "hsb"` = `'hex'`: Format to use in value binding.
|
|
17
|
+
- `inline`: `boolean | undefined`: Whether to display as an overlay or not.
|
|
18
|
+
- `inputId`: `string | undefined`: Identifier of the focus input to match a label defined for the dropdown.
|
|
19
|
+
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
20
|
+
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
21
|
+
- Other inputs: `appendTo`, `autofocus`, `autoZIndex`, `invalid`, `motionOptions`, `overlayOptions`, `tabindex`.
|
|
22
|
+
|
|
23
|
+
Outputs:
|
|
24
|
+
- `(onChange)`: `ColorPickerChangeEvent`
|
|
25
|
+
- `(onHide)`: `any`
|
|
26
|
+
- `(onShow)`: `any`
|
|
27
|
+
|
|
28
|
+
## Example: Basic
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { Component } from '@angular/core';
|
|
32
|
+
import { FormsModule } from '@angular/forms';
|
|
33
|
+
import { ColorPickerModule } from '@exhaustive-ui/core/colorpicker';
|
|
34
|
+
|
|
35
|
+
@Component({
|
|
36
|
+
template: `
|
|
37
|
+
<div class="card flex justify-center">
|
|
38
|
+
<p-color-picker [(ngModel)]="color" />
|
|
39
|
+
</div>
|
|
40
|
+
`,
|
|
41
|
+
standalone: true,
|
|
42
|
+
imports: [ColorPickerModule, FormsModule]
|
|
43
|
+
})
|
|
44
|
+
export class ColorpickerBasicDemo {
|
|
45
|
+
color: string | undefined;
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
50
|
+
|
|
51
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/colorpicker.md
|