primevue 3.23.0 → 3.24.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.
Files changed (266) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +12 -12
  3. package/accordion/Accordion.d.ts +53 -21
  4. package/accordiontab/AccordionTab.d.ts +33 -12
  5. package/autocomplete/AutoComplete.d.ts +111 -84
  6. package/avatar/Avatar.d.ts +38 -25
  7. package/avatar/Avatar.vue +1 -1
  8. package/avatar/avatar.cjs.js +2 -1
  9. package/avatar/avatar.cjs.min.js +1 -1
  10. package/avatar/avatar.esm.js +2 -1
  11. package/avatar/avatar.esm.min.js +1 -1
  12. package/avatar/avatar.js +2 -1
  13. package/avatar/avatar.min.js +1 -1
  14. package/avatargroup/AvatarGroup.d.ts +30 -14
  15. package/badge/Badge.d.ts +34 -20
  16. package/badge/Badge.vue +16 -5
  17. package/badge/badge.cjs.js +15 -5
  18. package/badge/badge.cjs.min.js +1 -1
  19. package/badge/badge.esm.js +15 -5
  20. package/badge/badge.esm.min.js +1 -1
  21. package/badge/badge.js +16 -7
  22. package/badge/badge.min.js +1 -1
  23. package/badgedirective/BadgeDirective.d.ts +60 -1
  24. package/blockui/BlockUI.d.ts +36 -16
  25. package/breadcrumb/Breadcrumb.d.ts +37 -20
  26. package/button/Button.d.ts +74 -17
  27. package/button/Button.vue +51 -8
  28. package/button/button.cjs.js +51 -8
  29. package/button/button.cjs.min.js +1 -1
  30. package/button/button.esm.js +51 -8
  31. package/button/button.esm.min.js +1 -1
  32. package/button/button.js +51 -8
  33. package/button/button.min.js +1 -1
  34. package/calendar/Calendar.d.ts +112 -77
  35. package/card/Card.d.ts +35 -15
  36. package/carousel/Carousel.d.ts +47 -29
  37. package/cascadeselect/CascadeSelect.d.ts +70 -59
  38. package/chart/Chart.d.ts +41 -23
  39. package/checkbox/Checkbox.d.ts +39 -15
  40. package/checkbox/Checkbox.vue +1 -1
  41. package/checkbox/checkbox.cjs.js +1 -1
  42. package/checkbox/checkbox.cjs.min.js +1 -1
  43. package/checkbox/checkbox.esm.js +1 -1
  44. package/checkbox/checkbox.esm.min.js +1 -1
  45. package/checkbox/checkbox.js +1 -1
  46. package/checkbox/checkbox.min.js +1 -1
  47. package/chip/Chip.d.ts +35 -14
  48. package/chips/Chips.d.ts +45 -20
  49. package/colorpicker/ColorPicker.d.ts +46 -28
  50. package/column/Column.d.ts +81 -65
  51. package/columngroup/ColumnGroup.d.ts +29 -13
  52. package/config/config.cjs.js +20 -1
  53. package/config/config.cjs.min.js +1 -1
  54. package/config/config.esm.js +20 -1
  55. package/config/config.esm.min.js +1 -1
  56. package/config/config.js +20 -1
  57. package/config/config.min.js +1 -1
  58. package/confirmationoptions/ConfirmationOptions.d.ts +15 -6
  59. package/confirmationservice/ConfirmationService.d.ts +11 -0
  60. package/confirmdialog/ConfirmDialog.d.ts +35 -17
  61. package/confirmpopup/ConfirmPopup.d.ts +32 -17
  62. package/contextmenu/ContextMenu.d.ts +51 -35
  63. package/core/core.js +339 -104
  64. package/core/core.min.js +6 -6
  65. package/datatable/DataTable.d.ts +248 -205
  66. package/datatable/DataTable.vue +72 -111
  67. package/datatable/TableBody.vue +3 -17
  68. package/datatable/datatable.cjs.js +63 -57
  69. package/datatable/datatable.cjs.min.js +1 -1
  70. package/datatable/datatable.esm.js +63 -57
  71. package/datatable/datatable.esm.min.js +1 -1
  72. package/datatable/datatable.js +63 -57
  73. package/datatable/datatable.min.js +1 -1
  74. package/dataview/DataView.d.ts +65 -47
  75. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +33 -13
  76. package/deferredcontent/DeferredContent.d.ts +30 -13
  77. package/dialog/Dialog.d.ts +67 -46
  78. package/dialogservice/DialogService.d.ts +13 -2
  79. package/divider/Divider.d.ts +35 -30
  80. package/dock/Dock.d.ts +49 -36
  81. package/dropdown/Dropdown.d.ts +90 -82
  82. package/dropdown/Dropdown.vue +1 -1
  83. package/dropdown/dropdown.cjs.js +1 -1
  84. package/dropdown/dropdown.cjs.min.js +1 -1
  85. package/dropdown/dropdown.esm.js +1 -1
  86. package/dropdown/dropdown.esm.min.js +1 -1
  87. package/dropdown/dropdown.js +1 -1
  88. package/dropdown/dropdown.min.js +1 -1
  89. package/dynamicdialog/DynamicDialog.d.ts +30 -10
  90. package/dynamicdialog/DynamicDialog.vue +2 -2
  91. package/dynamicdialog/dynamicdialog.cjs.js +3 -3
  92. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  93. package/dynamicdialog/dynamicdialog.esm.js +2 -2
  94. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  95. package/dynamicdialog/dynamicdialog.js +3 -3
  96. package/dynamicdialog/dynamicdialog.min.js +1 -1
  97. package/dynamicdialogoptions/DynamicDialogOptions.d.ts +28 -8
  98. package/editor/Editor.d.ts +48 -17
  99. package/fieldset/Fieldset.d.ts +43 -16
  100. package/fileupload/FileUpload.d.ts +101 -47
  101. package/focustrap/FocusTrap.d.ts +42 -3
  102. package/fullcalendar/FullCalendar.d.ts +1 -1
  103. package/galleria/Galleria.d.ts +64 -40
  104. package/image/Image.d.ts +33 -14
  105. package/inlinemessage/InlineMessage.d.ts +31 -17
  106. package/inplace/Inplace.d.ts +41 -18
  107. package/inputmask/InputMask.d.ts +41 -17
  108. package/inputnumber/InputNumber.d.ts +60 -41
  109. package/inputswitch/InputSwitch.d.ts +35 -15
  110. package/inputswitch/InputSwitch.vue +1 -0
  111. package/inputswitch/inputswitch.cjs.js +1 -1
  112. package/inputswitch/inputswitch.cjs.min.js +1 -1
  113. package/inputswitch/inputswitch.esm.js +1 -1
  114. package/inputswitch/inputswitch.esm.min.js +1 -1
  115. package/inputswitch/inputswitch.js +1 -1
  116. package/inputswitch/inputswitch.min.js +1 -1
  117. package/inputtext/InputText.d.ts +32 -12
  118. package/knob/Knob.d.ts +47 -21
  119. package/listbox/Listbox.d.ts +81 -60
  120. package/megamenu/MegaMenu.d.ts +42 -27
  121. package/megamenu/MegaMenu.vue +17 -0
  122. package/megamenu/megamenu.cjs.js +1 -1
  123. package/megamenu/megamenu.cjs.min.js +1 -1
  124. package/megamenu/megamenu.esm.js +1 -1
  125. package/megamenu/megamenu.esm.min.js +1 -1
  126. package/megamenu/megamenu.js +1 -1
  127. package/megamenu/megamenu.min.js +1 -1
  128. package/menu/Menu.d.ts +51 -30
  129. package/menubar/Menubar.d.ts +36 -19
  130. package/menuitem/MenuItem.d.ts +22 -10
  131. package/message/Message.d.ts +40 -21
  132. package/multiselect/MultiSelect.d.ts +111 -90
  133. package/orderlist/OrderList.d.ts +51 -23
  134. package/organizationchart/OrganizationChart.d.ts +43 -26
  135. package/overlaypanel/OverlayPanel.d.ts +46 -26
  136. package/package.json +2 -2
  137. package/paginator/Paginator.d.ts +49 -24
  138. package/panel/Panel.d.ts +39 -14
  139. package/panelmenu/PanelMenu.d.ts +49 -21
  140. package/password/Password.d.ts +47 -28
  141. package/picklist/PickList.d.ts +74 -33
  142. package/progressbar/ProgressBar.d.ts +34 -17
  143. package/progressspinner/ProgressSpinner.d.ts +32 -13
  144. package/radiobutton/RadioButton.d.ts +32 -14
  145. package/rating/Rating.d.ts +51 -25
  146. package/resources/themes/arya-blue/theme.css +34 -11
  147. package/resources/themes/arya-green/theme.css +34 -11
  148. package/resources/themes/arya-orange/theme.css +34 -11
  149. package/resources/themes/arya-purple/theme.css +34 -11
  150. package/resources/themes/bootstrap4-dark-blue/theme.css +34 -11
  151. package/resources/themes/bootstrap4-dark-purple/theme.css +34 -11
  152. package/resources/themes/bootstrap4-light-blue/theme.css +34 -11
  153. package/resources/themes/bootstrap4-light-purple/theme.css +34 -11
  154. package/resources/themes/fluent-light/theme.css +34 -11
  155. package/resources/themes/lara-dark-blue/theme.css +34 -11
  156. package/resources/themes/lara-dark-indigo/theme.css +34 -11
  157. package/resources/themes/lara-dark-purple/theme.css +34 -11
  158. package/resources/themes/lara-dark-teal/theme.css +34 -11
  159. package/resources/themes/lara-light-blue/theme.css +34 -11
  160. package/resources/themes/lara-light-indigo/theme.css +34 -11
  161. package/resources/themes/lara-light-purple/theme.css +34 -11
  162. package/resources/themes/lara-light-teal/theme.css +34 -11
  163. package/resources/themes/luna-amber/theme.css +34 -11
  164. package/resources/themes/luna-blue/theme.css +34 -11
  165. package/resources/themes/luna-green/theme.css +34 -11
  166. package/resources/themes/luna-pink/theme.css +34 -11
  167. package/resources/themes/md-dark-deeppurple/theme.css +34 -11
  168. package/resources/themes/md-dark-indigo/theme.css +34 -11
  169. package/resources/themes/md-light-deeppurple/theme.css +34 -11
  170. package/resources/themes/md-light-indigo/theme.css +34 -11
  171. package/resources/themes/mdc-dark-deeppurple/theme.css +34 -11
  172. package/resources/themes/mdc-dark-indigo/theme.css +34 -11
  173. package/resources/themes/mdc-light-deeppurple/theme.css +34 -11
  174. package/resources/themes/mdc-light-indigo/theme.css +34 -11
  175. package/resources/themes/mira/theme.css +34 -11
  176. package/resources/themes/nano/theme.css +34 -11
  177. package/resources/themes/nova/theme.css +34 -11
  178. package/resources/themes/nova-accent/theme.css +34 -11
  179. package/resources/themes/nova-alt/theme.css +34 -11
  180. package/resources/themes/nova-vue/theme.css +34 -11
  181. package/resources/themes/rhea/theme.css +34 -11
  182. package/resources/themes/saga-blue/theme.css +34 -11
  183. package/resources/themes/saga-green/theme.css +34 -11
  184. package/resources/themes/saga-orange/theme.css +34 -11
  185. package/resources/themes/saga-purple/theme.css +34 -11
  186. package/resources/themes/soho-dark/theme.css +34 -11
  187. package/resources/themes/soho-light/theme.css +34 -11
  188. package/resources/themes/tailwind-light/theme.css +34 -11
  189. package/resources/themes/vela-blue/theme.css +34 -11
  190. package/resources/themes/vela-green/theme.css +34 -11
  191. package/resources/themes/vela-orange/theme.css +34 -11
  192. package/resources/themes/vela-purple/theme.css +34 -11
  193. package/resources/themes/viva-dark/theme.css +34 -11
  194. package/resources/themes/viva-light/theme.css +34 -11
  195. package/ripple/Ripple.d.ts +24 -1
  196. package/row/Row.d.ts +28 -10
  197. package/scrollpanel/ScrollPanel.d.ts +29 -11
  198. package/scrolltop/ScrollTop.d.ts +35 -18
  199. package/selectbutton/SelectButton.d.ts +47 -27
  200. package/sidebar/Sidebar.d.ts +46 -27
  201. package/skeleton/Skeleton.d.ts +36 -22
  202. package/slider/Slider.d.ts +46 -23
  203. package/speeddial/SpeedDial.d.ts +64 -51
  204. package/splitbutton/SplitButton.d.ts +73 -24
  205. package/splitbutton/SplitButton.vue +41 -1
  206. package/splitbutton/splitbutton.cjs.js +43 -3
  207. package/splitbutton/splitbutton.cjs.min.js +1 -1
  208. package/splitbutton/splitbutton.esm.js +43 -3
  209. package/splitbutton/splitbutton.esm.min.js +1 -1
  210. package/splitbutton/splitbutton.js +43 -3
  211. package/splitbutton/splitbutton.min.js +1 -1
  212. package/splitter/Splitter.d.ts +49 -30
  213. package/splitterpanel/SplitterPanel.d.ts +28 -10
  214. package/steps/Steps.d.ts +36 -15
  215. package/styleclass/StyleClass.d.ts +72 -1
  216. package/tabmenu/TabMenu.d.ts +41 -16
  217. package/tabmenu/TabMenu.vue +1 -1
  218. package/tabmenu/tabmenu.cjs.js +1 -0
  219. package/tabmenu/tabmenu.cjs.min.js +1 -1
  220. package/tabmenu/tabmenu.esm.js +1 -0
  221. package/tabmenu/tabmenu.esm.min.js +1 -1
  222. package/tabmenu/tabmenu.js +1 -0
  223. package/tabmenu/tabmenu.min.js +1 -1
  224. package/tabpanel/TabPanel.d.ts +29 -11
  225. package/tabview/TabView.d.ts +47 -19
  226. package/tag/Tag.d.ts +33 -15
  227. package/terminal/Terminal.d.ts +30 -14
  228. package/terminalservice/TerminalService.d.ts +24 -5
  229. package/textarea/Textarea.d.ts +33 -11
  230. package/tieredmenu/TieredMenu.d.ts +45 -31
  231. package/timeline/Timeline.d.ts +41 -32
  232. package/toast/Toast.d.ts +63 -35
  233. package/toast/Toast.vue +4 -2
  234. package/toast/ToastMessage.vue +4 -4
  235. package/toast/toast.cjs.js +8 -6
  236. package/toast/toast.cjs.min.js +1 -1
  237. package/toast/toast.esm.js +8 -6
  238. package/toast/toast.esm.min.js +1 -1
  239. package/toast/toast.js +8 -6
  240. package/toast/toast.min.js +1 -1
  241. package/toastservice/ToastService.d.ts +16 -3
  242. package/togglebutton/ToggleButton.d.ts +42 -22
  243. package/toolbar/Toolbar.d.ts +34 -14
  244. package/tooltip/Tooltip.d.ts +99 -1
  245. package/tree/Tree.d.ts +55 -36
  246. package/treeselect/TreeSelect.d.ts +63 -55
  247. package/treetable/TreeTable.d.ts +121 -107
  248. package/tristatecheckbox/TriStateCheckbox.d.ts +35 -12
  249. package/ts-helpers.d.ts +2 -2
  250. package/utils/utils.cjs.js +18 -15
  251. package/utils/utils.cjs.min.js +1 -1
  252. package/utils/utils.esm.js +18 -15
  253. package/utils/utils.esm.min.js +1 -1
  254. package/utils/utils.js +18 -15
  255. package/utils/utils.min.js +1 -1
  256. package/vetur-attributes.json +62 -2
  257. package/vetur-tags.json +17 -2
  258. package/virtualscroller/VirtualScroller.d.ts +99 -43
  259. package/virtualscroller/VirtualScroller.vue +248 -72
  260. package/virtualscroller/virtualscroller.cjs.js +234 -72
  261. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  262. package/virtualscroller/virtualscroller.esm.js +234 -72
  263. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  264. package/virtualscroller/virtualscroller.js +235 -74
  265. package/virtualscroller/virtualscroller.min.js +1 -1
  266. package/web-types.json +1922 -1744
