@exhaustive-ui/mcp 0.0.0-stage → 3.0.0-alpha.1

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.
Files changed (121) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +167 -2
  3. package/data/components/accordion.md +421 -0
  4. package/data/components/animateonscroll.md +163 -0
  5. package/data/components/autocomplete.md +1077 -0
  6. package/data/components/autofocus.md +38 -0
  7. package/data/components/avatar.md +417 -0
  8. package/data/components/badge.md +234 -0
  9. package/data/components/blockui.md +108 -0
  10. package/data/components/breadcrumb.md +178 -0
  11. package/data/components/button.md +774 -0
  12. package/data/components/card.md +138 -0
  13. package/data/components/carousel.md +440 -0
  14. package/data/components/cascadeselect.md +1387 -0
  15. package/data/components/chart.md +1178 -0
  16. package/data/components/checkbox.md +529 -0
  17. package/data/components/chip.md +180 -0
  18. package/data/components/colorpicker.md +301 -0
  19. package/data/components/confirmdialog.md +287 -0
  20. package/data/components/confirmpopup.md +417 -0
  21. package/data/components/contextmenu.md +491 -0
  22. package/data/components/dataview.md +600 -0
  23. package/data/components/datepicker.md +1262 -0
  24. package/data/components/dialog.md +622 -0
  25. package/data/components/divider.md +250 -0
  26. package/data/components/dock.md +500 -0
  27. package/data/components/dragdrop.md +285 -0
  28. package/data/components/drawer.md +510 -0
  29. package/data/components/dynamicdialog.md +109 -0
  30. package/data/components/editor.md +291 -0
  31. package/data/components/fieldset.md +182 -0
  32. package/data/components/fileupload.md +430 -0
  33. package/data/components/floatlabel.md +155 -0
  34. package/data/components/fluid.md +72 -0
  35. package/data/components/focustrap.md +65 -0
  36. package/data/components/galleria.md +627 -0
  37. package/data/components/iconfield.md +246 -0
  38. package/data/components/iftalabel.md +105 -0
  39. package/data/components/imagecompare.md +97 -0
  40. package/data/components/inplace.md +233 -0
  41. package/data/components/inputgroup.md +306 -0
  42. package/data/components/inputmask.md +518 -0
  43. package/data/components/inputnumber.md +675 -0
  44. package/data/components/inputotp.md +336 -0
  45. package/data/components/inputtext.md +488 -0
  46. package/data/components/keyfilter.md +85 -0
  47. package/data/components/knob.md +462 -0
  48. package/data/components/listbox.md +798 -0
  49. package/data/components/llms.md +28 -0
  50. package/data/components/megamenu.md +587 -0
  51. package/data/components/menu.md +483 -0
  52. package/data/components/menubar.md +462 -0
  53. package/data/components/message.md +449 -0
  54. package/data/components/metergroup.md +241 -0
  55. package/data/components/multiselect.md +1047 -0
  56. package/data/components/orderlist.md +342 -0
  57. package/data/components/organizationchart.md +197 -0
  58. package/data/components/overlay.md +217 -0
  59. package/data/components/paginator.md +314 -0
  60. package/data/components/panel.md +214 -0
  61. package/data/components/panelmenu.md +699 -0
  62. package/data/components/password.md +570 -0
  63. package/data/components/picklist.md +420 -0
  64. package/data/components/popover.md +378 -0
  65. package/data/components/progressbar.md +181 -0
  66. package/data/components/progressspinner.md +91 -0
  67. package/data/components/radiobutton.md +377 -0
  68. package/data/components/rating.md +312 -0
  69. package/data/components/ripple.md +89 -0
  70. package/data/components/scroller.md +122 -0
  71. package/data/components/scrollpanel.md +149 -0
  72. package/data/components/scrolltop.md +105 -0
  73. package/data/components/select.md +1206 -0
  74. package/data/components/selectbutton.md +356 -0
  75. package/data/components/skeleton.md +242 -0
  76. package/data/components/slider.md +337 -0
  77. package/data/components/speeddial.md +589 -0
  78. package/data/components/splitbutton.md +945 -0
  79. package/data/components/splitter.md +196 -0
  80. package/data/components/stepper.md +411 -0
  81. package/data/components/styleclass.md +126 -0
  82. package/data/components/table.md +4557 -0
  83. package/data/components/tabs.md +467 -0
  84. package/data/components/tag.md +200 -0
  85. package/data/components/terminal.md +118 -0
  86. package/data/components/textarea.md +416 -0
  87. package/data/components/tieredmenu.md +578 -0
  88. package/data/components/timeline.md +310 -0
  89. package/data/components/toast.md +596 -0
  90. package/data/components/togglebutton.md +356 -0
  91. package/data/components/toggleswitch.md +285 -0
  92. package/data/components/toolbar.md +182 -0
  93. package/data/components/tooltip.md +211 -0
  94. package/data/components/tree.md +746 -0
  95. package/data/components/treeselect.md +912 -0
  96. package/data/components/treetable.md +2814 -0
  97. package/data/components.json +43751 -0
  98. package/data/llms-full.txt +47433 -0
  99. package/data/llms.txt +121 -0
  100. package/data/manifest.json +46513 -0
  101. package/data/pages/accessibility.md +28 -0
  102. package/data/pages/animations.md +28 -0
  103. package/data/pages/configuration.md +210 -0
  104. package/data/pages/contribution.md +20 -0
  105. package/data/pages/customicons.md +20 -0
  106. package/data/pages/faq.md +20 -0
  107. package/data/pages/icons.md +66 -0
  108. package/data/pages/installation.md +71 -0
  109. package/data/pages/llms.md +61 -0
  110. package/data/pages/passthrough.md +32 -0
  111. package/data/pages/philosophy.md +28 -0
  112. package/data/pages/primeflex.md +20 -0
  113. package/data/pages/rtl.md +12 -0
  114. package/data/pages/styled.md +132 -0
  115. package/data/pages/tailwind.md +40 -0
  116. package/data/pages/unstyled.md +39 -0
  117. package/data/snapshot.json +9 -0
  118. package/dist/index.d.mts +448 -0
  119. package/dist/index.mjs +2501 -0
  120. package/dist/index.mjs.map +1 -0
  121. package/package.json +67 -3
