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.
- package/LICENSE.md +1 -1
- package/README.md +12 -12
- package/accordion/Accordion.d.ts +53 -21
- package/accordiontab/AccordionTab.d.ts +33 -12
- package/autocomplete/AutoComplete.d.ts +111 -84
- package/avatar/Avatar.d.ts +38 -25
- package/avatar/Avatar.vue +1 -1
- package/avatar/avatar.cjs.js +2 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +2 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +2 -1
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +30 -14
- package/badge/Badge.d.ts +34 -20
- package/badge/Badge.vue +16 -5
- package/badge/badge.cjs.js +15 -5
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +15 -5
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +16 -7
- package/badge/badge.min.js +1 -1
- package/badgedirective/BadgeDirective.d.ts +60 -1
- package/blockui/BlockUI.d.ts +36 -16
- package/breadcrumb/Breadcrumb.d.ts +37 -20
- package/button/Button.d.ts +74 -17
- package/button/Button.vue +51 -8
- package/button/button.cjs.js +51 -8
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +51 -8
- package/button/button.esm.min.js +1 -1
- package/button/button.js +51 -8
- package/button/button.min.js +1 -1
- package/calendar/Calendar.d.ts +112 -77
- package/card/Card.d.ts +35 -15
- package/carousel/Carousel.d.ts +47 -29
- package/cascadeselect/CascadeSelect.d.ts +70 -59
- package/chart/Chart.d.ts +41 -23
- package/checkbox/Checkbox.d.ts +39 -15
- package/checkbox/Checkbox.vue +1 -1
- package/checkbox/checkbox.cjs.js +1 -1
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +1 -1
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +1 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chip/Chip.d.ts +35 -14
- package/chips/Chips.d.ts +45 -20
- package/colorpicker/ColorPicker.d.ts +46 -28
- package/column/Column.d.ts +81 -65
- package/columngroup/ColumnGroup.d.ts +29 -13
- package/config/config.cjs.js +20 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +20 -1
- package/config/config.esm.min.js +1 -1
- package/config/config.js +20 -1
- package/config/config.min.js +1 -1
- package/confirmationoptions/ConfirmationOptions.d.ts +15 -6
- package/confirmationservice/ConfirmationService.d.ts +11 -0
- package/confirmdialog/ConfirmDialog.d.ts +35 -17
- package/confirmpopup/ConfirmPopup.d.ts +32 -17
- package/contextmenu/ContextMenu.d.ts +51 -35
- package/core/core.js +339 -104
- package/core/core.min.js +6 -6
- package/datatable/DataTable.d.ts +248 -205
- package/datatable/DataTable.vue +72 -111
- package/datatable/TableBody.vue +3 -17
- package/datatable/datatable.cjs.js +63 -57
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +63 -57
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +63 -57
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +65 -47
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +33 -13
- package/deferredcontent/DeferredContent.d.ts +30 -13
- package/dialog/Dialog.d.ts +67 -46
- package/dialogservice/DialogService.d.ts +13 -2
- package/divider/Divider.d.ts +35 -30
- package/dock/Dock.d.ts +49 -36
- package/dropdown/Dropdown.d.ts +90 -82
- package/dropdown/Dropdown.vue +1 -1
- package/dropdown/dropdown.cjs.js +1 -1
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1 -1
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1 -1
- package/dropdown/dropdown.min.js +1 -1
- package/dynamicdialog/DynamicDialog.d.ts +30 -10
- package/dynamicdialog/DynamicDialog.vue +2 -2
- package/dynamicdialog/dynamicdialog.cjs.js +3 -3
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +2 -2
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +3 -3
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/dynamicdialogoptions/DynamicDialogOptions.d.ts +28 -8
- package/editor/Editor.d.ts +48 -17
- package/fieldset/Fieldset.d.ts +43 -16
- package/fileupload/FileUpload.d.ts +101 -47
- package/focustrap/FocusTrap.d.ts +42 -3
- package/fullcalendar/FullCalendar.d.ts +1 -1
- package/galleria/Galleria.d.ts +64 -40
- package/image/Image.d.ts +33 -14
- package/inlinemessage/InlineMessage.d.ts +31 -17
- package/inplace/Inplace.d.ts +41 -18
- package/inputmask/InputMask.d.ts +41 -17
- package/inputnumber/InputNumber.d.ts +60 -41
- package/inputswitch/InputSwitch.d.ts +35 -15
- package/inputswitch/InputSwitch.vue +1 -0
- package/inputswitch/inputswitch.cjs.js +1 -1
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +1 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +1 -1
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/InputText.d.ts +32 -12
- package/knob/Knob.d.ts +47 -21
- package/listbox/Listbox.d.ts +81 -60
- package/megamenu/MegaMenu.d.ts +42 -27
- package/megamenu/MegaMenu.vue +17 -0
- package/megamenu/megamenu.cjs.js +1 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +1 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +1 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +51 -30
- package/menubar/Menubar.d.ts +36 -19
- package/menuitem/MenuItem.d.ts +22 -10
- package/message/Message.d.ts +40 -21
- package/multiselect/MultiSelect.d.ts +111 -90
- package/orderlist/OrderList.d.ts +51 -23
- package/organizationchart/OrganizationChart.d.ts +43 -26
- package/overlaypanel/OverlayPanel.d.ts +46 -26
- package/package.json +2 -2
- package/paginator/Paginator.d.ts +49 -24
- package/panel/Panel.d.ts +39 -14
- package/panelmenu/PanelMenu.d.ts +49 -21
- package/password/Password.d.ts +47 -28
- package/picklist/PickList.d.ts +74 -33
- package/progressbar/ProgressBar.d.ts +34 -17
- package/progressspinner/ProgressSpinner.d.ts +32 -13
- package/radiobutton/RadioButton.d.ts +32 -14
- package/rating/Rating.d.ts +51 -25
- package/resources/themes/arya-blue/theme.css +34 -11
- package/resources/themes/arya-green/theme.css +34 -11
- package/resources/themes/arya-orange/theme.css +34 -11
- package/resources/themes/arya-purple/theme.css +34 -11
- package/resources/themes/bootstrap4-dark-blue/theme.css +34 -11
- package/resources/themes/bootstrap4-dark-purple/theme.css +34 -11
- package/resources/themes/bootstrap4-light-blue/theme.css +34 -11
- package/resources/themes/bootstrap4-light-purple/theme.css +34 -11
- package/resources/themes/fluent-light/theme.css +34 -11
- package/resources/themes/lara-dark-blue/theme.css +34 -11
- package/resources/themes/lara-dark-indigo/theme.css +34 -11
- package/resources/themes/lara-dark-purple/theme.css +34 -11
- package/resources/themes/lara-dark-teal/theme.css +34 -11
- package/resources/themes/lara-light-blue/theme.css +34 -11
- package/resources/themes/lara-light-indigo/theme.css +34 -11
- package/resources/themes/lara-light-purple/theme.css +34 -11
- package/resources/themes/lara-light-teal/theme.css +34 -11
- package/resources/themes/luna-amber/theme.css +34 -11
- package/resources/themes/luna-blue/theme.css +34 -11
- package/resources/themes/luna-green/theme.css +34 -11
- package/resources/themes/luna-pink/theme.css +34 -11
- package/resources/themes/md-dark-deeppurple/theme.css +34 -11
- package/resources/themes/md-dark-indigo/theme.css +34 -11
- package/resources/themes/md-light-deeppurple/theme.css +34 -11
- package/resources/themes/md-light-indigo/theme.css +34 -11
- package/resources/themes/mdc-dark-deeppurple/theme.css +34 -11
- package/resources/themes/mdc-dark-indigo/theme.css +34 -11
- package/resources/themes/mdc-light-deeppurple/theme.css +34 -11
- package/resources/themes/mdc-light-indigo/theme.css +34 -11
- package/resources/themes/mira/theme.css +34 -11
- package/resources/themes/nano/theme.css +34 -11
- package/resources/themes/nova/theme.css +34 -11
- package/resources/themes/nova-accent/theme.css +34 -11
- package/resources/themes/nova-alt/theme.css +34 -11
- package/resources/themes/nova-vue/theme.css +34 -11
- package/resources/themes/rhea/theme.css +34 -11
- package/resources/themes/saga-blue/theme.css +34 -11
- package/resources/themes/saga-green/theme.css +34 -11
- package/resources/themes/saga-orange/theme.css +34 -11
- package/resources/themes/saga-purple/theme.css +34 -11
- package/resources/themes/soho-dark/theme.css +34 -11
- package/resources/themes/soho-light/theme.css +34 -11
- package/resources/themes/tailwind-light/theme.css +34 -11
- package/resources/themes/vela-blue/theme.css +34 -11
- package/resources/themes/vela-green/theme.css +34 -11
- package/resources/themes/vela-orange/theme.css +34 -11
- package/resources/themes/vela-purple/theme.css +34 -11
- package/resources/themes/viva-dark/theme.css +34 -11
- package/resources/themes/viva-light/theme.css +34 -11
- package/ripple/Ripple.d.ts +24 -1
- package/row/Row.d.ts +28 -10
- package/scrollpanel/ScrollPanel.d.ts +29 -11
- package/scrolltop/ScrollTop.d.ts +35 -18
- package/selectbutton/SelectButton.d.ts +47 -27
- package/sidebar/Sidebar.d.ts +46 -27
- package/skeleton/Skeleton.d.ts +36 -22
- package/slider/Slider.d.ts +46 -23
- package/speeddial/SpeedDial.d.ts +64 -51
- package/splitbutton/SplitButton.d.ts +73 -24
- package/splitbutton/SplitButton.vue +41 -1
- package/splitbutton/splitbutton.cjs.js +43 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +43 -3
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +43 -3
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +49 -30
- package/splitterpanel/SplitterPanel.d.ts +28 -10
- package/steps/Steps.d.ts +36 -15
- package/styleclass/StyleClass.d.ts +72 -1
- package/tabmenu/TabMenu.d.ts +41 -16
- package/tabmenu/TabMenu.vue +1 -1
- package/tabmenu/tabmenu.cjs.js +1 -0
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +1 -0
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +1 -0
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +29 -11
- package/tabview/TabView.d.ts +47 -19
- package/tag/Tag.d.ts +33 -15
- package/terminal/Terminal.d.ts +30 -14
- package/terminalservice/TerminalService.d.ts +24 -5
- package/textarea/Textarea.d.ts +33 -11
- package/tieredmenu/TieredMenu.d.ts +45 -31
- package/timeline/Timeline.d.ts +41 -32
- package/toast/Toast.d.ts +63 -35
- package/toast/Toast.vue +4 -2
- package/toast/ToastMessage.vue +4 -4
- package/toast/toast.cjs.js +8 -6
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +8 -6
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +8 -6
- package/toast/toast.min.js +1 -1
- package/toastservice/ToastService.d.ts +16 -3
- package/togglebutton/ToggleButton.d.ts +42 -22
- package/toolbar/Toolbar.d.ts +34 -14
- package/tooltip/Tooltip.d.ts +99 -1
- package/tree/Tree.d.ts +55 -36
- package/treeselect/TreeSelect.d.ts +63 -55
- package/treetable/TreeTable.d.ts +121 -107
- package/tristatecheckbox/TriStateCheckbox.d.ts +35 -12
- package/ts-helpers.d.ts +2 -2
- package/utils/utils.cjs.js +18 -15
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +18 -15
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +18 -15
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +62 -2
- package/vetur-tags.json +17 -2
- package/virtualscroller/VirtualScroller.d.ts +99 -43
- package/virtualscroller/VirtualScroller.vue +248 -72
- package/virtualscroller/virtualscroller.cjs.js +234 -72
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +234 -72
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +235 -74
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1922 -1744
package/calendar/Calendar.d.ts
CHANGED
|
@@ -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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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?:
|
|
80
|
+
modelValue?: string | Date | string[] | Date[] | undefined | null;
|
|
65
81
|
/**
|
|
66
|
-
* Defines the quantity of the selection
|
|
67
|
-
* @
|
|
68
|
-
* Default value is 'single'.
|
|
82
|
+
* Defines the quantity of the selection.
|
|
83
|
+
* @defaultValue single
|
|
69
84
|
*/
|
|
70
|
-
selectionMode?:
|
|
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
|
-
*
|
|
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
|
-
*
|
|
112
|
+
* @defaultValue pi pi-calendar
|
|
95
113
|
*/
|
|
96
114
|
icon?: string | undefined;
|
|
97
115
|
/**
|
|
98
116
|
* Icon to show in the previous button.
|
|
99
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
132
|
+
* @defaultValue pi pi-chevron-down
|
|
115
133
|
*/
|
|
116
134
|
decrementIcon?: string | undefined;
|
|
117
135
|
/**
|
|
118
136
|
* Number of months to display.
|
|
119
|
-
*
|
|
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
|
|
129
|
-
* @
|
|
130
|
-
* Default value is 'date'.
|
|
145
|
+
* Type of view to display.
|
|
146
|
+
* @defaultValue date
|
|
131
147
|
*/
|
|
132
|
-
view?:
|
|
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
|
-
*
|
|
197
|
+
* @defaultValue true
|
|
178
198
|
*/
|
|
179
199
|
showOnFocus?: boolean | undefined;
|
|
180
200
|
/**
|
|
181
201
|
* Whether to automatically manage layering.
|
|
182
|
-
*
|
|
202
|
+
* @defaultValue true
|
|
183
203
|
*/
|
|
184
204
|
autoZIndex?: boolean | undefined;
|
|
185
205
|
/**
|
|
186
206
|
* Base zIndex value to use in layering.
|
|
187
|
-
*
|
|
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
|
-
*
|
|
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
|
|
231
|
+
* Specifies hour format.
|
|
232
|
+
* @defaultValue 24
|
|
209
233
|
*/
|
|
210
|
-
hourFormat?:
|
|
234
|
+
hourFormat?: '12' | '24' | undefined;
|
|
211
235
|
/**
|
|
212
236
|
* Hours to change per step.
|
|
213
|
-
*
|
|
237
|
+
* @defaultValue 1
|
|
214
238
|
*/
|
|
215
239
|
stepHour?: number | undefined;
|
|
216
240
|
/**
|
|
217
241
|
* Minutes to change per step.
|
|
218
|
-
*
|
|
242
|
+
* @defaultValue 1
|
|
219
243
|
*/
|
|
220
244
|
stepMinute?: number | undefined;
|
|
221
245
|
/**
|
|
222
246
|
* Seconds to change per step.
|
|
223
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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.
|
|
266
|
-
* @
|
|
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?:
|
|
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
|
|
348
|
+
header(): VNode[];
|
|
317
349
|
/**
|
|
318
350
|
* Custom footer template of panel.
|
|
319
351
|
*/
|
|
320
|
-
footer
|
|
352
|
+
footer(): VNode[];
|
|
321
353
|
/**
|
|
322
354
|
* Custom date template.
|
|
323
|
-
* @param {Object} scope - date slot's params.
|
|
324
355
|
*/
|
|
325
|
-
date
|
|
356
|
+
date(scope: {
|
|
326
357
|
/**
|
|
327
358
|
* Value of the component.
|
|
328
359
|
*/
|
|
329
|
-
date:
|
|
330
|
-
})
|
|
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
|
|
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
|
-
})
|
|
370
|
+
}): VNode[];
|
|
341
371
|
}
|
|
342
372
|
|
|
343
|
-
|
|
373
|
+
/**
|
|
374
|
+
* Defines valid emits in Calendar component.
|
|
375
|
+
*/
|
|
376
|
+
export interface CalendarEmits {
|
|
344
377
|
/**
|
|
345
378
|
* Emitted when the value changes.
|
|
346
|
-
* @param {
|
|
379
|
+
* @param {string | Date | string[] | Date[] | undefined} value - New value.
|
|
347
380
|
*/
|
|
348
|
-
'update:modelValue'
|
|
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
|
|
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'
|
|
391
|
+
'date-select'(value: Date): void;
|
|
359
392
|
/**
|
|
360
393
|
* Callback to invoke when datepicker panel is shown.
|
|
361
394
|
*/
|
|
362
|
-
show
|
|
395
|
+
show(): void;
|
|
363
396
|
/**
|
|
364
397
|
* Callback to invoke when datepicker panel is hidden.
|
|
365
398
|
*/
|
|
366
|
-
hide
|
|
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'
|
|
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'
|
|
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'
|
|
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'
|
|
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
|
|
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
|
|
429
|
+
blur(event: CalendarBlurEvent): void;
|
|
397
430
|
/**
|
|
398
431
|
* Callback to invoke when a key is pressed.
|
|
399
432
|
*/
|
|
400
|
-
keydown
|
|
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
|
+
* 
|
|
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
|
|
25
|
+
header(): VNode[];
|
|
11
26
|
/**
|
|
12
27
|
* Custom title template.
|
|
13
28
|
*/
|
|
14
|
-
title
|
|
29
|
+
title(): VNode[];
|
|
15
30
|
/**
|
|
16
31
|
* Custom subtitle template.
|
|
17
32
|
*/
|
|
18
|
-
subtitle
|
|
33
|
+
subtitle(): VNode[];
|
|
19
34
|
/**
|
|
20
35
|
* Custom content template.
|
|
21
36
|
*/
|
|
22
|
-
content
|
|
37
|
+
content(): VNode[];
|
|
23
38
|
/**
|
|
24
39
|
* Custom footer template.
|
|
25
40
|
*/
|
|
26
|
-
footer
|
|
41
|
+
footer(): VNode[];
|
|
27
42
|
}
|
|
28
43
|
|
|
29
|
-
|
|
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
|
+
* 
|
|
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;
|