@@ -1,8 +1,18 @@
1
+ /**
2
+ *
3
+ * ProgressBar is a process status indicator.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/progressbar)
6
+ *
7
+ * @module progressbar
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
- type ProgressBarModeType = 'determinate' | 'indeterminate' | undefined;
5
-
13
+ /**
14
+ * Defines valid properties in ProgressBar component.
15
+ */
6
16
  export interface ProgressBarProps {
7
17
  /**
8
18
  * Current value of the progress.
@@ -10,26 +20,42 @@ export interface ProgressBarProps {
10
20
  value?: number | undefined;
11
21
  /**
12
22
  * Defines the mode of the progress
13
- * @see ProgressBarModeType
14
- * Default value is 'determinate'.
23
+ * @defaultValue determinate
15
24
  */
16
- mode?: ProgressBarModeType;
25
+ mode?: 'determinate' | 'indeterminate' | undefined;
17
26
  /**
18
27
  * Whether to display the progress bar value.
19
- * Default value is true.
28
+ * @defaultValue true
20
29
  */
21
30
  showValue?: boolean | undefined;
22
31
  }
23
32
 
33
+ /**
34
+ * Defines valid slots in ProgressBar component.
35
+ */
24
36
  export interface ProgressBarSlots {
25
37
  /**
26
38
  * Custom content slot.
27
39
  */
28
- default: () => VNode[];
40
+ default(): VNode[];
29
41
  }
