primevue 2.7.0 → 2.9.1
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 +23 -1
- package/accordiontab/accordiontab.umd.js +23 -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 +4893 -0
- package/api/api.umd.js +4903 -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 -106
- package/{utils/filterutils.umd.js → api/filterservice.umd.js} +209 -108
- 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/api/toastseverity.common.js +174 -0
- package/api/toastseverity.umd.js +184 -0
- package/api/toastseverity.umd.min.js +1 -0
- package/autocomplete/autocomplete.common.js +50 -22
- package/autocomplete/autocomplete.umd.js +50 -22
- 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 +22 -0
- package/badgedirective/badgedirective.umd.js +22 -0
- package/badgedirective/badgedirective.umd.min.js +1 -1
- package/blockui/blockui.common.js +23 -1
- package/blockui/blockui.umd.js +23 -1
- package/blockui/blockui.umd.min.js +1 -1
- package/breadcrumb/breadcrumb.common.js +2 -2
- package/breadcrumb/breadcrumb.umd.js +2 -2
- package/breadcrumb/breadcrumbitem.common.js +1 -1
- package/breadcrumb/breadcrumbitem.umd.js +1 -1
- package/button/button.common.js +23 -1
- package/button/button.umd.js +23 -1
- package/button/button.umd.min.js +1 -1
- package/calendar/Calendar.vue +28 -8
- package/calendar/calendar.common.js +76 -39
- package/calendar/calendar.umd.js +76 -39
- 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.common.js +23 -1
- package/carousel/carousel.umd.js +23 -1
- package/carousel/carousel.umd.min.js +1 -1
- package/cascadeselect/cascadeselect.common.js +44 -15
- package/cascadeselect/cascadeselect.umd.js +44 -15
- package/cascadeselect/cascadeselect.umd.min.js +1 -1
- package/cascadeselect/cascadeselectsub.common.js +43 -14
- package/cascadeselect/cascadeselectsub.umd.js +43 -14
- package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
- package/chart/Chart.vue +16 -5
- package/chart/chart.common.js +18 -6
- package/chart/chart.umd.js +18 -6
- package/chart/chart.umd.min.js +1 -1
- package/checkbox/checkbox.common.js +26 -14
- package/checkbox/checkbox.umd.js +26 -14
- 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 +23 -1
- package/colorpicker/colorpicker.umd.js +23 -1
- package/colorpicker/colorpicker.umd.min.js +1 -1
- package/column/Column.d.ts +2 -0
- 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/config/PrimeVue.d.ts +24 -2
- package/config/PrimeVue.js +34 -4
- package/config/primevue.common.js +3589 -130
- package/config/primevue.umd.js +3589 -130
- package/config/primevue.umd.min.js +1 -1
- package/confirmdialog/confirmdialog.common.js +38 -14
- package/confirmdialog/confirmdialog.umd.js +38 -14
- package/confirmdialog/confirmdialog.umd.min.js +1 -1
- package/confirmpopup/confirmpopup.common.js +24 -2
- package/confirmpopup/confirmpopup.umd.js +24 -2
- package/confirmpopup/confirmpopup.umd.min.js +1 -1
- package/contextmenu/contextmenu.common.js +24 -2
- package/contextmenu/contextmenu.umd.js +24 -2
- package/contextmenu/contextmenu.umd.min.js +1 -1
- package/contextmenu/contextmenusub.common.js +23 -1
- package/contextmenu/contextmenusub.umd.js +23 -1
- package/contextmenu/contextmenusub.umd.min.js +1 -1
- package/contextmenu/demo.html +3 -4
- package/datatable/BodyCell.vue +129 -40
- package/datatable/ColumnFilter.vue +558 -0
- package/datatable/ColumnSlot.vue +36 -1
- package/datatable/DataTable.d.ts +36 -8
- package/datatable/DataTable.vue +605 -395
- package/datatable/FooterCell.vue +82 -0
- package/datatable/HeaderCell.vue +246 -0
- package/datatable/HeaderCheckbox.vue +7 -4
- package/datatable/RowCheckbox.vue +2 -2
- package/datatable/RowRadioButton.vue +1 -1
- package/datatable/TableBody.vue +79 -19
- package/datatable/TableFooter.vue +34 -18
- package/datatable/TableHeader.vue +79 -134
- package/datatable/bodycell.common.js +640 -71
- package/datatable/bodycell.umd.js +640 -71
- package/datatable/bodycell.umd.min.js +1 -1
- package/datatable/columnfilter.common.js +7616 -0
- package/datatable/columnfilter.umd.js +7626 -0
- package/datatable/columnfilter.umd.min.js +1 -0
- package/datatable/columnslot.common.js +36 -1
- package/datatable/columnslot.umd.js +36 -1
- package/datatable/columnslot.umd.min.js +1 -1
- package/datatable/datatable.common.js +3014 -1849
- package/datatable/datatable.umd.js +3014 -1849
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/demo.html +3 -3
- package/datatable/{scrollableview.common.js → footercell.common.js} +1880 -411
- package/datatable/{scrollableview.umd.js → footercell.umd.js} +1882 -413
- package/datatable/footercell.umd.min.js +1 -0
- package/datatable/headercell.common.js +8082 -0
- package/datatable/headercell.umd.js +8092 -0
- package/datatable/headercell.umd.min.js +1 -0
- package/datatable/headercheckbox.common.js +8 -5
- package/datatable/headercheckbox.umd.js +8 -5
- package/datatable/headercheckbox.umd.min.js +1 -1
- package/datatable/rowcheckbox.common.js +3 -3
- package/datatable/rowcheckbox.umd.js +3 -3
- package/datatable/rowcheckbox.umd.min.js +1 -1
- package/datatable/rowradiobutton.common.js +3 -3
- package/datatable/rowradiobutton.umd.js +3 -3
- package/datatable/rowradiobutton.umd.min.js +1 -1
- package/datatable/tablebody.common.js +1089 -458
- package/datatable/tablebody.umd.js +1089 -458
- package/datatable/tablebody.umd.min.js +1 -1
- package/datatable/tablefooter.common.js +3804 -105
- package/datatable/tablefooter.umd.js +3804 -105
- package/datatable/tablefooter.umd.min.js +1 -1
- package/datatable/tableheader.common.js +6658 -2144
- package/datatable/tableheader.umd.js +6658 -2144
- package/datatable/tableheader.umd.min.js +1 -1
- package/datatable/tableloadingbody.common.js +37 -2
- package/datatable/tableloadingbody.umd.js +37 -2
- package/datatable/tableloadingbody.umd.min.js +1 -1
- package/dataview/dataview.common.js +77 -47
- package/dataview/dataview.umd.js +77 -47
- 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.d.ts +1 -0
- package/dialog/Dialog.vue +7 -4
- package/dialog/dialog.common.js +33 -12
- package/dialog/dialog.umd.js +33 -12
- 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.common.js +2 -2
- package/dock/dock.umd.js +2 -2
- package/dock/docksub.common.js +1 -1
- package/dock/docksub.umd.js +1 -1
- package/dropdown/Dropdown.vue +6 -3
- package/dropdown/dropdown.common.js +48 -18
- package/dropdown/dropdown.umd.js +48 -18
- 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 +23 -1
- package/fieldset/fieldset.umd.js +23 -1
- package/fieldset/fieldset.umd.min.js +1 -1
- package/fileupload/fileupload.common.js +26 -4
- package/fileupload/fileupload.umd.js +26 -4
- package/fileupload/fileupload.umd.min.js +1 -1
- package/fullcalendar/fullcalendar.common.js +6 -10
- package/fullcalendar/fullcalendar.umd.js +6 -10
- package/fullcalendar/fullcalendar.umd.min.js +2 -2
- package/galleria/galleria.common.js +26 -8
- package/galleria/galleria.umd.js +26 -8
- package/galleria/galleria.umd.min.js +1 -1
- package/galleria/galleriacontent.common.js +25 -3
- package/galleria/galleriacontent.umd.js +25 -3
- package/galleria/galleriacontent.umd.min.js +1 -1
- package/galleria/galleriaitem.common.js +23 -1
- package/galleria/galleriaitem.umd.js +23 -1
- package/galleria/galleriaitem.umd.min.js +1 -1
- package/galleria/galleriathumbnails.common.js +23 -1
- package/galleria/galleriathumbnails.umd.js +23 -1
- package/galleria/galleriathumbnails.umd.min.js +1 -1
- package/imagepreview/imagepreview.common.js +23 -1
- package/imagepreview/imagepreview.umd.js +23 -1
- package/imagepreview/imagepreview.umd.min.js +1 -1
- package/inlinemessage/inlinemessage.common.js +1 -1
- package/inlinemessage/inlinemessage.umd.js +1 -1
- package/inplace/inplace.common.js +24 -2
- package/inplace/inplace.umd.js +24 -2
- package/inplace/inplace.umd.min.js +1 -1
- package/inputmask/inputmask.common.js +25 -7
- package/inputmask/inputmask.umd.js +25 -7
- package/inputmask/inputmask.umd.min.js +1 -1
- package/inputnumber/InputNumber.vue +3 -1
- package/inputnumber/inputnumber.common.js +33 -14
- package/inputnumber/inputnumber.umd.js +33 -14
- package/inputnumber/inputnumber.umd.min.js +1 -1
- package/inputswitch/inputswitch.common.js +1 -1
- package/inputswitch/inputswitch.umd.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.vue +1 -1
- package/knob/knob.common.js +3 -3
- package/knob/knob.umd.js +3 -3
- package/knob/knob.umd.min.js +1 -1
- package/listbox/listbox.common.js +43 -14
- package/listbox/listbox.umd.js +43 -14
- package/listbox/listbox.umd.min.js +1 -1
- package/megamenu/megamenu.common.js +23 -1
- package/megamenu/megamenu.umd.js +23 -1
- package/megamenu/megamenu.umd.min.js +1 -1
- package/menu/menu.common.js +24 -2
- package/menu/menu.umd.js +24 -2
- package/menu/menu.umd.min.js +1 -1
- package/menu/menuitem.common.js +23 -1
- package/menu/menuitem.umd.js +23 -1
- package/menu/menuitem.umd.min.js +1 -1
- package/menubar/menubar.common.js +24 -2
- package/menubar/menubar.umd.js +24 -2
- package/menubar/menubar.umd.min.js +1 -1
- package/menubar/menubarsub.common.js +23 -1
- package/menubar/menubarsub.umd.js +23 -1
- package/menubar/menubarsub.umd.min.js +1 -1
- package/message/message.common.js +23 -1
- package/message/message.umd.js +23 -1
- package/message/message.umd.min.js +1 -1
- package/multiselect/MultiSelect.vue +2 -2
- package/multiselect/multiselect.common.js +45 -16
- package/multiselect/multiselect.umd.js +45 -16
- package/multiselect/multiselect.umd.min.js +1 -1
- package/orderlist/OrderList.d.ts +1 -0
- package/orderlist/OrderList.vue +12 -1
- package/orderlist/orderlist.common.js +57 -17
- package/orderlist/orderlist.umd.js +57 -17
- package/orderlist/orderlist.umd.min.js +1 -1
- package/organizationchart/organizationchart.common.js +26 -8
- package/organizationchart/organizationchart.umd.js +26 -8
- package/organizationchart/organizationchart.umd.min.js +1 -1
- package/organizationchart/organizationchartnode.common.js +23 -1
- package/organizationchart/organizationchartnode.umd.js +23 -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 +1777 -0
- package/overlayeventbus/overlayeventbus.umd.js +1787 -0
- package/overlayeventbus/overlayeventbus.umd.min.js +1 -0
- package/overlaypanel/overlaypanel.common.js +23 -1
- package/overlaypanel/overlaypanel.umd.js +23 -1
- package/overlaypanel/overlaypanel.umd.min.js +1 -1
- package/package.json +1 -1
- package/paginator/currentpagereport.common.js +1 -1
- package/paginator/currentpagereport.umd.js +1 -1
- package/paginator/firstpagelink.common.js +23 -1
- package/paginator/firstpagelink.umd.js +23 -1
- package/paginator/firstpagelink.umd.min.js +1 -1
- package/paginator/jumptopagedropdown.common.js +52 -22
- package/paginator/jumptopagedropdown.umd.js +52 -22
- package/paginator/jumptopagedropdown.umd.min.js +1 -1
- package/paginator/jumptopageinput.common.js +38 -19
- package/paginator/jumptopageinput.umd.js +38 -19
- package/paginator/jumptopageinput.umd.min.js +1 -1
- package/paginator/lastpagelink.common.js +23 -1
- package/paginator/lastpagelink.umd.js +23 -1
- package/paginator/lastpagelink.umd.min.js +1 -1
- package/paginator/nextpagelink.common.js +23 -1
- package/paginator/nextpagelink.umd.js +23 -1
- package/paginator/nextpagelink.umd.min.js +1 -1
- package/paginator/pagelinks.common.js +23 -1
- package/paginator/pagelinks.umd.js +23 -1
- package/paginator/pagelinks.umd.min.js +1 -1
- package/paginator/paginator.common.js +76 -46
- package/paginator/paginator.umd.js +76 -46
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +23 -1
- package/paginator/prevpagelink.umd.js +23 -1
- package/paginator/prevpagelink.umd.min.js +1 -1
- package/paginator/rowsperpagedropdown.common.js +52 -22
- package/paginator/rowsperpagedropdown.umd.js +52 -22
- package/paginator/rowsperpagedropdown.umd.min.js +1 -1
- package/panel/panel.common.js +23 -1
- package/panel/panel.umd.js +23 -1
- package/panel/panel.umd.min.js +1 -1
- package/panelmenu/PanelMenuSub.vue +2 -2
- package/panelmenu/panelmenu.common.js +9 -9
- package/panelmenu/panelmenu.umd.js +9 -9
- package/panelmenu/panelmenu.umd.min.js +1 -1
- package/panelmenu/panelmenusub.common.js +4 -4
- package/panelmenu/panelmenusub.umd.js +4 -4
- package/panelmenu/panelmenusub.umd.min.js +1 -1
- package/password/password.common.js +26 -8
- package/password/password.umd.js +26 -8
- package/password/password.umd.min.js +1 -1
- package/picklist/PickList.d.ts +1 -0
- package/picklist/PickList.vue +10 -4
- package/picklist/picklist.common.js +55 -20
- package/picklist/picklist.umd.js +55 -20
- package/picklist/picklist.umd.min.js +1 -1
- package/progressbar/progressbar.common.js +1 -1
- package/progressbar/progressbar.umd.js +1 -1
- package/progressspinner/progressspinner.common.js +1 -1
- package/progressspinner/progressspinner.umd.js +1 -1
- package/radiobutton/radiobutton.common.js +26 -14
- package/radiobutton/radiobutton.umd.js +26 -14
- package/radiobutton/radiobutton.umd.min.js +1 -1
- package/rating/rating.common.js +1 -1
- package/rating/rating.umd.js +1 -1
- package/resources/themes/arya-blue/theme.css +299 -22
- package/resources/themes/arya-green/theme.css +299 -22
- package/resources/themes/arya-orange/theme.css +299 -22
- package/resources/themes/arya-purple/theme.css +299 -22
- package/resources/themes/bootstrap4-dark-blue/theme.css +287 -6
- package/resources/themes/bootstrap4-dark-purple/theme.css +287 -6
- package/resources/themes/bootstrap4-light-blue/theme.css +286 -5
- package/resources/themes/bootstrap4-light-purple/theme.css +286 -5
- package/resources/themes/fluent-light/theme.css +298 -21
- package/resources/themes/lara-dark-blue/theme.css +638 -405
- package/resources/themes/lara-dark-indigo/theme.css +638 -405
- package/resources/themes/lara-dark-purple/theme.css +638 -405
- package/resources/themes/lara-dark-teal/theme.css +638 -405
- package/resources/themes/lara-light-blue/theme.css +398 -165
- package/resources/themes/lara-light-indigo/theme.css +305 -72
- package/resources/themes/lara-light-purple/theme.css +305 -72
- package/resources/themes/lara-light-teal/theme.css +305 -72
- package/resources/themes/luna-amber/theme.css +298 -21
- package/resources/themes/luna-blue/theme.css +298 -21
- package/resources/themes/luna-green/theme.css +298 -21
- package/resources/themes/luna-pink/theme.css +298 -21
- package/resources/themes/md-dark-deeppurple/theme.css +372 -12
- package/resources/themes/md-dark-indigo/theme.css +372 -12
- package/resources/themes/md-light-deeppurple/theme.css +369 -9
- package/resources/themes/md-light-indigo/theme.css +369 -9
- package/resources/themes/mdc-dark-deeppurple/theme.css +372 -12
- package/resources/themes/mdc-dark-indigo/theme.css +372 -12
- package/resources/themes/mdc-light-deeppurple/theme.css +369 -9
- package/resources/themes/mdc-light-indigo/theme.css +369 -9
- package/resources/themes/nova/theme.css +298 -21
- package/resources/themes/nova-accent/theme.css +298 -21
- package/resources/themes/nova-alt/theme.css +298 -21
- package/resources/themes/nova-vue/theme.css +298 -21
- package/resources/themes/rhea/theme.css +298 -21
- package/resources/themes/saga-blue/theme.css +282 -5
- package/resources/themes/saga-green/theme.css +282 -5
- package/resources/themes/saga-orange/theme.css +282 -5
- package/resources/themes/saga-purple/theme.css +282 -5
- package/resources/themes/tailwind-light/theme.css +301 -24
- package/resources/themes/vela-blue/theme.css +299 -22
- package/resources/themes/vela-green/theme.css +299 -22
- package/resources/themes/vela-orange/theme.css +299 -22
- package/resources/themes/vela-purple/theme.css +299 -22
- package/ripple/ripple.common.js +22 -0
- package/ripple/ripple.umd.js +22 -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 +23 -1
- package/scrollpanel/scrollpanel.umd.js +23 -1
- package/scrollpanel/scrollpanel.umd.min.js +1 -1
- package/scrolltop/scrolltop.common.js +23 -1
- package/scrolltop/scrolltop.umd.js +23 -1
- package/scrolltop/scrolltop.umd.min.js +1 -1
- package/selectbutton/selectbutton.common.js +43 -14
- package/selectbutton/selectbutton.umd.js +43 -14
- package/selectbutton/selectbutton.umd.min.js +1 -1
- package/sidebar/Sidebar.vue +2 -0
- package/sidebar/sidebar.common.js +25 -3
- package/sidebar/sidebar.umd.js +25 -3
- 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 +36 -9
- package/slider/slider.umd.js +36 -9
- package/slider/slider.umd.min.js +1 -1
- package/speeddial/speeddial.common.js +26 -8
- package/speeddial/speeddial.umd.js +26 -8
- package/speeddial/speeddial.umd.min.js +1 -1
- package/splitbutton/SplitButton.vue +7 -3
- package/splitbutton/splitbutton.common.js +66 -44
- package/splitbutton/splitbutton.umd.js +66 -44
- package/splitbutton/splitbutton.umd.min.js +1 -1
- package/splitter/splitter.common.js +22 -0
- package/splitter/splitter.umd.js +22 -0
- package/splitter/splitter.umd.min.js +1 -1
- package/steps/Steps.vue +1 -1
- package/steps/steps.common.js +3 -3
- package/steps/steps.umd.js +3 -3
- package/steps/steps.umd.min.js +1 -1
- package/styleclass/styleclass.common.js +22 -0
- package/styleclass/styleclass.umd.js +22 -0
- package/styleclass/styleclass.umd.min.js +1 -1
- package/tabmenu/tabmenu.common.js +23 -1
- package/tabmenu/tabmenu.umd.js +23 -1
- 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.vue +1 -1
- package/tabview/tabview.common.js +45 -16
- package/tabview/tabview.umd.js +45 -16
- package/tabview/tabview.umd.min.js +1 -1
- package/tag/Tag.vue +1 -1
- package/tag/tag.common.js +3 -3
- package/tag/tag.umd.js +3 -3
- package/tag/tag.umd.min.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/demo.html +3 -4
- package/tieredmenu/tieredmenu.common.js +24 -2
- package/tieredmenu/tieredmenu.umd.js +24 -2
- package/tieredmenu/tieredmenu.umd.min.js +1 -1
- package/tieredmenu/tieredmenusub.common.js +23 -1
- package/tieredmenu/tieredmenusub.umd.js +23 -1
- package/tieredmenu/tieredmenusub.umd.min.js +1 -1
- package/timeline/timeline.common.js +26 -14
- package/timeline/timeline.umd.js +26 -14
- package/timeline/timeline.umd.min.js +1 -1
- package/toast/toast.common.js +24 -2
- package/toast/toast.umd.js +24 -2
- package/toast/toast.umd.min.js +1 -1
- package/toast/toastmessage.common.js +23 -1
- package/toast/toastmessage.umd.js +23 -1
- package/toast/toastmessage.umd.min.js +1 -1
- package/togglebutton/togglebutton.common.js +23 -1
- package/togglebutton/togglebutton.umd.js +23 -1
- package/togglebutton/togglebutton.umd.min.js +1 -1
- package/toolbar/toolbar.common.js +1 -1
- package/toolbar/toolbar.umd.js +1 -1
- package/tooltip/Tooltip.js +1 -1
- package/tooltip/tooltip.common.js +29 -13
- package/tooltip/tooltip.umd.js +29 -13
- package/tooltip/tooltip.umd.min.js +1 -1
- package/tree/Tree.vue +1 -0
- package/tree/tree.common.js +53 -26
- package/tree/tree.umd.js +53 -26
- package/tree/tree.umd.min.js +1 -1
- package/tree/treenode.common.js +25 -7
- package/tree/treenode.umd.js +25 -7
- package/tree/treenode.umd.min.js +1 -1
- package/treetable/FooterCell.vue +81 -0
- package/treetable/HeaderCell.vue +183 -0
- package/treetable/TreeTable.d.ts +1 -0
- package/treetable/TreeTable.vue +65 -106
- package/treetable/TreeTableRow.vue +7 -4
- package/treetable/footercell.common.js +5304 -0
- package/treetable/footercell.umd.js +5314 -0
- package/treetable/footercell.umd.min.js +1 -0
- package/treetable/headercell.common.js +5533 -0
- package/treetable/headercell.umd.js +5543 -0
- package/treetable/headercell.umd.min.js +1 -0
- package/treetable/treetable.common.js +944 -507
- package/treetable/treetable.umd.js +944 -507
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablerow.common.js +53 -22
- package/treetable/treetablerow.umd.js +53 -22
- package/treetable/treetablerow.umd.min.js +1 -1
- package/treetable/treetablerowloader.common.js +56 -26
- package/treetable/treetablerowloader.umd.js +56 -26
- 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 +18 -1
- package/utils/ObjectUtils.js +15 -2
- package/utils/Utils.d.ts +73 -0
- package/utils/Utils.js +47 -0
- package/utils/connectedoverlayscrollhandler.common.js +22 -0
- package/utils/connectedoverlayscrollhandler.umd.js +22 -0
- package/utils/connectedoverlayscrollhandler.umd.min.js +1 -1
- package/utils/demo.html +3 -3
- package/utils/domhandler.common.js +22 -0
- package/utils/domhandler.umd.js +22 -0
- package/utils/domhandler.umd.min.js +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/index.js +2 -0
- package/utils/objectutils.common.js +25 -13
- package/utils/objectutils.umd.js +25 -13
- package/utils/objectutils.umd.min.js +1 -1
- package/utils/utils.common.js +5486 -0
- package/utils/utils.umd.js +5496 -0
- package/utils/utils.umd.min.js +1 -0
- package/vetur-attributes.json +28 -0
- package/vetur-tags.json +11 -4
- package/web-types.json +84 -1
- package/datatable/ScrollableView.vue +0 -223
- package/datatable/scrollableview.umd.min.js +0 -1
- 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-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-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-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-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-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-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-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/utils/FilterUtils.js +0 -176
- package/utils/filterutils.umd.min.js +0 -1
|
@@ -1,53 +1,58 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<thead class="p-datatable-thead">
|
|
2
|
+
<thead class="p-datatable-thead" role="rowgroup">
|
|
3
3
|
<template v-if="!columnGroup">
|
|
4
|
-
<tr>
|
|
4
|
+
<tr role="row">
|
|
5
5
|
<template v-for="(col,i) of columns">
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<span v-if="isMultiSorted(col)" class="p-sortable-column-badge">{{getMultiSortMetaIndex(col) + 1}}</span>
|
|
16
|
-
<DTHeaderCheckbox :checked="allRowsSelected" @change="onHeaderCheckboxChange($event)" :disabled="empty" v-if="col.selectionMode ==='multiple' && !hasColumnFilter()" />
|
|
17
|
-
</th>
|
|
6
|
+
<DTHeaderCell v-if="!columnProp(col, 'hidden') && (rowGroupMode !== 'subheader' || (groupRowsBy !== columnProp(col, 'field')))" :column="col" :key="columnProp(col, 'columnKey')+i||columnProp(col, 'field')+i||i"
|
|
7
|
+
@column-click="$emit('column-click', $event)" @column-mousedown="$emit('column-mousedown', $event)"
|
|
8
|
+
@column-dragstart="$emit('column-dragstart', $event)" @column-dragover="$emit('column-dragover', $event)" @column-dragleave="$emit('column-dragleave', $event)" @column-drop="$emit('column-drop', $event)"
|
|
9
|
+
:groupRowsBy="groupRowsBy" :groupRowSortField="groupRowSortField" :resizableColumns="resizableColumns" @column-resizestart="$emit('column-resizestart', $event)"
|
|
10
|
+
:sortMode="sortMode" :sortField="sortField" :sortOrder="sortOrder" :multiSortMeta="multiSortMeta"
|
|
11
|
+
:allRowsSelected="allRowsSelected" :empty="empty" @checkbox-change="$emit('checkbox-change', $event)"
|
|
12
|
+
:filters="filters" :filterDisplay="filterDisplay" :filtersStore="filtersStore" @filter-change="$emit('filter-change', $event)" @filter-apply="$emit('filter-apply')"
|
|
13
|
+
@operator-change="$emit('operator-change',$event)" @matchmode-change="$emit('matchmode-change', $event)" @constraint-add="$emit('constraint-add', $event)"
|
|
14
|
+
@constraint-remove="$emit('constraint-remove', $event)" @apply-click="$emit('apply-click',$event)"/>
|
|
18
15
|
</template>
|
|
19
16
|
</tr>
|
|
20
|
-
<tr v-if="
|
|
17
|
+
<tr v-if="filterDisplay === 'row'" role="row">
|
|
21
18
|
<template v-for="(col,i) of columns">
|
|
22
|
-
<th v-if="rowGroupMode !== 'subheader' || (groupRowsBy !== col
|
|
23
|
-
:
|
|
24
|
-
<
|
|
25
|
-
|
|
19
|
+
<th :style="getFilterColumnHeaderStyle(col)" :class="getFilterColumnHeaderClass(col)" v-if="!columnProp(col, 'hidden') && (rowGroupMode !== 'subheader' || (groupRowsBy !== columnProp(col, 'field')))" :key="columnProp(col, 'columnKey')||columnProp(col, 'field')||i">
|
|
20
|
+
<DTHeaderCheckbox :checked="allRowsSelected" @change="$emit('checkbox-change', $event)" :disabled="empty" v-if="columnProp(col, 'selectionMode') ==='multiple'" />
|
|
21
|
+
<DTColumnFilter v-if="col.$scopedSlots && col.$scopedSlots.filter" :field="columnProp(col,'filterField')||columnProp(col,'field')" :type="columnProp(col,'dataType')" display="row"
|
|
22
|
+
:showMenu="columnProp(col,'showFilterMenu')" :filterElement="col.$scopedSlots && col.$scopedSlots.filter" :templates="col.$scopedSlots"
|
|
23
|
+
:filterHeaderTemplate="col.$scopedSlots && col.$scopedSlots.filterheader" :filterFooterTemplate="col.$scopedSlots && col.$scopedSlots.filterfooter"
|
|
24
|
+
:filterClearTemplate="col.$scopedSlots && col.$scopedSlots.filterclear" :filterApplyTemplate="col.$scopedSlots && col.$scopedSlots.filterapply"
|
|
25
|
+
:filters="filters" :filtersStore="filtersStore" @filter-change="$emit('filter-change', $event)" @filter-apply="$emit('filter-apply')" :filterMenuStyle="columnProp(col,'filterMenuStyle')" :filterMenuClass="columnProp(col,'filterMenuClass')"
|
|
26
|
+
:showOperator="columnProp(col,'showFilterOperator')" :showClearButton="columnProp(col,'showClearButton')" :showApplyButton="columnProp(col,'showApplyButton')"
|
|
27
|
+
:showMatchModes="columnProp(col,'showFilterMatchModes')" :showAddButton="columnProp(col,'showAddButton')" :matchModeOptions="columnProp(col,'filterMatchModeOptions')" :maxConstraints="columnProp(col,'maxConstraints')"
|
|
28
|
+
@operator-change="$emit('operator-change',$event)" @matchmode-change="$emit('matchmode-change', $event)"
|
|
29
|
+
@constraint-add="$emit('constraint-add', $event)" @constraint-remove="$emit('constraint-remove', $event)" @apply-click="$emit('apply-click',$event)"/>
|
|
26
30
|
</th>
|
|
27
31
|
</template>
|
|
28
32
|
</tr>
|
|
29
33
|
</template>
|
|
30
34
|
<template v-else>
|
|
31
|
-
<tr v-for="(row,i) of columnGroup.
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</th>
|
|
35
|
+
<tr v-for="(row,i) of columnGroup.$scopedSlots.default()" :key="ariaId + i" role="row">
|
|
36
|
+
<template v-for="(col,j) of getHeaderColumns(row)">
|
|
37
|
+
<DTHeaderCell v-if="!columnProp(col, 'hidden') && (rowGroupMode !== 'subheader' || (groupRowsBy !== columnProp(col, 'field'))) && (typeof col.children !== 'string')" :column="col.child" :key="columnProp(col, 'columnKey')+j||columnProp(col, 'field')+j||j"
|
|
38
|
+
@column-click="$emit('column-click', $event)" @column-mousedown="$emit('column-mousedown', $event)"
|
|
39
|
+
:groupRowsBy="groupRowsBy" :groupRowSortField="groupRowSortField" :sortMode="sortMode" :sortField="sortField" :sortOrder="sortOrder" :multiSortMeta="multiSortMeta"
|
|
40
|
+
:allRowsSelected="allRowsSelected" :empty="empty" @checkbox-change="$emit('checkbox-change', $event)"
|
|
41
|
+
:filters="filters" :filterDisplay="filterDisplay" :filtersStore="filtersStore" @filter-change="$emit('filter-change', $event)" @filter-apply="$emit('filter-apply')"
|
|
42
|
+
@operator-change="$emit('operator-change',$event)" @matchmode-change="$emit('matchmode-change', $event)" @constraint-add="$emit('constraint-add', $event)"
|
|
43
|
+
@constraint-remove="$emit('constraint-remove', $event)" @apply-click="$emit('apply-click',$event)"/>
|
|
44
|
+
</template>
|
|
42
45
|
</tr>
|
|
43
46
|
</template>
|
|
44
47
|
</thead>
|
|
45
48
|
</template>
|
|
46
49
|
|
|
47
50
|
<script>
|
|
48
|
-
import
|
|
49
|
-
import ColumnSlot from './ColumnSlot.vue';
|
|
51
|
+
import HeaderCell from './HeaderCell.vue';
|
|
50
52
|
import HeaderCheckbox from './HeaderCheckbox.vue';
|
|
53
|
+
import ColumnFilter from './ColumnFilter.vue';
|
|
54
|
+
import ObjectUtils from '../utils/ObjectUtils';
|
|
55
|
+
import UniqueComponentId from '../utils/UniqueComponentId';
|
|
51
56
|
|
|
52
57
|
export default {
|
|
53
58
|
props: {
|
|
@@ -83,6 +88,10 @@ export default {
|
|
|
83
88
|
type: String,
|
|
84
89
|
default: 'single'
|
|
85
90
|
},
|
|
91
|
+
groupRowSortField: {
|
|
92
|
+
type: [String, Function],
|
|
93
|
+
default: null
|
|
94
|
+
},
|
|
86
95
|
sortField: {
|
|
87
96
|
type: [String, Function],
|
|
88
97
|
default: null
|
|
@@ -94,120 +103,56 @@ export default {
|
|
|
94
103
|
multiSortMeta: {
|
|
95
104
|
type: Array,
|
|
96
105
|
default: null
|
|
106
|
+
},
|
|
107
|
+
filterDisplay: {
|
|
108
|
+
type: String,
|
|
109
|
+
default: null
|
|
110
|
+
},
|
|
111
|
+
filters: {
|
|
112
|
+
type: Object,
|
|
113
|
+
default: null
|
|
114
|
+
},
|
|
115
|
+
filtersStore: {
|
|
116
|
+
type: Object,
|
|
117
|
+
default: null
|
|
97
118
|
}
|
|
98
119
|
},
|
|
99
120
|
methods: {
|
|
100
|
-
|
|
101
|
-
return
|
|
102
|
-
},
|
|
103
|
-
isColumnSorted(column) {
|
|
104
|
-
return this.sortMode === 'single' ? (this.sortField && (this.sortField === column.field || this.sortField === column.sortField)) : this.isMultiSorted(column);
|
|
105
|
-
},
|
|
106
|
-
getColumnHeaderClass(column) {
|
|
107
|
-
return [column.headerClass,
|
|
108
|
-
{'p-sortable-column': column.sortable},
|
|
109
|
-
{'p-resizable-column': this.resizableColumns},
|
|
110
|
-
{'p-highlight': this.isColumnSorted(column)}
|
|
111
|
-
];
|
|
121
|
+
columnProp(col, prop) {
|
|
122
|
+
return ObjectUtils.getVNodeProp(col, prop);
|
|
112
123
|
},
|
|
113
124
|
getFilterColumnHeaderClass(column) {
|
|
114
|
-
return ['p-filter-column', column.
|
|
125
|
+
return ['p-filter-column', this.columnProp(column, 'filterHeaderClass'), this.columnProp(column, 'className'), {
|
|
126
|
+
'p-frozen-column': this.columnProp(column, 'frozen')
|
|
127
|
+
}];
|
|
115
128
|
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
sorted = this.sortField && (this.sortField === column.field || this.sortField === column.sortField);
|
|
122
|
-
sortOrder = sorted ? this.sortOrder: 0;
|
|
123
|
-
}
|
|
124
|
-
else if (this.sortMode === 'multiple') {
|
|
125
|
-
let metaIndex = this.getMultiSortMetaIndex(column);
|
|
126
|
-
if (metaIndex > -1) {
|
|
127
|
-
sorted = true;
|
|
128
|
-
sortOrder = this.multiSortMeta[metaIndex].order;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
129
|
+
getFilterColumnHeaderStyle(column) {
|
|
130
|
+
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'styles')];
|
|
131
|
+
},
|
|
132
|
+
getHeaderColumns(row){
|
|
133
|
+
let cols = [];
|
|
131
134
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
getMultiSortMetaIndex(column) {
|
|
141
|
-
let index = -1;
|
|
135
|
+
if (row.child && row.child.$scopedSlots.default) {
|
|
136
|
+
row.child.$scopedSlots.default().forEach(child => {
|
|
137
|
+
if (child.child && child.child.children && child.child.children instanceof Array)
|
|
138
|
+
cols = [...cols, ...child.child.children];
|
|
139
|
+
else if (child.componentOptions && child.componentOptions.tag === 'Column')
|
|
140
|
+
cols.push(child);
|
|
141
|
+
});
|
|
142
142
|
|
|
143
|
-
|
|
144
|
-
let meta = this.multiSortMeta[i];
|
|
145
|
-
if (meta.field === column.field || meta.field === column.sortField) {
|
|
146
|
-
index = i;
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
143
|
+
return cols;
|
|
149
144
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
onColumnHeaderMouseDown(event, col) {
|
|
157
|
-
this.$emit('column-mousedown', {originalEvent: event, column: col});
|
|
158
|
-
},
|
|
159
|
-
onColumnHeaderDragStart(event) {
|
|
160
|
-
this.$emit('column-dragstart', event);
|
|
161
|
-
},
|
|
162
|
-
onColumnHeaderDragOver(event) {
|
|
163
|
-
this.$emit('column-dragover', event);
|
|
164
|
-
},
|
|
165
|
-
onColumnHeaderDragLeave(event) {
|
|
166
|
-
this.$emit('column-dragleave', event);
|
|
167
|
-
},
|
|
168
|
-
onColumnHeaderDrop(event) {
|
|
169
|
-
this.$emit('column-drop', event);
|
|
170
|
-
},
|
|
171
|
-
onColumnResizeStart(event) {
|
|
172
|
-
this.$emit('column-resizestart', event);
|
|
173
|
-
},
|
|
174
|
-
onHeaderCheckboxChange(event) {
|
|
175
|
-
this.$emit('checkbox-change', event);
|
|
176
|
-
},
|
|
177
|
-
onColumnKeyDown(event, col) {
|
|
178
|
-
if (event.which === 13 && event.currentTarget.nodeName === 'TH' && DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
|
179
|
-
this.$emit('column-click', {originalEvent: event, column: col});
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
getAriaSort(column) {
|
|
183
|
-
if (column.sortable) {
|
|
184
|
-
const sortIcon = this.getSortableColumnIcon(column);
|
|
185
|
-
if (sortIcon[1]['pi-sort-amount-down'])
|
|
186
|
-
return 'descending';
|
|
187
|
-
else if (sortIcon[1]['pi-sort-amount-up-alt'])
|
|
188
|
-
return 'ascending';
|
|
189
|
-
else
|
|
190
|
-
return 'none';
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
return null;
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
hasColumnFilter() {
|
|
197
|
-
if (this.columns) {
|
|
198
|
-
for (let col of this.columns) {
|
|
199
|
-
if (col.$scopedSlots.filter) {
|
|
200
|
-
return true;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
return false;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
computed: {
|
|
148
|
+
ariaId() {
|
|
149
|
+
return UniqueComponentId();
|
|
206
150
|
}
|
|
207
151
|
},
|
|
208
152
|
components: {
|
|
209
|
-
'
|
|
210
|
-
'DTHeaderCheckbox': HeaderCheckbox
|
|
153
|
+
'DTHeaderCell': HeaderCell,
|
|
154
|
+
'DTHeaderCheckbox': HeaderCheckbox,
|
|
155
|
+
'DTColumnFilter': ColumnFilter
|
|
211
156
|
}
|
|
212
157
|
}
|
|
213
158
|
</script>
|