primevue 2.5.0 → 2.8.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/accordion/accordion.common.js +1 -1
- package/accordion/accordion.umd.js +1 -1
- package/accordiontab/accordiontab.common.js +28 -1
- package/accordiontab/accordiontab.umd.js +28 -1
- package/accordiontab/accordiontab.umd.min.js +1 -1
- package/api/Api.d.ts +296 -0
- package/api/Api.js +47 -0
- package/api/FilterMatchMode.js +26 -0
- package/api/FilterOperator.js +12 -0
- package/api/FilterService.js +260 -0
- package/api/PrimeIcons.js +246 -0
- package/api/ToastSeverity.js +14 -0
- package/api/api.common.js +4889 -0
- package/api/api.umd.js +4899 -0
- package/api/api.umd.min.js +1 -0
- package/api/demo.html +8 -0
- package/api/filtermatchmode.common.js +186 -0
- package/api/filtermatchmode.umd.js +196 -0
- package/api/filtermatchmode.umd.min.js +1 -0
- package/api/filteroperator.common.js +172 -0
- package/api/filteroperator.umd.js +182 -0
- package/api/filteroperator.umd.min.js +1 -0
- package/{utils/filterutils.common.js → api/filterservice.common.js} +207 -110
- package/{utils/filterutils.umd.js → api/filterservice.umd.js} +209 -112
- package/api/filterservice.umd.min.js +1 -0
- package/api/index.d.ts +1 -0
- package/api/index.js +2 -0
- package/api/primeicons.common.js +406 -0
- package/api/primeicons.umd.js +416 -0
- package/api/primeicons.umd.min.js +1 -0
- package/{confirmationservice/confirmationeventbus.common.js → api/toastseverity.common.js} +9 -9
- package/{confirmationservice/confirmationeventbus.umd.js → api/toastseverity.umd.js} +11 -11
- package/api/toastseverity.umd.min.js +1 -0
- package/autocomplete/AutoComplete.d.ts +1 -0
- package/autocomplete/AutoComplete.vue +8 -0
- package/autocomplete/autocomplete.common.js +61 -24
- package/autocomplete/autocomplete.umd.js +61 -24
- package/autocomplete/autocomplete.umd.min.js +1 -1
- package/avatar/avatar.common.js +1 -1
- package/avatar/avatar.umd.js +1 -1
- package/avatargroup/avatargroup.common.js +1 -1
- package/avatargroup/avatargroup.umd.js +1 -1
- package/badge/badge.common.js +1 -1
- package/badge/badge.umd.js +1 -1
- package/badgedirective/badgedirective.common.js +27 -0
- package/badgedirective/badgedirective.umd.js +27 -0
- package/badgedirective/badgedirective.umd.min.js +1 -1
- package/blockui/BlockUI.vue +6 -16
- package/blockui/blockui.common.js +38 -16
- package/blockui/blockui.umd.js +38 -16
- package/blockui/blockui.umd.min.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +1 -0
- package/breadcrumb/Breadcrumb.vue +6 -2
- package/breadcrumb/BreadcrumbItem.vue +30 -11
- package/breadcrumb/breadcrumb.common.js +44 -16
- package/breadcrumb/breadcrumb.umd.js +44 -16
- package/breadcrumb/breadcrumb.umd.min.js +1 -1
- package/breadcrumb/breadcrumbitem.common.js +34 -10
- package/breadcrumb/breadcrumbitem.umd.js +34 -10
- package/breadcrumb/breadcrumbitem.umd.min.js +1 -1
- package/button/button.common.js +28 -1
- package/button/button.umd.js +28 -1
- package/button/button.umd.min.js +1 -1
- package/calendar/Calendar.d.ts +5 -0
- package/calendar/Calendar.vue +339 -70
- package/calendar/calendar.common.js +400 -73
- package/calendar/calendar.umd.js +400 -73
- package/calendar/calendar.umd.min.js +1 -1
- package/card/card.common.js +1 -1
- package/card/card.umd.js +1 -1
- package/carousel/Carousel.vue +2 -2
- package/carousel/carousel.common.js +30 -3
- package/carousel/carousel.umd.js +30 -3
- package/carousel/carousel.umd.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +6 -4
- package/cascadeselect/CascadeSelect.vue +3 -1
- package/cascadeselect/cascadeselect.common.js +53 -21
- package/cascadeselect/cascadeselect.umd.js +53 -21
- package/cascadeselect/cascadeselect.umd.min.js +1 -1
- package/cascadeselect/cascadeselectsub.common.js +48 -18
- package/cascadeselect/cascadeselectsub.umd.js +48 -18
- package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
- package/chart/Chart.vue +27 -11
- package/chart/chart.common.js +30 -12
- package/chart/chart.umd.js +30 -12
- package/chart/chart.umd.min.js +1 -1
- package/checkbox/Checkbox.css +1 -0
- package/checkbox/Checkbox.d.ts +2 -0
- package/checkbox/Checkbox.vue +11 -3
- package/checkbox/checkbox.common.js +38 -22
- package/checkbox/checkbox.umd.js +38 -22
- package/checkbox/checkbox.umd.min.js +1 -1
- package/chip/chip.common.js +1 -1
- package/chip/chip.umd.js +1 -1
- package/chips/chips.common.js +1 -1
- package/chips/chips.umd.js +1 -1
- package/colorpicker/colorpicker.common.js +28 -1
- package/colorpicker/colorpicker.umd.js +28 -1
- package/colorpicker/colorpicker.umd.min.js +1 -1
- package/column/Column.vue +72 -12
- package/column/column.common.js +71 -11
- package/column/column.umd.js +71 -11
- package/column/column.umd.min.js +1 -1
- package/columngroup/columngroup.common.js +1 -1
- package/columngroup/columngroup.umd.js +1 -1
- package/common/Common.css +13 -4
- package/config/PrimeVue.d.ts +24 -2
- package/config/PrimeVue.js +34 -4
- package/config/primevue.common.js +3584 -133
- package/config/primevue.umd.js +3584 -133
- package/config/primevue.umd.min.js +1 -1
- package/{confirmationservice → confirmationeventbus}/ConfirmationEventBus.js +3 -3
- package/confirmationeventbus/confirmationeventbus.common.js +1773 -0
- package/confirmationeventbus/confirmationeventbus.umd.js +1783 -0
- package/confirmationeventbus/confirmationeventbus.umd.min.js +1 -0
- package/confirmationeventbus/demo.html +8 -0
- package/confirmationeventbus/index.d.ts +1 -0
- package/confirmationeventbus/index.js +2 -0
- package/confirmationservice/ConfirmationService.js +1 -1
- package/confirmationservice/confirmationservice.common.js +1605 -6
- package/confirmationservice/confirmationservice.umd.js +1605 -6
- package/confirmationservice/confirmationservice.umd.min.js +1 -1
- package/confirmdialog/ConfirmDialog.vue +9 -3
- package/confirmdialog/confirmdialog.common.js +456 -44
- package/confirmdialog/confirmdialog.umd.js +456 -44
- package/confirmdialog/confirmdialog.umd.min.js +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +4 -1
- package/confirmpopup/ConfirmPopup.vue +9 -6
- package/confirmpopup/confirmpopup.common.js +531 -13
- package/confirmpopup/confirmpopup.umd.js +531 -13
- package/confirmpopup/confirmpopup.umd.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +1 -0
- package/contextmenu/ContextMenu.vue +5 -1
- package/contextmenu/ContextMenuSub.vue +33 -13
- package/contextmenu/contextmenu.common.js +68 -14
- package/contextmenu/contextmenu.umd.js +68 -14
- package/contextmenu/contextmenu.umd.min.js +1 -1
- package/contextmenu/contextmenusub.common.js +58 -8
- package/contextmenu/contextmenusub.umd.js +58 -8
- package/contextmenu/contextmenusub.umd.min.js +1 -1
- package/datatable/BodyCell.vue +118 -34
- package/datatable/ColumnFilter.vue +558 -0
- package/datatable/ColumnSlot.vue +21 -1
- package/datatable/DataTable.d.ts +41 -15
- package/datatable/DataTable.vue +582 -391
- package/datatable/FooterCell.vue +82 -0
- package/datatable/HeaderCell.vue +246 -0
- package/datatable/TableBody.vue +92 -23
- package/datatable/TableFooter.vue +34 -18
- package/datatable/TableHeader.vue +79 -134
- package/datatable/bodycell.common.js +578 -56
- package/datatable/bodycell.umd.js +578 -56
- package/datatable/bodycell.umd.min.js +1 -1
- package/datatable/columnfilter.common.js +7610 -0
- package/datatable/columnfilter.umd.js +7620 -0
- package/datatable/columnfilter.umd.min.js +1 -0
- package/datatable/columnslot.common.js +21 -1
- package/datatable/columnslot.umd.js +21 -1
- package/datatable/columnslot.umd.min.js +1 -1
- package/datatable/datatable.common.js +4340 -1384
- package/datatable/datatable.umd.js +4340 -1384
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/demo.html +3 -4
- package/datatable/footercell.common.js +5453 -0
- package/datatable/footercell.umd.js +5463 -0
- package/datatable/footercell.umd.min.js +1 -0
- package/datatable/headercell.common.js +8058 -0
- package/datatable/headercell.umd.js +8068 -0
- package/datatable/headercell.umd.min.js +1 -0
- package/datatable/headercheckbox.common.js +1 -1
- package/datatable/headercheckbox.umd.js +1 -1
- package/datatable/rowcheckbox.common.js +1 -1
- package/datatable/rowcheckbox.umd.js +1 -1
- package/datatable/rowradiobutton.common.js +1 -1
- package/datatable/rowradiobutton.umd.js +1 -1
- package/datatable/tablebody.common.js +1066 -473
- package/datatable/tablebody.umd.js +1066 -473
- package/datatable/tablebody.umd.min.js +1 -1
- package/datatable/tablefooter.common.js +3785 -105
- package/datatable/tablefooter.umd.js +3785 -105
- package/datatable/tablefooter.umd.min.js +1 -1
- package/datatable/tableheader.common.js +6633 -2138
- package/datatable/tableheader.umd.js +6633 -2138
- package/datatable/tableheader.umd.min.js +1 -1
- package/datatable/tableloadingbody.common.js +22 -2
- package/datatable/tableloadingbody.umd.js +22 -2
- package/datatable/tableloadingbody.umd.min.js +1 -1
- package/dataview/DataView.d.ts +2 -2
- package/dataview/DataView.vue +10 -10
- package/dataview/dataview.common.js +1971 -80
- package/dataview/dataview.umd.js +1971 -80
- package/dataview/dataview.umd.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +1 -1
- package/deferredcontent/deferredcontent.common.js +1 -1
- package/deferredcontent/deferredcontent.umd.js +1 -1
- package/dialog/Dialog.vue +35 -21
- package/dialog/dialog.common.js +62 -24
- package/dialog/dialog.umd.js +62 -24
- package/dialog/dialog.umd.min.js +1 -1
- package/divider/divider.common.js +1 -1
- package/divider/divider.umd.js +1 -1
- package/dock/Dock.d.ts +2 -0
- package/dock/Dock.vue +12 -2
- package/dock/DockSub.vue +45 -21
- package/dock/dock.common.js +44 -15
- package/dock/dock.umd.js +44 -15
- package/dock/dock.umd.min.js +1 -1
- package/dock/docksub.common.js +31 -7
- package/dock/docksub.umd.js +31 -7
- package/dock/docksub.umd.min.js +1 -1
- package/dropdown/Dropdown.d.ts +5 -3
- package/dropdown/Dropdown.vue +33 -5
- package/dropdown/dropdown.common.js +83 -24
- package/dropdown/dropdown.umd.js +83 -24
- package/dropdown/dropdown.umd.min.js +1 -1
- package/editor/editor.common.js +1 -1
- package/editor/editor.umd.js +1 -1
- package/fieldset/fieldset.common.js +28 -1
- package/fieldset/fieldset.umd.js +28 -1
- package/fieldset/fieldset.umd.min.js +1 -1
- package/fileupload/FileUpload.vue +5 -2
- package/fileupload/fileupload.common.js +55 -19
- package/fileupload/fileupload.umd.js +55 -19
- package/fileupload/fileupload.umd.min.js +1 -1
- package/fullcalendar/fullcalendar.common.js +342 -136
- package/fullcalendar/fullcalendar.umd.js +342 -136
- package/fullcalendar/fullcalendar.umd.min.js +4 -4
- package/galleria/Galleria.vue +3 -8
- package/galleria/GalleriaContent.vue +9 -0
- package/galleria/galleria.common.js +49 -17
- package/galleria/galleria.umd.js +49 -17
- package/galleria/galleria.umd.min.js +1 -1
- package/galleria/galleriacontent.common.js +40 -4
- package/galleria/galleriacontent.umd.js +40 -4
- package/galleria/galleriacontent.umd.min.js +1 -1
- package/galleria/galleriaitem.common.js +28 -1
- package/galleria/galleriaitem.umd.js +28 -1
- package/galleria/galleriaitem.umd.min.js +1 -1
- package/galleria/galleriathumbnails.common.js +28 -1
- package/galleria/galleriathumbnails.umd.js +28 -1
- package/galleria/galleriathumbnails.umd.min.js +1 -1
- package/imagepreview/ImagePreview.d.ts +10 -0
- package/imagepreview/ImagePreview.vue +205 -0
- package/imagepreview/demo.html +17 -0
- package/{datatable/scrollableview.common.js → imagepreview/imagepreview.common.js} +570 -463
- package/{datatable/scrollableview.umd.js → imagepreview/imagepreview.umd.js} +572 -465
- package/imagepreview/imagepreview.umd.min.js +1 -0
- package/imagepreview/index.d.ts +1 -0
- package/imagepreview/index.js +2 -0
- package/imagepreview/plugin.js +4 -0
- package/inlinemessage/inlinemessage.common.js +1 -1
- package/inlinemessage/inlinemessage.umd.js +1 -1
- package/inplace/inplace.common.js +29 -2
- package/inplace/inplace.umd.js +29 -2
- package/inplace/inplace.umd.min.js +1 -1
- package/inputmask/InputMask.vue +7 -5
- package/inputmask/inputmask.common.js +39 -12
- package/inputmask/inputmask.umd.js +39 -12
- package/inputmask/inputmask.umd.min.js +1 -1
- package/inputnumber/InputNumber.vue +183 -62
- package/inputnumber/inputnumber.common.js +249 -113
- package/inputnumber/inputnumber.umd.js +249 -113
- package/inputnumber/inputnumber.umd.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +2 -0
- package/inputswitch/InputSwitch.vue +15 -3
- package/inputswitch/inputswitch.common.js +17 -5
- package/inputswitch/inputswitch.umd.js +17 -5
- package/inputswitch/inputswitch.umd.min.js +1 -1
- package/inputtext/inputtext.common.js +3 -7
- package/inputtext/inputtext.umd.js +3 -7
- package/inputtext/inputtext.umd.min.js +1 -1
- package/knob/knob.common.js +1 -1
- package/knob/knob.umd.js +1 -1
- package/listbox/Listbox.d.ts +3 -3
- package/listbox/listbox.common.js +48 -18
- package/listbox/listbox.umd.js +48 -18
- package/listbox/listbox.umd.min.js +1 -1
- package/megamenu/MegaMenu.d.ts +6 -1
- package/megamenu/MegaMenu.vue +51 -22
- package/megamenu/megamenu.common.js +74 -10
- package/megamenu/megamenu.umd.js +74 -10
- package/megamenu/megamenu.umd.min.js +1 -1
- package/menu/Menu.d.ts +1 -0
- package/menu/Menu.vue +11 -4
- package/menu/Menuitem.vue +25 -11
- package/menu/menu.common.js +68 -17
- package/menu/menu.umd.js +68 -17
- package/menu/menu.umd.min.js +1 -1
- package/menu/menuitem.common.js +55 -11
- package/menu/menuitem.umd.js +55 -11
- package/menu/menuitem.umd.min.js +1 -1
- package/menubar/Menubar.d.ts +1 -0
- package/menubar/Menubar.vue +5 -1
- package/menubar/MenubarSub.vue +34 -14
- package/menubar/menubar.common.js +68 -14
- package/menubar/menubar.umd.js +68 -14
- package/menubar/menubar.umd.min.js +1 -1
- package/menubar/menubarsub.common.js +58 -8
- package/menubar/menubarsub.umd.js +58 -8
- package/menubar/menubarsub.umd.min.js +1 -1
- package/message/Message.d.ts +1 -0
- package/message/Message.vue +5 -1
- package/message/message.common.js +34 -3
- package/message/message.umd.js +34 -3
- package/message/message.umd.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +4 -3
- package/multiselect/MultiSelect.vue +8 -1
- package/multiselect/multiselect.common.js +58 -22
- package/multiselect/multiselect.umd.js +58 -22
- package/multiselect/multiselect.umd.min.js +1 -1
- package/orderlist/OrderList.d.ts +2 -0
- package/orderlist/OrderList.vue +2 -0
- package/orderlist/orderlist.common.js +53 -21
- package/orderlist/orderlist.umd.js +53 -21
- package/orderlist/orderlist.umd.min.js +1 -1
- package/organizationchart/organizationchart.common.js +31 -8
- package/organizationchart/organizationchart.umd.js +31 -8
- package/organizationchart/organizationchart.umd.min.js +1 -1
- package/organizationchart/organizationchartnode.common.js +28 -1
- package/organizationchart/organizationchartnode.umd.js +28 -1
- package/organizationchart/organizationchartnode.umd.min.js +1 -1
- package/overlayeventbus/OverlayEventBus.js +14 -0
- package/overlayeventbus/demo.html +8 -0
- package/overlayeventbus/index.d.ts +1 -0
- package/overlayeventbus/index.js +2 -0
- package/overlayeventbus/overlayeventbus.common.js +1773 -0
- package/overlayeventbus/overlayeventbus.umd.js +1783 -0
- package/overlayeventbus/overlayeventbus.umd.min.js +1 -0
- package/overlaypanel/overlaypanel.common.js +28 -1
- package/overlaypanel/overlaypanel.umd.js +28 -1
- package/overlaypanel/overlaypanel.umd.min.js +1 -1
- package/package.json +5 -1
- package/paginator/CurrentPageReport.vue +6 -2
- package/paginator/JumpToPageDropdown.vue +33 -0
- package/paginator/JumpToPageInput.vue +25 -0
- package/paginator/Paginator.d.ts +2 -2
- package/paginator/Paginator.vue +24 -11
- package/paginator/RowsPerPageDropdown.vue +3 -2
- package/paginator/currentpagereport.common.js +7 -3
- package/paginator/currentpagereport.umd.js +7 -3
- package/paginator/currentpagereport.umd.min.js +1 -1
- package/paginator/demo.html +3 -3
- package/paginator/firstpagelink.common.js +28 -1
- package/paginator/firstpagelink.umd.js +28 -1
- package/paginator/firstpagelink.umd.min.js +1 -1
- package/paginator/jumptopagedropdown.common.js +6501 -0
- package/paginator/jumptopagedropdown.umd.js +6511 -0
- package/paginator/jumptopagedropdown.umd.min.js +1 -0
- package/paginator/jumptopageinput.common.js +7438 -0
- package/paginator/jumptopageinput.umd.js +7448 -0
- package/paginator/jumptopageinput.umd.min.js +1 -0
- package/paginator/lastpagelink.common.js +28 -1
- package/paginator/lastpagelink.umd.js +28 -1
- package/paginator/lastpagelink.umd.min.js +1 -1
- package/paginator/nextpagelink.common.js +28 -1
- package/paginator/nextpagelink.umd.js +28 -1
- package/paginator/nextpagelink.umd.min.js +1 -1
- package/paginator/pagelinks.common.js +28 -1
- package/paginator/pagelinks.umd.js +28 -1
- package/paginator/pagelinks.umd.min.js +1 -1
- package/paginator/paginator.common.js +2277 -119
- package/paginator/paginator.umd.js +2277 -119
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +28 -1
- package/paginator/prevpagelink.umd.js +28 -1
- package/paginator/prevpagelink.umd.min.js +1 -1
- package/paginator/rowsperpagedropdown.common.js +91 -31
- package/paginator/rowsperpagedropdown.umd.js +91 -31
- package/paginator/rowsperpagedropdown.umd.min.js +1 -1
- package/panel/Panel.d.ts +1 -0
- package/panel/Panel.vue +1 -1
- package/panel/panel.common.js +29 -2
- package/panel/panel.umd.js +29 -2
- package/panel/panel.umd.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +1 -0
- package/panelmenu/PanelMenu.vue +32 -6
- package/panelmenu/PanelMenuSub.vue +32 -13
- package/panelmenu/panelmenu.common.js +69 -16
- package/panelmenu/panelmenu.umd.js +69 -16
- package/panelmenu/panelmenu.umd.min.js +1 -1
- package/panelmenu/panelmenusub.common.js +29 -7
- package/panelmenu/panelmenusub.umd.js +29 -7
- package/panelmenu/panelmenusub.umd.min.js +1 -1
- package/password/password.common.js +31 -8
- package/password/password.umd.js +31 -8
- package/password/password.umd.min.js +1 -1
- package/picklist/PickList.d.ts +8 -0
- package/picklist/PickList.vue +10 -4
- package/picklist/picklist.common.js +57 -21
- package/picklist/picklist.umd.js +57 -21
- package/picklist/picklist.umd.min.js +1 -1
- package/progressbar/ProgressBar.vue +18 -14
- package/progressbar/progressbar.common.js +7 -5
- package/progressbar/progressbar.umd.js +7 -5
- package/progressbar/progressbar.umd.min.js +1 -1
- package/progressspinner/progressspinner.common.js +1 -1
- package/progressspinner/progressspinner.umd.js +1 -1
- package/radiobutton/radiobutton.common.js +26 -18
- package/radiobutton/radiobutton.umd.js +26 -18
- package/radiobutton/radiobutton.umd.min.js +1 -1
- package/rating/Rating.vue +1 -1
- package/rating/rating.common.js +3 -3
- package/rating/rating.umd.js +3 -3
- package/rating/rating.umd.min.js +1 -1
- package/resources/primevue.css +15 -4
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +178 -42
- package/resources/themes/arya-green/theme.css +178 -42
- package/resources/themes/arya-orange/theme.css +178 -42
- package/resources/themes/arya-purple/theme.css +178 -42
- package/resources/themes/bootstrap4-dark-blue/theme.css +175 -46
- package/resources/themes/bootstrap4-dark-purple/theme.css +175 -46
- package/resources/themes/bootstrap4-light-blue/theme.css +175 -46
- package/resources/themes/bootstrap4-light-purple/theme.css +175 -46
- package/resources/themes/fluent-light/theme.css +182 -46
- 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 +5418 -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 +5418 -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 +5418 -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 +5418 -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 +5418 -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 +5418 -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 +5418 -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 +5418 -0
- package/resources/themes/luna-amber/theme.css +175 -46
- package/resources/themes/luna-blue/theme.css +175 -46
- package/resources/themes/luna-green/theme.css +175 -46
- package/resources/themes/luna-pink/theme.css +175 -46
- package/resources/themes/md-dark-deeppurple/theme.css +379 -87
- package/resources/themes/md-dark-indigo/theme.css +379 -87
- package/resources/themes/md-light-deeppurple/theme.css +379 -87
- package/resources/themes/md-light-indigo/theme.css +379 -87
- package/resources/themes/mdc-dark-deeppurple/theme.css +379 -87
- package/resources/themes/mdc-dark-indigo/theme.css +379 -87
- package/resources/themes/mdc-light-deeppurple/theme.css +379 -87
- package/resources/themes/mdc-light-indigo/theme.css +379 -87
- package/resources/themes/nova/theme.css +175 -46
- package/resources/themes/nova-accent/theme.css +175 -46
- package/resources/themes/nova-alt/theme.css +175 -46
- package/resources/themes/nova-vue/theme.css +175 -46
- package/resources/themes/rhea/theme.css +175 -46
- package/resources/themes/saga-blue/theme.css +178 -42
- package/resources/themes/saga-green/theme.css +178 -42
- package/resources/themes/saga-orange/theme.css +178 -42
- package/resources/themes/saga-purple/theme.css +178 -42
- package/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/tailwind-light/theme.css +5493 -0
- package/resources/themes/vela-blue/theme.css +178 -42
- package/resources/themes/vela-green/theme.css +178 -42
- package/resources/themes/vela-orange/theme.css +178 -42
- package/resources/themes/vela-purple/theme.css +178 -42
- package/ripple/ripple.common.js +27 -0
- package/ripple/ripple.umd.js +27 -0
- package/ripple/ripple.umd.min.js +1 -1
- package/row/row.common.js +1 -1
- package/row/row.umd.js +1 -1
- package/scrollpanel/scrollpanel.common.js +28 -1
- package/scrollpanel/scrollpanel.umd.js +28 -1
- package/scrollpanel/scrollpanel.umd.min.js +1 -1
- package/scrolltop/scrolltop.common.js +28 -1
- package/scrolltop/scrolltop.umd.js +28 -1
- package/scrolltop/scrolltop.umd.min.js +1 -1
- package/selectbutton/SelectButton.d.ts +3 -3
- package/selectbutton/SelectButton.vue +6 -1
- package/selectbutton/selectbutton.common.js +55 -20
- package/selectbutton/selectbutton.umd.js +55 -20
- package/selectbutton/selectbutton.umd.min.js +1 -1
- package/sidebar/Sidebar.vue +3 -16
- package/sidebar/sidebar.common.js +37 -15
- package/sidebar/sidebar.umd.js +37 -15
- package/sidebar/sidebar.umd.min.js +1 -1
- package/skeleton/skeleton.common.js +1 -1
- package/skeleton/skeleton.umd.js +1 -1
- package/slider/Slider.vue +20 -12
- package/slider/slider.common.js +41 -9
- package/slider/slider.umd.js +41 -9
- package/slider/slider.umd.min.js +1 -1
- package/speeddial/SpeedDial.d.ts +1 -0
- package/speeddial/SpeedDial.vue +10 -9
- package/speeddial/speeddial.common.js +40 -16
- package/speeddial/speeddial.umd.js +40 -16
- package/speeddial/speeddial.umd.min.js +1 -1
- package/splitbutton/splitbutton.common.js +73 -22
- package/splitbutton/splitbutton.umd.js +73 -22
- package/splitbutton/splitbutton.umd.min.js +1 -1
- package/splitter/splitter.common.js +27 -0
- package/splitter/splitter.umd.js +27 -0
- package/splitter/splitter.umd.min.js +1 -1
- package/steps/Steps.d.ts +1 -0
- package/steps/Steps.vue +30 -8
- package/steps/steps.common.js +33 -6
- package/steps/steps.umd.js +33 -6
- package/steps/steps.umd.min.js +1 -1
- package/styleclass/StyleClass.js +4 -1
- package/styleclass/styleclass.common.js +31 -1
- package/styleclass/styleclass.umd.js +31 -1
- package/styleclass/styleclass.umd.min.js +1 -1
- package/tabmenu/TabMenu.d.ts +1 -0
- package/tabmenu/TabMenu.vue +39 -10
- package/tabmenu/tabmenu.common.js +192 -8
- package/tabmenu/tabmenu.umd.js +192 -8
- package/tabmenu/tabmenu.umd.min.js +1 -1
- package/tabpanel/tabpanel.common.js +1 -1
- package/tabpanel/tabpanel.umd.js +1 -1
- package/tabview/TabView.d.ts +1 -0
- package/tabview/TabView.vue +111 -11
- package/tabview/tabview.common.js +124 -22
- package/tabview/tabview.umd.js +124 -22
- package/tabview/tabview.umd.min.js +1 -1
- package/tag/tag.common.js +1 -1
- package/tag/tag.umd.js +1 -1
- package/terminal/terminal.common.js +1 -1
- package/terminal/terminal.umd.js +1 -1
- package/textarea/textarea.common.js +3 -7
- package/textarea/textarea.umd.js +3 -7
- package/textarea/textarea.umd.min.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +1 -0
- package/tieredmenu/TieredMenu.vue +5 -1
- package/tieredmenu/TieredMenuSub.vue +30 -14
- package/tieredmenu/demo.html +3 -4
- package/tieredmenu/tieredmenu.common.js +63 -13
- package/tieredmenu/tieredmenu.umd.js +63 -13
- package/tieredmenu/tieredmenu.umd.min.js +1 -1
- package/tieredmenu/tieredmenusub.common.js +53 -7
- package/tieredmenu/tieredmenusub.umd.js +53 -7
- package/tieredmenu/tieredmenusub.umd.min.js +1 -1
- package/timeline/timeline.common.js +26 -18
- package/timeline/timeline.umd.js +26 -18
- package/timeline/timeline.umd.min.js +1 -1
- package/toast/Toast.d.ts +4 -1
- package/toast/Toast.vue +1 -1
- package/toast/toast.common.js +30 -5
- package/toast/toast.umd.js +30 -5
- package/toast/toast.umd.min.js +1 -1
- package/toast/toastmessage.common.js +28 -1
- package/toast/toastmessage.umd.js +28 -1
- package/toast/toastmessage.umd.min.js +1 -1
- package/togglebutton/togglebutton.common.js +28 -1
- package/togglebutton/togglebutton.umd.js +28 -1
- package/togglebutton/togglebutton.umd.min.js +1 -1
- package/toolbar/Toolbar.d.ts +1 -1
- package/toolbar/Toolbar.vue +2 -2
- package/toolbar/toolbar.common.js +3 -3
- package/toolbar/toolbar.umd.js +3 -3
- package/toolbar/toolbar.umd.min.js +1 -1
- package/tooltip/Tooltip.css +1 -0
- package/tooltip/Tooltip.js +37 -2
- package/tooltip/tooltip.common.js +1711 -24
- package/tooltip/tooltip.umd.js +1711 -24
- package/tooltip/tooltip.umd.min.js +1 -1
- package/tree/TreeNode.vue +5 -1
- package/tree/tree.common.js +63 -31
- package/tree/tree.umd.js +63 -31
- package/tree/tree.umd.min.js +1 -1
- package/tree/treenode.common.js +36 -9
- package/tree/treenode.umd.js +36 -9
- package/tree/treenode.umd.min.js +1 -1
- package/treetable/BodyCell.vue +162 -0
- package/treetable/FooterCell.vue +81 -0
- package/treetable/HeaderCell.vue +183 -0
- package/treetable/TreeTable.d.ts +2 -2
- package/treetable/TreeTable.vue +93 -116
- package/treetable/bodycell.common.js +5596 -0
- package/treetable/bodycell.umd.js +5606 -0
- package/treetable/bodycell.umd.min.js +1 -0
- package/treetable/demo.html +3 -3
- package/treetable/footercell.common.js +5300 -0
- package/treetable/footercell.umd.js +5310 -0
- package/treetable/footercell.umd.min.js +1 -0
- package/treetable/headercell.common.js +5529 -0
- package/treetable/headercell.umd.js +5539 -0
- package/treetable/headercell.umd.min.js +1 -0
- package/treetable/treetable.common.js +3801 -1562
- package/treetable/treetable.umd.js +3801 -1562
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablerow.common.js +50 -21
- package/treetable/treetablerow.umd.js +50 -21
- package/treetable/treetablerow.umd.min.js +1 -1
- package/treetable/treetablerowloader.common.js +52 -24
- package/treetable/treetablerowloader.umd.js +52 -24
- package/treetable/treetablerowloader.umd.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.common.js +1 -1
- package/tristatecheckbox/tristatecheckbox.umd.js +1 -1
- package/utils/ConnectedOverlayScrollHandler.js +1 -1
- package/utils/DomHandler.js +23 -1
- package/utils/EventBus.js +33 -0
- package/utils/ObjectUtils.js +15 -2
- package/utils/Utils.d.ts +73 -0
- package/utils/Utils.js +47 -0
- package/utils/connectedoverlayscrollhandler.common.js +27 -0
- package/utils/connectedoverlayscrollhandler.umd.js +27 -0
- package/utils/connectedoverlayscrollhandler.umd.min.js +1 -1
- package/utils/demo.html +3 -3
- package/utils/domhandler.common.js +27 -0
- package/utils/domhandler.umd.js +27 -0
- package/utils/domhandler.umd.min.js +1 -1
- package/utils/eventbus.common.js +1770 -0
- package/utils/eventbus.umd.js +1780 -0
- package/utils/eventbus.umd.min.js +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/index.js +2 -0
- package/utils/objectutils.common.js +25 -17
- package/utils/objectutils.umd.js +25 -17
- package/utils/objectutils.umd.min.js +1 -1
- package/utils/utils.common.js +5481 -0
- package/utils/utils.umd.js +5491 -0
- package/utils/utils.umd.min.js +1 -0
- package/vetur-attributes.json +148 -20
- package/vetur-tags.json +57 -20
- package/web-types.json +477 -33
- package/confirmationservice/confirmationeventbus.umd.min.js +0 -1
- package/datatable/ScrollableView.vue +0 -223
- package/datatable/scrollableview.umd.min.js +0 -1
- package/utils/FilterUtils.js +0 -176
- package/utils/filterutils.umd.min.js +0 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<td :style="containerStyle" :class="containerClass">
|
|
3
|
+
<TTColumnSlot :column="col" v-if="column.children && column.children.footer" />
|
|
4
|
+
{{columnProp('footer')}}
|
|
5
|
+
</td>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import DomHandler from '../utils/DomHandler.js';
|
|
10
|
+
import ObjectUtils from '../utils/ObjectUtils.js';
|
|
11
|
+
import TreeTableColumnSlot from './TreeTableColumnSlot.vue';
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
props: {
|
|
15
|
+
column: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: null
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
data() {
|
|
21
|
+
return {
|
|
22
|
+
styleObject: {
|
|
23
|
+
left: '',
|
|
24
|
+
right: ''
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
mounted() {
|
|
29
|
+
if (this.columnProp('frozen')) {
|
|
30
|
+
this.updateStickyPosition();
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
updated() {
|
|
34
|
+
if (this.columnProp('frozen')) {
|
|
35
|
+
this.updateStickyPosition();
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
methods: {
|
|
39
|
+
columnProp(prop) {
|
|
40
|
+
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
41
|
+
},
|
|
42
|
+
updateStickyPosition() {
|
|
43
|
+
if (this.columnProp('frozen')) {
|
|
44
|
+
let align = this.columnProp('alignFrozen');
|
|
45
|
+
if (align === 'right') {
|
|
46
|
+
let right = 0;
|
|
47
|
+
let next = this.$el.nextElementSibling;
|
|
48
|
+
if (next) {
|
|
49
|
+
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right);
|
|
50
|
+
}
|
|
51
|
+
this.styleObject.right = right + 'px';
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
let left = 0;
|
|
55
|
+
let prev = this.$el.previousElementSibling;
|
|
56
|
+
if (prev) {
|
|
57
|
+
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left);
|
|
58
|
+
}
|
|
59
|
+
this.styleObject.left = left + 'px';
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
computed: {
|
|
65
|
+
containerClass() {
|
|
66
|
+
return [this.columnProp('footerClass'), this.columnProp('className'), {
|
|
67
|
+
'p-frozen-column': this.columnProp('frozen')
|
|
68
|
+
}];
|
|
69
|
+
},
|
|
70
|
+
containerStyle() {
|
|
71
|
+
let bodyStyle = this.columnProp('footerStyle');
|
|
72
|
+
let columnStyle = this.columnProp('styles');
|
|
73
|
+
|
|
74
|
+
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
components: {
|
|
78
|
+
'TTColumnSlot': TreeTableColumnSlot
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
</script>
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<th :style="containerStyle" :class="containerClass" @click="onClick" @keydown="onKeyDown"
|
|
3
|
+
:tabindex="columnProp('sortable') ? '0' : null" :aria-sort="ariaSort">
|
|
4
|
+
<span class="p-column-resizer" @mousedown="onResizeStart" v-if="resizableColumns && !columnProp('frozen')"></span>
|
|
5
|
+
<TTColumnSlot :column="column" v-if="column.children && column.children.header" />
|
|
6
|
+
<span class="p-column-title" v-if="columnProp('header')">{{columnProp('header')}}</span>
|
|
7
|
+
<span v-if="columnProp('sortable')" :class="sortableColumnIcon"></span>
|
|
8
|
+
<span v-if="isMultiSorted()" class="p-sortable-column-badge">{{getMultiSortMetaIndex() + 1}}</span>
|
|
9
|
+
</th>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
import DomHandler from '../utils/DomHandler.js';
|
|
14
|
+
import ObjectUtils from '../utils/ObjectUtils.js';
|
|
15
|
+
import TreeTableColumnSlot from './TreeTableColumnSlot.vue';
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
props: {
|
|
19
|
+
column: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: null
|
|
22
|
+
},
|
|
23
|
+
resizableColumns: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
sortField: {
|
|
28
|
+
type: [String, Function],
|
|
29
|
+
default: null
|
|
30
|
+
},
|
|
31
|
+
sortOrder: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: null
|
|
34
|
+
},
|
|
35
|
+
multiSortMeta: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: null
|
|
38
|
+
},
|
|
39
|
+
sortMode: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: 'single'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
data() {
|
|
45
|
+
return {
|
|
46
|
+
styleObject: {
|
|
47
|
+
left: '',
|
|
48
|
+
right: ''
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
mounted() {
|
|
53
|
+
if (this.columnProp('frozen')) {
|
|
54
|
+
this.updateStickyPosition();
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
updated() {
|
|
58
|
+
if (this.columnProp('frozen')) {
|
|
59
|
+
this.updateStickyPosition();
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
columnProp(prop) {
|
|
64
|
+
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
65
|
+
},
|
|
66
|
+
updateStickyPosition() {
|
|
67
|
+
if (this.columnProp('frozen')) {
|
|
68
|
+
let align = this.columnProp('alignFrozen');
|
|
69
|
+
if (align === 'right') {
|
|
70
|
+
let right = 0;
|
|
71
|
+
let next = this.$el.nextElementSibling;
|
|
72
|
+
if (next) {
|
|
73
|
+
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right);
|
|
74
|
+
}
|
|
75
|
+
this.styleObject.right = right + 'px';
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
let left = 0;
|
|
79
|
+
let prev = this.$el.previousElementSibling;
|
|
80
|
+
if (prev) {
|
|
81
|
+
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left);
|
|
82
|
+
}
|
|
83
|
+
this.styleObject.left = left + 'px';
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
let filterRow = this.$el.parentElement.nextElementSibling;
|
|
87
|
+
if (filterRow) {
|
|
88
|
+
let index = DomHandler.index(this.$el);
|
|
89
|
+
filterRow.children[index].style.left = this.styleObject.left;
|
|
90
|
+
filterRow.children[index].style.right = this.styleObject.right;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
onClick(event) {
|
|
95
|
+
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
96
|
+
},
|
|
97
|
+
onKeyDown(event) {
|
|
98
|
+
if (event.which === 13 && event.currentTarget.nodeName === 'TH' && DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
|
99
|
+
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
onResizeStart(event) {
|
|
103
|
+
this.$emit('column-resizestart', event);
|
|
104
|
+
},
|
|
105
|
+
getMultiSortMetaIndex() {
|
|
106
|
+
let index = -1;
|
|
107
|
+
|
|
108
|
+
for (let i = 0; i < this.multiSortMeta.length; i++) {
|
|
109
|
+
let meta = this.multiSortMeta[i];
|
|
110
|
+
if (meta.field === this.columnProp('field') || meta.field === this.columnProp('sortField')) {
|
|
111
|
+
index = i;
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return index;
|
|
117
|
+
},
|
|
118
|
+
isMultiSorted() {
|
|
119
|
+
return this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1
|
|
120
|
+
},
|
|
121
|
+
isColumnSorted() {
|
|
122
|
+
return this.sortMode === 'single' ? (this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'))) : this.isMultiSorted();
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
computed: {
|
|
126
|
+
containerClass() {
|
|
127
|
+
return [this.columnProp('headerClass'), this.columnProp('className'), {
|
|
128
|
+
'p-sortable-column': this.columnProp('sortable'),
|
|
129
|
+
'p-resizable-column': this.resizableColumns,
|
|
130
|
+
'p-highlight': this.isColumnSorted(),
|
|
131
|
+
'p-frozen-column': this.columnProp('frozen')
|
|
132
|
+
}];
|
|
133
|
+
},
|
|
134
|
+
containerStyle() {
|
|
135
|
+
let headerStyle = this.columnProp('headerStyle');
|
|
136
|
+
let columnStyle = this.columnProp('styles');
|
|
137
|
+
|
|
138
|
+
return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject]: [columnStyle, headerStyle];
|
|
139
|
+
},
|
|
140
|
+
sortableColumnIcon() {
|
|
141
|
+
let sorted = false;
|
|
142
|
+
let sortOrder = null;
|
|
143
|
+
|
|
144
|
+
if (this.sortMode === 'single') {
|
|
145
|
+
sorted = this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'));
|
|
146
|
+
sortOrder = sorted ? this.sortOrder: 0;
|
|
147
|
+
}
|
|
148
|
+
else if (this.sortMode === 'multiple') {
|
|
149
|
+
let metaIndex = this.getMultiSortMetaIndex();
|
|
150
|
+
if (metaIndex > -1) {
|
|
151
|
+
sorted = true;
|
|
152
|
+
sortOrder = this.multiSortMeta[metaIndex].order;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return [
|
|
157
|
+
'p-sortable-column-icon pi pi-fw', {
|
|
158
|
+
'pi-sort-alt': !sorted,
|
|
159
|
+
'pi-sort-amount-up-alt': sorted && sortOrder > 0,
|
|
160
|
+
'pi-sort-amount-down': sorted && sortOrder < 0
|
|
161
|
+
}
|
|
162
|
+
];
|
|
163
|
+
},
|
|
164
|
+
ariaSort() {
|
|
165
|
+
if (this.columnProp('sortable')) {
|
|
166
|
+
const sortIcon = this.sortableColumnIcon;
|
|
167
|
+
if (sortIcon[1]['pi-sort-amount-down'])
|
|
168
|
+
return 'descending';
|
|
169
|
+
else if (sortIcon[1]['pi-sort-amount-up-alt'])
|
|
170
|
+
return 'ascending';
|
|
171
|
+
else
|
|
172
|
+
return 'none';
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
components: {
|
|
180
|
+
'TTColumnSlot': TreeTableColumnSlot
|
|
181
|
+
},
|
|
182
|
+
}
|
|
183
|
+
</script>
|
package/treetable/TreeTable.d.ts
CHANGED
|
@@ -45,8 +45,8 @@ declare class TreeTable extends Vue {
|
|
|
45
45
|
$emit(eventName: 'column-resize-end', event: Event): this;
|
|
46
46
|
$slots: {
|
|
47
47
|
header: VNode[];
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
paginatorstart: VNode[];
|
|
49
|
+
paginatorend: VNode[];
|
|
50
50
|
empty: VNode[];
|
|
51
51
|
footer: VNode[];
|
|
52
52
|
}
|
package/treetable/TreeTable.vue
CHANGED
|
@@ -9,44 +9,34 @@
|
|
|
9
9
|
<div class="p-treetable-header" v-if="$scopedSlots.header">
|
|
10
10
|
<slot name="header"></slot>
|
|
11
11
|
</div>
|
|
12
|
-
|
|
12
|
+
<TTPaginator v-if="paginatorTop" :rows="d_rows" :first="d_first" :totalRecords="totalRecordsLength" :pageLinkSize="pageLinkSize" :template="paginatorTemplate" :rowsPerPageOptions="rowsPerPageOptions"
|
|
13
13
|
:currentPageReportTemplate="currentPageReportTemplate" class="p-paginator-top" @page="onPage($event)" :alwaysShow="alwaysShowPaginator">
|
|
14
|
-
<template #
|
|
15
|
-
<slot name="
|
|
14
|
+
<template #start v-if="$scopedSlots.paginatorstart">
|
|
15
|
+
<slot name="paginatorstart"></slot>
|
|
16
16
|
</template>
|
|
17
|
-
<template #
|
|
18
|
-
<slot name="
|
|
17
|
+
<template #end v-if="$scopedSlots.paginatorend">
|
|
18
|
+
<slot name="paginatorend"></slot>
|
|
19
19
|
</template>
|
|
20
20
|
</TTPaginator>
|
|
21
21
|
<div class="p-treetable-wrapper">
|
|
22
22
|
<table ref="table">
|
|
23
23
|
<thead class="p-treetable-thead">
|
|
24
24
|
<tr>
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<span v-if="col.sortable" :class="getSortableColumnIcon(col)"></span>
|
|
31
|
-
<span v-if="isMultiSorted(col)" class="p-sortable-column-badge">{{getMultiSortMetaIndex(col) + 1}}</span>
|
|
32
|
-
</th>
|
|
25
|
+
<template v-for="(col,i) of columns">
|
|
26
|
+
<TTHeaderCell v-if="!columnProp(col, 'hidden')" :key="columnProp(col, 'columnKey')||columnProp(col, 'field')||i" :column="col" :resizableColumns="resizableColumns"
|
|
27
|
+
:sortField="d_sortField" :sortOrder="d_sortOrder" :multiSortMeta="d_multiSortMeta" :sortMode="sortMode"
|
|
28
|
+
@column-click="onColumnHeaderClick" @column-resizestart="onColumnResizeStart"></TTHeaderCell>
|
|
29
|
+
</template>
|
|
33
30
|
</tr>
|
|
34
31
|
<tr v-if="hasColumnFilter()">
|
|
35
32
|
<template v-for="(col,i) of columns">
|
|
36
|
-
<th
|
|
33
|
+
<th v-if="!columnProp(col, 'hidden')" :key="columnProp(col, 'columnKey')||columnProp(col, 'field')||i"
|
|
34
|
+
:class="getFilterColumnHeaderClass(col)" :style="[columnProp(col, 'style'),columnProp(col, 'filterHeaderStyle')]">
|
|
37
35
|
<TTColumnSlot :column="col" type="filter" v-if="col.$scopedSlots.filter" />
|
|
38
36
|
</th>
|
|
39
37
|
</template>
|
|
40
38
|
</tr>
|
|
41
39
|
</thead>
|
|
42
|
-
<tfoot class="p-treetable-tfoot" v-if="hasFooter">
|
|
43
|
-
<tr>
|
|
44
|
-
<td v-for="(col,i) of columns" :key="col.columnKey||col.field||i" :style="col.footerStyle" :class="col.footerClass">
|
|
45
|
-
<TTColumnSlot :column="col" type="footer" v-if="col.$scopedSlots.footer" />
|
|
46
|
-
{{col.footer}}
|
|
47
|
-
</td>
|
|
48
|
-
</tr>
|
|
49
|
-
</tfoot>
|
|
50
40
|
<tbody class="p-treetable-tbody">
|
|
51
41
|
<template v-if="!empty">
|
|
52
42
|
<TTRow v-for="node of dataToRender" :key="node.key" :columns="columns" :node="node" :level="0"
|
|
@@ -59,15 +49,22 @@
|
|
|
59
49
|
</td>
|
|
60
50
|
</tr>
|
|
61
51
|
</tbody>
|
|
52
|
+
<tfoot class="p-treetable-tfoot" v-if="hasFooter">
|
|
53
|
+
<tr>
|
|
54
|
+
<template v-for="(col,i) of columns">
|
|
55
|
+
<TTFooterCell v-if="!columnProp(col, 'hidden')" :key="columnProp(col, 'columnKey')||columnProp(col, 'field')||i" :column="col"></TTFooterCell>
|
|
56
|
+
</template>
|
|
57
|
+
</tr>
|
|
58
|
+
</tfoot>
|
|
62
59
|
</table>
|
|
63
60
|
</div>
|
|
64
61
|
<TTPaginator v-if="paginatorBottom" :rows="d_rows" :first="d_first" :totalRecords="totalRecordsLength" :pageLinkSize="pageLinkSize" :template="paginatorTemplate" :rowsPerPageOptions="rowsPerPageOptions"
|
|
65
62
|
:currentPageReportTemplate="currentPageReportTemplate" class="p-paginator-bottom" @page="onPage($event)" :alwaysShow="alwaysShowPaginator">
|
|
66
|
-
<template #
|
|
67
|
-
<slot name="
|
|
63
|
+
<template #start v-if="$scopedSlots.paginatorstart">
|
|
64
|
+
<slot name="paginatorstart"></slot>
|
|
68
65
|
</template>
|
|
69
|
-
<template #
|
|
70
|
-
<slot name="
|
|
66
|
+
<template #end v-if="$scopedSlots.paginatorend">
|
|
67
|
+
<slot name="paginatorend"></slot>
|
|
71
68
|
</template>
|
|
72
69
|
</TTPaginator>
|
|
73
70
|
<div class="p-treetable-footer" v-if="$scopedSlots.footer">
|
|
@@ -79,10 +76,12 @@
|
|
|
79
76
|
|
|
80
77
|
<script>
|
|
81
78
|
import ObjectUtils from '../utils/ObjectUtils';
|
|
82
|
-
import FilterUtils from '../utils/FilterUtils';
|
|
83
79
|
import DomHandler from '../utils/DomHandler';
|
|
80
|
+
import FilterService from '../api/FilterService';
|
|
84
81
|
import TreeTableColumnSlot from './TreeTableColumnSlot';
|
|
85
82
|
import TreeTableRowLoader from './TreeTableRowLoader';
|
|
83
|
+
import FooterCell from './FooterCell.vue';
|
|
84
|
+
import HeaderCell from './HeaderCell.vue';
|
|
86
85
|
import Paginator from '../paginator/Paginator';
|
|
87
86
|
|
|
88
87
|
export default {
|
|
@@ -255,6 +254,9 @@ export default {
|
|
|
255
254
|
this.allChildren = this.$children;
|
|
256
255
|
},
|
|
257
256
|
methods: {
|
|
257
|
+
columnProp(col, prop) {
|
|
258
|
+
return ObjectUtils.getVNodeProp(col, prop);
|
|
259
|
+
},
|
|
258
260
|
onNodeToggle(node) {
|
|
259
261
|
const key = node.key;
|
|
260
262
|
|
|
@@ -373,67 +375,18 @@ export default {
|
|
|
373
375
|
this.d_first = 0;
|
|
374
376
|
this.$emit('update:first', this.d_first);
|
|
375
377
|
},
|
|
376
|
-
isMultiSorted(column) {
|
|
377
|
-
return column.sortable && this.getMultiSortMetaIndex(column) > -1
|
|
378
|
-
},
|
|
379
|
-
isColumnSorted(column) {
|
|
380
|
-
if (column.sortable) {
|
|
381
|
-
return this.sortMode === 'single' ? (this.d_sortField === (column.field || column.sortField)) : this.getMultiSortMetaIndex(column) > -1;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
return false;
|
|
385
|
-
},
|
|
386
|
-
getColumnHeaderClass(column) {
|
|
387
|
-
return [column.headerClass,
|
|
388
|
-
{'p-sortable-column': column.sortable},
|
|
389
|
-
{'p-resizable-column': this.resizableColumns},
|
|
390
|
-
{'p-highlight': this.isColumnSorted(column)}
|
|
391
|
-
];
|
|
392
|
-
},
|
|
393
378
|
getFilterColumnHeaderClass(column) {
|
|
394
|
-
return ['p-filter-column', column
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
let sorted = false;
|
|
398
|
-
let sortOrder = null;
|
|
399
|
-
|
|
400
|
-
if (this.sortMode === 'single') {
|
|
401
|
-
sorted = this.d_sortField === (column.field || column.sortField);
|
|
402
|
-
sortOrder = sorted ? this.d_sortOrder: 0;
|
|
403
|
-
}
|
|
404
|
-
else if (this.sortMode === 'multiple') {
|
|
405
|
-
let metaIndex = this.getMultiSortMetaIndex(column);
|
|
406
|
-
if (metaIndex > -1) {
|
|
407
|
-
sorted = true;
|
|
408
|
-
sortOrder = this.d_multiSortMeta[metaIndex].order;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
return [
|
|
413
|
-
'p-sortable-column-icon pi pi-fw', {
|
|
414
|
-
'pi-sort-alt': !sorted,
|
|
415
|
-
'pi-sort-amount-up-alt': sorted && sortOrder > 0,
|
|
416
|
-
'pi-sort-amount-down': sorted && sortOrder < 0
|
|
417
|
-
}
|
|
418
|
-
];
|
|
379
|
+
return ['p-filter-column', this.columnProp(column, 'filterHeaderClass'), {
|
|
380
|
+
'p-frozen-column': this.columnProp(column, 'frozen')
|
|
381
|
+
}];
|
|
419
382
|
},
|
|
420
|
-
|
|
421
|
-
let
|
|
383
|
+
onColumnHeaderClick(e) {
|
|
384
|
+
let event = e.originalEvent;
|
|
385
|
+
let column = e.column;
|
|
422
386
|
|
|
423
|
-
|
|
424
|
-
let meta = this.d_multiSortMeta[i];
|
|
425
|
-
if (meta.field === (column.field || column.sortField)) {
|
|
426
|
-
index = i;
|
|
427
|
-
break;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
return index;
|
|
432
|
-
},
|
|
433
|
-
onColumnHeaderClick(event, column) {
|
|
434
|
-
if (column.sortable) {
|
|
387
|
+
if (this.columnProp(column, 'sortable')) {
|
|
435
388
|
const targetNode = event.target;
|
|
436
|
-
const columnField = column
|
|
389
|
+
const columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
437
390
|
|
|
438
391
|
if (DomHandler.hasClass(targetNode, 'p-sortable-column') || DomHandler.hasClass(targetNode, 'p-column-title')
|
|
439
392
|
|| DomHandler.hasClass(targetNode, 'p-sortable-column-icon') || DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')) {
|
|
@@ -561,13 +514,13 @@ export default {
|
|
|
561
514
|
|
|
562
515
|
for (let j = 0; j < this.columns.length; j++) {
|
|
563
516
|
let col = this.columns[j];
|
|
564
|
-
let filterField = col
|
|
517
|
+
let filterField = this.columnProp(col, 'field');
|
|
565
518
|
|
|
566
519
|
//local
|
|
567
|
-
if (Object.prototype.hasOwnProperty.call(this.filters, col
|
|
568
|
-
let filterMatchMode = col
|
|
569
|
-
let filterValue = this.filters[col
|
|
570
|
-
let filterConstraint =
|
|
520
|
+
if (Object.prototype.hasOwnProperty.call(this.filters, this.columnProp(col, 'field'))) {
|
|
521
|
+
let filterMatchMode = this.columnProp(col, 'filterMatchMode') || 'startsWith';
|
|
522
|
+
let filterValue = this.filters[this.columnProp(col, 'field')];
|
|
523
|
+
let filterConstraint = FilterService.filters[filterMatchMode];
|
|
571
524
|
let paramsWithoutNode = {filterField, filterValue, filterConstraint, strict};
|
|
572
525
|
|
|
573
526
|
if ((strict && !(this.findFilteredNodes(copyNode, paramsWithoutNode) || this.isFilterMatched(copyNode, paramsWithoutNode))) ||
|
|
@@ -584,7 +537,7 @@ export default {
|
|
|
584
537
|
if (this.hasGlobalFilter() && !globalMatch) {
|
|
585
538
|
let copyNodeForGlobal = {...copyNode};
|
|
586
539
|
let filterValue = this.filters['global'];
|
|
587
|
-
let filterConstraint =
|
|
540
|
+
let filterConstraint = FilterService.filters['contains'];
|
|
588
541
|
let globalFilterParamsWithoutNode = {filterField, filterValue, filterConstraint, strict};
|
|
589
542
|
|
|
590
543
|
if ((strict && (this.findFilteredNodes(copyNodeForGlobal, globalFilterParamsWithoutNode) || this.isFilterMatched(copyNodeForGlobal, globalFilterParamsWithoutNode))) ||
|
|
@@ -655,8 +608,8 @@ export default {
|
|
|
655
608
|
if (this.hasFilters()) {
|
|
656
609
|
filterMatchModes = {};
|
|
657
610
|
this.columns.forEach(col => {
|
|
658
|
-
if (col
|
|
659
|
-
filterMatchModes[col.field] = col
|
|
611
|
+
if (this.columnProp(col, 'field')) {
|
|
612
|
+
filterMatchModes[col.field] = this.columnProp(col, 'filterMatchMode');
|
|
660
613
|
}
|
|
661
614
|
});
|
|
662
615
|
}
|
|
@@ -695,21 +648,30 @@ export default {
|
|
|
695
648
|
let newColumnWidth = columnWidth + delta;
|
|
696
649
|
let minWidth = this.resizeColumnElement.style.minWidth||15;
|
|
697
650
|
|
|
698
|
-
if(columnWidth + delta > parseInt(minWidth, 10)) {
|
|
699
|
-
if(this.columnResizeMode === 'fit') {
|
|
651
|
+
if (columnWidth + delta > parseInt(minWidth, 10)) {
|
|
652
|
+
if (this.columnResizeMode === 'fit') {
|
|
700
653
|
let nextColumn = this.resizeColumnElement.nextElementSibling;
|
|
701
654
|
let nextColumnWidth = nextColumn.offsetWidth - delta;
|
|
702
655
|
|
|
703
|
-
if(newColumnWidth > 15 && nextColumnWidth > 15) {
|
|
704
|
-
this.
|
|
705
|
-
|
|
706
|
-
nextColumn
|
|
656
|
+
if (newColumnWidth > 15 && nextColumnWidth > 15) {
|
|
657
|
+
if (!this.scrollable) {
|
|
658
|
+
this.resizeColumnElement.style.width = newColumnWidth + 'px';
|
|
659
|
+
if(nextColumn) {
|
|
660
|
+
nextColumn.style.width = nextColumnWidth + 'px';
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
else {
|
|
664
|
+
this.resizeTableCells(newColumnWidth, nextColumnWidth);
|
|
707
665
|
}
|
|
708
666
|
}
|
|
709
667
|
}
|
|
710
|
-
else if(this.columnResizeMode === 'expand') {
|
|
668
|
+
else if (this.columnResizeMode === 'expand') {
|
|
711
669
|
this.$refs.table.style.width = this.$refs.table.offsetWidth + delta + 'px';
|
|
712
|
-
|
|
670
|
+
|
|
671
|
+
if (!this.scrollable)
|
|
672
|
+
this.resizeColumnElement.style.width = newColumnWidth + 'px';
|
|
673
|
+
else
|
|
674
|
+
this.resizeTableCells(newColumnWidth);
|
|
713
675
|
}
|
|
714
676
|
|
|
715
677
|
this.$emit('column-resize-end', {
|
|
@@ -724,6 +686,23 @@ export default {
|
|
|
724
686
|
|
|
725
687
|
this.unbindColumnResizeEvents();
|
|
726
688
|
},
|
|
689
|
+
resizeTableCells(newColumnWidth, nextColumnWidth) {
|
|
690
|
+
let colIndex = DomHandler.index(this.resizeColumnElement);
|
|
691
|
+
let children = this.$refs.table.children;
|
|
692
|
+
for (let child of children) {
|
|
693
|
+
for (let row of child.children) {
|
|
694
|
+
let resizeCell = row.children[colIndex];
|
|
695
|
+
resizeCell.style.flex = '0 0 ' + newColumnWidth + 'px';
|
|
696
|
+
|
|
697
|
+
if (this.columnResizeMode === 'fit') {
|
|
698
|
+
let nextCell = resizeCell.nextElementSibling;
|
|
699
|
+
if (nextCell) {
|
|
700
|
+
nextCell.style.flex = '0 0 ' + nextColumnWidth + 'px';
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
},
|
|
727
706
|
bindColumnResizeEvents() {
|
|
728
707
|
if (!this.documentColumnResizeListener) {
|
|
729
708
|
this.documentColumnResizeListener = document.addEventListener('mousemove', () => {
|
|
@@ -751,7 +730,7 @@ export default {
|
|
|
751
730
|
|
|
752
731
|
if (this.documentColumnResizeEndListener) {
|
|
753
732
|
document.removeEventListener('document', this.documentColumnResizeEndListener);
|
|
754
|
-
|
|
733
|
+
this.documentColumnResizeEndListener = null;
|
|
755
734
|
}
|
|
756
735
|
},
|
|
757
736
|
onColumnKeyDown(event, col) {
|
|
@@ -759,24 +738,10 @@ export default {
|
|
|
759
738
|
this.onColumnHeaderClick(event, col);
|
|
760
739
|
}
|
|
761
740
|
},
|
|
762
|
-
getAriaSort(column) {
|
|
763
|
-
if (column.sortable) {
|
|
764
|
-
const sortIcon = this.getSortableColumnIcon(column);
|
|
765
|
-
if (sortIcon[1]['pi-sort-amount-down'])
|
|
766
|
-
return 'descending';
|
|
767
|
-
else if (sortIcon[1]['pi-sort-amount-up-alt'])
|
|
768
|
-
return 'ascending';
|
|
769
|
-
else
|
|
770
|
-
return 'none';
|
|
771
|
-
}
|
|
772
|
-
else {
|
|
773
|
-
return null;
|
|
774
|
-
}
|
|
775
|
-
},
|
|
776
741
|
hasColumnFilter() {
|
|
777
742
|
if (this.columns) {
|
|
778
743
|
for (let col of this.columns) {
|
|
779
|
-
if (col
|
|
744
|
+
if (col.children && col.children.filter) {
|
|
780
745
|
return true;
|
|
781
746
|
}
|
|
782
747
|
}
|
|
@@ -789,6 +754,9 @@ export default {
|
|
|
789
754
|
},
|
|
790
755
|
hasGlobalFilter() {
|
|
791
756
|
return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
|
|
757
|
+
},
|
|
758
|
+
updateScrollWidth() {
|
|
759
|
+
this.$refs.table.style.width = this.$refs.table.scrollWidth + 'px';
|
|
792
760
|
}
|
|
793
761
|
},
|
|
794
762
|
computed: {
|
|
@@ -798,6 +766,13 @@ export default {
|
|
|
798
766
|
'p-treetable-auto-layout': this.autoLayout,
|
|
799
767
|
'p-treetable-resizable': this.resizableColumns,
|
|
800
768
|
'p-treetable-resizable-fit': this.resizableColumns && this.columnResizeMode === 'fit',
|
|
769
|
+
'p-treetable-gridlines': this.showGridlines,
|
|
770
|
+
'p-treetable-scrollable': this.scrollable,
|
|
771
|
+
'p-treetable-scrollable-vertical': this.scrollable && this.scrollDirection === 'vertical',
|
|
772
|
+
'p-treetable-scrollable-horizontal': this.scrollable && this.scrollDirection === 'horizontal',
|
|
773
|
+
'p-treetable-scrollable-both': this.scrollable && this.scrollDirection === 'both',
|
|
774
|
+
'p-treetable-flex-scrollable': (this.scrollable && this.scrollHeight === 'flex'),
|
|
775
|
+
'p-treetable-responsive-scroll': this.responsiveLayout === 'scroll',
|
|
801
776
|
}];
|
|
802
777
|
},
|
|
803
778
|
columns() {
|
|
@@ -894,6 +869,8 @@ export default {
|
|
|
894
869
|
'TTColumnSlot': TreeTableColumnSlot,
|
|
895
870
|
'TTRow': TreeTableRowLoader,
|
|
896
871
|
'TTPaginator': Paginator,
|
|
872
|
+
'TTHeaderCell': HeaderCell,
|
|
873
|
+
'TTFooterCell': FooterCell
|
|
897
874
|
}
|
|
898
875
|
}
|
|
899
876
|
</script>
|