30
42
 
31
- export declare type ProgressBarEmits = {};
43
+ /**
44
+ * Defines valid emits in ProgressBar component.
45
+ */
46
+ export interface ProgressBarEmits {}
32
47
 
48
+ /**
49
+ * **PrimeVue - ProgressBar**
50
+ *
51
+ * ProgressBar is a process status indicator._
52
+ *
53
+ * [Live Demo](https://www.primevue.org/progressbar/)
54
+ * --- ---
55
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
56
+ *
57
+ * @group Component
58
+ */
33
59
  declare class ProgressBar extends ClassComponent<ProgressBarProps, ProgressBarSlots, ProgressBarEmits> {}
34
60
 
35
61
  declare module '@vue/runtime-core' {
@@ -38,13 +64,4 @@ declare module '@vue/runtime-core' {
38
64
  }
39
65
  }
40
66
 
41
- /**
42
- *
43
- * ProgressBar is a process status indicator.
44
- *
45
- * Demos:
46
- *
47
- * - [ProgressBar](https://www.primefaces.org/primevue/progressbar)
48
- *
49
- */
50
67
  export default ProgressBar;
@@ -1,10 +1,21 @@
1
- import { VNode } from 'vue';
1
+ /**
2
+ *
3
+ * ProgressSpinner is a process status indicator.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/progressspinner)
6
+ *
7
+ * @module progressspinner
8
+ *
9
+ */
2
10
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
11
 
