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
|
@@ -1,21 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* MultiSelect is used to select multiple items from a collection.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/multiselect/)
|
|
6
|
+
*
|
|
7
|
+
* @module multiselect
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
type MultiSelectOptionLabelType = string | ((data: any) => string) | undefined;
|
|
6
|
-
|
|
7
|
-
type MultiSelectOptionValueType = string | ((data: any) => any) | undefined;
|
|
8
|
-
|
|
9
|
-
type MultiSelectOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
|
10
|
-
|
|
11
|
-
type MultiSelectOptionChildrenType = string | ((data: any) => any[]) | undefined;
|
|
12
|
-
|
|
13
|
-
type MultiSelectFilterMatchModeType = 'contains' | 'startsWith' | 'endsWith' | undefined;
|
|
14
|
-
|
|
15
|
-
type MultiSelectAppendToType = 'body' | 'self' | string | undefined | HTMLElement;
|
|
16
|
-
|
|
17
|
-
type MultiSelectDisplayType = 'comma' | 'chip' | undefined;
|
|
12
|
+
import { VirtualScrollerItemOptions, VirtualScrollerProps } from '../virtualscroller';
|
|
18
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Custom change event.
|
|
16
|
+
* @see {@link MultiSelectEmits.change}
|
|
17
|
+
*/
|
|
19
18
|
export interface MultiSelectChangeEvent {
|
|
20
19
|
/**
|
|
21
20
|
* Browser event
|
|
@@ -27,6 +26,10 @@ export interface MultiSelectChangeEvent {
|
|
|
27
26
|
value: any;
|
|
28
27
|
}
|
|
29
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Custom all change event.
|
|
31
|
+
* @see {@link MultiSelectEmits['selectall-change']}
|
|
32
|
+
*/
|
|
30
33
|
export interface MultiSelectAllChangeEvent {
|
|
31
34
|
/**
|
|
32
35
|
* Browser event
|
|
@@ -38,6 +41,10 @@ export interface MultiSelectAllChangeEvent {
|
|
|
38
41
|
checked: boolean;
|
|
39
42
|
}
|
|
40
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Custom filter event
|
|
46
|
+
* @see {@link MultiSelectEmits.filter}
|
|
47
|
+
*/
|
|
41
48
|
export interface MultiSelectFilterEvent {
|
|
42
49
|
/**
|
|
43
50
|
* Original event
|
|
@@ -49,6 +56,9 @@ export interface MultiSelectFilterEvent {
|
|
|
49
56
|
value: string;
|
|
50
57
|
}
|
|
51
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Defines valid properties in MultiSelect component.
|
|
61
|
+
*/
|
|
52
62
|
export interface MultiSelectProps {
|
|
53
63
|
/**
|
|
54
64
|
* Value of the component.
|
|
@@ -61,26 +71,26 @@ export interface MultiSelectProps {
|
|
|
61
71
|
/**
|
|
62
72
|
* Property name or getter function to use as the label of an option.
|
|
63
73
|
*/
|
|
64
|
-
optionLabel?:
|
|
74
|
+
optionLabel?: string | ((data: any) => string) | undefined;
|
|
65
75
|
/**
|
|
66
76
|
* Property name or getter function to use as the value of an option, defaults to the option itself when not defined.
|
|
67
77
|
*/
|
|
68
|
-
optionValue?:
|
|
78
|
+
optionValue?: string | ((data: any) => any) | undefined;
|
|
69
79
|
/**
|
|
70
80
|
* Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.
|
|
71
81
|
*/
|
|
72
|
-
optionDisabled?:
|
|
82
|
+
optionDisabled?: string | ((data: any) => boolean) | undefined;
|
|
73
83
|
/**
|
|
74
84
|
* Property name or getter function to use as the label of an option group.
|
|
75
85
|
*/
|
|
76
|
-
optionGroupLabel?:
|
|
86
|
+
optionGroupLabel?: string | ((data: any) => string) | undefined;
|
|
77
87
|
/**
|
|
78
88
|
* Property name or getter function that refers to the children options of option group.
|
|
79
89
|
*/
|
|
80
|
-
optionGroupChildren?:
|
|
90
|
+
optionGroupChildren?: string | ((data: any) => any[]) | undefined;
|
|
81
91
|
/**
|
|
82
92
|
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
|
83
|
-
*
|
|
93
|
+
* @defaultValue 200px
|
|
84
94
|
*/
|
|
85
95
|
scrollHeight?: string | undefined;
|
|
86
96
|
/**
|
|
@@ -89,6 +99,7 @@ export interface MultiSelectProps {
|
|
|
89
99
|
placeholder?: string | undefined;
|
|
90
100
|
/**
|
|
91
101
|
* When present, it specifies that the component should be disabled.
|
|
102
|
+
* @defaultValue false
|
|
92
103
|
*/
|
|
93
104
|
disabled?: boolean | undefined;
|
|
94
105
|
/**
|
|
@@ -125,6 +136,7 @@ export interface MultiSelectProps {
|
|
|
125
136
|
dataKey?: string | undefined;
|
|
126
137
|
/**
|
|
127
138
|
* When specified, displays a filter input at header.
|
|
139
|
+
* @defaultValue false
|
|
128
140
|
*/
|
|
129
141
|
filter?: boolean | undefined;
|
|
130
142
|
/**
|
|
@@ -137,29 +149,26 @@ export interface MultiSelectProps {
|
|
|
137
149
|
filterLocale?: string | undefined;
|
|
138
150
|
/**
|
|
139
151
|
* Defines the filtering algorithm to use when searching the options.
|
|
140
|
-
* @
|
|
141
|
-
* Default value is 'contains'.
|
|
152
|
+
* @defaultValue contains
|
|
142
153
|
*/
|
|
143
|
-
filterMatchMode?:
|
|
154
|
+
filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | undefined;
|
|
144
155
|
/**
|
|
145
156
|
* Fields used when filtering the options, defaults to optionLabel.
|
|
146
157
|
*/
|
|
147
158
|
filterFields?: string[] | undefined;
|
|
148
159
|
/**
|
|
149
160
|
* 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.
|
|
150
|
-
* @
|
|
151
|
-
* Default value is 'body'.
|
|
161
|
+
* @defaultValue body
|
|
152
162
|
*/
|
|
153
|
-
appendTo?:
|
|
163
|
+
appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
|
|
154
164
|
/**
|
|
155
165
|
* Defines how the selected items are displayed.
|
|
156
|
-
* @
|
|
157
|
-
* Default value is 'comma'.
|
|
166
|
+
* @defaultValue comma
|
|
158
167
|
*/
|
|
159
|
-
display?:
|
|
168
|
+
display?: 'comma' | 'chip' | undefined;
|
|
160
169
|
/**
|
|
161
170
|
* Label to display after exceeding max selected labels.
|
|
162
|
-
*
|
|
171
|
+
* @defaultValue '{0} items selected'
|
|
163
172
|
*/
|
|
164
173
|
selectedItemsLabel?: string | undefined;
|
|
165
174
|
/**
|
|
@@ -172,89 +181,92 @@ export interface MultiSelectProps {
|
|
|
172
181
|
selectionLimit?: number | undefined;
|
|
173
182
|
/**
|
|
174
183
|
* Whether to show the header checkbox to toggle the selection of all items at once.
|
|
175
|
-
*
|
|
184
|
+
* @defaultValue true
|
|
176
185
|
*/
|
|
177
186
|
showToggleAll?: boolean | undefined;
|
|
178
187
|
/**
|
|
179
188
|
* Whether the multiselect is in loading state.
|
|
189
|
+
* @defaultValue false
|
|
180
190
|
*/
|
|
181
191
|
loading?: boolean | undefined;
|
|
182
192
|
/**
|
|
183
193
|
* Icon to display in the checkboxes.
|
|
184
|
-
*
|
|
194
|
+
* @defaultValue pi pi-check
|
|
185
195
|
*/
|
|
186
196
|
checkboxIcon?: string | undefined;
|
|
187
197
|
/**
|
|
188
198
|
* Icon to display in the dropdown close button.
|
|
189
|
-
*
|
|
199
|
+
* @defaultValue pi pi-times
|
|
190
200
|
*/
|
|
191
201
|
closeIcon?: string | undefined;
|
|
192
202
|
/**
|
|
193
203
|
* Icon to display in the dropdown.
|
|
194
|
-
*
|
|
204
|
+
* @defaultValue pi pi-chevron-down
|
|
195
205
|
*/
|
|
196
206
|
dropdownIcon?: string | undefined;
|
|
197
207
|
/**
|
|
198
208
|
* Icon to display in filter input.
|
|
199
|
-
*
|
|
209
|
+
* @defaultValue pi pi-search
|
|
200
210
|
*/
|
|
201
211
|
filterIcon?: string | undefined;
|
|
202
212
|
/**
|
|
203
213
|
* Icon to display in loading state.
|
|
204
|
-
*
|
|
214
|
+
* @defaultValue pi pi-spinner pi-spin
|
|
205
215
|
*/
|
|
206
216
|
loadingIcon?: string | undefined;
|
|
207
217
|
/**
|
|
208
218
|
* Icon to display in chip remove action.
|
|
209
|
-
*
|
|
219
|
+
* @defaultValue pi pi-times-circle
|
|
210
220
|
*/
|
|
211
221
|
removeTokenIcon?: string | undefined;
|
|
212
222
|
/**
|
|
213
223
|
* Whether all data is selected.
|
|
224
|
+
* @defaultValue false
|
|
214
225
|
*/
|
|
215
226
|
selectAll?: boolean | undefined;
|
|
216
227
|
/**
|
|
217
228
|
* Clears the filter value when hiding the dropdown.
|
|
229
|
+
* @defaultValue false
|
|
218
230
|
*/
|
|
219
|
-
resetFilterOnHide?: boolean;
|
|
231
|
+
resetFilterOnHide?: boolean | undefined;
|
|
220
232
|
/**
|
|
221
233
|
* Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
|
|
222
|
-
* @
|
|
234
|
+
* @type {VirtualScrollerProps}
|
|
223
235
|
*/
|
|
224
236
|
virtualScrollerOptions?: VirtualScrollerProps;
|
|
225
237
|
/**
|
|
226
238
|
* Whether to focus on the first visible or selected element when the overlay panel is shown.
|
|
227
|
-
*
|
|
239
|
+
* @defaultValue true
|
|
228
240
|
*/
|
|
229
241
|
autoOptionFocus?: boolean | undefined;
|
|
230
242
|
/**
|
|
231
243
|
* Whether to focus on the filter element when the overlay panel is shown.
|
|
232
|
-
*
|
|
244
|
+
* @defaultValue false
|
|
233
245
|
*/
|
|
234
246
|
autoFilterFocus?: boolean | undefined;
|
|
235
247
|
/**
|
|
236
248
|
* Text to be displayed in hidden accessible field when filtering returns any results. Defaults to value from PrimeVue locale configuration.
|
|
237
|
-
*
|
|
249
|
+
* @defaultValue '{0} results are available'
|
|
238
250
|
*/
|
|
239
251
|
filterMessage?: string | undefined;
|
|
240
252
|
/**
|
|
241
253
|
* Text to be displayed in hidden accessible field when options are selected. Defaults to value from PrimeVue locale configuration.
|
|
242
|
-
*
|
|
254
|
+
* @defaultValue '{0} items selected'
|
|
243
255
|
*/
|
|
244
256
|
selectionMessage?: string | undefined;
|
|
245
257
|
/**
|
|
246
258
|
* Text to be displayed in hidden accessible field when any option is not selected. Defaults to value from PrimeVue locale configuration.
|
|
247
|
-
*
|
|
259
|
+
* @defaultValue No selected item
|
|
248
260
|
*/
|
|
249
261
|
emptySelectionMessage?: string | undefined;
|
|
250
262
|
/**
|
|
251
263
|
* Text to display when filtering does not return any results. Defaults to value from PrimeVue locale configuration.
|
|
252
|
-
*
|
|
264
|
+
* @defaultValue No results found
|
|
253
265
|
*/
|
|
254
266
|
emptyFilterMessage?: string | undefined;
|
|
255
267
|
/**
|
|
256
268
|
* Text to display when there are no options available. Defaults to value from PrimeVue locale configuration.
|
|
257
|
-
*
|
|
269
|
+
* @defaultValue No results found'
|
|
258
270
|
*/
|
|
259
271
|
emptyMessage?: string | undefined;
|
|
260
272
|
/**
|
|
@@ -271,12 +283,15 @@ export interface MultiSelectProps {
|
|
|
271
283
|
'aria-labelledby'?: string | undefined;
|
|
272
284
|
}
|
|
273
285
|
|
|
286
|
+
/**
|
|
287
|
+
* Defines valid slots in MultiSelect component.
|
|
288
|
+
*/
|
|
274
289
|
export interface MultiSelectSlots {
|
|
275
290
|
/**
|
|
276
291
|
* Custom value template.
|
|
277
292
|
* @param {Object} scope - value slot's params.
|
|
278
293
|
*/
|
|
279
|
-
value
|
|
294
|
+
value(scope: {
|
|
280
295
|
/**
|
|
281
296
|
* Value of the component
|
|
282
297
|
*/
|
|
@@ -285,26 +300,26 @@ export interface MultiSelectSlots {
|
|
|
285
300
|
* Placeholder prop value
|
|
286
301
|
*/
|
|
287
302
|
placeholder: string;
|
|
288
|
-
})
|
|
303
|
+
}): VNode[];
|
|
289
304
|
/**
|
|
290
305
|
* Custom chip template.
|
|
291
306
|
* @param {Object} scope - chip slot's params.
|
|
292
307
|
*/
|
|
293
|
-
chip
|
|
308
|
+
chip(scope: {
|
|
294
309
|
/**
|
|
295
310
|
* A value in the selection
|
|
296
311
|
*/
|
|
297
312
|
value: any;
|
|
298
|
-
})
|
|
313
|
+
}): VNode[];
|
|
299
314
|
/**
|
|
300
315
|
* Custom indicator template.
|
|
301
316
|
*/
|
|
302
|
-
indicator
|
|
317
|
+
indicator(): VNode[];
|
|
303
318
|
/**
|
|
304
319
|
* Custom header template.
|
|
305
320
|
* @param {Object} scope - header slot's params.
|
|
306
321
|
*/
|
|
307
|
-
header
|
|
322
|
+
header(scope: {
|
|
308
323
|
/**
|
|
309
324
|
* Value of the component
|
|
310
325
|
*/
|
|
@@ -313,12 +328,12 @@ export interface MultiSelectSlots {
|
|
|
313
328
|
* Displayed options
|
|
314
329
|
*/
|
|
315
330
|
options: any[];
|
|
316
|
-
})
|
|
331
|
+
}): VNode[];
|
|
317
332
|
/**
|
|
318
333
|
* Custom footer template.
|
|
319
334
|
* @param {Object} scope - footer slot's params.
|
|
320
335
|
*/
|
|
321
|
-
footer
|
|
336
|
+
footer(scope: {
|
|
322
337
|
/**
|
|
323
338
|
* Value of the component
|
|
324
339
|
*/
|
|
@@ -327,12 +342,12 @@ export interface MultiSelectSlots {
|
|
|
327
342
|
* Displayed options
|
|
328
343
|
*/
|
|
329
344
|
options: any[];
|
|
330
|
-
})
|
|
345
|
+
}): VNode[];
|
|
331
346
|
/**
|
|
332
347
|
* Custom option template.
|
|
333
348
|
* @param {Object} scope - option slot's params.
|
|
334
349
|
*/
|
|
335
|
-
option
|
|
350
|
+
option(scope: {
|
|
336
351
|
/**
|
|
337
352
|
* Option instance
|
|
338
353
|
*/
|
|
@@ -341,12 +356,12 @@ export interface MultiSelectSlots {
|
|
|
341
356
|
* Index of the option
|
|
342
357
|
*/
|
|
343
358
|
index: number;
|
|
344
|
-
})
|
|
359
|
+
}): VNode[];
|
|
345
360
|
/**
|
|
346
361
|
* Custom option group template.
|
|
347
362
|
* @param {Object} scope - option group slot's params.
|
|
348
363
|
*/
|
|
349
|
-
optiongroup
|
|
364
|
+
optiongroup(scope: {
|
|
350
365
|
/**
|
|
351
366
|
* Option instance
|
|
352
367
|
*/
|
|
@@ -355,20 +370,20 @@ export interface MultiSelectSlots {
|
|
|
355
370
|
* Index of the option
|
|
356
371
|
*/
|
|
357
372
|
index: number;
|
|
358
|
-
})
|
|
373
|
+
}): VNode[];
|
|
359
374
|
/**
|
|
360
375
|
* Custom emptyfilter template.
|
|
361
376
|
*/
|
|
362
|
-
emptyfilter
|
|
377
|
+
emptyfilter(): VNode[];
|
|
363
378
|
/**
|
|
364
379
|
* Custom empty template.
|
|
365
380
|
*/
|
|
366
|
-
empty
|
|
381
|
+
empty(): VNode[];
|
|
367
382
|
/**
|
|
368
383
|
* Custom content template.
|
|
369
384
|
* @param {Object} scope - content slot's params.
|
|
370
385
|
*/
|
|
371
|
-
content
|
|
386
|
+
content(scope: {
|
|
372
387
|
/**
|
|
373
388
|
* An array of objects to display for virtualscroller
|
|
374
389
|
*/
|
|
@@ -385,71 +400,86 @@ export interface MultiSelectSlots {
|
|
|
385
400
|
/**
|
|
386
401
|
* Options of the items
|
|
387
402
|
* @param {number} index - Rendered index
|
|
388
|
-
* @return {
|
|
403
|
+
* @return {VirtualScrollerItemOptions}
|
|
389
404
|
*/
|
|
390
405
|
getItemOptions(index: number): VirtualScrollerItemOptions;
|
|
391
|
-
})
|
|
406
|
+
}): VNode[];
|
|
392
407
|
/**
|
|
393
408
|
* Custom loader template.
|
|
394
409
|
* @param {Object} scope - loader slot's params.
|
|
395
410
|
*/
|
|
396
|
-
loader
|
|
411
|
+
loader(scope: {
|
|
397
412
|
/**
|
|
398
413
|
* Options of the loader items for virtualscroller
|
|
399
414
|
*/
|
|
400
415
|
options: any[];
|
|
401
|
-
})
|
|
416
|
+
}): VNode[];
|
|
402
417
|
}
|
|
403
418
|
|
|
404
|
-
|
|
419
|
+
/**
|
|
420
|
+
* Defines valid emits in MultiSelect component.
|
|
421
|
+
*/
|
|
422
|
+
export interface MultiSelectEmits {
|
|
405
423
|
/**
|
|
406
424
|
* Emitted when the value changes.
|
|
407
425
|
* @param {*} value - New value.
|
|
408
426
|
*/
|
|
409
|
-
'update:modelValue'
|
|
427
|
+
'update:modelValue'(value: any): void;
|
|
410
428
|
/**
|
|
411
429
|
* Callback to invoke on value change.
|
|
412
430
|
* @param {MultiSelectChangeEvent} event - Custom change event.
|
|
413
431
|
*/
|
|
414
|
-
change
|
|
432
|
+
change(event: MultiSelectChangeEvent): void;
|
|
415
433
|
/**
|
|
416
434
|
* Callback to invoke when the component receives focus.
|
|
417
435
|
* @param {Event} event - Browser event.
|
|
418
436
|
*/
|
|
419
|
-
focus
|
|
437
|
+
focus(event: Event): void;
|
|
420
438
|
/**
|
|
421
439
|
* Callback to invoke when the component loses focus.
|
|
422
440
|
* @param {Event} event - Browser event.
|
|
423
441
|
*/
|
|
424
|
-
blur
|
|
442
|
+
blur(event: Event): void;
|
|
425
443
|
/**
|
|
426
444
|
* Callback to invoke before the overlay is shown.
|
|
427
445
|
*/
|
|
428
|
-
'before-show'
|
|
446
|
+
'before-show'(): void;
|
|
429
447
|
/**
|
|
430
448
|
* Callback to invoke before the overlay is hidden.
|
|
431
449
|
*/
|
|
432
|
-
'before-hide'
|
|
450
|
+
'before-hide'(): void;
|
|
433
451
|
/**
|
|
434
452
|
* Callback to invoke when the overlay is shown.
|
|
435
453
|
*/
|
|
436
|
-
show
|
|
454
|
+
show(): void;
|
|
437
455
|
/**
|
|
438
456
|
* Callback to invoke when the overlay is hidden.
|
|
439
457
|
*/
|
|
440
|
-
hide
|
|
458
|
+
hide(): void;
|
|
441
459
|
/**
|
|
442
460
|
* Callback to invoke on filter input.
|
|
443
461
|
* @param {MultiSelectFilterEvent} event - Custom filter event.
|
|
444
462
|
*/
|
|
445
|
-
filter
|
|
463
|
+
filter(event: MultiSelectFilterEvent): void;
|
|
446
464
|
/**
|
|
447
465
|
* Callback to invoke when all data is selected.
|
|
448
466
|
* @param {MultiSelectAllChangeEvent} event - Custom select all change event.
|
|
449
467
|
*/
|
|
450
|
-
'selectall-change'
|
|
451
|
-
}
|
|
468
|
+
'selectall-change'(event: MultiSelectAllChangeEvent): void;
|
|
469
|
+
}
|
|
452
470
|
|
|
471
|
+
/**
|
|
472
|
+
* **PrimeVue - MultiSelect**
|
|
473
|
+
*
|
|
474
|
+
* _MultiSelect is used to select multiple items from a collection._
|
|
475
|
+
*
|
|
476
|
+
* [Live Demo](https://www.primevue.org/multiselect/)
|
|
477
|
+
* --- ---
|
|
478
|
+
* 
|
|
479
|
+
*
|
|
480
|
+
* @group Component
|
|
481
|
+
*
|
|
482
|
+
*/
|
|
453
483
|
declare class MultiSelect extends ClassComponent<MultiSelectProps, MultiSelectSlots, MultiSelectEmits> {
|
|
454
484
|
/**
|
|
455
485
|
* Shows the overlay.
|
|
@@ -457,14 +487,14 @@ declare class MultiSelect extends ClassComponent<MultiSelectProps, MultiSelectSl
|
|
|
457
487
|
*
|
|
458
488
|
* @memberof MultiSelect
|
|
459
489
|
*/
|
|
460
|
-
show
|
|
490
|
+
show(isFocus?: boolean): void;
|
|
461
491
|
/**
|
|
462
492
|
* Hides the overlay.
|
|
463
493
|
* @param {boolean} [isFocus] - Decides whether to focus on the component. Default value is false.
|
|
464
494
|
*
|
|
465
495
|
* @memberof MultiSelect
|
|
466
496
|
*/
|
|
467
|
-
hide
|
|
497
|
+
hide(isFocus?: boolean): void;
|
|
468
498
|
}
|
|
469
499
|
|
|
470
500
|
declare module '@vue/runtime-core' {
|
|
@@ -473,13 +503,4 @@ declare module '@vue/runtime-core' {
|
|
|
473
503
|
}
|
|
474
504
|
}
|
|
475
505
|
|
|
476
|
-
/**
|
|
477
|
-
*
|
|
478
|
-
* MultiSelect is used to multiple values from a list of options.
|
|
479
|
-
*
|
|
480
|
-
* Demos:
|
|
481
|
-
*
|
|
482
|
-
* - [MultiSelect](https://www.primefaces.org/primevue/multiselect)
|
|
483
|
-
*
|
|
484
|
-
*/
|
|
485
506
|
export default MultiSelect;
|
package/orderlist/OrderList.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* OrderList is used to managed the order of a collection.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://primevue.org/orderlist)
|
|
6
|
+
*
|
|
7
|
+
* @module orderlist
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { ButtonHTMLAttributes, HTMLAttributes, VNode } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Custom reorder event
|
|
15
|
+
* @see {@link OrderListEmits.reorder}
|
|
16
|
+
*/
|
|
4
17
|
export interface OrderListReorderEvent {
|
|
5
18
|
/**
|
|
6
19
|
* Browser event
|
|
@@ -16,6 +29,10 @@ export interface OrderListReorderEvent {
|
|
|
16
29
|
direction: string;
|
|
17
30
|
}
|
|
18
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Custom selection change event
|
|
34
|
+
* @see {@link OrderListEmits['selection-change']}
|
|
35
|
+
*/
|
|
19
36
|
export interface OrderListSelectionChangeEvent {
|
|
20
37
|
/**
|
|
21
38
|
* Browser event
|
|
@@ -27,6 +44,9 @@ export interface OrderListSelectionChangeEvent {
|
|
|
27
44
|
value: any[];
|
|
28
45
|
}
|
|
29
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Defines valid properties in OrderList component.
|
|
49
|
+
*/
|
|
30
50
|
export interface OrderListProps {
|
|
31
51
|
/**
|
|
32
52
|
* Value of the component.
|
|
@@ -44,7 +64,7 @@ export interface OrderListProps {
|
|
|
44
64
|
* Defines whether metaKey is requred or not for the selection.
|
|
45
65
|
* When true metaKey needs to be pressed to select or unselect an item and
|
|
46
66
|
* when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.
|
|
47
|
-
*
|
|
67
|
+
* @defaultValue true
|
|
48
68
|
*/
|
|
49
69
|
metaKeySelection?: boolean | undefined;
|
|
50
70
|
/**
|
|
@@ -53,12 +73,12 @@ export interface OrderListProps {
|
|
|
53
73
|
listStyle?: any;
|
|
54
74
|
/**
|
|
55
75
|
* Whether the list optimizes layout based on screen size.
|
|
56
|
-
*
|
|
76
|
+
* @defaultValue true
|
|
57
77
|
*/
|
|
58
78
|
responsive?: boolean | undefined;
|
|
59
79
|
/**
|
|
60
80
|
* The breakpoint to define the maximum width boundary when responsiveness is enabled.
|
|
61
|
-
*
|
|
81
|
+
* @defaultValue 960px
|
|
62
82
|
*/
|
|
63
83
|
breakpoint?: string | undefined;
|
|
64
84
|
/**
|
|
@@ -99,16 +119,19 @@ export interface OrderListProps {
|
|
|
99
119
|
'aria-labelledby'?: string | undefined;
|
|
100
120
|
}
|
|
101
121
|
|
|
122
|
+
/**
|
|
123
|
+
* Defines valid slots in OrderList component.
|
|
124
|
+
*/
|
|
102
125
|
export interface OrderListSlots {
|
|
103
126
|
/**
|
|
104
127
|
* Custom header template.
|
|
105
128
|
*/
|
|
106
|
-
header
|
|
129
|
+
header(): VNode[];
|
|
107
130
|
/**
|
|
108
131
|
* Custom item template.
|
|
109
132
|
* @param {Object} scope - item slot's params.
|
|
110
133
|
*/
|
|
111
|
-
item
|
|
134
|
+
item(scope: {
|
|
112
135
|
/**
|
|
113
136
|
* Item of the component
|
|
114
137
|
*/
|
|
@@ -117,40 +140,54 @@ export interface OrderListSlots {
|
|
|
117
140
|
* Index of the item.
|
|
118
141
|
*/
|
|
119
142
|
index: number;
|
|
120
|
-
})
|
|
143
|
+
}): VNode[];
|
|
121
144
|
/**
|
|
122
145
|
* Custom controls start template.
|
|
123
146
|
*/
|
|
124
|
-
controlsstart
|
|
147
|
+
controlsstart(): VNode[];
|
|
125
148
|
/**
|
|
126
149
|
* Custom controls end template.
|
|
127
150
|
*/
|
|
128
|
-
controlsend
|
|
151
|
+
controlsend(): VNode[];
|
|
129
152
|
}
|
|
130
153
|
|
|
131
|
-
|
|
154
|
+
/**
|
|
155
|
+
* Defines valid slots in OrderList component.
|
|
156
|
+
*/
|
|
157
|
+
export interface OrderListEmits {
|
|
132
158
|
/**
|
|
133
159
|
* Emitted when the value changes.
|
|
134
160
|
* @param {*} value - New value.
|
|
135
161
|
*/
|
|
136
|
-
'update:modelValue'
|
|
162
|
+
'update:modelValue'(value: any[]): void;
|
|
137
163
|
/**
|
|
138
164
|
* Emitted when the selection changes.
|
|
139
165
|
* @param {*} value - New value.
|
|
140
166
|
*/
|
|
141
|
-
'update:selection'
|
|
167
|
+
'update:selection'(value: any[]): void;
|
|
142
168
|
/**
|
|
143
169
|
* Callback to invoke when the list is reordered.
|
|
144
170
|
* @param {OrderListReorderEvent} event - Custom reorder event.
|
|
145
171
|
*/
|
|
146
|
-
reorder
|
|
172
|
+
reorder(event: OrderListReorderEvent): void;
|
|
147
173
|
/**
|
|
148
174
|
* Callback to invoke when selection changes.
|
|
149
175
|
* @param {OrderListSelectionChangeEvent} event - Custom selection change event.
|
|
150
176
|
*/
|
|
151
|
-
'selection-change'
|
|
152
|
-
}
|
|
177
|
+
'selection-change'(event: OrderListSelectionChangeEvent): void;
|
|
178
|
+
}
|
|
153
179
|
|
|
180
|
+
/**
|
|
181
|
+
* **PrimeVue - OrderList**
|
|
182
|
+
*
|
|
183
|
+
* _OrderList is used to sort a collection._
|
|
184
|
+
*
|
|
185
|
+
* [Live Demo](https://www.primevue.org/orderlist/)
|
|
186
|
+
* --- ---
|
|
187
|
+
* 
|
|
188
|
+
*
|
|
189
|
+
* @group Component
|
|
190
|
+
*/
|
|
154
191
|
declare class OrderList extends ClassComponent<OrderListProps, OrderListSlots, OrderListEmits> {}
|
|
155
192
|
|
|
156
193
|
declare module '@vue/runtime-core' {
|
|
@@ -159,13 +196,4 @@ declare module '@vue/runtime-core' {
|
|
|
159
196
|
}
|
|
160
197
|
}
|
|
161
198
|
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* OrderList is used to managed the order of a collection.
|
|
165
|
-
*
|
|
166
|
-
* Demos:
|
|
167
|
-
*
|
|
168
|
-
* - [OrderList](https://www.primefaces.org/primevue/orderlist)
|
|
169
|
-
*
|
|
170
|
-
*/
|
|
171
199
|
export default OrderList;
|