@@ -0,0 +1,310 @@
1
+ # Angular Timeline Component
2
+
3
+ Timeline visualizes a series of chained events.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader Timeline uses a semantic ordered list element to list the events. No specific role is enforced, still you may use any aria role and attributes as any valid attribute is passed to the list element. Keyboard Support Component does not include any interactive elements.
8
+
9
+ ## Alignment
10
+
11
+ Content location relative the line is defined with the align property.
12
+
13
+ ```typescript
14
+ import { Component } from '@angular/core';
15
+ import { TimelineModule } from '@exhaustive-ui/core/timeline';
16
+
17
+ interface EventItem {
18
+ status?: string;
19
+ date?: string;
20
+ icon?: string;
21
+ color?: string;
22
+ image?: string;
23
+ }
24
+
25
+ @Component({
26
+ template: `
27
+ <div class="card flex flex-wrap gap-12">
28
+ <p-timeline [value]="events" class="w-full md:w-80">
29
+ <ng-template #content let-event>
30
+ {{ event.status }}
31
+ </ng-template>
32
+ </p-timeline>
33
+ <p-timeline [value]="events" class="w-full md:w-80" align="right">
34
+ <ng-template #content let-event>
35
+ {{ event.status }}
36
+ </ng-template>
37
+ </p-timeline>
38
+ <p-timeline [value]="events" class="w-full md:w-80" align="alternate">
39
+ <ng-template #content let-event>
40
+ {{ event.status }}
41
+ </ng-template>
42
+ </p-timeline>
43
+ </div>
44
+ `,
45
+ standalone: true,
46
+ imports: [TimelineModule]
47
+ })
48
+ export class TimelineAlignmentDemo {
49
+ events: EventItem[];
50
+
51
+ constructor() {
52
+ this.events = [
53
+ { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
54
+ { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
55
+ { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
56
+ { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
57
+ ];
58
+ }
59
+ }
60
+ ```
61
+
62
+ ## Basic
63
+
64
+ Timeline receives the events with the value property as a collection of arbitrary objects. In addition, content template is required to display the representation of an event. Example below is a sample events array that is used throughout the documentation.
65
+
66
+ ```typescript
67
+ import { Component } from '@angular/core';
68
+ import { TimelineModule } from '@exhaustive-ui/core/timeline';
69
+
70
+ @Component({
71
+ template: `
72
+ <div class="card">
73
+ <p-timeline [value]="events">
74
+ <ng-template #content let-event>
75
+ {{ event.status }}
76
+ </ng-template>
77
+ </p-timeline>
78
+ </div>
79
+ `,
80
+ standalone: true,
81
+ imports: [TimelineModule]
82
+ })
83
+ export class TimelineBasicDemo {
84
+ events: any[];
85
+
86
+ constructor() {
87
+ this.events = [
88
+ { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
89
+ { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
90
+ { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
91
+ { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
92
+ ];
93
+ }
94
+ }
95
+ ```
96
+
97
+ ## Horizontal
98
+
99
+ TimeLine orientation is controlled with the layout property, default is vertical having horizontal as the alternative.
100
+
101
+ ```typescript
102
+ import { Component } from '@angular/core';
103
+ import { TimelineModule } from '@exhaustive-ui/core/timeline';
104
+
105
+ @Component({
106
+ template: `
107
+ <div class="card flex flex-col gap-4">
108
+ <p-timeline [value]="events" layout="horizontal" align="top">
109
+ <ng-template #content let-event>
110
+ {{ event }}
111
+ </ng-template>
112
+ </p-timeline>
113
+ <p-timeline [value]="events" layout="horizontal" align="bottom">
114
+ <ng-template #content let-event>
115
+ {{ event }}
116
+ </ng-template>
117
+ </p-timeline>
118
+ <p-timeline [value]="events" layout="horizontal" align="alternate">
119
+ <ng-template #content let-event>
120
+ {{ event }}
121
+ </ng-template>
122
+ <ng-template #opposite let-event><span>&nbsp;</span></ng-template>
123
+ </p-timeline>
124
+ </div>
125
+ `,
126
+ standalone: true,
127
+ imports: [TimelineModule]
128
+ })
129
+ export class TimelineHorizontalDemo {
130
+ events: string[];
131
+
132
+ constructor() {
133
+ this.events = ['2020', '2021', '2022', '2023'];
134
+ }
135
+ }
136
+ ```
137
+
138
+ ## Opposite
139
+
140
+ Additional content at the other side of the line can be provided with the opposite property.
141
+
142
+ ```typescript
143
+ import { Component } from '@angular/core';
144
+ import { TimelineModule } from '@exhaustive-ui/core/timeline';
145
+
146
+ interface EventItem {
147
+ status?: string;
148
+ date?: string;
149
+ icon?: string;
150
+ color?: string;
151
+ image?: string;
152
+ }
153
+
154
+ @Component({
155
+ template: `
156
+ <div class="card">
157
+ <p-timeline [value]="events">
158
+ <ng-template #opposite let-event>
159
+ <small class="text-surface-500 dark:text-surface-400">{{ event.date }}</small>
160
+ </ng-template>
161
+ <ng-template #content let-event>
162
+ {{ event.status }}
163
+ </ng-template>
164
+ </p-timeline>
165
+ </div>
166
+ `,
167
+ standalone: true,
168
+ imports: [TimelineModule]
169
+ })
170
+ export class TimelineOppositeDemo {
171
+ events: EventItem[];
172
+
173
+ constructor() {
174
+ this.events = [
175
+ { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
176
+ { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
177
+ { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
178
+ { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
179
+ ];
180
+ }
181
+ }
182
+ ```
183
+
184
+ ## Template
185
+
186
+ Sample implementation with custom content and styled markers.
187
+
188
+ ```typescript
189
+ import { Component } from '@angular/core';
190
+ import { ButtonModule } from '@exhaustive-ui/core/button';
191
+ import { CardModule } from '@exhaustive-ui/core/card';
192
+ import { TimelineModule } from '@exhaustive-ui/core/timeline';
193
+
194
+ interface EventItem {
195
+ status?: string;
196
+ date?: string;
197
+ icon?: string;
198
+ color?: string;
199
+ image?: string;
200
+ }
201
+
202
+ @Component({
203
+ template: `
204
+ <div class="card">
205
+ <p-timeline [value]="events" align="alternate" class="customized-timeline">
206
+ <ng-template #marker let-event>
207
+ <span class="flex w-8 h-8 items-center justify-center text-white rounded-full z-10 shadow-sm" [style]="{ 'background-color': event.color }">
208
+ <i [class]="event.icon"></i>
209
+ </span>
210
+ </ng-template>
211
+ <ng-template #content let-event>
212
+ <p-card [header]="event.status" [subheader]="event.date">
213
+ <img *ngIf="event.image" [src]="'https://exhaustive-ui.e-xiste.com/demo/product/' + event.image" [alt]="event.name" width="200" class="shadow" />
214
+ <p>
215
+ 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
216
+ neque quas!
217
+ </p>
218
+ <p-button label="Read more" [text]="true" />
219
+ </p-card>
220
+ </ng-template>
221
+ </p-timeline>
222
+ </div>
223
+ `,
224
+ standalone: true,
225
+ imports: [ButtonModule, CardModule, TimelineModule]
226
+ })
227
+ export class TimelineTemplateDemo {
228
+ events: EventItem[];
229
+
230
+ constructor() {
231
+ this.events = [
232
+ { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
233
+ { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
234
+ { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
235
+ { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
236
+ ];
237
+ }
238
+ }
239
+ ```
240
+
241
+ ## Timeline
242
+
243
+ Timeline visualizes a series of chained events.
244
+
245
+ ### Props
246
+
247
+ | Name | Type | Default | Description |
248
+ |------|------|---------|-------------|
249
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
250
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
251
+ | pt | InputSignal<TimelinePassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
252
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
253
+ | value | InputSignal<any[]> | ... | An array of events to display. |
254
+ | align | InputSignal<string> | ... | Position of the timeline bar relative to the content. Valid values are "left", "right" for vertical layout and "top", "bottom" for horizontal layout. |
255
+ | layout | InputSignal<"vertical" \| "horizontal"> | ... | Orientation of the timeline. |
256
+
257
+ ### Templates
258
+
259
+ | Name | Type | Description |
260
+ |------|------|-------------|
261
+ | content | TemplateRef<TimelineItemTemplateContext<any>> | Custom content template. |
262
+ | opposite | TemplateRef<TimelineItemTemplateContext<any>> | Custom opposite item template. |
263
+ | marker | TemplateRef<TimelineItemTemplateContext<any>> | Custom marker template. |
264
+
265
+ ## Pass Through Options
266
+
267
+ | Name | Type | Description |
268
+ |------|------|-------------|
269
+ | host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
270
+ | root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
271
+ | event | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the event's DOM element. |
272
+ | eventOpposite | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the event opposite's DOM element. |
273
+ | eventSeparator | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the event separator's DOM element. |
274
+ | eventMarker | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the event marker's DOM element. |
275
+ | eventConnector | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the event connector's DOM element. |
276
+ | eventContent | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the event content's DOM element. |
277
+
278
+ ## Theming
279
+
280
+ ### CSS Classes
281
+
282
+ | Class | Description |
283
+ |-------|-------------|
284
+ | p-timeline | Class name of the root element |
285
+ | p-timeline-event | Class name of the event element |
286
+ | p-timeline-event-opposite | Class name of the event opposite element |
287
+ | p-timeline-event-separator | Class name of the event separator element |
288
+ | p-timeline-event-marker | Class name of the event marker element |
289
+ | p-timeline-event-connector | Class name of the event connector element |
290
+ | p-timeline-event-content | Class name of the event content element |
291
+
292
+ ### Design Tokens
293
+
294
+ | Token | CSS Variable | Description |
295
+ |-------|--------------|-------------|
296
+ | timeline.event.min.height | --p-timeline-event-min-height | Min height of event |
297
+ | timeline.horizontal.event.content.padding | --p-timeline-horizontal-event-content-padding | Event content padding of horizontal |
298
+ | timeline.vertical.event.content.padding | --p-timeline-vertical-event-content-padding | Event content padding of vertical |
299
+ | timeline.event.marker.size | --p-timeline-event-marker-size | Size of event marker |
300
+ | timeline.event.marker.border.radius | --p-timeline-event-marker-border-radius | Border radius of event marker |
301
+ | timeline.event.marker.border.width | --p-timeline-event-marker-border-width | Border width of event marker |
302
+ | timeline.event.marker.background | --p-timeline-event-marker-background | Background of event marker |
303
+ | timeline.event.marker.border.color | --p-timeline-event-marker-border-color | Border color of event marker |
304
+ | timeline.event.marker.content.border.radius | --p-timeline-event-marker-content-border-radius | Content border radius of event marker |
305
+ | timeline.event.marker.content.size | --p-timeline-event-marker-content-size | Content size of event marker |
306
+ | timeline.event.marker.content.background | --p-timeline-event-marker-content-background | Content background of event marker |
307
+ | timeline.event.marker.content.inset.shadow | --p-timeline-event-marker-content-inset-shadow | Content inset shadow of event marker |
308
+ | timeline.event.connector.color | --p-timeline-event-connector-color | Color of event connector |
309
+ | timeline.event.connector.size | --p-timeline-event-connector-size | Size of event connector |
310
+