12
+ /**
13
+ * Defines valid properties in ProgressSpinner component.
14
+ */
4
15
  export interface ProgressSpinnerProps {
5
16
  /**
6
17
  * Width of the circle stroke.
7
- * Default value is 2.
18
+ * @defaultValue 2
8
19
  */
9
20
  strokeWidth?: string | undefined;
10
21
  /**
@@ -13,15 +24,32 @@ export interface ProgressSpinnerProps {
13
24
  fill?: string | undefined;
14
25
  /**
15
26
  * Duration of the rotate animation.
16
- * Default value is 2s.
27
+ * @defaultValue 2s
17
28
  */
18
29
  animationDuration?: string | undefined;
19
30
  }
20
31
 
32
+ /**
33
+ * Defines valid slots in ProgressSpinner component.
34
+ */
21
35
  export interface ProgressSpinnerSlots {}
22
36
 
23
- export declare type ProgressSpinnerEmits = {};
37
+ /**
38
+ * Defines valid emits in ProgressSpinner component.
39
+ */
40
+ export interface ProgressSpinnerEmits {}
24
41
 
42
+ /**
43
+ * **PrimeVue - ProgressSpinner**
44
+ *
45
+ * _ProgressSpinner is a process status indicator._
46
+ *
47
+ * [Live Demo](https://www.primevue.org/progressspinner/)
48
+ * --- ---
49
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
50
+ *
51
+ * @group Component
52
+ */
25
53
  declare class ProgressSpinner extends ClassComponent<ProgressSpinnerProps, ProgressSpinnerSlots, ProgressSpinnerEmits> {}
