primevue 3.15.0 → 3.16.2
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/autocomplete/AutoComplete.d.ts +182 -38
- package/autocomplete/AutoComplete.vue +636 -342
- package/autocomplete/autocomplete.cjs.js +745 -416
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +747 -418
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +745 -416
- package/autocomplete/autocomplete.min.js +1 -1
- package/button/Button.vue +4 -1
- package/button/button.cjs.js +5 -1
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +5 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +5 -1
- package/button/button.min.js +1 -1
- package/calendar/Calendar.d.ts +51 -12
- package/calendar/Calendar.vue +259 -114
- package/calendar/calendar.cjs.js +414 -220
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +415 -221
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +414 -220
- package/calendar/calendar.min.js +1 -1
- package/carousel/Carousel.vue +25 -0
- package/carousel/carousel.cjs.js +25 -0
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +25 -0
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +25 -0
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +97 -17
- package/cascadeselect/CascadeSelect.vue +560 -135
- package/cascadeselect/CascadeSelectSub.vue +48 -129
- package/cascadeselect/cascadeselect.cjs.js +670 -306
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +672 -308
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +670 -306
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/Checkbox.d.ts +40 -4
- package/checkbox/Checkbox.vue +50 -13
- package/checkbox/checkbox.cjs.js +64 -23
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +65 -24
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +64 -23
- package/checkbox/checkbox.min.js +1 -1
- package/chips/Chips.d.ts +36 -12
- package/chips/Chips.vue +116 -22
- package/chips/chips.cjs.js +149 -37
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +150 -38
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +150 -39
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +3 -6
- package/colorpicker/ColorPicker.vue +1 -5
- package/colorpicker/colorpicker.cjs.js +2 -7
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +2 -7
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +2 -7
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +4 -0
- package/column/Column.vue +4 -0
- package/column/column.cjs.js +4 -0
- package/column/column.cjs.min.js +1 -1
- package/column/column.esm.js +4 -0
- package/column/column.esm.min.js +1 -1
- package/column/column.js +4 -0
- package/column/column.min.js +1 -1
- package/config/PrimeVue.d.ts +42 -0
- package/config/config.cjs.js +35 -4
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +35 -4
- package/config/config.esm.min.js +1 -1
- package/config/config.js +35 -4
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.vue +4 -1
- package/confirmdialog/confirmdialog.cjs.js +6 -2
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +6 -2
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +6 -2
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +1 -1
- package/contextmenu/ContextMenuSub.vue +3 -3
- package/contextmenu/contextmenu.cjs.js +14 -8
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +15 -9
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +14 -8
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1128 -772
- package/core/core.min.js +12 -12
- package/datatable/BodyCell.vue +11 -2
- package/datatable/DataTable.vue +23 -2
- package/datatable/datatable.cjs.js +34 -4
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +34 -4
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +34 -4
- package/datatable/datatable.min.js +1 -1
- package/dialog/Dialog.d.ts +5 -1
- package/dropdown/Dropdown.d.ts +92 -38
- package/dropdown/Dropdown.vue +538 -399
- package/dropdown/dropdown.cjs.js +657 -486
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +659 -488
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +657 -486
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.d.ts +32 -0
- package/editor/Editor.vue +15 -1
- package/editor/editor.cjs.js +15 -1
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +15 -1
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +15 -1
- package/editor/editor.min.js +1 -1
- package/inputmask/InputMask.vue +9 -6
- package/inputmask/inputmask.cjs.js +14 -6
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +15 -7
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +14 -6
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/InputNumber.d.ts +31 -7
- package/inputnumber/InputNumber.vue +53 -20
- package/inputnumber/inputnumber.cjs.js +75 -29
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +76 -30
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +75 -29
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +24 -8
- package/inputswitch/InputSwitch.vue +27 -12
- package/inputswitch/inputswitch.cjs.js +38 -20
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +39 -21
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +38 -20
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/InputText.vue +1 -2
- package/inputtext/inputtext.cjs.js +3 -4
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +4 -5
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +3 -4
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +12 -0
- package/knob/Knob.vue +62 -2
- package/knob/knob.cjs.js +73 -5
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +73 -5
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +73 -5
- package/knob/knob.min.js +1 -1
- package/listbox/Listbox.d.ts +53 -7
- package/listbox/Listbox.vue +500 -135
- package/listbox/listbox.cjs.js +597 -193
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +599 -195
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +597 -193
- package/listbox/listbox.min.js +1 -1
- package/menu/Menu.d.ts +1 -1
- package/menu/Menuitem.vue +2 -2
- package/menu/menu.cjs.js +12 -6
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +13 -7
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +12 -6
- package/menu/menu.min.js +1 -1
- package/menubar/MenubarSub.vue +3 -3
- package/menubar/menubar.cjs.js +14 -8
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +15 -9
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +14 -8
- package/menubar/menubar.min.js +1 -1
- package/menuitem/MenuItem.d.ts +1 -1
- package/multiselect/MultiSelect.d.ts +111 -51
- package/multiselect/MultiSelect.vue +629 -338
- package/multiselect/multiselect.cjs.js +748 -428
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +750 -430
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +748 -428
- package/multiselect/multiselect.min.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +1 -1
- package/overlaypanel/OverlayPanel.vue +14 -2
- package/overlaypanel/overlaypanel.cjs.js +14 -2
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +14 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +14 -2
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +2 -2
- package/paginator/Paginator.d.ts +2 -2
- package/password/Password.d.ts +36 -8
- package/password/Password.vue +50 -14
- package/password/password.cjs.js +69 -24
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +71 -26
- package/password/password.esm.min.js +1 -1
- package/password/password.js +69 -24
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +8 -0
- package/picklist/PickList.vue +10 -2
- package/picklist/picklist.cjs.js +68 -50
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +69 -51
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +68 -50
- package/picklist/picklist.min.js +1 -1
- package/portal/Portal.d.ts +1 -1
- package/radiobutton/RadioButton.d.ts +28 -4
- package/radiobutton/RadioButton.vue +36 -11
- package/radiobutton/radiobutton.cjs.js +49 -23
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +50 -24
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +49 -23
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/Rating.d.ts +4 -0
- package/rating/Rating.vue +61 -7
- package/rating/rating.cjs.js +90 -16
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +91 -17
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +90 -16
- package/rating/rating.min.js +1 -1
- package/resources/primevue.css +8 -0
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +82 -40
- package/resources/themes/arya-green/theme.css +82 -40
- package/resources/themes/arya-orange/theme.css +82 -40
- package/resources/themes/arya-purple/theme.css +82 -40
- package/resources/themes/bootstrap4-dark-blue/theme.css +82 -40
- package/resources/themes/bootstrap4-dark-purple/theme.css +82 -40
- package/resources/themes/bootstrap4-light-blue/theme.css +82 -40
- package/resources/themes/bootstrap4-light-purple/theme.css +82 -40
- package/resources/themes/fluent-light/theme.css +82 -40
- package/resources/themes/lara-dark-blue/theme.css +82 -40
- package/resources/themes/lara-dark-indigo/theme.css +82 -40
- package/resources/themes/lara-dark-purple/theme.css +82 -40
- package/resources/themes/lara-dark-teal/theme.css +82 -40
- package/resources/themes/lara-light-blue/theme.css +82 -40
- package/resources/themes/lara-light-indigo/theme.css +82 -40
- package/resources/themes/lara-light-purple/theme.css +82 -40
- package/resources/themes/lara-light-teal/theme.css +82 -40
- package/resources/themes/luna-amber/theme.css +82 -40
- package/resources/themes/luna-blue/theme.css +82 -40
- package/resources/themes/luna-green/theme.css +82 -40
- package/resources/themes/luna-pink/theme.css +82 -40
- package/resources/themes/md-dark-deeppurple/theme.css +82 -40
- package/resources/themes/md-dark-indigo/theme.css +82 -40
- package/resources/themes/md-light-deeppurple/theme.css +82 -40
- package/resources/themes/md-light-indigo/theme.css +82 -40
- package/resources/themes/mdc-dark-deeppurple/theme.css +82 -40
- package/resources/themes/mdc-dark-indigo/theme.css +82 -40
- package/resources/themes/mdc-light-deeppurple/theme.css +82 -40
- package/resources/themes/mdc-light-indigo/theme.css +82 -40
- package/resources/themes/nova/theme.css +82 -40
- package/resources/themes/nova-accent/theme.css +82 -40
- package/resources/themes/nova-alt/theme.css +82 -40
- package/resources/themes/nova-vue/theme.css +82 -40
- package/resources/themes/rhea/theme.css +82 -40
- package/resources/themes/saga-blue/theme.css +82 -40
- package/resources/themes/saga-green/theme.css +82 -40
- package/resources/themes/saga-orange/theme.css +82 -40
- package/resources/themes/saga-purple/theme.css +82 -40
- package/resources/themes/tailwind-light/theme.css +82 -40
- package/resources/themes/vela-blue/theme.css +82 -40
- package/resources/themes/vela-green/theme.css +82 -40
- package/resources/themes/vela-orange/theme.css +82 -40
- package/resources/themes/vela-purple/theme.css +82 -40
- package/ripple/ripple.cjs.js +1 -0
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +1 -0
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +1 -0
- package/ripple/ripple.min.js +1 -1
- package/selectbutton/SelectButton.d.ts +6 -2
- package/selectbutton/SelectButton.vue +89 -12
- package/selectbutton/selectbutton.cjs.js +97 -22
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +99 -24
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +97 -22
- package/selectbutton/selectbutton.min.js +1 -1
- package/slider/Slider.d.ts +9 -1
- package/slider/Slider.vue +50 -34
- package/slider/slider.cjs.js +59 -38
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +59 -38
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +59 -38
- package/slider/slider.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +1 -1
- package/splitter/Splitter.vue +30 -1
- package/splitter/splitter.cjs.js +30 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +30 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +30 -1
- package/splitter/splitter.min.js +1 -1
- package/textarea/Textarea.vue +1 -2
- package/textarea/textarea.cjs.js +3 -5
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +4 -6
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +3 -5
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +1 -1
- package/tieredmenu/TieredMenuSub.vue +3 -3
- package/tieredmenu/tieredmenu.cjs.js +14 -8
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +15 -9
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +14 -8
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +10 -1
- package/timeline/Timeline.vue +1 -1
- package/timeline/timeline.cjs.js +5 -1
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +5 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +5 -1
- package/timeline/timeline.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +42 -0
- package/togglebutton/ToggleButton.vue +44 -7
- package/togglebutton/togglebutton.cjs.js +59 -13
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +60 -14
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +59 -13
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/tooltip.cjs.js +20 -11
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +21 -12
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +20 -11
- package/tooltip/tooltip.min.js +1 -1
- package/tree/Tree.vue +5 -1
- package/tree/TreeNode.vue +20 -19
- package/tree/tree.cjs.js +47 -32
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +47 -32
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +47 -32
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +26 -10
- package/treeselect/TreeSelect.vue +52 -29
- package/treeselect/treeselect.cjs.js +74 -41
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +76 -43
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +74 -41
- package/treeselect/treeselect.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +20 -4
- package/tristatecheckbox/TriStateCheckbox.vue +52 -15
- package/tristatecheckbox/tristatecheckbox.cjs.js +67 -26
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +68 -27
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +67 -26
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/Utils.d.ts +3 -2
- package/utils/utils.cjs.js +239 -173
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +239 -173
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +239 -173
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +612 -136
- package/vetur-tags.json +180 -59
- package/virtualscroller/VirtualScroller.d.ts +10 -0
- package/virtualscroller/VirtualScroller.vue +18 -17
- package/virtualscroller/virtualscroller.cjs.js +22 -20
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +22 -20
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +22 -20
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1745 -338
|
@@ -4,9 +4,26 @@ import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscro
|
|
|
4
4
|
|
|
5
5
|
type AutoCompleteFieldType = string | ((data: any) => string) | undefined;
|
|
6
6
|
|
|
7
|
+
type AutoCompleteOptionLabelType = string | ((data: any) => string) | undefined;
|
|
8
|
+
|
|
9
|
+
type AutoCompleteOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
|
10
|
+
|
|
11
|
+
type AutoCompleteOptionChildrenType = string | ((data: any) => any[]) | undefined;
|
|
12
|
+
|
|
7
13
|
type AutoCompleteDropdownMode = 'blank' | 'current' | undefined;
|
|
8
14
|
|
|
9
|
-
type AutoCompleteAppendTo = 'body' | 'self' | string | undefined;
|
|
15
|
+
type AutoCompleteAppendTo = 'body' | 'self' | string | undefined | HTMLElement;
|
|
16
|
+
|
|
17
|
+
export interface AutoCompleteChangeEvent {
|
|
18
|
+
/**
|
|
19
|
+
* Browser event.
|
|
20
|
+
*/
|
|
21
|
+
originalEvent: Event;
|
|
22
|
+
/**
|
|
23
|
+
* Selected option value
|
|
24
|
+
*/
|
|
25
|
+
value: any;
|
|
26
|
+
}
|
|
10
27
|
|
|
11
28
|
export interface AutoCompleteItemSelectEvent {
|
|
12
29
|
/**
|
|
@@ -56,18 +73,31 @@ export interface AutoCompleteProps {
|
|
|
56
73
|
*/
|
|
57
74
|
suggestions?: any[];
|
|
58
75
|
/**
|
|
76
|
+
* @deprecated since v3.16.0. Use 'optionLabel' property instead.
|
|
59
77
|
* Property name or getter function of a suggested object to resolve and display.
|
|
60
78
|
* @type {AutoCompleteFieldType}
|
|
61
79
|
*/
|
|
62
80
|
field?: AutoCompleteFieldType;
|
|
81
|
+
/**
|
|
82
|
+
* Property name or getter function to use as the label of an option.
|
|
83
|
+
* @see AutoCompleteOptionLabelType
|
|
84
|
+
*/
|
|
85
|
+
optionLabel?: AutoCompleteOptionLabelType;
|
|
86
|
+
/**
|
|
87
|
+
* Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.
|
|
88
|
+
* @see AutoCompleteOptionDisabledType
|
|
89
|
+
*/
|
|
90
|
+
optionDisabled?: AutoCompleteOptionDisabledType;
|
|
63
91
|
/**
|
|
64
92
|
* Property name or getter function to use as the label of an option group.
|
|
93
|
+
* @see AutoCompleteOptionLabelType
|
|
65
94
|
*/
|
|
66
|
-
optionGroupLabel?:
|
|
95
|
+
optionGroupLabel?: AutoCompleteOptionLabelType;
|
|
67
96
|
/**
|
|
68
97
|
* Property name or getter function that refers to the children options of option group.
|
|
98
|
+
* @see AutoCompleteOptionChildrenType
|
|
69
99
|
*/
|
|
70
|
-
optionGroupChildren?:
|
|
100
|
+
optionGroupChildren?: AutoCompleteOptionChildrenType;
|
|
71
101
|
/**
|
|
72
102
|
* Maximum height of the suggestions panel.
|
|
73
103
|
* Default value is '200px'.
|
|
@@ -84,6 +114,7 @@ export interface AutoCompleteProps {
|
|
|
84
114
|
*/
|
|
85
115
|
dropdownMode?: AutoCompleteDropdownMode;
|
|
86
116
|
/**
|
|
117
|
+
* @deprecated since v3.16.0
|
|
87
118
|
* Highlights automatically the first item of the dropdown to be selected.
|
|
88
119
|
*/
|
|
89
120
|
autoHighlight?: boolean | undefined;
|
|
@@ -91,6 +122,18 @@ export interface AutoCompleteProps {
|
|
|
91
122
|
* Specifies if multiple values can be selected.
|
|
92
123
|
*/
|
|
93
124
|
multiple?: boolean | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* Default text to display when no option is selected.
|
|
127
|
+
*/
|
|
128
|
+
placeholder?: string | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* When present, it specifies that the component should be disabled.
|
|
131
|
+
*/
|
|
132
|
+
disabled?: boolean | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* A property to uniquely identify an option.
|
|
135
|
+
*/
|
|
136
|
+
dataKey?: string | undefined;
|
|
94
137
|
/**
|
|
95
138
|
* Minimum number of characters to initiate a search.
|
|
96
139
|
* Default value is 1.
|
|
@@ -104,6 +147,7 @@ export interface AutoCompleteProps {
|
|
|
104
147
|
/**
|
|
105
148
|
* A valid query selector or an HTMLElement to specify where the overlay gets attached.
|
|
106
149
|
* Special keywords are 'body' for document body and 'self' for the element itself.
|
|
150
|
+
* @see AutoCompleteAppendTo
|
|
107
151
|
* Default value is body.
|
|
108
152
|
*/
|
|
109
153
|
appendTo?: AutoCompleteAppendTo;
|
|
@@ -115,6 +159,10 @@ export interface AutoCompleteProps {
|
|
|
115
159
|
* Whether to run a query when input receives focus.
|
|
116
160
|
*/
|
|
117
161
|
completeOnFocus?: boolean | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Identifier of the underlying input element.
|
|
164
|
+
*/
|
|
165
|
+
inputId?: string | undefined;
|
|
118
166
|
/**
|
|
119
167
|
* Inline style of the input field.
|
|
120
168
|
*/
|
|
@@ -122,19 +170,23 @@ export interface AutoCompleteProps {
|
|
|
122
170
|
/**
|
|
123
171
|
* Style class of the input field.
|
|
124
172
|
*/
|
|
125
|
-
inputClass?:
|
|
173
|
+
inputClass?: any;
|
|
126
174
|
/**
|
|
127
|
-
*
|
|
175
|
+
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
|
|
128
176
|
*/
|
|
129
|
-
|
|
177
|
+
inputProps?: HTMLInputElement | undefined;
|
|
130
178
|
/**
|
|
131
|
-
*
|
|
179
|
+
* Inline style of the overlay panel.
|
|
132
180
|
*/
|
|
133
|
-
|
|
181
|
+
panelStyle?: any;
|
|
134
182
|
/**
|
|
135
183
|
* Style class of the overlay panel.
|
|
136
184
|
*/
|
|
137
185
|
panelClass?: any;
|
|
186
|
+
/**
|
|
187
|
+
* Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.
|
|
188
|
+
*/
|
|
189
|
+
panelProps?: HTMLDivElement | undefined;
|
|
138
190
|
/**
|
|
139
191
|
* Icon to display in loading state.
|
|
140
192
|
* Default value is 'pi pi-spinner pi-spin'.
|
|
@@ -145,36 +197,59 @@ export interface AutoCompleteProps {
|
|
|
145
197
|
* @see VirtualScroller.VirtualScrollerProps
|
|
146
198
|
*/
|
|
147
199
|
virtualScrollerOptions?: VirtualScrollerProps;
|
|
200
|
+
/**
|
|
201
|
+
* Whether to focus on the first visible or selected element when the overlay panel is shown.
|
|
202
|
+
* Default value is true.
|
|
203
|
+
*/
|
|
204
|
+
autoOptionFocus?: boolean | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Locale to use in searching. The default locale is the host environment's current locale.
|
|
207
|
+
*/
|
|
208
|
+
searchLocale?: string | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* Text to be displayed in hidden accessible field when filtering returns any results. Defaults to value from PrimeVue locale configuration.
|
|
211
|
+
* Default value is '{0} results are available'.
|
|
212
|
+
*/
|
|
213
|
+
searchMessage?: string | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* Text to be displayed in hidden accessible field when options are selected. Defaults to value from PrimeVue locale configuration.
|
|
216
|
+
* Default value is '{0} items selected'.
|
|
217
|
+
*/
|
|
218
|
+
selectionMessage?: string | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* Text to be displayed in hidden accessible field when any option is not selected. Defaults to value from PrimeVue locale configuration.
|
|
221
|
+
* Default value is 'No selected item'.
|
|
222
|
+
*/
|
|
223
|
+
emptySelectionMessage?: string | undefined;
|
|
224
|
+
/**
|
|
225
|
+
* Text to display when filtering does not return any results. Defaults to value from PrimeVue locale configuration.
|
|
226
|
+
* Default value is 'No results found'.
|
|
227
|
+
*/
|
|
228
|
+
emptySearchMessage?: string | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* Index of the element in tabbing order.
|
|
231
|
+
*/
|
|
232
|
+
tabindex?: number | string | undefined;
|
|
233
|
+
/**
|
|
234
|
+
* Defines a string value that labels an interactive element.
|
|
235
|
+
*/
|
|
236
|
+
"aria-label"?: string | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* Identifier of the underlying input element.
|
|
239
|
+
*/
|
|
240
|
+
"aria-labelledby"?: string | undefined;
|
|
148
241
|
}
|
|
149
242
|
|
|
150
243
|
export interface AutoCompleteSlots {
|
|
151
244
|
/**
|
|
152
|
-
* Custom
|
|
153
|
-
* @param {Object} scope -
|
|
154
|
-
*/
|
|
155
|
-
item: (scope: {
|
|
156
|
-
/**
|
|
157
|
-
* Option instance
|
|
158
|
-
*/
|
|
159
|
-
item: any;
|
|
160
|
-
/**
|
|
161
|
-
* Index of the option
|
|
162
|
-
*/
|
|
163
|
-
index: number;
|
|
164
|
-
}) => VNode[];
|
|
165
|
-
/**
|
|
166
|
-
* Custom option group template.
|
|
167
|
-
* @param {Object} scope - option group slot's params.
|
|
245
|
+
* Custom chip template.
|
|
246
|
+
* @param {Object} scope - chip slot's params.
|
|
168
247
|
*/
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Option instance
|
|
172
|
-
*/
|
|
173
|
-
item: any;
|
|
248
|
+
chip: (scope: {
|
|
174
249
|
/**
|
|
175
|
-
*
|
|
250
|
+
* A value in the selection
|
|
176
251
|
*/
|
|
177
|
-
|
|
252
|
+
value: any;
|
|
178
253
|
}) => VNode[];
|
|
179
254
|
/**
|
|
180
255
|
* Custom header template of panel.
|
|
@@ -205,14 +280,52 @@ export interface AutoCompleteSlots {
|
|
|
205
280
|
suggestions: any[];
|
|
206
281
|
}) => VNode[];
|
|
207
282
|
/**
|
|
208
|
-
*
|
|
209
|
-
*
|
|
283
|
+
* @deprecated since v3.16.0
|
|
284
|
+
* Custom content for each item.
|
|
285
|
+
* @param {Object} scope - item slot's params.
|
|
210
286
|
*/
|
|
211
|
-
|
|
287
|
+
item: (scope: {
|
|
212
288
|
/**
|
|
213
|
-
*
|
|
289
|
+
* Option instance
|
|
214
290
|
*/
|
|
215
|
-
|
|
291
|
+
item: any;
|
|
292
|
+
/**
|
|
293
|
+
* Index of the option
|
|
294
|
+
*/
|
|
295
|
+
index: number;
|
|
296
|
+
}) => VNode[];
|
|
297
|
+
/**
|
|
298
|
+
* Custom option template.
|
|
299
|
+
* @param {Object} scope - option slot's params.
|
|
300
|
+
*/
|
|
301
|
+
option: (scope: {
|
|
302
|
+
/**
|
|
303
|
+
* Option instance
|
|
304
|
+
*/
|
|
305
|
+
option: any;
|
|
306
|
+
/**
|
|
307
|
+
* Index of the option
|
|
308
|
+
*/
|
|
309
|
+
index: number;
|
|
310
|
+
}) => VNode[];
|
|
311
|
+
/**
|
|
312
|
+
* Custom option group template.
|
|
313
|
+
* @param {Object} scope - option group slot's params.
|
|
314
|
+
*/
|
|
315
|
+
optiongroup: (scope: {
|
|
316
|
+
/**
|
|
317
|
+
* @deprecated since v3.16.0. Use the 'option' instead.
|
|
318
|
+
* Option instance
|
|
319
|
+
*/
|
|
320
|
+
item: any;
|
|
321
|
+
/**
|
|
322
|
+
* Option instance
|
|
323
|
+
*/
|
|
324
|
+
option: any;
|
|
325
|
+
/**
|
|
326
|
+
* Index of the option
|
|
327
|
+
*/
|
|
328
|
+
index: number;
|
|
216
329
|
}) => VNode[];
|
|
217
330
|
/**
|
|
218
331
|
* Custom panel template.
|
|
@@ -257,6 +370,21 @@ export declare type AutoCompleteEmits = {
|
|
|
257
370
|
* @param {*} value - New value.
|
|
258
371
|
*/
|
|
259
372
|
'update:modelValue': (value: any) => void;
|
|
373
|
+
/**
|
|
374
|
+
* Callback to invoke on value change.
|
|
375
|
+
* @param {AutoCompleteChangeEvent} event - Custom change event.
|
|
376
|
+
*/
|
|
377
|
+
'change': (event: AutoCompleteChangeEvent) => void;
|
|
378
|
+
/**
|
|
379
|
+
* Callback to invoke when the component receives focus.
|
|
380
|
+
* @param {Event} event - Browser event.
|
|
381
|
+
*/
|
|
382
|
+
'focus': (event: Event) => void;
|
|
383
|
+
/**
|
|
384
|
+
* Callback to invoke when the component loses focus.
|
|
385
|
+
* @param {Event} event - Browser event.
|
|
386
|
+
*/
|
|
387
|
+
'blur': (event: Event) => void;
|
|
260
388
|
/**
|
|
261
389
|
* Callback to invoke when a suggestion is selected.
|
|
262
390
|
* @param {AutoCompleteItemSelectEvent} event - Custom item select event.
|
|
@@ -272,15 +400,31 @@ export declare type AutoCompleteEmits = {
|
|
|
272
400
|
* @param {AutoCompleteDropdownClickEvent} event - Custom dropdown click event.
|
|
273
401
|
*/
|
|
274
402
|
'dropdown-click': (event: AutoCompleteDropdownClickEvent) => void;
|
|
403
|
+
/**
|
|
404
|
+
* Callback to invoke when input is cleared by the user.
|
|
405
|
+
*/
|
|
406
|
+
'clear': () => void;
|
|
275
407
|
/**
|
|
276
408
|
* Callback to invoke to search for suggestions.
|
|
277
409
|
* @param {AutoCompleteCompleteEvent} event - Custom complete event.
|
|
278
410
|
*/
|
|
279
411
|
'complete': (event: AutoCompleteCompleteEvent) => void;
|
|
280
412
|
/**
|
|
281
|
-
* Callback to invoke
|
|
413
|
+
* Callback to invoke before the overlay is shown.
|
|
282
414
|
*/
|
|
283
|
-
'
|
|
415
|
+
'before-show': () => void;
|
|
416
|
+
/**
|
|
417
|
+
* Callback to invoke before the overlay is hidden.
|
|
418
|
+
*/
|
|
419
|
+
'before-hide': () => void;
|
|
420
|
+
/**
|
|
421
|
+
* Callback to invoke when the overlay is shown.
|
|
422
|
+
*/
|
|
423
|
+
'show': () => void;
|
|
424
|
+
/**
|
|
425
|
+
* Callback to invoke when the overlay is hidden.
|
|
426
|
+
*/
|
|
427
|
+
'hide': () => void;
|
|
284
428
|
}
|
|
285
429
|
|
|
286
430
|
declare class AutoComplete extends ClassComponent<AutoCompleteProps, AutoCompleteSlots, AutoCompleteEmits> { }
|