primevue 3.22.4 → 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 +13 -13
- 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/breadcrumb/Breadcrumb.vue +1 -1
- package/breadcrumb/breadcrumb.cjs.js +2 -1
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +2 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +2 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- 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/calendar/Calendar.vue +4 -4
- package/calendar/calendar.cjs.js +4 -4
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +4 -4
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +4 -4
- package/calendar/calendar.min.js +1 -1
- 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/PrimeVue.d.ts +1 -2
- package/config/config.cjs.js +20 -2
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +20 -2
- package/config/config.esm.min.js +1 -1
- package/config/config.js +20 -2
- 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 +368 -121
- package/core/core.min.js +8 -8
- package/datatable/DataTable.d.ts +248 -205
- package/datatable/DataTable.vue +78 -117
- package/datatable/TableBody.vue +3 -17
- package/datatable/datatable.cjs.js +73 -67
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +73 -67
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +73 -67
- 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/dialog/Dialog.vue +1 -1
- package/dialog/dialog.cjs.js +1 -1
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +1 -1
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +1 -1
- package/dialog/dialog.min.js +1 -1
- 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 +57 -28
- package/menu/Menu.vue +6 -0
- package/menu/menu.cjs.js +26 -8
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +27 -9
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +26 -8
- package/menu/menu.min.js +1 -1
- 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/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/mira/theme.css +6089 -0
- package/resources/themes/nano/theme.css +5861 -0
- 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/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-dark/theme.css +5854 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-light/theme.css +5908 -0
- 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/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-dark/theme.css +6016 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-light/theme.css +6016 -0
- 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/tag/Tag.vue +1 -1
- package/tag/tag.cjs.js +4 -2
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +5 -3
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +4 -2
- package/tag/tag.min.js +1 -1
- 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 +20 -22
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +20 -22
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +20 -22
- 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 +1930 -1742
package/dataview/DataView.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* DataView displays data in grid or list layout with pagination and sorting features.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/dataview/)
|
|
6
|
+
*
|
|
7
|
+
* @module dataview
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { VNode } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type DataViewSortFieldType = string | ((item: any) => string) | undefined;
|
|
9
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Custom page event.
|
|
15
|
+
* @see {@link DataViewEmits.page}
|
|
16
|
+
*/
|
|
10
17
|
export interface DataViewPageEvent {
|
|
11
18
|
/**
|
|
12
19
|
* New page number
|
|
@@ -26,6 +33,9 @@ export interface DataViewPageEvent {
|
|
|
26
33
|
pageCount: number;
|
|
27
34
|
}
|
|
28
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Defines valid properties in DataView component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
38
|
+
*/
|
|
29
39
|
export interface DataViewProps {
|
|
30
40
|
/**
|
|
31
41
|
* An array of objects to display.
|
|
@@ -33,18 +43,17 @@ export interface DataViewProps {
|
|
|
33
43
|
value?: any[] | undefined;
|
|
34
44
|
/**
|
|
35
45
|
* Layout of the items, valid values are 'list' and 'grid'.
|
|
36
|
-
* @
|
|
37
|
-
* Default value is 'list'.
|
|
46
|
+
* @defaultValue list
|
|
38
47
|
*/
|
|
39
|
-
layout?:
|
|
48
|
+
layout?: 'list' | 'grid' | undefined;
|
|
40
49
|
/**
|
|
41
50
|
* Number of rows to display per page.
|
|
42
|
-
*
|
|
51
|
+
* @defaultValue 0
|
|
43
52
|
*/
|
|
44
53
|
rows?: number | undefined;
|
|
45
54
|
/**
|
|
46
55
|
* Index of the first record to render.
|
|
47
|
-
*
|
|
56
|
+
* @defaultValue 0
|
|
48
57
|
*/
|
|
49
58
|
first?: number | undefined;
|
|
50
59
|
/**
|
|
@@ -53,21 +62,21 @@ export interface DataViewProps {
|
|
|
53
62
|
totalRecords?: number | undefined;
|
|
54
63
|
/**
|
|
55
64
|
* When specified as true, enables the pagination.
|
|
65
|
+
* @defaultValue false
|
|
56
66
|
*/
|
|
57
67
|
paginator?: boolean | undefined;
|
|
58
68
|
/**
|
|
59
69
|
* Position of the paginator, options are 'top','bottom' or 'both'.
|
|
60
|
-
* @
|
|
61
|
-
* Default value is 'bottom'.
|
|
70
|
+
* @defaultValue bottom
|
|
62
71
|
*/
|
|
63
|
-
paginatorPosition?:
|
|
72
|
+
paginatorPosition?: 'top' | 'bottom' | 'both' | undefined;
|
|
64
73
|
/**
|
|
65
74
|
* Whether to show it even there is only one page.
|
|
66
|
-
*
|
|
75
|
+
* @defaultValue true
|
|
67
76
|
*/
|
|
68
77
|
alwaysShowPaginator?: boolean | undefined;
|
|
69
78
|
/**
|
|
70
|
-
* Template of the paginator. It can be customized using the template property using the predefined keys,
|
|
79
|
+
* Template of the paginator. It can be customized using the template property using the predefined keys,
|
|
71
80
|
*
|
|
72
81
|
* - FirstPageLink
|
|
73
82
|
* - PrevPageLink
|
|
@@ -78,11 +87,13 @@ export interface DataViewProps {
|
|
|
78
87
|
* - JumpToPageDropdown
|
|
79
88
|
* - JumpToPageInput
|
|
80
89
|
* - CurrentPageReport
|
|
90
|
+
*
|
|
91
|
+
* @defaultValue FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown
|
|
81
92
|
*/
|
|
82
93
|
paginatorTemplate?: string | undefined;
|
|
83
94
|
/**
|
|
84
95
|
* Number of page links to display.
|
|
85
|
-
*
|
|
96
|
+
* @defaultValue 5
|
|
86
97
|
*/
|
|
87
98
|
pageLinkSize?: number | undefined;
|
|
88
99
|
/**
|
|
@@ -90,7 +101,7 @@ export interface DataViewProps {
|
|
|
90
101
|
*/
|
|
91
102
|
rowsPerPageOptions?: number[] | undefined;
|
|
92
103
|
/**
|
|
93
|
-
* Template of the current page report element. It displays information about the pagination state.
|
|
104
|
+
* Template of the current page report element. It displays information about the pagination state.
|
|
94
105
|
*
|
|
95
106
|
* - {currentPage}
|
|
96
107
|
* - {totalPages}
|
|
@@ -98,19 +109,21 @@ export interface DataViewProps {
|
|
|
98
109
|
* - {first}
|
|
99
110
|
* - {last}
|
|
100
111
|
* - {totalRecords}
|
|
112
|
+
*
|
|
113
|
+
* @defaultValue '({currentPage} of {totalPages})'
|
|
101
114
|
*/
|
|
102
115
|
currentPageReportTemplate?: string | undefined;
|
|
103
116
|
/**
|
|
104
117
|
* Property name or a getter function of data to use in sorting by default.
|
|
105
|
-
* @see DataViewSortFieldType
|
|
106
118
|
*/
|
|
107
|
-
sortField?:
|
|
119
|
+
sortField?: string | ((item: any) => string) | undefined;
|
|
108
120
|
/**
|
|
109
121
|
* Order to sort the data by default.
|
|
110
122
|
*/
|
|
111
123
|
sortOrder?: number | undefined;
|
|
112
124
|
/**
|
|
113
125
|
* Defines if data is loaded and interacted with in lazy manner.
|
|
126
|
+
* @defaultValue false
|
|
114
127
|
*/
|
|
115
128
|
lazy?: boolean | undefined;
|
|
116
129
|
/**
|
|
@@ -119,32 +132,35 @@ export interface DataViewProps {
|
|
|
119
132
|
dataKey: string | undefined;
|
|
120
133
|
}
|
|
121
134
|
|
|
135
|
+
/**
|
|
136
|
+
* Defines valid slots in DataView component.
|
|
137
|
+
*/
|
|
122
138
|
export interface DataViewSlots {
|
|
123
139
|
/**
|
|
124
140
|
* Custom header template.
|
|
125
141
|
*/
|
|
126
|
-
header
|
|
142
|
+
header(): VNode[];
|
|
127
143
|
/**
|
|
128
144
|
* Custom footer template.
|
|
129
145
|
*/
|
|
130
|
-
footer
|
|
146
|
+
footer(): VNode[];
|
|
131
147
|
/**
|
|
132
148
|
* Custom empty template.
|
|
133
149
|
*/
|
|
134
|
-
empty
|
|
150
|
+
empty(): VNode[];
|
|
135
151
|
/**
|
|
136
152
|
* Custom paginator start template.
|
|
137
153
|
*/
|
|
138
|
-
paginatorstart
|
|
154
|
+
paginatorstart(): VNode[];
|
|
139
155
|
/**
|
|
140
156
|
* Custom paginator end template.
|
|
141
157
|
*/
|
|
142
|
-
paginatorend
|
|
158
|
+
paginatorend(): VNode[];
|
|
143
159
|
/**
|
|
144
160
|
* Custom list template.
|
|
145
161
|
* @param {Object} scope - list slot's params.
|
|
146
162
|
*/
|
|
147
|
-
list
|
|
163
|
+
list(scope: {
|
|
148
164
|
/**
|
|
149
165
|
* Value of the component
|
|
150
166
|
*/
|
|
@@ -153,12 +169,12 @@ export interface DataViewSlots {
|
|
|
153
169
|
* Index of the grid
|
|
154
170
|
*/
|
|
155
171
|
index: number;
|
|
156
|
-
})
|
|
172
|
+
}): VNode[];
|
|
157
173
|
/**
|
|
158
174
|
* Custom list template.
|
|
159
175
|
* @param {Object} scope - list slot's params.
|
|
160
176
|
*/
|
|
161
|
-
grid
|
|
177
|
+
grid(scope: {
|
|
162
178
|
/**
|
|
163
179
|
* Value of the component
|
|
164
180
|
*/
|
|
@@ -167,27 +183,42 @@ export interface DataViewSlots {
|
|
|
167
183
|
* Index of the grid
|
|
168
184
|
*/
|
|
169
185
|
index: number;
|
|
170
|
-
})
|
|
186
|
+
}): VNode[];
|
|
171
187
|
}
|
|
172
188
|
|
|
173
|
-
|
|
189
|
+
/**
|
|
190
|
+
* Defines valid slots in DataView component.
|
|
191
|
+
*/
|
|
192
|
+
export interface DataViewEmits {
|
|
174
193
|
/**
|
|
175
194
|
* Emitted when the first changes.
|
|
176
195
|
* @param {number} value - New value.
|
|
177
196
|
*/
|
|
178
|
-
'update:first'
|
|
197
|
+
'update:first'(value: number): void;
|
|
179
198
|
/**
|
|
180
199
|
* Emitted when the rows changes.
|
|
181
200
|
* @param {number} value - New value.
|
|
182
201
|
*/
|
|
183
|
-
'update:rows'
|
|
202
|
+
'update:rows'(value: number): void;
|
|
184
203
|
/**
|
|
185
204
|
* Callback to invoke when page changes, the event object contains information about the new state.
|
|
186
205
|
* @param {DataViewPageEvent} event - Custom page event.
|
|
187
206
|
*/
|
|
188
|
-
page
|
|
189
|
-
}
|
|
207
|
+
page(event: DataViewPageEvent): void;
|
|
208
|
+
}
|
|
190
209
|
|
|
210
|
+
/**
|
|
211
|
+
* **PrimeVue - DataViewLayoutOptions**
|
|
212
|
+
*
|
|
213
|
+
* _DataView displays data in grid or list layout with pagination and sorting features._
|
|
214
|
+
*
|
|
215
|
+
* [Live Demo](https://www.primevue.org/dataview/)
|
|
216
|
+
* --- ---
|
|
217
|
+
* 
|
|
218
|
+
*
|
|
219
|
+
* @group Component
|
|
220
|
+
*
|
|
221
|
+
*/
|
|
191
222
|
declare class DataView extends ClassComponent<DataViewProps, DataViewSlots, DataViewEmits> {}
|
|
192
223
|
|
|
193
224
|
declare module '@vue/runtime-core' {
|
|
@@ -196,17 +227,4 @@ declare module '@vue/runtime-core' {
|
|
|
196
227
|
}
|
|
197
228
|
}
|
|
198
229
|
|
|
199
|
-
/**
|
|
200
|
-
*
|
|
201
|
-
* DataView displays data in grid or list layout with pagination and sorting features.
|
|
202
|
-
*
|
|
203
|
-
* Helper API:
|
|
204
|
-
*
|
|
205
|
-
* - PrimeFlex
|
|
206
|
-
*
|
|
207
|
-
* Demos:
|
|
208
|
-
*
|
|
209
|
-
* - [DataView](https://www.primefaces.org/primevue/dataview)
|
|
210
|
-
*
|
|
211
|
-
*/
|
|
212
230
|
export default DataView;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* The helper DataViewLayoutOptions component can be used to switch between the modes however this component is optional and you may use your own UI to switch modes as well.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/dataview/)
|
|
6
|
+
*
|
|
7
|
+
* @module dataviewlayoutoptions
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Defines valid properties in DataViewLayoutOptions component.
|
|
14
|
+
*/
|
|
3
15
|
export interface DataViewLayoutOptionsProps {
|
|
4
16
|
/**
|
|
5
17
|
* Value of the component.
|
|
@@ -7,16 +19,34 @@ export interface DataViewLayoutOptionsProps {
|
|
|
7
19
|
modelValue?: string | undefined;
|
|
8
20
|
}
|
|
9
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Defines valid propslotserties in DataViewLayoutOptions component.
|
|
24
|
+
*/
|
|
10
25
|
export interface DataViewLayoutOptionsSlots {}
|
|
11
26
|
|
|
12
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Defines valid emits in DataViewLayoutOptions component.
|
|
29
|
+
*/
|
|
30
|
+
export interface DataViewLayoutOptionsEmits {
|
|
13
31
|
/**
|
|
14
32
|
* Emitted when the value changes.
|
|
15
33
|
* @param {*} value - New value.
|
|
16
34
|
*/
|
|
17
|
-
'update:modelValue'
|
|
18
|
-
}
|
|
35
|
+
'update:modelValue'(value: string): void;
|
|
36
|
+
}
|
|
19
37
|
|
|
38
|
+
/**
|
|
39
|
+
* **PrimeVue - DataViewLayoutOptions**
|
|
40
|
+
*
|
|
41
|
+
* _The helper DataViewLayoutOptions component can be used to switch between the modes however this component is optional and you may use your own UI to switch modes as well._
|
|
42
|
+
*
|
|
43
|
+
* [Live Demo](https://www.primevue.org/dataview/)
|
|
44
|
+
* --- ---
|
|
45
|
+
* 
|
|
46
|
+
*
|
|
47
|
+
* @group Component
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
20
50
|
declare class DataViewLayoutOptions extends ClassComponent<DataViewLayoutOptionsProps, DataViewLayoutOptionsSlots, DataViewLayoutOptionsEmits> {}
|
|
21
51
|
|
|
22
52
|
declare module '@vue/runtime-core' {
|
|
@@ -25,14 +55,4 @@ declare module '@vue/runtime-core' {
|
|
|
25
55
|
}
|
|
26
56
|
}
|
|
27
57
|
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* When both layout modes are enabled in DataView, a UI element would be necessary to let the user toggle between the view.
|
|
31
|
-
* DataViewLayoutOptions is a helper component to display a buttonset to choose the layout mode in DataView.
|
|
32
|
-
*
|
|
33
|
-
* Demos:
|
|
34
|
-
*
|
|
35
|
-
* - [DataViewLayoutOptions](https://www.primefaces.org/primevue/dataview)
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
58
|
export default DataViewLayoutOptions;
|
|
@@ -1,22 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* DeferredContent postpones the loading the content that is initially not in the viewport until it becomes visible on scroll.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/deferredcontent/)
|
|
6
|
+
*
|
|
7
|
+
* @module deferredcontent
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { VNode } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
4
13
|
export interface DeferredContentProps {}
|
|
5
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Defines valid slots in DeferredContent component.
|
|
17
|
+
*/
|
|
6
18
|
export interface DeferredContentSlots {
|
|
7
19
|
/**
|
|
8
20
|
* Default content slot.
|
|
9
21
|
*/
|
|
10
|
-
default
|
|
22
|
+
default(): VNode[];
|
|
11
23
|
}
|
|
12
24
|
|
|
13
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Defines valid emits in DeferredContent component.
|
|
27
|
+
*/
|
|
28
|
+
export interface DeferredContentEmits {
|
|
14
29
|
/**
|
|
15
30
|
* Callback to invoke when deferred content is loaded.
|
|
16
31
|
*/
|
|
17
|
-
load
|
|
18
|
-
}
|
|
32
|
+
load(): void;
|
|
33
|
+
}
|
|
19
34
|
|
|
35
|
+
/**
|
|
36
|
+
* **PrimeVue - DeferredContent**
|
|
37
|
+
*
|
|
38
|
+
* _DeferredContent postpones the loading the content that is initially not in the viewport until it becomes visible on scroll._
|
|
39
|
+
*
|
|
40
|
+
* [Live Demo](https://www.primevue.org/deferredcontent/)
|
|
41
|
+
* --- ---
|
|
42
|
+
* 
|
|
43
|
+
*
|
|
44
|
+
* @group Component
|
|
45
|
+
*/
|
|
20
46
|
declare class DeferredContent extends ClassComponent<DeferredContentProps, DeferredContentSlots, DeferredContentEmits> {}
|
|
21
47
|
|
|
22
48
|
declare module '@vue/runtime-core' {
|
|
@@ -25,13 +51,4 @@ declare module '@vue/runtime-core' {
|
|
|
25
51
|
}
|
|
26
52
|
}
|
|
27
53
|
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* DeferredContent postpones the loading the content that is initially not in the viewport until it becomes visible on scroll.
|
|
31
|
-
*
|
|
32
|
-
* Demos:
|
|
33
|
-
*
|
|
34
|
-
* - [DeferredContent](https://www.primefaces.org/primevue/deferredcontent)
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
54
|
export default DeferredContent;
|
package/dialog/Dialog.d.ts
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Dialog is a container to display content in an overlay window.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/dialog)
|
|
6
|
+
*
|
|
7
|
+
* @module dialog
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { HTMLAttributes, VNode } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Custom breakpoint metadata.
|
|
15
|
+
*/
|
|
8
16
|
export interface DialogBreakpoints {
|
|
9
17
|
/**
|
|
10
18
|
* Breakpoint for responsive mode.
|
|
@@ -24,6 +32,9 @@ export interface DialogBreakpoints {
|
|
|
24
32
|
[key: string]: string;
|
|
25
33
|
}
|
|
26
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Defines valid properties in Dialog component.
|
|
37
|
+
*/
|
|
27
38
|
export interface DialogProps {
|
|
28
39
|
/**
|
|
29
40
|
* Title content of the dialog.
|
|
@@ -35,10 +46,12 @@ export interface DialogProps {
|
|
|
35
46
|
footer?: string | undefined;
|
|
36
47
|
/**
|
|
37
48
|
* Specifies the visibility of the dialog.
|
|
49
|
+
* @defaultValue false
|
|
38
50
|
*/
|
|
39
51
|
visible?: boolean | undefined;
|
|
40
52
|
/**
|
|
41
53
|
* Defines if background should be blocked when dialog is displayed.
|
|
54
|
+
* @defaultValue false
|
|
42
55
|
*/
|
|
43
56
|
modal?: boolean | undefined;
|
|
44
57
|
/**
|
|
@@ -55,149 +68,166 @@ export interface DialogProps {
|
|
|
55
68
|
contentProps?: HTMLAttributes | undefined;
|
|
56
69
|
/**
|
|
57
70
|
* When enabled dialog is displayed in RTL direction.
|
|
71
|
+
* @defaultValue false
|
|
58
72
|
*/
|
|
59
73
|
rtl?: boolean | undefined;
|
|
60
74
|
/**
|
|
61
75
|
* Adds a close icon to the header to hide the dialog.
|
|
62
|
-
*
|
|
76
|
+
* @defaultValue true
|
|
63
77
|
*/
|
|
64
78
|
closable?: boolean | undefined;
|
|
65
79
|
/**
|
|
66
80
|
* Specifies if clicking the modal background should hide the dialog.
|
|
81
|
+
* @defaultValue false
|
|
67
82
|
*/
|
|
68
83
|
dismissableMask?: boolean | undefined;
|
|
69
84
|
/**
|
|
70
85
|
* Specifies if pressing escape key should hide the dialog.
|
|
71
|
-
*
|
|
86
|
+
* @defaultValue true
|
|
72
87
|
*/
|
|
73
88
|
closeOnEscape?: boolean | undefined;
|
|
74
89
|
/**
|
|
75
90
|
* Whether to show the header or not.
|
|
76
|
-
*
|
|
91
|
+
* @defaultValue true
|
|
77
92
|
*/
|
|
78
93
|
showHeader?: boolean | undefined;
|
|
79
94
|
/**
|
|
80
95
|
* Base zIndex value to use in layering.
|
|
81
|
-
*
|
|
96
|
+
* @defaultValue 0
|
|
82
97
|
*/
|
|
83
98
|
baseZIndex?: number | undefined;
|
|
84
99
|
/**
|
|
85
100
|
* Whether to automatically manage layering.
|
|
86
|
-
*
|
|
101
|
+
* @defaultValue true
|
|
87
102
|
*/
|
|
88
103
|
autoZIndex?: boolean | undefined;
|
|
89
104
|
/**
|
|
90
|
-
* Position of the dialog
|
|
91
|
-
* @
|
|
92
|
-
* Default value is 'center'.
|
|
105
|
+
* Position of the dialog.
|
|
106
|
+
* @defaultValue center
|
|
93
107
|
*/
|
|
94
|
-
position?:
|
|
108
|
+
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright' | undefined;
|
|
95
109
|
/**
|
|
96
110
|
* Whether the dialog can be displayed full screen.
|
|
111
|
+
* @defaultValue false
|
|
97
112
|
*/
|
|
98
113
|
maximizable?: boolean | undefined;
|
|
99
114
|
/**
|
|
100
115
|
* Object literal to define widths per screen size.
|
|
101
|
-
* @see DialogBreakpoints
|
|
102
116
|
*/
|
|
103
117
|
breakpoints?: DialogBreakpoints;
|
|
104
118
|
/**
|
|
105
119
|
* Enables dragging to change the position using header.
|
|
106
|
-
*
|
|
120
|
+
* @defaultValue true
|
|
107
121
|
*/
|
|
108
122
|
draggable?: boolean | undefined;
|
|
109
123
|
/**
|
|
110
124
|
* Keeps dialog in the viewport when dragging.
|
|
111
|
-
*
|
|
125
|
+
* @defaultValue true
|
|
112
126
|
*/
|
|
113
127
|
keepInViewPort?: boolean | undefined;
|
|
114
128
|
/**
|
|
115
129
|
* Minimum value for the left coordinate of dialog in dragging.
|
|
116
|
-
*
|
|
130
|
+
* @defaultValue 0.
|
|
117
131
|
*/
|
|
118
132
|
minX?: number | undefined;
|
|
119
133
|
/**
|
|
120
134
|
* Minimum value for the top coordinate of dialog in dragging.
|
|
121
|
-
*
|
|
135
|
+
* @defaultValue 0
|
|
122
136
|
*/
|
|
123
137
|
minY?: number | undefined;
|
|
124
138
|
/**
|
|
125
|
-
* A valid query selector or an HTMLElement to specify where the dialog gets attached.
|
|
126
|
-
* @
|
|
127
|
-
* Default value is 'body'.
|
|
139
|
+
* A valid query selector or an HTMLElement to specify where the dialog gets attached.
|
|
140
|
+
* @defaultValue body
|
|
128
141
|
*/
|
|
129
|
-
appendTo?:
|
|
142
|
+
appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
|
|
130
143
|
/**
|
|
131
144
|
* Style of the dynamic dialog.
|
|
132
145
|
*/
|
|
133
146
|
style?: any;
|
|
134
147
|
/**
|
|
135
148
|
* Icon to display in the dialog close button.
|
|
136
|
-
*
|
|
149
|
+
* @defaultValue pi pi-times
|
|
137
150
|
*/
|
|
138
151
|
closeIcon?: string | undefined;
|
|
139
152
|
/**
|
|
140
153
|
* Icon to display in the dialog maximize button when dialog is not maximized.
|
|
141
|
-
*
|
|
154
|
+
* @defaultValue pi pi-window-maximize
|
|
142
155
|
*/
|
|
143
156
|
maximizeIcon?: string | undefined;
|
|
144
157
|
/**
|
|
145
158
|
* Icon to display in the dialog maximize button when dialog is maximized.
|
|
146
|
-
*
|
|
159
|
+
* @defaultValue pi pi-window-minimize
|
|
147
160
|
*/
|
|
148
161
|
minimizeIcon?: string | undefined;
|
|
149
162
|
}
|
|
150
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Defines valid slots in Dialog component.
|
|
166
|
+
*/
|
|
151
167
|
export interface DialogSlots {
|
|
152
168
|
/**
|
|
153
169
|
* Default content slot.
|
|
154
170
|
*/
|
|
155
|
-
default
|
|
171
|
+
default(): VNode[];
|
|
156
172
|
/**
|
|
157
173
|
* Custom header template.
|
|
158
174
|
*/
|
|
159
|
-
header
|
|
175
|
+
header(): VNode[];
|
|
160
176
|
/**
|
|
161
177
|
* Custom footer template.
|
|
162
178
|
*/
|
|
163
|
-
footer
|
|
179
|
+
footer(): VNode[];
|
|
164
180
|
}
|
|
165
181
|
|
|
166
|
-
|
|
182
|
+
/**
|
|
183
|
+
* Defines valid emits in Dialog component.
|
|
184
|
+
*/
|
|
185
|
+
export interface DialogEmits {
|
|
167
186
|
/**
|
|
168
187
|
* Emitted when the visible changes.
|
|
169
188
|
* @param {boolean} value - New value.
|
|
170
189
|
*/
|
|
171
|
-
'update:visible'
|
|
190
|
+
'update:visible'(value: boolean): void;
|
|
172
191
|
/**
|
|
173
192
|
* Callback to invoke when dialog is hidden.
|
|
174
193
|
*/
|
|
175
|
-
hide
|
|
194
|
+
hide(): void;
|
|
176
195
|
/**
|
|
177
196
|
* Callback to invoke after dialog is hidden.
|
|
178
197
|
*/
|
|
179
|
-
'after-hide'
|
|
198
|
+
'after-hide'(): void;
|
|
180
199
|
/**
|
|
181
200
|
* Callback to invoke when dialog is shown.
|
|
182
201
|
*/
|
|
183
|
-
show
|
|
202
|
+
show(): void;
|
|
184
203
|
/**
|
|
185
204
|
* Fired when a dialog gets maximized.
|
|
186
205
|
* @param {event} event - Browser event.
|
|
187
206
|
*/
|
|
188
|
-
maximize
|
|
207
|
+
maximize(event: Event): void;
|
|
189
208
|
/**
|
|
190
209
|
* Fired when a dialog gets unmaximized.
|
|
191
210
|
* @param {event} event - Browser event.
|
|
192
211
|
*/
|
|
193
|
-
unmaximize
|
|
212
|
+
unmaximize(event: Event): void;
|
|
194
213
|
/**
|
|
195
214
|
* Fired when a dialog drag completes.
|
|
196
215
|
* @param {event} event - Browser event.
|
|
197
216
|
*/
|
|
198
|
-
dragend
|
|
199
|
-
}
|
|
217
|
+
dragend(event: Event): void;
|
|
218
|
+
}
|
|
200
219
|
|
|
220
|
+
/**
|
|
221
|
+
* **PrimeVue - Dialog**
|
|
222
|
+
*
|
|
223
|
+
* _Dialog is a container to display content in an overlay window._
|
|
224
|
+
*
|
|
225
|
+
* [Live Demo](https://www.primevue.org/dialog/)
|
|
226
|
+
* --- ---
|
|
227
|
+
* 
|
|
228
|
+
*
|
|
229
|
+
* @group Component
|
|
230
|
+
*/
|
|
201
231
|
declare class Dialog extends ClassComponent<DialogProps, DialogSlots, DialogEmits> {}
|
|
202
232
|
|
|
203
233
|
declare module '@vue/runtime-core' {
|
|
@@ -206,13 +236,4 @@ declare module '@vue/runtime-core' {
|
|
|
206
236
|
}
|
|
207
237
|
}
|
|
208
238
|
|
|
209
|
-
/**
|
|
210
|
-
*
|
|
211
|
-
* Dialog is a container to display content in an overlay window.
|
|
212
|
-
*
|
|
213
|
-
* Demos:
|
|
214
|
-
*
|
|
215
|
-
* - [Dialog](https://www.primefaces.org/primevue/dialog)
|
|
216
|
-
*
|
|
217
|
-
*/
|
|
218
239
|
export default Dialog;
|
package/dialog/Dialog.vue
CHANGED
|
@@ -231,7 +231,7 @@ export default {
|
|
|
231
231
|
this.$emit('after-hide');
|
|
232
232
|
},
|
|
233
233
|
onMaskClick(event) {
|
|
234
|
-
if (this.dismissableMask && this.
|
|
234
|
+
if (this.dismissableMask && this.modal && this.mask === event.target) {
|
|
235
235
|
this.close();
|
|
236
236
|
}
|
|
237
237
|
},
|
package/dialog/dialog.cjs.js
CHANGED
|
@@ -208,7 +208,7 @@ var script = {
|
|
|
208
208
|
this.$emit('after-hide');
|
|
209
209
|
},
|
|
210
210
|
onMaskClick(event) {
|
|
211
|
-
if (this.dismissableMask && this.
|
|
211
|
+
if (this.dismissableMask && this.modal && this.mask === event.target) {
|
|
212
212
|
this.close();
|
|
213
213
|
}
|
|
214
214
|
},
|