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
package/core/core.js
CHANGED
|
@@ -492,10 +492,10 @@ this.primevue.utils = (function (exports) {
|
|
|
492
492
|
|
|
493
493
|
applyStyle(element, style) {
|
|
494
494
|
if (typeof style === 'string') {
|
|
495
|
-
element.style.cssText =
|
|
495
|
+
element.style.cssText = style;
|
|
496
496
|
}
|
|
497
497
|
else {
|
|
498
|
-
for (let prop in
|
|
498
|
+
for (let prop in style) {
|
|
499
499
|
element.style[prop] = style[prop];
|
|
500
500
|
}
|
|
501
501
|
}
|
|
@@ -511,6 +511,31 @@ this.primevue.utils = (function (exports) {
|
|
|
511
511
|
|
|
512
512
|
isTouchDevice() {
|
|
513
513
|
return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0));
|
|
514
|
+
},
|
|
515
|
+
|
|
516
|
+
exportCSV(csv, filename) {
|
|
517
|
+
let blob = new Blob([csv], {
|
|
518
|
+
type: 'application/csv;charset=utf-8;'
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
if (window.navigator.msSaveOrOpenBlob) {
|
|
522
|
+
navigator.msSaveOrOpenBlob(blob, filename + '.csv');
|
|
523
|
+
}
|
|
524
|
+
else {
|
|
525
|
+
let link = document.createElement("a");
|
|
526
|
+
if (link.download !== undefined) {
|
|
527
|
+
link.setAttribute('href', URL.createObjectURL(blob));
|
|
528
|
+
link.setAttribute('download', filename + '.csv');
|
|
529
|
+
link.style.display = 'none';
|
|
530
|
+
document.body.appendChild(link);
|
|
531
|
+
link.click();
|
|
532
|
+
document.body.removeChild(link);
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
csv = 'data:text/csv;charset=utf-8,' + csv;
|
|
536
|
+
window.open(encodeURI(csv));
|
|
537
|
+
}
|
|
538
|
+
}
|
|
514
539
|
}
|
|
515
540
|
};
|
|
516
541
|
|
|
@@ -744,11 +769,23 @@ this.primevue.utils = (function (exports) {
|
|
|
744
769
|
let kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
745
770
|
let propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
|
|
746
771
|
|
|
747
|
-
return ((vnode.type.props[prop].type === Boolean && props[propName] === '') ? true : props[propName]);
|
|
772
|
+
return ((vnode.type.props[prop].type === Boolean && props[propName] === '') ? true : props[propName]);
|
|
748
773
|
}
|
|
749
774
|
|
|
750
775
|
return null;
|
|
751
|
-
}
|
|
776
|
+
},
|
|
777
|
+
|
|
778
|
+
isEmpty(value) {
|
|
779
|
+
return (
|
|
780
|
+
value === null || value === undefined || value === '' ||
|
|
781
|
+
(Array.isArray(value) && value.length === 0) ||
|
|
782
|
+
(!(value instanceof Date) && typeof value === 'object' && Object.keys(value).length === 0)
|
|
783
|
+
);
|
|
784
|
+
},
|
|
785
|
+
|
|
786
|
+
isNotEmpty(value) {
|
|
787
|
+
return !this.isEmpty(value);
|
|
788
|
+
}
|
|
752
789
|
|
|
753
790
|
};
|
|
754
791
|
|
|
@@ -842,7 +879,7 @@ this.primevue.utils = (function (exports) {
|
|
|
842
879
|
|
|
843
880
|
return exports;
|
|
844
881
|
|
|
845
|
-
}({})
|
|
882
|
+
})({});
|
|
846
883
|
|
|
847
884
|
this.primevue = this.primevue || {};
|
|
848
885
|
this.primevue.api = (function (exports, utils) {
|
|
@@ -1130,30 +1167,43 @@ this.primevue.api = (function (exports, utils) {
|
|
|
1130
1167
|
ARROW_CIRCLE_RIGHT:'pi pi-arrow-circle-right',
|
|
1131
1168
|
ARROW_CIRCLE_UP:'pi pi-arrow-circle-up',
|
|
1132
1169
|
ARROW_DOWN:'pi pi-arrow-down',
|
|
1170
|
+
ARROW_DOWN_LEFT:'pi pi-arrow-down-left',
|
|
1171
|
+
ARROW_DOWN_RIGHT:'pi pi-arrow-down-right',
|
|
1133
1172
|
ARROW_LEFT:'pi pi-arrow-left',
|
|
1134
1173
|
ARROW_RIGHT:'pi pi-arrow-right',
|
|
1135
1174
|
ARROW_UP:'pi pi-arrow-up',
|
|
1175
|
+
ARROW_UP_LEFT:'pi pi-arrow-up-left',
|
|
1176
|
+
ARROW_UP_RIGHT:'pi pi-arrow-up-right',
|
|
1177
|
+
ARROW_H:'pi pi-arrow-h',
|
|
1178
|
+
ARROW_V:'pi pi-arrow-v',
|
|
1179
|
+
AT:'pi pi-at',
|
|
1136
1180
|
BACKWARD:'pi pi-backward',
|
|
1137
1181
|
BAN:'pi pi-ban',
|
|
1138
1182
|
BARS:'pi pi-bars',
|
|
1139
1183
|
BELL:'pi pi-bell',
|
|
1184
|
+
BOLT:'pi pi-bolt',
|
|
1140
1185
|
BOOK:'pi pi-book',
|
|
1141
1186
|
BOOKMARK:'pi pi-bookmark',
|
|
1187
|
+
BOOKMARK_FILL:'pi pi-bookmark-fill',
|
|
1188
|
+
BOX:'pi pi-box',
|
|
1142
1189
|
BRIEFCASE:'pi pi-briefcase',
|
|
1190
|
+
BUILDING:'pi pi-building',
|
|
1191
|
+
CALENDAR:'pi pi-calendar',
|
|
1143
1192
|
CALENDAR_MINUS:'pi pi-calendar-minus',
|
|
1144
1193
|
CALENDAR_PLUS:'pi pi-calendar-plus',
|
|
1145
1194
|
CALENDAR_TIMES:'pi pi-calendar-times',
|
|
1146
|
-
CALENDAR:'pi pi-calendar',
|
|
1147
1195
|
CAMERA:'pi pi-camera',
|
|
1196
|
+
CAR:'pi pi-car',
|
|
1148
1197
|
CARET_DOWN:'pi pi-caret-down',
|
|
1149
1198
|
CARET_LEFT:'pi pi-caret-left',
|
|
1150
1199
|
CARET_RIGHT:'pi pi-caret-right',
|
|
1151
1200
|
CARET_UP:'pi pi-caret-up',
|
|
1152
1201
|
CHART_BAR:'pi pi-chart-bar',
|
|
1153
1202
|
CHART_LINE:'pi pi-chart-line',
|
|
1203
|
+
CHART_PIE:'pi pi-chart-pie',
|
|
1204
|
+
CHECK:'pi pi-check',
|
|
1154
1205
|
CHECK_CIRCLE:'pi pi-check-circle',
|
|
1155
1206
|
CHECK_SQUARE:'pi pi-check-square',
|
|
1156
|
-
CHECK:'pi pi-check',
|
|
1157
1207
|
CHEVRON_CIRCLE_DOWN:'pi pi-chevron-circle-down',
|
|
1158
1208
|
CHEVRON_CIRCLE_LEFT:'pi pi-chevron-circle-left',
|
|
1159
1209
|
CHEVRON_CIRCLE_RIGHT:'pi pi-chevron-circle-right',
|
|
@@ -1162,66 +1212,77 @@ this.primevue.api = (function (exports, utils) {
|
|
|
1162
1212
|
CHEVRON_LEFT:'pi pi-chevron-left',
|
|
1163
1213
|
CHEVRON_RIGHT:'pi pi-chevron-right',
|
|
1164
1214
|
CHEVRON_UP:'pi pi-chevron-up',
|
|
1215
|
+
CIRCLE:'pi pi-circle',
|
|
1216
|
+
CIRCLE_FILL:'pi pi-circle-fill',
|
|
1165
1217
|
CLOCK:'pi pi-clock',
|
|
1166
1218
|
CLONE:'pi pi-clone',
|
|
1219
|
+
CLOUD:'pi pi-cloud',
|
|
1167
1220
|
CLOUD_DOWNLOAD:'pi pi-cloud-download',
|
|
1168
1221
|
CLOUD_UPLOAD:'pi pi-cloud-upload',
|
|
1169
|
-
|
|
1222
|
+
CODE:'pi pi-code',
|
|
1170
1223
|
COG:'pi pi-cog',
|
|
1171
1224
|
COMMENT:'pi pi-comment',
|
|
1172
1225
|
COMMENTS:'pi pi-comments',
|
|
1173
1226
|
COMPASS:'pi pi-compass',
|
|
1174
1227
|
COPY:'pi pi-copy',
|
|
1175
1228
|
CREDIT_CARD:'pi pi-credit-card',
|
|
1229
|
+
DATABASE:'pi pi-database',
|
|
1176
1230
|
DESKTOP:'pi pi-desktop',
|
|
1177
|
-
DISCORD:'pi pi-discord',
|
|
1178
|
-
DIRECTIONS_ALT:'pi pi-directions-alt',
|
|
1179
1231
|
DIRECTIONS:'pi pi-directions',
|
|
1232
|
+
DIRECTIONS_ALT:'pi pi-directions-alt',
|
|
1233
|
+
DISCORD:'pi pi-discord',
|
|
1180
1234
|
DOLLAR:'pi pi-dollar',
|
|
1181
1235
|
DOWNLOAD:'pi pi-download',
|
|
1182
1236
|
EJECT:'pi pi-eject',
|
|
1183
1237
|
ELLIPSIS_H:'pi pi-ellipsis-h',
|
|
1184
1238
|
ELLIPSIS_V:'pi pi-ellipsis-v',
|
|
1185
1239
|
ENVELOPE:'pi pi-envelope',
|
|
1240
|
+
EURO:'pi pi-euro',
|
|
1186
1241
|
EXCLAMATION_CIRCLE:'pi pi-exclamation-circle',
|
|
1187
|
-
EXCLAMATION_TRIANGLE :'pi pi-exclamation-triangle
|
|
1242
|
+
EXCLAMATION_TRIANGLE :'pi pi-exclamation-triangle',
|
|
1188
1243
|
EXTERNAL_LINK:'pi pi-external-link',
|
|
1189
|
-
EYE_SLASH:'pi pi-eye-slash',
|
|
1190
1244
|
EYE:'pi pi-eye',
|
|
1245
|
+
EYE_SLASH:'pi pi-eye-slash',
|
|
1191
1246
|
FACEBOOK:'pi pi-facebook',
|
|
1192
1247
|
FAST_BACKWARD:'pi pi-fast-backward',
|
|
1193
1248
|
FAST_FORWARD:'pi pi-fast-forward',
|
|
1249
|
+
FILE:'pi pi-file',
|
|
1194
1250
|
FILE_EXCEL:'pi pi-file-excel',
|
|
1195
|
-
FILE_O:'pi pi-file-o',
|
|
1196
1251
|
FILE_PDF:'pi pi-file-pdf',
|
|
1197
|
-
FILE:'pi pi-file',
|
|
1198
1252
|
FILTER:'pi pi-filter',
|
|
1253
|
+
FILTER_FILL:'pi pi-filter-fill',
|
|
1199
1254
|
FILTER_SLASH:'pi pi-filter-slash',
|
|
1200
1255
|
FLAG:'pi pi-flag',
|
|
1201
|
-
|
|
1256
|
+
FLAG_FILL:'pi pi-flag-fill',
|
|
1202
1257
|
FOLDER:'pi pi-folder',
|
|
1258
|
+
FOLDER_OPEN:'pi pi-folder-open',
|
|
1203
1259
|
FORWARD:'pi pi-forward',
|
|
1204
1260
|
GITHUB:'pi pi-github',
|
|
1205
1261
|
GLOBE:'pi pi-globe',
|
|
1206
1262
|
GOOGLE:'pi pi-google',
|
|
1263
|
+
HASHTAG:'pi pi-hashtag',
|
|
1207
1264
|
HEART:'pi pi-heart',
|
|
1265
|
+
HEART_FILL:'pi pi-heart-fill',
|
|
1266
|
+
HISTORY:'pi pi-history',
|
|
1208
1267
|
HOME:'pi pi-home',
|
|
1209
1268
|
ID_CARD:'pi pi-id-card',
|
|
1210
1269
|
IMAGE:'pi pi-image',
|
|
1211
1270
|
IMAGES:'pi pi-images',
|
|
1212
1271
|
INBOX:'pi pi-inbox',
|
|
1213
|
-
INFO_CIRCLE:'pi pi-info-circle',
|
|
1214
1272
|
INFO:'pi pi-info',
|
|
1273
|
+
INFO_CIRCLE:'pi pi-info-circle',
|
|
1274
|
+
INSTAGRAM:'pi pi-instagram',
|
|
1215
1275
|
KEY:'pi pi-key',
|
|
1216
1276
|
LINK:'pi pi-link',
|
|
1277
|
+
LINKEDIN:'pi pi-linkedin',
|
|
1217
1278
|
LIST:'pi pi-list',
|
|
1218
|
-
LOCK_OPEN:'pi pi-lock-open',
|
|
1219
1279
|
LOCK:'pi pi-lock',
|
|
1280
|
+
LOCK_OPEN:'pi pi-lock-open',
|
|
1220
1281
|
MAP:'pi pi-map',
|
|
1221
1282
|
MAP_MARKER:'pi pi-map-marker',
|
|
1222
1283
|
MICROSOFT:'pi pi-microsoft',
|
|
1223
|
-
MINUS_CIRCLE:'pi pi-minus-circle',
|
|
1224
1284
|
MINUS:'pi pi-minus',
|
|
1285
|
+
MINUS_CIRCLE:'pi pi-minus-circle',
|
|
1225
1286
|
MOBILE:'pi pi-mobile',
|
|
1226
1287
|
MONEY_BILL:'pi pi-money-bill',
|
|
1227
1288
|
MOON:'pi pi-moon',
|
|
@@ -1233,24 +1294,28 @@ this.primevue.api = (function (exports, utils) {
|
|
|
1233
1294
|
PERCENTAGE:'pi pi-percentage',
|
|
1234
1295
|
PHONE:'pi pi-phone',
|
|
1235
1296
|
PLAY:'pi pi-play',
|
|
1236
|
-
PLUS_CIRCLE:'pi pi-plus-circle',
|
|
1237
1297
|
PLUS:'pi pi-plus',
|
|
1298
|
+
PLUS_CIRCLE:'pi pi-plus-circle',
|
|
1299
|
+
POUND:'pi pi-pound',
|
|
1238
1300
|
POWER_OFF:'pi pi-power-off',
|
|
1301
|
+
PRIME:'pi pi-prime',
|
|
1239
1302
|
PRINT:'pi pi-print',
|
|
1240
|
-
|
|
1303
|
+
QRCODE:'pi pi-qrcode',
|
|
1241
1304
|
QUESTION:'pi pi-question',
|
|
1242
|
-
|
|
1243
|
-
|
|
1305
|
+
QUESTION_CIRCLE:'pi pi-question-circle',
|
|
1306
|
+
REDDIT:'pi pi-reddit',
|
|
1244
1307
|
REFRESH:'pi pi-refresh',
|
|
1245
1308
|
REPLAY:'pi pi-replay',
|
|
1246
1309
|
REPLY:'pi pi-reply',
|
|
1247
1310
|
SAVE:'pi pi-save',
|
|
1311
|
+
SEARCH:'pi pi-search',
|
|
1248
1312
|
SEARCH_MINUS:'pi pi-search-minus',
|
|
1249
1313
|
SEARCH_PLUS:'pi pi-search-plus',
|
|
1250
|
-
SEARCH:'pi pi-search',
|
|
1251
1314
|
SEND:'pi pi-send',
|
|
1315
|
+
SERVER:'pi pi-server',
|
|
1252
1316
|
SHARE_ALT:'pi pi-share-alt',
|
|
1253
1317
|
SHIELD:'pi pi-shield',
|
|
1318
|
+
SHOPPING_BAG:'pi pi-shopping-bag',
|
|
1254
1319
|
SHOPPING_CART:'pi pi-shopping-cart',
|
|
1255
1320
|
SIGN_IN:'pi pi-sign-in',
|
|
1256
1321
|
SIGN_OUT:'pi pi-sign-out',
|
|
@@ -1258,60 +1323,66 @@ this.primevue.api = (function (exports, utils) {
|
|
|
1258
1323
|
SLACK:'pi pi-slack',
|
|
1259
1324
|
SLIDERS_H:'pi pi-sliders-h',
|
|
1260
1325
|
SLIDERS_V:'pi pi-sliders-v',
|
|
1261
|
-
|
|
1262
|
-
SORT_ALPHA_ALT_UP:'pi pi-sort-alpha-alt-up',
|
|
1326
|
+
SORT:'pi pi-sort',
|
|
1263
1327
|
SORT_ALPHA_DOWN:'pi pi-sort-alpha-down',
|
|
1328
|
+
SORT_ALPHA_ALT_DOWN:'pi pi-sort-alpha-alt-down',
|
|
1264
1329
|
SORT_ALPHA_UP:'pi pi-sort-alpha-up',
|
|
1330
|
+
SORT_ALPHA_ALT_UP:'pi pi-sort-alpha-alt-up',
|
|
1265
1331
|
SORT_ALT:'pi pi-sort-alt',
|
|
1266
|
-
|
|
1332
|
+
SORT_ALT_SLASH:'pi pi-sort-slash',
|
|
1267
1333
|
SORT_AMOUNT_DOWN:'pi pi-sort-amount-down',
|
|
1268
|
-
|
|
1334
|
+
SORT_AMOUNT_DOWN_ALT:'pi pi-sort-amount-down-alt',
|
|
1269
1335
|
SORT_AMOUNT_UP:'pi pi-sort-amount-up',
|
|
1336
|
+
SORT_AMOUNT_UP_ALT:'pi pi-sort-amount-up-alt',
|
|
1270
1337
|
SORT_DOWN:'pi pi-sort-down',
|
|
1271
|
-
SORT_NUMERIC_ALT_DOWN:'pi pi-sort-numeric-alt-down',
|
|
1272
|
-
SORT_NUMERIC_ALT_UP:'pi pi-sort-numeric-alt-up',
|
|
1273
1338
|
SORT_NUMERIC_DOWN:'pi pi-sort-numeric-down',
|
|
1339
|
+
SORT_NUMERIC_ALT_DOWN:'pi pi-sort-numeric-alt-down',
|
|
1274
1340
|
SORT_NUMERIC_UP:'pi pi-sort-numeric-up',
|
|
1341
|
+
SORT_NUMERIC_ALT_UP:'pi pi-sort-numeric-alt-up',
|
|
1275
1342
|
SORT_UP:'pi pi-sort-up',
|
|
1276
|
-
SORT:'pi pi-sort',
|
|
1277
1343
|
SPINNER:'pi pi-spinner',
|
|
1278
|
-
STAR_O:'pi pi-star-o',
|
|
1279
1344
|
STAR:'pi pi-star',
|
|
1280
|
-
|
|
1345
|
+
STAR_FILL:'pi pi-star-fill',
|
|
1281
1346
|
STEP_BACKWARD:'pi pi-step-backward',
|
|
1282
|
-
|
|
1347
|
+
STEP_BACKWARD_ALT:'pi pi-step-backward-alt',
|
|
1283
1348
|
STEP_FORWARD:'pi pi-step-forward',
|
|
1349
|
+
STEP_FORWARD_ALT:'pi pi-step-forward-alt',
|
|
1350
|
+
STOP:'pi pi-stop',
|
|
1351
|
+
STOP_CIRCLE:'pi pi-stop-circle',
|
|
1284
1352
|
SUN:'pi pi-sun',
|
|
1353
|
+
SYNC:'pi pi-sync',
|
|
1285
1354
|
TABLE:'pi pi-table',
|
|
1286
1355
|
TABLET:'pi pi-tablet',
|
|
1287
1356
|
TAG:'pi pi-tag',
|
|
1288
1357
|
TAGS:'pi pi-tags',
|
|
1358
|
+
TELEGRAM:'pi pi-telegram',
|
|
1289
1359
|
TH_LARGE:'pi pi-th-large',
|
|
1290
1360
|
THUMBS_DOWN:'pi pi-thumbs-down',
|
|
1291
1361
|
THUMBS_UP:'pi pi-thumbs-up',
|
|
1292
1362
|
TICKET:'pi pi-ticket',
|
|
1293
|
-
TIMES_CIRCLE:'pi pi-times-circle',
|
|
1294
1363
|
TIMES:'pi pi-times',
|
|
1364
|
+
TIMES_CIRCLE:'pi pi-times-circle',
|
|
1295
1365
|
TRASH:'pi pi-trash',
|
|
1296
1366
|
TWITTER:'pi pi-twitter',
|
|
1297
1367
|
UNDO:'pi pi-undo',
|
|
1298
1368
|
UNLOCK:'pi pi-unlock',
|
|
1299
1369
|
UPLOAD:'pi pi-upload',
|
|
1370
|
+
USER:'pi pi-user',
|
|
1300
1371
|
USER_EDIT:'pi pi-user-edit',
|
|
1301
1372
|
USER_MINUS:'pi pi-user-minus',
|
|
1302
1373
|
USER_PLUS:'pi pi-user-plus',
|
|
1303
|
-
USER:'pi pi-user',
|
|
1304
1374
|
USERS:'pi pi-users',
|
|
1305
1375
|
VIDEO:'pi pi-video',
|
|
1306
1376
|
VIMEO:'pi pi-vimeo',
|
|
1307
1377
|
VOLUME_DOWN:'pi pi-volume-down',
|
|
1308
1378
|
VOLUME_OFF:'pi pi-volume-off',
|
|
1309
1379
|
VOLUME_UP:'pi pi-volume-up',
|
|
1310
|
-
YOUTUBE:'pi pi-youtube',
|
|
1311
1380
|
WALLET:'pi pi-wallet',
|
|
1381
|
+
WHATSAPP:'pi pi-whatsapp',
|
|
1312
1382
|
WIFI:'pi pi-wifi',
|
|
1313
1383
|
WINDOW_MAXIMIZE:'pi pi-window-maximize',
|
|
1314
|
-
WINDOW_MINIMIZE:'pi pi-window-minimize'
|
|
1384
|
+
WINDOW_MINIMIZE:'pi pi-window-minimize',
|
|
1385
|
+
YOUTUBE:'pi pi-youtube'
|
|
1315
1386
|
};
|
|
1316
1387
|
|
|
1317
1388
|
const ToastSeverities = {
|
|
@@ -1331,7 +1402,7 @@ this.primevue.api = (function (exports, utils) {
|
|
|
1331
1402
|
|
|
1332
1403
|
return exports;
|
|
1333
1404
|
|
|
1334
|
-
}({}, primevue.utils)
|
|
1405
|
+
})({}, primevue.utils);
|
|
1335
1406
|
|
|
1336
1407
|
this.primevue = this.primevue || {};
|
|
1337
1408
|
this.primevue.config = (function (exports, vue, api) {
|
|
@@ -1437,14 +1508,14 @@ this.primevue.config = (function (exports, vue, api) {
|
|
|
1437
1508
|
}
|
|
1438
1509
|
};
|
|
1439
1510
|
|
|
1440
|
-
exports
|
|
1511
|
+
exports["default"] = PrimeVue;
|
|
1441
1512
|
exports.usePrimeVue = usePrimeVue;
|
|
1442
1513
|
|
|
1443
1514
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1444
1515
|
|
|
1445
1516
|
return exports;
|
|
1446
1517
|
|
|
1447
|
-
}({}, Vue, primevue.api)
|
|
1518
|
+
})({}, Vue, primevue.api);
|
|
1448
1519
|
|
|
1449
1520
|
this.primevue = this.primevue || {};
|
|
1450
1521
|
this.primevue.ripple = (function (utils) {
|
|
@@ -1525,7 +1596,323 @@ this.primevue.ripple = (function (utils) {
|
|
|
1525
1596
|
|
|
1526
1597
|
return Ripple;
|
|
1527
1598
|
|
|
1528
|
-
}(primevue.utils)
|
|
1599
|
+
})(primevue.utils);
|
|
1600
|
+
|
|
1601
|
+
this.primevue = this.primevue || {};
|
|
1602
|
+
this.primevue.tooltip = (function (utils) {
|
|
1603
|
+
'use strict';
|
|
1604
|
+
|
|
1605
|
+
function bindEvents(el) {
|
|
1606
|
+
const modifiers = el.$_ptooltipModifiers;
|
|
1607
|
+
if (modifiers.focus) {
|
|
1608
|
+
el.addEventListener('focus', onFocus);
|
|
1609
|
+
el.addEventListener('blur', onBlur);
|
|
1610
|
+
}
|
|
1611
|
+
else {
|
|
1612
|
+
el.addEventListener('mouseenter', onMouseEnter);
|
|
1613
|
+
el.addEventListener('mouseleave', onMouseLeave);
|
|
1614
|
+
el.addEventListener('click', onClick);
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
function unbindEvents(el) {
|
|
1619
|
+
const modifiers = el.$_ptooltipModifiers;
|
|
1620
|
+
if (modifiers.focus) {
|
|
1621
|
+
el.removeEventListener('focus', onFocus);
|
|
1622
|
+
el.removeEventListener('blur', onBlur);
|
|
1623
|
+
}
|
|
1624
|
+
else {
|
|
1625
|
+
el.removeEventListener('mouseenter', onMouseEnter);
|
|
1626
|
+
el.removeEventListener('mouseleave', onMouseLeave);
|
|
1627
|
+
el.removeEventListener('click', onClick);
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
function bindScrollListener(el) {
|
|
1632
|
+
if (!el.$_ptooltipScrollHandler) {
|
|
1633
|
+
el.$_ptooltipScrollHandler = new utils.ConnectedOverlayScrollHandler(el, function() {
|
|
1634
|
+
hide(el);
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
el.$_ptooltipScrollHandler.bindScrollListener();
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
function unbindScrollListener(el) {
|
|
1642
|
+
if (el.$_ptooltipScrollHandler) {
|
|
1643
|
+
el.$_ptooltipScrollHandler.unbindScrollListener();
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
function onMouseEnter(event) {
|
|
1648
|
+
show(event.currentTarget);
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
function onMouseLeave(event) {
|
|
1652
|
+
hide(event.currentTarget);
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
function onFocus(event) {
|
|
1656
|
+
show(event.currentTarget);
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
function onBlur(event) {
|
|
1660
|
+
hide(event.currentTarget);
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
function onClick(event) {
|
|
1664
|
+
hide(event.currentTarget);
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
function show(el) {
|
|
1668
|
+
if (el.$_ptooltipDisabled) {
|
|
1669
|
+
return;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
let tooltipElement = create(el);
|
|
1673
|
+
align(el);
|
|
1674
|
+
utils.DomHandler.fadeIn(tooltipElement, 250);
|
|
1675
|
+
|
|
1676
|
+
window.addEventListener('resize', function onWindowResize() {
|
|
1677
|
+
if (!utils.DomHandler.isAndroid()) {
|
|
1678
|
+
hide(el);
|
|
1679
|
+
}
|
|
1680
|
+
this.removeEventListener('resize', onWindowResize);
|
|
1681
|
+
});
|
|
1682
|
+
|
|
1683
|
+
bindScrollListener(el);
|
|
1684
|
+
utils.ZIndexUtils.set('tooltip', tooltipElement, el.$_ptooltipZIndex);
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
function hide(el) {
|
|
1688
|
+
remove(el);
|
|
1689
|
+
unbindScrollListener(el);
|
|
1690
|
+
utils.ZIndexUtils.clear(el);
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
function getTooltipElement(el) {
|
|
1694
|
+
return document.getElementById(el.$_ptooltipId);
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
function create(el) {
|
|
1698
|
+
const id = utils.UniqueComponentId() + '_tooltip';
|
|
1699
|
+
el.$_ptooltipId = id;
|
|
1700
|
+
|
|
1701
|
+
let container = document.createElement('div');
|
|
1702
|
+
container.id = id;
|
|
1703
|
+
|
|
1704
|
+
let tooltipArrow = document.createElement('div');
|
|
1705
|
+
tooltipArrow.className = 'p-tooltip-arrow';
|
|
1706
|
+
container.appendChild(tooltipArrow);
|
|
1707
|
+
|
|
1708
|
+
let tooltipText = document.createElement('div');
|
|
1709
|
+
tooltipText.className = 'p-tooltip-text';
|
|
1710
|
+
tooltipText.innerHTML = el.$_ptooltipValue;
|
|
1711
|
+
|
|
1712
|
+
container.appendChild(tooltipText);
|
|
1713
|
+
document.body.appendChild(container);
|
|
1714
|
+
|
|
1715
|
+
container.style.display = 'inline-block';
|
|
1716
|
+
|
|
1717
|
+
return container;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
function remove(el) {
|
|
1721
|
+
if (el) {
|
|
1722
|
+
let tooltipElement = getTooltipElement(el);
|
|
1723
|
+
if (tooltipElement && tooltipElement.parentElement) {
|
|
1724
|
+
document.body.removeChild(tooltipElement);
|
|
1725
|
+
}
|
|
1726
|
+
el.$_ptooltipId = null;
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
function align(el) {
|
|
1731
|
+
const modifiers = el.$_ptooltipModifiers;
|
|
1732
|
+
|
|
1733
|
+
if (modifiers.top) {
|
|
1734
|
+
alignTop(el);
|
|
1735
|
+
if (isOutOfBounds(el)) {
|
|
1736
|
+
alignBottom(el);
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
else if (modifiers.left) {
|
|
1740
|
+
alignLeft(el);
|
|
1741
|
+
if (isOutOfBounds(el)) {
|
|
1742
|
+
alignRight(el);
|
|
1743
|
+
|
|
1744
|
+
if (isOutOfBounds(el)) {
|
|
1745
|
+
alignTop(el);
|
|
1746
|
+
|
|
1747
|
+
if (isOutOfBounds(el)) {
|
|
1748
|
+
alignBottom(el);
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
else if (modifiers.bottom) {
|
|
1754
|
+
alignBottom(el);
|
|
1755
|
+
if (isOutOfBounds(el)) {
|
|
1756
|
+
alignTop(el);
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
else {
|
|
1760
|
+
alignRight(el);
|
|
1761
|
+
if (isOutOfBounds(el)) {
|
|
1762
|
+
alignLeft(el);
|
|
1763
|
+
|
|
1764
|
+
if (isOutOfBounds(el)) {
|
|
1765
|
+
alignTop(el);
|
|
1766
|
+
|
|
1767
|
+
if (isOutOfBounds(el)) {
|
|
1768
|
+
alignBottom(el);
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
function getHostOffset(el) {
|
|
1776
|
+
let offset = el.getBoundingClientRect();
|
|
1777
|
+
let targetLeft = offset.left + utils.DomHandler.getWindowScrollLeft();
|
|
1778
|
+
let targetTop = offset.top + utils.DomHandler.getWindowScrollTop();
|
|
1779
|
+
|
|
1780
|
+
return {left: targetLeft, top: targetTop};
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
function alignRight(el) {
|
|
1784
|
+
preAlign(el, 'right');
|
|
1785
|
+
let tooltipElement = getTooltipElement(el);
|
|
1786
|
+
let hostOffset = getHostOffset(el);
|
|
1787
|
+
let left = hostOffset.left + utils.DomHandler.getOuterWidth(el);
|
|
1788
|
+
let top = hostOffset.top + (utils.DomHandler.getOuterHeight(el) - utils.DomHandler.getOuterHeight(tooltipElement)) / 2;
|
|
1789
|
+
tooltipElement.style.left = left + 'px';
|
|
1790
|
+
tooltipElement.style.top = top + 'px';
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
function alignLeft(el) {
|
|
1794
|
+
preAlign(el, 'left');
|
|
1795
|
+
let tooltipElement = getTooltipElement(el);
|
|
1796
|
+
let hostOffset = getHostOffset(el);
|
|
1797
|
+
let left = hostOffset.left - utils.DomHandler.getOuterWidth(tooltipElement);
|
|
1798
|
+
let top = hostOffset.top + (utils.DomHandler.getOuterHeight(el) - utils.DomHandler.getOuterHeight(tooltipElement)) / 2;
|
|
1799
|
+
tooltipElement.style.left = left + 'px';
|
|
1800
|
+
tooltipElement.style.top = top + 'px';
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
function alignTop(el) {
|
|
1804
|
+
preAlign(el, 'top');
|
|
1805
|
+
let tooltipElement = getTooltipElement(el);
|
|
1806
|
+
let hostOffset = getHostOffset(el);
|
|
1807
|
+
let left = hostOffset.left + (utils.DomHandler.getOuterWidth(el) - utils.DomHandler.getOuterWidth(tooltipElement)) / 2;
|
|
1808
|
+
let top = hostOffset.top - utils.DomHandler.getOuterHeight(tooltipElement);
|
|
1809
|
+
tooltipElement.style.left = left + 'px';
|
|
1810
|
+
tooltipElement.style.top = top + 'px';
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
function alignBottom(el) {
|
|
1814
|
+
preAlign(el, 'bottom');
|
|
1815
|
+
let tooltipElement = getTooltipElement(el);
|
|
1816
|
+
let hostOffset = getHostOffset(el);
|
|
1817
|
+
let left = hostOffset.left + (utils.DomHandler.getOuterWidth(el) - utils.DomHandler.getOuterWidth(tooltipElement)) / 2;
|
|
1818
|
+
let top = hostOffset.top + utils.DomHandler.getOuterHeight(el);
|
|
1819
|
+
tooltipElement.style.left = left + 'px';
|
|
1820
|
+
tooltipElement.style.top = top + 'px';
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
function preAlign(el, position) {
|
|
1824
|
+
let tooltipElement = getTooltipElement(el);
|
|
1825
|
+
tooltipElement.style.left = -999 + 'px';
|
|
1826
|
+
tooltipElement.style.top = -999 + 'px';
|
|
1827
|
+
tooltipElement.className = `p-tooltip p-component p-tooltip-${position} ${el.$_ptooltipClass||''}`;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
function isOutOfBounds(el) {
|
|
1831
|
+
let tooltipElement = getTooltipElement(el);
|
|
1832
|
+
let offset = tooltipElement.getBoundingClientRect();
|
|
1833
|
+
let targetTop = offset.top;
|
|
1834
|
+
let targetLeft = offset.left;
|
|
1835
|
+
let width = utils.DomHandler.getOuterWidth(tooltipElement);
|
|
1836
|
+
let height = utils.DomHandler.getOuterHeight(tooltipElement);
|
|
1837
|
+
let viewport = utils.DomHandler.getViewport();
|
|
1838
|
+
|
|
1839
|
+
return (targetLeft + width > viewport.width) || (targetLeft < 0) || (targetTop < 0) || (targetTop + height > viewport.height);
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
function getTarget(el) {
|
|
1843
|
+
return utils.DomHandler.hasClass(el, 'p-inputwrapper') ? utils.DomHandler.findSingle(el, 'input'): el;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
function getModifiers(options) {
|
|
1847
|
+
// modifiers
|
|
1848
|
+
if (options.modifiers && Object.keys(options.modifiers).length) {
|
|
1849
|
+
return options.modifiers;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
// arg
|
|
1853
|
+
if (options.arg && typeof options.arg === 'object') {
|
|
1854
|
+
return Object.entries(options.arg).reduce((acc, [key, val]) => {
|
|
1855
|
+
if (key === 'event' || key === 'position') acc[val] = true;
|
|
1856
|
+
return acc;
|
|
1857
|
+
}, {});
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
return {};
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
const Tooltip = {
|
|
1864
|
+
beforeMount(el, options) {
|
|
1865
|
+
let target = getTarget(el);
|
|
1866
|
+
target.$_ptooltipModifiers = getModifiers(options);
|
|
1867
|
+
|
|
1868
|
+
if (!options.value) return;
|
|
1869
|
+
else if (typeof options.value === 'string') {
|
|
1870
|
+
target.$_ptooltipValue = options.value;
|
|
1871
|
+
target.$_ptooltipDisabled = false;
|
|
1872
|
+
target.$_ptooltipClass = null;
|
|
1873
|
+
}
|
|
1874
|
+
else {
|
|
1875
|
+
target.$_ptooltipValue = options.value.value;
|
|
1876
|
+
target.$_ptooltipDisabled = options.value.disabled || false;
|
|
1877
|
+
target.$_ptooltipClass = options.value.class;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
target.$_ptooltipZIndex = options.instance.$primevue && options.instance.$primevue.config && options.instance.$primevue.config.zIndex.tooltip;
|
|
1881
|
+
bindEvents(target);
|
|
1882
|
+
},
|
|
1883
|
+
unmounted(el) {
|
|
1884
|
+
let target = getTarget(el);
|
|
1885
|
+
remove(target);
|
|
1886
|
+
unbindEvents(target);
|
|
1887
|
+
|
|
1888
|
+
if (target.$_ptooltipScrollHandler) {
|
|
1889
|
+
target.$_ptooltipScrollHandler.destroy();
|
|
1890
|
+
target.$_ptooltipScrollHandler = null;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
utils.ZIndexUtils.clear(el);
|
|
1894
|
+
},
|
|
1895
|
+
updated(el, options) {
|
|
1896
|
+
let target = getTarget(el);
|
|
1897
|
+
target.$_ptooltipModifiers = getModifiers(options);
|
|
1898
|
+
|
|
1899
|
+
if (!options.value) return;
|
|
1900
|
+
if (typeof options.value === 'string') {
|
|
1901
|
+
target.$_ptooltipValue = options.value;
|
|
1902
|
+
target.$_ptooltipDisabled = false;
|
|
1903
|
+
target.$_ptooltipClass = null;
|
|
1904
|
+
}
|
|
1905
|
+
else {
|
|
1906
|
+
target.$_ptooltipValue = options.value.value;
|
|
1907
|
+
target.$_ptooltipDisabled = options.value.disabled || false;
|
|
1908
|
+
target.$_ptooltipClass = options.value.class;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
};
|
|
1912
|
+
|
|
1913
|
+
return Tooltip;
|
|
1914
|
+
|
|
1915
|
+
})(primevue.utils);
|
|
1529
1916
|
|
|
1530
1917
|
this.primevue = this.primevue || {};
|
|
1531
1918
|
this.primevue.virtualscroller = (function (vue) {
|
|
@@ -1533,15 +1920,21 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
1533
1920
|
|
|
1534
1921
|
var script = {
|
|
1535
1922
|
name: 'VirtualScroller',
|
|
1536
|
-
emits: ['update:numToleratedItems', 'scroll-index-change', 'lazy-load'],
|
|
1923
|
+
emits: ['update:numToleratedItems', 'scroll', 'scroll-index-change', 'lazy-load'],
|
|
1537
1924
|
props: {
|
|
1925
|
+
id: {
|
|
1926
|
+
type: String,
|
|
1927
|
+
default: null
|
|
1928
|
+
},
|
|
1929
|
+
style: null,
|
|
1930
|
+
class: null,
|
|
1538
1931
|
items: {
|
|
1539
1932
|
type: Array,
|
|
1540
1933
|
default: null
|
|
1541
1934
|
},
|
|
1542
1935
|
itemSize: {
|
|
1543
1936
|
type: [Number,Array],
|
|
1544
|
-
default:
|
|
1937
|
+
default: 0
|
|
1545
1938
|
},
|
|
1546
1939
|
scrollHeight: null,
|
|
1547
1940
|
scrollWidth: null,
|
|
@@ -1561,17 +1954,27 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
1561
1954
|
type: Boolean,
|
|
1562
1955
|
default: false
|
|
1563
1956
|
},
|
|
1564
|
-
|
|
1957
|
+
disabled: {
|
|
1565
1958
|
type: Boolean,
|
|
1566
1959
|
default: false
|
|
1567
1960
|
},
|
|
1961
|
+
loaderDisabled: {
|
|
1962
|
+
type: Boolean,
|
|
1963
|
+
default: false
|
|
1964
|
+
},
|
|
1965
|
+
columns: {
|
|
1966
|
+
type: Array,
|
|
1967
|
+
default: null
|
|
1968
|
+
},
|
|
1568
1969
|
loading: {
|
|
1569
1970
|
type: Boolean,
|
|
1570
1971
|
default: false
|
|
1571
1972
|
},
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1973
|
+
showSpacer: {
|
|
1974
|
+
type: Boolean,
|
|
1975
|
+
default: true
|
|
1976
|
+
},
|
|
1977
|
+
showLoader: {
|
|
1575
1978
|
type: Boolean,
|
|
1576
1979
|
default: false
|
|
1577
1980
|
}
|
|
@@ -1584,15 +1987,19 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
1584
1987
|
lastScrollPos: this.isBoth() ? { top: 0, left: 0 } : 0,
|
|
1585
1988
|
d_numToleratedItems: this.numToleratedItems,
|
|
1586
1989
|
d_loading: this.loading,
|
|
1587
|
-
loaderArr:
|
|
1990
|
+
loaderArr: [],
|
|
1991
|
+
spacerStyle: {},
|
|
1992
|
+
contentStyle: {}
|
|
1588
1993
|
}
|
|
1589
1994
|
},
|
|
1590
1995
|
element: null,
|
|
1591
1996
|
content: null,
|
|
1592
|
-
|
|
1997
|
+
lastScrollPos: null,
|
|
1593
1998
|
scrollTimeout: null,
|
|
1594
1999
|
mounted() {
|
|
1595
2000
|
this.init();
|
|
2001
|
+
|
|
2002
|
+
this.lastScrollPos = this.isBoth() ? { top: 0, left: 0 } : 0;
|
|
1596
2003
|
},
|
|
1597
2004
|
watch: {
|
|
1598
2005
|
numToleratedItems(newValue) {
|
|
@@ -1601,67 +2008,185 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
1601
2008
|
loading(newValue) {
|
|
1602
2009
|
this.d_loading = newValue;
|
|
1603
2010
|
},
|
|
1604
|
-
items(newValue,
|
|
1605
|
-
if (!
|
|
2011
|
+
items(newValue, oldValue) {
|
|
2012
|
+
if (!oldValue || oldValue.length !== (newValue || []).length) {
|
|
1606
2013
|
this.init();
|
|
1607
2014
|
}
|
|
2015
|
+
},
|
|
2016
|
+
orientation() {
|
|
2017
|
+
this.lastScrollPos = this.isBoth() ? { top: 0, left: 0 } : 0;
|
|
1608
2018
|
}
|
|
1609
2019
|
},
|
|
1610
2020
|
methods: {
|
|
1611
2021
|
init() {
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
2022
|
+
this.setSize();
|
|
2023
|
+
this.calculateOptions();
|
|
2024
|
+
this.setSpacerSize();
|
|
2025
|
+
},
|
|
2026
|
+
isVertical() {
|
|
2027
|
+
return this.orientation === 'vertical';
|
|
2028
|
+
},
|
|
2029
|
+
isHorizontal() {
|
|
2030
|
+
return this.orientation === 'horizontal';
|
|
2031
|
+
},
|
|
2032
|
+
isBoth() {
|
|
2033
|
+
return this.orientation === 'both';
|
|
2034
|
+
},
|
|
2035
|
+
scrollTo(options) {
|
|
2036
|
+
this.element && this.element.scrollTo(options);
|
|
2037
|
+
},
|
|
2038
|
+
scrollToIndex(index, behavior = 'auto') {
|
|
2039
|
+
const both = this.isBoth();
|
|
2040
|
+
const horizontal = this.isHorizontal();
|
|
2041
|
+
const contentPos = this.getContentPosition();
|
|
2042
|
+
const calculateFirst = (_index = 0, _numT) => (_index <= _numT ? 0 : _index);
|
|
2043
|
+
const calculateCoord = (_first, _size, _cpos) => (_first * _size) + _cpos;
|
|
2044
|
+
const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
|
|
2045
|
+
|
|
2046
|
+
if (both) {
|
|
2047
|
+
const newFirst = { rows: calculateFirst(index[0], this.d_numToleratedItems[0]), cols: calculateFirst(index[1], this.d_numToleratedItems[1]) };
|
|
2048
|
+
if (newFirst.rows !== this.first.rows || newFirst.cols !== this.first.cols) {
|
|
2049
|
+
scrollTo(calculateCoord(newFirst.cols, this.itemSize[1], contentPos.left), calculateCoord(newFirst.rows, this.itemSize[0], contentPos.top));
|
|
2050
|
+
this.first = newFirst;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
else {
|
|
2054
|
+
const newFirst = calculateFirst(index, this.d_numToleratedItems);
|
|
2055
|
+
|
|
2056
|
+
if (newFirst !== this.first) {
|
|
2057
|
+
horizontal ? scrollTo(calculateCoord(newFirst, this.itemSize, contentPos.left), 0) : scrollTo(0, calculateCoord(newFirst, this.itemSize, contentPos.top));
|
|
2058
|
+
this.first = newFirst;
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
},
|
|
2062
|
+
scrollInView(index, to, behavior = 'auto') {
|
|
2063
|
+
if (to) {
|
|
2064
|
+
const both = this.isBoth();
|
|
2065
|
+
const horizontal = this.isHorizontal();
|
|
2066
|
+
const { first, viewport } = this.getRenderedRange();
|
|
2067
|
+
const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
|
|
2068
|
+
const isToStart = to === 'to-start';
|
|
2069
|
+
const isToEnd = to === 'to-end';
|
|
2070
|
+
|
|
2071
|
+
if (isToStart) {
|
|
2072
|
+
if (both) {
|
|
2073
|
+
if (viewport.first.rows - first.rows > index[0]) {
|
|
2074
|
+
scrollTo(viewport.first.cols * this.itemSize[1], (viewport.first.rows - 1) * this.itemSize[0]);
|
|
2075
|
+
}
|
|
2076
|
+
else if (viewport.first.cols - first.cols > index[1]) {
|
|
2077
|
+
scrollTo((viewport.first.cols - 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
else {
|
|
2081
|
+
if (viewport.first - first > index) {
|
|
2082
|
+
const pos = (viewport.first - 1) * this.itemSize;
|
|
2083
|
+
horizontal ? scrollTo(pos, 0) : scrollTo(0, pos);
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
else if (isToEnd) {
|
|
2088
|
+
if (both) {
|
|
2089
|
+
if (viewport.last.rows - first.rows <= index[0] + 1) {
|
|
2090
|
+
scrollTo(viewport.first.cols * this.itemSize[1], (viewport.first.rows + 1) * this.itemSize[0]);
|
|
2091
|
+
}
|
|
2092
|
+
else if (viewport.last.cols - first.cols <= index[1] + 1) {
|
|
2093
|
+
scrollTo((viewport.first.cols + 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
else {
|
|
2097
|
+
if (viewport.last - first <= index + 1) {
|
|
2098
|
+
const pos = (viewport.first + 1) * this.itemSize;
|
|
2099
|
+
horizontal ? scrollTo(pos, 0) : scrollTo(0, pos);
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
else {
|
|
2105
|
+
this.scrollToIndex(index, behavior);
|
|
1616
2106
|
}
|
|
1617
2107
|
},
|
|
1618
|
-
|
|
1619
|
-
|
|
2108
|
+
getRenderedRange() {
|
|
2109
|
+
const calculateFirstInViewport = (_pos, _size) => Math.floor(_pos / (_size || _pos));
|
|
2110
|
+
|
|
2111
|
+
let firstInViewport = this.first;
|
|
2112
|
+
let lastInViewport = 0;
|
|
2113
|
+
|
|
2114
|
+
if (this.element) {
|
|
2115
|
+
const both = this.isBoth();
|
|
2116
|
+
const horizontal = this.isHorizontal();
|
|
2117
|
+
const scrollTop = this.element.scrollTop;
|
|
2118
|
+
const scrollLeft = this.element.scrollLeft;
|
|
2119
|
+
|
|
2120
|
+
if (both) {
|
|
2121
|
+
firstInViewport = { rows: calculateFirstInViewport(scrollTop, this.itemSize[0]), cols: calculateFirstInViewport(scrollLeft, this.itemSize[1]) };
|
|
2122
|
+
lastInViewport = { rows: firstInViewport.rows + this.numItemsInViewport.rows, cols: firstInViewport.cols + this.numItemsInViewport.cols };
|
|
2123
|
+
}
|
|
2124
|
+
else {
|
|
2125
|
+
const scrollPos = horizontal ? scrollLeft : scrollTop;
|
|
2126
|
+
firstInViewport = calculateFirstInViewport(scrollPos, this.itemSize);
|
|
2127
|
+
lastInViewport = firstInViewport + this.numItemsInViewport;
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
return {
|
|
2132
|
+
first: this.first,
|
|
2133
|
+
last: this.last,
|
|
2134
|
+
viewport: {
|
|
2135
|
+
first: firstInViewport,
|
|
2136
|
+
last: lastInViewport
|
|
2137
|
+
}
|
|
2138
|
+
};
|
|
1620
2139
|
},
|
|
1621
2140
|
calculateOptions() {
|
|
1622
|
-
const
|
|
1623
|
-
const
|
|
1624
|
-
const
|
|
1625
|
-
const
|
|
1626
|
-
const
|
|
1627
|
-
const contentWidth = this.element ? this.element.offsetWidth - contentPadding.left : 0;
|
|
1628
|
-
const contentHeight = this.element ? this.element.offsetHeight - contentPadding.top : 0;
|
|
2141
|
+
const both = this.isBoth();
|
|
2142
|
+
const horizontal = this.isHorizontal();
|
|
2143
|
+
const contentPos = this.getContentPosition();
|
|
2144
|
+
const contentWidth = this.element ? this.element.offsetWidth - contentPos.left : 0;
|
|
2145
|
+
const contentHeight = this.element ? this.element.offsetHeight - contentPos.top : 0;
|
|
1629
2146
|
const calculateNumItemsInViewport = (_contentSize, _itemSize) => Math.ceil(_contentSize / (_itemSize || _contentSize));
|
|
1630
|
-
const
|
|
1631
|
-
|
|
1632
|
-
calculateNumItemsInViewport(
|
|
2147
|
+
const calculateNumToleratedItems = (_numItems) => Math.ceil(_numItems / 2);
|
|
2148
|
+
const numItemsInViewport = both ?
|
|
2149
|
+
{ rows: calculateNumItemsInViewport(contentHeight, this.itemSize[0]), cols: calculateNumItemsInViewport(contentWidth, this.itemSize[1]) } :
|
|
2150
|
+
calculateNumItemsInViewport((horizontal ? contentWidth : contentHeight), this.itemSize);
|
|
1633
2151
|
|
|
1634
|
-
let numToleratedItems = this.d_numToleratedItems ||
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
2152
|
+
let numToleratedItems = this.d_numToleratedItems || (both ?
|
|
2153
|
+
[calculateNumToleratedItems(numItemsInViewport.rows), calculateNumToleratedItems(numItemsInViewport.cols)] :
|
|
2154
|
+
calculateNumToleratedItems(numItemsInViewport));
|
|
2155
|
+
|
|
2156
|
+
const calculateLast = (_first, _num, _numT, _isCols) => this.getLast(_first + _num + ((_first < _numT ? 2 : 3) * _numT), _isCols);
|
|
2157
|
+
const last = both ?
|
|
2158
|
+
{ rows: calculateLast(this.first.rows, numItemsInViewport.rows, numToleratedItems[0]), cols: calculateLast(this.first.cols, numItemsInViewport.cols, numToleratedItems[1], true) } :
|
|
2159
|
+
calculateLast(this.first, numItemsInViewport, numToleratedItems);
|
|
1639
2160
|
|
|
1640
|
-
this.d_numToleratedItems = numToleratedItems;
|
|
1641
|
-
this.$emit('update:numToleratedItems', this.d_numToleratedItems);
|
|
1642
2161
|
this.last = last;
|
|
1643
2162
|
this.numItemsInViewport = numItemsInViewport;
|
|
2163
|
+
this.d_numToleratedItems = numToleratedItems;
|
|
2164
|
+
this.$emit('update:numToleratedItems', this.d_numToleratedItems);
|
|
1644
2165
|
|
|
1645
2166
|
if (this.showLoader) {
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
else {
|
|
1650
|
-
this.loaderArr = Array.from({ length: 1});
|
|
1651
|
-
}
|
|
2167
|
+
this.loaderArr = both ?
|
|
2168
|
+
Array.from({ length: numItemsInViewport.rows }).map(() => Array.from({ length: numItemsInViewport.cols })) :
|
|
2169
|
+
Array.from({ length: numItemsInViewport });
|
|
1652
2170
|
}
|
|
1653
2171
|
|
|
1654
2172
|
if (this.lazy) {
|
|
1655
|
-
this.$emit('lazy-load', { first, last });
|
|
2173
|
+
this.$emit('lazy-load', { first: this.first, last });
|
|
2174
|
+
}
|
|
2175
|
+
},
|
|
2176
|
+
getLast(last = 0, isCols) {
|
|
2177
|
+
if (this.items) {
|
|
2178
|
+
return Math.min((isCols ? (this.columns || this.items[0]).length : this.items.length), last);
|
|
1656
2179
|
}
|
|
2180
|
+
|
|
2181
|
+
return 0;
|
|
1657
2182
|
},
|
|
1658
|
-
|
|
2183
|
+
getContentPosition() {
|
|
1659
2184
|
if (this.content) {
|
|
1660
2185
|
const style = getComputedStyle(this.content);
|
|
1661
|
-
const left = parseInt(
|
|
1662
|
-
const right = parseInt(
|
|
1663
|
-
const top = parseInt(
|
|
1664
|
-
const bottom = parseInt(
|
|
2186
|
+
const left = parseInt(style.paddingLeft, 10) + Math.max(parseInt(style.left, 10), 0);
|
|
2187
|
+
const right = parseInt(style.paddingRight, 10) + Math.max(parseInt(style.right, 10), 0);
|
|
2188
|
+
const top = parseInt(style.paddingTop, 10) + Math.max(parseInt(style.top, 10), 0);
|
|
2189
|
+
const bottom = parseInt(style.paddingBottom, 10) + Math.max(parseInt(style.bottom, 10), 0);
|
|
1665
2190
|
|
|
1666
2191
|
return { left, right, top, bottom, x: left + right, y: top + bottom };
|
|
1667
2192
|
}
|
|
@@ -1670,126 +2195,125 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
1670
2195
|
},
|
|
1671
2196
|
setSize() {
|
|
1672
2197
|
if (this.element) {
|
|
1673
|
-
const
|
|
1674
|
-
const
|
|
2198
|
+
const both = this.isBoth();
|
|
2199
|
+
const horizontal = this.isHorizontal();
|
|
1675
2200
|
const parentElement = this.element.parentElement;
|
|
1676
2201
|
const width = this.scrollWidth || `${(this.element.offsetWidth || parentElement.offsetWidth)}px`;
|
|
1677
2202
|
const height = this.scrollHeight || `${(this.element.offsetHeight || parentElement.offsetHeight)}px`;
|
|
1678
2203
|
const setProp = (_name, _value) => this.element.style[_name] = _value;
|
|
1679
2204
|
|
|
1680
|
-
if (
|
|
2205
|
+
if (both || horizontal) {
|
|
1681
2206
|
setProp('height', height);
|
|
1682
2207
|
setProp('width', width);
|
|
1683
2208
|
}
|
|
1684
2209
|
else {
|
|
1685
|
-
|
|
2210
|
+
setProp('height', height);
|
|
1686
2211
|
}
|
|
1687
2212
|
}
|
|
1688
2213
|
},
|
|
1689
2214
|
setSpacerSize() {
|
|
1690
2215
|
const items = this.items;
|
|
1691
2216
|
|
|
1692
|
-
if (
|
|
1693
|
-
const
|
|
1694
|
-
const
|
|
1695
|
-
const
|
|
1696
|
-
const
|
|
1697
|
-
const setProp = (_name, _value, _size, _padding = 0) => this.spacer.style[_name] = (((_value || []).length * _size) + _padding) + 'px';
|
|
2217
|
+
if (items) {
|
|
2218
|
+
const both = this.isBoth();
|
|
2219
|
+
const horizontal = this.isHorizontal();
|
|
2220
|
+
const contentPos = this.getContentPosition();
|
|
2221
|
+
const setProp = (_name, _value, _size, _cpos = 0) => this.spacerStyle = { ...this.spacerStyle, ...{ [`${_name}`]: (((_value || []).length * _size) + _cpos) + 'px' } };
|
|
1698
2222
|
|
|
1699
|
-
if (
|
|
1700
|
-
setProp('height', items
|
|
1701
|
-
setProp('width', items[1], itemSize[1],
|
|
2223
|
+
if (both) {
|
|
2224
|
+
setProp('height', items, this.itemSize[0], contentPos.y);
|
|
2225
|
+
setProp('width', (this.columns || items[1]), this.itemSize[1], contentPos.x);
|
|
1702
2226
|
}
|
|
1703
2227
|
else {
|
|
1704
|
-
|
|
2228
|
+
horizontal ? setProp('width', (this.columns || items), this.itemSize, contentPos.x) : setProp('height', items, this.itemSize, contentPos.y);
|
|
1705
2229
|
}
|
|
1706
2230
|
}
|
|
1707
2231
|
},
|
|
1708
2232
|
setContentPosition(pos) {
|
|
1709
2233
|
if (this.content) {
|
|
1710
|
-
const
|
|
1711
|
-
const
|
|
1712
|
-
const content = this.content;
|
|
2234
|
+
const both = this.isBoth();
|
|
2235
|
+
const horizontal = this.isHorizontal();
|
|
1713
2236
|
const first = pos ? pos.first : this.first;
|
|
1714
|
-
const itemSize = this.itemSize;
|
|
1715
2237
|
const calculateTranslateVal = (_first, _size) => (_first * _size);
|
|
1716
|
-
const setTransform = (_x = 0, _y = 0) =>
|
|
2238
|
+
const setTransform = (_x = 0, _y = 0) => {
|
|
2239
|
+
this.contentStyle = { ...this.contentStyle, ...{ transform: `translate3d(${_x}px, ${_y}px, 0)` } };
|
|
2240
|
+
};
|
|
1717
2241
|
|
|
1718
|
-
if (
|
|
1719
|
-
setTransform(calculateTranslateVal(first.cols, itemSize[1]), calculateTranslateVal(first.rows, itemSize[0]));
|
|
2242
|
+
if (both) {
|
|
2243
|
+
setTransform(calculateTranslateVal(first.cols, this.itemSize[1]), calculateTranslateVal(first.rows, this.itemSize[0]));
|
|
1720
2244
|
}
|
|
1721
2245
|
else {
|
|
1722
|
-
const translateVal = calculateTranslateVal(first, itemSize);
|
|
1723
|
-
|
|
2246
|
+
const translateVal = calculateTranslateVal(first, this.itemSize);
|
|
2247
|
+
horizontal ? setTransform(translateVal, 0) : setTransform(0, translateVal);
|
|
1724
2248
|
}
|
|
1725
2249
|
}
|
|
1726
2250
|
},
|
|
1727
2251
|
onScrollPositionChange(event) {
|
|
1728
2252
|
const target = event.target;
|
|
1729
|
-
const
|
|
1730
|
-
const
|
|
1731
|
-
const
|
|
1732
|
-
const
|
|
1733
|
-
const calculateScrollPos = (_pos, _padding) => _pos ? (_pos > _padding ? _pos - _padding : _pos) : 0;
|
|
2253
|
+
const both = this.isBoth();
|
|
2254
|
+
const horizontal = this.isHorizontal();
|
|
2255
|
+
const contentPos = this.getContentPosition();
|
|
2256
|
+
const calculateScrollPos = (_pos, _cpos) => _pos ? (_pos > _cpos ? _pos - _cpos : _pos) : 0;
|
|
1734
2257
|
const calculateCurrentIndex = (_pos, _size) => Math.floor(_pos / (_size || _pos));
|
|
1735
|
-
const calculateTriggerIndex = (_currentIndex, _first, _last, _num, _isScrollDownOrRight) => {
|
|
1736
|
-
return (_currentIndex <=
|
|
2258
|
+
const calculateTriggerIndex = (_currentIndex, _first, _last, _num, _numT, _isScrollDownOrRight) => {
|
|
2259
|
+
return (_currentIndex <= _numT ? _numT : (_isScrollDownOrRight ? (_last - _num - _numT) : (_first + _numT - 1)))
|
|
1737
2260
|
};
|
|
1738
|
-
const calculateFirst = (_currentIndex, _triggerIndex, _first, _last, _num, _isScrollDownOrRight) => {
|
|
1739
|
-
if (_currentIndex <=
|
|
2261
|
+
const calculateFirst = (_currentIndex, _triggerIndex, _first, _last, _num, _numT, _isScrollDownOrRight) => {
|
|
2262
|
+
if (_currentIndex <= _numT)
|
|
1740
2263
|
return 0;
|
|
1741
2264
|
else
|
|
1742
|
-
return _isScrollDownOrRight ?
|
|
1743
|
-
|
|
1744
|
-
|
|
2265
|
+
return Math.max(0, _isScrollDownOrRight ?
|
|
2266
|
+
(_currentIndex < _triggerIndex ? _first : _currentIndex - _numT) :
|
|
2267
|
+
(_currentIndex > _triggerIndex ? _first : _currentIndex - (2 * _numT)));
|
|
1745
2268
|
};
|
|
1746
|
-
const calculateLast = (_currentIndex, _first, _last, _num, _isCols) => {
|
|
1747
|
-
let lastValue = _first + _num + (2 *
|
|
2269
|
+
const calculateLast = (_currentIndex, _first, _last, _num, _numT, _isCols) => {
|
|
2270
|
+
let lastValue = _first + _num + (2 * _numT);
|
|
1748
2271
|
|
|
1749
|
-
if (_currentIndex >=
|
|
1750
|
-
lastValue += (
|
|
2272
|
+
if (_currentIndex >= _numT) {
|
|
2273
|
+
lastValue += (_numT + 1);
|
|
1751
2274
|
}
|
|
1752
2275
|
|
|
1753
2276
|
return this.getLast(lastValue, _isCols);
|
|
1754
2277
|
};
|
|
1755
2278
|
|
|
1756
|
-
const scrollTop = calculateScrollPos(target.scrollTop,
|
|
1757
|
-
const scrollLeft = calculateScrollPos(target.scrollLeft,
|
|
2279
|
+
const scrollTop = calculateScrollPos(target.scrollTop, contentPos.top);
|
|
2280
|
+
const scrollLeft = calculateScrollPos(target.scrollLeft, contentPos.left);
|
|
1758
2281
|
|
|
1759
2282
|
let newFirst = 0;
|
|
1760
2283
|
let newLast = this.last;
|
|
1761
2284
|
let isRangeChanged = false;
|
|
1762
2285
|
|
|
1763
|
-
if (
|
|
2286
|
+
if (both) {
|
|
1764
2287
|
const isScrollDown = this.lastScrollPos.top <= scrollTop;
|
|
1765
2288
|
const isScrollRight = this.lastScrollPos.left <= scrollLeft;
|
|
1766
|
-
const currentIndex = { rows: calculateCurrentIndex(scrollTop, itemSize[0]), cols: calculateCurrentIndex(scrollLeft, itemSize[1]) };
|
|
2289
|
+
const currentIndex = { rows: calculateCurrentIndex(scrollTop, this.itemSize[0]), cols: calculateCurrentIndex(scrollLeft, this.itemSize[1]) };
|
|
1767
2290
|
const triggerIndex = {
|
|
1768
|
-
rows: calculateTriggerIndex(currentIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, isScrollDown),
|
|
1769
|
-
cols: calculateTriggerIndex(currentIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, isScrollRight)
|
|
2291
|
+
rows: calculateTriggerIndex(currentIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown),
|
|
2292
|
+
cols: calculateTriggerIndex(currentIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)
|
|
1770
2293
|
};
|
|
1771
2294
|
|
|
1772
2295
|
newFirst = {
|
|
1773
|
-
rows: calculateFirst(currentIndex.rows, triggerIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, isScrollDown),
|
|
1774
|
-
cols: calculateFirst(currentIndex.cols, triggerIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, isScrollRight)
|
|
2296
|
+
rows: calculateFirst(currentIndex.rows, triggerIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown),
|
|
2297
|
+
cols: calculateFirst(currentIndex.cols, triggerIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)
|
|
1775
2298
|
};
|
|
1776
2299
|
newLast = {
|
|
1777
|
-
rows: calculateLast(currentIndex.rows, newFirst.rows, this.last.rows, this.numItemsInViewport.rows),
|
|
1778
|
-
cols: calculateLast(currentIndex.cols, newFirst.cols, this.last.cols, this.numItemsInViewport.cols, true)
|
|
2300
|
+
rows: calculateLast(currentIndex.rows, newFirst.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]),
|
|
2301
|
+
cols: calculateLast(currentIndex.cols, newFirst.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], true)
|
|
1779
2302
|
};
|
|
1780
|
-
|
|
2303
|
+
|
|
2304
|
+
isRangeChanged = (newFirst.rows !== this.first.rows && newLast.rows !== this.last.rows) || (newFirst.cols !== this.first.cols && newLast.cols !== this.last.cols);
|
|
1781
2305
|
|
|
1782
2306
|
this.lastScrollPos = { top: scrollTop, left: scrollLeft };
|
|
1783
2307
|
}
|
|
1784
2308
|
else {
|
|
1785
|
-
const scrollPos =
|
|
2309
|
+
const scrollPos = horizontal ? scrollLeft : scrollTop;
|
|
1786
2310
|
const isScrollDownOrRight = this.lastScrollPos <= scrollPos;
|
|
1787
|
-
const currentIndex = calculateCurrentIndex(scrollPos, itemSize);
|
|
1788
|
-
const triggerIndex = calculateTriggerIndex(currentIndex, this.first, this.last, this.numItemsInViewport, isScrollDownOrRight);
|
|
2311
|
+
const currentIndex = calculateCurrentIndex(scrollPos, this.itemSize);
|
|
2312
|
+
const triggerIndex = calculateTriggerIndex(currentIndex, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
|
|
1789
2313
|
|
|
1790
|
-
newFirst = calculateFirst(currentIndex, triggerIndex, this.first, this.last, this.numItemsInViewport, isScrollDownOrRight);
|
|
1791
|
-
newLast = calculateLast(currentIndex, newFirst, this.last, this.numItemsInViewport);
|
|
1792
|
-
isRangeChanged = newFirst !== this.first
|
|
2314
|
+
newFirst = calculateFirst(currentIndex, triggerIndex, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
|
|
2315
|
+
newLast = calculateLast(currentIndex, newFirst, this.last, this.numItemsInViewport, this.d_numToleratedItems);
|
|
2316
|
+
isRangeChanged = newFirst !== this.first && newLast !== this.last;
|
|
1793
2317
|
|
|
1794
2318
|
this.lastScrollPos = scrollPos;
|
|
1795
2319
|
}
|
|
@@ -1808,27 +2332,27 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
1808
2332
|
|
|
1809
2333
|
this.setContentPosition(newState);
|
|
1810
2334
|
|
|
1811
|
-
if (this.lazy) {
|
|
1812
|
-
this.$emit('lazy-load', { first, last });
|
|
1813
|
-
}
|
|
1814
2335
|
this.first = first;
|
|
1815
2336
|
this.last = last;
|
|
1816
2337
|
|
|
1817
|
-
this.$emit('scroll-index-change',
|
|
2338
|
+
this.$emit('scroll-index-change', newState);
|
|
2339
|
+
|
|
2340
|
+
if (this.lazy) {
|
|
2341
|
+
this.$emit('lazy-load', newState);
|
|
2342
|
+
}
|
|
1818
2343
|
}
|
|
1819
2344
|
},
|
|
1820
2345
|
onScroll(event) {
|
|
1821
|
-
|
|
2346
|
+
this.$emit('scroll', event);
|
|
2347
|
+
|
|
2348
|
+
if (this.delay) {
|
|
1822
2349
|
if (this.scrollTimeout) {
|
|
1823
2350
|
clearTimeout(this.scrollTimeout);
|
|
1824
2351
|
}
|
|
1825
2352
|
|
|
1826
2353
|
if (!this.d_loading && this.showLoader) {
|
|
1827
2354
|
const { isRangeChanged: changed } = this.onScrollPositionChange(event);
|
|
1828
|
-
|
|
1829
|
-
if (changed) {
|
|
1830
|
-
this.d_loading = true;
|
|
1831
|
-
}
|
|
2355
|
+
changed && (this.d_loading = true);
|
|
1832
2356
|
}
|
|
1833
2357
|
|
|
1834
2358
|
this.scrollTimeout = setTimeout(() => {
|
|
@@ -1844,8 +2368,8 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
1844
2368
|
}
|
|
1845
2369
|
},
|
|
1846
2370
|
getOptions(renderedIndex) {
|
|
1847
|
-
|
|
1848
|
-
|
|
2371
|
+
const count = (this.items || []).length;
|
|
2372
|
+
const index = this.isBoth() ? this.first.rows + renderedIndex : this.first + renderedIndex;
|
|
1849
2373
|
return {
|
|
1850
2374
|
index,
|
|
1851
2375
|
count,
|
|
@@ -1855,139 +2379,23 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
1855
2379
|
odd: index % 2 !== 0
|
|
1856
2380
|
};
|
|
1857
2381
|
},
|
|
1858
|
-
getLoaderOptions(index) {
|
|
2382
|
+
getLoaderOptions(index, extOptions) {
|
|
1859
2383
|
let count = this.loaderArr.length;
|
|
1860
2384
|
return {
|
|
1861
|
-
|
|
2385
|
+
index,
|
|
2386
|
+
count,
|
|
1862
2387
|
first: index === 0,
|
|
1863
2388
|
last: index === (count - 1),
|
|
1864
2389
|
even: index % 2 === 0,
|
|
1865
|
-
odd: index % 2 !== 0
|
|
1866
|
-
|
|
1867
|
-
},
|
|
1868
|
-
isHorizontal() {
|
|
1869
|
-
return this.orientation === 'horizontal';
|
|
1870
|
-
},
|
|
1871
|
-
isBoth() {
|
|
1872
|
-
return this.orientation === 'both';
|
|
1873
|
-
},
|
|
1874
|
-
scrollTo(options) {
|
|
1875
|
-
if (this.element) {
|
|
1876
|
-
this.element.scrollTo(options);
|
|
1877
|
-
}
|
|
1878
|
-
},
|
|
1879
|
-
scrollToIndex(index, behavior = 'auto') {
|
|
1880
|
-
const isBoth = this.isBoth();
|
|
1881
|
-
const isHorizontal = this.isHorizontal();
|
|
1882
|
-
const itemSize = this.itemSize;
|
|
1883
|
-
const contentPadding = this.getContentPadding();
|
|
1884
|
-
const calculateFirst = (_index = 0) => (_index <= this.d_numToleratedItems ? 0 : _index);
|
|
1885
|
-
const calculateCoord = (_first, _size, _padding) => (_first * _size) + _padding;
|
|
1886
|
-
const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
|
|
1887
|
-
|
|
1888
|
-
if (isBoth) {
|
|
1889
|
-
const newFirst = { rows: calculateFirst(index[0]), cols: calculateFirst(index[1]) };
|
|
1890
|
-
if (newFirst.rows !== this.first.rows || newFirst.cols !== this.first.cols)
|
|
1891
|
-
scrollTo(calculateCoord(newFirst.cols, itemSize[1], contentPadding.left),calculateCoord(newFirst.rows, itemSize[0], contentPadding.top));
|
|
1892
|
-
}
|
|
1893
|
-
else {
|
|
1894
|
-
const newFirst = calculateFirst(index);
|
|
1895
|
-
|
|
1896
|
-
if (newFirst !== this.first) {
|
|
1897
|
-
isHorizontal ? scrollTo(calculateCoord(newFirst, itemSize, contentPadding.left), 0) : scrollTo(0, calculateCoord(newFirst, itemSize, contentPadding.top));
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
this.first = newFirst;
|
|
1901
|
-
}
|
|
1902
|
-
},
|
|
1903
|
-
scrollInView(index, to, behavior = 'auto') {
|
|
1904
|
-
if (to) {
|
|
1905
|
-
const isBoth = this.isBoth();
|
|
1906
|
-
const isHorizontal = this.isHorizontal();
|
|
1907
|
-
const { first, viewport } = this.getRenderedRange();
|
|
1908
|
-
const itemSize = this.itemSize;
|
|
1909
|
-
const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
|
|
1910
|
-
const isToStart = to === 'to-start';
|
|
1911
|
-
const isToEnd = to === 'to-end';
|
|
1912
|
-
|
|
1913
|
-
if (isToStart) {
|
|
1914
|
-
if (isBoth) {
|
|
1915
|
-
if (viewport.first.rows - first.rows > index[0]) {
|
|
1916
|
-
scrollTo(viewport.first.cols * itemSize[1], (viewport.first.rows - 1) * itemSize[0]);
|
|
1917
|
-
}
|
|
1918
|
-
else if (viewport.first.cols - first.cols > index[1]) {
|
|
1919
|
-
scrollTo((viewport.first.cols - 1) * itemSize[1], viewport.first.rows * itemSize[0]);
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
1922
|
-
else {
|
|
1923
|
-
if (viewport.first - first > index) {
|
|
1924
|
-
const pos = (viewport.first - 1) * itemSize;
|
|
1925
|
-
isHorizontal ? scrollTo(pos, 0) : scrollTo(0, pos);
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
}
|
|
1929
|
-
else if (isToEnd) {
|
|
1930
|
-
if (isBoth) {
|
|
1931
|
-
if (viewport.last.rows - first.rows <= index[0] + 1) {
|
|
1932
|
-
scrollTo(viewport.first.cols * itemSize[1], (viewport.first.rows + 1) * itemSize[0]);
|
|
1933
|
-
}
|
|
1934
|
-
else if (viewport.last.cols - first.cols <= index[1] + 1) {
|
|
1935
|
-
scrollTo((viewport.first.cols + 1) * itemSize[1], viewport.first.rows * itemSize[0]);
|
|
1936
|
-
}
|
|
1937
|
-
}
|
|
1938
|
-
else {
|
|
1939
|
-
if (viewport.last - first <= index + 1) {
|
|
1940
|
-
const pos = (viewport.first + 1) * itemSize;
|
|
1941
|
-
isHorizontal ? scrollTo(pos, 0) : scrollTo(0, pos);
|
|
1942
|
-
}
|
|
1943
|
-
}
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
else {
|
|
1947
|
-
this.scrollToIndex(index, behavior);
|
|
1948
|
-
}
|
|
1949
|
-
},
|
|
1950
|
-
getRenderedRange() {
|
|
1951
|
-
const isBoth = this.isBoth();
|
|
1952
|
-
const isHorizontal = this.isHorizontal();
|
|
1953
|
-
const itemSize = this.itemSize;
|
|
1954
|
-
const calculateFirstInViewport = (_pos, _size) => Math.floor(_pos / (_size || _pos));
|
|
1955
|
-
|
|
1956
|
-
let firstInViewport = this.first;
|
|
1957
|
-
let lastInViewport = 0;
|
|
1958
|
-
|
|
1959
|
-
if (this.element) {
|
|
1960
|
-
const scrollTop = this.element.scrollTop;
|
|
1961
|
-
const scrollLeft = this.element.scrollLeft;
|
|
1962
|
-
|
|
1963
|
-
if (isBoth) {
|
|
1964
|
-
firstInViewport = { rows: calculateFirstInViewport(scrollTop, itemSize[0]), cols: calculateFirstInViewport(scrollLeft, itemSize[1]) };
|
|
1965
|
-
lastInViewport = { rows: firstInViewport.rows + this.numItemsInViewport.rows, cols: firstInViewport.cols + this.numItemsInViewport.cols };
|
|
1966
|
-
}
|
|
1967
|
-
else {
|
|
1968
|
-
const scrollPos = isHorizontal ? scrollLeft : scrollTop;
|
|
1969
|
-
firstInViewport = calculateFirstInViewport(scrollPos, itemSize);
|
|
1970
|
-
lastInViewport = firstInViewport + this.numItemsInViewport;
|
|
1971
|
-
}
|
|
2390
|
+
odd: index % 2 !== 0,
|
|
2391
|
+
...extOptions
|
|
1972
2392
|
}
|
|
1973
|
-
|
|
1974
|
-
return {
|
|
1975
|
-
first: this.first,
|
|
1976
|
-
last: this.last,
|
|
1977
|
-
viewport: {
|
|
1978
|
-
first: firstInViewport,
|
|
1979
|
-
last: lastInViewport
|
|
1980
|
-
}
|
|
1981
|
-
};
|
|
1982
2393
|
},
|
|
1983
2394
|
elementRef(el) {
|
|
1984
2395
|
this.element = el;
|
|
1985
2396
|
},
|
|
1986
2397
|
contentRef(el) {
|
|
1987
2398
|
this.content = el;
|
|
1988
|
-
},
|
|
1989
|
-
spacerRef(el) {
|
|
1990
|
-
this.spacer = el;
|
|
1991
2399
|
}
|
|
1992
2400
|
},
|
|
1993
2401
|
computed: {
|
|
@@ -1997,6 +2405,11 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
1997
2405
|
'p-horizontal-scroll': this.isHorizontal()
|
|
1998
2406
|
}, this.class];
|
|
1999
2407
|
},
|
|
2408
|
+
contentClass() {
|
|
2409
|
+
return ['p-virtualscroller-content', {
|
|
2410
|
+
'p-virtualscroller-loading': this.d_loading
|
|
2411
|
+
}];
|
|
2412
|
+
},
|
|
2000
2413
|
loaderClass() {
|
|
2001
2414
|
return ['p-virtualscroller-loader', {
|
|
2002
2415
|
'p-component-overlay': !this.$slots.loader
|
|
@@ -2005,27 +2418,41 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
2005
2418
|
loadedItems() {
|
|
2006
2419
|
const items = this.items;
|
|
2007
2420
|
if (items && !this.d_loading) {
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
if (isBoth) {
|
|
2011
|
-
return items.slice(this.first.rows, this.last.rows).map((item) => {
|
|
2012
|
-
const items = item.slice(this.first.cols, this.last.cols);
|
|
2013
|
-
return items;
|
|
2014
|
-
});
|
|
2015
|
-
}
|
|
2016
|
-
else {
|
|
2017
|
-
return items.slice(this.first, this.last).map((item) => {
|
|
2018
|
-
return item;
|
|
2019
|
-
});
|
|
2421
|
+
if (this.isBoth()) {
|
|
2422
|
+
return items.slice(this.first.rows, this.last.rows).map(item => this.columns ? item : item.slice(this.first.cols, this.last.cols));
|
|
2020
2423
|
}
|
|
2424
|
+
else if (this.isHorizontal() && this.columns)
|
|
2425
|
+
return items;
|
|
2426
|
+
else
|
|
2427
|
+
return items.slice(this.first, this.last);
|
|
2021
2428
|
}
|
|
2022
2429
|
|
|
2023
2430
|
return [];
|
|
2431
|
+
},
|
|
2432
|
+
loadedRows() {
|
|
2433
|
+
return this.d_loading ? (this.loaderDisabled ? this.loaderArr : []) : this.loadedItems;
|
|
2434
|
+
},
|
|
2435
|
+
loadedColumns() {
|
|
2436
|
+
if (this.columns) {
|
|
2437
|
+
const both = this.isBoth();
|
|
2438
|
+
const horizontal = this.isHorizontal();
|
|
2439
|
+
|
|
2440
|
+
if (both || horizontal) {
|
|
2441
|
+
return this.d_loading && this.loaderDisabled ?
|
|
2442
|
+
(both ? this.loaderArr[0] : this.loaderArr):
|
|
2443
|
+
this.columns.slice((both ? this.first.cols : this.first), (both ? this.last.cols : this.last));
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
return this.columns;
|
|
2024
2448
|
}
|
|
2025
2449
|
}
|
|
2026
2450
|
};
|
|
2027
2451
|
|
|
2028
|
-
const _hoisted_1 =
|
|
2452
|
+
const _hoisted_1 = {
|
|
2453
|
+
key: 1,
|
|
2454
|
+
class: "p-virtualscroller-loading-icon pi pi-spinner pi-spin"
|
|
2455
|
+
};
|
|
2029
2456
|
|
|
2030
2457
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2031
2458
|
return (!$props.disabled)
|
|
@@ -2033,18 +2460,30 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
2033
2460
|
key: 0,
|
|
2034
2461
|
ref: $options.elementRef,
|
|
2035
2462
|
class: $options.containerClass,
|
|
2463
|
+
tabindex: 0,
|
|
2036
2464
|
style: $props.style,
|
|
2037
2465
|
onScroll: _cache[1] || (_cache[1] = (...args) => ($options.onScroll && $options.onScroll(...args)))
|
|
2038
2466
|
}, [
|
|
2039
2467
|
vue.renderSlot(_ctx.$slots, "content", {
|
|
2040
|
-
styleClass:
|
|
2041
|
-
contentRef: $options.contentRef,
|
|
2468
|
+
styleClass: $options.contentClass,
|
|
2042
2469
|
items: $options.loadedItems,
|
|
2043
|
-
getItemOptions: $options.getOptions
|
|
2470
|
+
getItemOptions: $options.getOptions,
|
|
2471
|
+
loading: $data.d_loading,
|
|
2472
|
+
getLoaderOptions: $options.getLoaderOptions,
|
|
2473
|
+
itemSize: $props.itemSize,
|
|
2474
|
+
rows: $options.loadedRows,
|
|
2475
|
+
columns: $options.loadedColumns,
|
|
2476
|
+
contentRef: $options.contentRef,
|
|
2477
|
+
spacerStyle: $data.spacerStyle,
|
|
2478
|
+
contentStyle: $data.contentStyle,
|
|
2479
|
+
vertical: $options.isVertical(),
|
|
2480
|
+
horizontal: $options.isHorizontal(),
|
|
2481
|
+
both: $options.isBoth()
|
|
2044
2482
|
}, () => [
|
|
2045
2483
|
vue.createVNode("div", {
|
|
2046
2484
|
ref: $options.contentRef,
|
|
2047
|
-
class:
|
|
2485
|
+
class: $options.contentClass,
|
|
2486
|
+
style: $data.contentStyle
|
|
2048
2487
|
}, [
|
|
2049
2488
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.loadedItems, (item, index) => {
|
|
2050
2489
|
return vue.renderSlot(_ctx.$slots, "item", {
|
|
@@ -2053,31 +2492,38 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
2053
2492
|
options: $options.getOptions(index)
|
|
2054
2493
|
})
|
|
2055
2494
|
}), 128))
|
|
2056
|
-
],
|
|
2495
|
+
], 6)
|
|
2057
2496
|
]),
|
|
2058
|
-
|
|
2059
|
-
ref: $options.spacerRef,
|
|
2060
|
-
class: "p-virtualscroller-spacer"
|
|
2061
|
-
}, null, 512),
|
|
2062
|
-
($data.d_loading)
|
|
2497
|
+
($props.showSpacer)
|
|
2063
2498
|
? (vue.openBlock(), vue.createBlock("div", {
|
|
2064
2499
|
key: 0,
|
|
2500
|
+
class: "p-virtualscroller-spacer",
|
|
2501
|
+
style: $data.spacerStyle
|
|
2502
|
+
}, null, 4))
|
|
2503
|
+
: vue.createCommentVNode("", true),
|
|
2504
|
+
(!$props.loaderDisabled && $props.showLoader && $data.d_loading)
|
|
2505
|
+
? (vue.openBlock(), vue.createBlock("div", {
|
|
2506
|
+
key: 1,
|
|
2065
2507
|
class: $options.loaderClass
|
|
2066
2508
|
}, [
|
|
2067
|
-
(
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2509
|
+
(_ctx.$slots && _ctx.$slots.loader)
|
|
2510
|
+
? (vue.openBlock(true), vue.createBlock(vue.Fragment, { key: 0 }, vue.renderList($data.loaderArr, (_, index) => {
|
|
2511
|
+
return vue.renderSlot(_ctx.$slots, "loader", {
|
|
2512
|
+
key: index,
|
|
2513
|
+
options: $options.getLoaderOptions(index, $options.isBoth() && { numCols: _ctx.d_numItemsInViewport.cols })
|
|
2514
|
+
})
|
|
2515
|
+
}), 128))
|
|
2516
|
+
: (vue.openBlock(), vue.createBlock("i", _hoisted_1))
|
|
2075
2517
|
], 2))
|
|
2076
2518
|
: vue.createCommentVNode("", true)
|
|
2077
2519
|
], 38))
|
|
2078
2520
|
: (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 1 }, [
|
|
2079
2521
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
2080
|
-
vue.renderSlot(_ctx.$slots, "content", {
|
|
2522
|
+
vue.renderSlot(_ctx.$slots, "content", {
|
|
2523
|
+
items: $props.items,
|
|
2524
|
+
rows: $props.items,
|
|
2525
|
+
columns: $options.loadedColumns
|
|
2526
|
+
})
|
|
2081
2527
|
], 64))
|
|
2082
2528
|
}
|
|
2083
2529
|
|
|
@@ -2108,14 +2554,14 @@ this.primevue.virtualscroller = (function (vue) {
|
|
|
2108
2554
|
}
|
|
2109
2555
|
}
|
|
2110
2556
|
|
|
2111
|
-
var css_248z = "\n.p-virtualscroller {\n position: relative;\n overflow: auto;\n contain: strict;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n will-change: scroll-position;\n}\n.p-virtualscroller-content {\n position: absolute;\n top: 0;\n left: 0;\n contain: content;\n min-height: 100%;\n min-width: 100%;\n will-change: transform;\n}\n.p-virtualscroller-spacer {\n position: absolute;\n top: 0;\n left: 0;\n height: 1px;\n width: 1px;\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n pointer-events: none;\n}\n.p-virtualscroller .p-virtualscroller-loader {\n position: sticky;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n.p-virtualscroller-loader.p-component-overlay {\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}\n";
|
|
2557
|
+
var css_248z = "\n.p-virtualscroller {\n position: relative;\n overflow: auto;\n contain: strict;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n will-change: scroll-position;\n outline: 0 none;\n}\n.p-virtualscroller-content {\n position: absolute;\n top: 0;\n left: 0;\n contain: content;\n min-height: 100%;\n min-width: 100%;\n will-change: transform;\n}\n.p-virtualscroller-spacer {\n position: absolute;\n top: 0;\n left: 0;\n height: 1px;\n width: 1px;\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n pointer-events: none;\n}\n.p-virtualscroller .p-virtualscroller-loader {\n position: sticky;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n.p-virtualscroller-loader.p-component-overlay {\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}\n";
|
|
2112
2558
|
styleInject(css_248z);
|
|
2113
2559
|
|
|
2114
2560
|
script.render = render;
|
|
2115
2561
|
|
|
2116
2562
|
return script;
|
|
2117
2563
|
|
|
2118
|
-
}(Vue)
|
|
2564
|
+
})(Vue);
|
|
2119
2565
|
|
|
2120
2566
|
this.primevue = this.primevue || {};
|
|
2121
2567
|
this.primevue.confirmationeventbus = (function (utils) {
|
|
@@ -2125,7 +2571,7 @@ this.primevue.confirmationeventbus = (function (utils) {
|
|
|
2125
2571
|
|
|
2126
2572
|
return ConfirmationEventBus;
|
|
2127
2573
|
|
|
2128
|
-
}(primevue.utils)
|
|
2574
|
+
})(primevue.utils);
|
|
2129
2575
|
|
|
2130
2576
|
this.primevue = this.primevue || {};
|
|
2131
2577
|
this.primevue.toasteventbus = (function (utils) {
|
|
@@ -2135,7 +2581,7 @@ this.primevue.toasteventbus = (function (utils) {
|
|
|
2135
2581
|
|
|
2136
2582
|
return ToastEventBus;
|
|
2137
2583
|
|
|
2138
|
-
}(primevue.utils)
|
|
2584
|
+
})(primevue.utils);
|
|
2139
2585
|
|
|
2140
2586
|
this.primevue = this.primevue || {};
|
|
2141
2587
|
this.primevue.overlayeventbus = (function (utils) {
|
|
@@ -2145,7 +2591,7 @@ this.primevue.overlayeventbus = (function (utils) {
|
|
|
2145
2591
|
|
|
2146
2592
|
return OverlayEventBus;
|
|
2147
2593
|
|
|
2148
|
-
}(primevue.utils)
|
|
2594
|
+
})(primevue.utils);
|
|
2149
2595
|
|
|
2150
2596
|
this.primevue = this.primevue || {};
|
|
2151
2597
|
this.primevue.terminalservice = (function (utils) {
|
|
@@ -2155,7 +2601,7 @@ this.primevue.terminalservice = (function (utils) {
|
|
|
2155
2601
|
|
|
2156
2602
|
return TerminalService;
|
|
2157
2603
|
|
|
2158
|
-
}(primevue.utils)
|
|
2604
|
+
})(primevue.utils);
|
|
2159
2605
|
|
|
2160
2606
|
this.primevue = this.primevue || {};
|
|
2161
2607
|
this.primevue.useconfirm = (function (exports, vue) {
|
|
@@ -2179,7 +2625,7 @@ this.primevue.useconfirm = (function (exports, vue) {
|
|
|
2179
2625
|
|
|
2180
2626
|
return exports;
|
|
2181
2627
|
|
|
2182
|
-
}({}, Vue)
|
|
2628
|
+
})({}, Vue);
|
|
2183
2629
|
|
|
2184
2630
|
this.primevue = this.primevue || {};
|
|
2185
2631
|
this.primevue.usetoast = (function (exports, vue) {
|
|
@@ -2203,7 +2649,7 @@ this.primevue.usetoast = (function (exports, vue) {
|
|
|
2203
2649
|
|
|
2204
2650
|
return exports;
|
|
2205
2651
|
|
|
2206
|
-
}({}, Vue)
|
|
2652
|
+
})({}, Vue);
|
|
2207
2653
|
|
|
2208
2654
|
this.primevue = this.primevue || {};
|
|
2209
2655
|
this.primevue.button = (function (Ripple, vue) {
|
|
@@ -2276,7 +2722,7 @@ this.primevue.button = (function (Ripple, vue) {
|
|
|
2276
2722
|
}
|
|
2277
2723
|
},
|
|
2278
2724
|
directives: {
|
|
2279
|
-
'ripple': Ripple__default[
|
|
2725
|
+
'ripple': Ripple__default["default"]
|
|
2280
2726
|
}
|
|
2281
2727
|
};
|
|
2282
2728
|
|
|
@@ -2320,7 +2766,7 @@ this.primevue.button = (function (Ripple, vue) {
|
|
|
2320
2766
|
|
|
2321
2767
|
return script;
|
|
2322
2768
|
|
|
2323
|
-
}(primevue.ripple, Vue)
|
|
2769
|
+
})(primevue.ripple, Vue);
|
|
2324
2770
|
|
|
2325
2771
|
this.primevue = this.primevue || {};
|
|
2326
2772
|
this.primevue.inputtext = (function (vue) {
|
|
@@ -2345,18 +2791,18 @@ this.primevue.inputtext = (function (vue) {
|
|
|
2345
2791
|
};
|
|
2346
2792
|
|
|
2347
2793
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2348
|
-
return (vue.openBlock(), vue.createBlock("input", {
|
|
2794
|
+
return (vue.openBlock(), vue.createBlock("input", vue.mergeProps({
|
|
2349
2795
|
class: ['p-inputtext p-component', {'p-filled': $options.filled}],
|
|
2350
2796
|
value: $props.modelValue,
|
|
2351
2797
|
onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
|
|
2352
|
-
}, null,
|
|
2798
|
+
}, _ctx.$attrs), null, 16, ["value"]))
|
|
2353
2799
|
}
|
|
2354
2800
|
|
|
2355
2801
|
script.render = render;
|
|
2356
2802
|
|
|
2357
2803
|
return script;
|
|
2358
2804
|
|
|
2359
|
-
}(Vue)
|
|
2805
|
+
})(Vue);
|
|
2360
2806
|
|
|
2361
2807
|
this.primevue = this.primevue || {};
|
|
2362
2808
|
this.primevue.inputnumber = (function (InputText, Button, vue) {
|
|
@@ -2481,10 +2927,14 @@ this.primevue.inputnumber = (function (InputText, Button, vue) {
|
|
|
2481
2927
|
timer: null,
|
|
2482
2928
|
data() {
|
|
2483
2929
|
return {
|
|
2930
|
+
d_modelValue: this.modelValue,
|
|
2484
2931
|
focused: false
|
|
2485
2932
|
}
|
|
2486
2933
|
},
|
|
2487
2934
|
watch: {
|
|
2935
|
+
modelValue(newValue) {
|
|
2936
|
+
this.d_modelValue = newValue;
|
|
2937
|
+
},
|
|
2488
2938
|
locale(newValue, oldValue) {
|
|
2489
2939
|
this.updateConstructParser(newValue, oldValue);
|
|
2490
2940
|
},
|
|
@@ -3240,6 +3690,7 @@ this.primevue.inputnumber = (function (InputText, Button, vue) {
|
|
|
3240
3690
|
return 0;
|
|
3241
3691
|
},
|
|
3242
3692
|
updateModel(event, value) {
|
|
3693
|
+
this.d_modelValue = value;
|
|
3243
3694
|
this.$emit('update:modelValue', value);
|
|
3244
3695
|
},
|
|
3245
3696
|
onInputFocus() {
|
|
@@ -3258,7 +3709,13 @@ this.primevue.inputnumber = (function (InputText, Button, vue) {
|
|
|
3258
3709
|
if (this.timer) {
|
|
3259
3710
|
clearInterval(this.timer);
|
|
3260
3711
|
}
|
|
3261
|
-
}
|
|
3712
|
+
},
|
|
3713
|
+
maxBoundry() {
|
|
3714
|
+
return this.d_modelValue >= this.max;
|
|
3715
|
+
},
|
|
3716
|
+
minBoundry() {
|
|
3717
|
+
return this.d_modelValue <= this.min;
|
|
3718
|
+
},
|
|
3262
3719
|
},
|
|
3263
3720
|
computed: {
|
|
3264
3721
|
containerClass() {
|
|
@@ -3270,11 +3727,16 @@ this.primevue.inputnumber = (function (InputText, Button, vue) {
|
|
|
3270
3727
|
'p-inputnumber-buttons-vertical': this.showButtons && this.buttonLayout === 'vertical'
|
|
3271
3728
|
}];
|
|
3272
3729
|
},
|
|
3730
|
+
|
|
3273
3731
|
upButtonClass() {
|
|
3274
|
-
return ['p-inputnumber-button p-inputnumber-button-up', this.incrementButtonClass
|
|
3732
|
+
return ['p-inputnumber-button p-inputnumber-button-up', this.incrementButtonClass, {
|
|
3733
|
+
'p-disabled': this.showButtons && this.max !== null && this.maxBoundry()
|
|
3734
|
+
}];
|
|
3275
3735
|
},
|
|
3276
3736
|
downButtonClass() {
|
|
3277
|
-
return ['p-inputnumber-button p-inputnumber-button-down', this.decrementButtonClass
|
|
3737
|
+
return ['p-inputnumber-button p-inputnumber-button-down', this.decrementButtonClass, {
|
|
3738
|
+
'p-disabled': this.showButtons && this.min !== null && this.minBoundry()
|
|
3739
|
+
}];
|
|
3278
3740
|
},
|
|
3279
3741
|
filled() {
|
|
3280
3742
|
return (this.modelValue != null && this.modelValue.toString().length > 0)
|
|
@@ -3306,8 +3768,8 @@ this.primevue.inputnumber = (function (InputText, Button, vue) {
|
|
|
3306
3768
|
}
|
|
3307
3769
|
},
|
|
3308
3770
|
components: {
|
|
3309
|
-
'INInputText': InputText__default[
|
|
3310
|
-
'INButton': Button__default[
|
|
3771
|
+
'INInputText': InputText__default["default"],
|
|
3772
|
+
'INButton': Button__default["default"]
|
|
3311
3773
|
}
|
|
3312
3774
|
};
|
|
3313
3775
|
|
|
@@ -3411,7 +3873,7 @@ this.primevue.inputnumber = (function (InputText, Button, vue) {
|
|
|
3411
3873
|
|
|
3412
3874
|
return script;
|
|
3413
3875
|
|
|
3414
|
-
}(primevue.inputtext, primevue.button, Vue)
|
|
3876
|
+
})(primevue.inputtext, primevue.button, Vue);
|
|
3415
3877
|
|
|
3416
3878
|
this.primevue = this.primevue || {};
|
|
3417
3879
|
this.primevue.message = (function (Ripple, vue) {
|
|
@@ -3440,7 +3902,11 @@ this.primevue.message = (function (Ripple, vue) {
|
|
|
3440
3902
|
life: {
|
|
3441
3903
|
type: Number,
|
|
3442
3904
|
default: 3000
|
|
3443
|
-
}
|
|
3905
|
+
},
|
|
3906
|
+
icon: {
|
|
3907
|
+
type: String,
|
|
3908
|
+
default: null
|
|
3909
|
+
},
|
|
3444
3910
|
},
|
|
3445
3911
|
timeout: null,
|
|
3446
3912
|
data() {
|
|
@@ -3466,7 +3932,7 @@ this.primevue.message = (function (Ripple, vue) {
|
|
|
3466
3932
|
return 'p-message p-component p-message-' + this.severity;
|
|
3467
3933
|
},
|
|
3468
3934
|
iconClass() {
|
|
3469
|
-
return ['p-message-icon pi', {
|
|
3935
|
+
return ['p-message-icon pi', this.icon ? this.icon : {
|
|
3470
3936
|
'pi-info-circle': this.severity === 'info',
|
|
3471
3937
|
'pi-check': this.severity === 'success',
|
|
3472
3938
|
'pi-exclamation-triangle': this.severity === 'warn',
|
|
@@ -3475,7 +3941,7 @@ this.primevue.message = (function (Ripple, vue) {
|
|
|
3475
3941
|
}
|
|
3476
3942
|
},
|
|
3477
3943
|
directives: {
|
|
3478
|
-
'ripple': Ripple__default[
|
|
3944
|
+
'ripple': Ripple__default["default"]
|
|
3479
3945
|
}
|
|
3480
3946
|
};
|
|
3481
3947
|
|
|
@@ -3555,7 +4021,7 @@ this.primevue.message = (function (Ripple, vue) {
|
|
|
3555
4021
|
|
|
3556
4022
|
return script;
|
|
3557
4023
|
|
|
3558
|
-
}(primevue.ripple, Vue)
|
|
4024
|
+
})(primevue.ripple, Vue);
|
|
3559
4025
|
|
|
3560
4026
|
this.primevue = this.primevue || {};
|
|
3561
4027
|
this.primevue.progressbar = (function (vue) {
|
|
@@ -3590,7 +4056,7 @@ this.primevue.progressbar = (function (vue) {
|
|
|
3590
4056
|
progressStyle() {
|
|
3591
4057
|
return {
|
|
3592
4058
|
width: this.value + '%',
|
|
3593
|
-
display: '
|
|
4059
|
+
display: 'flex'
|
|
3594
4060
|
};
|
|
3595
4061
|
},
|
|
3596
4062
|
indeterminate() {
|
|
@@ -3603,11 +4069,11 @@ this.primevue.progressbar = (function (vue) {
|
|
|
3603
4069
|
};
|
|
3604
4070
|
|
|
3605
4071
|
const _hoisted_1 = {
|
|
3606
|
-
key:
|
|
4072
|
+
key: 0,
|
|
3607
4073
|
class: "p-progressbar-label"
|
|
3608
4074
|
};
|
|
3609
4075
|
const _hoisted_2 = {
|
|
3610
|
-
key:
|
|
4076
|
+
key: 1,
|
|
3611
4077
|
class: "p-progressbar-indeterminate-container"
|
|
3612
4078
|
};
|
|
3613
4079
|
const _hoisted_3 = /*#__PURE__*/vue.createVNode("div", { class: "p-progressbar-value p-progressbar-value-animate" }, null, -1);
|
|
@@ -3625,14 +4091,15 @@ this.primevue.progressbar = (function (vue) {
|
|
|
3625
4091
|
key: 0,
|
|
3626
4092
|
class: "p-progressbar-value p-progressbar-value-animate",
|
|
3627
4093
|
style: $options.progressStyle
|
|
3628
|
-
},
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
4094
|
+
}, [
|
|
4095
|
+
(($props.value != null && $props.value !== 0) && $props.showValue)
|
|
4096
|
+
? (vue.openBlock(), vue.createBlock("div", _hoisted_1, [
|
|
4097
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4098
|
+
vue.createTextVNode(vue.toDisplayString($props.value + '%'), 1)
|
|
4099
|
+
])
|
|
4100
|
+
]))
|
|
4101
|
+
: vue.createCommentVNode("", true)
|
|
4102
|
+
], 4))
|
|
3636
4103
|
: vue.createCommentVNode("", true),
|
|
3637
4104
|
($options.indeterminate)
|
|
3638
4105
|
? (vue.openBlock(), vue.createBlock("div", _hoisted_2, [
|
|
@@ -3669,14 +4136,14 @@ this.primevue.progressbar = (function (vue) {
|
|
|
3669
4136
|
}
|
|
3670
4137
|
}
|
|
3671
4138
|
|
|
3672
|
-
var css_248z = "\n.p-progressbar {\n position: relative;\n overflow: hidden;\n}\n.p-progressbar-determinate .p-progressbar-value {\n height: 100%;\n width: 0%;\n position: absolute;\n display: none;\n border: 0 none;\n}\n.p-progressbar-determinate .p-progressbar-
|
|
4139
|
+
var css_248z = "\n.p-progressbar {\n position: relative;\n overflow: hidden;\n}\n.p-progressbar-determinate .p-progressbar-value {\n height: 100%;\n width: 0%;\n position: absolute;\n display: none;\n border: 0 none;\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 overflow: hidden;\n}\n.p-progressbar-determinate .p-progressbar-label {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-progressbar-determinate .p-progressbar-value-animate {\n -webkit-transition: width 1s ease-in-out;\n transition: width 1s ease-in-out;\n}\n.p-progressbar-indeterminate .p-progressbar-value::before {\n content: '';\n position: absolute;\n background-color: inherit;\n top: 0;\n left: 0;\n bottom: 0;\n will-change: left, right;\n -webkit-animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n}\n.p-progressbar-indeterminate .p-progressbar-value::after {\n content: '';\n position: absolute;\n background-color: inherit;\n top: 0;\n left: 0;\n bottom: 0;\n will-change: left, right;\n -webkit-animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n -webkit-animation-delay: 1.15s;\n animation-delay: 1.15s;\n}\n@-webkit-keyframes p-progressbar-indeterminate-anim {\n0% {\n left: -35%;\n right: 100%;\n}\n60% {\n left: 100%;\n right: -90%;\n}\n100% {\n left: 100%;\n right: -90%;\n}\n}\n@keyframes p-progressbar-indeterminate-anim {\n0% {\n left: -35%;\n right: 100%;\n}\n60% {\n left: 100%;\n right: -90%;\n}\n100% {\n left: 100%;\n right: -90%;\n}\n}\n@-webkit-keyframes p-progressbar-indeterminate-anim-short {\n0% {\n left: -200%;\n right: 100%;\n}\n60% {\n left: 107%;\n right: -8%;\n}\n100% {\n left: 107%;\n right: -8%;\n}\n}\n@keyframes p-progressbar-indeterminate-anim-short {\n0% {\n left: -200%;\n right: 100%;\n}\n60% {\n left: 107%;\n right: -8%;\n}\n100% {\n left: 107%;\n right: -8%;\n}\n}\n";
|
|
3673
4140
|
styleInject(css_248z);
|
|
3674
4141
|
|
|
3675
4142
|
script.render = render;
|
|
3676
4143
|
|
|
3677
4144
|
return script;
|
|
3678
4145
|
|
|
3679
|
-
}(Vue)
|
|
4146
|
+
})(Vue);
|
|
3680
4147
|
|
|
3681
4148
|
this.primevue = this.primevue || {};
|
|
3682
4149
|
this.primevue.dropdown = (function (utils, OverlayEventBus, api, Ripple, VirtualScroller, vue) {
|
|
@@ -4245,7 +4712,7 @@ this.primevue.dropdown = (function (utils, OverlayEventBus, api, Ripple, Virtual
|
|
|
4245
4712
|
}
|
|
4246
4713
|
},
|
|
4247
4714
|
onOverlayClick(event) {
|
|
4248
|
-
OverlayEventBus__default[
|
|
4715
|
+
OverlayEventBus__default["default"].emit('overlay-click', {
|
|
4249
4716
|
originalEvent: event,
|
|
4250
4717
|
target: this.$el
|
|
4251
4718
|
});
|
|
@@ -4303,7 +4770,7 @@ this.primevue.dropdown = (function (utils, OverlayEventBus, api, Ripple, Virtual
|
|
|
4303
4770
|
},
|
|
4304
4771
|
label() {
|
|
4305
4772
|
let selectedOption = this.getSelectedOption();
|
|
4306
|
-
if (selectedOption)
|
|
4773
|
+
if (selectedOption !== null)
|
|
4307
4774
|
return this.getOptionLabel(selectedOption);
|
|
4308
4775
|
else
|
|
4309
4776
|
return this.placeholder||'p-emptylabel';
|
|
@@ -4341,10 +4808,10 @@ this.primevue.dropdown = (function (utils, OverlayEventBus, api, Ripple, Virtual
|
|
|
4341
4808
|
}
|
|
4342
4809
|
},
|
|
4343
4810
|
directives: {
|
|
4344
|
-
'ripple': Ripple__default[
|
|
4811
|
+
'ripple': Ripple__default["default"]
|
|
4345
4812
|
},
|
|
4346
4813
|
components: {
|
|
4347
|
-
'VirtualScroller': VirtualScroller__default[
|
|
4814
|
+
'VirtualScroller': VirtualScroller__default["default"]
|
|
4348
4815
|
}
|
|
4349
4816
|
};
|
|
4350
4817
|
|
|
@@ -4620,7 +5087,7 @@ this.primevue.dropdown = (function (utils, OverlayEventBus, api, Ripple, Virtual
|
|
|
4620
5087
|
|
|
4621
5088
|
return script;
|
|
4622
5089
|
|
|
4623
|
-
}(primevue.utils, primevue.overlayeventbus, primevue.api, primevue.ripple, primevue.virtualscroller, Vue)
|
|
5090
|
+
})(primevue.utils, primevue.overlayeventbus, primevue.api, primevue.ripple, primevue.virtualscroller, Vue);
|
|
4624
5091
|
|
|
4625
5092
|
this.primevue = this.primevue || {};
|
|
4626
5093
|
this.primevue.dialog = (function (utils, Ripple, vue) {
|
|
@@ -5012,7 +5479,7 @@ this.primevue.dialog = (function (utils, Ripple, vue) {
|
|
|
5012
5479
|
}
|
|
5013
5480
|
},
|
|
5014
5481
|
directives: {
|
|
5015
|
-
'ripple': Ripple__default[
|
|
5482
|
+
'ripple': Ripple__default["default"]
|
|
5016
5483
|
}
|
|
5017
5484
|
};
|
|
5018
5485
|
|
|
@@ -5092,8 +5559,7 @@ this.primevue.dialog = (function (utils, Ripple, vue) {
|
|
|
5092
5559
|
class: "p-dialog-header-icon p-dialog-header-close p-link",
|
|
5093
5560
|
onClick: _cache[2] || (_cache[2] = (...args) => ($options.close && $options.close(...args))),
|
|
5094
5561
|
"aria-label": $props.ariaCloseLabel,
|
|
5095
|
-
type: "button"
|
|
5096
|
-
tabindex: "-1"
|
|
5562
|
+
type: "button"
|
|
5097
5563
|
}, [
|
|
5098
5564
|
_hoisted_2
|
|
5099
5565
|
], 8, ["aria-label"])), [
|
|
@@ -5160,7 +5626,7 @@ this.primevue.dialog = (function (utils, Ripple, vue) {
|
|
|
5160
5626
|
|
|
5161
5627
|
return script;
|
|
5162
5628
|
|
|
5163
|
-
}(primevue.utils, primevue.ripple, Vue)
|
|
5629
|
+
})(primevue.utils, primevue.ripple, Vue);
|
|
5164
5630
|
|
|
5165
5631
|
this.primevue = this.primevue || {};
|
|
5166
5632
|
this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
@@ -5238,7 +5704,7 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5238
5704
|
}
|
|
5239
5705
|
},
|
|
5240
5706
|
directives: {
|
|
5241
|
-
'ripple': Ripple__default[
|
|
5707
|
+
'ripple': Ripple__default["default"]
|
|
5242
5708
|
}
|
|
5243
5709
|
};
|
|
5244
5710
|
|
|
@@ -5269,7 +5735,7 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5269
5735
|
}
|
|
5270
5736
|
},
|
|
5271
5737
|
directives: {
|
|
5272
|
-
'ripple': Ripple__default[
|
|
5738
|
+
'ripple': Ripple__default["default"]
|
|
5273
5739
|
}
|
|
5274
5740
|
};
|
|
5275
5741
|
|
|
@@ -5300,7 +5766,7 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5300
5766
|
}
|
|
5301
5767
|
},
|
|
5302
5768
|
directives: {
|
|
5303
|
-
'ripple': Ripple__default[
|
|
5769
|
+
'ripple': Ripple__default["default"]
|
|
5304
5770
|
}
|
|
5305
5771
|
};
|
|
5306
5772
|
|
|
@@ -5338,7 +5804,7 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5338
5804
|
}
|
|
5339
5805
|
},
|
|
5340
5806
|
directives: {
|
|
5341
|
-
'ripple': Ripple__default[
|
|
5807
|
+
'ripple': Ripple__default["default"]
|
|
5342
5808
|
}
|
|
5343
5809
|
};
|
|
5344
5810
|
|
|
@@ -5375,7 +5841,7 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5375
5841
|
}
|
|
5376
5842
|
},
|
|
5377
5843
|
directives: {
|
|
5378
|
-
'ripple': Ripple__default[
|
|
5844
|
+
'ripple': Ripple__default["default"]
|
|
5379
5845
|
}
|
|
5380
5846
|
};
|
|
5381
5847
|
|
|
@@ -5422,7 +5888,7 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5422
5888
|
}
|
|
5423
5889
|
},
|
|
5424
5890
|
components: {
|
|
5425
|
-
'RPPDropdown': Dropdown__default[
|
|
5891
|
+
'RPPDropdown': Dropdown__default["default"]
|
|
5426
5892
|
}
|
|
5427
5893
|
};
|
|
5428
5894
|
|
|
@@ -5466,7 +5932,7 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5466
5932
|
}
|
|
5467
5933
|
},
|
|
5468
5934
|
components: {
|
|
5469
|
-
'JTPDropdown': Dropdown__default[
|
|
5935
|
+
'JTPDropdown': Dropdown__default["default"]
|
|
5470
5936
|
}
|
|
5471
5937
|
};
|
|
5472
5938
|
|
|
@@ -5501,7 +5967,7 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5501
5967
|
}
|
|
5502
5968
|
},
|
|
5503
5969
|
components: {
|
|
5504
|
-
'JTPInput': InputNumber__default[
|
|
5970
|
+
'JTPInput': InputNumber__default["default"]
|
|
5505
5971
|
}
|
|
5506
5972
|
};
|
|
5507
5973
|
|
|
@@ -5722,9 +6188,9 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5722
6188
|
|
|
5723
6189
|
return ($props.alwaysShow ? true : ($options.pageLinks && $options.pageLinks.length > 1))
|
|
5724
6190
|
? (vue.openBlock(), vue.createBlock("div", _hoisted_1, [
|
|
5725
|
-
(_ctx.$slots.
|
|
6191
|
+
(_ctx.$slots.start)
|
|
5726
6192
|
? (vue.openBlock(), vue.createBlock("div", _hoisted_2, [
|
|
5727
|
-
vue.renderSlot(_ctx.$slots, "
|
|
6193
|
+
vue.renderSlot(_ctx.$slots, "start", { state: $options.currentState })
|
|
5728
6194
|
]))
|
|
5729
6195
|
: vue.createCommentVNode("", true),
|
|
5730
6196
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.templateItems, (item) => {
|
|
@@ -5797,9 +6263,9 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5797
6263
|
: vue.createCommentVNode("", true)
|
|
5798
6264
|
], 64))
|
|
5799
6265
|
}), 128)),
|
|
5800
|
-
(_ctx.$slots.
|
|
6266
|
+
(_ctx.$slots.end)
|
|
5801
6267
|
? (vue.openBlock(), vue.createBlock("div", _hoisted_3, [
|
|
5802
|
-
vue.renderSlot(_ctx.$slots, "
|
|
6268
|
+
vue.renderSlot(_ctx.$slots, "end", { state: $options.currentState })
|
|
5803
6269
|
]))
|
|
5804
6270
|
: vue.createCommentVNode("", true)
|
|
5805
6271
|
]))
|
|
@@ -5840,7 +6306,7 @@ this.primevue.paginator = (function (vue, Ripple, Dropdown, InputNumber) {
|
|
|
5840
6306
|
|
|
5841
6307
|
return script;
|
|
5842
6308
|
|
|
5843
|
-
}(Vue, primevue.ripple, primevue.dropdown, primevue.inputnumber)
|
|
6309
|
+
})(Vue, primevue.ripple, primevue.dropdown, primevue.inputnumber);
|
|
5844
6310
|
|
|
5845
6311
|
this.primevue = this.primevue || {};
|
|
5846
6312
|
this.primevue.tree = (function (utils, Ripple, vue) {
|
|
@@ -5880,6 +6346,9 @@ this.primevue.tree = (function (utils, Ripple, vue) {
|
|
|
5880
6346
|
toggle() {
|
|
5881
6347
|
this.$emit('node-toggle', this.node);
|
|
5882
6348
|
},
|
|
6349
|
+
label(node) {
|
|
6350
|
+
return (typeof node.label === 'function' ? node.label() : node.label);
|
|
6351
|
+
},
|
|
5883
6352
|
onChildNodeToggle(node) {
|
|
5884
6353
|
this.$emit('node-toggle', node);
|
|
5885
6354
|
},
|
|
@@ -6109,7 +6578,7 @@ this.primevue.tree = (function (utils, Ripple, vue) {
|
|
|
6109
6578
|
}
|
|
6110
6579
|
},
|
|
6111
6580
|
directives: {
|
|
6112
|
-
'ripple': Ripple__default[
|
|
6581
|
+
'ripple': Ripple__default["default"]
|
|
6113
6582
|
}
|
|
6114
6583
|
};
|
|
6115
6584
|
|
|
@@ -6168,7 +6637,7 @@ this.primevue.tree = (function (utils, Ripple, vue) {
|
|
|
6168
6637
|
node: $props.node
|
|
6169
6638
|
}, null, 8, ["node"]))
|
|
6170
6639
|
: (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 1 }, [
|
|
6171
|
-
vue.createTextVNode(vue.toDisplayString($props.node
|
|
6640
|
+
vue.createTextVNode(vue.toDisplayString($options.label($props.node)), 1)
|
|
6172
6641
|
], 64))
|
|
6173
6642
|
])
|
|
6174
6643
|
], 46, ["aria-expanded"]),
|
|
@@ -6544,14 +7013,14 @@ this.primevue.tree = (function (utils, Ripple, vue) {
|
|
|
6544
7013
|
}
|
|
6545
7014
|
}
|
|
6546
7015
|
|
|
6547
|
-
var css_248z = "\n.p-tree-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n overflow: auto;\n}\n.p-treenode-children {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-tree-wrapper {\n overflow: auto;\n}\n.p-treenode-selectable {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-tree-toggler {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\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 overflow: hidden;\n position: relative;\n}\n.p-treenode-leaf > .p-treenode-content .p-tree-toggler {\n visibility: hidden;\n}\n.p-treenode-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}\n.p-tree-filter {\n width: 100%;\n}\n.p-tree-filter-container {\n position: relative;\n display: block;\n width: 100%;\n}\n.p-tree-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-tree-loading {\n position: relative;\n min-height: 4rem;\n}\n.p-tree .p-tree-loading-overlay {\n position: absolute;\n z-index: 1;\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}\n.p-tree-flex-scrollable {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-tree-flex-scrollable .p-tree-wrapper {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n";
|
|
7016
|
+
var css_248z = "\n.p-tree-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n overflow: auto;\n}\n.p-treenode-children {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-tree-wrapper {\n overflow: auto;\n}\n.p-treenode-selectable {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-tree-toggler {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\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 overflow: hidden;\n position: relative;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-treenode-leaf > .p-treenode-content .p-tree-toggler {\n visibility: hidden;\n}\n.p-treenode-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}\n.p-tree-filter {\n width: 100%;\n}\n.p-tree-filter-container {\n position: relative;\n display: block;\n width: 100%;\n}\n.p-tree-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-tree-loading {\n position: relative;\n min-height: 4rem;\n}\n.p-tree .p-tree-loading-overlay {\n position: absolute;\n z-index: 1;\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}\n.p-tree-flex-scrollable {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-tree-flex-scrollable .p-tree-wrapper {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n";
|
|
6548
7017
|
styleInject(css_248z);
|
|
6549
7018
|
|
|
6550
7019
|
script.render = render;
|
|
6551
7020
|
|
|
6552
7021
|
return script;
|
|
6553
7022
|
|
|
6554
|
-
}(primevue.utils, primevue.ripple, Vue)
|
|
7023
|
+
})(primevue.utils, primevue.ripple, Vue);
|
|
6555
7024
|
|
|
6556
7025
|
this.primevue = this.primevue || {};
|
|
6557
7026
|
this.primevue.menu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
@@ -6591,6 +7060,9 @@ this.primevue.menu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
6591
7060
|
},
|
|
6592
7061
|
disabled(item) {
|
|
6593
7062
|
return (typeof item.disabled === 'function' ? item.disabled() : item.disabled);
|
|
7063
|
+
},
|
|
7064
|
+
label() {
|
|
7065
|
+
return (typeof this.item.label === 'function' ? this.item.label() : this.item.label);
|
|
6594
7066
|
}
|
|
6595
7067
|
},
|
|
6596
7068
|
computed: {
|
|
@@ -6599,7 +7071,7 @@ this.primevue.menu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
6599
7071
|
}
|
|
6600
7072
|
},
|
|
6601
7073
|
directives: {
|
|
6602
|
-
'ripple': Ripple__default[
|
|
7074
|
+
'ripple': Ripple__default["default"]
|
|
6603
7075
|
}
|
|
6604
7076
|
};
|
|
6605
7077
|
|
|
@@ -6635,7 +7107,7 @@ this.primevue.menu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
6635
7107
|
vue.createVNode("span", {
|
|
6636
7108
|
class: ['p-menuitem-icon', $props.item.icon]
|
|
6637
7109
|
}, null, 2),
|
|
6638
|
-
vue.createVNode("span", _hoisted_1$1, vue.toDisplayString($
|
|
7110
|
+
vue.createVNode("span", _hoisted_1$1, vue.toDisplayString($options.label()), 1)
|
|
6639
7111
|
], 10, ["href", "onClick"]), [
|
|
6640
7112
|
[_directive_ripple]
|
|
6641
7113
|
])
|
|
@@ -6654,7 +7126,7 @@ this.primevue.menu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
6654
7126
|
vue.createVNode("span", {
|
|
6655
7127
|
class: ['p-menuitem-icon', $props.item.icon]
|
|
6656
7128
|
}, null, 2),
|
|
6657
|
-
vue.createVNode("span", _hoisted_2$1, vue.toDisplayString($
|
|
7129
|
+
vue.createVNode("span", _hoisted_2$1, vue.toDisplayString($options.label()), 1)
|
|
6658
7130
|
], 10, ["href", "target", "tabindex"])), [
|
|
6659
7131
|
[_directive_ripple]
|
|
6660
7132
|
])
|
|
@@ -6836,11 +7308,14 @@ this.primevue.menu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
6836
7308
|
visible(item) {
|
|
6837
7309
|
return (typeof item.visible === 'function' ? item.visible() : item.visible !== false);
|
|
6838
7310
|
},
|
|
7311
|
+
label(item) {
|
|
7312
|
+
return (typeof item.label === 'function' ? item.label() : item.label);
|
|
7313
|
+
},
|
|
6839
7314
|
containerRef(el) {
|
|
6840
7315
|
this.container = el;
|
|
6841
7316
|
},
|
|
6842
7317
|
onOverlayClick(event) {
|
|
6843
|
-
OverlayEventBus__default[
|
|
7318
|
+
OverlayEventBus__default["default"].emit('overlay-click', {
|
|
6844
7319
|
originalEvent: event,
|
|
6845
7320
|
target: this.target
|
|
6846
7321
|
});
|
|
@@ -6894,14 +7369,14 @@ this.primevue.menu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
6894
7369
|
vue.createVNode("ul", _hoisted_1, [
|
|
6895
7370
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($props.model, (item, i) => {
|
|
6896
7371
|
return (vue.openBlock(), vue.createBlock(vue.Fragment, {
|
|
6897
|
-
key:
|
|
7372
|
+
key: $options.label(item) + i.toString()
|
|
6898
7373
|
}, [
|
|
6899
7374
|
(item.items && $options.visible(item) && !item.separator)
|
|
6900
7375
|
? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 0 }, [
|
|
6901
7376
|
(item.items)
|
|
6902
7377
|
? (vue.openBlock(), vue.createBlock("li", _hoisted_2, [
|
|
6903
7378
|
vue.renderSlot(_ctx.$slots, "item", { item: item }, () => [
|
|
6904
|
-
vue.createTextVNode(vue.toDisplayString(
|
|
7379
|
+
vue.createTextVNode(vue.toDisplayString($options.label(item)), 1)
|
|
6905
7380
|
])
|
|
6906
7381
|
]))
|
|
6907
7382
|
: vue.createCommentVNode("", true),
|
|
@@ -6936,7 +7411,7 @@ this.primevue.menu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
6936
7411
|
role: "separator"
|
|
6937
7412
|
}, null, 6))
|
|
6938
7413
|
: (vue.openBlock(), vue.createBlock(_component_Menuitem, {
|
|
6939
|
-
key:
|
|
7414
|
+
key: $options.label(item) + i.toString(),
|
|
6940
7415
|
item: item,
|
|
6941
7416
|
onClick: $options.itemClick,
|
|
6942
7417
|
template: _ctx.$slots.item,
|
|
@@ -6987,7 +7462,7 @@ this.primevue.menu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
6987
7462
|
|
|
6988
7463
|
return script;
|
|
6989
7464
|
|
|
6990
|
-
}(primevue.utils, primevue.overlayeventbus, primevue.ripple, Vue)
|
|
7465
|
+
})(primevue.utils, primevue.overlayeventbus, primevue.ripple, Vue);
|
|
6991
7466
|
|
|
6992
7467
|
this.primevue = this.primevue || {};
|
|
6993
7468
|
this.primevue.tieredmenu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
@@ -7199,6 +7674,9 @@ this.primevue.tieredmenu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
7199
7674
|
},
|
|
7200
7675
|
disabled(item) {
|
|
7201
7676
|
return (typeof item.disabled === 'function' ? item.disabled() : item.disabled);
|
|
7677
|
+
},
|
|
7678
|
+
label(item) {
|
|
7679
|
+
return (typeof item.label === 'function' ? item.label() : item.label);
|
|
7202
7680
|
}
|
|
7203
7681
|
},
|
|
7204
7682
|
computed: {
|
|
@@ -7207,7 +7685,7 @@ this.primevue.tieredmenu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
7207
7685
|
}
|
|
7208
7686
|
},
|
|
7209
7687
|
directives: {
|
|
7210
|
-
'ripple': Ripple__default[
|
|
7688
|
+
'ripple': Ripple__default["default"]
|
|
7211
7689
|
}
|
|
7212
7690
|
};
|
|
7213
7691
|
|
|
@@ -7231,7 +7709,7 @@ this.primevue.tieredmenu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
7231
7709
|
}, [
|
|
7232
7710
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($props.model, (item, i) => {
|
|
7233
7711
|
return (vue.openBlock(), vue.createBlock(vue.Fragment, {
|
|
7234
|
-
key:
|
|
7712
|
+
key: $options.label(item) + i.toString()
|
|
7235
7713
|
}, [
|
|
7236
7714
|
($options.visible(item) && !item.separator)
|
|
7237
7715
|
? (vue.openBlock(), vue.createBlock("li", {
|
|
@@ -7260,7 +7738,7 @@ this.primevue.tieredmenu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
7260
7738
|
vue.createVNode("span", {
|
|
7261
7739
|
class: ['p-menuitem-icon', item.icon]
|
|
7262
7740
|
}, null, 2),
|
|
7263
|
-
vue.createVNode("span", _hoisted_1, vue.toDisplayString(
|
|
7741
|
+
vue.createVNode("span", _hoisted_1, vue.toDisplayString($options.label(item)), 1)
|
|
7264
7742
|
], 42, ["href", "onClick", "onKeydown"]), [
|
|
7265
7743
|
[_directive_ripple]
|
|
7266
7744
|
])
|
|
@@ -7282,7 +7760,7 @@ this.primevue.tieredmenu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
7282
7760
|
vue.createVNode("span", {
|
|
7283
7761
|
class: ['p-menuitem-icon', item.icon]
|
|
7284
7762
|
}, null, 2),
|
|
7285
|
-
vue.createVNode("span", _hoisted_2, vue.toDisplayString(
|
|
7763
|
+
vue.createVNode("span", _hoisted_2, vue.toDisplayString($options.label(item)), 1),
|
|
7286
7764
|
(item.items)
|
|
7287
7765
|
? (vue.openBlock(), vue.createBlock("span", _hoisted_3))
|
|
7288
7766
|
: vue.createCommentVNode("", true)
|
|
@@ -7297,7 +7775,7 @@ this.primevue.tieredmenu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
7297
7775
|
($options.visible(item) && item.items)
|
|
7298
7776
|
? (vue.openBlock(), vue.createBlock(_component_TieredMenuSub, {
|
|
7299
7777
|
model: item.items,
|
|
7300
|
-
key:
|
|
7778
|
+
key: $options.label(item) + '_sub_',
|
|
7301
7779
|
template: $props.template,
|
|
7302
7780
|
onLeafClick: $options.onLeafClick,
|
|
7303
7781
|
onKeydownItem: $options.onChildItemKeyDown,
|
|
@@ -7481,7 +7959,7 @@ this.primevue.tieredmenu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
7481
7959
|
this.container = el;
|
|
7482
7960
|
},
|
|
7483
7961
|
onOverlayClick(event) {
|
|
7484
|
-
OverlayEventBus__default[
|
|
7962
|
+
OverlayEventBus__default["default"].emit('overlay-click', {
|
|
7485
7963
|
originalEvent: event,
|
|
7486
7964
|
target: this.target
|
|
7487
7965
|
});
|
|
@@ -7573,5 +8051,5 @@ this.primevue.tieredmenu = (function (utils, OverlayEventBus, Ripple, vue) {
|
|
|
7573
8051
|
|
|
7574
8052
|
return script;
|
|
7575
8053
|
|
|
7576
|
-
}(primevue.utils, primevue.overlayeventbus, primevue.ripple, Vue)
|
|
8054
|
+
})(primevue.utils, primevue.overlayeventbus, primevue.ripple, Vue);
|
|
7577
8055
|
|