26
54
 
27
55
  declare module '@vue/runtime-core' {
@@ -30,13 +58,4 @@ declare module '@vue/runtime-core' {
30
58
  }
31
59
  }
32
60
 
33
- /**
34
- *
35
- * ProgressSpinner is a process status indicator.
36
- *
37
- * Demos:
38
- *
39
- * - [ProgressSpinner](https://www.primefaces.org/primevue/progressspinner)
40
- *
41
- */
42
61
  export default ProgressSpinner;
@@ -1,6 +1,18 @@
1
+ /**
2
+ *
3
+ * RadioButton is an extension to standard radio button element with theming.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/radiobutton/)
6
+ *
7
+ * @module radiobutton
8
+ *
9
+ */
1
10
  import { InputHTMLAttributes } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
13
+ /**
14
+ * Defines valid properties in RadioButton component.
15
+ */
4
16
  export interface RadioButtonProps {
5
17
  /**
6
18
  * Value of the checkbox.
@@ -46,24 +58,39 @@ export interface RadioButtonProps {
46
58
 
47
59
  export interface RadioButtonSlots {}
48
60
 
49
- export declare type RadioButtonEmits = {
61
+ /**
62
+ * Defines valid emits in RadioButton component.
63
+ */
64
+ export interface RadioButtonEmits {
50
65
  /**
51
66
  * Emitted when the value changes.
52
67
  * @param {*} value - New value.
53
68
  */
54
- 'update:modelValue': (value: any) => void;
69
+ 'update:modelValue'(value: any): void;
55
70
  /**
56
71
  * Callback to invoke on radio button click.
57
72
  * @param {Event} event - Browser event.
58
73
  */
59
- click: (event: Event) => void;
74
+ click(event: Event): void;
60
75
  /**
61
76
  * Callback to invoke on radio button value change.
62
77
  * @param {Event} event - Browser event.
63
78
  */
64
- change: (event: Event) => void;
65
- };
79
+ change(event: Event): void;
80
+ }
66
81
 
82
+ /**
83
+ * **PrimeVue - RadioButton**
84
+ *
85
+ * _RadioButton is an extension to standard radio button element with theming._
86
+ *
87
+ * [Live Demo](https://www.primevue.org/radiobutton/)
88
+ * --- ---
89
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
90
+ *
91
+ * @group Component
92
+ *
93
+ */
67
94
  declare class RadioButton extends ClassComponent<RadioButtonProps, RadioButtonSlots, RadioButtonEmits> {}
68
95
 
