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,18 +1,18 @@
1
+ /**
2
+ *
3
+ * Calendar also known as DatePicker, is a form component to work with dates.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/calendar/)
6
+ *
7
+ * @module calendar
8
+ *
9
+ */
1
10
  import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
4
- type CalendarValueType = string | Date | string[] | Date[] | undefined;
5
-
6
- type CalendarSlotDateType = { day: number; month: number; year: number; today: boolean; selectable: boolean };
7
-
8
- type CalendarSelectionModeType = 'single' | 'multiple' | 'range' | undefined;
9
-
10
- type CalendarViewType = 'date' | 'month' | 'year' | undefined;
11
-
12
- type CalendarHourFormatType = '12' | '24' | undefined;
13
-
14
- type CalendarAppendToType = 'body' | 'self' | string | undefined | HTMLElement;
15
-
13
+ /**
14
+ * Custom Calendar responsive options metadata.
15
+ */
16
16
  export interface CalendarResponsiveOptions {
17
17
  /**
18
18
  * Breakpoint for responsive mode. Exp; @media screen and (max-width: ${breakpoint}) {...}
@@ -24,6 +24,10 @@ export interface CalendarResponsiveOptions {
24
24
  numMonths: number;
25
25
  }
26
26
 
27
+ /**
28
+ * Custom Calendar month change event.
29
+ * @see {@link CalendarEmits['month-change']]}
30
+ */
27
31
  export interface CalendarMonthChangeEvent {
28
32
  /**
29
33
  * New month.
@@ -35,6 +39,10 @@ export interface CalendarMonthChangeEvent {
35
39
  year: number;
36
40
  }
37
41
 
42
+ /**
43
+ * Custom Calendar year change event.
44
+ * @see {@link CalendarEmits['year-change']]}
45
+ */
38
46
  export interface CalendarYearChangeEvent {
39
47
  /**
40
48
  * New month.
@@ -46,6 +54,10 @@ export interface CalendarYearChangeEvent {
46
54
  year: number;
47
55
  }
48
56
 
57
+ /**
58
+ * Custom Calendar blur event.
59
+ * @see {@link CalendarEmits.blur}
60
+ */
49
61
  export interface CalendarBlurEvent {
50
62
  /**
51
63
  * Browser event
@@ -57,99 +69,107 @@ export interface CalendarBlurEvent {
57
69
  value: string;
58
70
  }
59
71
 
72
+ /**
73
+ * Defines valid properties in Calendar component.
74
+ */
60
75
  export interface CalendarProps {
61
76
  /**
62
77
  * Value of the component.
78
+ * @defaultValue null
63
79
  */
64
- modelValue?: CalendarValueType;
80
+ modelValue?: string | Date | string[] | Date[] | undefined | null;
65
81
  /**
66
- * Defines the quantity of the selection, valid values are 'single', 'multiple' and 'range'.
67
- * @see CalendarSelectionModeType
68
- * Default value is 'single'.
82
+ * Defines the quantity of the selection.
83
+ * @defaultValue single
69
84
  */
70
- selectionMode?: CalendarSelectionModeType;
85
+ selectionMode?: 'single' | 'multiple' | 'range' | undefined;
71
86
  /**
72
87
  * Format of the date. Defaults to PrimeVue Locale configuration.
73
88
  */
74
89
  dateFormat?: string | undefined;
75
90
  /**
76
91
  * When enabled, displays the calendar as inline instead of an overlay.
92
+ * @defaultValue false
77
93
  */
78
94
  inline?: boolean | undefined;
79
95
  /**
80
96
  * Whether to display dates in other months (non-selectable) at the start or end of the current month. To make these days selectable use the selectOtherMonths option.
81
- * Default value is true.
97
+ * @defaultValue true
82
98
  */
83
99
  showOtherMonths?: boolean | undefined;
84
100
  /**
85
101
  * Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.
102
+ * @defaultValue false
86
103
  */
87
104
  selectOtherMonths?: boolean | undefined;
88
105
  /**
89
106
  * When enabled, displays a button with icon next to input.
107
+ * @defaultValue false
90
108
  */
91
109
  showIcon?: boolean | undefined;
92
110
  /**
93
111
  * Icon of the calendar button.
94
- * Default value is 'pi pi-calendar'.
112
+ * @defaultValue pi pi-calendar
95
113
  */
96
114
  icon?: string | undefined;
97
115
  /**
98
116
  * Icon to show in the previous button.
99
- * Default value is 'pi pi-chevron-left'.
117
+ * @defaultValue pi pi-chevron-left
100
118
  */
101
119
  previousIcon?: string | undefined;
102
120
  /**
103
121
  * Icon to show in the next button.
104
- * Default value is 'pi pi-chevron-right'.
122
+ * @defaultValue pi pi-chevron-right
105
123
  */
106
124
  nextIcon?: string | undefined;
107
125
  /**
108
126
  * Icon to show in each of the increment buttons.
109
- * Default value is 'pi pi-chevron-up'.
127
+ * @defaultValue pi pi-chevron-up
110
128
  */
111
129
  incrementIcon?: string | undefined;
112
130
  /**
113
131
  * Icon to show in each of the decrement buttons.
114
- * Default value is 'pi pi-chevron-down'.
132
+ * @defaultValue pi pi-chevron-down
115
133
  */
116
134
  decrementIcon?: string | undefined;
117
135
  /**
118
136
  * Number of months to display.
119
- * Default value is 1.
137
+ * @defaultValue 1
120
138
  */
121
139
  numberOfMonths?: number | undefined;
122
140
  /**
123
141
  * An array of options for responsive design.
124
- * @see CalendarResponsiveOptions
125
142
  */
126
143
  responsiveOptions?: CalendarResponsiveOptions[];
127
144
  /**
128
- * Type of view to display, valid values are 'date', 'month' and 'year'.
129
- * @see CalendarViewType
130
- * Default value is 'date'.
145
+ * Type of view to display.
146
+ * @defaultValue date
131
147
  */
132
- view?: CalendarViewType;
148
+ view?: 'date' | 'month' | 'year' | undefined;
133
149
  /**
134
150
  * When enabled, calendar overlay is displayed as optimized for touch devices.
151
+ * @defaultValue false
135
152
  */
136
153
  touchUI?: boolean | undefined;
137
154
  /**
138
155
  * Whether the month should be rendered as a dropdown instead of text.
139
156
  *
140
157
  * @deprecated since version 3.9.0, Navigator is always on.
158
+ * @defaultValue false
141
159
  */
142
160
  monthNavigator?: boolean | undefined;
143
161
  /**
144
162
  * Whether the year should be rendered as a dropdown instead of text.
145
163
  *
146
164
  * @deprecated since version 3.9.0, Navigator is always on.
165
+ * @defaultValue false
147
166
  */
148
167
  yearNavigator?: boolean | undefined;
149
168
  /**
150
169
  * The range of years displayed in the year drop-down in (nnnn:nnnn) format such as (2000:2020).
151
170
  *
152
171
  * @deprecated since version 3.9.0, Years are based on decades by default.
172
+ * @defaultValue false
153
173
  */
154
174
  yearRange?: string | undefined;
155
175
  /**
@@ -174,87 +194,97 @@ export interface CalendarProps {
174
194
  maxDateCount?: number | undefined;
175
195
  /**
176
196
  * When disabled, datepicker will not be visible with input focus.
177
- * Default value is true.
197
+ * @defaultValue true
178
198
  */
179
199
  showOnFocus?: boolean | undefined;
180
200
  /**
181
201
  * Whether to automatically manage layering.
182
- * Default value is true.
202
+ * @defaultValue true
183
203
  */
184
204
  autoZIndex?: boolean | undefined;
185
205
  /**
186
206
  * Base zIndex value to use in layering.
187
- * Default value is 0.
207
+ * @defaultValue 0
188
208
  */
189
209
  baseZIndex?: number | undefined;
190
210
  /**
191
211
  * Whether to display today and clear buttons at the footer.
212
+ * @defaultValue false
192
213
  */
193
214
  showButtonBar?: boolean | undefined;
194
215
  /**
195
216
  * The cutoff year for determining the century for a date.
196
- * Default value is +10.
217
+ * @defaultValue +10
197
218
  */
198
219
  shortYearCutoff?: string | undefined;
199
220
  /**
200
221
  * Whether to display timepicker.
222
+ * @defaultValue false
201
223
  */
202
224
  showTime?: boolean | undefined;
203
225
  /**
204
226
  * Whether to display timepicker only.
227
+ * @defaultValue false
205
228
  */
206
229
  timeOnly?: boolean | undefined;
207
230
  /**
208
- * Specifies 12 or 24 hour format.
231
+ * Specifies hour format.
232
+ * @defaultValue 24
209
233
  */
210
- hourFormat?: CalendarHourFormatType;
234
+ hourFormat?: '12' | '24' | undefined;
211
235
  /**
212
236
  * Hours to change per step.
213
- * Default value is 1.
237
+ * @defaultValue 1
214
238
  */
215
239
  stepHour?: number | undefined;
216
240
  /**
217
241
  * Minutes to change per step.
218
- * Default value is 1.
242
+ * @defaultValue 1
219
243
  */
220
244
  stepMinute?: number | undefined;
221
245
  /**
222
246
  * Seconds to change per step.
223
- * Default value is 1.
247
+ * @defaultValue 1
224
248
  */
225
249
  stepSecond?: number | undefined;
226
250
  /**
227
251
  * Whether to show the seconds in time picker.
252
+ * @defaultValue false
228
253
  */
229
254
  showSeconds?: boolean | undefined;
230
255
  /**
231
256
  * Whether to hide the overlay on date selection when showTime is enabled.
257
+ * @defaultValue false
232
258
  */
233
259
  hideOnDateTimeSelect?: boolean | undefined;
234
260
  /**
235
261
  * Whether to hide the overlay on date selection is completed when selectionMode is range.
262
+ * @defaultValue false
236
263
  */
237
264
  hideOnRangeSelection?: boolean | undefined;
238
265
  /**
239
266
  * Separator of time selector.
240
- * Default value is ':'.
267
+ * @defaultValue :
241
268
  */
242
269
  timeSeparator?: string | undefined;
243
270
  /**
244
271
  * When enabled, calendar will show week numbers.
272
+ * @defaultValue false
245
273
  */
246
274
  showWeek?: boolean | undefined;
247
275
  /**
248
276
  * Wheter to allow prevents entering the date manually via typing.
249
- * Default value is true.
277
+ * @defaultValue true
250
278
  */
251
279
  manualInput?: boolean | undefined;
252
280
  /**
253
281
  * When present, it specifies that the component should be disabled.
282
+ * @defaultValue false
254
283
  */
255
284
  disabled?: boolean | undefined;
256
285
  /**
257
286
  * When present, it specifies that an input field is read-only.
287
+ * @defaultValue false
258
288
  */
259
289
  readonly?: boolean | undefined;
260
290
  /**
@@ -262,11 +292,10 @@ export interface CalendarProps {
262
292
  */
263
293
  placeholder?: string | undefined;
264
294
  /**
265
- * A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself.
266
- * @see CalendarAppendToType
267
- * Default value is 'body'.
295
+ * A valid query selector or an HTMLElement to specify where the overlay gets attached.
296
+ * @defaultValue body
268
297
  */
269
- appendTo?: CalendarAppendToType;
298
+ appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
270
299
  /**
271
300
  * Identifier of the element.
272
301
  */
@@ -309,97 +338,112 @@ export interface CalendarProps {
309
338
  'aria-label'?: string | undefined;
310
339
  }
311
340
 
341
+ /**
342
+ * Defines valid slots in Calendar component.
343
+ */
312
344
  export interface CalendarSlots {
313
345
  /**
314
346
  * Custom header template of panel.
315
347
  */
316
- header: () => VNode[];
348
+ header(): VNode[];
317
349
  /**
318
350
  * Custom footer template of panel.
319
351
  */
320
- footer: () => VNode[];
352
+ footer(): VNode[];
321
353
  /**
322
354
  * Custom date template.
323
- * @param {Object} scope - date slot's params.
324
355
  */
325
- date: (scope: {
356
+ date(scope: {
326
357
  /**
327
358
  * Value of the component.
328
359
  */
329
- date: CalendarSlotDateType;
330
- }) => VNode[];
360
+ date: { day: number; month: number; year: number; today: boolean; selectable: boolean };
361
+ }): VNode[];
331
362
  /**
332
363
  * Custom decade template.
333
- * @param {CalendarDecadeSlot} scope - decade slot's params.
334
364
  */
335
- decade: (scope: {
365
+ decade(scope: {
336
366
  /**
337
367
  * An array containing the start and and year of a decade to display at header of the year picker.
338
368
  */
339
369
  years: string[] | undefined;
340
- }) => VNode[];
370
+ }): VNode[];
341
371
  }
342
372
 
343
- export declare type CalendarEmits = {
373
+ /**
374
+ * Defines valid emits in Calendar component.
375
+ */
376
+ export interface CalendarEmits {
344
377
  /**
345
378
  * Emitted when the value changes.
346
- * @param {CalendarValueType} value - New value.
379
+ * @param {string | Date | string[] | Date[] | undefined} value - New value.
347
380
  */
348
- 'update:modelValue': (value: CalendarValueType) => void;
381
+ 'update:modelValue'(value: string | Date | string[] | Date[] | undefined): void;
349
382
  /**
350
383
  * Callback to invoke when input field is being typed.
351
384
  * @param {Event} event - Browser event
352
385
  */
353
- input: (event: Event) => void;
386
+ input(event: Event): void;
354
387
  /**
355
388
  * Callback to invoke when a date is selected.
356
389
  * @param {Date} value - Selected value.
357
390
  */
358
- 'date-select': (value: Date) => void;
391
+ 'date-select'(value: Date): void;
359
392
  /**
360
393
  * Callback to invoke when datepicker panel is shown.
361
394
  */
362
- show: () => void;
395
+ show(): void;
363
396
  /**
364
397
  * Callback to invoke when datepicker panel is hidden.
365
398
  */
366
- hide: () => void;
399
+ hide(): void;
367
400
  /**
368
401
  * Callback to invoke when today button is clicked.
369
402
  * @param {Date} date - Today as a date instance.
370
403
  */
371
- 'today-click': (date: Date) => void;
404
+ 'today-click'(date: Date): void;
372
405
  /**
373
406
  * Callback to invoke when clear button is clicked.
374
407
  * @param {Event} event - Browser event.
375
408
  */
376
- 'clear-click': (event: Event) => void;
409
+ 'clear-click'(event: Event): void;
377
410
  /**
378
411
  * Callback to invoke when a month is changed using the navigators.
379
412
  * @param {CalendarMonthChangeEvent} event - Custom month change event.
380
413
  */
381
- 'month-change': (event: CalendarMonthChangeEvent) => void;
414
+ 'month-change'(event: CalendarMonthChangeEvent): void;
382
415
  /**
383
416
  * Callback to invoke when a year is changed using the navigators.
384
417
  * @param {CalendarYearChangeEvent} event - Custom year change event.
385
418
  */
386
- 'year-change': (event: CalendarYearChangeEvent) => void;
419
+ 'year-change'(event: CalendarYearChangeEvent): void;
387
420
  /**
388
421
  * Callback to invoke on focus of input field.
389
422
  * @param {Event} event - Focus event
390
423
  */
391
- focus: (event: Event) => void;
424
+ focus(event: Event): void;
392
425
  /**
393
426
  * Callback to invoke on blur of input field.
394
427
  * @param {CalendarBlurEvent} event - Blur event
395
428
  */
396
- blur: (event: CalendarBlurEvent) => void;
429
+ blur(event: CalendarBlurEvent): void;
397
430
  /**
398
431
  * Callback to invoke when a key is pressed.
399
432
  */
400
- keydown: (event: Event) => void;
401
- };
433
+ keydown(event: Event): void;
434
+ }
402
435
 
436
+ /**
437
+ * **PrimeVue - Calendar**
438
+ *
439
+ * _Calendar also known as DatePicker, is a form component to work with dates._
440
+ *
441
+ * [Live Demo](https://www.primevue.org/calendar/)
442
+ * --- ---
443
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
444
+ *
445
+ * @group Component
446
+ */
403
447
  declare class Calendar extends ClassComponent<CalendarProps, CalendarSlots, CalendarEmits> {}
404
448
 
405
449
  declare module '@vue/runtime-core' {
@@ -408,13 +452,4 @@ declare module '@vue/runtime-core' {
408
452
  }
409
453
  }
410
454
 
411
- /**
412
- *
413
- * Calendar is an input component to select a date.
414
- *
415
- * Demos:
416
- *
417
- * - [Calendar](https://www.primefaces.org/primevue/calendar)
418
- *
419
- */
420
455
  export default Calendar;
package/card/Card.d.ts CHANGED
@@ -1,33 +1,62 @@
1
+ /**
2
+ *
3
+ * Card is a flexible container component.
4
+ *
5
+ * [Live Demo](https://www.primevue.org/card/)
6
+ *
7
+ * @module card
8
+ *
9
+ */
1
10
  import { VNode } from 'vue';
2
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
12
 
13
+ /**
14
+ * Defines valid properties in Card component.
15
+ */
4
16
  export interface CardProps {}
5
17
 
18
+ /**
19
+ * Defines valid slots in Card component.
20
+ */
6
21
  export interface CardSlots {
7
22
  /**
8
23
  * Custom header template.
9
24
  */
10
- header: () => VNode[];
25
+ header(): VNode[];
11
26
  /**
12
27
  * Custom title template.
13
28
  */
14
- title: () => VNode[];
29
+ title(): VNode[];
15
30
  /**
16
31
  * Custom subtitle template.
17
32
  */
18
- subtitle: () => VNode[];
33
+ subtitle(): VNode[];
19
34
  /**
20
35
  * Custom content template.
21
36
  */
22
- content: () => VNode[];
37
+ content(): VNode[];
23
38
  /**
24
39
  * Custom footer template.
25
40
  */
26
- footer: () => VNode[];
41
+ footer(): VNode[];
27
42
  }
28
43
 
29
- export declare type CardEmits = {};
44
+ /**
45
+ * Defines valid emits in Card component.
46
+ */
47
+ export interface CardEmits {}
30
48
 
49
+ /**
50
+ * **PrimeVue - Card**
51
+ *
52
+ * _Card is a flexible container component._
53
+ *
54
+ * [Live Demo](https://www.primevue.org/card/)
55
+ * --- ---
56
+ * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
57
+ *
58
+ * @group Component
59
+ */
31
60
  declare class Card extends ClassComponent<CardProps, CardSlots, CardEmits> {}
32
61
 
33
62
  declare module '@vue/runtime-core' {
@@ -36,13 +65,4 @@ declare module '@vue/runtime-core' {
36
65
  }
37
66
  }
38
67
 
39
- /**
40
- *
41
- * Card is a flexible container component.
42
- *
43
- * Demos:
44
- *
45
- * - [Card](https://www.primefaces.org/primevue/card)
46
- *
47
- */
48
68
  export default Card;