primevue 3.8.2 → 3.11.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/README.md +2 -2
- package/accordion/Accordion.d.ts +74 -11
- package/accordion/accordion.esm.js +1 -1
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -1
- package/accordiontab/AccordionTab.d.ts +37 -8
- package/accordiontab/accordiontab.esm.js +1 -1
- package/accordiontab/accordiontab.esm.min.js +1 -1
- package/accordiontab/accordiontab.js +1 -1
- package/api/Api.d.ts +292 -251
- package/api/api.cjs.js +66 -32
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +66 -32
- package/api/api.esm.min.js +1 -1
- package/api/api.js +67 -33
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +280 -63
- package/autocomplete/AutoComplete.vue +16 -9
- package/autocomplete/autocomplete.cjs.js +23 -15
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +20 -12
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +24 -16
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +57 -8
- package/avatar/avatar.esm.js +1 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +29 -3
- package/avatargroup/avatargroup.esm.js +1 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +1 -1
- package/badge/Badge.d.ts +46 -5
- package/badge/badge.esm.js +1 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +1 -1
- package/badgedirective/badgedirective.esm.js +1 -1
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +1 -1
- package/blockui/BlockUI.d.ts +52 -11
- package/blockui/blockui.esm.js +1 -1
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +49 -9
- package/breadcrumb/BreadcrumbItem.vue +5 -2
- package/breadcrumb/breadcrumb.cjs.js +5 -2
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +6 -3
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +6 -3
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/Button.d.ts +68 -11
- package/button/button.cjs.js +1 -1
- package/button/button.esm.js +1 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +2 -2
- package/calendar/Calendar.d.ts +320 -58
- package/calendar/Calendar.vue +406 -84
- package/calendar/calendar.cjs.js +521 -204
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +521 -203
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +523 -205
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +43 -9
- package/card/card.esm.js +1 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +1 -1
- package/carousel/Carousel.d.ts +121 -24
- package/carousel/Carousel.vue +2 -2
- package/carousel/carousel.cjs.js +7 -7
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +7 -7
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +8 -8
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +172 -35
- package/cascadeselect/cascadeselect.cjs.js +2 -2
- package/cascadeselect/cascadeselect.esm.js +1 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +3 -3
- package/chart/Chart.d.ts +104 -12
- package/chart/Chart.vue +18 -4
- package/chart/chart.cjs.js +20 -8
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +19 -5
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +19 -5
- package/chart/chart.min.js +1 -1
- package/checkbox/Checkbox.d.ts +66 -8
- package/checkbox/checkbox.esm.js +1 -1
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +1 -1
- package/chip/Chip.d.ts +50 -4
- package/chip/chip.esm.js +1 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +1 -1
- package/chips/Chips.d.ts +88 -15
- package/chips/chips.esm.js +1 -1
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +1 -1
- package/colorpicker/ColorPicker.d.ts +105 -13
- package/colorpicker/ColorPicker.vue +6 -1
- package/colorpicker/colorpicker.cjs.js +7 -2
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +7 -2
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +8 -3
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +448 -78
- package/column/column.esm.js +1 -1
- package/column/column.esm.min.js +1 -1
- package/column/column.js +1 -1
- package/columngroup/ColumnGroup.d.ts +30 -4
- package/columngroup/columngroup.esm.js +1 -1
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +1 -1
- package/config/config.cjs.js +1 -1
- package/config/config.esm.js +1 -2
- package/config/config.esm.min.js +1 -1
- package/config/config.js +2 -2
- package/confirmationeventbus/confirmationeventbus.esm.js +1 -1
- package/confirmationeventbus/confirmationeventbus.esm.min.js +1 -1
- package/confirmationeventbus/confirmationeventbus.js +1 -1
- package/confirmationoptions/ConfirmationOptions.d.ts +58 -0
- package/confirmationoptions/package.json +3 -0
- package/confirmationservice/ConfirmationService.d.ts +2 -1
- package/confirmationservice/confirmationservice.cjs.js +2 -2
- package/confirmationservice/confirmationservice.esm.js +1 -1
- package/confirmationservice/confirmationservice.esm.min.js +1 -1
- package/confirmationservice/confirmationservice.js +3 -3
- package/confirmdialog/ConfirmDialog.d.ts +57 -5
- package/confirmdialog/ConfirmDialog.vue +8 -2
- package/confirmdialog/confirmdialog.cjs.js +17 -10
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +12 -5
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +18 -11
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +41 -3
- package/confirmpopup/ConfirmPopup.vue +7 -4
- package/confirmpopup/confirmpopup.cjs.js +19 -11
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +15 -7
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +20 -12
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +88 -16
- package/contextmenu/ContextMenuSub.vue +7 -4
- package/contextmenu/contextmenu.cjs.js +8 -5
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +8 -5
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +9 -6
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +861 -383
- package/core/core.min.js +15 -13
- package/datatable/BodyCell.vue +27 -1
- package/datatable/ColumnFilter.vue +17 -6
- package/datatable/DataTable.d.ts +1056 -130
- package/datatable/DataTable.vue +150 -131
- package/datatable/HeaderCheckbox.vue +5 -2
- package/datatable/RowCheckbox.vue +1 -1
- package/datatable/RowRadioButton.vue +1 -1
- package/datatable/TableBody.vue +57 -14
- package/datatable/TableFooter.vue +15 -1
- package/datatable/TableHeader.vue +15 -1
- package/datatable/datatable.cjs.js +542 -381
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +533 -373
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +543 -383
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +198 -32
- package/dataview/DataView.vue +8 -8
- package/dataview/dataview.cjs.js +13 -13
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +13 -13
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +14 -14
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +34 -5
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +1 -1
- package/deferredcontent/DeferredContent.d.ts +31 -6
- package/deferredcontent/deferredcontent.esm.js +1 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +1 -1
- package/dialog/Dialog.d.ts +187 -34
- package/dialog/Dialog.vue +1 -1
- package/dialog/dialog.cjs.js +2 -3
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +2 -3
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +3 -4
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +53 -8
- package/divider/divider.esm.js +1 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +1 -1
- package/dock/Dock.d.ts +92 -15
- package/dock/DockSub.vue +3 -1
- package/dock/dock.cjs.js +4 -1
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +4 -2
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +5 -3
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +340 -76
- package/dropdown/Dropdown.vue +1 -1
- package/dropdown/dropdown.cjs.js +4 -4
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +2 -2
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +5 -5
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.d.ts +78 -11
- package/editor/editor.cjs.js +1 -1
- package/editor/editor.esm.js +1 -1
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +2 -2
- package/fieldset/Fieldset.d.ts +63 -11
- package/fieldset/fieldset.cjs.js +1 -1
- package/fieldset/fieldset.esm.js +1 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +2 -2
- package/fileupload/FileUpload.d.ts +255 -37
- package/fileupload/fileupload.cjs.js +4 -4
- package/fileupload/fileupload.esm.js +1 -1
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +5 -5
- package/fullcalendar/FullCalendar.d.ts +29 -3
- package/fullcalendar/fullcalendar.esm.js +1 -1
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +1 -1
- package/galleria/Galleria.d.ts +196 -46
- package/galleria/galleria.cjs.js +3 -3
- package/galleria/galleria.esm.js +1 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +4 -4
- package/image/Image.d.ts +51 -6
- package/image/image.esm.js +1 -1
- package/image/image.esm.min.js +1 -1
- package/image/image.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +34 -6
- package/inlinemessage/inlinemessage.esm.js +1 -1
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +1 -1
- package/inplace/Inplace.d.ts +57 -12
- package/inplace/inplace.cjs.js +1 -1
- package/inplace/inplace.esm.js +1 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -2
- package/inputmask/InputMask.d.ts +75 -15
- package/inputmask/inputmask.esm.js +1 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +1 -1
- package/inputnumber/InputNumber.d.ts +180 -30
- package/inputnumber/InputNumber.vue +19 -3
- package/inputnumber/inputnumber.cjs.js +21 -5
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +20 -4
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +22 -6
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +61 -9
- package/inputswitch/inputswitch.esm.js +1 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +1 -1
- package/inputtext/InputText.d.ts +34 -5
- package/inputtext/InputText.vue +1 -1
- package/inputtext/inputtext.cjs.js +2 -2
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +4 -4
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +3 -3
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +92 -18
- package/knob/knob.esm.js +1 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +1 -1
- package/listbox/Listbox.d.ts +246 -56
- package/listbox/listbox.cjs.js +2 -2
- package/listbox/listbox.esm.js +1 -1
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +3 -3
- package/megamenu/MegaMenu.d.ts +60 -12
- package/megamenu/MegaMenu.vue +10 -7
- package/megamenu/megamenu.cjs.js +11 -8
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +11 -8
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +12 -9
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +84 -15
- package/menu/Menu.vue +6 -3
- package/menu/Menuitem.vue +5 -2
- package/menu/menu.cjs.js +13 -7
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +12 -6
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +14 -8
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +52 -11
- package/menubar/Menubar.vue +1 -0
- package/menubar/MenubarSub.vue +7 -4
- package/menubar/menubar.cjs.js +9 -6
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +9 -6
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +10 -7
- package/menubar/menubar.min.js +1 -1
- package/menuitem/MenuItem.d.ts +82 -0
- package/menuitem/package.json +3 -0
- package/message/Message.d.ts +57 -10
- package/message/Message.vue +6 -2
- package/message/message.cjs.js +7 -3
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +7 -3
- package/message/message.esm.min.js +1 -1
- package/message/message.js +8 -4
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +368 -83
- package/multiselect/multiselect.cjs.js +3 -3
- package/multiselect/multiselect.esm.js +1 -1
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +4 -4
- package/orderlist/OrderList.d.ts +122 -17
- package/orderlist/OrderList.vue +2 -0
- package/orderlist/orderlist.cjs.js +5 -3
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +4 -2
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +6 -4
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +137 -15
- package/organizationchart/OrganizationChart.vue +1 -0
- package/organizationchart/organizationchart.cjs.js +1 -1
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +2 -2
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +2 -2
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlayeventbus/overlayeventbus.esm.js +1 -1
- package/overlayeventbus/overlayeventbus.esm.min.js +1 -1
- package/overlayeventbus/overlayeventbus.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +107 -12
- package/overlaypanel/overlaypanel.cjs.js +5 -5
- package/overlaypanel/overlaypanel.esm.js +1 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +6 -6
- package/package.json +5 -1
- package/paginator/Paginator.d.ts +129 -27
- package/paginator/Paginator.vue +4 -4
- package/paginator/paginator.cjs.js +12 -12
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +5 -5
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +13 -13
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +64 -8
- package/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +1 -1
- package/panel/panel.esm.js +1 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +2 -2
- package/panelmenu/PanelMenu.d.ts +59 -11
- package/panelmenu/PanelMenu.vue +8 -5
- package/panelmenu/PanelMenuSub.vue +8 -5
- package/panelmenu/panelmenu.cjs.js +18 -12
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +19 -13
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +19 -13
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.d.ts +115 -24
- package/password/password.cjs.js +2 -2
- package/password/password.esm.js +1 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +3 -3
- package/picklist/PickList.d.ts +199 -26
- package/picklist/PickList.vue +10 -4
- package/picklist/picklist.cjs.js +15 -9
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +14 -8
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +16 -10
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +43 -8
- package/progressbar/ProgressBar.vue +13 -12
- package/progressbar/progressbar.cjs.js +13 -12
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +15 -14
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +14 -13
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/ProgressSpinner.d.ts +39 -6
- package/progressspinner/progressspinner.esm.js +1 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +1 -1
- package/radiobutton/RadioButton.d.ts +52 -7
- package/radiobutton/radiobutton.esm.js +1 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +1 -1
- package/rating/Rating.d.ts +67 -10
- package/rating/Rating.vue +1 -1
- package/rating/rating.cjs.js +1 -1
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +2 -2
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +2 -2
- package/rating/rating.min.js +1 -1
- package/resources/primevue.css +5 -0
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +81 -33
- package/resources/themes/arya-green/theme.css +81 -33
- package/resources/themes/arya-orange/theme.css +81 -33
- package/resources/themes/arya-purple/theme.css +81 -33
- package/resources/themes/bootstrap4-dark-blue/theme.css +62 -21
- package/resources/themes/bootstrap4-dark-purple/theme.css +62 -21
- package/resources/themes/bootstrap4-light-blue/theme.css +62 -21
- package/resources/themes/bootstrap4-light-purple/theme.css +62 -21
- package/resources/themes/fluent-light/theme.css +81 -33
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/theme.css +5421 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/theme.css +5421 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/theme.css +5421 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/theme.css +5421 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-blue/theme.css +5421 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/theme.css +5421 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-purple/theme.css +5421 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-teal/theme.css +5421 -0
- package/resources/themes/luna-amber/theme.css +78 -37
- package/resources/themes/luna-blue/theme.css +78 -37
- package/resources/themes/luna-green/theme.css +78 -37
- package/resources/themes/luna-pink/theme.css +78 -37
- package/resources/themes/md-dark-deeppurple/theme.css +252 -48
- package/resources/themes/md-dark-indigo/theme.css +252 -48
- package/resources/themes/md-light-deeppurple/theme.css +252 -48
- package/resources/themes/md-light-indigo/theme.css +252 -48
- package/resources/themes/mdc-dark-deeppurple/theme.css +252 -48
- package/resources/themes/mdc-dark-indigo/theme.css +252 -48
- package/resources/themes/mdc-light-deeppurple/theme.css +252 -48
- package/resources/themes/mdc-light-indigo/theme.css +252 -48
- package/resources/themes/nova/theme.css +78 -37
- package/resources/themes/nova-accent/theme.css +78 -37
- package/resources/themes/nova-alt/theme.css +78 -37
- package/resources/themes/nova-vue/theme.css +78 -37
- package/resources/themes/rhea/theme.css +78 -37
- package/resources/themes/saga-blue/theme.css +65 -17
- package/resources/themes/saga-green/theme.css +65 -17
- package/resources/themes/saga-orange/theme.css +65 -17
- package/resources/themes/saga-purple/theme.css +65 -17
- package/resources/themes/tailwind-light/theme.css +92 -36
- package/resources/themes/vela-blue/theme.css +81 -33
- package/resources/themes/vela-green/theme.css +81 -33
- package/resources/themes/vela-orange/theme.css +81 -33
- package/resources/themes/vela-purple/theme.css +81 -33
- package/ripple/ripple.esm.js +1 -1
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +1 -1
- package/row/Row.d.ts +25 -3
- package/row/row.esm.js +1 -1
- package/row/row.esm.min.js +1 -1
- package/row/row.js +1 -1
- package/scrollpanel/ScrollPanel.d.ts +27 -5
- package/scrollpanel/scrollpanel.esm.js +1 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +1 -1
- package/scrolltop/ScrollTop.d.ts +47 -7
- package/scrolltop/scrolltop.esm.js +1 -1
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +1 -1
- package/selectbutton/SelectButton.d.ts +108 -19
- package/selectbutton/SelectButton.vue +8 -2
- package/selectbutton/selectbutton.cjs.js +15 -10
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +15 -10
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +16 -11
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/Sidebar.d.ts +81 -16
- package/sidebar/sidebar.cjs.js +1 -1
- package/sidebar/sidebar.esm.js +1 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +2 -2
- package/skeleton/Skeleton.d.ts +58 -9
- package/skeleton/skeleton.esm.js +1 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +1 -1
- package/slider/Slider.d.ts +90 -14
- package/slider/slider.esm.js +1 -1
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +1 -1
- package/speeddial/SpeedDial.d.ts +166 -29
- package/speeddial/SpeedDial.vue +3 -1
- package/speeddial/speeddial.cjs.js +5 -2
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +4 -2
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +6 -4
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +76 -11
- package/splitbutton/SplitButton.vue +3 -1
- package/splitbutton/splitbutton.cjs.js +15 -13
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +15 -13
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +16 -14
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +74 -7
- package/splitter/Splitter.vue +5 -5
- package/splitter/splitter.cjs.js +1 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +2 -2
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +2 -2
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/SplitterPanel.d.ts +34 -7
- package/splitterpanel/splitterpanel.esm.js +1 -1
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +1 -1
- package/steps/Steps.d.ts +51 -11
- package/steps/Steps.vue +5 -2
- package/steps/steps.cjs.js +5 -2
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +6 -3
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +6 -3
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.esm.js +1 -1
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +1 -1
- package/tabmenu/TabMenu.d.ts +63 -10
- package/tabmenu/TabMenu.vue +6 -3
- package/tabmenu/tabmenu.cjs.js +7 -4
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +7 -4
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +8 -5
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +38 -7
- package/tabpanel/tabpanel.esm.js +1 -1
- package/tabpanel/tabpanel.esm.min.js +1 -1
- package/tabpanel/tabpanel.js +1 -1
- package/tabview/TabView.d.ts +73 -11
- package/tabview/tabview.cjs.js +1 -1
- package/tabview/tabview.esm.js +1 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +2 -2
- package/tag/Tag.d.ts +44 -8
- package/tag/Tag.vue +1 -1
- package/tag/tag.cjs.js +6 -6
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +8 -8
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +7 -7
- package/tag/tag.min.js +1 -1
- package/terminal/Terminal.d.ts +36 -5
- package/terminal/terminal.cjs.js +3 -3
- package/terminal/terminal.esm.js +1 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +4 -4
- package/terminalservice/TerminalService.d.ts +9 -6
- package/terminalservice/terminalservice.esm.js +1 -1
- package/terminalservice/terminalservice.esm.min.js +1 -1
- package/terminalservice/terminalservice.js +1 -1
- package/textarea/Textarea.d.ts +38 -6
- package/textarea/textarea.esm.js +1 -1
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +89 -15
- package/tieredmenu/TieredMenuSub.vue +7 -4
- package/tieredmenu/tieredmenu.cjs.js +9 -6
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +8 -5
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +10 -7
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +94 -15
- package/timeline/timeline.esm.js +1 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +1 -1
- package/toast/Toast.d.ts +118 -12
- package/toast/toast.cjs.js +7 -7
- package/toast/toast.esm.js +1 -1
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +8 -8
- package/toasteventbus/toasteventbus.esm.js +1 -1
- package/toasteventbus/toasteventbus.esm.min.js +1 -1
- package/toasteventbus/toasteventbus.js +1 -1
- package/toastservice/ToastService.d.ts +17 -5
- package/toastservice/toastservice.cjs.js +3 -3
- package/toastservice/toastservice.esm.js +1 -1
- package/toastservice/toastservice.esm.min.js +1 -1
- package/toastservice/toastservice.js +4 -4
- package/togglebutton/ToggleButton.d.ts +64 -11
- package/togglebutton/togglebutton.cjs.js +1 -1
- package/togglebutton/togglebutton.esm.js +1 -1
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +2 -2
- package/toolbar/Toolbar.d.ts +31 -6
- package/toolbar/Toolbar.vue +2 -2
- package/toolbar/toolbar.cjs.js +2 -2
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +3 -3
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +3 -3
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.esm.js +1 -1
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +1 -1
- package/tree/Tree.d.ts +189 -26
- package/tree/Tree.vue +1 -0
- package/tree/TreeNode.vue +4 -1
- package/tree/tree.cjs.js +6 -3
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +6 -3
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +7 -4
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +201 -44
- package/treeselect/TreeSelect.vue +9 -0
- package/treeselect/treeselect.cjs.js +12 -3
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +10 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +13 -4
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BodyCell.vue +3 -3
- package/treetable/TreeTable.d.ts +459 -63
- package/treetable/TreeTable.vue +9 -9
- package/treetable/treetable.cjs.js +17 -17
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +16 -16
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +18 -18
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +40 -6
- package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +1 -1
- package/ts-helpers.d.ts +28 -0
- package/useconfirm/UseConfirm.d.ts +5 -19
- package/useconfirm/useconfirm.js +1 -1
- package/usetoast/UseToast.d.ts +3 -5
- package/usetoast/usetoast.js +1 -1
- package/utils/Utils.d.ts +3 -0
- package/utils/utils.cjs.js +41 -4
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +41 -4
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +42 -5
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +66 -30
- package/vetur-tags.json +16 -7
- package/virtualscroller/VirtualScroller.d.ts +294 -53
- package/virtualscroller/VirtualScroller.vue +296 -255
- package/virtualscroller/virtualscroller.cjs.js +325 -266
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +326 -267
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +326 -267
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +296 -47
|
@@ -125,6 +125,9 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
125
125
|
getOptionIndex(index, fn) {
|
|
126
126
|
return this.virtualScrollerDisabled ? index : (fn && fn(index)['index']);
|
|
127
127
|
},
|
|
128
|
+
getOptionRenderKey(option) {
|
|
129
|
+
return this.getItemContent(option);
|
|
130
|
+
},
|
|
128
131
|
getOptionGroupRenderKey(optionGroup) {
|
|
129
132
|
return utils.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
|
|
130
133
|
},
|
|
@@ -142,7 +145,7 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
142
145
|
this.bindResizeListener();
|
|
143
146
|
|
|
144
147
|
if (this.autoHighlight && this.suggestions && this.suggestions.length) {
|
|
145
|
-
utils.DomHandler.addClass(this.
|
|
148
|
+
utils.DomHandler.addClass(this.list.firstElementChild, 'p-highlight');
|
|
146
149
|
}
|
|
147
150
|
},
|
|
148
151
|
onOverlayLeave() {
|
|
@@ -344,7 +347,7 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
344
347
|
},
|
|
345
348
|
onKeyDown(event) {
|
|
346
349
|
if (this.overlayVisible) {
|
|
347
|
-
let highlightItem = utils.DomHandler.findSingle(this.
|
|
350
|
+
let highlightItem = utils.DomHandler.findSingle(this.list, 'li.p-highlight');
|
|
348
351
|
|
|
349
352
|
switch(event.which) {
|
|
350
353
|
//down
|
|
@@ -354,11 +357,11 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
354
357
|
if (nextElement) {
|
|
355
358
|
utils.DomHandler.addClass(nextElement, 'p-highlight');
|
|
356
359
|
utils.DomHandler.removeClass(highlightItem, 'p-highlight');
|
|
357
|
-
|
|
360
|
+
nextElement.scrollIntoView({ block: 'nearest', inline: 'start' });
|
|
358
361
|
}
|
|
359
362
|
}
|
|
360
363
|
else {
|
|
361
|
-
highlightItem = this.
|
|
364
|
+
highlightItem = this.list.firstElementChild;
|
|
362
365
|
if (utils.DomHandler.hasClass(highlightItem, 'p-autocomplete-item-group')) {
|
|
363
366
|
highlightItem = this.findNextItem(highlightItem);
|
|
364
367
|
}
|
|
@@ -378,7 +381,7 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
378
381
|
if (previousElement) {
|
|
379
382
|
utils.DomHandler.addClass(previousElement, 'p-highlight');
|
|
380
383
|
utils.DomHandler.removeClass(highlightItem, 'p-highlight');
|
|
381
|
-
|
|
384
|
+
previousElement.scrollIntoView({ block: 'nearest', inline: 'start' });
|
|
382
385
|
}
|
|
383
386
|
}
|
|
384
387
|
|
|
@@ -436,7 +439,7 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
436
439
|
this.selectItem(event, this.getOptionGroupChildren(optionGroup)[item.dataset.index]);
|
|
437
440
|
}
|
|
438
441
|
else {
|
|
439
|
-
this.selectItem(event, this.suggestions[
|
|
442
|
+
this.selectItem(event, this.suggestions[item.dataset.index]);
|
|
440
443
|
}
|
|
441
444
|
},
|
|
442
445
|
findNextItem(item) {
|
|
@@ -497,11 +500,15 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
497
500
|
overlayRef(el) {
|
|
498
501
|
this.overlay = el;
|
|
499
502
|
},
|
|
503
|
+
listRef(el, contentRef) {
|
|
504
|
+
this.list = el;
|
|
505
|
+
contentRef && contentRef(el); // for virtualScroller
|
|
506
|
+
},
|
|
500
507
|
virtualScrollerRef(el) {
|
|
501
508
|
this.virtualScroller = el;
|
|
502
509
|
},
|
|
503
510
|
onOverlayClick(event) {
|
|
504
|
-
OverlayEventBus__default[
|
|
511
|
+
OverlayEventBus__default["default"].emit('overlay-click', {
|
|
505
512
|
originalEvent: event,
|
|
506
513
|
target: this.$el
|
|
507
514
|
});
|
|
@@ -562,11 +569,11 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
562
569
|
}
|
|
563
570
|
},
|
|
564
571
|
components: {
|
|
565
|
-
'Button': Button__default[
|
|
566
|
-
'VirtualScroller': VirtualScroller__default[
|
|
572
|
+
'Button': Button__default["default"],
|
|
573
|
+
'VirtualScroller': VirtualScroller__default["default"]
|
|
567
574
|
},
|
|
568
575
|
directives: {
|
|
569
|
-
'ripple': Ripple__default[
|
|
576
|
+
'ripple': Ripple__default["default"]
|
|
570
577
|
}
|
|
571
578
|
};
|
|
572
579
|
|
|
@@ -696,7 +703,7 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
696
703
|
content: vue.withCtx(({ styleClass, contentRef, items, getItemOptions }) => [
|
|
697
704
|
vue.createVNode("ul", {
|
|
698
705
|
id: $options.listId,
|
|
699
|
-
ref: contentRef,
|
|
706
|
+
ref: (el) => $options.listRef(el, contentRef),
|
|
700
707
|
class: ['p-autocomplete-items', styleClass],
|
|
701
708
|
role: "listbox"
|
|
702
709
|
}, [
|
|
@@ -704,9 +711,10 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
704
711
|
? (vue.openBlock(true), vue.createBlock(vue.Fragment, { key: 0 }, vue.renderList(items, (item, i) => {
|
|
705
712
|
return vue.withDirectives((vue.openBlock(), vue.createBlock("li", {
|
|
706
713
|
class: "p-autocomplete-item",
|
|
707
|
-
key:
|
|
714
|
+
key: $options.getOptionRenderKey(item),
|
|
708
715
|
onClick: $event => ($options.selectItem($event, item)),
|
|
709
|
-
role: "option"
|
|
716
|
+
role: "option",
|
|
717
|
+
"data-index": $options.getOptionIndex(i, getItemOptions)
|
|
710
718
|
}, [
|
|
711
719
|
vue.renderSlot(_ctx.$slots, "item", {
|
|
712
720
|
item: item,
|
|
@@ -714,7 +722,7 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
714
722
|
}, () => [
|
|
715
723
|
vue.createTextVNode(vue.toDisplayString($options.getItemContent(item)), 1)
|
|
716
724
|
])
|
|
717
|
-
], 8, ["onClick"])), [
|
|
725
|
+
], 8, ["onClick", "data-index"])), [
|
|
718
726
|
[_directive_ripple]
|
|
719
727
|
])
|
|
720
728
|
}), 128))
|
|
@@ -737,7 +745,7 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
737
745
|
onClick: $event => ($options.selectItem($event, item)),
|
|
738
746
|
role: "option",
|
|
739
747
|
"data-group": i,
|
|
740
|
-
"data-index": j
|
|
748
|
+
"data-index": $options.getOptionIndex(j, getItemOptions)
|
|
741
749
|
}, [
|
|
742
750
|
vue.renderSlot(_ctx.$slots, "item", {
|
|
743
751
|
item: item,
|
|
@@ -811,4 +819,4 @@ this.primevue.autocomplete = (function (utils, OverlayEventBus, Button, Ripple,
|
|
|
811
819
|
|
|
812
820
|
return script;
|
|
813
821
|
|
|
814
|
-
}(primevue.utils, primevue.overlayeventbus, primevue.button, primevue.ripple, primevue.virtualscroller, Vue)
|
|
822
|
+
})(primevue.utils, primevue.overlayeventbus, primevue.button, primevue.ripple, primevue.virtualscroller, Vue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.autocomplete=function(e,t,i,l,n,o){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=s(t),a=s(i),u=s(l),p=s(n),d={name:"AutoComplete",inheritAttrs:!1,emits:["update:modelValue","item-select","item-unselect","dropdown-click","clear","complete"],props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputClass:null,inputStyle:null,class:null,style:null,panelClass:null,virtualScrollerOptions:{type:Object,default:null}},timeout:null,outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,data:()=>({searching:!1,focused:!1,overlayVisible:!1,inputTextValue:null,highlightItem:null}),watch:{suggestions(){this.searching&&(this.suggestions&&this.suggestions.length?this.showOverlay():this.hideOverlay(),this.searching=!1)}},beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(e.ZIndexUtils.clear(this.overlay),this.overlay=null)},updated(){this.overlayVisible&&this.alignOverlay()},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionGroupRenderKey(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupLabel(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupChildren(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupChildren)},onOverlayEnter(t){e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay),this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoHighlight&&this.suggestions&&this.suggestions.length&&e.DomHandler.addClass(this.overlay.firstElementChild.firstElementChild,"p-highlight")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null},onOverlayAfterLeave(t){e.ZIndexUtils.clear(t)},alignOverlay(){let t=this.multiple?this.$refs.multiContainer:this.$refs.input;this.appendDisabled?e.DomHandler.relativePosition(this.overlay,t):(this.overlay.style.minWidth=e.DomHandler.getOuterWidth(t)+"px",e.DomHandler.absolutePosition(this.overlay,t))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.overlay&&this.isOutsideClicked(e)&&this.hideOverlay()},document.addEventListener("click",this.outsideClickListener))},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new e.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&this.hideOverlay()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&this.hideOverlay()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.input},isDropdownClicked(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},selectItem(e,t){if(this.multiple){if(this.$refs.input.value="",this.inputTextValue="",!this.isSelected(t)){let e=this.modelValue?[...this.modelValue,t]:[t];this.$emit("update:modelValue",e)}}else this.$emit("update:modelValue",t);this.$emit("item-select",{originalEvent:e,value:t}),this.focus(),this.hideOverlay()},onMultiContainerClick(e){this.focus(),this.completeOnFocus&&this.search(e,"","click")},removeItem(e,t){let i=this.modelValue[t],l=this.modelValue.filter(((e,i)=>t!==i));this.$emit("update:modelValue",l),this.$emit("item-unselect",{originalEvent:e,value:i})},onDropdownClick(e){this.focus();const t=this.$refs.input.value;"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown"),this.$emit("dropdown-click",{originalEvent:e,query:t})},getItemContent(t){return this.field?e.ObjectUtils.resolveFieldData(t,this.field):t},showOverlay(){this.overlayVisible=!0},hideOverlay(){this.overlayVisible=!1},focus(){this.$refs.input.focus()},search(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},onInputClicked(e){this.completeOnFocus&&this.search(e,"","click")},onInput(e){this.inputTextValue=e.target.value,this.timeout&&clearTimeout(this.timeout);let t=e.target.value;this.multiple||this.$emit("update:modelValue",t),0===t.length?(this.hideOverlay(),this.$emit("clear")):t.length>=this.minLength?this.timeout=setTimeout((()=>{this.search(e,t,"input")}),this.delay):this.hideOverlay()},onFocus(){this.focused=!0},onBlur(){this.focused=!1},onKeyDown(t){if(this.overlayVisible){let i=e.DomHandler.findSingle(this.overlay,"li.p-highlight");switch(t.which){case 40:if(i){let t=this.findNextItem(i);t&&(e.DomHandler.addClass(t,"p-highlight"),e.DomHandler.removeClass(i,"p-highlight"),e.DomHandler.scrollInView(this.overlay,t))}else i=this.overlay.firstElementChild.firstElementChild,e.DomHandler.hasClass(i,"p-autocomplete-item-group")&&(i=this.findNextItem(i)),i&&e.DomHandler.addClass(i,"p-highlight");t.preventDefault();break;case 38:if(i){let t=this.findPrevItem(i);t&&(e.DomHandler.addClass(t,"p-highlight"),e.DomHandler.removeClass(i,"p-highlight"),e.DomHandler.scrollInView(this.overlay,t))}t.preventDefault();break;case 13:i&&(this.selectHighlightItem(t,i),this.hideOverlay()),t.preventDefault();break;case 27:this.hideOverlay(),t.preventDefault();break;case 9:i&&this.selectHighlightItem(t,i),this.hideOverlay()}}if(this.multiple&&8===t.which)if(this.modelValue&&this.modelValue.length&&!this.$refs.input.value){let e=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:t,value:e})}},selectHighlightItem(t,i){if(this.optionGroupLabel){let e=this.suggestions[i.dataset.group];this.selectItem(t,this.getOptionGroupChildren(e)[i.dataset.index])}else this.selectItem(t,this.suggestions[e.DomHandler.index(i)])},findNextItem(t){let i=t.nextElementSibling;return i?e.DomHandler.hasClass(i,"p-autocomplete-item-group")?this.findNextItem(i):i:null},findPrevItem(t){let i=t.previousElementSibling;return i?e.DomHandler.hasClass(i,"p-autocomplete-item-group")?this.findPrevItem(i):i:null},onChange(t){if(this.forceSelection){let i=!1,l=t.target.value.trim();if(this.suggestions)for(let n of this.suggestions){let o=this.field?e.ObjectUtils.resolveFieldData(n,this.field):n;if(o&&l===o.trim()){i=!0,this.selectItem(t,n);break}}i||(this.$refs.input.value="",this.inputTextValue="",this.$emit("clear"),this.multiple||this.$emit("update:modelValue",null))}},isSelected(t){let i=!1;if(this.modelValue&&this.modelValue.length)for(let l=0;l<this.modelValue.length;l++)if(e.ObjectUtils.equals(this.modelValue[l],t)){i=!0;break}return i},overlayRef(e){this.overlay=e},virtualScrollerRef(e){this.virtualScroller=e},onOverlayClick(e){r.default.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{containerClass(){return["p-autocomplete p-component p-inputwrapper",this.class,{"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue||this.inputTextValue&&this.inputTextValue.length,"p-inputwrapper-focus":this.focused}]},inputFieldClass(){return["p-autocomplete-input p-inputtext p-component",this.inputClass,{"p-autocomplete-dd-input":this.dropdown,"p-disabled":this.$attrs.disabled}]},multiContainerClass(){return["p-autocomplete-multiple-container p-component p-inputtext",{"p-disabled":this.$attrs.disabled,"p-focus":this.focused}]},panelStyleClass(){return["p-autocomplete-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},inputValue(){if(this.modelValue){if(this.field&&"object"==typeof this.modelValue){const t=e.ObjectUtils.resolveFieldData(this.modelValue,this.field);return null!=t?t:this.modelValue}return this.modelValue}return""},listId:()=>e.UniqueComponentId()+"_list",appendDisabled(){return"self"===this.appendTo},appendTarget(){return this.appendDisabled?null:this.appendTo},virtualScrollerDisabled(){return!this.virtualScrollerOptions}},components:{Button:a.default,VirtualScroller:p.default},directives:{ripple:u.default}};const c={class:"p-autocomplete-token-label"},h={class:"p-autocomplete-input-token"},m={key:2,class:"p-autocomplete-loader pi pi-spinner pi-spin"},g={class:"p-autocomplete-item-group"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-autocomplete {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n position: relative;\n}\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-autocomplete-dd .p-autocomplete-input {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n"),d.render=function(e,t,i,l,n,s){const r=o.resolveComponent("Button"),a=o.resolveComponent("VirtualScroller"),u=o.resolveDirective("ripple");return o.openBlock(),o.createBlock("span",{ref:"container",class:s.containerClass,"aria-haspopup":"listbox","aria-owns":s.listId,"aria-expanded":n.overlayVisible,style:i.style},[i.multiple?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock("input",o.mergeProps({key:0,ref:"input",class:s.inputFieldClass,style:i.inputStyle},e.$attrs,{value:s.inputValue,onClick:t[1]||(t[1]=(...e)=>s.onInputClicked&&s.onInputClicked(...e)),onInput:t[2]||(t[2]=(...e)=>s.onInput&&s.onInput(...e)),onFocus:t[3]||(t[3]=(...e)=>s.onFocus&&s.onFocus(...e)),onBlur:t[4]||(t[4]=(...e)=>s.onBlur&&s.onBlur(...e)),onKeydown:t[5]||(t[5]=(...e)=>s.onKeyDown&&s.onKeyDown(...e)),onChange:t[6]||(t[6]=(...e)=>s.onChange&&s.onChange(...e)),type:"text",autoComplete:"off",role:"searchbox","aria-autocomplete":"list","aria-controls":s.listId}),null,16,["value","aria-controls"])),i.multiple?(o.openBlock(),o.createBlock("ul",{key:1,ref:"multiContainer",class:s.multiContainerClass,onClick:t[12]||(t[12]=(...e)=>s.onMultiContainerClick&&s.onMultiContainerClick(...e))},[(o.openBlock(!0),o.createBlock(o.Fragment,null,o.renderList(i.modelValue,((t,i)=>(o.openBlock(),o.createBlock("li",{key:i,class:"p-autocomplete-token"},[o.renderSlot(e.$slots,"chip",{value:t},(()=>[o.createVNode("span",c,o.toDisplayString(s.getItemContent(t)),1)])),o.createVNode("span",{class:"p-autocomplete-token-icon pi pi-times-circle",onClick:e=>s.removeItem(e,i)},null,8,["onClick"])])))),128)),o.createVNode("li",h,[o.createVNode("input",o.mergeProps({ref:"input",type:"text",autoComplete:"off"},e.$attrs,{onInput:t[7]||(t[7]=(...e)=>s.onInput&&s.onInput(...e)),onFocus:t[8]||(t[8]=(...e)=>s.onFocus&&s.onFocus(...e)),onBlur:t[9]||(t[9]=(...e)=>s.onBlur&&s.onBlur(...e)),onKeydown:t[10]||(t[10]=(...e)=>s.onKeyDown&&s.onKeyDown(...e)),onChange:t[11]||(t[11]=(...e)=>s.onChange&&s.onChange(...e)),role:"searchbox","aria-autocomplete":"list","aria-controls":s.listId}),null,16,["aria-controls"])])],2)):o.createCommentVNode("",!0),n.searching?(o.openBlock(),o.createBlock("i",m)):o.createCommentVNode("",!0),i.dropdown?(o.openBlock(),o.createBlock(r,{key:3,ref:"dropdownButton",type:"button",icon:"pi pi-chevron-down",class:"p-autocomplete-dropdown",disabled:e.$attrs.disabled,onClick:s.onDropdownClick},null,8,["disabled","onClick"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(o.Teleport,{to:s.appendTarget,disabled:s.appendDisabled},[o.createVNode(o.Transition,{name:"p-connected-overlay",onEnter:s.onOverlayEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},{default:o.withCtx((()=>[n.overlayVisible?(o.openBlock(),o.createBlock("div",{key:0,ref:s.overlayRef,class:s.panelStyleClass,style:{"max-height":s.virtualScrollerDisabled?i.scrollHeight:""},onClick:t[13]||(t[13]=(...e)=>s.onOverlayClick&&s.onOverlayClick(...e))},[o.renderSlot(e.$slots,"header",{value:i.modelValue,suggestions:i.suggestions}),o.createVNode(a,o.mergeProps({ref:s.virtualScrollerRef},i.virtualScrollerOptions,{style:{height:i.scrollHeight},items:i.suggestions,disabled:s.virtualScrollerDisabled}),o.createSlots({content:o.withCtx((({styleClass:t,contentRef:l,items:n,getItemOptions:r})=>[o.createVNode("ul",{id:s.listId,ref:l,class:["p-autocomplete-items",t],role:"listbox"},[i.optionGroupLabel?(o.openBlock(!0),o.createBlock(o.Fragment,{key:1},o.renderList(n,((t,i)=>(o.openBlock(),o.createBlock(o.Fragment,{key:s.getOptionGroupRenderKey(t)},[o.createVNode("li",g,[o.renderSlot(e.$slots,"optiongroup",{item:t,index:s.getOptionIndex(i,r)},(()=>[o.createTextVNode(o.toDisplayString(s.getOptionGroupLabel(t)),1)]))]),(o.openBlock(!0),o.createBlock(o.Fragment,null,o.renderList(s.getOptionGroupChildren(t),((t,l)=>o.withDirectives((o.openBlock(),o.createBlock("li",{class:"p-autocomplete-item",key:l,onClick:e=>s.selectItem(e,t),role:"option","data-group":i,"data-index":l},[o.renderSlot(e.$slots,"item",{item:t,index:s.getOptionIndex(l,r)},(()=>[o.createTextVNode(o.toDisplayString(s.getItemContent(t)),1)]))],8,["onClick","data-group","data-index"])),[[u]]))),128))],64)))),128)):(o.openBlock(!0),o.createBlock(o.Fragment,{key:0},o.renderList(n,((t,i)=>o.withDirectives((o.openBlock(),o.createBlock("li",{class:"p-autocomplete-item",key:i,onClick:e=>s.selectItem(e,t),role:"option"},[o.renderSlot(e.$slots,"item",{item:t,index:s.getOptionIndex(i,r)},(()=>[o.createTextVNode(o.toDisplayString(s.getItemContent(t)),1)]))],8,["onClick"])),[[u]]))),128))],10,["id"])])),_:2},[e.$slots.loader?{name:"loader",fn:o.withCtx((({options:t})=>[o.renderSlot(e.$slots,"loader",{options:t})]))}:void 0]),1040,["style","items","disabled"]),o.renderSlot(e.$slots,"footer",{value:i.modelValue,suggestions:i.suggestions})],6)):o.createCommentVNode("",!0)])),_:3},8,["onEnter","onLeave","onAfterLeave"])],8,["to","disabled"]))],14,["aria-owns","aria-expanded"])},d}(primevue.utils,primevue.overlayeventbus,primevue.button,primevue.ripple,primevue.virtualscroller,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.autocomplete=function(e,t,i,l,n,o){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=s(t),a=s(i),u=s(l),p=s(n),d={name:"AutoComplete",inheritAttrs:!1,emits:["update:modelValue","item-select","item-unselect","dropdown-click","clear","complete"],props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputClass:null,inputStyle:null,class:null,style:null,panelClass:null,virtualScrollerOptions:{type:Object,default:null}},timeout:null,outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,data:()=>({searching:!1,focused:!1,overlayVisible:!1,inputTextValue:null,highlightItem:null}),watch:{suggestions(){this.searching&&(this.suggestions&&this.suggestions.length?this.showOverlay():this.hideOverlay(),this.searching=!1)}},beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(e.ZIndexUtils.clear(this.overlay),this.overlay=null)},updated(){this.overlayVisible&&this.alignOverlay()},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionRenderKey(e){return this.getItemContent(e)},getOptionGroupRenderKey(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupLabel(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupChildren(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupChildren)},onOverlayEnter(t){e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay),this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoHighlight&&this.suggestions&&this.suggestions.length&&e.DomHandler.addClass(this.list.firstElementChild,"p-highlight")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null},onOverlayAfterLeave(t){e.ZIndexUtils.clear(t)},alignOverlay(){let t=this.multiple?this.$refs.multiContainer:this.$refs.input;this.appendDisabled?e.DomHandler.relativePosition(this.overlay,t):(this.overlay.style.minWidth=e.DomHandler.getOuterWidth(t)+"px",e.DomHandler.absolutePosition(this.overlay,t))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.overlay&&this.isOutsideClicked(e)&&this.hideOverlay()},document.addEventListener("click",this.outsideClickListener))},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new e.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&this.hideOverlay()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&this.hideOverlay()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.input},isDropdownClicked(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},selectItem(e,t){if(this.multiple){if(this.$refs.input.value="",this.inputTextValue="",!this.isSelected(t)){let e=this.modelValue?[...this.modelValue,t]:[t];this.$emit("update:modelValue",e)}}else this.$emit("update:modelValue",t);this.$emit("item-select",{originalEvent:e,value:t}),this.focus(),this.hideOverlay()},onMultiContainerClick(e){this.focus(),this.completeOnFocus&&this.search(e,"","click")},removeItem(e,t){let i=this.modelValue[t],l=this.modelValue.filter(((e,i)=>t!==i));this.$emit("update:modelValue",l),this.$emit("item-unselect",{originalEvent:e,value:i})},onDropdownClick(e){this.focus();const t=this.$refs.input.value;"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown"),this.$emit("dropdown-click",{originalEvent:e,query:t})},getItemContent(t){return this.field?e.ObjectUtils.resolveFieldData(t,this.field):t},showOverlay(){this.overlayVisible=!0},hideOverlay(){this.overlayVisible=!1},focus(){this.$refs.input.focus()},search(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},onInputClicked(e){this.completeOnFocus&&this.search(e,"","click")},onInput(e){this.inputTextValue=e.target.value,this.timeout&&clearTimeout(this.timeout);let t=e.target.value;this.multiple||this.$emit("update:modelValue",t),0===t.length?(this.hideOverlay(),this.$emit("clear")):t.length>=this.minLength?this.timeout=setTimeout((()=>{this.search(e,t,"input")}),this.delay):this.hideOverlay()},onFocus(){this.focused=!0},onBlur(){this.focused=!1},onKeyDown(t){if(this.overlayVisible){let i=e.DomHandler.findSingle(this.list,"li.p-highlight");switch(t.which){case 40:if(i){let t=this.findNextItem(i);t&&(e.DomHandler.addClass(t,"p-highlight"),e.DomHandler.removeClass(i,"p-highlight"),t.scrollIntoView({block:"nearest",inline:"start"}))}else i=this.list.firstElementChild,e.DomHandler.hasClass(i,"p-autocomplete-item-group")&&(i=this.findNextItem(i)),i&&e.DomHandler.addClass(i,"p-highlight");t.preventDefault();break;case 38:if(i){let t=this.findPrevItem(i);t&&(e.DomHandler.addClass(t,"p-highlight"),e.DomHandler.removeClass(i,"p-highlight"),t.scrollIntoView({block:"nearest",inline:"start"}))}t.preventDefault();break;case 13:i&&(this.selectHighlightItem(t,i),this.hideOverlay()),t.preventDefault();break;case 27:this.hideOverlay(),t.preventDefault();break;case 9:i&&this.selectHighlightItem(t,i),this.hideOverlay()}}if(this.multiple&&8===t.which)if(this.modelValue&&this.modelValue.length&&!this.$refs.input.value){let e=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:t,value:e})}},selectHighlightItem(e,t){if(this.optionGroupLabel){let i=this.suggestions[t.dataset.group];this.selectItem(e,this.getOptionGroupChildren(i)[t.dataset.index])}else this.selectItem(e,this.suggestions[t.dataset.index])},findNextItem(t){let i=t.nextElementSibling;return i?e.DomHandler.hasClass(i,"p-autocomplete-item-group")?this.findNextItem(i):i:null},findPrevItem(t){let i=t.previousElementSibling;return i?e.DomHandler.hasClass(i,"p-autocomplete-item-group")?this.findPrevItem(i):i:null},onChange(t){if(this.forceSelection){let i=!1,l=t.target.value.trim();if(this.suggestions)for(let n of this.suggestions){let o=this.field?e.ObjectUtils.resolveFieldData(n,this.field):n;if(o&&l===o.trim()){i=!0,this.selectItem(t,n);break}}i||(this.$refs.input.value="",this.inputTextValue="",this.$emit("clear"),this.multiple||this.$emit("update:modelValue",null))}},isSelected(t){let i=!1;if(this.modelValue&&this.modelValue.length)for(let l=0;l<this.modelValue.length;l++)if(e.ObjectUtils.equals(this.modelValue[l],t)){i=!0;break}return i},overlayRef(e){this.overlay=e},listRef(e,t){this.list=e,t&&t(e)},virtualScrollerRef(e){this.virtualScroller=e},onOverlayClick(e){r.default.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{containerClass(){return["p-autocomplete p-component p-inputwrapper",this.class,{"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue||this.inputTextValue&&this.inputTextValue.length,"p-inputwrapper-focus":this.focused}]},inputFieldClass(){return["p-autocomplete-input p-inputtext p-component",this.inputClass,{"p-autocomplete-dd-input":this.dropdown,"p-disabled":this.$attrs.disabled}]},multiContainerClass(){return["p-autocomplete-multiple-container p-component p-inputtext",{"p-disabled":this.$attrs.disabled,"p-focus":this.focused}]},panelStyleClass(){return["p-autocomplete-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},inputValue(){if(this.modelValue){if(this.field&&"object"==typeof this.modelValue){const t=e.ObjectUtils.resolveFieldData(this.modelValue,this.field);return null!=t?t:this.modelValue}return this.modelValue}return""},listId:()=>e.UniqueComponentId()+"_list",appendDisabled(){return"self"===this.appendTo},appendTarget(){return this.appendDisabled?null:this.appendTo},virtualScrollerDisabled(){return!this.virtualScrollerOptions}},components:{Button:a.default,VirtualScroller:p.default},directives:{ripple:u.default}};const c={class:"p-autocomplete-token-label"},h={class:"p-autocomplete-input-token"},m={key:2,class:"p-autocomplete-loader pi pi-spinner pi-spin"},g={class:"p-autocomplete-item-group"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-autocomplete {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n position: relative;\n}\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-autocomplete-dd .p-autocomplete-input {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n"),d.render=function(e,t,i,l,n,s){const r=o.resolveComponent("Button"),a=o.resolveComponent("VirtualScroller"),u=o.resolveDirective("ripple");return o.openBlock(),o.createBlock("span",{ref:"container",class:s.containerClass,"aria-haspopup":"listbox","aria-owns":s.listId,"aria-expanded":n.overlayVisible,style:i.style},[i.multiple?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock("input",o.mergeProps({key:0,ref:"input",class:s.inputFieldClass,style:i.inputStyle},e.$attrs,{value:s.inputValue,onClick:t[1]||(t[1]=(...e)=>s.onInputClicked&&s.onInputClicked(...e)),onInput:t[2]||(t[2]=(...e)=>s.onInput&&s.onInput(...e)),onFocus:t[3]||(t[3]=(...e)=>s.onFocus&&s.onFocus(...e)),onBlur:t[4]||(t[4]=(...e)=>s.onBlur&&s.onBlur(...e)),onKeydown:t[5]||(t[5]=(...e)=>s.onKeyDown&&s.onKeyDown(...e)),onChange:t[6]||(t[6]=(...e)=>s.onChange&&s.onChange(...e)),type:"text",autoComplete:"off",role:"searchbox","aria-autocomplete":"list","aria-controls":s.listId}),null,16,["value","aria-controls"])),i.multiple?(o.openBlock(),o.createBlock("ul",{key:1,ref:"multiContainer",class:s.multiContainerClass,onClick:t[12]||(t[12]=(...e)=>s.onMultiContainerClick&&s.onMultiContainerClick(...e))},[(o.openBlock(!0),o.createBlock(o.Fragment,null,o.renderList(i.modelValue,((t,i)=>(o.openBlock(),o.createBlock("li",{key:i,class:"p-autocomplete-token"},[o.renderSlot(e.$slots,"chip",{value:t},(()=>[o.createVNode("span",c,o.toDisplayString(s.getItemContent(t)),1)])),o.createVNode("span",{class:"p-autocomplete-token-icon pi pi-times-circle",onClick:e=>s.removeItem(e,i)},null,8,["onClick"])])))),128)),o.createVNode("li",h,[o.createVNode("input",o.mergeProps({ref:"input",type:"text",autoComplete:"off"},e.$attrs,{onInput:t[7]||(t[7]=(...e)=>s.onInput&&s.onInput(...e)),onFocus:t[8]||(t[8]=(...e)=>s.onFocus&&s.onFocus(...e)),onBlur:t[9]||(t[9]=(...e)=>s.onBlur&&s.onBlur(...e)),onKeydown:t[10]||(t[10]=(...e)=>s.onKeyDown&&s.onKeyDown(...e)),onChange:t[11]||(t[11]=(...e)=>s.onChange&&s.onChange(...e)),role:"searchbox","aria-autocomplete":"list","aria-controls":s.listId}),null,16,["aria-controls"])])],2)):o.createCommentVNode("",!0),n.searching?(o.openBlock(),o.createBlock("i",m)):o.createCommentVNode("",!0),i.dropdown?(o.openBlock(),o.createBlock(r,{key:3,ref:"dropdownButton",type:"button",icon:"pi pi-chevron-down",class:"p-autocomplete-dropdown",disabled:e.$attrs.disabled,onClick:s.onDropdownClick},null,8,["disabled","onClick"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(o.Teleport,{to:s.appendTarget,disabled:s.appendDisabled},[o.createVNode(o.Transition,{name:"p-connected-overlay",onEnter:s.onOverlayEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},{default:o.withCtx((()=>[n.overlayVisible?(o.openBlock(),o.createBlock("div",{key:0,ref:s.overlayRef,class:s.panelStyleClass,style:{"max-height":s.virtualScrollerDisabled?i.scrollHeight:""},onClick:t[13]||(t[13]=(...e)=>s.onOverlayClick&&s.onOverlayClick(...e))},[o.renderSlot(e.$slots,"header",{value:i.modelValue,suggestions:i.suggestions}),o.createVNode(a,o.mergeProps({ref:s.virtualScrollerRef},i.virtualScrollerOptions,{style:{height:i.scrollHeight},items:i.suggestions,disabled:s.virtualScrollerDisabled}),o.createSlots({content:o.withCtx((({styleClass:t,contentRef:l,items:n,getItemOptions:r})=>[o.createVNode("ul",{id:s.listId,ref:e=>s.listRef(e,l),class:["p-autocomplete-items",t],role:"listbox"},[i.optionGroupLabel?(o.openBlock(!0),o.createBlock(o.Fragment,{key:1},o.renderList(n,((t,i)=>(o.openBlock(),o.createBlock(o.Fragment,{key:s.getOptionGroupRenderKey(t)},[o.createVNode("li",g,[o.renderSlot(e.$slots,"optiongroup",{item:t,index:s.getOptionIndex(i,r)},(()=>[o.createTextVNode(o.toDisplayString(s.getOptionGroupLabel(t)),1)]))]),(o.openBlock(!0),o.createBlock(o.Fragment,null,o.renderList(s.getOptionGroupChildren(t),((t,l)=>o.withDirectives((o.openBlock(),o.createBlock("li",{class:"p-autocomplete-item",key:l,onClick:e=>s.selectItem(e,t),role:"option","data-group":i,"data-index":s.getOptionIndex(l,r)},[o.renderSlot(e.$slots,"item",{item:t,index:s.getOptionIndex(l,r)},(()=>[o.createTextVNode(o.toDisplayString(s.getItemContent(t)),1)]))],8,["onClick","data-group","data-index"])),[[u]]))),128))],64)))),128)):(o.openBlock(!0),o.createBlock(o.Fragment,{key:0},o.renderList(n,((t,i)=>o.withDirectives((o.openBlock(),o.createBlock("li",{class:"p-autocomplete-item",key:s.getOptionRenderKey(t),onClick:e=>s.selectItem(e,t),role:"option","data-index":s.getOptionIndex(i,r)},[o.renderSlot(e.$slots,"item",{item:t,index:s.getOptionIndex(i,r)},(()=>[o.createTextVNode(o.toDisplayString(s.getItemContent(t)),1)]))],8,["onClick","data-index"])),[[u]]))),128))],10,["id"])])),_:2},[e.$slots.loader?{name:"loader",fn:o.withCtx((({options:t})=>[o.renderSlot(e.$slots,"loader",{options:t})]))}:void 0]),1040,["style","items","disabled"]),o.renderSlot(e.$slots,"footer",{value:i.modelValue,suggestions:i.suggestions})],6)):o.createCommentVNode("",!0)])),_:3},8,["onEnter","onLeave","onAfterLeave"])],8,["to","disabled"]))],14,["aria-owns","aria-expanded"])},d}(primevue.utils,primevue.overlayeventbus,primevue.button,primevue.ripple,primevue.virtualscroller,Vue);
|
package/avatar/Avatar.d.ts
CHANGED
|
@@ -1,13 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
|
+
|
|
4
|
+
type AvatarSizeType = 'normal' | 'large' | 'xlarge' | undefined;
|
|
5
|
+
|
|
6
|
+
type AvatarShapeType = 'square' | 'circle' | undefined;
|
|
7
|
+
|
|
8
|
+
export interface AvatarProps {
|
|
9
|
+
/**
|
|
10
|
+
* Defines the text to display.
|
|
11
|
+
*/
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the icon to display.
|
|
15
|
+
*/
|
|
16
|
+
icon?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the image to display.
|
|
19
|
+
*/
|
|
20
|
+
image?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Size of the element, valid options are 'normal', 'large' and 'xlarge'.
|
|
23
|
+
* @see AvatarSizeType
|
|
24
|
+
* Default value is 'normal'.
|
|
25
|
+
*/
|
|
26
|
+
size?: AvatarSizeType;
|
|
27
|
+
/**
|
|
28
|
+
* Shape of the element, valid options are 'square' and 'circle'.
|
|
29
|
+
* @see AvatarShapeType
|
|
30
|
+
* Default value is 'square'.
|
|
31
|
+
*/
|
|
32
|
+
shape?: AvatarShapeType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface AvatarSlots {
|
|
36
|
+
/**
|
|
37
|
+
* Content can easily be customized with the default slot instead of using the built-in modes.
|
|
38
|
+
*/
|
|
39
|
+
default: () => VNode[];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export declare type AvatarEmits = {
|
|
7
43
|
}
|
|
8
44
|
|
|
9
|
-
declare class Avatar {
|
|
10
|
-
|
|
45
|
+
declare class Avatar extends ClassComponent<AvatarProps, AvatarSlots, AvatarEmits> { }
|
|
46
|
+
|
|
47
|
+
declare module '@vue/runtime-core' {
|
|
48
|
+
interface GlobalComponents {
|
|
49
|
+
Avatar: GlobalComponentConstructor<Avatar>
|
|
50
|
+
}
|
|
11
51
|
}
|
|
12
52
|
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* Avatar represents people using icons, labels and images.
|
|
56
|
+
*
|
|
57
|
+
* Demos:
|
|
58
|
+
*
|
|
59
|
+
* - [Avatar](https://www.primefaces.org/primevue/showcase/#/avatar)
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
13
62
|
export default Avatar;
|
package/avatar/avatar.esm.js
CHANGED
package/avatar/avatar.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{openBlock as e,createBlock as a,renderSlot as n,toDisplayString as t,createCommentVNode as r}from"vue";var i={name:"Avatar",props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"}},computed:{containerClass(){return["p-avatar p-component",{"p-avatar-image":null!=this.image,"p-avatar-circle":"circle"===this.shape,"p-avatar-lg":"large"===this.size,"p-avatar-xl":"xlarge"===this.size}]},iconClass(){return["p-avatar-icon",this.icon]}}};const l={key:0,class:"p-avatar-text"};!function(e,a){void 0===a&&(a={});var n=a.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("\n.p-avatar {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n font-size: 1rem;\n}\n.p-avatar.p-avatar-image {\n background-color: transparent;\n}\n.p-avatar.p-avatar-circle {\n border-radius: 50%;\n}\n.p-avatar-circle img {\n border-radius: 50%;\n}\n.p-avatar .p-avatar-icon {\n font-size: 1rem;\n}\n.p-avatar img {\n width: 100%;\n height: 100%;\n}\n"),i.render=function(i,s,c,p,o,d){return e(),a("div",{class:d.containerClass},[n(i.$slots,"default",{},(()=>[c.label?(e(),a("span",l,t(c.label),1)):c.icon?(e(),a("span",{key:1,class:d.iconClass},null,2)):c.image?(e(),a("img",{key:2,src:c.image},null,8,["src"])):r("",!0)]))],2)};export default
|
|
1
|
+
import{openBlock as e,createBlock as a,renderSlot as n,toDisplayString as t,createCommentVNode as r}from"vue";var i={name:"Avatar",props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"}},computed:{containerClass(){return["p-avatar p-component",{"p-avatar-image":null!=this.image,"p-avatar-circle":"circle"===this.shape,"p-avatar-lg":"large"===this.size,"p-avatar-xl":"xlarge"===this.size}]},iconClass(){return["p-avatar-icon",this.icon]}}};const l={key:0,class:"p-avatar-text"};!function(e,a){void 0===a&&(a={});var n=a.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("\n.p-avatar {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n font-size: 1rem;\n}\n.p-avatar.p-avatar-image {\n background-color: transparent;\n}\n.p-avatar.p-avatar-circle {\n border-radius: 50%;\n}\n.p-avatar-circle img {\n border-radius: 50%;\n}\n.p-avatar .p-avatar-icon {\n font-size: 1rem;\n}\n.p-avatar img {\n width: 100%;\n height: 100%;\n}\n"),i.render=function(i,s,c,p,o,d){return e(),a("div",{class:d.containerClass},[n(i.$slots,"default",{},(()=>[c.label?(e(),a("span",l,t(c.label),1)):c.icon?(e(),a("span",{key:1,class:d.iconClass},null,2)):c.image?(e(),a("img",{key:2,src:c.image},null,8,["src"])):r("",!0)]))],2)};export{i as default};
|
package/avatar/avatar.js
CHANGED
|
@@ -1,7 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
$props: AvatarGroupProps;
|
|
3
|
+
export interface AvatarGroupProps {
|
|
5
4
|
}
|
|
6
5
|
|
|
6
|
+
export interface AvatarGroupSlots {
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare type AvatarGroupEmits = {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class AvatarGroup extends ClassComponent<AvatarGroupProps, AvatarGroupSlots, AvatarGroupEmits> { }
|
|
13
|
+
|
|
14
|
+
declare module '@vue/runtime-core' {
|
|
15
|
+
interface GlobalComponents {
|
|
16
|
+
AvatarGroup: GlobalComponentConstructor<AvatarGroup>
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* A set of Avatars can be displayed together using the AvatarGroup component.
|
|
23
|
+
*
|
|
24
|
+
* Helper Components:
|
|
25
|
+
*
|
|
26
|
+
* - Avatar
|
|
27
|
+
*
|
|
28
|
+
* Demos:
|
|
29
|
+
*
|
|
30
|
+
* - [AvatarGroup](https://www.primefaces.org/primevue/showcase/#/avatar)
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
7
33
|
export default AvatarGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{openBlock as e,createBlock as t,renderSlot as n}from"vue";var a={name:"AvatarGroup"};const r={class:"p-avatar-group p-component"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("\n.p-avatar-group .p-avatar + .p-avatar {\n margin-left: -1rem;\n}\n.p-avatar-group {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"),a.render=function(a,o,i,d,l
|
|
1
|
+
import{openBlock as e,createBlock as t,renderSlot as n}from"vue";var a={name:"AvatarGroup"};const r={class:"p-avatar-group p-component"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("\n.p-avatar-group .p-avatar + .p-avatar {\n margin-left: -1rem;\n}\n.p-avatar-group {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"),a.render=function(a,o,i,d,s,l){return e(),t("div",r,[n(a.$slots,"default")])};export{a as default};
|
package/badge/Badge.d.ts
CHANGED
|
@@ -1,11 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
|
+
|
|
4
|
+
type BadgeSeverityType = 'info' | 'success' | 'warning' | 'danger' | undefined;
|
|
5
|
+
|
|
6
|
+
type BadgeSizeType = 'large' | 'xlarge' | undefined;
|
|
7
|
+
|
|
8
|
+
export interface BadgeProps {
|
|
9
|
+
/**
|
|
10
|
+
* Value to display inside the badge.
|
|
11
|
+
*/
|
|
2
12
|
value?: any;
|
|
3
|
-
|
|
4
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Severity type of the badge.
|
|
15
|
+
* @see BadgeSeverityType
|
|
16
|
+
*/
|
|
17
|
+
severity?: BadgeSeverityType;
|
|
18
|
+
/**
|
|
19
|
+
* Size of the badge, valid options are 'large' and 'xlarge'.
|
|
20
|
+
* @see BadgeSizeType
|
|
21
|
+
*/
|
|
22
|
+
size?: BadgeSizeType;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface BadgeSlots {
|
|
26
|
+
/**
|
|
27
|
+
* Content can easily be customized with the default slot instead of using the built-in display.
|
|
28
|
+
*/
|
|
29
|
+
default: () => VNode[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export declare type BadgeEmits = {
|
|
5
33
|
}
|
|
6
34
|
|
|
7
|
-
declare class Badge {
|
|
8
|
-
|
|
35
|
+
declare class Badge extends ClassComponent<BadgeProps, BadgeSlots, BadgeEmits> { }
|
|
36
|
+
|
|
37
|
+
declare module '@vue/runtime-core' {
|
|
38
|
+
interface GlobalComponents {
|
|
39
|
+
Badge: GlobalComponentConstructor<Badge>
|
|
40
|
+
}
|
|
9
41
|
}
|
|
10
42
|
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* Badge is a small status indicator for another element.
|
|
46
|
+
*
|
|
47
|
+
* Demos:
|
|
48
|
+
*
|
|
49
|
+
* - [Badge](https://www.primefaces.org/primevue/showcase/#/badge)
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
11
52
|
export default Badge;
|
package/badge/badge.esm.js
CHANGED
package/badge/badge.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{openBlock as e,createBlock as s,renderSlot as a,createTextVNode as t,toDisplayString as l}from"vue";var i={name:"Badge",props:{value:null,severity:null,size:null},computed:{containerClass(){return this.$slots.default?"p-overlay-badge":this.badgeClass},badgeClass(){return["p-badge p-component",{"p-badge-no-gutter":this.value&&1===String(this.value).length,"p-badge-dot":!this.value&&!this.$slots.default,"p-badge-lg":"large"===this.size,"p-badge-xl":"xlarge"===this.size,"p-badge-info":"info"===this.severity,"p-badge-success":"success"===this.severity,"p-badge-warning":"warning"===this.severity,"p-badge-danger":"danger"===this.severity}]}}};i.render=function(i,r,n,g,d,u){return e(),s("span",{class:u.badgeClass},[a(i.$slots,"default",{},(()=>[t(l(n.value),1)]))],2)};export default
|
|
1
|
+
import{openBlock as e,createBlock as s,renderSlot as a,createTextVNode as t,toDisplayString as l}from"vue";var i={name:"Badge",props:{value:null,severity:null,size:null},computed:{containerClass(){return this.$slots.default?"p-overlay-badge":this.badgeClass},badgeClass(){return["p-badge p-component",{"p-badge-no-gutter":this.value&&1===String(this.value).length,"p-badge-dot":!this.value&&!this.$slots.default,"p-badge-lg":"large"===this.size,"p-badge-xl":"xlarge"===this.size,"p-badge-info":"info"===this.severity,"p-badge-success":"success"===this.severity,"p-badge-warning":"warning"===this.severity,"p-badge-danger":"danger"===this.severity}]}}};i.render=function(i,r,n,g,d,u){return e(),s("span",{class:u.badgeClass},[a(i.$slots,"default",{},(()=>[t(l(n.value),1)]))],2)};export{i as default};
|
package/badge/badge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{UniqueComponentId as e,DomHandler as a}from"primevue/utils";const d={beforeMount(d,t){const l=e()+"_badge";d.$_pbadgeId=l;let s=document.createElement("span");s.id=l,s.className="p-badge p-component";for(let e in t.modifiers)a.addClass(s,"p-badge-"+e);null!=t.value?(s.appendChild(document.createTextNode(t.value)),1===String(t.value).length&&a.addClass(s,"p-badge-no-gutter")):a.addClass(s,"p-badge-dot"),a.addClass(d,"p-overlay-badge"),d.appendChild(s)},updated(e,d){if(a.addClass(e,"p-overlay-badge"),d.oldValue!==d.value){let t=document.getElementById(e.$_pbadgeId);d.value?(a.hasClass(t,"p-badge-dot")&&a.removeClass(t,"p-badge-dot"),1===String(d.value).length?a.addClass(t,"p-badge-no-gutter"):a.removeClass(t,"p-badge-no-gutter")):d.value||a.hasClass(t,"p-badge-dot")||a.addClass(t,"p-badge-dot"),t.innerHTML="",t.appendChild(document.createTextNode(d.value))}}};export default
|
|
1
|
+
import{UniqueComponentId as e,DomHandler as a}from"primevue/utils";const d={beforeMount(d,t){const l=e()+"_badge";d.$_pbadgeId=l;let s=document.createElement("span");s.id=l,s.className="p-badge p-component";for(let e in t.modifiers)a.addClass(s,"p-badge-"+e);null!=t.value?(s.appendChild(document.createTextNode(t.value)),1===String(t.value).length&&a.addClass(s,"p-badge-no-gutter")):a.addClass(s,"p-badge-dot"),a.addClass(d,"p-overlay-badge"),d.appendChild(s)},updated(e,d){if(a.addClass(e,"p-overlay-badge"),d.oldValue!==d.value){let t=document.getElementById(e.$_pbadgeId);d.value?(a.hasClass(t,"p-badge-dot")&&a.removeClass(t,"p-badge-dot"),1===String(d.value).length?a.addClass(t,"p-badge-no-gutter"):a.removeClass(t,"p-badge-no-gutter")):d.value||a.hasClass(t,"p-badge-dot")||a.addClass(t,"p-badge-dot"),t.innerHTML="",t.appendChild(document.createTextNode(d.value))}}};export{d as default};
|
package/blockui/BlockUI.d.ts
CHANGED
|
@@ -1,19 +1,60 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
3
|
|
|
3
|
-
interface BlockUIProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export interface BlockUIProps {
|
|
5
|
+
/**
|
|
6
|
+
* Controls the blocked state.
|
|
7
|
+
*/
|
|
8
|
+
blocked?: boolean | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* When enabled, the whole document gets blocked.
|
|
11
|
+
*/
|
|
12
|
+
fullScreen?: boolean | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Base zIndex value to use in layering.
|
|
15
|
+
* Default value is 0.
|
|
16
|
+
*/
|
|
17
|
+
baseZIndex?: number | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Whether to automatically manage layering.
|
|
20
|
+
* Default value is true.
|
|
21
|
+
*/
|
|
22
|
+
autoZIndex?: boolean | undefined;
|
|
8
23
|
}
|
|
9
24
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
25
|
+
export interface BlockUISlots {
|
|
26
|
+
/**
|
|
27
|
+
* Custom content's slot.
|
|
28
|
+
*/
|
|
29
|
+
default: () => VNode[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export declare type BlockUIEmits = {
|
|
33
|
+
/**
|
|
34
|
+
* Fired when the element gets blocked.
|
|
35
|
+
*/
|
|
36
|
+
'block': () => void;
|
|
37
|
+
/**
|
|
38
|
+
* Fired when the element gets unblocked.
|
|
39
|
+
*/
|
|
40
|
+
'unblock': () => void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare class BlockUI extends ClassComponent<BlockUIProps, BlockUISlots, BlockUIEmits> { }
|
|
44
|
+
|
|
45
|
+
declare module '@vue/runtime-core' {
|
|
46
|
+
interface GlobalComponents {
|
|
47
|
+
BlockUI: GlobalComponentConstructor<BlockUI>
|
|
16
48
|
}
|
|
17
49
|
}
|
|
18
50
|
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* BlockUI can either block other components or the whole page.
|
|
54
|
+
*
|
|
55
|
+
* Demos:
|
|
56
|
+
*
|
|
57
|
+
* - [BlockUI](https://www.primefaces.org/primevue/showcase/#/blockui)
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
19
60
|
export default BlockUI;
|
package/blockui/blockui.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DomHandler as e,ZIndexUtils as t}from"primevue/utils";import{openBlock as o,createBlock as n,mergeProps as i,renderSlot as s}from"vue";var l={name:"BlockUI",emits:["block","unblock"],props:{blocked:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0}},mask:null,mounted(){this.blocked&&this.block()},watch:{blocked(e){!0===e?this.block():this.unblock()}},methods:{block(){let o="p-blockui p-component-overlay p-component-overlay-enter";this.fullScreen?(o+=" p-blockui-document",this.mask=document.createElement("div"),this.mask.setAttribute("class",o),document.body.appendChild(this.mask),e.addClass(document.body,"p-overflow-hidden"),document.activeElement.blur()):(this.mask=document.createElement("div"),this.mask.setAttribute("class",o),this.$refs.container.appendChild(this.mask)),this.autoZIndex&&t.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal),this.$emit("block")},unblock(){e.addClass(this.mask,"p-component-overlay-leave"),this.mask.addEventListener("animationend",(()=>{this.removeMask()}))},removeMask(){t.clear(this.mask),this.fullScreen?(document.body.removeChild(this.mask),e.removeClass(document.body,"p-overflow-hidden")):this.$refs.container.removeChild(this.mask),this.$emit("unblock")}}};!function(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("\n.p-blockui-container {\n position: relative;\n}\n.p-blockui {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n.p-blockui.p-component-overlay {\n position: absolute;\n}\n.p-blockui-document.p-component-overlay {\n position: fixed;\n}\n"),l.render=function(e,t,l,a,d,c){return o(),n("div",i({ref:"container",class:"p-blockui-container"},e.$attrs),[s(e.$slots,"default")],16)};export default
|
|
1
|
+
import{DomHandler as e,ZIndexUtils as t}from"primevue/utils";import{openBlock as o,createBlock as n,mergeProps as i,renderSlot as s}from"vue";var l={name:"BlockUI",emits:["block","unblock"],props:{blocked:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0}},mask:null,mounted(){this.blocked&&this.block()},watch:{blocked(e){!0===e?this.block():this.unblock()}},methods:{block(){let o="p-blockui p-component-overlay p-component-overlay-enter";this.fullScreen?(o+=" p-blockui-document",this.mask=document.createElement("div"),this.mask.setAttribute("class",o),document.body.appendChild(this.mask),e.addClass(document.body,"p-overflow-hidden"),document.activeElement.blur()):(this.mask=document.createElement("div"),this.mask.setAttribute("class",o),this.$refs.container.appendChild(this.mask)),this.autoZIndex&&t.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal),this.$emit("block")},unblock(){e.addClass(this.mask,"p-component-overlay-leave"),this.mask.addEventListener("animationend",(()=>{this.removeMask()}))},removeMask(){t.clear(this.mask),this.fullScreen?(document.body.removeChild(this.mask),e.removeClass(document.body,"p-overflow-hidden")):this.$refs.container.removeChild(this.mask),this.$emit("unblock")}}};!function(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("\n.p-blockui-container {\n position: relative;\n}\n.p-blockui {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n.p-blockui.p-component-overlay {\n position: absolute;\n}\n.p-blockui-document.p-component-overlay {\n position: fixed;\n}\n"),l.render=function(e,t,l,a,d,c){return o(),n("div",i({ref:"container",class:"p-blockui-container"},e.$attrs),[s(e.$slots,"default")],16)};export{l as default};
|
package/blockui/blockui.js
CHANGED