69
96
  declare module '@vue/runtime-core' {
@@ -72,13 +99,4 @@ declare module '@vue/runtime-core' {
72
99
  }
73
100
  }
74
101
 
75
- /**
76
- *
77
- * RadioButton is an extension to standard radio button element with theming.
78
- *
79
- * Demos:
80
- *
81
- * - [RadioButton](https://www.primefaces.org/primevue/radiobutton)
82
- *
83
- */
84
102
  export default RadioButton;
@@ -1,6 +1,19 @@
1
+ /**
2
+ *
3
+ * Rating component is a star based selection input.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/rating/)
6
+ *
7
+ * @module rating
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
13
+ /**
14
+ * Custom change event.
15
+ * @see {@link RatingEmits.change}
16
+ */
4
17
  export interface RatingChangeEvent {
5
18
  /**
6
19
  * Browser event
@@ -12,6 +25,9 @@ export interface RatingChangeEvent {
12
25
  value: number;
13
26
  }
14
27
 
28
+ /**
29
+ * Defines valid properties in Rating component.
30
+ */
15
31
  export interface RatingProps {
16
32
  /**
17
33
  * Value of the rating.
@@ -23,89 +39,108 @@ export interface RatingProps {
23
39
  name?: string | undefined;
24
40
  /**
25
41
  * When present, it specifies that the element should be disabled.
42
+ * @defaultValue false
26
43
  */
27
44
  disabled?: boolean | undefined;
28
45
  /**
29
46
  * When present, it specifies that component is read-only.
47
+ * @defaultValue false
30
48
  */
31
49
  readonly?: boolean | undefined;
32
50
  /**
33
51
  * Number of stars.
34
- * Default value is 5.
52
+ * @defaultValue 5
35
53
  */
36
54
  stars?: number | undefined;
37
55
  /**
38
56
  * When specified a cancel icon is displayed to allow clearing the value.
39
- * Default value is true.
57
+ * @defaultValue true
40
58
  */
41
59
  cancel?: boolean | undefined;
42
60
  /**
43
61
  * Icon for the on state.
44
- * Default value is pi pi-star.
62
+ * @defaultValue pi pi-star
45
63
  */
46
64
  onIcon?: string | undefined;
47
65
  /**
48
66
  * Icon for the off state.
49
- * Default value is pi pi-star-fill.
67
+ * @defaultValue pi pi-star-fill
50
68
  */
51
69
  offIcon?: string | undefined;
52
70
  /**
53
71
  * Icon for the cancelable state.
54
- * Default value is pi pi-ban.
72
+ * @defaultValue pi pi-ban
55
73
  */
56
74
  cancelIcon?: string | undefined;
57
75
  }
58
76
 
77
+ /**
78
+ * Defines valid slots in Rating component.
79
+ */
59
80
  export interface RatingSlots {
60
81
  /**
61
82
  * Custom cancel icon template.
62
83
  */
63
- cancelicon: () => VNode[];
84
+ cancelicon(): VNode[];
64
85
  /**
65
86
  * Custom on icon template.
66
87
  * @param {Object} scope - on icon slot's params.
67
88
  */
68
- onicon: (scope: {
89
+ onicon(scope: {
69
90
  /**
70
91
  * Item value
71
92
  */
72
93
  value: number;
73
- }) => VNode[];
94
+ }): VNode[];
74
95
  /**
75
96
  * Custom off icon template.
76
97
  * @param {Object} scope - off icon slot's params.
77
98
  */
78
- officon: (scope: {
99
+ officon(scope: {
79
100
  /**
80
101
  * Item value
81
102
  */
82
103
  value: number;
83
- }) => VNode[];
104
+ }): VNode[];
84
105
  }
85
106
 
86
- export declare type RatingEmits = {
107
+ /**
108
+ * Defines valid emits in Rating component.
109
+ */
110
+ export interface RatingEmits {
87
111
  /**
88
112
  * Emitted when the value changes.
89
113
  * @param {number} value - New value.
90
114
  */
91
- 'update:modelValue': (value: number) => void;
115
+ 'update:modelValue'(value: number): void;
92
116
  /**
93
117
  * Callback to invoke when a suggestion is selected.
94
118
  * @param {RatingChangeEvent} event - Custom change event.
95
119
  */
96
- change: (event: RatingChangeEvent) => void;
120
+ change(event: RatingChangeEvent): void;
97
121
  /**
98
122
  * Callback to invoke when the component receives focus.
99
123
  * @param {Event} event - Browser event.
100
124
  */
101
- focus: (event: Event) => void;
125
+ focus(event: Event): void;
102
126
  /**
103
127
  * Callback to invoke when the component loses focus.
104
128
  * @param {Event} event - Browser event.
105
129
  */
106
- blur: (event: Event) => void;
107
- };
130
+ blur(event: Event): void;
131
+ }
108
132
 
133
+ /**
134
+ * **PrimeVue - Rating**
135
+ *
136
+ * _Rating component is a star based selection input._
137
+ *
138
+ * [Live Demo](https://www.primevue.org/rating/)
139
+ * --- ---
140
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
141
+ *
142
+ * @group Component
143
+ */
109
144
  declare class Rating extends ClassComponent<RatingProps, RatingSlots, RatingEmits> {}
110
145
 
111
146
  declare module '@vue/runtime-core' {
@@ -114,13 +149,4 @@ declare module '@vue/runtime-core' {
114
149
  }
115
150
  }
116
151
 
117
- /**
118
- *
119
- * Rating component is a star based selection input.
120
- *
121
- * Demos:
122
- *
123
- * - [Rating](https://www.primefaces.org/primevue/rating)
124
- *
125
- */
126
152
  export default Rating;
@@ -42,6 +42,8 @@
42
42
  --surface-hover:rgba(255,255,255,.03);
43
43
  --focus-ring: 0 0 0 1px #93cbf9;
44
44
  --maskbg: rgba(0, 0, 0, 0.4);
45
+ --highlight-bg: rgba(100, 181, 246, 0.16);
46
+ --highlight-text-color: rgba(255, 255, 255, 0.87);
45
47
  color-scheme: dark;
46
48
  }
