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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ObjectUtils as e,DomHandler as t,ZIndexUtils as i,ConnectedOverlayScrollHandler as n}from"primevue/utils";import l from"primevue/overlayeventbus";import o from"primevue/ripple";import{resolveComponent as s,resolveDirective as a,openBlock as r,createBlock as p,Fragment as c,renderList as d,withDirectives as h,createVNode as u,resolveDynamicComponent as b,toDisplayString as v,createCommentVNode as y,renderSlot as f,createTextVNode as m,Teleport as g,Transition as O,withCtx as L}from"vue";var w={name:"CascadeSelectSub",emits:["option-select","optiongroup-select"],props:{selectionPath:Array,level:Number,options:Array,optionLabel:String,optionValue:String,optionGroupLabel:String,optionGroupChildren:Array,parentActive:Boolean,dirty:Boolean,templates:null,root:Boolean},data:()=>({activeOption:null}),mounted(){if(this.selectionPath&&this.options&&!this.dirty)for(let e of this.options)if(this.selectionPath.includes(e)){this.activeOption=e;break}this.root||this.position()},watch:{parentActive(e){e||(this.activeOption=null)}},methods:{onOptionClick(e,t){this.isOptionGroup(t)?(this.activeOption=this.activeOption===t?null:t,this.$emit("optiongroup-select",{originalEvent:e,value:t})):this.$emit("option-select",{originalEvent:e,value:this.getOptionValue(t)})},onOptionSelect(e){this.$emit("option-select",e)},onOptionGroupSelect(e){this.$emit("optiongroup-select",e)},getOptionLabel(t){return this.optionLabel?e.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.resolveFieldData(t,this.optionValue):t},getOptionGroupLabel(t){return this.optionGroupLabel?e.resolveFieldData(t,this.optionGroupLabel):null},getOptionGroupChildren(t){return e.resolveFieldData(t,this.optionGroupChildren[this.level])},isOptionGroup(e){return Object.prototype.hasOwnProperty.call(e,this.optionGroupChildren[this.level])},getOptionLabelToRender(e){return this.isOptionGroup(e)?this.getOptionGroupLabel(e):this.getOptionLabel(e)},getItemClass(e){return["p-cascadeselect-item",{"p-cascadeselect-item-group":this.isOptionGroup(e),"p-cascadeselect-item-active p-highlight":this.isOptionActive(e)}]},isOptionActive(e){return this.activeOption===e},onKeyDown(e,t,i){switch(e.key){case"Down":case"ArrowDown":var n=this.$el.children[i+1];n&&n.children[0].focus();break;case"Up":case"ArrowUp":var l=this.$el.children[i-1];l&&l.children[0].focus();break;case"Right":case"ArrowRight":this.isOptionGroup(t)&&(this.isOptionActive(t)?e.currentTarget.nextElementSibling.children[0].children[0].focus():this.activeOption=t);break;case"Left":case"ArrowLeft":this.activeOption=null;var o=e.currentTarget.parentElement.parentElement.previousElementSibling;o&&o.focus();break;case"Enter":this.onOptionClick(e,t)}e.preventDefault()},position(){const e=this.$el.parentElement,i=t.getOffset(e),n=t.getViewport(),l=this.$el.offsetParent?this.$el.offsetWidth:t.getHiddenElementOuterWidth(this.$el),o=t.getOuterWidth(e.children[0]);parseInt(i.left,10)+o+l>n.width-t.calculateScrollbarWidth()&&(this.$el.style.left="-100%")}},directives:{ripple:o}};const C={class:"p-cascadeselect-panel p-cascadeselect-items",role:"listbox","aria-orientation":"horizontal"},k={key:1,class:"p-cascadeselect-item-text"},S={key:2,class:"p-cascadeselect-group-icon pi pi-angle-right"};w.render=function(e,t,i,n,l,o){const f=s("CascadeSelectSub",!0),m=a("ripple");return r(),p("ul",C,[(r(!0),p(c,null,d(i.options,((e,t)=>(r(),p("li",{key:o.getOptionLabelToRender(e),class:o.getItemClass(e),role:"none"},[h(u("div",{class:"p-cascadeselect-item-content",onClick:t=>o.onOptionClick(t,e),tabindex:"0",onKeydown:i=>o.onKeyDown(i,e,t)},[i.templates.option?(r(),p(b(i.templates.option),{key:0,option:e},null,8,["option"])):(r(),p("span",k,v(o.getOptionLabelToRender(e)),1)),o.isOptionGroup(e)?(r(),p("span",S)):y("",!0)],40,["onClick","onKeydown"]),[[m]]),o.isOptionGroup(e)&&o.isOptionActive(e)?(r(),p(f,{key:0,class:"p-cascadeselect-sublist",selectionPath:i.selectionPath,options:o.getOptionGroupChildren(e),optionLabel:i.optionLabel,optionValue:i.optionValue,level:i.level+1,onOptionSelect:o.onOptionSelect,onOptiongroupSelect:o.onOptionGroupSelect,optionGroupLabel:i.optionGroupLabel,optionGroupChildren:i.optionGroupChildren,parentActive:o.isOptionActive(e),dirty:i.dirty,templates:i.templates},null,8,["selectionPath","options","optionLabel","optionValue","level","onOptionSelect","onOptiongroupSelect","optionGroupLabel","optionGroupChildren","parentActive","dirty","templates"])):y("",!0)],2)))),128))])};var x={name:"CascadeSelect",emits:["update:modelValue","change","group-change","before-show","before-hide","hide","show"],data:()=>({selectionPath:null,focused:!1,overlayVisible:!1,dirty:!1}),props:{modelValue:null,options:Array,optionLabel:String,optionValue:String,optionGroupLabel:String,optionGroupChildren:Array,placeholder:String,disabled:Boolean,dataKey:null,inputId:String,tabindex:String,ariaLabelledBy:null,appendTo:{type:String,default:"body"},panelClass:null,loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:"pi pi-spinner pi-spin"}},outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(i.clear(this.overlay),this.overlay=null)},mounted(){this.updateSelectionPath()},watch:{modelValue(){this.updateSelectionPath()}},methods:{onOptionSelect(e){this.$emit("update:modelValue",e.value),this.$emit("change",e),this.hide(),this.$refs.focusInput.focus()},onOptionGroupSelect(e){this.dirty=!0,this.$emit("group-change",e)},getOptionLabel(t){return this.optionLabel?e.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.resolveFieldData(t,this.optionValue):t},getOptionGroupChildren(t,i){return e.resolveFieldData(t,this.optionGroupChildren[i])},isOptionGroup(e,t){return Object.prototype.hasOwnProperty.call(e,this.optionGroupChildren[t])},updateSelectionPath(){let e;if(null!=this.modelValue&&this.options)for(let t of this.options)if(e=this.findModelOptionInGroup(t,0),e)break;this.selectionPath=e},findModelOptionInGroup(t,i){if(this.isOptionGroup(t,i)){let e;for(let n of this.getOptionGroupChildren(t,i))if(e=this.findModelOptionInGroup(n,i+1),e)return e.unshift(t),e}else if(e.equals(this.modelValue,this.getOptionValue(t),this.dataKey))return[t];return null},show(){this.$emit("before-show"),this.overlayVisible=!0},hide(){this.$emit("before-hide"),this.overlayVisible=!1},onFocus(){this.focused=!0},onBlur(){this.focused=!1},onClick(e){this.disabled||this.loading||this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide():this.show(),this.$refs.focusInput.focus())},onOverlayEnter(e){i.set("overlay",e,this.$primevue.config.zIndex.overlay),this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null,this.dirty=!1},onOverlayAfterLeave(e){i.clear(e)},alignOverlay(){this.appendDisabled?t.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=t.getOuterWidth(this.$el)+"px",t.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.overlay&&!this.$el.contains(e.target)&&!this.overlay.contains(e.target)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new n(this.$refs.container,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},overlayRef(e){this.overlay=e},onKeyDown(e){switch(e.key){case"Down":case"ArrowDown":this.overlayVisible?t.findSingle(this.overlay,".p-cascadeselect-item").children[0].focus():e.altKey&&this.options&&this.options.length&&this.show(),e.preventDefault();break;case"Escape":this.overlayVisible&&(this.hide(),e.preventDefault());break;case"Tab":this.hide()}},onOverlayClick(e){l.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{containerClass(){return["p-cascadeselect p-component p-inputwrapper",{"p-disabled":this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue,"p-inputwrapper-focus":this.focused||this.overlayVisible}]},labelClass(){return["p-cascadeselect-label",{"p-placeholder":this.label===this.placeholder,"p-cascadeselect-label-empty":!this.$slots.value&&("p-emptylabel"===this.label||0===this.label.length)}]},label(){return this.selectionPath?this.getOptionLabel(this.selectionPath[this.selectionPath.length-1]):this.placeholder||"p-emptylabel"},panelStyleClass(){return["p-cascadeselect-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},appendDisabled(){return"self"===this.appendTo},appendTarget(){return this.appendDisabled?null:this.appendTo},dropdownIconClass(){return["p-cascadeselect-trigger-icon",this.loading?this.loadingIcon:"pi pi-chevron-down"]}},components:{CascadeSelectSub:w}};const G={class:"p-hidden-accessible"},V={class:"p-cascadeselect-items-wrapper"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===i&&n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-cascadeselect {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n cursor: pointer;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-cascadeselect-trigger {\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 -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-cascadeselect-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n}\n.p-cascadeselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n.p-cascadeselect .p-cascadeselect-panel {\n min-width: 100%;\n}\n.p-cascadeselect-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-cascadeselect-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n}\n.p-cascadeselect-item-content {\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 overflow: hidden;\n position: relative;\n}\n.p-cascadeselect-group-icon {\n margin-left: auto;\n}\n.p-cascadeselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n min-width: 100%;\n}\n.p-fluid .p-cascadeselect {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-cascadeselect .p-cascadeselect-label {\n width: 1%;\n}\n.p-cascadeselect-sublist {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n display: none;\n}\n.p-cascadeselect-item-active {\n overflow: visible !important;\n}\n.p-cascadeselect-item-active > .p-cascadeselect-sublist {\n display: block;\n left: 100%;\n top: 0;\n}\n"),x.render=function(e,t,i,n,l,o){const a=s("CascadeSelectSub");return r(),p("div",{ref:"container",class:o.containerClass,onClick:t[5]||(t[5]=e=>o.onClick(e))},[u("div",G,[u("input",{ref:"focusInput",type:"text",id:i.inputId,readonly:"",disabled:i.disabled,onFocus:t[1]||(t[1]=(...e)=>o.onFocus&&o.onFocus(...e)),onBlur:t[2]||(t[2]=(...e)=>o.onBlur&&o.onBlur(...e)),onKeydown:t[3]||(t[3]=(...e)=>o.onKeyDown&&o.onKeyDown(...e)),tabindex:i.tabindex,"aria-haspopup":"listbox","aria-expanded":l.overlayVisible,"aria-labelledby":i.ariaLabelledBy},null,40,["id","disabled","tabindex","aria-expanded","aria-labelledby"])]),u("span",{class:o.labelClass},[f(e.$slots,"value",{value:i.modelValue,placeholder:i.placeholder},(()=>[m(v(o.label),1)]))],2),u("div",{class:"p-cascadeselect-trigger",role:"button","aria-haspopup":"listbox","aria-expanded":l.overlayVisible},[f(e.$slots,"indicator",{},(()=>[u("span",{class:o.dropdownIconClass},null,2)]))],8,["aria-expanded"]),(r(),p(g,{to:o.appendTarget,disabled:o.appendDisabled},[u(O,{name:"p-connected-overlay",onEnter:o.onOverlayEnter,onLeave:o.onOverlayLeave,onAfterLeave:o.onOverlayAfterLeave},{default:L((()=>[l.overlayVisible?(r(),p("div",{key:0,ref:o.overlayRef,class:o.panelStyleClass,onClick:t[4]||(t[4]=(...e)=>o.onOverlayClick&&o.onOverlayClick(...e))},[u("div",V,[u(a,{options:i.options,selectionPath:l.selectionPath,optionLabel:i.optionLabel,optionValue:i.optionValue,level:0,templates:e.$slots,optionGroupLabel:i.optionGroupLabel,optionGroupChildren:i.optionGroupChildren,onOptionSelect:o.onOptionSelect,onOptiongroupSelect:o.onOptionGroupSelect,dirty:l.dirty,root:!0},null,8,["options","selectionPath","optionLabel","optionValue","templates","optionGroupLabel","optionGroupChildren","onOptionSelect","onOptiongroupSelect","dirty"])])],2)):y("",!0)])),_:1},8,["onEnter","onLeave","onAfterLeave"])],8,["to","disabled"]))],2)};export default x;
|
|
1
|
+
import{ObjectUtils as e,DomHandler as t,ZIndexUtils as i,ConnectedOverlayScrollHandler as n}from"primevue/utils";import l from"primevue/overlayeventbus";import o from"primevue/ripple";import{resolveComponent as s,resolveDirective as a,openBlock as r,createBlock as p,Fragment as c,renderList as d,withDirectives as h,createVNode as u,resolveDynamicComponent as b,toDisplayString as v,createCommentVNode as y,renderSlot as f,createTextVNode as m,Teleport as g,Transition as O,withCtx as L}from"vue";var w={name:"CascadeSelectSub",emits:["option-select","optiongroup-select"],props:{selectionPath:Array,level:Number,options:Array,optionLabel:String,optionValue:String,optionGroupLabel:String,optionGroupChildren:Array,parentActive:Boolean,dirty:Boolean,templates:null,root:Boolean},data:()=>({activeOption:null}),mounted(){if(this.selectionPath&&this.options&&!this.dirty)for(let e of this.options)if(this.selectionPath.includes(e)){this.activeOption=e;break}this.root||this.position()},watch:{parentActive(e){e||(this.activeOption=null)}},methods:{onOptionClick(e,t){this.isOptionGroup(t)?(this.activeOption=this.activeOption===t?null:t,this.$emit("optiongroup-select",{originalEvent:e,value:t})):this.$emit("option-select",{originalEvent:e,value:this.getOptionValue(t)})},onOptionSelect(e){this.$emit("option-select",e)},onOptionGroupSelect(e){this.$emit("optiongroup-select",e)},getOptionLabel(t){return this.optionLabel?e.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.resolveFieldData(t,this.optionValue):t},getOptionGroupLabel(t){return this.optionGroupLabel?e.resolveFieldData(t,this.optionGroupLabel):null},getOptionGroupChildren(t){return e.resolveFieldData(t,this.optionGroupChildren[this.level])},isOptionGroup(e){return Object.prototype.hasOwnProperty.call(e,this.optionGroupChildren[this.level])},getOptionLabelToRender(e){return this.isOptionGroup(e)?this.getOptionGroupLabel(e):this.getOptionLabel(e)},getItemClass(e){return["p-cascadeselect-item",{"p-cascadeselect-item-group":this.isOptionGroup(e),"p-cascadeselect-item-active p-highlight":this.isOptionActive(e)}]},isOptionActive(e){return this.activeOption===e},onKeyDown(e,t,i){switch(e.key){case"Down":case"ArrowDown":var n=this.$el.children[i+1];n&&n.children[0].focus();break;case"Up":case"ArrowUp":var l=this.$el.children[i-1];l&&l.children[0].focus();break;case"Right":case"ArrowRight":this.isOptionGroup(t)&&(this.isOptionActive(t)?e.currentTarget.nextElementSibling.children[0].children[0].focus():this.activeOption=t);break;case"Left":case"ArrowLeft":this.activeOption=null;var o=e.currentTarget.parentElement.parentElement.previousElementSibling;o&&o.focus();break;case"Enter":this.onOptionClick(e,t)}e.preventDefault()},position(){const e=this.$el.parentElement,i=t.getOffset(e),n=t.getViewport(),l=this.$el.offsetParent?this.$el.offsetWidth:t.getHiddenElementOuterWidth(this.$el),o=t.getOuterWidth(e.children[0]);parseInt(i.left,10)+o+l>n.width-t.calculateScrollbarWidth()&&(this.$el.style.left="-100%")}},directives:{ripple:o}};const C={class:"p-cascadeselect-panel p-cascadeselect-items",role:"listbox","aria-orientation":"horizontal"},k={key:1,class:"p-cascadeselect-item-text"},S={key:2,class:"p-cascadeselect-group-icon pi pi-angle-right"};w.render=function(e,t,i,n,l,o){const f=s("CascadeSelectSub",!0),m=a("ripple");return r(),p("ul",C,[(r(!0),p(c,null,d(i.options,((e,t)=>(r(),p("li",{key:o.getOptionLabelToRender(e),class:o.getItemClass(e),role:"none"},[h(u("div",{class:"p-cascadeselect-item-content",onClick:t=>o.onOptionClick(t,e),tabindex:"0",onKeydown:i=>o.onKeyDown(i,e,t)},[i.templates.option?(r(),p(b(i.templates.option),{key:0,option:e},null,8,["option"])):(r(),p("span",k,v(o.getOptionLabelToRender(e)),1)),o.isOptionGroup(e)?(r(),p("span",S)):y("",!0)],40,["onClick","onKeydown"]),[[m]]),o.isOptionGroup(e)&&o.isOptionActive(e)?(r(),p(f,{key:0,class:"p-cascadeselect-sublist",selectionPath:i.selectionPath,options:o.getOptionGroupChildren(e),optionLabel:i.optionLabel,optionValue:i.optionValue,level:i.level+1,onOptionSelect:o.onOptionSelect,onOptiongroupSelect:o.onOptionGroupSelect,optionGroupLabel:i.optionGroupLabel,optionGroupChildren:i.optionGroupChildren,parentActive:o.isOptionActive(e),dirty:i.dirty,templates:i.templates},null,8,["selectionPath","options","optionLabel","optionValue","level","onOptionSelect","onOptiongroupSelect","optionGroupLabel","optionGroupChildren","parentActive","dirty","templates"])):y("",!0)],2)))),128))])};var x={name:"CascadeSelect",emits:["update:modelValue","change","group-change","before-show","before-hide","hide","show"],data:()=>({selectionPath:null,focused:!1,overlayVisible:!1,dirty:!1}),props:{modelValue:null,options:Array,optionLabel:String,optionValue:String,optionGroupLabel:String,optionGroupChildren:Array,placeholder:String,disabled:Boolean,dataKey:null,inputId:String,tabindex:String,ariaLabelledBy:null,appendTo:{type:String,default:"body"},panelClass:null,loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:"pi pi-spinner pi-spin"}},outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(i.clear(this.overlay),this.overlay=null)},mounted(){this.updateSelectionPath()},watch:{modelValue(){this.updateSelectionPath()}},methods:{onOptionSelect(e){this.$emit("update:modelValue",e.value),this.$emit("change",e),this.hide(),this.$refs.focusInput.focus()},onOptionGroupSelect(e){this.dirty=!0,this.$emit("group-change",e)},getOptionLabel(t){return this.optionLabel?e.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.resolveFieldData(t,this.optionValue):t},getOptionGroupChildren(t,i){return e.resolveFieldData(t,this.optionGroupChildren[i])},isOptionGroup(e,t){return Object.prototype.hasOwnProperty.call(e,this.optionGroupChildren[t])},updateSelectionPath(){let e;if(null!=this.modelValue&&this.options)for(let t of this.options)if(e=this.findModelOptionInGroup(t,0),e)break;this.selectionPath=e},findModelOptionInGroup(t,i){if(this.isOptionGroup(t,i)){let e;for(let n of this.getOptionGroupChildren(t,i))if(e=this.findModelOptionInGroup(n,i+1),e)return e.unshift(t),e}else if(e.equals(this.modelValue,this.getOptionValue(t),this.dataKey))return[t];return null},show(){this.$emit("before-show"),this.overlayVisible=!0},hide(){this.$emit("before-hide"),this.overlayVisible=!1},onFocus(){this.focused=!0},onBlur(){this.focused=!1},onClick(e){this.disabled||this.loading||this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide():this.show(),this.$refs.focusInput.focus())},onOverlayEnter(e){i.set("overlay",e,this.$primevue.config.zIndex.overlay),this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null,this.dirty=!1},onOverlayAfterLeave(e){i.clear(e)},alignOverlay(){this.appendDisabled?t.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=t.getOuterWidth(this.$el)+"px",t.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.overlay&&!this.$el.contains(e.target)&&!this.overlay.contains(e.target)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new n(this.$refs.container,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},overlayRef(e){this.overlay=e},onKeyDown(e){switch(e.key){case"Down":case"ArrowDown":this.overlayVisible?t.findSingle(this.overlay,".p-cascadeselect-item").children[0].focus():e.altKey&&this.options&&this.options.length&&this.show(),e.preventDefault();break;case"Escape":this.overlayVisible&&(this.hide(),e.preventDefault());break;case"Tab":this.hide()}},onOverlayClick(e){l.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{containerClass(){return["p-cascadeselect p-component p-inputwrapper",{"p-disabled":this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue,"p-inputwrapper-focus":this.focused||this.overlayVisible}]},labelClass(){return["p-cascadeselect-label",{"p-placeholder":this.label===this.placeholder,"p-cascadeselect-label-empty":!this.$slots.value&&("p-emptylabel"===this.label||0===this.label.length)}]},label(){return this.selectionPath?this.getOptionLabel(this.selectionPath[this.selectionPath.length-1]):this.placeholder||"p-emptylabel"},panelStyleClass(){return["p-cascadeselect-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},appendDisabled(){return"self"===this.appendTo},appendTarget(){return this.appendDisabled?null:this.appendTo},dropdownIconClass(){return["p-cascadeselect-trigger-icon",this.loading?this.loadingIcon:"pi pi-chevron-down"]}},components:{CascadeSelectSub:w}};const G={class:"p-hidden-accessible"},V={class:"p-cascadeselect-items-wrapper"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===i&&n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-cascadeselect {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n cursor: pointer;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-cascadeselect-trigger {\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 -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-cascadeselect-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n}\n.p-cascadeselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n.p-cascadeselect .p-cascadeselect-panel {\n min-width: 100%;\n}\n.p-cascadeselect-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-cascadeselect-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n}\n.p-cascadeselect-item-content {\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 overflow: hidden;\n position: relative;\n}\n.p-cascadeselect-group-icon {\n margin-left: auto;\n}\n.p-cascadeselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n min-width: 100%;\n}\n.p-fluid .p-cascadeselect {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-cascadeselect .p-cascadeselect-label {\n width: 1%;\n}\n.p-cascadeselect-sublist {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n display: none;\n}\n.p-cascadeselect-item-active {\n overflow: visible !important;\n}\n.p-cascadeselect-item-active > .p-cascadeselect-sublist {\n display: block;\n left: 100%;\n top: 0;\n}\n"),x.render=function(e,t,i,n,l,o){const a=s("CascadeSelectSub");return r(),p("div",{ref:"container",class:o.containerClass,onClick:t[5]||(t[5]=e=>o.onClick(e))},[u("div",G,[u("input",{ref:"focusInput",type:"text",id:i.inputId,readonly:"",disabled:i.disabled,onFocus:t[1]||(t[1]=(...e)=>o.onFocus&&o.onFocus(...e)),onBlur:t[2]||(t[2]=(...e)=>o.onBlur&&o.onBlur(...e)),onKeydown:t[3]||(t[3]=(...e)=>o.onKeyDown&&o.onKeyDown(...e)),tabindex:i.tabindex,"aria-haspopup":"listbox","aria-expanded":l.overlayVisible,"aria-labelledby":i.ariaLabelledBy},null,40,["id","disabled","tabindex","aria-expanded","aria-labelledby"])]),u("span",{class:o.labelClass},[f(e.$slots,"value",{value:i.modelValue,placeholder:i.placeholder},(()=>[m(v(o.label),1)]))],2),u("div",{class:"p-cascadeselect-trigger",role:"button","aria-haspopup":"listbox","aria-expanded":l.overlayVisible},[f(e.$slots,"indicator",{},(()=>[u("span",{class:o.dropdownIconClass},null,2)]))],8,["aria-expanded"]),(r(),p(g,{to:o.appendTarget,disabled:o.appendDisabled},[u(O,{name:"p-connected-overlay",onEnter:o.onOverlayEnter,onLeave:o.onOverlayLeave,onAfterLeave:o.onOverlayAfterLeave},{default:L((()=>[l.overlayVisible?(r(),p("div",{key:0,ref:o.overlayRef,class:o.panelStyleClass,onClick:t[4]||(t[4]=(...e)=>o.onOverlayClick&&o.onOverlayClick(...e))},[u("div",V,[u(a,{options:i.options,selectionPath:l.selectionPath,optionLabel:i.optionLabel,optionValue:i.optionValue,level:0,templates:e.$slots,optionGroupLabel:i.optionGroupLabel,optionGroupChildren:i.optionGroupChildren,onOptionSelect:o.onOptionSelect,onOptiongroupSelect:o.onOptionGroupSelect,dirty:l.dirty,root:!0},null,8,["options","selectionPath","optionLabel","optionValue","templates","optionGroupLabel","optionGroupChildren","onOptionSelect","onOptiongroupSelect","dirty"])])],2)):y("",!0)])),_:1},8,["onEnter","onLeave","onAfterLeave"])],8,["to","disabled"]))],2)};export{x as default};
|
|
@@ -161,7 +161,7 @@ this.primevue.cascadeselect = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
directives: {
|
|
164
|
-
'ripple': Ripple__default[
|
|
164
|
+
'ripple': Ripple__default["default"]
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
|
|
@@ -483,7 +483,7 @@ this.primevue.cascadeselect = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
483
483
|
}
|
|
484
484
|
},
|
|
485
485
|
onOverlayClick(event) {
|
|
486
|
-
OverlayEventBus__default[
|
|
486
|
+
OverlayEventBus__default["default"].emit('overlay-click', {
|
|
487
487
|
originalEvent: event,
|
|
488
488
|
target: this.$el
|
|
489
489
|
});
|
|
@@ -659,4 +659,4 @@ this.primevue.cascadeselect = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
659
659
|
|
|
660
660
|
return script;
|
|
661
661
|
|
|
662
|
-
}(primevue.utils, primevue.overlayeventbus, primevue.ripple, Vue)
|
|
662
|
+
})(primevue.utils, primevue.overlayeventbus, primevue.ripple, Vue);
|
package/chart/Chart.d.ts
CHANGED
|
@@ -1,17 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
|
+
|
|
3
|
+
export interface ChartSelectEvent {
|
|
4
|
+
/**
|
|
5
|
+
* Browser event.
|
|
6
|
+
*/
|
|
7
|
+
originalEvent: Event;
|
|
8
|
+
/**
|
|
9
|
+
* Selected element.
|
|
10
|
+
*/
|
|
11
|
+
element: HTMLElement | any;
|
|
12
|
+
/**
|
|
13
|
+
* Selected dataset.
|
|
14
|
+
*/
|
|
15
|
+
dataset: any;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ChartProps {
|
|
19
|
+
/**
|
|
20
|
+
* Type of the chart.
|
|
21
|
+
*/
|
|
22
|
+
type?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Data to display.
|
|
25
|
+
*/
|
|
26
|
+
data?: object | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Options to customize the chart.
|
|
29
|
+
*/
|
|
30
|
+
options?: object | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Used to custom plugins of the chart.
|
|
33
|
+
*/
|
|
34
|
+
plugins?: any;
|
|
35
|
+
/**
|
|
36
|
+
* Width of the chart in non-responsive mode.
|
|
37
|
+
* Default value is 300.
|
|
38
|
+
*/
|
|
39
|
+
width?: number | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Height of the chart in non-responsive mode.
|
|
42
|
+
* Default value is 150.
|
|
43
|
+
*/
|
|
44
|
+
height?: number | undefined;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface ChartSlots {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export declare type ChartEmits = {
|
|
51
|
+
/**
|
|
52
|
+
* Callback to invoke when a tab gets expanded.
|
|
53
|
+
* @param {ChartSelectEvent} event - Custom select event.
|
|
54
|
+
*/
|
|
55
|
+
'select': (event: ChartSelectEvent) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Callback to invoke when chart is loaded.
|
|
58
|
+
* @param {*} chart - Chart instance.
|
|
59
|
+
*/
|
|
60
|
+
'loaded': (chart: any) => void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare class Chart extends ClassComponent<ChartProps, ChartSlots, ChartEmits> {
|
|
64
|
+
/**
|
|
65
|
+
* Redraws the graph.
|
|
66
|
+
*
|
|
67
|
+
* @memberof Chart
|
|
68
|
+
*/
|
|
69
|
+
refresh: () => void;
|
|
70
|
+
/**
|
|
71
|
+
* Destroys the graph first and then creates it again.
|
|
72
|
+
*
|
|
73
|
+
* @memberof Chart
|
|
74
|
+
*/
|
|
75
|
+
reinit: () => void;
|
|
76
|
+
/**
|
|
77
|
+
* Returns an HTML string of a legend for that chart. The legend is generated from the legendCallback in the options.
|
|
78
|
+
*
|
|
79
|
+
* @memberof Chart
|
|
80
|
+
*/
|
|
81
|
+
generateLegend: () => string | any;
|
|
82
|
+
/**
|
|
83
|
+
* Returns Chart instance.
|
|
84
|
+
*
|
|
85
|
+
* @memberof Chart
|
|
86
|
+
*/
|
|
87
|
+
getChart: () => any;
|
|
7
88
|
}
|
|
8
89
|
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
reinit(): void;
|
|
14
|
-
generateLegend(): void | any;
|
|
90
|
+
declare module '@vue/runtime-core' {
|
|
91
|
+
interface GlobalComponents {
|
|
92
|
+
Chart: GlobalComponentConstructor<Chart>
|
|
93
|
+
}
|
|
15
94
|
}
|
|
16
95
|
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* Chart components are based on Charts.js, an open source HTML5 based charting library.
|
|
99
|
+
*
|
|
100
|
+
* Helper API;
|
|
101
|
+
*
|
|
102
|
+
* - [Chart.js](https://www.chartjs.org/)
|
|
103
|
+
*
|
|
104
|
+
* Demos:
|
|
105
|
+
*
|
|
106
|
+
* - [Chart](https://www.primefaces.org/primevue/showcase/#/chart)
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
17
109
|
export default Chart;
|
package/chart/Chart.vue
CHANGED
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
<script>
|
|
8
8
|
export default {
|
|
9
9
|
name: 'Chart',
|
|
10
|
-
emits: ['select'],
|
|
10
|
+
emits: ['select', 'loaded'],
|
|
11
11
|
props: {
|
|
12
12
|
type: String,
|
|
13
13
|
data: null,
|
|
14
14
|
options: null,
|
|
15
|
+
plugins: null,
|
|
15
16
|
width: {
|
|
16
17
|
type: Number,
|
|
17
18
|
default: 300
|
|
@@ -32,8 +33,15 @@ export default {
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
watch: {
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
/*
|
|
37
|
+
* Use deep watch to enable triggering watch for changes within structure
|
|
38
|
+
* otherwise the entire data object needs to be replaced to trigger watch
|
|
39
|
+
*/
|
|
40
|
+
data: {
|
|
41
|
+
handler() {
|
|
42
|
+
this.reinit();
|
|
43
|
+
},
|
|
44
|
+
deep: true
|
|
37
45
|
},
|
|
38
46
|
type() {
|
|
39
47
|
this.reinit();
|
|
@@ -54,14 +62,20 @@ export default {
|
|
|
54
62
|
this.chart = new module.default(this.$refs.canvas, {
|
|
55
63
|
type: this.type,
|
|
56
64
|
data: this.data,
|
|
57
|
-
options: this.options
|
|
65
|
+
options: this.options,
|
|
66
|
+
plugins: this.plugins
|
|
58
67
|
});
|
|
59
68
|
}
|
|
69
|
+
|
|
70
|
+
this.$emit('loaded', this.chart);
|
|
60
71
|
});
|
|
61
72
|
},
|
|
62
73
|
getCanvas() {
|
|
63
74
|
return this.$canvas;
|
|
64
75
|
},
|
|
76
|
+
getChart() {
|
|
77
|
+
return this.chart;
|
|
78
|
+
},
|
|
65
79
|
getBase64Image() {
|
|
66
80
|
return this.chart.toBase64Image();
|
|
67
81
|
},
|
package/chart/chart.cjs.js
CHANGED
|
@@ -11,24 +11,23 @@ function _interopNamespace(e) {
|
|
|
11
11
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
12
|
Object.defineProperty(n, k, d.get ? d : {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return e[k];
|
|
16
|
-
}
|
|
14
|
+
get: function () { return e[k]; }
|
|
17
15
|
});
|
|
18
16
|
}
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
|
-
n[
|
|
19
|
+
n["default"] = e;
|
|
22
20
|
return Object.freeze(n);
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
var script = {
|
|
26
24
|
name: 'Chart',
|
|
27
|
-
emits: ['select'],
|
|
25
|
+
emits: ['select', 'loaded'],
|
|
28
26
|
props: {
|
|
29
27
|
type: String,
|
|
30
28
|
data: null,
|
|
31
29
|
options: null,
|
|
30
|
+
plugins: null,
|
|
32
31
|
width: {
|
|
33
32
|
type: Number,
|
|
34
33
|
default: 300
|
|
@@ -49,8 +48,15 @@ var script = {
|
|
|
49
48
|
}
|
|
50
49
|
},
|
|
51
50
|
watch: {
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
/*
|
|
52
|
+
* Use deep watch to enable triggering watch for changes within structure
|
|
53
|
+
* otherwise the entire data object needs to be replaced to trigger watch
|
|
54
|
+
*/
|
|
55
|
+
data: {
|
|
56
|
+
handler() {
|
|
57
|
+
this.reinit();
|
|
58
|
+
},
|
|
59
|
+
deep: true
|
|
54
60
|
},
|
|
55
61
|
type() {
|
|
56
62
|
this.reinit();
|
|
@@ -71,14 +77,20 @@ var script = {
|
|
|
71
77
|
this.chart = new module.default(this.$refs.canvas, {
|
|
72
78
|
type: this.type,
|
|
73
79
|
data: this.data,
|
|
74
|
-
options: this.options
|
|
80
|
+
options: this.options,
|
|
81
|
+
plugins: this.plugins
|
|
75
82
|
});
|
|
76
83
|
}
|
|
84
|
+
|
|
85
|
+
this.$emit('loaded', this.chart);
|
|
77
86
|
});
|
|
78
87
|
},
|
|
79
88
|
getCanvas() {
|
|
80
89
|
return this.$canvas;
|
|
81
90
|
},
|
|
91
|
+
getChart() {
|
|
92
|
+
return this.chart;
|
|
93
|
+
},
|
|
82
94
|
getBase64Image() {
|
|
83
95
|
return this.chart.toBase64Image();
|
|
84
96
|
},
|
package/chart/chart.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("vue");function e(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var
|
|
1
|
+
"use strict";var t=require("vue");function e(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var r={name:"Chart",emits:["select","loaded"],props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150}},chart:null,mounted(){this.initChart()},beforeUnmount(){this.chart&&(this.chart.destroy(),this.chart=null)},watch:{data:{handler(){this.reinit()},deep:!0},type(){this.reinit()},options(){this.reinit()}},methods:{initChart(){Promise.resolve().then((function(){return e(require("chart.js/auto"))})).then((t=>{this.chart&&(this.chart.destroy(),this.chart=null),t&&t.default&&(this.chart=new t.default(this.$refs.canvas,{type:this.type,data:this.data,options:this.options,plugins:this.plugins})),this.$emit("loaded",this.chart)}))},getCanvas(){return this.$canvas},getChart(){return this.chart},getBase64Image(){return this.chart.toBase64Image()},refresh(){this.chart&&this.chart.update()},reinit(){this.initChart()},onCanvasClick(t){if(this.chart){const e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&r&&this.$emit("select",{originalEvent:t,element:e[0],dataset:r})}},generateLegend(){if(this.chart)return this.chart.generateLegend()}}};const i={class:"p-chart"};!function(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}("\n.p-chart {\n position: relative;\n}\n"),r.render=function(e,r,n,a,s,h){return t.openBlock(),t.createBlock("div",i,[t.createVNode("canvas",{ref:"canvas",width:n.width,height:n.height,onClick:r[1]||(r[1]=t=>h.onCanvasClick(t))},null,8,["width","height"])])},module.exports=r;
|
package/chart/chart.esm.js
CHANGED
|
@@ -2,11 +2,12 @@ import { openBlock, createBlock, createVNode } from 'vue';
|
|
|
2
2
|
|
|
3
3
|
var script = {
|
|
4
4
|
name: 'Chart',
|
|
5
|
-
emits: ['select'],
|
|
5
|
+
emits: ['select', 'loaded'],
|
|
6
6
|
props: {
|
|
7
7
|
type: String,
|
|
8
8
|
data: null,
|
|
9
9
|
options: null,
|
|
10
|
+
plugins: null,
|
|
10
11
|
width: {
|
|
11
12
|
type: Number,
|
|
12
13
|
default: 300
|
|
@@ -27,8 +28,15 @@ var script = {
|
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
30
|
watch: {
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
/*
|
|
32
|
+
* Use deep watch to enable triggering watch for changes within structure
|
|
33
|
+
* otherwise the entire data object needs to be replaced to trigger watch
|
|
34
|
+
*/
|
|
35
|
+
data: {
|
|
36
|
+
handler() {
|
|
37
|
+
this.reinit();
|
|
38
|
+
},
|
|
39
|
+
deep: true
|
|
32
40
|
},
|
|
33
41
|
type() {
|
|
34
42
|
this.reinit();
|
|
@@ -49,14 +57,20 @@ var script = {
|
|
|
49
57
|
this.chart = new module.default(this.$refs.canvas, {
|
|
50
58
|
type: this.type,
|
|
51
59
|
data: this.data,
|
|
52
|
-
options: this.options
|
|
60
|
+
options: this.options,
|
|
61
|
+
plugins: this.plugins
|
|
53
62
|
});
|
|
54
63
|
}
|
|
64
|
+
|
|
65
|
+
this.$emit('loaded', this.chart);
|
|
55
66
|
});
|
|
56
67
|
},
|
|
57
68
|
getCanvas() {
|
|
58
69
|
return this.$canvas;
|
|
59
70
|
},
|
|
71
|
+
getChart() {
|
|
72
|
+
return this.chart;
|
|
73
|
+
},
|
|
60
74
|
getBase64Image() {
|
|
61
75
|
return this.chart.toBase64Image();
|
|
62
76
|
},
|
|
@@ -131,4 +145,4 @@ styleInject(css_248z);
|
|
|
131
145
|
|
|
132
146
|
script.render = render;
|
|
133
147
|
|
|
134
|
-
export default
|
|
148
|
+
export { script as default };
|
package/chart/chart.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{openBlock as t,createBlock as e,createVNode as i}from"vue";var a={name:"Chart",emits:["select"],props:{type:String,data:null,options:null,width:{type:Number,default:300},height:{type:Number,default:150}},chart:null,mounted(){this.initChart()},beforeUnmount(){this.chart&&(this.chart.destroy(),this.chart=null)},watch:{data(){this.reinit()},type(){this.reinit()},options(){this.reinit()}},methods:{initChart(){import("chart.js/auto").then((t=>{this.chart&&(this.chart.destroy(),this.chart=null),t&&t.default&&(this.chart=new t.default(this.$refs.canvas,{type:this.type,data:this.data,options:this.options}))}))},getCanvas(){return this.$canvas},getBase64Image(){return this.chart.toBase64Image()},refresh(){this.chart&&this.chart.update()},reinit(){this.initChart()},onCanvasClick(t){if(this.chart){const e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),i=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&i&&this.$emit("select",{originalEvent:t,element:e[0],dataset:i})}},generateLegend(){if(this.chart)return this.chart.generateLegend()}}};const n={class:"p-chart"};!function(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}("\n.p-chart {\n position: relative;\n}\n"),a.render=function(a,h,s,r,c
|
|
1
|
+
import{openBlock as t,createBlock as e,createVNode as i}from"vue";var a={name:"Chart",emits:["select","loaded"],props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150}},chart:null,mounted(){this.initChart()},beforeUnmount(){this.chart&&(this.chart.destroy(),this.chart=null)},watch:{data:{handler(){this.reinit()},deep:!0},type(){this.reinit()},options(){this.reinit()}},methods:{initChart(){import("chart.js/auto").then((t=>{this.chart&&(this.chart.destroy(),this.chart=null),t&&t.default&&(this.chart=new t.default(this.$refs.canvas,{type:this.type,data:this.data,options:this.options,plugins:this.plugins})),this.$emit("loaded",this.chart)}))},getCanvas(){return this.$canvas},getChart(){return this.chart},getBase64Image(){return this.chart.toBase64Image()},refresh(){this.chart&&this.chart.update()},reinit(){this.initChart()},onCanvasClick(t){if(this.chart){const e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),i=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&i&&this.$emit("select",{originalEvent:t,element:e[0],dataset:i})}},generateLegend(){if(this.chart)return this.chart.generateLegend()}}};const n={class:"p-chart"};!function(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}("\n.p-chart {\n position: relative;\n}\n"),a.render=function(a,h,s,r,d,c){return t(),e("div",n,[i("canvas",{ref:"canvas",width:s.width,height:s.height,onClick:h[1]||(h[1]=t=>c.onCanvasClick(t))},null,8,["width","height"])])};export{a as default};
|
package/chart/chart.js
CHANGED
|
@@ -4,11 +4,12 @@ this.primevue.chart = (function (vue) {
|
|
|
4
4
|
|
|
5
5
|
var script = {
|
|
6
6
|
name: 'Chart',
|
|
7
|
-
emits: ['select'],
|
|
7
|
+
emits: ['select', 'loaded'],
|
|
8
8
|
props: {
|
|
9
9
|
type: String,
|
|
10
10
|
data: null,
|
|
11
11
|
options: null,
|
|
12
|
+
plugins: null,
|
|
12
13
|
width: {
|
|
13
14
|
type: Number,
|
|
14
15
|
default: 300
|
|
@@ -29,8 +30,15 @@ this.primevue.chart = (function (vue) {
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
watch: {
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
/*
|
|
34
|
+
* Use deep watch to enable triggering watch for changes within structure
|
|
35
|
+
* otherwise the entire data object needs to be replaced to trigger watch
|
|
36
|
+
*/
|
|
37
|
+
data: {
|
|
38
|
+
handler() {
|
|
39
|
+
this.reinit();
|
|
40
|
+
},
|
|
41
|
+
deep: true
|
|
34
42
|
},
|
|
35
43
|
type() {
|
|
36
44
|
this.reinit();
|
|
@@ -51,14 +59,20 @@ this.primevue.chart = (function (vue) {
|
|
|
51
59
|
this.chart = new module.default(this.$refs.canvas, {
|
|
52
60
|
type: this.type,
|
|
53
61
|
data: this.data,
|
|
54
|
-
options: this.options
|
|
62
|
+
options: this.options,
|
|
63
|
+
plugins: this.plugins
|
|
55
64
|
});
|
|
56
65
|
}
|
|
66
|
+
|
|
67
|
+
this.$emit('loaded', this.chart);
|
|
57
68
|
});
|
|
58
69
|
},
|
|
59
70
|
getCanvas() {
|
|
60
71
|
return this.$canvas;
|
|
61
72
|
},
|
|
73
|
+
getChart() {
|
|
74
|
+
return this.chart;
|
|
75
|
+
},
|
|
62
76
|
getBase64Image() {
|
|
63
77
|
return this.chart.toBase64Image();
|
|
64
78
|
},
|
|
@@ -135,4 +149,4 @@ this.primevue.chart = (function (vue) {
|
|
|
135
149
|
|
|
136
150
|
return script;
|
|
137
151
|
|
|
138
|
-
}(Vue)
|
|
152
|
+
})(Vue);
|
package/chart/chart.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.chart=function(t){"use strict";var e={name:"Chart",emits:["select"],props:{type:String,data:null,options:null,width:{type:Number,default:300},height:{type:Number,default:150}},chart:null,mounted(){this.initChart()},beforeUnmount(){this.chart&&(this.chart.destroy(),this.chart=null)},watch:{data(){this.reinit()},type(){this.reinit()},options(){this.reinit()}},methods:{initChart(){import("chart.js/auto").then((t=>{this.chart&&(this.chart.destroy(),this.chart=null),t&&t.default&&(this.chart=new t.default(this.$refs.canvas,{type:this.type,data:this.data,options:this.options}))}))},getCanvas(){return this.$canvas},getBase64Image(){return this.chart.toBase64Image()},refresh(){this.chart&&this.chart.update()},reinit(){this.initChart()},onCanvasClick(t){if(this.chart){const e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),i=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&i&&this.$emit("select",{originalEvent:t,element:e[0],dataset:i})}},generateLegend(){if(this.chart)return this.chart.generateLegend()}}};const i={class:"p-chart"};return function(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}("\n.p-chart {\n position: relative;\n}\n"),e.render=function(e,a,n,s,
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.chart=function(t){"use strict";var e={name:"Chart",emits:["select","loaded"],props:{type:String,data:null,options:null,plugins:null,width:{type:Number,default:300},height:{type:Number,default:150}},chart:null,mounted(){this.initChart()},beforeUnmount(){this.chart&&(this.chart.destroy(),this.chart=null)},watch:{data:{handler(){this.reinit()},deep:!0},type(){this.reinit()},options(){this.reinit()}},methods:{initChart(){import("chart.js/auto").then((t=>{this.chart&&(this.chart.destroy(),this.chart=null),t&&t.default&&(this.chart=new t.default(this.$refs.canvas,{type:this.type,data:this.data,options:this.options,plugins:this.plugins})),this.$emit("loaded",this.chart)}))},getCanvas(){return this.$canvas},getChart(){return this.chart},getBase64Image(){return this.chart.toBase64Image()},refresh(){this.chart&&this.chart.update()},reinit(){this.initChart()},onCanvasClick(t){if(this.chart){const e=this.chart.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1),i=this.chart.getElementsAtEventForMode(t,"dataset",{intersect:!0},!1);e&&e[0]&&i&&this.$emit("select",{originalEvent:t,element:e[0],dataset:i})}},generateLegend(){if(this.chart)return this.chart.generateLegend()}}};const i={class:"p-chart"};return function(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}("\n.p-chart {\n position: relative;\n}\n"),e.render=function(e,a,n,h,s,r){return t.openBlock(),t.createBlock("div",i,[t.createVNode("canvas",{ref:"canvas",width:n.width,height:n.height,onClick:a[1]||(a[1]=t=>r.onCanvasClick(t))},null,8,["width","height"])])},e}(Vue);
|
package/checkbox/Checkbox.d.ts
CHANGED
|
@@ -1,19 +1,77 @@
|
|
|
1
|
-
|
|
1
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
|
+
|
|
3
|
+
export interface CheckboxProps {
|
|
4
|
+
/**
|
|
5
|
+
* Value of the checkbox.
|
|
6
|
+
*/
|
|
2
7
|
value?: any;
|
|
8
|
+
/**
|
|
9
|
+
* Value binding of the checkbox.
|
|
10
|
+
*/
|
|
3
11
|
modelValue?: any;
|
|
12
|
+
/**
|
|
13
|
+
* Allows to select a boolean value instead of multiple values.
|
|
14
|
+
*/
|
|
4
15
|
binary?: boolean;
|
|
5
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Style class of the component input field.
|
|
18
|
+
*/
|
|
19
|
+
class?: any;
|
|
20
|
+
/**
|
|
21
|
+
* Inline style of the component.
|
|
22
|
+
*/
|
|
6
23
|
style?: any;
|
|
24
|
+
/**
|
|
25
|
+
* Value in checked state.
|
|
26
|
+
*/
|
|
7
27
|
trueValue?: any;
|
|
28
|
+
/**
|
|
29
|
+
* Value in unchecked state.
|
|
30
|
+
*/
|
|
8
31
|
falseValue?: any;
|
|
9
32
|
}
|
|
10
33
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
34
|
+
export interface CheckboxSlots {
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare type CheckboxEmits = {
|
|
38
|
+
/**
|
|
39
|
+
* Emitted when the page changes.
|
|
40
|
+
* @param {*} value - New page value.
|
|
41
|
+
*/
|
|
42
|
+
'update:page': (value: any) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Callback to invoke on value click.
|
|
45
|
+
* @param {MouseEvent} event - Browser event.
|
|
46
|
+
*/
|
|
47
|
+
'click': (event: MouseEvent) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Callback to invoke on value change.
|
|
50
|
+
* @param {Event} event - Browser event.
|
|
51
|
+
*/
|
|
52
|
+
'change': (event: Event) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Callback to invoke on value change.
|
|
55
|
+
* @param {boolean} value - New value.
|
|
56
|
+
*/
|
|
57
|
+
'input': (value: boolean) => void;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class Checkbox extends ClassComponent<CheckboxProps, CheckboxSlots, CheckboxEmits> { }
|
|
61
|
+
|
|
62
|
+
declare module '@vue/runtime-core' {
|
|
63
|
+
interface GlobalComponents {
|
|
64
|
+
Checkbox: GlobalComponentConstructor<Checkbox>
|
|
65
|
+
}
|
|
17
66
|
}
|
|
18
67
|
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* Checkbox is an extension to standard checkbox element with theming.
|
|
71
|
+
*
|
|
72
|
+
* Demos:
|
|
73
|
+
*
|
|
74
|
+
* - [Checkbox](https://www.primefaces.org/primevue/showcase/#/checkbox)
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
19
77
|
export default Checkbox;
|
package/checkbox/checkbox.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ObjectUtils as e}from"primevue/utils";import{openBlock as l,createBlock as
|
|
1
|
+
import{ObjectUtils as e}from"primevue/utils";import{openBlock as l,createBlock as s,createVNode as c,mergeProps as t}from"vue";var i={name:"Checkbox",inheritAttrs:!1,emits:["click","update:modelValue","change","input"],props:{value:null,modelValue:null,binary:Boolean,class:null,style:null,trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.$attrs.disabled){let s;s=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",s),this.$emit("change",l),this.$emit("input",s),this.$refs.input.focus()}},onFocus(){this.focused=!0},onBlur(){this.focused=!1}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",this.class,{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.$attrs.disabled,"p-checkbox-focused":this.focused}]}}};const u={class:"p-hidden-accessible"};i.render=function(e,i,a,o,h,d){return l(),s("div",{class:d.containerClass,onClick:i[3]||(i[3]=e=>d.onClick(e)),style:a.style},[c("div",u,[c("input",t({ref:"input",type:"checkbox",checked:d.checked,value:a.value},e.$attrs,{onFocus:i[1]||(i[1]=(...e)=>d.onFocus&&d.onFocus(...e)),onBlur:i[2]||(i[2]=(...e)=>d.onBlur&&d.onBlur(...e))}),null,16,["checked","value"])]),c("div",{ref:"box",class:["p-checkbox-box",{"p-highlight":d.checked,"p-disabled":e.$attrs.disabled,"p-focus":h.focused}],role:"checkbox","aria-checked":d.checked},[c("span",{class:["p-checkbox-icon",{"pi pi-check":d.checked}]},null,2)],10,["aria-checked"])],6)};export{i as default};
|
package/checkbox/checkbox.js
CHANGED