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/tree/Tree.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Tree is used to display hierarchical data.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/tree/)
|
|
6
|
+
*
|
|
7
|
+
* @module tree
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { VNode } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Custom TreeNode metadata.
|
|
15
|
+
*/
|
|
4
16
|
export interface TreeNode {
|
|
5
17
|
/**
|
|
6
18
|
* Mandatory unique key of the node.
|
|
@@ -56,12 +68,9 @@ export interface TreeNode {
|
|
|
56
68
|
collapsedIcon?: string;
|
|
57
69
|
}
|
|
58
70
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
type TreeScrollHeightType = 'flex' | string | undefined;
|
|
64
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Custom expanded keys metadata.
|
|
73
|
+
*/
|
|
65
74
|
export interface TreeExpandedKeys {
|
|
66
75
|
/**
|
|
67
76
|
* Optional
|
|
@@ -69,6 +78,9 @@ export interface TreeExpandedKeys {
|
|
|
69
78
|
[key: string]: any;
|
|
70
79
|
}
|
|
71
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Custom selection keys metadata.
|
|
83
|
+
*/
|
|
72
84
|
export interface TreeSelectionKeys {
|
|
73
85
|
/**
|
|
74
86
|
* Optional
|
|
@@ -76,6 +88,9 @@ export interface TreeSelectionKeys {
|
|
|
76
88
|
[key: string]: any;
|
|
77
89
|
}
|
|
78
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Defines valid properties in Tree component.
|
|
93
|
+
*/
|
|
79
94
|
export interface TreeProps {
|
|
80
95
|
/**
|
|
81
96
|
* An array of treenodes.
|
|
@@ -92,20 +107,21 @@ export interface TreeProps {
|
|
|
92
107
|
/**
|
|
93
108
|
* Defines the selection mode.
|
|
94
109
|
*/
|
|
95
|
-
selectionMode?:
|
|
110
|
+
selectionMode?: 'single' | 'multiple' | 'checkbox' | undefined;
|
|
96
111
|
/**
|
|
97
112
|
* Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually.
|
|
98
113
|
* On touch enabled devices, metaKeySelection is turned off automatically.
|
|
99
|
-
*
|
|
114
|
+
* @defaultValue true
|
|
100
115
|
*/
|
|
101
116
|
metaKeySelection?: boolean | undefined;
|
|
102
117
|
/**
|
|
103
118
|
* Whether to display loading indicator.
|
|
119
|
+
* @defaultValue false
|
|
104
120
|
*/
|
|
105
121
|
loading?: boolean | undefined;
|
|
106
122
|
/**
|
|
107
123
|
* Icon to display when tree is loading.
|
|
108
|
-
*
|
|
124
|
+
* @defaultValue pi pi-spin
|
|
109
125
|
*/
|
|
110
126
|
loadingIcon?: string | undefined;
|
|
111
127
|
/**
|
|
@@ -114,15 +130,14 @@ export interface TreeProps {
|
|
|
114
130
|
filter?: boolean | undefined;
|
|
115
131
|
/**
|
|
116
132
|
* When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
|
|
117
|
-
*
|
|
133
|
+
* @defaultValue label
|
|
118
134
|
*/
|
|
119
135
|
filterBy?: string | undefined;
|
|
120
136
|
/**
|
|
121
137
|
* Mode for filtering.
|
|
122
|
-
* @
|
|
123
|
-
* Default value is 'lenient'.
|
|
138
|
+
* @defaultValue lenient
|
|
124
139
|
*/
|
|
125
|
-
filterMode?:
|
|
140
|
+
filterMode?: 'lenient' | 'strict' | undefined;
|
|
126
141
|
/**
|
|
127
142
|
* Placeholder text to show when filter input is empty.
|
|
128
143
|
*/
|
|
@@ -133,9 +148,8 @@ export interface TreeProps {
|
|
|
133
148
|
filterLocale?: string | undefined;
|
|
134
149
|
/**
|
|
135
150
|
* Height of the scroll viewport in fixed units or the 'flex' keyword for a dynamic size.
|
|
136
|
-
* @see TreeScrollHeightType
|
|
137
151
|
*/
|
|
138
|
-
scrollHeight?:
|
|
152
|
+
scrollHeight?: 'flex' | string | undefined;
|
|
139
153
|
/**
|
|
140
154
|
* Defines a string value that labels an interactive element.
|
|
141
155
|
*/
|
|
@@ -146,9 +160,13 @@ export interface TreeProps {
|
|
|
146
160
|
'aria-labelledby'?: string | undefined;
|
|
147
161
|
}
|
|
148
162
|
|
|
163
|
+
/**
|
|
164
|
+
* Defines valid slots in Tree component.
|
|
165
|
+
*/
|
|
149
166
|
export interface TreeSlots {
|
|
150
167
|
/**
|
|
151
168
|
* Optional slots.
|
|
169
|
+
* @todo
|
|
152
170
|
*/
|
|
153
171
|
[key: string]: (scope: {
|
|
154
172
|
/**
|
|
@@ -158,39 +176,53 @@ export interface TreeSlots {
|
|
|
158
176
|
}) => VNode[];
|
|
159
177
|
}
|
|
160
178
|
|
|
161
|
-
|
|
179
|
+
/**
|
|
180
|
+
* Defines valid slots in Tree component.
|
|
181
|
+
*/
|
|
182
|
+
export interface TreeEmits {
|
|
162
183
|
/**
|
|
163
184
|
* Emitted when the expanded keys change.
|
|
164
185
|
* @param {TreeNode} value - New expanded keys.
|
|
165
186
|
*/
|
|
166
|
-
'update:expandedKeys'
|
|
187
|
+
'update:expandedKeys'(value: TreeExpandedKeys): void;
|
|
167
188
|
/**
|
|
168
189
|
* Emitted when the selection keys change.
|
|
169
190
|
* @param {TreeSelectionKeys} value - New selection keys.
|
|
170
191
|
*/
|
|
171
|
-
'update:selectionKeys'
|
|
192
|
+
'update:selectionKeys'(event: TreeSelectionKeys): void;
|
|
172
193
|
/**
|
|
173
194
|
* Callback to invoke when a node is selected.
|
|
174
195
|
* @param {TreeNode} node - Node instance.
|
|
175
196
|
*/
|
|
176
|
-
'node-select'
|
|
197
|
+
'node-select'(node: TreeNode): void;
|
|
177
198
|
/**
|
|
178
199
|
* Callback to invoke when a node is unselected.
|
|
179
200
|
* @param {TreeNode} node - Node instance.
|
|
180
201
|
*/
|
|
181
|
-
'node-unselect'
|
|
202
|
+
'node-unselect'(node: TreeNode): void;
|
|
182
203
|
/**
|
|
183
204
|
* Callback to invoke when a node is expanded.
|
|
184
205
|
* @param {TreeNode} node - Node instance.
|
|
185
206
|
*/
|
|
186
|
-
'node-expand'
|
|
207
|
+
'node-expand'(node: TreeNode): void;
|
|
187
208
|
/**
|
|
188
209
|
* Callback to invoke when a node is collapsed.
|
|
189
210
|
* @param {TreeNode} node - Node instance.
|
|
190
211
|
*/
|
|
191
|
-
'node-collapse'
|
|
192
|
-
}
|
|
212
|
+
'node-collapse'(node: TreeNode): void;
|
|
213
|
+
}
|
|
193
214
|
|
|
215
|
+
/**
|
|
216
|
+
* **PrimeVue - Tree**
|
|
217
|
+
*
|
|
218
|
+
* _Tree is used to display hierarchical data._
|
|
219
|
+
*
|
|
220
|
+
* [Live Demo](https://www.primevue.org/tree/)
|
|
221
|
+
* --- ---
|
|
222
|
+
* 
|
|
223
|
+
*
|
|
224
|
+
* @group Component
|
|
225
|
+
*/
|
|
194
226
|
declare class Tree extends ClassComponent<TreeProps, TreeSlots, TreeEmits> {}
|
|
195
227
|
|
|
196
228
|
declare module '@vue/runtime-core' {
|
|
@@ -199,17 +231,4 @@ declare module '@vue/runtime-core' {
|
|
|
199
231
|
}
|
|
200
232
|
}
|
|
201
233
|
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* Tree is used to display hierarchical data.
|
|
205
|
-
*
|
|
206
|
-
* Helper API:
|
|
207
|
-
*
|
|
208
|
-
* - TreeNode
|
|
209
|
-
*
|
|
210
|
-
* Demos:
|
|
211
|
-
*
|
|
212
|
-
* - [Tree](https://www.primefaces.org/primevue/tree)
|
|
213
|
-
*
|
|
214
|
-
*/
|
|
215
234
|
export default Tree;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* TreeSelect is a form component to choose from hierarchical data.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/treeselect/)
|
|
6
|
+
*
|
|
7
|
+
* @module treeselect
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
import { InputHTMLAttributes, VNode } from 'vue';
|
|
3
11
|
import { TreeNode } from '../tree';
|
|
12
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
4
13
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type TreeSelectDisplayType = 'comma' | 'chip' | undefined;
|
|
10
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Defines valid properties in TreeSelect component.
|
|
16
|
+
*/
|
|
11
17
|
export interface TreeSelectProps {
|
|
12
18
|
/**
|
|
13
19
|
* Value of the component.
|
|
@@ -19,7 +25,7 @@ export interface TreeSelectProps {
|
|
|
19
25
|
options?: TreeNode[] | undefined;
|
|
20
26
|
/**
|
|
21
27
|
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
|
22
|
-
*
|
|
28
|
+
* @defaultValue 200px
|
|
23
29
|
*/
|
|
24
30
|
scrollHeight?: string | undefined;
|
|
25
31
|
/**
|
|
@@ -28,6 +34,7 @@ export interface TreeSelectProps {
|
|
|
28
34
|
placeholder?: string | undefined;
|
|
29
35
|
/**
|
|
30
36
|
* When present, it specifies that the component should be disabled.
|
|
37
|
+
* @defaultValue false
|
|
31
38
|
*/
|
|
32
39
|
disabled?: boolean | undefined;
|
|
33
40
|
/**
|
|
@@ -36,34 +43,31 @@ export interface TreeSelectProps {
|
|
|
36
43
|
tabindex?: string | undefined;
|
|
37
44
|
/**
|
|
38
45
|
* Defines the selection mode.
|
|
39
|
-
* @see TreeSelectSelectionModeType
|
|
40
46
|
*/
|
|
41
|
-
selectionMode?:
|
|
47
|
+
selectionMode?: 'single' | 'multiple' | 'checkbox' | undefined;
|
|
42
48
|
/**
|
|
43
49
|
* Style class of the overlay panel.
|
|
44
50
|
*/
|
|
45
51
|
panelClass?: any;
|
|
46
52
|
/**
|
|
47
|
-
* A valid query selector or an HTMLElement to specify where the overlay gets attached.
|
|
48
|
-
* @
|
|
49
|
-
* Default value is 'body'.
|
|
53
|
+
* A valid query selector or an HTMLElement to specify where the overlay gets attached.
|
|
54
|
+
* @defaultValue body
|
|
50
55
|
*/
|
|
51
|
-
appendTo?:
|
|
56
|
+
appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
|
|
52
57
|
/**
|
|
53
58
|
* Text to display when there are no options available. Defaults to value from PrimeVue locale configuration.
|
|
54
|
-
*
|
|
59
|
+
* @defaultValue No results found
|
|
55
60
|
*/
|
|
56
61
|
emptyMessage?: string | undefined;
|
|
57
62
|
/**
|
|
58
63
|
* Defines how the selected items are displayed.
|
|
59
|
-
* @
|
|
60
|
-
* Default value is 'comma'.
|
|
64
|
+
* @defaultValue comma
|
|
61
65
|
*/
|
|
62
|
-
display?:
|
|
66
|
+
display?: 'comma' | 'chip' | undefined;
|
|
63
67
|
/**
|
|
64
68
|
* Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually.
|
|
65
69
|
* On touch enabled devices, metaKeySelection is turned off automatically.
|
|
66
|
-
*
|
|
70
|
+
* @defaultValue true
|
|
67
71
|
*/
|
|
68
72
|
metaKeySelection?: boolean | undefined;
|
|
69
73
|
/**
|
|
@@ -79,9 +83,9 @@ export interface TreeSelectProps {
|
|
|
79
83
|
*/
|
|
80
84
|
inputStyle?: any | undefined;
|
|
81
85
|
/**
|
|
82
|
-
*
|
|
86
|
+
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
|
|
83
87
|
*/
|
|
84
|
-
inputProps?:
|
|
88
|
+
inputProps?: InputHTMLAttributes | undefined;
|
|
85
89
|
/**
|
|
86
90
|
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
|
87
91
|
*/
|
|
@@ -92,12 +96,15 @@ export interface TreeSelectProps {
|
|
|
92
96
|
'aria-label'?: string | undefined;
|
|
93
97
|
}
|
|
94
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Defines valid slots in TreeSelect component.
|
|
101
|
+
*/
|
|
95
102
|
export interface TreeSelectSlots {
|
|
96
103
|
/**
|
|
97
104
|
* Custom value template.
|
|
98
105
|
* @param {Object} scope - value slot's params.
|
|
99
106
|
*/
|
|
100
|
-
value
|
|
107
|
+
value(scope: {
|
|
101
108
|
/**
|
|
102
109
|
* Selected value
|
|
103
110
|
*/
|
|
@@ -106,12 +113,12 @@ export interface TreeSelectSlots {
|
|
|
106
113
|
* Placeholder
|
|
107
114
|
*/
|
|
108
115
|
placeholder: string;
|
|
109
|
-
})
|
|
116
|
+
}): VNode[];
|
|
110
117
|
/**
|
|
111
118
|
* Custom header template.
|
|
112
119
|
* @param {Object} scope - header slot's params.
|
|
113
120
|
*/
|
|
114
|
-
header
|
|
121
|
+
header(scope: {
|
|
115
122
|
/**
|
|
116
123
|
* Selected value
|
|
117
124
|
*/
|
|
@@ -120,12 +127,12 @@ export interface TreeSelectSlots {
|
|
|
120
127
|
* An array of treenodes.
|
|
121
128
|
*/
|
|
122
129
|
options: TreeNode[];
|
|
123
|
-
})
|
|
130
|
+
}): VNode[];
|
|
124
131
|
/**
|
|
125
132
|
* Custom footer template.
|
|
126
133
|
* @param {Object} scope - footer slot's params.
|
|
127
134
|
*/
|
|
128
|
-
footer
|
|
135
|
+
footer(scope: {
|
|
129
136
|
/**
|
|
130
137
|
* Selected value
|
|
131
138
|
*/
|
|
@@ -134,66 +141,80 @@ export interface TreeSelectSlots {
|
|
|
134
141
|
* An array of treenodes.
|
|
135
142
|
*/
|
|
136
143
|
options: TreeNode[];
|
|
137
|
-
})
|
|
144
|
+
}): VNode[];
|
|
138
145
|
/**
|
|
139
146
|
* Custom empty template.
|
|
140
147
|
*/
|
|
141
|
-
empty
|
|
148
|
+
empty(): VNode[];
|
|
142
149
|
/**
|
|
143
150
|
* Custom indicator template.
|
|
144
151
|
*/
|
|
145
|
-
indicator
|
|
152
|
+
indicator(): VNode[];
|
|
146
153
|
}
|
|
147
154
|
|
|
148
|
-
|
|
155
|
+
/**
|
|
156
|
+
* Defines valid emits in TreeSelect component.
|
|
157
|
+
*/
|
|
158
|
+
export interface TreeSelectEmits {
|
|
149
159
|
/**
|
|
150
160
|
* Emitted when the value changes.
|
|
151
161
|
* @param {*} value - New value.
|
|
152
162
|
*/
|
|
153
|
-
'update:modelValue'
|
|
163
|
+
'update:modelValue'(value: any): void;
|
|
154
164
|
/**
|
|
155
165
|
* Callback to invoke on value change.
|
|
156
166
|
* @param {*} value - Selected node keys
|
|
157
167
|
*/
|
|
158
|
-
change
|
|
168
|
+
change(value: string[]): void;
|
|
159
169
|
/**
|
|
160
170
|
* Callback to invoke before the overlay is shown.
|
|
161
171
|
*/
|
|
162
|
-
'before-show'
|
|
172
|
+
'before-show'(): void;
|
|
163
173
|
/**
|
|
164
174
|
* Callback to invoke before the overlay is hidden.
|
|
165
175
|
*/
|
|
166
|
-
'before-hide'
|
|
176
|
+
'before-hide'(): void;
|
|
167
177
|
/**
|
|
168
178
|
* Callback to invoke when the overlay is shown.
|
|
169
179
|
*/
|
|
170
|
-
show
|
|
180
|
+
show(): void;
|
|
171
181
|
/**
|
|
172
182
|
* Callback to invoke when the overlay is hidden.
|
|
173
183
|
*/
|
|
174
|
-
hide
|
|
184
|
+
hide(): void;
|
|
175
185
|
/**
|
|
176
186
|
* Callback to invoke when a node is selected.
|
|
177
187
|
* @param {TreeNode} node - Node instance.
|
|
178
188
|
*/
|
|
179
|
-
'node-select'
|
|
189
|
+
'node-select'(node: TreeNode): void;
|
|
180
190
|
/**
|
|
181
191
|
* Callback to invoke when a node is unselected.
|
|
182
192
|
* @param {TreeNode} node - Node instance.
|
|
183
193
|
*/
|
|
184
|
-
'node-unselect'
|
|
194
|
+
'node-unselect'(node: TreeNode): void;
|
|
185
195
|
/**
|
|
186
196
|
* Callback to invoke when a node is expanded.
|
|
187
197
|
* @param {TreeNode} node - Node instance.
|
|
188
198
|
*/
|
|
189
|
-
'node-expand'
|
|
199
|
+
'node-expand'(node: TreeNode): void;
|
|
190
200
|
/**
|
|
191
201
|
* Callback to invoke when a node is collapsed.
|
|
192
202
|
* @param {TreeNode} node - Node instance.
|
|
193
203
|
*/
|
|
194
|
-
'node-collapse'
|
|
195
|
-
}
|
|
204
|
+
'node-collapse'(node: TreeNode): void;
|
|
205
|
+
}
|
|
196
206
|
|
|
207
|
+
/**
|
|
208
|
+
* **PrimeVue - TreeSelect**
|
|
209
|
+
*
|
|
210
|
+
* _TreeSelect is a form component to choose from hierarchical data._
|
|
211
|
+
*
|
|
212
|
+
* [Live Demo](https://www.primevue.org/treeselect/)
|
|
213
|
+
* --- ---
|
|
214
|
+
* 
|
|
215
|
+
*
|
|
216
|
+
* @group Component
|
|
217
|
+
*/
|
|
197
218
|
declare class TreeSelect extends ClassComponent<TreeSelectProps, TreeSelectSlots, TreeSelectEmits> {
|
|
198
219
|
/**
|
|
199
220
|
* Shows the overlay.
|
|
@@ -215,17 +236,4 @@ declare module '@vue/runtime-core' {
|
|
|
215
236
|
}
|
|
216
237
|
}
|
|
217
238
|
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
* TreeSelect is a form component to choose from hierarchical data.
|
|
221
|
-
*
|
|
222
|
-
* Helper API:
|
|
223
|
-
*
|
|
224
|
-
* - TreeNode
|
|
225
|
-
*
|
|
226
|
-
* Demos:
|
|
227
|
-
*
|
|
228
|
-
* - [TreeSelect](https://www.primefaces.org/primevue/treeselect)
|
|
229
|
-
*
|
|
230
|
-
*/
|
|
231
239
|
export default TreeSelect;
|