47
49
 
@@ -1071,7 +1073,7 @@
1071
1073
  .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider {
1072
1074
  background: #43a5f4;
1073
1075
  }
1074
- .p-inputswitch.p-invalid {
1076
+ .p-inputswitch.p-invalid .p-inputswitch-slider {
1075
1077
  border-color: #ef9a9a;
1076
1078
  }
1077
1079
 
@@ -2714,25 +2716,46 @@
2714
2716
  border-width: 0 1px 1px 1px;
2715
2717
  }
2716
2718
  .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {
2717
- border-width: 1px 1px 1px 1px;
2719
+ border-width: 1px 0 1px 1px;
2720
+ }
2721
+ .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th:last-child {
2722
+ border-width: 1px;
2718
2723
  }
2719
2724
  .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {
2725
+ border-width: 1px 0 0 1px;
2726
+ }
2727
+ .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {
2728
+ border-width: 1px 1px 0 1px;
2729
+ }
2730
+ .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td {
2731
+ border-width: 1px 0 1px 1px;
2732
+ }
2733
+ .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td:last-child {
2720
2734
  border-width: 1px;
2721
2735
  }
2722
2736
  .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {
2723
- border-width: 1px;
2737
+ border-width: 1px 0 1px 1px;
2724
2738
  }
