@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,89 @@
1
+ # Angular Ripple Component
2
+
3
+ Ripple directive adds ripple effect to the host element.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader Ripple element has the aria-hidden attribute as true so that it gets ignored by the screen readers. Keyboard Support Component does not include any interactive elements.
8
+
9
+ ## Custom
10
+
11
+ Styling Demo Content.
12
+
13
+ ```typescript
14
+ import { Component } from '@angular/core';
15
+ import { RippleModule } from '@exhaustive-ui/core/ripple';
16
+
17
+ @Component({
18
+ template: `
19
+ <div class="card flex flex-col gap-4 items-center">
20
+ <span
21
+ >Ripple option at the
22
+ <span class="mx-1 h-8 w-8 rounded-border inline-flex items-center justify-center bg-primary text-primary-contrast"><i class="pi pi-palette"></i></span>
23
+ configurator needs to be turned on for the demo.</span
24
+ >
25
+ <div class="flex justify-center gap-2">
26
+ <div pRipple class="box" style="border: 1px solid rgba(75, 175, 80, 0.3); --p-ripple-background: rgba(75, 175, 80, 0.3)">Green</div>
27
+ <div pRipple class="box" style="border: 1px solid rgba(255, 193, 6, 0.3); --p-ripple-background: rgba(255, 193, 6, 0.3)">Orange</div>
28
+ <div pRipple class="box" style="border: 1px solid rgba(156, 39, 176, 0.3); --p-ripple-background: rgba(156, 39, 176, 0.3)">Purple</div>
29
+ </div>
30
+ </div>
31
+ `,
32
+ standalone: true,
33
+ imports: [RippleModule]
34
+ })
35
+ export class RippleCustomDemo {}
36
+ ```
37
+
38
+ ## Default
39
+
40
+ Default Demo Content.
41
+
42
+ ```typescript
43
+ import { Component } from '@angular/core';
44
+ import { RippleModule } from '@exhaustive-ui/core/ripple';
45
+
46
+ @Component({
47
+ template: `
48
+ <div class="card flex flex-col items-center gap-4">
49
+ <span
50
+ >Ripple option at the
51
+ <span class="mx-1 h-8 w-8 rounded-border inline-flex items-center justify-center bg-primary text-primary-contrast"><i class="pi pi-palette"></i></span>
52
+ configurator needs to be turned on for the demo.</span
53
+ >
54
+ <div pRipple class="ripple-box">Default</div>
55
+ </div>
56
+ `,
57
+ standalone: true,
58
+ imports: [RippleModule]
59
+ })
60
+ export class RippleDefaultDemo {}
61
+ ```
62
+
63
+ ## Ripple
64
+
65
+ Ripple directive adds ripple effect to the host element.
66
+
67
+ ### Props
68
+
69
+ | Name | Type | Default | Description |
70
+ |------|------|---------|-------------|
71
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
72
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
73
+ | pt | InputSignal<any> | undefined | Used to pass attributes to DOM elements inside the component. |
74
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
75
+
76
+ ## Theming
77
+
78
+ ### CSS Classes
79
+
80
+ | Class | Description |
81
+ |-------|-------------|
82
+ | p-ink | Class name of the root element |
83
+
84
+ ### Design Tokens
85
+
86
+ | Token | CSS Variable | Description |
87
+ |-------|--------------|-------------|
88
+ | ripple.background | --p-ripple-background | Background of root |
89
+
@@ -0,0 +1,122 @@
1
+ # Angular Virtual Scroller Component
2
+
3
+ VirtualScroller is a performance-approach to handle huge data efficiently.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader VirtualScroller uses a semantic list element to list the items. No specific role is enforced, still you may use any aria role and attributes as any valid attribute is passed to the container element. Keyboard Support Component does not include any built-in interactive elements.
8
+
9
+ ## Basic
10
+
11
+ VirtualScroller requires items as the data to display, itemSize for the dimensions of an item and item template are required on component. In addition, an initial array is required based on the total number of items to display. Size of the viewport is configured using scrollWidth , scrollHeight properties directly or with CSS width and height styles.
12
+
13
+ ## Delay
14
+
15
+ Scroll delay is adjusted by using delay property.
16
+
17
+ ## Grid
18
+
19
+ Scrolling can be enabled vertically and horizontally when orientation is set as both . In this mode, itemSize should be an array where first value is the height of an item and second is the width.
20
+
21
+ ## Horizontal
22
+
23
+ Setting orientation to horizontal enables scrolling horizontally. In this case, the itemSize should refer to the width of an item.
24
+
25
+ ## lazyload-doc
26
+
27
+ Lazy mode is handy to deal with large datasets where instead of loading the entire data, small chunks of data are loaded on demand by invoking onLazyLoad callback everytime scrolling requires a new chunk. To implement lazy loading, enable lazy attribute, initialize your data as a placeholder with a length and finally implement a method callback using onLazyLoad that actually loads a chunk from a datasource. onLazyLoad gets an event object that contains information about the chunk of data to load such as the index and number of items to load. Notice that a new template called loadingItem is also required to display as a placeholder while the new items are being loaded.
28
+
29
+ ## loader-doc
30
+
31
+ Busy state is enabled by adding showLoader property which blocks the UI with a modal by default. Alternatively, loader template can be used to customize items e.g. with Skeleton .
32
+
33
+ ## Programmatic
34
+
35
+ Scrolling to a specific index can be done with the scrollToIndex function.
36
+
37
+ ## Scroll Options
38
+
39
+ The properties of scroller component can be used like an object in it.
40
+
41
+ ## Template
42
+
43
+ Scroller content is customizable by using ng-template . Valid values are content , item , loader and loadericon
44
+
45
+ ## Scroller
46
+
47
+ Scroller is a performance-approach to handle huge data efficiently.
48
+
49
+ ### Props
50
+
51
+ | Name | Type | Default | Description |
52
+ |------|------|---------|-------------|
53
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
54
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
55
+ | pt | InputSignal<VirtualScrollerPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
56
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
57
+ | id | InputSignal<string> | ... | Unique identifier of the element. |
58
+ | style | InputSignal<any> | ... | Inline style of the component. |
59
+ | styleClass | InputSignal<string> | ... | Style class of the element. |
60
+ | tabindex | InputSignal<number> | ... | Index of the element in tabbing order. |
61
+ | items | InputSignal<any[]> | ... | An array of objects to display. |
62
+ | itemSize | InputSignal<number \| number[]> | ... | The height/width of item according to orientation. |
63
+ | scrollHeight | InputSignal<string> | ... | Height of the scroll viewport. |
64
+ | scrollWidth | InputSignal<string> | ... | Width of the scroll viewport. |
65
+ | orientation | InputSignal<"both" \| "vertical" \| "horizontal"> | ... | The orientation of scrollbar. |
66
+ | step | InputSignal<number> | ... | Used to specify how many items to load in each load method in lazy mode. |
67
+ | delay | InputSignal<number> | ... | Delay in scroll before new data is loaded. |
68
+ | resizeDelay | InputSignal<number> | ... | Delay after window's resize finishes. |
69
+ | appendOnly | InputSignal<boolean> | ... | Used to append each loaded item to top without removing any items from the DOM. Using very large data may cause the browser to crash. |
70
+ | inline | InputSignal<boolean> | ... | Specifies whether the scroller should be displayed inline or not. |
71
+ | lazy | InputSignal<boolean> | ... | Defines if data is loaded and interacted with in lazy manner. |
72
+ | disabled | InputSignal<boolean> | ... | If disabled, the scroller feature is eliminated and the content is displayed directly. |
73
+ | loaderDisabled | InputSignal<boolean> | ... | Used to implement a custom loader instead of using the loader feature in the scroller. |
74
+ | columns | InputSignal<any[]> | ... | Columns to display. |
75
+ | showSpacer | InputSignal<boolean> | ... | Used to implement a custom spacer instead of using the spacer feature in the scroller. |
76
+ | showLoader | InputSignal<boolean> | ... | Defines whether to show loader. |
77
+ | numToleratedItems | InputSignal<number> | ... | Determines how many additional elements to add to the DOM outside of the view. According to the scrolls made up and down, extra items are added in a certain algorithm in the form of multiples of this number. Default value is half the number of items shown in the view. |
78
+ | loading | InputSignal<boolean> | ... | Defines whether the data is loaded. |
79
+ | autoSize | InputSignal<boolean> | ... | Defines whether to dynamically change the height or width of scrollable container. |
80
+ | trackBy | InputSignal<Function> | ... | Function to optimize the dom operations by delegating to ngForTrackBy, default algoritm checks for object identity. |
81
+ | options | InputSignal<ScrollerOptions> | ... | Defines whether to use the scroller feature. The properties of scroller component can be used like an object in it. |
82
+
83
+ ### Emits
84
+
85
+ | Name | Parameters | Description |
86
+ |------|------------|-------------|
87
+ | onLazyLoad | event: ScrollerLazyLoadEvent | Callback to invoke in lazy mode to load new data. |
88
+ | onScroll | event: ScrollerScrollEvent | Callback to invoke when scroll position changes. |
89
+ | onScrollIndexChange | event: ScrollerScrollIndexChangeEvent | Callback to invoke when scroll position and item's range in view changes. |
90
+
91
+ ### Templates
92
+
93
+ | Name | Type | Description |
94
+ |------|------|-------------|
95
+ | content | TemplateRef<ScrollerContentTemplateContext> | Content template of the component. |
96
+ | item | TemplateRef<ScrollerItemTemplateContext> | Item template of the component. |
97
+ | loader | TemplateRef<ScrollerLoaderTemplateContext> | Loader template of the component. |
98
+ | loadericon | TemplateRef<ScrollerLoaderIconTemplateContext> | Loader icon template of the component. |
99
+
100
+ ## Pass Through Options
101
+
102
+ | Name | Type | Description |
103
+ |------|------|-------------|
104
+ | host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
105
+ | root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
106
+ | content | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the content's DOM element. |
107
+ | spacer | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the spacer's DOM element. |
108
+ | loader | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the loader's DOM element. |
109
+ | loadingIcon | PassThroughOption<HTMLElement, I> | Used to pass attributes to the loading icon's DOM element. |
110
+
111
+ ## Theming
112
+
113
+ ### CSS Classes
114
+
115
+ | Class | Description |
116
+ |-------|-------------|
117
+ | p-virtualscroller | Class name of the root element |
118
+ | p-virtualscroller-content | Class name of the content element |
119
+ | p-virtualscroller-spacer | Class name of the spacer element |
120
+ | p-virtualscroller-loader | Class name of the loader element |
121
+ | p-virtualscroller-loading-icon | Class name of the loading icon element |
122
+
@@ -0,0 +1,149 @@
1
+ # Angular Scroll Panel Component
2
+
3
+ ScrollPanel is a cross browser, lightweight and skinnable alternative to native browser scrollbar.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader Scrollbars of the ScrollPanel has a scrollbar role along with the aria-controls attribute that refers to the id of the scrollable content container and the aria-orientation to indicate the orientation of scrolling. Header Keyboard Support Key Function down arrow Scrolls content down when vertical scrolling is available. up arrow Scrolls content up when vertical scrolling is available. left Scrolls content left when horizontal scrolling is available. right Scrolls content right when horizontal scrolling is available.
8
+
9
+ ## Basic
10
+
11
+ ScrollPanel is defined using dimensions for the scrollable viewport.
12
+
13
+ ```typescript
14
+ import { Component } from '@angular/core';
15
+ import { ScrollPanelModule } from '@exhaustive-ui/core/scrollpanel';
16
+
17
+ @Component({
18
+ template: `
19
+ <div class="card">
20
+ <p-scrollpanel [style]="{ width: '100%', height: '150px' }">
21
+ <p>
22
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
23
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
24
+ </p>
25
+ <p>
26
+ Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
27
+ ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
28
+ </p>
29
+ <p class="m-0">
30
+ At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui
31
+ officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
32
+ </p>
33
+ </p-scrollpanel>
34
+ </div>
35
+ `,
36
+ standalone: true,
37
+ imports: [ScrollPanelModule]
38
+ })
39
+ export class ScrollpanelBasicDemo {}
40
+ ```
41
+
42
+ ## Custom
43
+
44
+ Scrollbar visuals can be styled for a unified look across different platforms.
45
+
46
+ ```typescript
47
+ import { Component } from '@angular/core';
48
+ import { ScrollPanelModule } from '@exhaustive-ui/core/scrollpanel';
49
+
50
+ @Component({
51
+ template: `
52
+ <div class="card">
53
+ <p-scrollpanel [style]="{ width: '100%', height: '200px' }">
54
+ <p>
55
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
56
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
57
+ </p>
58
+ <p>
59
+ Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
60
+ ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
61
+ </p>
62
+ <p>
63
+ At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui
64
+ officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
65
+ </p>
66
+ <p>
67
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
68
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
69
+ </p>
70
+ <p>
71
+ Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim
72
+ ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
73
+ </p>
74
+ <p>
75
+ At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui
76
+ officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
77
+ </p>
78
+ </p-scrollpanel>
79
+ </div>
80
+ `,
81
+ standalone: true,
82
+ imports: [ScrollPanelModule]
83
+ })
84
+ export class ScrollpanelCustomDemo {}
85
+ ```
86
+
87
+ ## Scroll Panel
88
+
89
+ ScrollPanel is a cross browser, lightweight and themable alternative to native browser scrollbar.
90
+
91
+ ### Props
92
+
93
+ | Name | Type | Default | Description |
94
+ |------|------|---------|-------------|
95
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
96
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
97
+ | pt | InputSignal<ScrollPanelPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
98
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
99
+ | step | InputSignalWithTransform<number, unknown> | ... | Step factor to scroll the content while pressing the arrow keys. |
100
+
101
+ ### Templates
102
+
103
+ | Name | Type | Description |
104
+ |------|------|-------------|
105
+ | content | TemplateRef<void> | Custom content template. |
106
+
107
+ ### Methods
108
+
109
+ | Name | Parameters | Return Type | Description |
110
+ |------|------------|-------------|-------------|
111
+ | scrollTop | scrollTop: number | void | Scrolls the top location to the given value. |
112
+ | refresh | | void | Refreshes the position and size of the scrollbar. |
113
+
114
+ ## Pass Through Options
115
+
116
+ | Name | Type | Description |
117
+ |------|------|-------------|
118
+ | root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
119
+ | contentContainer | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the content container's DOM element. |
120
+ | content | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the content's DOM element. |
121
+ | barX | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the horizontal panel's DOM element. |
122
+ | barY | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the vertical panel's DOM element. |
123
+
124
+ ## Theming
125
+
126
+ ### CSS Classes
127
+
128
+ | Class | Description |
129
+ |-------|-------------|
130
+ | p-scrollpanel | Class name of the root element |
131
+ | p-scrollpanel-content-container | Class name of the content container element |
132
+ | p-scrollpanel-content | Class name of the content element |
133
+ | p-scrollpanel-bar-x | Class name of the bar x element |
134
+ | p-scrollpanel-bar-y | Class name of the bar y element |
135
+
136
+ ### Design Tokens
137
+
138
+ | Token | CSS Variable | Description |
139
+ |-------|--------------|-------------|
140
+ | scrollpanel.transition.duration | --p-scrollpanel-transition-duration | Transition duration of root |
141
+ | scrollpanel.bar.size | --p-scrollpanel-bar-size | Size of bar |
142
+ | scrollpanel.bar.border.radius | --p-scrollpanel-bar-border-radius | Border radius of bar |
143
+ | scrollpanel.bar.focus.ring.width | --p-scrollpanel-bar-focus-ring-width | Focus ring width of bar |
144
+ | scrollpanel.bar.focus.ring.style | --p-scrollpanel-bar-focus-ring-style | Focus ring style of bar |
145
+ | scrollpanel.bar.focus.ring.color | --p-scrollpanel-bar-focus-ring-color | Focus ring color of bar |
146
+ | scrollpanel.bar.focus.ring.offset | --p-scrollpanel-bar-focus-ring-offset | Focus ring offset of bar |
147
+ | scrollpanel.bar.focus.ring.shadow | --p-scrollpanel-bar-focus-ring-shadow | Focus ring shadow of bar |
148
+ | scrollpanel.bar.background | --p-scrollpanel-bar-background | Background of bar |
149
+
@@ -0,0 +1,105 @@
1
+ # Angular Scroll Top Component
2
+
3
+ ScrollTop gets displayed after a certain scroll position and used to navigates to the top of the page quickly.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader ScrollTop uses a button element with an aria-label that refers to the aria.scrollTop property of the locale API by default, you may use your own aria roles and attributes as any valid attribute is passed to the button element implicitly.
8
+
9
+ ## Basic
10
+
11
+ ScrollTop listens window scroll by default.
12
+
13
+ ```typescript
14
+ import { Component } from '@angular/core';
15
+ import { ScrollTopModule } from '@exhaustive-ui/core/scrolltop';
16
+
17
+ @Component({
18
+ template: `
19
+ <div class="card flex flex-col items-center">
20
+ <p>Scroll down the page to display the ScrollTo component.</p>
21
+ <i class="pi pi-angle-down animate-fadeout animate-duration-1000 animate-infinite" style="fontsize: 2rem; margin-bottom: 30rem"></i>
22
+ <p-scrolltop />
23
+ </div>
24
+ `,
25
+ standalone: true,
26
+ imports: [ScrollTopModule]
27
+ })
28
+ export class ScrolltopBasicDemo {}
29
+ ```
30
+
31
+ ## Target Element
32
+
33
+ Setting the target property to parent binds ScrollTop to its parent element that has scrolling content.
34
+
35
+ ```typescript
36
+ import { Component } from '@angular/core';
37
+ import { ScrollTopModule } from '@exhaustive-ui/core/scrolltop';
38
+
39
+ @Component({
40
+ template: `
41
+ <div class="card flex justify-center">
42
+ <div style="width: 250px; height: 200px; overflow: auto">
43
+ <p>
44
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae et leo duis ut diam. Ultricies mi quis hendrerit dolor magna eget est lorem. Amet consectetur
45
+ adipiscing elit ut. Nam libero justo laoreet sit amet. Pharetra massa massa ultricies mi quis hendrerit dolor magna. Est ultricies integer quis auctor elit sed vulputate. Consequat ac felis donec et. Tellus orci ac auctor augue
46
+ mauris. Semper feugiat nibh sed pulvinar proin gravida hendrerit lectus a. Tincidunt arcu non sodales neque sodales. Metus aliquam eleifend mi in nulla posuere sollicitudin aliquam ultrices. Sodales ut etiam sit amet nisl purus.
47
+ Cursus sit amet dictum sit amet. Tristique senectus et netus et malesuada fames ac turpis egestas. Et tortor consequat id porta nibh venenatis cras sed. Diam maecenas ultricies mi eget mauris. Eget egestas purus viverra accumsan
48
+ in nisl nisi. Suscipit adipiscing bibendum est ultricies integer. Mattis aliquam faucibus purus in massa tempor nec.
49
+ </p>
50
+ <p-scrolltop target="parent" [threshold]="100" icon="pi pi-arrow-up" [buttonProps]="{ severity: 'contrast', raised: true, rounded: true }" />
51
+ </div>
52
+ </div>
53
+ `,
54
+ standalone: true,
55
+ imports: [ScrollTopModule]
56
+ })
57
+ export class ScrolltopElementDemo {}
58
+ ```
59
+
60
+ ## Scroll Top
61
+
62
+ ScrollTop gets displayed after a certain scroll position and used to navigates to the top of the page quickly.
63
+
64
+ ### Props
65
+
66
+ | Name | Type | Default | Description |
67
+ |------|------|---------|-------------|
68
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
69
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
70
+ | pt | InputSignal<ScrollTopPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
71
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
72
+ | styleClass | InputSignal<string> | ... | Class of the element. |
73
+ | style | InputSignal<{ [klass: string]: any }> | ... | Inline style of the element. |
74
+ | target | InputSignal<"window" \| "parent"> | ... | Target of the ScrollTop. |
75
+ | threshold | InputSignalWithTransform<number, unknown> | ... | Defines the threshold value of the vertical scroll position of the target to toggle the visibility. |
76
+ | icon | InputSignal<string> | ... | Name of the icon or JSX.Element for icon. |
77
+ | behavior | InputSignal<"auto" \| "smooth"> | ... | Defines the scrolling behavior, "smooth" adds an animation and "auto" scrolls with a jump. |
78
+ | motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
79
+ | buttonAriaLabel | InputSignal<string> | ... | Establishes a string value that labels the scroll-top button. |
80
+ | buttonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the Button component. |
81
+
82
+ ### Templates
83
+
84
+ | Name | Type | Description |
85
+ |------|------|-------------|
86
+ | icon | TemplateRef<ScrollTopIconTemplateContext> | Custom icon template. |
87
+
88
+ ## Pass Through Options
89
+
90
+ | Name | Type | Description |
91
+ |------|------|-------------|
92
+ | host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
93
+ | root | PassThroughOption<HTMLElement, I> | Used to pass attributes to the root's DOM element. |
94
+ | pcButton | ButtonPassThrough | Used to pass attributes to the Button component. |
95
+ | motion | MotionOptions | Used to pass options to the motion component/directive. |
96
+
97
+ ## Theming
98
+
99
+ ### CSS Classes
100
+
101
+ | Class | Description |
102
+ |-------|-------------|
103
+ | p-scrolltop | Class name of the root element |
104
+ | p-scrolltop-icon | Class name of the icon element |
105
+