2725
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-thead > tr > th + th {
2726
- border-left-width: 0;
2739
+ .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td:last-child {
2740
+ border-width: 1px 1px 1px 1px;
2741
+ }
2742
+ .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td {
2743
+ border-width: 0 0 1px 1px;
2727
2744
  }
2728
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr > td + td {
2729
- border-left-width: 0;
2745
+ .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td:last-child {
2746
+ border-width: 0 1px 1px 1px;
2730
2747
  }
2731
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr + tr > td, .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr:first-child > td {
2732
- border-top-width: 0;
2748
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td {
2749
+ border-width: 0 0 1px 1px;
2733
2750
  }
2734
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tfoot > tr > td + td {
2735
- border-left-width: 0;
2751
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child {
2752
+ border-width: 0 1px 1px 1px;
2753
+ }
2754
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td {
2755
+ border-width: 0 0 0 1px;
2756
+ }
2757
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td:last-child {
2758
+ border-width: 0 1px 0 1px;
2736
2759
  }
2737
2760
  .p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even) {
2738
2761
  background: #242424;
@@ -42,6 +42,8 @@
42
42
  --surface-hover:rgba(255,255,255,.03);
43
43
  --focus-ring: 0 0 0 1px #a7d8a9;
44
44
  --maskbg: rgba(0, 0, 0, 0.4);
45
+ --highlight-bg: rgba(129, 199, 132, 0.16);
46
+ --highlight-text-color: rgba(255, 255, 255, 0.87);
45
47
  color-scheme: dark;
46
48
  }
47
49
 
@@ -1071,7 +1073,7 @@
1071
1073
  .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider {
1072
1074
  background: #6abd6e;
1073
1075
  }
1074
- .p-inputswitch.p-invalid {
1076
+ .p-inputswitch.p-invalid .p-inputswitch-slider {
1075
1077
  border-color: #ef9a9a;
1076
1078
  }
1077
1079
 
@@ -2714,25 +2716,46 @@
2714
2716
  border-width: 0 1px 1px 1px;
2715
2717
  }
2716
2718
  .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {
2717
- border-width: 1px 1px 1px 1px;
2719
+ border-width: 1px 0 1px 1px;
2720
+ }
2721
+ .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th:last-child {
2722
+ border-width: 1px;
2718
2723
  }
2719
2724
  .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {
2725
+ border-width: 1px 0 0 1px;
2726
+ }
2727
+ .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {
2728
+ border-width: 1px 1px 0 1px;
2729
+ }
2730
+ .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td {
2731
+ border-width: 1px 0 1px 1px;
2732
+ }
2733
+ .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td:last-child {
2720
2734
  border-width: 1px;
2721
2735
  }
2722
2736
  .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {
2723
- border-width: 1px;
2737
+ border-width: 1px 0 1px 1px;
2724
2738
  }
2725
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-thead > tr > th + th {
2726
- border-left-width: 0;
2739
+ .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td:last-child {
2740
+ border-width: 1px 1px 1px 1px;
2741
+ }
2742
+ .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td {
2743
+ border-width: 0 0 1px 1px;
2727
2744
  }
2728
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr > td + td {
2729
- border-left-width: 0;
2745
+ .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td:last-child {
2746
+ border-width: 0 1px 1px 1px;
2730
2747
  }
2731
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr + tr > td, .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr:first-child > td {
2732
- border-top-width: 0;
2748
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td {
2749
+ border-width: 0 0 1px 1px;
2733
2750
  }
2734
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tfoot > tr > td + td {
2735
- border-left-width: 0;
2751
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child {
2752
+ border-width: 0 1px 1px 1px;
2753
+ }
2754
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td {
2755
+ border-width: 0 0 0 1px;
2756
+ }
2757
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td:last-child {
2758
+ border-width: 0 1px 0 1px;
2736
2759
  }
2737
2760
  .p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even) {
2738
2761
  background: #242424;
@@ -42,6 +42,8 @@
42
42
  --surface-hover:rgba(255,255,255,.03);
43
43
  --focus-ring: 0 0 0 1px #ffe284;
44
44
  --maskbg: rgba(0, 0, 0, 0.4);
45
+ --highlight-bg: rgba(255, 213, 79, 0.16);
46
+ --highlight-text-color: rgba(255, 255, 255, 0.87);
45
47
  color-scheme: dark;
46
48
  }
47
49
 
@@ -1071,7 +1073,7 @@
1071
1073
  .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider {
1072
1074
  background: #ffcd2e;
1073
1075
  }
1074
- .p-inputswitch.p-invalid {
1076
+ .p-inputswitch.p-invalid .p-inputswitch-slider {
1075
1077
  border-color: #ef9a9a;
1076
1078
  }
1077
1079
 
@@ -2714,25 +2716,46 @@
2714
2716
  border-width: 0 1px 1px 1px;
2715
2717
  }
2716
2718
  .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {
2717
- border-width: 1px 1px 1px 1px;
2719
+ border-width: 1px 0 1px 1px;
2720
+ }
2721
+ .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th:last-child {
2722
+ border-width: 1px;
2718
2723
  }
2719
2724
  .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {
2725
+ border-width: 1px 0 0 1px;
2726
+ }
2727
+ .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {
2728
+ border-width: 1px 1px 0 1px;
2729
+ }
2730
+ .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td {
2731
+ border-width: 1px 0 1px 1px;
2732
+ }
2733
+ .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td:last-child {
2720
2734
  border-width: 1px;
2721
2735
  }
2722
2736
  .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {
2723
- border-width: 1px;
2737
+ border-width: 1px 0 1px 1px;
2724
2738
  }
2725
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-thead > tr > th + th {
2726
- border-left-width: 0;
2739
+ .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td:last-child {
2740
+ border-width: 1px 1px 1px 1px;
2741
+ }
2742
+ .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td {
2743
+ border-width: 0 0 1px 1px;
2727
2744
  }
2728
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr > td + td {
2729
- border-left-width: 0;
2745
+ .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td:last-child {
2746
+ border-width: 0 1px 1px 1px;
2730
2747
  }
2731
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr + tr > td, .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr:first-child > td {
2732
- border-top-width: 0;
2748
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td {
2749
+ border-width: 0 0 1px 1px;
2733
2750
  }
2734
- .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tfoot > tr > td + td {
2735
- border-left-width: 0;
2751
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child {
2752
+ border-width: 0 1px 1px 1px;
2753
+ }
2754
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td {
2755
+ border-width: 0 0 0 1px;
2756
+ }
2757
+ .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td:last-child {
2758
+ border-width: 0 1px 0 1px;
2736
2759
  }
2737
2760
  .p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even) {
2738
2761
  background: #242424;