primevuelab 4.0.0-beta.4
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/LICENSE.md +21 -0
- package/README.md +90 -0
- package/accordion/Accordion.d.ts +252 -0
- package/accordion/Accordion.vue +170 -0
- package/accordion/BaseAccordion.vue +51 -0
- package/accordion/accordion.mjs +268 -0
- package/accordion/accordion.mjs.map +1 -0
- package/accordion/package.json +11 -0
- package/accordion/style/AccordionStyle.d.ts +19 -0
- package/accordion/style/accordionstyle.mjs +17 -0
- package/accordion/style/accordionstyle.mjs.map +1 -0
- package/accordion/style/package.json +6 -0
- package/accordioncontent/AccordionContent.d.ts +149 -0
- package/accordioncontent/AccordionContent.vue +51 -0
- package/accordioncontent/BaseAccordionContent.vue +26 -0
- package/accordioncontent/accordioncontent.mjs +91 -0
- package/accordioncontent/accordioncontent.mjs.map +1 -0
- package/accordioncontent/package.json +11 -0
- package/accordioncontent/style/AccordionContentStyle.d.ts +23 -0
- package/accordioncontent/style/accordioncontentstyle.mjs +13 -0
- package/accordioncontent/style/accordioncontentstyle.mjs.map +1 -0
- package/accordioncontent/style/package.json +6 -0
- package/accordionheader/AccordionHeader.d.ts +149 -0
- package/accordionheader/AccordionHeader.vue +171 -0
- package/accordionheader/BaseAccordionHeader.vue +26 -0
- package/accordionheader/accordionheader.mjs +201 -0
- package/accordionheader/accordionheader.mjs.map +1 -0
- package/accordionheader/package.json +11 -0
- package/accordionheader/style/AccordionHeaderStyle.d.ts +23 -0
- package/accordionheader/style/accordionheaderstyle.mjs +13 -0
- package/accordionheader/style/accordionheaderstyle.mjs.map +1 -0
- package/accordionheader/style/package.json +6 -0
- package/accordionpanel/AccordionPanel.d.ts +147 -0
- package/accordionpanel/AccordionPanel.vue +40 -0
- package/accordionpanel/BaseAccordionPanel.vue +34 -0
- package/accordionpanel/accordionpanel.mjs +84 -0
- package/accordionpanel/accordionpanel.mjs.map +1 -0
- package/accordionpanel/package.json +11 -0
- package/accordionpanel/style/AccordionPanelStyle.d.ts +19 -0
- package/accordionpanel/style/accordionpanelstyle.mjs +19 -0
- package/accordionpanel/style/accordionpanelstyle.mjs.map +1 -0
- package/accordionpanel/style/package.json +6 -0
- package/accordiontab/AccordionTab.d.ts +236 -0
- package/accordiontab/AccordionTab.vue +16 -0
- package/accordiontab/BaseAccordionTab.vue +27 -0
- package/accordiontab/accordiontab.mjs +44 -0
- package/accordiontab/accordiontab.mjs.map +1 -0
- package/accordiontab/package.json +11 -0
- package/accordiontab/style/AccordionTabStyle.d.ts +15 -0
- package/accordiontab/style/accordiontabstyle.mjs +8 -0
- package/accordiontab/style/accordiontabstyle.mjs.map +1 -0
- package/accordiontab/style/package.json +6 -0
- package/animateonscroll/AnimateOnScroll.d.ts +87 -0
- package/animateonscroll/animateonscroll.mjs +130 -0
- package/animateonscroll/animateonscroll.mjs.map +1 -0
- package/animateonscroll/package.json +5 -0
- package/animateonscroll/style/AnimateOnScrollStyle.d.ts +14 -0
- package/animateonscroll/style/animateonscrollstyle.mjs +8 -0
- package/animateonscroll/style/animateonscrollstyle.mjs.map +1 -0
- package/animateonscroll/style/package.json +6 -0
- package/autocomplete/AutoComplete.d.ts +833 -0
- package/autocomplete/AutoComplete.vue +985 -0
- package/autocomplete/BaseAutoComplete.vue +191 -0
- package/autocomplete/autocomplete.mjs +1327 -0
- package/autocomplete/autocomplete.mjs.map +1 -0
- package/autocomplete/package.json +11 -0
- package/autocomplete/style/AutoCompleteStyle.d.ts +71 -0
- package/autocomplete/style/autocompletestyle.mjs +70 -0
- package/autocomplete/style/autocompletestyle.mjs.map +1 -0
- package/autocomplete/style/package.json +6 -0
- package/avatar/Avatar.d.ts +178 -0
- package/avatar/Avatar.vue +26 -0
- package/avatar/BaseAvatar.vue +46 -0
- package/avatar/avatar.mjs +90 -0
- package/avatar/avatar.mjs.map +1 -0
- package/avatar/package.json +11 -0
- package/avatar/style/AvatarStyle.d.ts +27 -0
- package/avatar/style/avatarstyle.mjs +27 -0
- package/avatar/style/avatarstyle.mjs.map +1 -0
- package/avatar/style/package.json +6 -0
- package/avatargroup/AvatarGroup.d.ts +128 -0
- package/avatargroup/AvatarGroup.vue +15 -0
- package/avatargroup/BaseAvatarGroup.vue +16 -0
- package/avatargroup/avatargroup.mjs +32 -0
- package/avatargroup/avatargroup.mjs.map +1 -0
- package/avatargroup/package.json +11 -0
- package/avatargroup/style/AvatarGroupStyle.d.ts +16 -0
- package/avatargroup/style/avatargroupstyle.mjs +12 -0
- package/avatargroup/style/avatargroupstyle.mjs.map +1 -0
- package/avatargroup/style/package.json +6 -0
- package/badge/Badge.d.ts +136 -0
- package/badge/Badge.vue +15 -0
- package/badge/BaseBadge.vue +30 -0
- package/badge/badge.mjs +48 -0
- package/badge/badge.mjs.map +1 -0
- package/badge/package.json +11 -0
- package/badge/style/BadgeStyle.d.ts +19 -0
- package/badge/style/badgestyle.mjs +34 -0
- package/badge/style/badgestyle.mjs.map +1 -0
- package/badge/style/package.json +6 -0
- package/badgedirective/BadgeDirective.d.ts +170 -0
- package/badgedirective/badgedirective.mjs +68 -0
- package/badgedirective/badgedirective.mjs.map +1 -0
- package/badgedirective/package.json +5 -0
- package/badgedirective/style/BadgeDirectiveStyle.d.ts +16 -0
- package/badgedirective/style/badgedirectivestyle.mjs +12 -0
- package/badgedirective/style/badgedirectivestyle.mjs.map +1 -0
- package/badgedirective/style/package.json +6 -0
- package/blockui/BaseBlockUI.vue +34 -0
- package/blockui/BlockUI.d.ts +176 -0
- package/blockui/BlockUI.vue +103 -0
- package/blockui/blockui.mjs +133 -0
- package/blockui/blockui.mjs.map +1 -0
- package/blockui/package.json +11 -0
- package/blockui/style/BlockUIStyle.d.ts +19 -0
- package/blockui/style/blockuistyle.mjs +17 -0
- package/blockui/style/blockuistyle.mjs.map +1 -0
- package/blockui/style/package.json +6 -0
- package/breadcrumb/BaseBreadcrumb.vue +26 -0
- package/breadcrumb/Breadcrumb.d.ts +241 -0
- package/breadcrumb/Breadcrumb.vue +31 -0
- package/breadcrumb/BreadcrumbItem.vue +87 -0
- package/breadcrumb/breadcrumb.mjs +176 -0
- package/breadcrumb/breadcrumb.mjs.map +1 -0
- package/breadcrumb/package.json +11 -0
- package/breadcrumb/style/BreadcrumbStyle.d.ts +47 -0
- package/breadcrumb/style/breadcrumbstyle.mjs +29 -0
- package/breadcrumb/style/breadcrumbstyle.mjs.map +1 -0
- package/breadcrumb/style/package.json +6 -0
- package/button/BaseButton.vue +86 -0
- package/button/Button.d.ts +259 -0
- package/button/Button.vue +57 -0
- package/button/button.mjs +172 -0
- package/button/button.mjs.map +1 -0
- package/button/package.json +11 -0
- package/button/style/ButtonStyle.d.ts +31 -0
- package/button/style/buttonstyle.mjs +36 -0
- package/button/style/buttonstyle.mjs.map +1 -0
- package/button/style/package.json +6 -0
- package/buttongroup/BaseButtonGroup.vue +16 -0
- package/buttongroup/ButtonGroup.d.ts +120 -0
- package/buttongroup/ButtonGroup.vue +15 -0
- package/buttongroup/buttongroup.mjs +33 -0
- package/buttongroup/buttongroup.mjs.map +1 -0
- package/buttongroup/package.json +11 -0
- package/buttongroup/style/ButtonGroupStyle.d.ts +19 -0
- package/buttongroup/style/buttongroupstyle.mjs +17 -0
- package/buttongroup/style/buttongroupstyle.mjs.map +1 -0
- package/buttongroup/style/package.json +6 -0
- package/calendar/Calendar.d.ts +127 -0
- package/calendar/Calendar.vue +11 -0
- package/calendar/calendar.mjs +12 -0
- package/calendar/calendar.mjs.map +1 -0
- package/calendar/package.json +11 -0
- package/calendar/style/CalendarStyle.d.ts +14 -0
- package/calendar/style/calendarstyle.mjs +8 -0
- package/calendar/style/calendarstyle.mjs.map +1 -0
- package/calendar/style/package.json +6 -0
- package/card/BaseCard.vue +16 -0
- package/card/Card.d.ts +168 -0
- package/card/Card.vue +33 -0
- package/card/card.mjs +51 -0
- package/card/card.mjs.map +1 -0
- package/card/package.json +11 -0
- package/card/style/CardStyle.d.ts +47 -0
- package/card/style/cardstyle.mjs +24 -0
- package/card/style/cardstyle.mjs.map +1 -0
- package/card/style/package.json +6 -0
- package/carousel/BaseCarousel.vue +71 -0
- package/carousel/Carousel.d.ts +403 -0
- package/carousel/Carousel.vue +653 -0
- package/carousel/carousel.mjs +730 -0
- package/carousel/carousel.mjs.map +1 -0
- package/carousel/package.json +11 -0
- package/carousel/style/CarouselStyle.d.ts +71 -0
- package/carousel/style/carouselstyle.mjs +70 -0
- package/carousel/style/carouselstyle.mjs.map +1 -0
- package/carousel/style/package.json +6 -0
- package/cascadeselect/BaseCascadeSelect.vue +144 -0
- package/cascadeselect/CascadeSelect.d.ts +567 -0
- package/cascadeselect/CascadeSelect.vue +784 -0
- package/cascadeselect/CascadeSelectSub.vue +176 -0
- package/cascadeselect/cascadeselect.mjs +1250 -0
- package/cascadeselect/cascadeselect.mjs.map +1 -0
- package/cascadeselect/package.json +11 -0
- package/cascadeselect/style/CascadeSelectStyle.d.ts +67 -0
- package/cascadeselect/style/cascadeselectstyle.mjs +66 -0
- package/cascadeselect/style/cascadeselectstyle.mjs.map +1 -0
- package/cascadeselect/style/package.json +6 -0
- package/chart/BaseChart.vue +34 -0
- package/chart/Chart.d.ts +211 -0
- package/chart/Chart.vue +97 -0
- package/chart/chart.mjs +153 -0
- package/chart/chart.mjs.map +1 -0
- package/chart/package.json +11 -0
- package/chart/style/ChartStyle.d.ts +19 -0
- package/chart/style/chartstyle.mjs +18 -0
- package/chart/style/chartstyle.mjs.map +1 -0
- package/chart/style/package.json +6 -0
- package/checkbox/BaseCheckbox.vue +81 -0
- package/checkbox/Checkbox.d.ts +283 -0
- package/checkbox/Checkbox.vue +102 -0
- package/checkbox/checkbox.mjs +208 -0
- package/checkbox/checkbox.mjs.map +1 -0
- package/checkbox/package.json +11 -0
- package/checkbox/style/CheckboxStyle.d.ts +31 -0
- package/checkbox/style/checkboxstyle.mjs +29 -0
- package/checkbox/style/checkboxstyle.mjs.map +1 -0
- package/checkbox/style/package.json +6 -0
- package/chip/BaseChip.vue +38 -0
- package/chip/Chip.d.ts +206 -0
- package/chip/Chip.vue +44 -0
- package/chip/chip.mjs +106 -0
- package/chip/chip.mjs.map +1 -0
- package/chip/package.json +11 -0
- package/chip/style/ChipStyle.d.ts +35 -0
- package/chip/style/chipstyle.mjs +21 -0
- package/chip/style/chipstyle.mjs.map +1 -0
- package/chip/style/package.json +6 -0
- package/chips/Chips.d.ts +90 -0
- package/chips/Chips.vue +11 -0
- package/chips/chips.mjs +12 -0
- package/chips/chips.mjs.map +1 -0
- package/chips/package.json +11 -0
- package/chips/style/ChipsStyle.d.ts +14 -0
- package/chips/style/chipsstyle.mjs +8 -0
- package/chips/style/chipsstyle.mjs.map +1 -0
- package/chips/style/package.json +6 -0
- package/colorpicker/BaseColorPicker.vue +55 -0
- package/colorpicker/ColorPicker.d.ts +254 -0
- package/colorpicker/ColorPicker.vue +569 -0
- package/colorpicker/colorpicker.mjs +646 -0
- package/colorpicker/colorpicker.mjs.map +1 -0
- package/colorpicker/package.json +11 -0
- package/colorpicker/style/ColorPickerStyle.d.ts +47 -0
- package/colorpicker/style/colorpickerstyle.mjs +35 -0
- package/colorpicker/style/colorpickerstyle.mjs.map +1 -0
- package/colorpicker/style/package.json +6 -0
- package/column/BaseColumn.vue +194 -0
- package/column/Column.d.ts +1006 -0
- package/column/Column.vue +19 -0
- package/column/column.mjs +213 -0
- package/column/column.mjs.map +1 -0
- package/column/package.json +11 -0
- package/column/style/ColumnStyle.d.ts +15 -0
- package/column/style/columnstyle.mjs +8 -0
- package/column/style/columnstyle.mjs.map +1 -0
- package/column/style/package.json +6 -0
- package/columngroup/BaseColumnGroup.vue +22 -0
- package/columngroup/ColumnGroup.d.ts +145 -0
- package/columngroup/ColumnGroup.vue +19 -0
- package/columngroup/columngroup.mjs +41 -0
- package/columngroup/columngroup.mjs.map +1 -0
- package/columngroup/package.json +11 -0
- package/columngroup/style/ColumnGroupStyle.d.ts +15 -0
- package/columngroup/style/columngroupstyle.mjs +8 -0
- package/columngroup/style/columngroupstyle.mjs.map +1 -0
- package/columngroup/style/package.json +6 -0
- package/config/Config.d.ts +425 -0
- package/config/config.mjs +3 -0
- package/config/config.mjs.map +1 -0
- package/config/package.json +5 -0
- package/confirmationeventbus/confirmationeventbus.mjs +6 -0
- package/confirmationeventbus/confirmationeventbus.mjs.map +1 -0
- package/confirmationeventbus/package.json +4 -0
- package/confirmationoptions/ConfirmationOptions.d.ts +99 -0
- package/confirmationservice/ConfirmationService.d.ts +40 -0
- package/confirmationservice/confirmationservice.mjs +20 -0
- package/confirmationservice/confirmationservice.mjs.map +1 -0
- package/confirmationservice/package.json +5 -0
- package/confirmdialog/BaseConfirmDialog.vue +27 -0
- package/confirmdialog/ConfirmDialog.d.ts +291 -0
- package/confirmdialog/ConfirmDialog.vue +182 -0
- package/confirmdialog/confirmdialog.mjs +260 -0
- package/confirmdialog/confirmdialog.mjs.map +1 -0
- package/confirmdialog/package.json +11 -0
- package/confirmdialog/style/ConfirmDialogStyle.d.ts +35 -0
- package/confirmdialog/style/confirmdialogstyle.mjs +21 -0
- package/confirmdialog/style/confirmdialogstyle.mjs.map +1 -0
- package/confirmdialog/style/package.json +6 -0
- package/confirmpopup/BaseConfirmPopup.vue +19 -0
- package/confirmpopup/ConfirmPopup.d.ts +241 -0
- package/confirmpopup/ConfirmPopup.vue +336 -0
- package/confirmpopup/confirmpopup.mjs +396 -0
- package/confirmpopup/confirmpopup.mjs.map +1 -0
- package/confirmpopup/package.json +11 -0
- package/confirmpopup/style/ConfirmPopupStyle.d.ts +43 -0
- package/confirmpopup/style/confirmpopupstyle.mjs +23 -0
- package/confirmpopup/style/confirmpopupstyle.mjs.map +1 -0
- package/confirmpopup/style/package.json +6 -0
- package/contextmenu/BaseContextMenu.vue +50 -0
- package/contextmenu/ContextMenu.d.ts +413 -0
- package/contextmenu/ContextMenu.vue +600 -0
- package/contextmenu/ContextMenuSub.vue +227 -0
- package/contextmenu/contextmenu.mjs +988 -0
- package/contextmenu/contextmenu.mjs.map +1 -0
- package/contextmenu/package.json +11 -0
- package/contextmenu/style/ContextMenuStyle.d.ts +56 -0
- package/contextmenu/style/contextmenustyle.mjs +34 -0
- package/contextmenu/style/contextmenustyle.mjs.map +1 -0
- package/contextmenu/style/package.json +6 -0
- package/datatable/BaseDataTable.vue +309 -0
- package/datatable/BodyCell.vue +577 -0
- package/datatable/BodyRow.vue +598 -0
- package/datatable/ColumnFilter.vue +736 -0
- package/datatable/DataTable.d.ts +1639 -0
- package/datatable/DataTable.vue +2061 -0
- package/datatable/FooterCell.vue +104 -0
- package/datatable/HeaderCell.vue +377 -0
- package/datatable/HeaderCheckbox.vue +67 -0
- package/datatable/RowCheckbox.vue +74 -0
- package/datatable/RowRadioButton.vue +59 -0
- package/datatable/TableBody.vue +303 -0
- package/datatable/TableFooter.vue +131 -0
- package/datatable/TableHeader.vue +345 -0
- package/datatable/datatable.mjs +6379 -0
- package/datatable/datatable.mjs.map +1 -0
- package/datatable/package.json +11 -0
- package/datatable/style/DataTableStyle.d.ts +207 -0
- package/datatable/style/datatablestyle.mjs +169 -0
- package/datatable/style/datatablestyle.mjs.map +1 -0
- package/datatable/style/package.json +6 -0
- package/dataview/BaseDataView.vue +82 -0
- package/dataview/DataView.d.ts +356 -0
- package/dataview/DataView.vue +172 -0
- package/dataview/dataview.mjs +283 -0
- package/dataview/dataview.mjs.map +1 -0
- package/dataview/package.json +11 -0
- package/dataview/style/DataViewStyle.d.ts +39 -0
- package/dataview/style/dataviewstyle.mjs +32 -0
- package/dataview/style/dataviewstyle.mjs.map +1 -0
- package/dataview/style/package.json +6 -0
- package/datepicker/BaseDatePicker.vue +248 -0
- package/datepicker/DatePicker.d.ts +1047 -0
- package/datepicker/DatePicker.vue +2951 -0
- package/datepicker/datepicker.mjs +3323 -0
- package/datepicker/datepicker.mjs.map +1 -0
- package/datepicker/package.json +11 -0
- package/datepicker/style/DatePickerStyle.d.ts +167 -0
- package/datepicker/style/datepickerstyle.mjs +114 -0
- package/datepicker/style/datepickerstyle.mjs.map +1 -0
- package/datepicker/style/package.json +6 -0
- package/deferredcontent/DeferredContent.d.ts +148 -0
- package/deferredcontent/DeferredContent.vue +65 -0
- package/deferredcontent/deferredcontent.mjs +69 -0
- package/deferredcontent/deferredcontent.mjs.map +1 -0
- package/deferredcontent/package.json +11 -0
- package/deferredcontent/style/DeferredContentStyle.d.ts +14 -0
- package/deferredcontent/style/deferredcontentstyle.mjs +8 -0
- package/deferredcontent/style/deferredcontentstyle.mjs.map +1 -0
- package/deferredcontent/style/package.json +6 -0
- package/dialog/BaseDialog.vue +139 -0
- package/dialog/Dialog.d.ts +433 -0
- package/dialog/Dialog.vue +418 -0
- package/dialog/dialog.mjs +608 -0
- package/dialog/dialog.mjs.map +1 -0
- package/dialog/package.json +11 -0
- package/dialog/style/DialogStyle.d.ts +51 -0
- package/dialog/style/dialogstyle.mjs +65 -0
- package/dialog/style/dialogstyle.mjs.map +1 -0
- package/dialog/style/package.json +6 -0
- package/dialogservice/DialogService.d.ts +39 -0
- package/dialogservice/dialogservice.mjs +34 -0
- package/dialogservice/dialogservice.mjs.map +1 -0
- package/dialogservice/package.json +5 -0
- package/divider/BaseDivider.vue +30 -0
- package/divider/Divider.d.ts +143 -0
- package/divider/Divider.vue +17 -0
- package/divider/divider.mjs +53 -0
- package/divider/divider.mjs.map +1 -0
- package/divider/package.json +11 -0
- package/divider/style/DividerStyle.d.ts +23 -0
- package/divider/style/dividerstyle.mjs +45 -0
- package/divider/style/dividerstyle.mjs.map +1 -0
- package/divider/style/package.json +6 -0
- package/dock/BaseDock.vue +46 -0
- package/dock/Dock.d.ts +331 -0
- package/dock/Dock.vue +60 -0
- package/dock/DockSub.vue +286 -0
- package/dock/dock.mjs +423 -0
- package/dock/dock.mjs.map +1 -0
- package/dock/package.json +11 -0
- package/dock/style/DockStyle.d.ts +43 -0
- package/dock/style/dockstyle.mjs +37 -0
- package/dock/style/dockstyle.mjs.map +1 -0
- package/dock/style/package.json +6 -0
- package/drawer/BaseDrawer.vue +73 -0
- package/drawer/Drawer.d.ts +286 -0
- package/drawer/Drawer.vue +234 -0
- package/drawer/drawer.mjs +341 -0
- package/drawer/drawer.mjs.map +1 -0
- package/drawer/package.json +11 -0
- package/drawer/style/DrawerStyle.d.ts +39 -0
- package/drawer/style/drawerstyle.mjs +56 -0
- package/drawer/style/drawerstyle.mjs.map +1 -0
- package/drawer/style/package.json +6 -0
- package/dropdown/Dropdown.d.ts +108 -0
- package/dropdown/Dropdown.vue +11 -0
- package/dropdown/dropdown.mjs +12 -0
- package/dropdown/dropdown.mjs.map +1 -0
- package/dropdown/package.json +11 -0
- package/dropdown/style/DropdownStyle.d.ts +14 -0
- package/dropdown/style/dropdownstyle.mjs +8 -0
- package/dropdown/style/dropdownstyle.mjs.map +1 -0
- package/dropdown/style/package.json +6 -0
- package/dynamicdialog/BaseDynamicDialog.vue +17 -0
- package/dynamicdialog/DynamicDialog.d.ts +55 -0
- package/dynamicdialog/DynamicDialog.vue +77 -0
- package/dynamicdialog/dynamicdialog.mjs +134 -0
- package/dynamicdialog/dynamicdialog.mjs.map +1 -0
- package/dynamicdialog/package.json +11 -0
- package/dynamicdialog/style/DynamicDialogStyle.d.ts +14 -0
- package/dynamicdialog/style/dynamicdialogstyle.mjs +8 -0
- package/dynamicdialog/style/dynamicdialogstyle.mjs.map +1 -0
- package/dynamicdialog/style/package.json +6 -0
- package/dynamicdialogeventbus/dynamicdialogeventbus.mjs +6 -0
- package/dynamicdialogeventbus/dynamicdialogeventbus.mjs.map +1 -0
- package/dynamicdialogeventbus/package.json +4 -0
- package/dynamicdialogoptions/DynamicDialogOptions.d.ts +93 -0
- package/editor/BaseEditor.vue +24 -0
- package/editor/Editor.d.ts +320 -0
- package/editor/Editor.vue +178 -0
- package/editor/editor.mjs +238 -0
- package/editor/editor.mjs.map +1 -0
- package/editor/package.json +11 -0
- package/editor/style/EditorStyle.d.ts +27 -0
- package/editor/style/editorstyle.mjs +19 -0
- package/editor/style/editorstyle.mjs.map +1 -0
- package/editor/style/package.json +6 -0
- package/fieldset/BaseFieldset.vue +25 -0
- package/fieldset/Fieldset.d.ts +253 -0
- package/fieldset/Fieldset.vue +95 -0
- package/fieldset/fieldset.mjs +147 -0
- package/fieldset/fieldset.mjs.map +1 -0
- package/fieldset/package.json +11 -0
- package/fieldset/style/FieldsetStyle.d.ts +39 -0
- package/fieldset/style/fieldsetstyle.mjs +28 -0
- package/fieldset/style/fieldsetstyle.mjs.map +1 -0
- package/fieldset/style/package.json +6 -0
- package/fileupload/BaseFileUpload.vue +128 -0
- package/fileupload/FileContent.vue +75 -0
- package/fileupload/FileUpload.d.ts +670 -0
- package/fileupload/FileUpload.vue +448 -0
- package/fileupload/fileupload.mjs +870 -0
- package/fileupload/fileupload.mjs.map +1 -0
- package/fileupload/package.json +11 -0
- package/fileupload/style/FileUploadStyle.d.ts +75 -0
- package/fileupload/style/fileuploadstyle.mjs +34 -0
- package/fileupload/style/fileuploadstyle.mjs.map +1 -0
- package/fileupload/style/package.json +6 -0
- package/floatlabel/BaseFloatLabel.vue +17 -0
- package/floatlabel/FloatLabel.d.ts +130 -0
- package/floatlabel/FloatLabel.vue +15 -0
- package/floatlabel/floatlabel.mjs +33 -0
- package/floatlabel/floatlabel.mjs.map +1 -0
- package/floatlabel/package.json +11 -0
- package/floatlabel/style/FloatLabelStyle.d.ts +19 -0
- package/floatlabel/style/floatlabelstyle.mjs +17 -0
- package/floatlabel/style/floatlabelstyle.mjs.map +1 -0
- package/floatlabel/style/package.json +6 -0
- package/focustrap/FocusTrap.d.ts +100 -0
- package/focustrap/focustrap.mjs +141 -0
- package/focustrap/focustrap.mjs.map +1 -0
- package/focustrap/package.json +5 -0
- package/focustrap/style/FocusTrapStyle.d.ts +14 -0
- package/focustrap/style/focustrapstyle.mjs +8 -0
- package/focustrap/style/focustrapstyle.mjs.map +1 -0
- package/focustrap/style/package.json +6 -0
- package/galleria/BaseGalleria.vue +134 -0
- package/galleria/Galleria.d.ts +541 -0
- package/galleria/Galleria.vue +95 -0
- package/galleria/GalleriaContent.vue +168 -0
- package/galleria/GalleriaItem.vue +271 -0
- package/galleria/GalleriaThumbnails.vue +546 -0
- package/galleria/galleria.mjs +1278 -0
- package/galleria/galleria.mjs.map +1 -0
- package/galleria/package.json +11 -0
- package/galleria/style/GalleriaStyle.d.ts +127 -0
- package/galleria/style/galleriastyle.mjs +89 -0
- package/galleria/style/galleriastyle.mjs.map +1 -0
- package/galleria/style/package.json +6 -0
- package/iconfield/BaseIconField.vue +16 -0
- package/iconfield/IconField.d.ts +128 -0
- package/iconfield/IconField.vue +15 -0
- package/iconfield/iconfield.mjs +32 -0
- package/iconfield/iconfield.mjs.map +1 -0
- package/iconfield/package.json +11 -0
- package/iconfield/style/IconFieldStyle.d.ts +19 -0
- package/iconfield/style/iconfieldstyle.mjs +17 -0
- package/iconfield/style/iconfieldstyle.mjs.map +1 -0
- package/iconfield/style/package.json +6 -0
- package/image/BaseImage.vue +58 -0
- package/image/Image.d.ts +362 -0
- package/image/Image.vue +233 -0
- package/image/image.mjs +387 -0
- package/image/image.mjs.map +1 -0
- package/image/package.json +11 -0
- package/image/style/ImageStyle.d.ts +59 -0
- package/image/style/imagestyle.mjs +42 -0
- package/image/style/imagestyle.mjs.map +1 -0
- package/image/style/package.json +6 -0
- package/inlinemessage/BaseInlineMessage.vue +26 -0
- package/inlinemessage/InlineMessage.d.ts +162 -0
- package/inlinemessage/InlineMessage.vue +47 -0
- package/inlinemessage/inlinemessage.mjs +80 -0
- package/inlinemessage/inlinemessage.mjs.map +1 -0
- package/inlinemessage/package.json +11 -0
- package/inlinemessage/style/InlineMessageStyle.d.ts +27 -0
- package/inlinemessage/style/inlinemessagestyle.mjs +28 -0
- package/inlinemessage/style/inlinemessagestyle.mjs.map +1 -0
- package/inlinemessage/style/package.json +6 -0
- package/inplace/BaseInplace.vue +30 -0
- package/inplace/Inplace.d.ts +209 -0
- package/inplace/Inplace.vue +53 -0
- package/inplace/inplace.mjs +101 -0
- package/inplace/inplace.mjs.map +1 -0
- package/inplace/package.json +11 -0
- package/inplace/style/InplaceStyle.d.ts +27 -0
- package/inplace/style/inplacestyle.mjs +24 -0
- package/inplace/style/inplacestyle.mjs.map +1 -0
- package/inplace/style/package.json +6 -0
- package/inputchips/BaseInputChips.vue +86 -0
- package/inputchips/InputChips.d.ts +349 -0
- package/inputchips/InputChips.vue +271 -0
- package/inputchips/inputchips.mjs +394 -0
- package/inputchips/inputchips.mjs.map +1 -0
- package/inputchips/package.json +11 -0
- package/inputchips/style/InputChipsStyle.d.ts +39 -0
- package/inputchips/style/inputchipsstyle.mjs +44 -0
- package/inputchips/style/inputchipsstyle.mjs.map +1 -0
- package/inputchips/style/package.json +6 -0
- package/inputgroup/BaseInputGroup.vue +16 -0
- package/inputgroup/InputGroup.d.ts +129 -0
- package/inputgroup/InputGroup.vue +15 -0
- package/inputgroup/inputgroup.mjs +32 -0
- package/inputgroup/inputgroup.mjs.map +1 -0
- package/inputgroup/package.json +11 -0
- package/inputgroup/style/InputGroupStyle.d.ts +19 -0
- package/inputgroup/style/inputgroupstyle.mjs +17 -0
- package/inputgroup/style/inputgroupstyle.mjs.map +1 -0
- package/inputgroup/style/package.json +6 -0
- package/inputgroupaddon/BaseInputGroupAddon.vue +16 -0
- package/inputgroupaddon/InputGroupAddon.d.ts +129 -0
- package/inputgroupaddon/InputGroupAddon.vue +15 -0
- package/inputgroupaddon/inputgroupaddon.mjs +32 -0
- package/inputgroupaddon/inputgroupaddon.mjs.map +1 -0
- package/inputgroupaddon/package.json +11 -0
- package/inputgroupaddon/style/InputGroupAddonStyle.d.ts +19 -0
- package/inputgroupaddon/style/inputgroupaddonstyle.mjs +12 -0
- package/inputgroupaddon/style/inputgroupaddonstyle.mjs.map +1 -0
- package/inputgroupaddon/style/package.json +6 -0
- package/inputicon/BaseInputIcon.vue +19 -0
- package/inputicon/InputIcon.d.ts +124 -0
- package/inputicon/InputIcon.vue +20 -0
- package/inputicon/inputicon.mjs +40 -0
- package/inputicon/inputicon.mjs.map +1 -0
- package/inputicon/package.json +11 -0
- package/inputicon/style/InputIconStyle.d.ts +19 -0
- package/inputicon/style/inputiconstyle.mjs +12 -0
- package/inputicon/style/inputiconstyle.mjs.map +1 -0
- package/inputicon/style/package.json +6 -0
- package/inputmask/BaseInputMask.vue +55 -0
- package/inputmask/InputMask.d.ts +231 -0
- package/inputmask/InputMask.vue +532 -0
- package/inputmask/inputmask.mjs +512 -0
- package/inputmask/inputmask.mjs.map +1 -0
- package/inputmask/package.json +11 -0
- package/inputmask/style/InputMaskStyle.d.ts +19 -0
- package/inputmask/style/inputmaskstyle.mjs +12 -0
- package/inputmask/style/inputmaskstyle.mjs.map +1 -0
- package/inputmask/style/package.json +6 -0
- package/inputnumber/BaseInputNumber.vue +165 -0
- package/inputnumber/InputNumber.d.ts +477 -0
- package/inputnumber/InputNumber.vue +987 -0
- package/inputnumber/inputnumber.mjs +1134 -0
- package/inputnumber/inputnumber.mjs.map +1 -0
- package/inputnumber/package.json +11 -0
- package/inputnumber/style/InputNumberStyle.d.ts +35 -0
- package/inputnumber/style/inputnumberstyle.mjs +43 -0
- package/inputnumber/style/inputnumberstyle.mjs.map +1 -0
- package/inputnumber/style/package.json +6 -0
- package/inputotp/BaseInputOtp.vue +54 -0
- package/inputotp/InputOtp.d.ts +281 -0
- package/inputotp/InputOtp.vue +194 -0
- package/inputotp/inputotp.mjs +255 -0
- package/inputotp/inputotp.mjs.map +1 -0
- package/inputotp/package.json +11 -0
- package/inputotp/style/InputOtpStyle.d.ts +23 -0
- package/inputotp/style/inputotpstyle.mjs +18 -0
- package/inputotp/style/inputotpstyle.mjs.map +1 -0
- package/inputotp/style/package.json +6 -0
- package/inputswitch/InputSwitch.d.ts +69 -0
- package/inputswitch/InputSwitch.vue +11 -0
- package/inputswitch/inputswitch.mjs +12 -0
- package/inputswitch/inputswitch.mjs.map +1 -0
- package/inputswitch/package.json +11 -0
- package/inputswitch/style/InputSwitchStyle.d.ts +14 -0
- package/inputswitch/style/inputswitchstyle.mjs +8 -0
- package/inputswitch/style/inputswitchstyle.mjs.map +1 -0
- package/inputswitch/style/package.json +6 -0
- package/inputtext/BaseInputText.vue +31 -0
- package/inputtext/InputText.d.ts +163 -0
- package/inputtext/InputText.vue +34 -0
- package/inputtext/inputtext.mjs +74 -0
- package/inputtext/inputtext.mjs.map +1 -0
- package/inputtext/package.json +11 -0
- package/inputtext/style/InputTextStyle.d.ts +19 -0
- package/inputtext/style/inputtextstyle.mjs +27 -0
- package/inputtext/style/inputtextstyle.mjs.map +1 -0
- package/inputtext/style/package.json +6 -0
- package/knob/BaseKnob.vue +89 -0
- package/knob/Knob.d.ts +259 -0
- package/knob/Knob.vue +227 -0
- package/knob/knob.mjs +333 -0
- package/knob/knob.mjs.map +1 -0
- package/knob/package.json +11 -0
- package/knob/style/KnobStyle.d.ts +31 -0
- package/knob/style/knobstyle.mjs +25 -0
- package/knob/style/knobstyle.mjs.map +1 -0
- package/knob/style/package.json +6 -0
- package/listbox/BaseListbox.vue +122 -0
- package/listbox/Listbox.d.ts +621 -0
- package/listbox/Listbox.vue +782 -0
- package/listbox/listbox.mjs +1051 -0
- package/listbox/listbox.mjs.map +1 -0
- package/listbox/package.json +11 -0
- package/listbox/style/ListboxStyle.d.ts +55 -0
- package/listbox/style/listboxstyle.mjs +44 -0
- package/listbox/style/listboxstyle.mjs.map +1 -0
- package/listbox/style/package.json +6 -0
- package/megamenu/BaseMegaMenu.vue +46 -0
- package/megamenu/MegaMenu.d.ts +410 -0
- package/megamenu/MegaMenu.vue +673 -0
- package/megamenu/MegaMenuSub.vue +228 -0
- package/megamenu/megamenu.mjs +1051 -0
- package/megamenu/megamenu.mjs.map +1 -0
- package/megamenu/package.json +11 -0
- package/megamenu/style/MegaMenuStyle.d.ts +83 -0
- package/megamenu/style/megamenustyle.mjs +90 -0
- package/megamenu/style/megamenustyle.mjs.map +1 -0
- package/megamenu/style/package.json +6 -0
- package/menu/BaseMenu.vue +50 -0
- package/menu/Menu.d.ts +381 -0
- package/menu/Menu.vue +390 -0
- package/menu/Menuitem.vue +110 -0
- package/menu/menu.mjs +596 -0
- package/menu/menu.mjs.map +1 -0
- package/menu/package.json +11 -0
- package/menu/style/MenuStyle.d.ts +59 -0
- package/menu/style/menustyle.mjs +38 -0
- package/menu/style/menustyle.mjs.map +1 -0
- package/menu/style/package.json +6 -0
- package/menubar/BaseMenubar.vue +38 -0
- package/menubar/Menubar.d.ts +423 -0
- package/menubar/Menubar.vue +638 -0
- package/menubar/MenubarSub.vue +224 -0
- package/menubar/menubar.mjs +1013 -0
- package/menubar/menubar.mjs.map +1 -0
- package/menubar/package.json +11 -0
- package/menubar/style/MenubarStyle.d.ts +67 -0
- package/menubar/style/menubarstyle.mjs +53 -0
- package/menubar/style/menubarstyle.mjs.map +1 -0
- package/menubar/style/package.json +6 -0
- package/menuitem/MenuItem.d.ts +89 -0
- package/message/BaseMessage.vue +42 -0
- package/message/Message.d.ts +238 -0
- package/message/Message.vue +81 -0
- package/message/message.mjs +159 -0
- package/message/message.mjs.map +1 -0
- package/message/package.json +11 -0
- package/message/style/MessageStyle.d.ts +39 -0
- package/message/style/messagestyle.mjs +25 -0
- package/message/style/messagestyle.mjs.map +1 -0
- package/message/style/package.json +6 -0
- package/metergroup/BaseMeterGroup.vue +42 -0
- package/metergroup/MeterGroup.d.ts +312 -0
- package/metergroup/MeterGroup.vue +74 -0
- package/metergroup/MeterGroupLabel.vue +36 -0
- package/metergroup/metergroup.mjs +218 -0
- package/metergroup/metergroup.mjs.map +1 -0
- package/metergroup/package.json +11 -0
- package/metergroup/style/MeterGroupStyle.d.ts +47 -0
- package/metergroup/style/metergroupstyle.mjs +36 -0
- package/metergroup/style/metergroupstyle.mjs.map +1 -0
- package/metergroup/style/package.json +6 -0
- package/multiselect/BaseMultiSelect.vue +187 -0
- package/multiselect/MultiSelect.d.ts +898 -0
- package/multiselect/MultiSelect.vue +1131 -0
- package/multiselect/multiselect.mjs +1529 -0
- package/multiselect/multiselect.mjs.map +1 -0
- package/multiselect/package.json +11 -0
- package/multiselect/style/MultiSelectStyle.d.ts +87 -0
- package/multiselect/style/multiselectstyle.mjs +74 -0
- package/multiselect/style/multiselectstyle.mjs.map +1 -0
- package/multiselect/style/package.json +6 -0
- package/orderlist/BaseOrderList.vue +100 -0
- package/orderlist/OrderList.d.ts +404 -0
- package/orderlist/OrderList.vue +323 -0
- package/orderlist/orderlist.mjs +453 -0
- package/orderlist/orderlist.mjs.map +1 -0
- package/orderlist/package.json +11 -0
- package/orderlist/style/OrderListStyle.d.ts +23 -0
- package/orderlist/style/orderliststyle.mjs +18 -0
- package/orderlist/style/orderliststyle.mjs.map +1 -0
- package/orderlist/style/package.json +6 -0
- package/organizationchart/BaseOrganizationChart.vue +38 -0
- package/organizationchart/OrganizationChart.d.ts +376 -0
- package/organizationchart/OrganizationChart.vue +78 -0
- package/organizationchart/OrganizationChartNode.vue +165 -0
- package/organizationchart/organizationchart.mjs +316 -0
- package/organizationchart/organizationchart.mjs.map +1 -0
- package/organizationchart/package.json +11 -0
- package/organizationchart/style/OrganizationChartStyle.d.ts +55 -0
- package/organizationchart/style/organizationchartstyle.mjs +43 -0
- package/organizationchart/style/organizationchartstyle.mjs.map +1 -0
- package/organizationchart/style/package.json +6 -0
- package/overlaybadge/BaseOverlayBadge.vue +16 -0
- package/overlaybadge/OverlayBadge.d.ts +152 -0
- package/overlaybadge/OverlayBadge.vue +16 -0
- package/overlaybadge/overlaybadge.mjs +35 -0
- package/overlaybadge/overlaybadge.mjs.map +1 -0
- package/overlaybadge/package.json +11 -0
- package/overlaybadge/style/OverlayBadgeStyle.d.ts +19 -0
- package/overlaybadge/style/overlaybadgestyle.mjs +17 -0
- package/overlaybadge/style/overlaybadgestyle.mjs.map +1 -0
- package/overlaybadge/style/package.json +6 -0
- package/overlayeventbus/overlayeventbus.mjs +6 -0
- package/overlayeventbus/overlayeventbus.mjs.map +1 -0
- package/overlayeventbus/package.json +4 -0
- package/overlaypanel/OverlayPanel.d.ts +110 -0
- package/overlaypanel/OverlayPanel.vue +11 -0
- package/overlaypanel/overlaypanel.mjs +12 -0
- package/overlaypanel/overlaypanel.mjs.map +1 -0
- package/overlaypanel/package.json +11 -0
- package/overlaypanel/style/OverlayPanelStyle.d.ts +12 -0
- package/overlaypanel/style/overlaypanelstyle.mjs +8 -0
- package/overlaypanel/style/overlaypanelstyle.mjs.map +1 -0
- package/overlaypanel/style/package.json +6 -0
- package/package.json +52 -0
- package/paginator/BasePaginator.vue +50 -0
- package/paginator/CurrentPageReport.vue +56 -0
- package/paginator/FirstPageLink.vue +38 -0
- package/paginator/JumpToPageDropdown.vue +55 -0
- package/paginator/JumpToPageInput.vue +47 -0
- package/paginator/LastPageLink.vue +38 -0
- package/paginator/NextPageLink.vue +38 -0
- package/paginator/PageLinks.vue +56 -0
- package/paginator/Paginator.d.ts +460 -0
- package/paginator/Paginator.vue +343 -0
- package/paginator/PrevPageLink.vue +38 -0
- package/paginator/RowsPerPageDropdown.vue +57 -0
- package/paginator/package.json +11 -0
- package/paginator/paginator.mjs +873 -0
- package/paginator/paginator.mjs.map +1 -0
- package/paginator/style/PaginatorStyle.d.ts +83 -0
- package/paginator/style/package.json +6 -0
- package/paginator/style/paginatorstyle.mjs +69 -0
- package/paginator/style/paginatorstyle.mjs.map +1 -0
- package/panel/BasePanel.vue +31 -0
- package/panel/Panel.d.ts +281 -0
- package/panel/Panel.vue +104 -0
- package/panel/package.json +11 -0
- package/panel/panel.mjs +155 -0
- package/panel/panel.mjs.map +1 -0
- package/panel/style/PanelStyle.d.ts +47 -0
- package/panel/style/package.json +6 -0
- package/panel/style/panelstyle.mjs +29 -0
- package/panel/style/panelstyle.mjs.map +1 -0
- package/panelmenu/BasePanelMenu.vue +34 -0
- package/panelmenu/PanelMenu.d.ts +414 -0
- package/panelmenu/PanelMenu.vue +274 -0
- package/panelmenu/PanelMenuList.vue +399 -0
- package/panelmenu/PanelMenuSub.vue +211 -0
- package/panelmenu/package.json +11 -0
- package/panelmenu/panelmenu.mjs +1055 -0
- package/panelmenu/panelmenu.mjs.map +1 -0
- package/panelmenu/style/PanelMenuStyle.d.ts +84 -0
- package/panelmenu/style/package.json +6 -0
- package/panelmenu/style/panelmenustyle.mjs +48 -0
- package/panelmenu/style/panelmenustyle.mjs.map +1 -0
- package/passthrough/index.d.ts +8 -0
- package/passthrough/index.mjs +26 -0
- package/passthrough/index.mjs.map +1 -0
- package/passthrough/package.json +5 -0
- package/password/BasePassword.vue +147 -0
- package/password/Password.d.ts +425 -0
- package/password/Password.vue +328 -0
- package/password/package.json +11 -0
- package/password/password.mjs +499 -0
- package/password/password.mjs.map +1 -0
- package/password/style/PasswordStyle.d.ts +47 -0
- package/password/style/package.json +6 -0
- package/password/style/passwordstyle.mjs +44 -0
- package/password/style/passwordstyle.mjs.map +1 -0
- package/picklist/BasePickList.vue +116 -0
- package/picklist/PickList.d.ts +635 -0
- package/picklist/PickList.vue +654 -0
- package/picklist/package.json +11 -0
- package/picklist/picklist.mjs +905 -0
- package/picklist/picklist.mjs.map +1 -0
- package/picklist/style/PickListStyle.d.ts +39 -0
- package/picklist/style/package.json +6 -0
- package/picklist/style/pickliststyle.mjs +22 -0
- package/picklist/style/pickliststyle.mjs.map +1 -0
- package/popover/BasePopover.vue +42 -0
- package/popover/Popover.d.ts +257 -0
- package/popover/Popover.vue +314 -0
- package/popover/package.json +11 -0
- package/popover/popover.mjs +369 -0
- package/popover/popover.mjs.map +1 -0
- package/popover/style/PopoverStyle.d.ts +23 -0
- package/popover/style/package.json +6 -0
- package/popover/style/popoverstyle.mjs +18 -0
- package/popover/style/popoverstyle.mjs.map +1 -0
- package/portal/Portal.d.ts +39 -0
- package/portal/Portal.vue +41 -0
- package/portal/package.json +11 -0
- package/portal/portal.mjs +43 -0
- package/portal/portal.mjs.map +1 -0
- package/portal/style/PortalStyle.d.ts +12 -0
- package/portal/style/package.json +6 -0
- package/portal/style/portalstyle.mjs +8 -0
- package/portal/style/portalstyle.mjs.map +1 -0
- package/progressbar/BaseProgressBar.vue +30 -0
- package/progressbar/ProgressBar.d.ts +146 -0
- package/progressbar/ProgressBar.vue +34 -0
- package/progressbar/package.json +11 -0
- package/progressbar/progressbar.mjs +77 -0
- package/progressbar/progressbar.mjs.map +1 -0
- package/progressbar/style/ProgressBarStyle.d.ts +27 -0
- package/progressbar/style/package.json +6 -0
- package/progressbar/style/progressbarstyle.mjs +25 -0
- package/progressbar/style/progressbarstyle.mjs.map +1 -0
- package/progressspinner/BaseProgressSpinner.vue +30 -0
- package/progressspinner/ProgressSpinner.d.ts +144 -0
- package/progressspinner/ProgressSpinner.vue +24 -0
- package/progressspinner/package.json +11 -0
- package/progressspinner/progressspinner.mjs +67 -0
- package/progressspinner/progressspinner.mjs.map +1 -0
- package/progressspinner/style/ProgressSpinnerStyle.d.ts +27 -0
- package/progressspinner/style/package.json +6 -0
- package/progressspinner/style/progressspinnerstyle.mjs +19 -0
- package/progressspinner/style/progressspinnerstyle.mjs.map +1 -0
- package/radiobutton/BaseRadioButton.vue +65 -0
- package/radiobutton/RadioButton.d.ts +244 -0
- package/radiobutton/RadioButton.vue +69 -0
- package/radiobutton/package.json +11 -0
- package/radiobutton/radiobutton.mjs +144 -0
- package/radiobutton/radiobutton.mjs.map +1 -0
- package/radiobutton/style/RadioButtonStyle.d.ts +31 -0
- package/radiobutton/style/package.json +6 -0
- package/radiobutton/style/radiobuttonstyle.mjs +29 -0
- package/radiobutton/style/radiobuttonstyle.mjs.map +1 -0
- package/rating/BaseRating.vue +42 -0
- package/rating/Rating.d.ts +277 -0
- package/rating/Rating.vue +111 -0
- package/rating/package.json +11 -0
- package/rating/rating.mjs +189 -0
- package/rating/rating.mjs.map +1 -0
- package/rating/style/RatingStyle.d.ts +31 -0
- package/rating/style/package.json +6 -0
- package/rating/style/ratingstyle.mjs +34 -0
- package/rating/style/ratingstyle.mjs.map +1 -0
- package/ripple/Ripple.d.ts +87 -0
- package/ripple/package.json +5 -0
- package/ripple/ripple.mjs +111 -0
- package/ripple/ripple.mjs.map +1 -0
- package/ripple/style/RippleStyle.d.ts +19 -0
- package/ripple/style/package.json +6 -0
- package/ripple/style/ripplestyle.mjs +17 -0
- package/ripple/style/ripplestyle.mjs.map +1 -0
- package/row/Row.d.ts +126 -0
- package/row/Row.vue +18 -0
- package/row/package.json +11 -0
- package/row/row.mjs +21 -0
- package/row/row.mjs.map +1 -0
- package/row/style/RowStyle.d.ts +14 -0
- package/row/style/package.json +6 -0
- package/row/style/rowstyle.mjs +8 -0
- package/row/style/rowstyle.mjs.map +1 -0
- package/scrollpanel/BaseScrollPanel.vue +22 -0
- package/scrollpanel/ScrollPanel.d.ts +175 -0
- package/scrollpanel/ScrollPanel.vue +382 -0
- package/scrollpanel/package.json +11 -0
- package/scrollpanel/scrollpanel.mjs +406 -0
- package/scrollpanel/scrollpanel.mjs.map +1 -0
- package/scrollpanel/style/ScrollPanelStyle.d.ts +35 -0
- package/scrollpanel/style/package.json +6 -0
- package/scrollpanel/style/scrollpanelstyle.mjs +21 -0
- package/scrollpanel/style/scrollpanelstyle.mjs.map +1 -0
- package/scrolltop/BaseScrollTop.vue +40 -0
- package/scrolltop/ScrollTop.d.ts +195 -0
- package/scrolltop/ScrollTop.vue +109 -0
- package/scrolltop/package.json +11 -0
- package/scrolltop/scrolltop.mjs +169 -0
- package/scrolltop/scrolltop.mjs.map +1 -0
- package/scrolltop/style/ScrollTopStyle.d.ts +23 -0
- package/scrolltop/style/package.json +6 -0
- package/scrolltop/style/scrolltopstyle.mjs +23 -0
- package/scrolltop/style/scrolltopstyle.mjs.map +1 -0
- package/select/BaseSelect.vue +194 -0
- package/select/Select.d.ts +803 -0
- package/select/Select.vue +1011 -0
- package/select/package.json +11 -0
- package/select/select.mjs +1360 -0
- package/select/select.mjs.map +1 -0
- package/select/style/SelectStyle.d.ts +87 -0
- package/select/style/package.json +6 -0
- package/select/style/selectstyle.mjs +65 -0
- package/select/style/selectstyle.mjs.map +1 -0
- package/selectbutton/BaseSelectButton.vue +38 -0
- package/selectbutton/SelectButton.d.ts +264 -0
- package/selectbutton/SelectButton.vue +113 -0
- package/selectbutton/package.json +11 -0
- package/selectbutton/selectbutton.mjs +182 -0
- package/selectbutton/selectbutton.mjs.map +1 -0
- package/selectbutton/style/SelectButtonStyle.d.ts +19 -0
- package/selectbutton/style/package.json +6 -0
- package/selectbutton/style/selectbuttonstyle.mjs +22 -0
- package/selectbutton/style/selectbuttonstyle.mjs.map +1 -0
- package/sidebar/Sidebar.d.ts +79 -0
- package/sidebar/Sidebar.vue +11 -0
- package/sidebar/package.json +11 -0
- package/sidebar/sidebar.mjs +12 -0
- package/sidebar/sidebar.mjs.map +1 -0
- package/sidebar/style/SidebarStyle.d.ts +14 -0
- package/sidebar/style/package.json +6 -0
- package/sidebar/style/sidebarstyle.mjs +8 -0
- package/sidebar/style/sidebarstyle.mjs.map +1 -0
- package/skeleton/BaseSkeleton.vue +42 -0
- package/skeleton/Skeleton.d.ts +150 -0
- package/skeleton/Skeleton.vue +19 -0
- package/skeleton/package.json +11 -0
- package/skeleton/skeleton.mjs +73 -0
- package/skeleton/skeleton.mjs.map +1 -0
- package/skeleton/style/SkeletonStyle.d.ts +19 -0
- package/skeleton/style/package.json +6 -0
- package/skeleton/style/skeletonstyle.mjs +29 -0
- package/skeleton/style/skeletonstyle.mjs.map +1 -0
- package/slider/BaseSlider.vue +55 -0
- package/slider/Slider.d.ts +215 -0
- package/slider/Slider.vue +333 -0
- package/slider/package.json +11 -0
- package/slider/slider.mjs +407 -0
- package/slider/slider.mjs.map +1 -0
- package/slider/style/SliderStyle.d.ts +27 -0
- package/slider/style/package.json +6 -0
- package/slider/style/sliderstyle.mjs +35 -0
- package/slider/style/sliderstyle.mjs.map +1 -0
- package/speeddial/BaseSpeedDial.vue +89 -0
- package/speeddial/SpeedDial.d.ts +412 -0
- package/speeddial/SpeedDial.vue +470 -0
- package/speeddial/package.json +11 -0
- package/speeddial/speeddial.mjs +622 -0
- package/speeddial/speeddial.mjs.map +1 -0
- package/speeddial/style/SpeedDialStyle.d.ts +43 -0
- package/speeddial/style/package.json +6 -0
- package/speeddial/style/speeddialstyle.mjs +60 -0
- package/speeddial/style/speeddialstyle.mjs.map +1 -0
- package/splitbutton/BaseSplitButton.vue +98 -0
- package/splitbutton/SplitButton.d.ts +342 -0
- package/splitbutton/SplitButton.vue +127 -0
- package/splitbutton/package.json +11 -0
- package/splitbutton/splitbutton.mjs +272 -0
- package/splitbutton/splitbutton.mjs.map +1 -0
- package/splitbutton/style/SplitButtonStyle.d.ts +27 -0
- package/splitbutton/style/package.json +6 -0
- package/splitbutton/style/splitbuttonstyle.mjs +25 -0
- package/splitbutton/style/splitbuttonstyle.mjs.map +1 -0
- package/splitter/BaseSplitter.vue +38 -0
- package/splitter/Splitter.d.ts +249 -0
- package/splitter/Splitter.vue +385 -0
- package/splitter/package.json +11 -0
- package/splitter/splitter.mjs +444 -0
- package/splitter/splitter.mjs.map +1 -0
- package/splitter/style/SplitterStyle.d.ts +27 -0
- package/splitter/style/package.json +6 -0
- package/splitter/style/splitterstyle.mjs +34 -0
- package/splitter/style/splitterstyle.mjs.map +1 -0
- package/splitterpanel/BaseSplitterPanel.vue +26 -0
- package/splitterpanel/SplitterPanel.d.ts +147 -0
- package/splitterpanel/SplitterPanel.vue +36 -0
- package/splitterpanel/package.json +11 -0
- package/splitterpanel/splitterpanel.mjs +64 -0
- package/splitterpanel/splitterpanel.mjs.map +1 -0
- package/splitterpanel/style/SplitterPanelStyle.d.ts +19 -0
- package/splitterpanel/style/package.json +6 -0
- package/splitterpanel/style/splitterpanelstyle.mjs +17 -0
- package/splitterpanel/style/splitterpanelstyle.mjs.map +1 -0
- package/step/BaseStep.vue +34 -0
- package/step/Step.d.ts +187 -0
- package/step/Step.vue +98 -0
- package/step/package.json +11 -0
- package/step/step.mjs +182 -0
- package/step/step.mjs.map +1 -0
- package/step/style/StepStyle.d.ts +31 -0
- package/step/style/package.json +6 -0
- package/step/style/stepstyle.mjs +22 -0
- package/step/style/stepstyle.mjs.map +1 -0
- package/stepitem/BaseStepItem.vue +22 -0
- package/stepitem/StepItem.d.ts +121 -0
- package/stepitem/StepItem.vue +21 -0
- package/stepitem/package.json +11 -0
- package/stepitem/stepitem.mjs +47 -0
- package/stepitem/stepitem.mjs.map +1 -0
- package/stepitem/style/StepItemStyle.d.ts +19 -0
- package/stepitem/style/package.json +6 -0
- package/stepitem/style/stepitemstyle.mjs +17 -0
- package/stepitem/style/stepitemstyle.mjs.map +1 -0
- package/steplist/BaseStepList.vue +22 -0
- package/steplist/StepList.d.ts +121 -0
- package/steplist/StepList.vue +15 -0
- package/steplist/package.json +11 -0
- package/steplist/steplist.mjs +38 -0
- package/steplist/steplist.mjs.map +1 -0
- package/steplist/style/StepListStyle.d.ts +19 -0
- package/steplist/style/package.json +6 -0
- package/steplist/style/stepliststyle.mjs +12 -0
- package/steplist/style/stepliststyle.mjs.map +1 -0
- package/steppanel/BaseStepPanel.vue +30 -0
- package/steppanel/StepPanel.d.ts +148 -0
- package/steppanel/StepPanel.vue +99 -0
- package/steppanel/package.json +11 -0
- package/steppanel/steppanel.mjs +195 -0
- package/steppanel/steppanel.mjs.map +1 -0
- package/steppanel/style/StepPanelStyle.d.ts +19 -0
- package/steppanel/style/package.json +6 -0
- package/steppanel/style/steppanelstyle.mjs +18 -0
- package/steppanel/style/steppanelstyle.mjs.map +1 -0
- package/steppanels/BaseStepPanels.vue +22 -0
- package/steppanels/StepPanels.d.ts +121 -0
- package/steppanels/StepPanels.vue +15 -0
- package/steppanels/package.json +11 -0
- package/steppanels/steppanels.mjs +38 -0
- package/steppanels/steppanels.mjs.map +1 -0
- package/steppanels/style/StepPanelsStyle.d.ts +19 -0
- package/steppanels/style/package.json +6 -0
- package/steppanels/style/steppanelsstyle.mjs +12 -0
- package/steppanels/style/steppanelsstyle.mjs.map +1 -0
- package/stepper/BaseStepper.vue +26 -0
- package/stepper/Stepper.d.ts +170 -0
- package/stepper/Stepper.vue +50 -0
- package/stepper/StepperSeparator.vue +13 -0
- package/stepper/package.json +11 -0
- package/stepper/stepper.mjs +80 -0
- package/stepper/stepper.mjs.map +1 -0
- package/stepper/style/StepperStyle.d.ts +23 -0
- package/stepper/style/package.json +6 -0
- package/stepper/style/stepperstyle.mjs +23 -0
- package/stepper/style/stepperstyle.mjs.map +1 -0
- package/stepperpanel/BaseStepperPanel.vue +19 -0
- package/stepperpanel/StepperPanel.d.ts +290 -0
- package/stepperpanel/StepperPanel.vue +15 -0
- package/stepperpanel/package.json +11 -0
- package/stepperpanel/stepperpanel.mjs +35 -0
- package/stepperpanel/stepperpanel.mjs.map +1 -0
- package/stepperpanel/style/StepperPanelStyle.d.ts +14 -0
- package/stepperpanel/style/package.json +6 -0
- package/stepperpanel/style/stepperpanelstyle.mjs +8 -0
- package/stepperpanel/style/stepperpanelstyle.mjs.map +1 -0
- package/steps/BaseSteps.vue +33 -0
- package/steps/Steps.d.ts +235 -0
- package/steps/Steps.vue +218 -0
- package/steps/package.json +11 -0
- package/steps/steps.mjs +253 -0
- package/steps/steps.mjs.map +1 -0
- package/steps/style/StepsStyle.d.ts +39 -0
- package/steps/style/package.json +6 -0
- package/steps/style/stepsstyle.mjs +35 -0
- package/steps/style/stepsstyle.mjs.map +1 -0
- package/styleclass/StyleClass.d.ts +105 -0
- package/styleclass/package.json +5 -0
- package/styleclass/style/StyleClassStyle.d.ts +14 -0
- package/styleclass/style/package.json +6 -0
- package/styleclass/style/styleclassstyle.mjs +8 -0
- package/styleclass/style/styleclassstyle.mjs.map +1 -0
- package/styleclass/styleclass.mjs +151 -0
- package/styleclass/styleclass.mjs.map +1 -0
- package/tab/BaseTab.vue +34 -0
- package/tab/Tab.d.ts +150 -0
- package/tab/Tab.vue +167 -0
- package/tab/package.json +11 -0
- package/tab/style/TabStyle.d.ts +19 -0
- package/tab/style/package.json +6 -0
- package/tab/style/tabstyle.mjs +19 -0
- package/tab/style/tabstyle.mjs.map +1 -0
- package/tab/tab.mjs +210 -0
- package/tab/tab.mjs.map +1 -0
- package/tablist/BaseTabList.vue +17 -0
- package/tablist/TabList.d.ts +144 -0
- package/tablist/TabList.vue +165 -0
- package/tablist/package.json +11 -0
- package/tablist/style/TabListStyle.d.ts +39 -0
- package/tablist/style/package.json +6 -0
- package/tablist/style/tabliststyle.mjs +22 -0
- package/tablist/style/tabliststyle.mjs.map +1 -0
- package/tablist/tablist.mjs +213 -0
- package/tablist/tablist.mjs.map +1 -0
- package/tabmenu/BaseTabMenu.vue +34 -0
- package/tabmenu/TabMenu.d.ts +278 -0
- package/tabmenu/TabMenu.vue +262 -0
- package/tabmenu/package.json +11 -0
- package/tabmenu/style/TabMenuStyle.d.ts +43 -0
- package/tabmenu/style/package.json +6 -0
- package/tabmenu/style/tabmenustyle.mjs +31 -0
- package/tabmenu/style/tabmenustyle.mjs.map +1 -0
- package/tabmenu/tabmenu.mjs +312 -0
- package/tabmenu/tabmenu.mjs.map +1 -0
- package/tabpanel/BaseTabPanel.vue +41 -0
- package/tabpanel/TabPanel.d.ts +236 -0
- package/tabpanel/TabPanel.vue +56 -0
- package/tabpanel/package.json +11 -0
- package/tabpanel/style/TabPanelStyle.d.ts +19 -0
- package/tabpanel/style/package.json +6 -0
- package/tabpanel/style/tabpanelstyle.mjs +17 -0
- package/tabpanel/style/tabpanelstyle.mjs.map +1 -0
- package/tabpanel/tabpanel.mjs +112 -0
- package/tabpanel/tabpanel.mjs.map +1 -0
- package/tabpanels/BaseTabPanels.vue +17 -0
- package/tabpanels/TabPanels.d.ts +128 -0
- package/tabpanels/TabPanels.vue +15 -0
- package/tabpanels/package.json +11 -0
- package/tabpanels/style/TabPanelsStyle.d.ts +19 -0
- package/tabpanels/style/package.json +6 -0
- package/tabpanels/style/tabpanelsstyle.mjs +12 -0
- package/tabpanels/style/tabpanelsstyle.mjs.map +1 -0
- package/tabpanels/tabpanels.mjs +34 -0
- package/tabpanels/tabpanels.mjs.map +1 -0
- package/tabs/BaseTabs.vue +42 -0
- package/tabs/Tabs.d.ts +189 -0
- package/tabs/Tabs.vue +45 -0
- package/tabs/package.json +11 -0
- package/tabs/style/TabsStyle.d.ts +19 -0
- package/tabs/style/package.json +6 -0
- package/tabs/style/tabsstyle.mjs +22 -0
- package/tabs/style/tabsstyle.mjs.map +1 -0
- package/tabs/tabs.mjs +88 -0
- package/tabs/tabs.mjs.map +1 -0
- package/tabview/BaseTabView.vue +55 -0
- package/tabview/TabView.d.ts +287 -0
- package/tabview/TabView.vue +376 -0
- package/tabview/package.json +11 -0
- package/tabview/style/TabViewStyle.d.ts +64 -0
- package/tabview/style/package.json +6 -0
- package/tabview/style/tabviewstyle.mjs +47 -0
- package/tabview/style/tabviewstyle.mjs.map +1 -0
- package/tabview/tabview.mjs +458 -0
- package/tabview/tabview.mjs.map +1 -0
- package/tag/BaseTag.vue +22 -0
- package/tag/Tag.d.ts +157 -0
- package/tag/Tag.vue +19 -0
- package/tag/package.json +11 -0
- package/tag/style/TagStyle.d.ts +27 -0
- package/tag/style/package.json +6 -0
- package/tag/style/tagstyle.mjs +30 -0
- package/tag/style/tagstyle.mjs.map +1 -0
- package/tag/tag.mjs +50 -0
- package/tag/tag.mjs.map +1 -0
- package/terminal/BaseTerminal.vue +26 -0
- package/terminal/Terminal.d.ts +180 -0
- package/terminal/Terminal.vue +58 -0
- package/terminal/package.json +11 -0
- package/terminal/style/TerminalStyle.d.ts +51 -0
- package/terminal/style/package.json +6 -0
- package/terminal/style/terminalstyle.mjs +25 -0
- package/terminal/style/terminalstyle.mjs.map +1 -0
- package/terminal/terminal.mjs +115 -0
- package/terminal/terminal.mjs.map +1 -0
- package/terminalservice/TerminalService.d.ts +30 -0
- package/terminalservice/package.json +5 -0
- package/terminalservice/terminalservice.mjs +6 -0
- package/terminalservice/terminalservice.mjs.map +1 -0
- package/textarea/BaseTextarea.vue +28 -0
- package/textarea/Textarea.d.ts +169 -0
- package/textarea/Textarea.vue +56 -0
- package/textarea/package.json +11 -0
- package/textarea/style/TextareaStyle.d.ts +19 -0
- package/textarea/style/package.json +6 -0
- package/textarea/style/textareastyle.mjs +26 -0
- package/textarea/style/textareastyle.mjs.map +1 -0
- package/textarea/textarea.mjs +91 -0
- package/textarea/textarea.mjs.map +1 -0
- package/tieredmenu/BaseTieredMenu.vue +54 -0
- package/tieredmenu/TieredMenu.d.ts +419 -0
- package/tieredmenu/TieredMenu.vue +632 -0
- package/tieredmenu/TieredMenuSub.vue +225 -0
- package/tieredmenu/package.json +11 -0
- package/tieredmenu/style/TieredMenuStyle.d.ts +63 -0
- package/tieredmenu/style/package.json +6 -0
- package/tieredmenu/style/tieredmenustyle.mjs +52 -0
- package/tieredmenu/style/tieredmenustyle.mjs.map +1 -0
- package/tieredmenu/tieredmenu.mjs +1027 -0
- package/tieredmenu/tieredmenu.mjs.map +1 -0
- package/timeline/BaseTimeline.vue +28 -0
- package/timeline/Timeline.d.ts +235 -0
- package/timeline/Timeline.vue +44 -0
- package/timeline/package.json +11 -0
- package/timeline/style/TimelineStyle.d.ts +43 -0
- package/timeline/style/package.json +6 -0
- package/timeline/style/timelinestyle.mjs +26 -0
- package/timeline/style/timelinestyle.mjs.map +1 -0
- package/timeline/timeline.mjs +98 -0
- package/timeline/timeline.mjs.map +1 -0
- package/toast/BaseToast.vue +62 -0
- package/toast/Toast.d.ts +354 -0
- package/toast/Toast.vue +157 -0
- package/toast/ToastMessage.vue +120 -0
- package/toast/package.json +11 -0
- package/toast/style/ToastStyle.d.ts +51 -0
- package/toast/style/package.json +6 -0
- package/toast/style/toaststyle.mjs +60 -0
- package/toast/style/toaststyle.mjs.map +1 -0
- package/toast/toast.mjs +396 -0
- package/toast/toast.mjs.map +1 -0
- package/toasteventbus/package.json +4 -0
- package/toasteventbus/toasteventbus.mjs +6 -0
- package/toasteventbus/toasteventbus.mjs.map +1 -0
- package/toastservice/ToastService.d.ts +52 -0
- package/toastservice/package.json +5 -0
- package/toastservice/toastservice.mjs +26 -0
- package/toastservice/toastservice.mjs.map +1 -0
- package/togglebutton/BaseToggleButton.vue +57 -0
- package/togglebutton/ToggleButton.d.ts +250 -0
- package/togglebutton/ToggleButton.vue +57 -0
- package/togglebutton/package.json +11 -0
- package/togglebutton/style/ToggleButtonStyle.d.ts +27 -0
- package/togglebutton/style/package.json +6 -0
- package/togglebutton/style/togglebuttonstyle.mjs +27 -0
- package/togglebutton/style/togglebuttonstyle.mjs.map +1 -0
- package/togglebutton/togglebutton.mjs +133 -0
- package/togglebutton/togglebutton.mjs.map +1 -0
- package/toggleswitch/BaseToggleSwitch.vue +66 -0
- package/toggleswitch/ToggleSwitch.d.ts +222 -0
- package/toggleswitch/ToggleSwitch.vue +66 -0
- package/toggleswitch/package.json +11 -0
- package/toggleswitch/style/ToggleSwitchStyle.d.ts +27 -0
- package/toggleswitch/style/package.json +6 -0
- package/toggleswitch/style/toggleswitchstyle.mjs +33 -0
- package/toggleswitch/style/toggleswitchstyle.mjs.map +1 -0
- package/toggleswitch/toggleswitch.mjs +143 -0
- package/toggleswitch/toggleswitch.mjs.map +1 -0
- package/toolbar/BaseToolbar.vue +22 -0
- package/toolbar/Toolbar.d.ts +153 -0
- package/toolbar/Toolbar.vue +23 -0
- package/toolbar/package.json +11 -0
- package/toolbar/style/ToolbarStyle.d.ts +31 -0
- package/toolbar/style/package.json +6 -0
- package/toolbar/style/toolbarstyle.mjs +20 -0
- package/toolbar/style/toolbarstyle.mjs.map +1 -0
- package/toolbar/toolbar.mjs +47 -0
- package/toolbar/toolbar.mjs.map +1 -0
- package/tooltip/Tooltip.d.ts +214 -0
- package/tooltip/package.json +5 -0
- package/tooltip/style/TooltipStyle.d.ts +27 -0
- package/tooltip/style/package.json +6 -0
- package/tooltip/style/tooltipstyle.mjs +19 -0
- package/tooltip/style/tooltipstyle.mjs.map +1 -0
- package/tooltip/tooltip.mjs +418 -0
- package/tooltip/tooltip.mjs.map +1 -0
- package/tree/BaseTree.vue +90 -0
- package/tree/Tree.d.ts +525 -0
- package/tree/Tree.vue +257 -0
- package/tree/TreeNode.vue +460 -0
- package/tree/package.json +11 -0
- package/tree/style/TreeStyle.d.ts +71 -0
- package/tree/style/package.json +6 -0
- package/tree/style/treestyle.mjs +49 -0
- package/tree/style/treestyle.mjs.map +1 -0
- package/tree/tree.mjs +918 -0
- package/tree/tree.mjs.map +1 -0
- package/treenode/TreeNode.d.ts +71 -0
- package/treeselect/BaseTreeSelect.vue +96 -0
- package/treeselect/TreeSelect.d.ts +482 -0
- package/treeselect/TreeSelect.vue +515 -0
- package/treeselect/package.json +11 -0
- package/treeselect/style/TreeSelectStyle.d.ts +55 -0
- package/treeselect/style/package.json +6 -0
- package/treeselect/style/treeselectstyle.mjs +55 -0
- package/treeselect/style/treeselectstyle.mjs.map +1 -0
- package/treeselect/treeselect.mjs +745 -0
- package/treeselect/treeselect.mjs.map +1 -0
- package/treetable/BaseTreeTable.vue +182 -0
- package/treetable/BodyCell.vue +234 -0
- package/treetable/FooterCell.vue +104 -0
- package/treetable/HeaderCell.vue +242 -0
- package/treetable/TreeTable.d.ts +822 -0
- package/treetable/TreeTable.vue +877 -0
- package/treetable/TreeTableRow.vue +455 -0
- package/treetable/package.json +11 -0
- package/treetable/style/TreeTableStyle.d.ts +99 -0
- package/treetable/style/package.json +6 -0
- package/treetable/style/treetablestyle.mjs +109 -0
- package/treetable/style/treetablestyle.mjs.map +1 -0
- package/treetable/treetable.mjs +2272 -0
- package/treetable/treetable.mjs.map +1 -0
- package/ts-helpers.d.ts +43 -0
- package/umd/primevue.min.js +1 -0
- package/useconfirm/UseConfirm.d.ts +6 -0
- package/useconfirm/package.json +5 -0
- package/useconfirm/useconfirm.mjs +13 -0
- package/useconfirm/useconfirm.mjs.map +1 -0
- package/usedialog/UseDialog.d.ts +5 -0
- package/usedialog/package.json +5 -0
- package/usedialog/usedialog.mjs +13 -0
- package/usedialog/usedialog.mjs.map +1 -0
- package/usestyle/UseStyle.d.ts +1 -0
- package/usestyle/package.json +5 -0
- package/usestyle/usestyle.mjs +2 -0
- package/usestyle/usestyle.mjs.map +1 -0
- package/usetoast/UseToast.d.ts +3 -0
- package/usetoast/package.json +5 -0
- package/usetoast/usetoast.mjs +13 -0
- package/usetoast/usetoast.mjs.map +1 -0
- package/utils/Utils.d.ts +127 -0
- package/utils/package.json +5 -0
- package/utils/utils.mjs +1292 -0
- package/utils/utils.mjs.map +1 -0
- package/vetur-attributes.json +4778 -0
- package/vetur-tags.json +1643 -0
- package/virtualscroller/BaseVirtualScroller.vue +101 -0
- package/virtualscroller/VirtualScroller.d.ts +537 -0
- package/virtualscroller/VirtualScroller.vue +693 -0
- package/virtualscroller/package.json +11 -0
- package/virtualscroller/style/VirtualScrollerStyle.d.ts +35 -0
- package/virtualscroller/style/package.json +6 -0
- package/virtualscroller/style/virtualscrollerstyle.mjs +10 -0
- package/virtualscroller/style/virtualscrollerstyle.mjs.map +1 -0
- package/virtualscroller/virtualscroller.mjs +915 -0
- package/virtualscroller/virtualscroller.mjs.map +1 -0
- package/web-types.json +18296 -0
|
@@ -0,0 +1,2061 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="cx('root')" data-scrollselectors=".p-datatable-wrapper" v-bind="ptmi('root')">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
<div v-if="loading" :class="cx('mask')" v-bind="ptm('mask')">
|
|
5
|
+
<slot v-if="$slots.loading" name="loading"></slot>
|
|
6
|
+
<template v-else>
|
|
7
|
+
<component v-if="$slots.loadingicon" :is="$slots.loadingicon" :class="cx('loadingIcon')" />
|
|
8
|
+
<i v-else-if="loadingIcon" :class="[cx('loadingIcon'), 'pi-spin', loadingIcon]" v-bind="ptm('loadingIcon')" />
|
|
9
|
+
<SpinnerIcon v-else spin :class="cx('loadingIcon')" v-bind="ptm('loadingIcon')" />
|
|
10
|
+
</template>
|
|
11
|
+
</div>
|
|
12
|
+
<div v-if="$slots.header" :class="cx('header')" v-bind="ptm('header')">
|
|
13
|
+
<slot name="header"></slot>
|
|
14
|
+
</div>
|
|
15
|
+
<DTPaginator
|
|
16
|
+
v-if="paginatorTop"
|
|
17
|
+
:rows="d_rows"
|
|
18
|
+
:first="d_first"
|
|
19
|
+
:totalRecords="totalRecordsLength"
|
|
20
|
+
:pageLinkSize="pageLinkSize"
|
|
21
|
+
:template="paginatorTemplate"
|
|
22
|
+
:rowsPerPageOptions="rowsPerPageOptions"
|
|
23
|
+
:currentPageReportTemplate="currentPageReportTemplate"
|
|
24
|
+
:class="cx('pcPaginator', { position: 'top' })"
|
|
25
|
+
@page="onPage($event)"
|
|
26
|
+
:alwaysShow="alwaysShowPaginator"
|
|
27
|
+
:unstyled="unstyled"
|
|
28
|
+
:pt="ptm('pcPaginator')"
|
|
29
|
+
>
|
|
30
|
+
<template v-if="$slots.paginatorstart" #start>
|
|
31
|
+
<slot name="paginatorstart"></slot>
|
|
32
|
+
</template>
|
|
33
|
+
<template v-if="$slots.paginatorend" #end>
|
|
34
|
+
<slot name="paginatorend"></slot>
|
|
35
|
+
</template>
|
|
36
|
+
<template v-if="$slots.paginatorfirstpagelinkicon" #firstpagelinkicon="slotProps">
|
|
37
|
+
<slot name="paginatorfirstpagelinkicon" :class="slotProps.class"></slot>
|
|
38
|
+
</template>
|
|
39
|
+
<template v-if="$slots.paginatorprevpagelinkicon" #prevpagelinkicon="slotProps">
|
|
40
|
+
<slot name="paginatorprevpagelinkicon" :class="slotProps.class"></slot>
|
|
41
|
+
</template>
|
|
42
|
+
<template v-if="$slots.paginatornextpagelinkicon" #nextpagelinkicon="slotProps">
|
|
43
|
+
<slot name="paginatornextpagelinkicon" :class="slotProps.class"></slot>
|
|
44
|
+
</template>
|
|
45
|
+
<template v-if="$slots.paginatorlastpagelinkicon" #lastpagelinkicon="slotProps">
|
|
46
|
+
<slot name="paginatorlastpagelinkicon" :class="slotProps.class"></slot>
|
|
47
|
+
</template>
|
|
48
|
+
<template v-if="$slots.paginatorjumptopagedropdownicon" #jumptopagedropdownicon="slotProps">
|
|
49
|
+
<slot name="paginatorjumptopagedropdownicon" :class="slotProps.class"></slot>
|
|
50
|
+
</template>
|
|
51
|
+
<template v-if="$slots.paginatorrowsperpagedropdownicon" #rowsperpagedropdownicon="slotProps">
|
|
52
|
+
<slot name="paginatorrowsperpagedropdownicon" :class="slotProps.class"></slot>
|
|
53
|
+
</template>
|
|
54
|
+
</DTPaginator>
|
|
55
|
+
<div :class="cx('tableContainer')" :style="[sx('tableContainer'), { maxHeight: virtualScrollerDisabled ? scrollHeight : '' }]" v-bind="ptm('tableContainer')">
|
|
56
|
+
<DTVirtualScroller
|
|
57
|
+
ref="virtualScroller"
|
|
58
|
+
v-bind="virtualScrollerOptions"
|
|
59
|
+
:items="processedData"
|
|
60
|
+
:columns="columns"
|
|
61
|
+
:style="scrollHeight !== 'flex' ? { height: scrollHeight } : undefined"
|
|
62
|
+
:scrollHeight="scrollHeight !== 'flex' ? undefined : '100%'"
|
|
63
|
+
:disabled="virtualScrollerDisabled"
|
|
64
|
+
loaderDisabled
|
|
65
|
+
inline
|
|
66
|
+
autoSize
|
|
67
|
+
:showSpacer="false"
|
|
68
|
+
:pt="ptm('virtualScroller')"
|
|
69
|
+
>
|
|
70
|
+
<template #content="slotProps">
|
|
71
|
+
<table ref="table" role="table" :class="[cx('table'), tableClass]" :style="[tableStyle, slotProps.spacerStyle]" v-bind="{ ...tableProps, ...ptm('table') }">
|
|
72
|
+
<DTTableHeader
|
|
73
|
+
:columnGroup="headerColumnGroup"
|
|
74
|
+
:columns="slotProps.columns"
|
|
75
|
+
:rowGroupMode="rowGroupMode"
|
|
76
|
+
:groupRowsBy="groupRowsBy"
|
|
77
|
+
:groupRowSortField="groupRowSortField"
|
|
78
|
+
:reorderableColumns="reorderableColumns"
|
|
79
|
+
:resizableColumns="resizableColumns"
|
|
80
|
+
:allRowsSelected="allRowsSelected"
|
|
81
|
+
:empty="empty"
|
|
82
|
+
:sortMode="sortMode"
|
|
83
|
+
:sortField="d_sortField"
|
|
84
|
+
:sortOrder="d_sortOrder"
|
|
85
|
+
:multiSortMeta="d_multiSortMeta"
|
|
86
|
+
:filters="d_filters"
|
|
87
|
+
:filtersStore="filters"
|
|
88
|
+
:filterDisplay="filterDisplay"
|
|
89
|
+
:filterButtonProps="headerFilterButtonProps"
|
|
90
|
+
:filterInputProps="filterInputProps"
|
|
91
|
+
:first="d_first"
|
|
92
|
+
@column-click="onColumnHeaderClick($event)"
|
|
93
|
+
@column-mousedown="onColumnHeaderMouseDown($event)"
|
|
94
|
+
@filter-change="onFilterChange"
|
|
95
|
+
@filter-apply="onFilterApply"
|
|
96
|
+
@column-dragstart="onColumnHeaderDragStart($event)"
|
|
97
|
+
@column-dragover="onColumnHeaderDragOver($event)"
|
|
98
|
+
@column-dragleave="onColumnHeaderDragLeave($event)"
|
|
99
|
+
@column-drop="onColumnHeaderDrop($event)"
|
|
100
|
+
@column-resizestart="onColumnResizeStart($event)"
|
|
101
|
+
@checkbox-change="toggleRowsWithCheckbox($event)"
|
|
102
|
+
:unstyled="unstyled"
|
|
103
|
+
:pt="pt"
|
|
104
|
+
/>
|
|
105
|
+
<DTTableBody
|
|
106
|
+
v-if="frozenValue"
|
|
107
|
+
ref="frozenBodyRef"
|
|
108
|
+
:value="frozenValue"
|
|
109
|
+
:frozenRow="true"
|
|
110
|
+
:columns="slotProps.columns"
|
|
111
|
+
:first="d_first"
|
|
112
|
+
:dataKey="dataKey"
|
|
113
|
+
:selection="selection"
|
|
114
|
+
:selectionKeys="d_selectionKeys"
|
|
115
|
+
:selectionMode="selectionMode"
|
|
116
|
+
:contextMenu="contextMenu"
|
|
117
|
+
:contextMenuSelection="contextMenuSelection"
|
|
118
|
+
:rowGroupMode="rowGroupMode"
|
|
119
|
+
:groupRowsBy="groupRowsBy"
|
|
120
|
+
:expandableRowGroups="expandableRowGroups"
|
|
121
|
+
:rowClass="rowClass"
|
|
122
|
+
:rowStyle="rowStyle"
|
|
123
|
+
:editMode="editMode"
|
|
124
|
+
:compareSelectionBy="compareSelectionBy"
|
|
125
|
+
:scrollable="scrollable"
|
|
126
|
+
:expandedRowIcon="expandedRowIcon"
|
|
127
|
+
:collapsedRowIcon="collapsedRowIcon"
|
|
128
|
+
:expandedRows="expandedRows"
|
|
129
|
+
:expandedRowGroups="expandedRowGroups"
|
|
130
|
+
:editingRows="editingRows"
|
|
131
|
+
:editingRowKeys="d_editingRowKeys"
|
|
132
|
+
:templates="$slots"
|
|
133
|
+
:editButtonProps="rowEditButtonProps"
|
|
134
|
+
:isVirtualScrollerDisabled="true"
|
|
135
|
+
@rowgroup-toggle="toggleRowGroup"
|
|
136
|
+
@row-click="onRowClick($event)"
|
|
137
|
+
@row-dblclick="onRowDblClick($event)"
|
|
138
|
+
@row-rightclick="onRowRightClick($event)"
|
|
139
|
+
@row-touchend="onRowTouchEnd"
|
|
140
|
+
@row-keydown="onRowKeyDown"
|
|
141
|
+
@row-mousedown="onRowMouseDown"
|
|
142
|
+
@row-dragstart="onRowDragStart($event)"
|
|
143
|
+
@row-dragover="onRowDragOver($event)"
|
|
144
|
+
@row-dragleave="onRowDragLeave($event)"
|
|
145
|
+
@row-dragend="onRowDragEnd($event)"
|
|
146
|
+
@row-drop="onRowDrop($event)"
|
|
147
|
+
@row-toggle="toggleRow($event)"
|
|
148
|
+
@radio-change="toggleRowWithRadio($event)"
|
|
149
|
+
@checkbox-change="toggleRowWithCheckbox($event)"
|
|
150
|
+
@cell-edit-init="onCellEditInit($event)"
|
|
151
|
+
@cell-edit-complete="onCellEditComplete($event)"
|
|
152
|
+
@cell-edit-cancel="onCellEditCancel($event)"
|
|
153
|
+
@row-edit-init="onRowEditInit($event)"
|
|
154
|
+
@row-edit-save="onRowEditSave($event)"
|
|
155
|
+
@row-edit-cancel="onRowEditCancel($event)"
|
|
156
|
+
:editingMeta="d_editingMeta"
|
|
157
|
+
@editing-meta-change="onEditingMetaChange"
|
|
158
|
+
:unstyled="unstyled"
|
|
159
|
+
:pt="pt"
|
|
160
|
+
/>
|
|
161
|
+
<DTTableBody
|
|
162
|
+
ref="bodyRef"
|
|
163
|
+
:value="dataToRender(slotProps.rows)"
|
|
164
|
+
:class="slotProps.styleClass"
|
|
165
|
+
:columns="slotProps.columns"
|
|
166
|
+
:empty="empty"
|
|
167
|
+
:first="d_first"
|
|
168
|
+
:dataKey="dataKey"
|
|
169
|
+
:selection="selection"
|
|
170
|
+
:selectionKeys="d_selectionKeys"
|
|
171
|
+
:selectionMode="selectionMode"
|
|
172
|
+
:contextMenu="contextMenu"
|
|
173
|
+
:contextMenuSelection="contextMenuSelection"
|
|
174
|
+
:rowGroupMode="rowGroupMode"
|
|
175
|
+
:groupRowsBy="groupRowsBy"
|
|
176
|
+
:expandableRowGroups="expandableRowGroups"
|
|
177
|
+
:rowClass="rowClass"
|
|
178
|
+
:rowStyle="rowStyle"
|
|
179
|
+
:editMode="editMode"
|
|
180
|
+
:compareSelectionBy="compareSelectionBy"
|
|
181
|
+
:scrollable="scrollable"
|
|
182
|
+
:expandedRowIcon="expandedRowIcon"
|
|
183
|
+
:collapsedRowIcon="collapsedRowIcon"
|
|
184
|
+
:expandedRows="expandedRows"
|
|
185
|
+
:expandedRowGroups="expandedRowGroups"
|
|
186
|
+
:editingRows="editingRows"
|
|
187
|
+
:editingRowKeys="d_editingRowKeys"
|
|
188
|
+
:templates="$slots"
|
|
189
|
+
:editButtonProps="rowEditButtonProps"
|
|
190
|
+
:virtualScrollerContentProps="slotProps"
|
|
191
|
+
:isVirtualScrollerDisabled="virtualScrollerDisabled"
|
|
192
|
+
@rowgroup-toggle="toggleRowGroup"
|
|
193
|
+
@row-click="onRowClick($event)"
|
|
194
|
+
@row-dblclick="onRowDblClick($event)"
|
|
195
|
+
@row-rightclick="onRowRightClick($event)"
|
|
196
|
+
@row-touchend="onRowTouchEnd"
|
|
197
|
+
@row-keydown="onRowKeyDown($event, slotProps)"
|
|
198
|
+
@row-mousedown="onRowMouseDown"
|
|
199
|
+
@row-dragstart="onRowDragStart($event)"
|
|
200
|
+
@row-dragover="onRowDragOver($event)"
|
|
201
|
+
@row-dragleave="onRowDragLeave($event)"
|
|
202
|
+
@row-dragend="onRowDragEnd($event)"
|
|
203
|
+
@row-drop="onRowDrop($event)"
|
|
204
|
+
@row-toggle="toggleRow($event)"
|
|
205
|
+
@radio-change="toggleRowWithRadio($event)"
|
|
206
|
+
@checkbox-change="toggleRowWithCheckbox($event)"
|
|
207
|
+
@cell-edit-init="onCellEditInit($event)"
|
|
208
|
+
@cell-edit-complete="onCellEditComplete($event)"
|
|
209
|
+
@cell-edit-cancel="onCellEditCancel($event)"
|
|
210
|
+
@row-edit-init="onRowEditInit($event)"
|
|
211
|
+
@row-edit-save="onRowEditSave($event)"
|
|
212
|
+
@row-edit-cancel="onRowEditCancel($event)"
|
|
213
|
+
:editingMeta="d_editingMeta"
|
|
214
|
+
@editing-meta-change="onEditingMetaChange"
|
|
215
|
+
:unstyled="unstyled"
|
|
216
|
+
:pt="pt"
|
|
217
|
+
/>
|
|
218
|
+
<tbody
|
|
219
|
+
v-if="hasSpacerStyle(slotProps.spacerStyle)"
|
|
220
|
+
:class="cx('virtualScrollerSpacer')"
|
|
221
|
+
:style="{ height: `calc(${slotProps.spacerStyle.height} - ${slotProps.rows.length * slotProps.itemSize}px)` }"
|
|
222
|
+
v-bind="ptm('virtualScrollerSpacer')"
|
|
223
|
+
></tbody>
|
|
224
|
+
<DTTableFooter :columnGroup="footerColumnGroup" :columns="slotProps.columns" :pt="pt" />
|
|
225
|
+
</table>
|
|
226
|
+
</template>
|
|
227
|
+
</DTVirtualScroller>
|
|
228
|
+
</div>
|
|
229
|
+
<DTPaginator
|
|
230
|
+
v-if="paginatorBottom"
|
|
231
|
+
:rows="d_rows"
|
|
232
|
+
:first="d_first"
|
|
233
|
+
:totalRecords="totalRecordsLength"
|
|
234
|
+
:pageLinkSize="pageLinkSize"
|
|
235
|
+
:template="paginatorTemplate"
|
|
236
|
+
:rowsPerPageOptions="rowsPerPageOptions"
|
|
237
|
+
:currentPageReportTemplate="currentPageReportTemplate"
|
|
238
|
+
:class="cx('pcPaginator', { position: 'bottom' })"
|
|
239
|
+
@page="onPage($event)"
|
|
240
|
+
:alwaysShow="alwaysShowPaginator"
|
|
241
|
+
:unstyled="unstyled"
|
|
242
|
+
:pt="ptm('pcPaginator')"
|
|
243
|
+
>
|
|
244
|
+
<template v-if="$slots.paginatorstart" #start>
|
|
245
|
+
<slot name="paginatorstart"></slot>
|
|
246
|
+
</template>
|
|
247
|
+
<template v-if="$slots.paginatorend" #end>
|
|
248
|
+
<slot name="paginatorend"></slot>
|
|
249
|
+
</template>
|
|
250
|
+
<template v-if="$slots.paginatorfirstpagelinkicon" #firstpagelinkicon="slotProps">
|
|
251
|
+
<slot name="paginatorfirstpagelinkicon" :class="slotProps.class"></slot>
|
|
252
|
+
</template>
|
|
253
|
+
<template v-if="$slots.paginatorprevpagelinkicon" #prevpagelinkicon="slotProps">
|
|
254
|
+
<slot name="paginatorprevpagelinkicon" :class="slotProps.class"></slot>
|
|
255
|
+
</template>
|
|
256
|
+
<template v-if="$slots.paginatornextpagelinkicon" #nextpagelinkicon="slotProps">
|
|
257
|
+
<slot name="paginatornextpagelinkicon" :class="slotProps.class"></slot>
|
|
258
|
+
</template>
|
|
259
|
+
<template v-if="$slots.paginatorlastpagelinkicon" #lastpagelinkicon="slotProps">
|
|
260
|
+
<slot name="paginatorlastpagelinkicon" :class="slotProps.class"></slot>
|
|
261
|
+
</template>
|
|
262
|
+
<template v-if="$slots.paginatorjumptopagedropdownicon" #jumptopagedropdownicon="slotProps">
|
|
263
|
+
<slot name="paginatorjumptopagedropdownicon" :class="slotProps.class"></slot>
|
|
264
|
+
</template>
|
|
265
|
+
<template v-if="$slots.paginatorrowsperpagedropdownicon" #rowsperpagedropdownicon="slotProps">
|
|
266
|
+
<slot name="paginatorrowsperpagedropdownicon" :class="slotProps.class"></slot>
|
|
267
|
+
</template>
|
|
268
|
+
</DTPaginator>
|
|
269
|
+
<div v-if="$slots.footer" :class="cx('footer')" v-bind="ptm('footer')">
|
|
270
|
+
<slot name="footer"></slot>
|
|
271
|
+
</div>
|
|
272
|
+
<div ref="resizeHelper" :class="cx('columnResizeIndicator')" style="display: none" v-bind="ptm('columnResizeIndicator')"></div>
|
|
273
|
+
<span v-if="reorderableColumns" ref="reorderIndicatorUp" :class="cx('rowReorderIndicatorUp')" style="position: absolute; display: none" v-bind="ptm('rowReorderIndicatorUp')">
|
|
274
|
+
<component :is="$slots.rowreorderindicatorupicon || $slots.reorderindicatorupicon || 'ArrowDownIcon'" />
|
|
275
|
+
</span>
|
|
276
|
+
<span v-if="reorderableColumns" ref="reorderIndicatorDown" :class="cx('rowReorderIndicatorDown')" style="position: absolute; display: none" v-bind="ptm('rowReorderIndicatorDown')">
|
|
277
|
+
<component :is="$slots.rowreorderindicatordownicon || $slots.reorderindicatordownicon || 'ArrowUpIcon'" />
|
|
278
|
+
</span>
|
|
279
|
+
</div>
|
|
280
|
+
</template>
|
|
281
|
+
|
|
282
|
+
<script>
|
|
283
|
+
import { FilterMatchMode, FilterOperator, FilterService } from '@primevuelab/core/api';
|
|
284
|
+
import { DomHandler, HelperSet, ObjectUtils, UniqueComponentId } from '@primevuelab/core/utils';
|
|
285
|
+
import ArrowDownIcon from '@primevuelab/icons/arrowdown';
|
|
286
|
+
import ArrowUpIcon from '@primevuelab/icons/arrowup';
|
|
287
|
+
import SpinnerIcon from '@primevuelab/icons/spinner';
|
|
288
|
+
import Paginator from 'primevuelab/paginator';
|
|
289
|
+
import VirtualScroller from 'primevuelab/virtualscroller';
|
|
290
|
+
import BaseDataTable from './BaseDataTable.vue';
|
|
291
|
+
import TableBody from './TableBody.vue';
|
|
292
|
+
import TableFooter from './TableFooter.vue';
|
|
293
|
+
import TableHeader from './TableHeader.vue';
|
|
294
|
+
|
|
295
|
+
export default {
|
|
296
|
+
name: 'DataTable',
|
|
297
|
+
extends: BaseDataTable,
|
|
298
|
+
inheritAttrs: false,
|
|
299
|
+
emits: [
|
|
300
|
+
'value-change',
|
|
301
|
+
'update:first',
|
|
302
|
+
'update:rows',
|
|
303
|
+
'page',
|
|
304
|
+
'update:sortField',
|
|
305
|
+
'update:sortOrder',
|
|
306
|
+
'update:multiSortMeta',
|
|
307
|
+
'sort',
|
|
308
|
+
'filter',
|
|
309
|
+
'row-click',
|
|
310
|
+
'row-dblclick',
|
|
311
|
+
'update:selection',
|
|
312
|
+
'row-select',
|
|
313
|
+
'row-unselect',
|
|
314
|
+
'update:contextMenuSelection',
|
|
315
|
+
'row-contextmenu',
|
|
316
|
+
'row-unselect-all',
|
|
317
|
+
'row-select-all',
|
|
318
|
+
'select-all-change',
|
|
319
|
+
'column-resize-end',
|
|
320
|
+
'column-reorder',
|
|
321
|
+
'row-reorder',
|
|
322
|
+
'update:expandedRows',
|
|
323
|
+
'row-collapse',
|
|
324
|
+
'row-expand',
|
|
325
|
+
'update:expandedRowGroups',
|
|
326
|
+
'rowgroup-collapse',
|
|
327
|
+
'rowgroup-expand',
|
|
328
|
+
'update:filters',
|
|
329
|
+
'state-restore',
|
|
330
|
+
'state-save',
|
|
331
|
+
'cell-edit-init',
|
|
332
|
+
'cell-edit-complete',
|
|
333
|
+
'cell-edit-cancel',
|
|
334
|
+
'update:editingRows',
|
|
335
|
+
'row-edit-init',
|
|
336
|
+
'row-edit-save',
|
|
337
|
+
'row-edit-cancel'
|
|
338
|
+
],
|
|
339
|
+
provide() {
|
|
340
|
+
return {
|
|
341
|
+
$columns: this.d_columns,
|
|
342
|
+
$columnGroups: this.d_columnGroups
|
|
343
|
+
};
|
|
344
|
+
},
|
|
345
|
+
data() {
|
|
346
|
+
return {
|
|
347
|
+
d_first: this.first,
|
|
348
|
+
d_rows: this.rows,
|
|
349
|
+
d_sortField: this.sortField,
|
|
350
|
+
d_sortOrder: this.sortOrder,
|
|
351
|
+
d_nullSortOrder: this.nullSortOrder,
|
|
352
|
+
d_multiSortMeta: this.multiSortMeta ? [...this.multiSortMeta] : [],
|
|
353
|
+
d_groupRowsSortMeta: null,
|
|
354
|
+
d_selectionKeys: null,
|
|
355
|
+
d_columnOrder: null,
|
|
356
|
+
d_editingRowKeys: null,
|
|
357
|
+
d_editingMeta: {},
|
|
358
|
+
d_filters: this.cloneFilters(this.filters),
|
|
359
|
+
d_columns: new HelperSet({ type: 'Column' }),
|
|
360
|
+
d_columnGroups: new HelperSet({ type: 'ColumnGroup' })
|
|
361
|
+
};
|
|
362
|
+
},
|
|
363
|
+
rowTouched: false,
|
|
364
|
+
anchorRowIndex: null,
|
|
365
|
+
rangeRowIndex: null,
|
|
366
|
+
documentColumnResizeListener: null,
|
|
367
|
+
documentColumnResizeEndListener: null,
|
|
368
|
+
lastResizeHelperX: null,
|
|
369
|
+
resizeColumnElement: null,
|
|
370
|
+
columnResizing: false,
|
|
371
|
+
colReorderIconWidth: null,
|
|
372
|
+
colReorderIconHeight: null,
|
|
373
|
+
draggedColumn: null,
|
|
374
|
+
draggedColumnElement: null,
|
|
375
|
+
draggedRowIndex: null,
|
|
376
|
+
droppedRowIndex: null,
|
|
377
|
+
rowDragging: null,
|
|
378
|
+
columnWidthsState: null,
|
|
379
|
+
tableWidthState: null,
|
|
380
|
+
columnWidthsRestored: false,
|
|
381
|
+
watch: {
|
|
382
|
+
first(newValue) {
|
|
383
|
+
this.d_first = newValue;
|
|
384
|
+
},
|
|
385
|
+
rows(newValue) {
|
|
386
|
+
this.d_rows = newValue;
|
|
387
|
+
},
|
|
388
|
+
sortField(newValue) {
|
|
389
|
+
this.d_sortField = newValue;
|
|
390
|
+
},
|
|
391
|
+
sortOrder(newValue) {
|
|
392
|
+
this.d_sortOrder = newValue;
|
|
393
|
+
},
|
|
394
|
+
nullSortOrder(newValue) {
|
|
395
|
+
this.d_nullSortOrder = newValue;
|
|
396
|
+
},
|
|
397
|
+
multiSortMeta(newValue) {
|
|
398
|
+
this.d_multiSortMeta = newValue;
|
|
399
|
+
},
|
|
400
|
+
selection: {
|
|
401
|
+
immediate: true,
|
|
402
|
+
handler(newValue) {
|
|
403
|
+
if (this.dataKey) {
|
|
404
|
+
this.updateSelectionKeys(newValue);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
editingRows: {
|
|
409
|
+
immediate: true,
|
|
410
|
+
handler(newValue) {
|
|
411
|
+
if (this.dataKey) {
|
|
412
|
+
this.updateEditingRowKeys(newValue);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
filters: {
|
|
417
|
+
deep: true,
|
|
418
|
+
handler: function (newValue) {
|
|
419
|
+
this.d_filters = this.cloneFilters(newValue);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
mounted() {
|
|
424
|
+
this.$el.setAttribute(this.attributeSelector, '');
|
|
425
|
+
|
|
426
|
+
if (this.isStateful()) {
|
|
427
|
+
this.restoreState();
|
|
428
|
+
|
|
429
|
+
this.resizableColumns && this.restoreColumnWidths();
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
|
|
433
|
+
this.updateEditingRowKeys(this.editingRows);
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
beforeUnmount() {
|
|
437
|
+
this.unbindColumnResizeEvents();
|
|
438
|
+
this.destroyStyleElement();
|
|
439
|
+
|
|
440
|
+
this.d_columns.clear();
|
|
441
|
+
this.d_columnGroups.clear();
|
|
442
|
+
},
|
|
443
|
+
updated() {
|
|
444
|
+
if (this.isStateful()) {
|
|
445
|
+
this.saveState();
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
|
|
449
|
+
this.updateEditingRowKeys(this.editingRows);
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
methods: {
|
|
453
|
+
columnProp(col, prop) {
|
|
454
|
+
return ObjectUtils.getVNodeProp(col, prop);
|
|
455
|
+
},
|
|
456
|
+
onPage(event) {
|
|
457
|
+
this.clearEditingMetaData();
|
|
458
|
+
|
|
459
|
+
this.d_first = event.first;
|
|
460
|
+
this.d_rows = event.rows;
|
|
461
|
+
|
|
462
|
+
let pageEvent = this.createLazyLoadEvent(event);
|
|
463
|
+
|
|
464
|
+
pageEvent.pageCount = event.pageCount;
|
|
465
|
+
pageEvent.page = event.page;
|
|
466
|
+
|
|
467
|
+
this.$emit('update:first', this.d_first);
|
|
468
|
+
this.$emit('update:rows', this.d_rows);
|
|
469
|
+
this.$emit('page', pageEvent);
|
|
470
|
+
this.$nextTick(() => {
|
|
471
|
+
this.$emit('value-change', this.processedData);
|
|
472
|
+
});
|
|
473
|
+
},
|
|
474
|
+
onColumnHeaderClick(e) {
|
|
475
|
+
const event = e.originalEvent;
|
|
476
|
+
const column = e.column;
|
|
477
|
+
|
|
478
|
+
if (this.columnProp(column, 'sortable')) {
|
|
479
|
+
const targetNode = event.target;
|
|
480
|
+
const columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
481
|
+
|
|
482
|
+
if (
|
|
483
|
+
DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true ||
|
|
484
|
+
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'columntitle' ||
|
|
485
|
+
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'columnheadercontent' ||
|
|
486
|
+
DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' ||
|
|
487
|
+
DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' ||
|
|
488
|
+
DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' ||
|
|
489
|
+
(targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="columnfilterbutton"]') && !DomHandler.isClickable(event.target))
|
|
490
|
+
) {
|
|
491
|
+
DomHandler.clearSelection();
|
|
492
|
+
|
|
493
|
+
if (this.sortMode === 'single') {
|
|
494
|
+
if (this.d_sortField === columnField) {
|
|
495
|
+
if (this.removableSort && this.d_sortOrder * -1 === this.defaultSortOrder) {
|
|
496
|
+
this.d_sortOrder = null;
|
|
497
|
+
this.d_sortField = null;
|
|
498
|
+
} else {
|
|
499
|
+
this.d_sortOrder = this.d_sortOrder * -1;
|
|
500
|
+
}
|
|
501
|
+
} else {
|
|
502
|
+
this.d_sortOrder = this.defaultSortOrder;
|
|
503
|
+
this.d_sortField = columnField;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
this.$emit('update:sortField', this.d_sortField);
|
|
507
|
+
this.$emit('update:sortOrder', this.d_sortOrder);
|
|
508
|
+
this.resetPage();
|
|
509
|
+
} else if (this.sortMode === 'multiple') {
|
|
510
|
+
let metaKey = event.metaKey || event.ctrlKey;
|
|
511
|
+
|
|
512
|
+
if (!metaKey) {
|
|
513
|
+
this.d_multiSortMeta = this.d_multiSortMeta.filter((meta) => meta.field === columnField);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
this.addMultiSortField(columnField);
|
|
517
|
+
this.$emit('update:multiSortMeta', this.d_multiSortMeta);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
this.$emit('sort', this.createLazyLoadEvent(event));
|
|
521
|
+
this.$nextTick(() => {
|
|
522
|
+
this.$emit('value-change', this.processedData);
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
sortSingle(value) {
|
|
528
|
+
this.clearEditingMetaData();
|
|
529
|
+
|
|
530
|
+
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
531
|
+
this.d_multiSortMeta = [
|
|
532
|
+
{ field: this.sortField, order: this.sortOrder || this.defaultSortOrder },
|
|
533
|
+
{ field: this.d_sortField, order: this.d_sortOrder }
|
|
534
|
+
];
|
|
535
|
+
|
|
536
|
+
return this.sortMultiple(value);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
let data = [...value];
|
|
540
|
+
let resolvedFieldData = new Map();
|
|
541
|
+
|
|
542
|
+
for (let item of data) {
|
|
543
|
+
resolvedFieldData.set(item, ObjectUtils.resolveFieldData(item, this.d_sortField));
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
const comparer = ObjectUtils.localeComparator();
|
|
547
|
+
|
|
548
|
+
data.sort((data1, data2) => {
|
|
549
|
+
let value1 = resolvedFieldData.get(data1);
|
|
550
|
+
let value2 = resolvedFieldData.get(data2);
|
|
551
|
+
|
|
552
|
+
return ObjectUtils.sort(value1, value2, this.d_sortOrder, comparer, this.d_nullSortOrder);
|
|
553
|
+
});
|
|
554
|
+
|
|
555
|
+
return data;
|
|
556
|
+
},
|
|
557
|
+
sortMultiple(value) {
|
|
558
|
+
this.clearEditingMetaData();
|
|
559
|
+
|
|
560
|
+
if (this.groupRowsBy && (this.d_groupRowsSortMeta || (this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field))) {
|
|
561
|
+
const firstSortMeta = this.d_multiSortMeta[0];
|
|
562
|
+
|
|
563
|
+
!this.d_groupRowsSortMeta && (this.d_groupRowsSortMeta = firstSortMeta);
|
|
564
|
+
|
|
565
|
+
if (firstSortMeta.field !== this.d_groupRowsSortMeta.field) {
|
|
566
|
+
this.d_multiSortMeta = [this.d_groupRowsSortMeta, ...this.d_multiSortMeta];
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
let data = [...value];
|
|
571
|
+
|
|
572
|
+
data.sort((data1, data2) => {
|
|
573
|
+
return this.multisortField(data1, data2, 0);
|
|
574
|
+
});
|
|
575
|
+
|
|
576
|
+
return data;
|
|
577
|
+
},
|
|
578
|
+
multisortField(data1, data2, index) {
|
|
579
|
+
const value1 = ObjectUtils.resolveFieldData(data1, this.d_multiSortMeta[index].field);
|
|
580
|
+
const value2 = ObjectUtils.resolveFieldData(data2, this.d_multiSortMeta[index].field);
|
|
581
|
+
const comparer = ObjectUtils.localeComparator();
|
|
582
|
+
|
|
583
|
+
if (value1 === value2) {
|
|
584
|
+
return this.d_multiSortMeta.length - 1 > index ? this.multisortField(data1, data2, index + 1) : 0;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
return ObjectUtils.sort(value1, value2, this.d_multiSortMeta[index].order, comparer, this.d_nullSortOrder);
|
|
588
|
+
},
|
|
589
|
+
addMultiSortField(field) {
|
|
590
|
+
let index = this.d_multiSortMeta.findIndex((meta) => meta.field === field);
|
|
591
|
+
|
|
592
|
+
if (index >= 0) {
|
|
593
|
+
if (this.removableSort && this.d_multiSortMeta[index].order * -1 === this.defaultSortOrder) this.d_multiSortMeta.splice(index, 1);
|
|
594
|
+
else this.d_multiSortMeta[index] = { field: field, order: this.d_multiSortMeta[index].order * -1 };
|
|
595
|
+
} else {
|
|
596
|
+
this.d_multiSortMeta.push({ field: field, order: this.defaultSortOrder });
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
this.d_multiSortMeta = [...this.d_multiSortMeta];
|
|
600
|
+
},
|
|
601
|
+
getActiveFilters(filters) {
|
|
602
|
+
const removeEmptyFilters = ([key, value]) => {
|
|
603
|
+
if (value.constraints) {
|
|
604
|
+
const filteredConstraints = value.constraints.filter((constraint) => constraint.value !== null);
|
|
605
|
+
|
|
606
|
+
if (filteredConstraints.length > 0) {
|
|
607
|
+
return [key, { ...value, constraints: filteredConstraints }];
|
|
608
|
+
}
|
|
609
|
+
} else if (value.value !== null) {
|
|
610
|
+
return [key, value];
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
return undefined;
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
const filterValidEntries = (entry) => entry !== undefined;
|
|
617
|
+
const entries = Object.entries(filters).map(removeEmptyFilters).filter(filterValidEntries);
|
|
618
|
+
|
|
619
|
+
return Object.fromEntries(entries);
|
|
620
|
+
},
|
|
621
|
+
filter(data) {
|
|
622
|
+
if (!data) {
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
this.clearEditingMetaData();
|
|
627
|
+
|
|
628
|
+
let activeFilters = this.getActiveFilters(this.filters);
|
|
629
|
+
let globalFilterFieldsArray;
|
|
630
|
+
|
|
631
|
+
if (activeFilters['global']) {
|
|
632
|
+
globalFilterFieldsArray = this.globalFilterFields || this.columns.map((col) => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
let filteredValue = [];
|
|
636
|
+
|
|
637
|
+
for (let i = 0; i < data.length; i++) {
|
|
638
|
+
let localMatch = true;
|
|
639
|
+
let globalMatch = false;
|
|
640
|
+
let localFiltered = false;
|
|
641
|
+
|
|
642
|
+
for (let prop in activeFilters) {
|
|
643
|
+
if (Object.prototype.hasOwnProperty.call(activeFilters, prop) && prop !== 'global') {
|
|
644
|
+
localFiltered = true;
|
|
645
|
+
let filterField = prop;
|
|
646
|
+
let filterMeta = activeFilters[filterField];
|
|
647
|
+
|
|
648
|
+
if (filterMeta.operator) {
|
|
649
|
+
for (let filterConstraint of filterMeta.constraints) {
|
|
650
|
+
localMatch = this.executeLocalFilter(filterField, data[i], filterConstraint);
|
|
651
|
+
|
|
652
|
+
if ((filterMeta.operator === FilterOperator.OR && localMatch) || (filterMeta.operator === FilterOperator.AND && !localMatch)) {
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
} else {
|
|
657
|
+
localMatch = this.executeLocalFilter(filterField, data[i], filterMeta);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
if (!localMatch) {
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
if (localMatch && activeFilters['global'] && !globalMatch && globalFilterFieldsArray) {
|
|
667
|
+
for (let j = 0; j < globalFilterFieldsArray.length; j++) {
|
|
668
|
+
let globalFilterField = globalFilterFieldsArray[j];
|
|
669
|
+
|
|
670
|
+
globalMatch = FilterService.filters[activeFilters['global'].matchMode || FilterMatchMode.CONTAINS](ObjectUtils.resolveFieldData(data[i], globalFilterField), activeFilters['global'].value, this.filterLocale);
|
|
671
|
+
|
|
672
|
+
if (globalMatch) {
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
let matches;
|
|
679
|
+
|
|
680
|
+
if (activeFilters['global']) {
|
|
681
|
+
matches = localFiltered ? localFiltered && localMatch && globalMatch : globalMatch;
|
|
682
|
+
} else {
|
|
683
|
+
matches = localFiltered && localMatch;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
if (matches) {
|
|
687
|
+
filteredValue.push(data[i]);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
if (filteredValue.length === this.value.length || Object.keys(activeFilters).length == 0) {
|
|
692
|
+
filteredValue = data;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
let filterEvent = this.createLazyLoadEvent();
|
|
696
|
+
|
|
697
|
+
filterEvent.filteredValue = filteredValue;
|
|
698
|
+
this.$emit('filter', filterEvent);
|
|
699
|
+
this.$nextTick(() => {
|
|
700
|
+
this.$emit('value-change', this.processedData);
|
|
701
|
+
});
|
|
702
|
+
|
|
703
|
+
return filteredValue;
|
|
704
|
+
},
|
|
705
|
+
executeLocalFilter(field, rowData, filterMeta) {
|
|
706
|
+
let filterValue = filterMeta.value;
|
|
707
|
+
let filterMatchMode = filterMeta.matchMode || FilterMatchMode.STARTS_WITH;
|
|
708
|
+
let dataFieldValue = ObjectUtils.resolveFieldData(rowData, field);
|
|
709
|
+
let filterConstraint = FilterService.filters[filterMatchMode];
|
|
710
|
+
|
|
711
|
+
return filterConstraint(dataFieldValue, filterValue, this.filterLocale);
|
|
712
|
+
},
|
|
713
|
+
onRowClick(e) {
|
|
714
|
+
const event = e.originalEvent;
|
|
715
|
+
const body = this.$refs.bodyRef && this.$refs.bodyRef.$el;
|
|
716
|
+
const focusedItem = DomHandler.findSingle(body, 'tr[data-p-selectable-row="true"][tabindex="0"]');
|
|
717
|
+
|
|
718
|
+
if (DomHandler.isClickable(event.target)) {
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
this.$emit('row-click', e);
|
|
723
|
+
|
|
724
|
+
if (this.selectionMode) {
|
|
725
|
+
const rowData = e.data;
|
|
726
|
+
const rowIndex = this.d_first + e.index;
|
|
727
|
+
|
|
728
|
+
if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
|
|
729
|
+
DomHandler.clearSelection();
|
|
730
|
+
this.rangeRowIndex = rowIndex;
|
|
731
|
+
this.selectRange(event);
|
|
732
|
+
} else {
|
|
733
|
+
const selected = this.isSelected(rowData);
|
|
734
|
+
const metaSelection = this.rowTouched ? false : this.metaKeySelection;
|
|
735
|
+
|
|
736
|
+
this.anchorRowIndex = rowIndex;
|
|
737
|
+
this.rangeRowIndex = rowIndex;
|
|
738
|
+
|
|
739
|
+
if (metaSelection) {
|
|
740
|
+
let metaKey = event.metaKey || event.ctrlKey;
|
|
741
|
+
|
|
742
|
+
if (selected && metaKey) {
|
|
743
|
+
if (this.isSingleSelectionMode()) {
|
|
744
|
+
this.$emit('update:selection', null);
|
|
745
|
+
} else {
|
|
746
|
+
const selectionIndex = this.findIndexInSelection(rowData);
|
|
747
|
+
const _selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
748
|
+
|
|
749
|
+
this.$emit('update:selection', _selection);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
this.$emit('row-unselect', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
753
|
+
} else {
|
|
754
|
+
if (this.isSingleSelectionMode()) {
|
|
755
|
+
this.$emit('update:selection', rowData);
|
|
756
|
+
} else if (this.isMultipleSelectionMode()) {
|
|
757
|
+
let _selection = metaKey ? this.selection || [] : [];
|
|
758
|
+
|
|
759
|
+
_selection = [..._selection, rowData];
|
|
760
|
+
this.$emit('update:selection', _selection);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
this.$emit('row-select', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
764
|
+
}
|
|
765
|
+
} else {
|
|
766
|
+
if (this.selectionMode === 'single') {
|
|
767
|
+
if (selected) {
|
|
768
|
+
this.$emit('update:selection', null);
|
|
769
|
+
this.$emit('row-unselect', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
770
|
+
} else {
|
|
771
|
+
this.$emit('update:selection', rowData);
|
|
772
|
+
this.$emit('row-select', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
773
|
+
}
|
|
774
|
+
} else if (this.selectionMode === 'multiple') {
|
|
775
|
+
if (selected) {
|
|
776
|
+
const selectionIndex = this.findIndexInSelection(rowData);
|
|
777
|
+
const _selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
778
|
+
|
|
779
|
+
this.$emit('update:selection', _selection);
|
|
780
|
+
this.$emit('row-unselect', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
781
|
+
} else {
|
|
782
|
+
const _selection = this.selection ? [...this.selection, rowData] : [rowData];
|
|
783
|
+
|
|
784
|
+
this.$emit('update:selection', _selection);
|
|
785
|
+
this.$emit('row-select', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
this.rowTouched = false;
|
|
793
|
+
|
|
794
|
+
if (focusedItem) {
|
|
795
|
+
if (event.target?.getAttribute('data-pc-section') === 'rowtoggleicon' || event.target?.parentElement?.getAttribute('data-pc-section') === 'rowtoggleicon') return;
|
|
796
|
+
|
|
797
|
+
const targetRow = event.target?.closest('tr[data-p-selectable-row="true"]');
|
|
798
|
+
|
|
799
|
+
focusedItem.tabIndex = '-1';
|
|
800
|
+
targetRow.tabIndex = '0';
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
onRowDblClick(e) {
|
|
804
|
+
const event = e.originalEvent;
|
|
805
|
+
|
|
806
|
+
if (DomHandler.isClickable(event.target)) {
|
|
807
|
+
return;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
this.$emit('row-dblclick', e);
|
|
811
|
+
},
|
|
812
|
+
onRowRightClick(event) {
|
|
813
|
+
if (this.contextMenu) {
|
|
814
|
+
DomHandler.clearSelection();
|
|
815
|
+
event.originalEvent.target.focus();
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
this.$emit('update:contextMenuSelection', event.data);
|
|
819
|
+
this.$emit('row-contextmenu', event);
|
|
820
|
+
},
|
|
821
|
+
onRowTouchEnd() {
|
|
822
|
+
this.rowTouched = true;
|
|
823
|
+
},
|
|
824
|
+
onRowKeyDown(e, slotProps) {
|
|
825
|
+
const event = e.originalEvent;
|
|
826
|
+
const rowData = e.data;
|
|
827
|
+
const rowIndex = e.index;
|
|
828
|
+
const metaKey = event.metaKey || event.ctrlKey;
|
|
829
|
+
|
|
830
|
+
if (this.selectionMode) {
|
|
831
|
+
const row = event.target;
|
|
832
|
+
|
|
833
|
+
switch (event.code) {
|
|
834
|
+
case 'ArrowDown':
|
|
835
|
+
this.onArrowDownKey(event, row, rowIndex, slotProps);
|
|
836
|
+
break;
|
|
837
|
+
|
|
838
|
+
case 'ArrowUp':
|
|
839
|
+
this.onArrowUpKey(event, row, rowIndex, slotProps);
|
|
840
|
+
break;
|
|
841
|
+
|
|
842
|
+
case 'Home':
|
|
843
|
+
this.onHomeKey(event, row, rowIndex, slotProps);
|
|
844
|
+
break;
|
|
845
|
+
|
|
846
|
+
case 'End':
|
|
847
|
+
this.onEndKey(event, row, rowIndex, slotProps);
|
|
848
|
+
break;
|
|
849
|
+
|
|
850
|
+
case 'Enter':
|
|
851
|
+
case 'NumpadEnter':
|
|
852
|
+
this.onEnterKey(event, rowData, rowIndex);
|
|
853
|
+
break;
|
|
854
|
+
|
|
855
|
+
case 'Space':
|
|
856
|
+
this.onSpaceKey(event, rowData, rowIndex, slotProps);
|
|
857
|
+
break;
|
|
858
|
+
|
|
859
|
+
case 'Tab':
|
|
860
|
+
this.onTabKey(event, rowIndex);
|
|
861
|
+
break;
|
|
862
|
+
|
|
863
|
+
default:
|
|
864
|
+
if (event.code === 'KeyA' && metaKey && this.isMultipleSelectionMode()) {
|
|
865
|
+
const data = this.dataToRender(slotProps.rows);
|
|
866
|
+
|
|
867
|
+
this.$emit('update:selection', data);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
event.preventDefault();
|
|
871
|
+
|
|
872
|
+
break;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
onArrowDownKey(event, row, rowIndex, slotProps) {
|
|
877
|
+
const nextRow = this.findNextSelectableRow(row);
|
|
878
|
+
|
|
879
|
+
nextRow && this.focusRowChange(row, nextRow);
|
|
880
|
+
|
|
881
|
+
if (event.shiftKey) {
|
|
882
|
+
const data = this.dataToRender(slotProps.rows);
|
|
883
|
+
const nextRowIndex = rowIndex + 1 >= data.length ? data.length - 1 : rowIndex + 1;
|
|
884
|
+
|
|
885
|
+
this.onRowClick({ originalEvent: event, data: data[nextRowIndex], index: nextRowIndex });
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
event.preventDefault();
|
|
889
|
+
},
|
|
890
|
+
onArrowUpKey(event, row, rowIndex, slotProps) {
|
|
891
|
+
const prevRow = this.findPrevSelectableRow(row);
|
|
892
|
+
|
|
893
|
+
prevRow && this.focusRowChange(row, prevRow);
|
|
894
|
+
|
|
895
|
+
if (event.shiftKey) {
|
|
896
|
+
const data = this.dataToRender(slotProps.rows);
|
|
897
|
+
const prevRowIndex = rowIndex - 1 <= 0 ? 0 : rowIndex - 1;
|
|
898
|
+
|
|
899
|
+
this.onRowClick({ originalEvent: event, data: data[prevRowIndex], index: prevRowIndex });
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
event.preventDefault();
|
|
903
|
+
},
|
|
904
|
+
onHomeKey(event, row, rowIndex, slotProps) {
|
|
905
|
+
const firstRow = this.findFirstSelectableRow();
|
|
906
|
+
|
|
907
|
+
firstRow && this.focusRowChange(row, firstRow);
|
|
908
|
+
|
|
909
|
+
if (event.ctrlKey && event.shiftKey) {
|
|
910
|
+
const data = this.dataToRender(slotProps.rows);
|
|
911
|
+
|
|
912
|
+
this.$emit('update:selection', data.slice(0, rowIndex + 1));
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
event.preventDefault();
|
|
916
|
+
},
|
|
917
|
+
onEndKey(event, row, rowIndex, slotProps) {
|
|
918
|
+
const lastRow = this.findLastSelectableRow();
|
|
919
|
+
|
|
920
|
+
lastRow && this.focusRowChange(row, lastRow);
|
|
921
|
+
|
|
922
|
+
if (event.ctrlKey && event.shiftKey) {
|
|
923
|
+
const data = this.dataToRender(slotProps.rows);
|
|
924
|
+
|
|
925
|
+
this.$emit('update:selection', data.slice(rowIndex, data.length));
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
event.preventDefault();
|
|
929
|
+
},
|
|
930
|
+
onEnterKey(event, rowData, rowIndex) {
|
|
931
|
+
this.onRowClick({ originalEvent: event, data: rowData, index: rowIndex });
|
|
932
|
+
event.preventDefault();
|
|
933
|
+
},
|
|
934
|
+
onSpaceKey(event, rowData, rowIndex, slotProps) {
|
|
935
|
+
this.onEnterKey(event, rowData, rowIndex);
|
|
936
|
+
|
|
937
|
+
if (event.shiftKey && this.selection !== null) {
|
|
938
|
+
const data = this.dataToRender(slotProps.rows);
|
|
939
|
+
let index;
|
|
940
|
+
|
|
941
|
+
if (this.selection.length > 0) {
|
|
942
|
+
let firstSelectedRowIndex, lastSelectedRowIndex;
|
|
943
|
+
|
|
944
|
+
firstSelectedRowIndex = ObjectUtils.findIndexInList(this.selection[0], data);
|
|
945
|
+
lastSelectedRowIndex = ObjectUtils.findIndexInList(this.selection[this.selection.length - 1], data);
|
|
946
|
+
|
|
947
|
+
index = rowIndex <= firstSelectedRowIndex ? lastSelectedRowIndex : firstSelectedRowIndex;
|
|
948
|
+
} else {
|
|
949
|
+
index = ObjectUtils.findIndexInList(this.selection, data);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
const _selection = index !== rowIndex ? data.slice(Math.min(index, rowIndex), Math.max(index, rowIndex) + 1) : rowData;
|
|
953
|
+
|
|
954
|
+
this.$emit('update:selection', _selection);
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
onTabKey(event, rowIndex) {
|
|
958
|
+
const body = this.$refs.bodyRef && this.$refs.bodyRef.$el;
|
|
959
|
+
const rows = DomHandler.find(body, 'tr[data-p-selectable-row="true"]');
|
|
960
|
+
|
|
961
|
+
if (event.code === 'Tab' && rows && rows.length > 0) {
|
|
962
|
+
const firstSelectedRow = DomHandler.findSingle(body, 'tr[data-p-selected="true"]');
|
|
963
|
+
const focusedItem = DomHandler.findSingle(body, 'tr[data-p-selectable-row="true"][tabindex="0"]');
|
|
964
|
+
|
|
965
|
+
if (firstSelectedRow) {
|
|
966
|
+
firstSelectedRow.tabIndex = '0';
|
|
967
|
+
focusedItem && focusedItem !== firstSelectedRow && (focusedItem.tabIndex = '-1');
|
|
968
|
+
} else {
|
|
969
|
+
rows[0].tabIndex = '0';
|
|
970
|
+
focusedItem !== rows[0] && (rows[rowIndex].tabIndex = '-1');
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
findNextSelectableRow(row) {
|
|
975
|
+
let nextRow = row.nextElementSibling;
|
|
976
|
+
|
|
977
|
+
if (nextRow) {
|
|
978
|
+
if (DomHandler.getAttribute(nextRow, 'data-p-selectable-row') === true) return nextRow;
|
|
979
|
+
else return this.findNextSelectableRow(nextRow);
|
|
980
|
+
} else {
|
|
981
|
+
return null;
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
findPrevSelectableRow(row) {
|
|
985
|
+
let prevRow = row.previousElementSibling;
|
|
986
|
+
|
|
987
|
+
if (prevRow) {
|
|
988
|
+
if (DomHandler.getAttribute(prevRow, 'data-p-selectable-row') === true) return prevRow;
|
|
989
|
+
else return this.findPrevSelectableRow(prevRow);
|
|
990
|
+
} else {
|
|
991
|
+
return null;
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
findFirstSelectableRow() {
|
|
995
|
+
const firstRow = DomHandler.findSingle(this.$refs.table, 'tr[data-p-selectable-row="true"]');
|
|
996
|
+
|
|
997
|
+
return firstRow;
|
|
998
|
+
},
|
|
999
|
+
findLastSelectableRow() {
|
|
1000
|
+
const rows = DomHandler.find(this.$refs.table, 'tr[data-p-selectable-row="true"]');
|
|
1001
|
+
|
|
1002
|
+
return rows ? rows[rows.length - 1] : null;
|
|
1003
|
+
},
|
|
1004
|
+
focusRowChange(firstFocusableRow, currentFocusedRow) {
|
|
1005
|
+
firstFocusableRow.tabIndex = '-1';
|
|
1006
|
+
currentFocusedRow.tabIndex = '0';
|
|
1007
|
+
DomHandler.focus(currentFocusedRow);
|
|
1008
|
+
},
|
|
1009
|
+
toggleRowWithRadio(event) {
|
|
1010
|
+
const rowData = event.data;
|
|
1011
|
+
|
|
1012
|
+
if (this.isSelected(rowData)) {
|
|
1013
|
+
this.$emit('update:selection', null);
|
|
1014
|
+
this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
|
|
1015
|
+
} else {
|
|
1016
|
+
this.$emit('update:selection', rowData);
|
|
1017
|
+
this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
toggleRowWithCheckbox(event) {
|
|
1021
|
+
const rowData = event.data;
|
|
1022
|
+
|
|
1023
|
+
if (this.isSelected(rowData)) {
|
|
1024
|
+
const selectionIndex = this.findIndexInSelection(rowData);
|
|
1025
|
+
const _selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
1026
|
+
|
|
1027
|
+
this.$emit('update:selection', _selection);
|
|
1028
|
+
this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
|
|
1029
|
+
} else {
|
|
1030
|
+
let _selection = this.selection ? [...this.selection] : [];
|
|
1031
|
+
|
|
1032
|
+
_selection = [..._selection, rowData];
|
|
1033
|
+
this.$emit('update:selection', _selection);
|
|
1034
|
+
this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
toggleRowsWithCheckbox(event) {
|
|
1038
|
+
if (this.selectAll !== null) {
|
|
1039
|
+
this.$emit('select-all-change', event);
|
|
1040
|
+
} else {
|
|
1041
|
+
const { originalEvent, checked } = event;
|
|
1042
|
+
let _selection = [];
|
|
1043
|
+
|
|
1044
|
+
if (checked) {
|
|
1045
|
+
_selection = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
|
|
1046
|
+
this.$emit('row-select-all', { originalEvent, data: _selection });
|
|
1047
|
+
} else {
|
|
1048
|
+
this.$emit('row-unselect-all', { originalEvent });
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
this.$emit('update:selection', _selection);
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
isSingleSelectionMode() {
|
|
1055
|
+
return this.selectionMode === 'single';
|
|
1056
|
+
},
|
|
1057
|
+
isMultipleSelectionMode() {
|
|
1058
|
+
return this.selectionMode === 'multiple';
|
|
1059
|
+
},
|
|
1060
|
+
isSelected(rowData) {
|
|
1061
|
+
if (rowData && this.selection) {
|
|
1062
|
+
if (this.dataKey) {
|
|
1063
|
+
return this.d_selectionKeys ? this.d_selectionKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
1064
|
+
} else {
|
|
1065
|
+
if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;
|
|
1066
|
+
else return this.equals(rowData, this.selection);
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
return false;
|
|
1071
|
+
},
|
|
1072
|
+
findIndexInSelection(rowData) {
|
|
1073
|
+
return this.findIndex(rowData, this.selection);
|
|
1074
|
+
},
|
|
1075
|
+
findIndex(rowData, collection) {
|
|
1076
|
+
let index = -1;
|
|
1077
|
+
|
|
1078
|
+
if (collection && collection.length) {
|
|
1079
|
+
for (let i = 0; i < collection.length; i++) {
|
|
1080
|
+
if (this.equals(rowData, collection[i])) {
|
|
1081
|
+
index = i;
|
|
1082
|
+
break;
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
return index;
|
|
1088
|
+
},
|
|
1089
|
+
updateSelectionKeys(selection) {
|
|
1090
|
+
this.d_selectionKeys = {};
|
|
1091
|
+
|
|
1092
|
+
if (Array.isArray(selection)) {
|
|
1093
|
+
for (let data of selection) {
|
|
1094
|
+
this.d_selectionKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
1095
|
+
}
|
|
1096
|
+
} else {
|
|
1097
|
+
this.d_selectionKeys[String(ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
updateEditingRowKeys(editingRows) {
|
|
1101
|
+
if (editingRows && editingRows.length) {
|
|
1102
|
+
this.d_editingRowKeys = {};
|
|
1103
|
+
|
|
1104
|
+
for (let data of editingRows) {
|
|
1105
|
+
this.d_editingRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
1106
|
+
}
|
|
1107
|
+
} else {
|
|
1108
|
+
this.d_editingRowKeys = null;
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
equals(data1, data2) {
|
|
1112
|
+
return this.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.dataKey);
|
|
1113
|
+
},
|
|
1114
|
+
selectRange(event) {
|
|
1115
|
+
let rangeStart, rangeEnd;
|
|
1116
|
+
|
|
1117
|
+
if (this.rangeRowIndex > this.anchorRowIndex) {
|
|
1118
|
+
rangeStart = this.anchorRowIndex;
|
|
1119
|
+
rangeEnd = this.rangeRowIndex;
|
|
1120
|
+
} else if (this.rangeRowIndex < this.anchorRowIndex) {
|
|
1121
|
+
rangeStart = this.rangeRowIndex;
|
|
1122
|
+
rangeEnd = this.anchorRowIndex;
|
|
1123
|
+
} else {
|
|
1124
|
+
rangeStart = this.rangeRowIndex;
|
|
1125
|
+
rangeEnd = this.rangeRowIndex;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
if (this.lazy && this.paginator) {
|
|
1129
|
+
rangeStart -= this.first;
|
|
1130
|
+
rangeEnd -= this.first;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
const value = this.processedData;
|
|
1134
|
+
let _selection = [];
|
|
1135
|
+
|
|
1136
|
+
for (let i = rangeStart; i <= rangeEnd; i++) {
|
|
1137
|
+
let rangeRowData = value[i];
|
|
1138
|
+
|
|
1139
|
+
_selection.push(rangeRowData);
|
|
1140
|
+
this.$emit('row-select', { originalEvent: event, data: rangeRowData, type: 'row' });
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
this.$emit('update:selection', _selection);
|
|
1144
|
+
},
|
|
1145
|
+
exportCSV(options, data) {
|
|
1146
|
+
let csv = '\ufeff';
|
|
1147
|
+
|
|
1148
|
+
if (!data) {
|
|
1149
|
+
data = this.processedData;
|
|
1150
|
+
|
|
1151
|
+
if (options && options.selectionOnly) data = this.selection || [];
|
|
1152
|
+
else if (this.frozenValue) data = data ? [...this.frozenValue, ...data] : this.frozenValue;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
//headers
|
|
1156
|
+
let headerInitiated = false;
|
|
1157
|
+
|
|
1158
|
+
for (let i = 0; i < this.columns.length; i++) {
|
|
1159
|
+
let column = this.columns[i];
|
|
1160
|
+
|
|
1161
|
+
if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
|
|
1162
|
+
if (headerInitiated) csv += this.csvSeparator;
|
|
1163
|
+
else headerInitiated = true;
|
|
1164
|
+
|
|
1165
|
+
csv += '"' + (this.columnProp(column, 'exportHeader') || this.columnProp(column, 'header') || this.columnProp(column, 'field')) + '"';
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
//body
|
|
1170
|
+
if (data) {
|
|
1171
|
+
data.forEach((record) => {
|
|
1172
|
+
csv += '\n';
|
|
1173
|
+
let rowInitiated = false;
|
|
1174
|
+
|
|
1175
|
+
for (let i = 0; i < this.columns.length; i++) {
|
|
1176
|
+
let column = this.columns[i];
|
|
1177
|
+
|
|
1178
|
+
if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
|
|
1179
|
+
if (rowInitiated) csv += this.csvSeparator;
|
|
1180
|
+
else rowInitiated = true;
|
|
1181
|
+
|
|
1182
|
+
let cellData = ObjectUtils.resolveFieldData(record, this.columnProp(column, 'field'));
|
|
1183
|
+
|
|
1184
|
+
if (cellData != null) {
|
|
1185
|
+
if (this.exportFunction) {
|
|
1186
|
+
cellData = this.exportFunction({
|
|
1187
|
+
data: cellData,
|
|
1188
|
+
field: this.columnProp(column, 'field')
|
|
1189
|
+
});
|
|
1190
|
+
} else cellData = String(cellData).replace(/"/g, '""');
|
|
1191
|
+
} else cellData = '';
|
|
1192
|
+
|
|
1193
|
+
csv += '"' + cellData + '"';
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
//footers
|
|
1200
|
+
let footerInitiated = false;
|
|
1201
|
+
|
|
1202
|
+
for (let i = 0; i < this.columns.length; i++) {
|
|
1203
|
+
let column = this.columns[i];
|
|
1204
|
+
|
|
1205
|
+
if (i === 0) csv += '\n';
|
|
1206
|
+
|
|
1207
|
+
if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'exportFooter')) {
|
|
1208
|
+
if (footerInitiated) csv += this.csvSeparator;
|
|
1209
|
+
else footerInitiated = true;
|
|
1210
|
+
|
|
1211
|
+
csv += '"' + (this.columnProp(column, 'exportFooter') || this.columnProp(column, 'footer') || this.columnProp(column, 'field')) + '"';
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
DomHandler.exportCSV(csv, this.exportFilename);
|
|
1216
|
+
},
|
|
1217
|
+
resetPage() {
|
|
1218
|
+
this.d_first = 0;
|
|
1219
|
+
this.$emit('update:first', this.d_first);
|
|
1220
|
+
},
|
|
1221
|
+
onColumnResizeStart(event) {
|
|
1222
|
+
let containerLeft = DomHandler.getOffset(this.$el).left;
|
|
1223
|
+
|
|
1224
|
+
this.resizeColumnElement = event.target.parentElement;
|
|
1225
|
+
this.columnResizing = true;
|
|
1226
|
+
this.lastResizeHelperX = event.pageX - containerLeft + this.$el.scrollLeft;
|
|
1227
|
+
|
|
1228
|
+
this.bindColumnResizeEvents();
|
|
1229
|
+
},
|
|
1230
|
+
onColumnResize(event) {
|
|
1231
|
+
let containerLeft = DomHandler.getOffset(this.$el).left;
|
|
1232
|
+
|
|
1233
|
+
this.$el.setAttribute('data-p-unselectable-text', 'true');
|
|
1234
|
+
!this.isUnstyled && DomHandler.addStyles(this.$el, { 'user-select': 'none' });
|
|
1235
|
+
this.$refs.resizeHelper.style.height = this.$el.offsetHeight + 'px';
|
|
1236
|
+
this.$refs.resizeHelper.style.top = 0 + 'px';
|
|
1237
|
+
this.$refs.resizeHelper.style.left = event.pageX - containerLeft + this.$el.scrollLeft + 'px';
|
|
1238
|
+
|
|
1239
|
+
this.$refs.resizeHelper.style.display = 'block';
|
|
1240
|
+
},
|
|
1241
|
+
onColumnResizeEnd() {
|
|
1242
|
+
let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
|
|
1243
|
+
let columnWidth = this.resizeColumnElement.offsetWidth;
|
|
1244
|
+
let newColumnWidth = columnWidth + delta;
|
|
1245
|
+
let minWidth = this.resizeColumnElement.style.minWidth || 15;
|
|
1246
|
+
|
|
1247
|
+
if (columnWidth + delta > parseInt(minWidth, 10)) {
|
|
1248
|
+
if (this.columnResizeMode === 'fit') {
|
|
1249
|
+
let nextColumn = this.resizeColumnElement.nextElementSibling;
|
|
1250
|
+
let nextColumnWidth = nextColumn.offsetWidth - delta;
|
|
1251
|
+
|
|
1252
|
+
if (newColumnWidth > 15 && nextColumnWidth > 15) {
|
|
1253
|
+
this.resizeTableCells(newColumnWidth, nextColumnWidth);
|
|
1254
|
+
}
|
|
1255
|
+
} else if (this.columnResizeMode === 'expand') {
|
|
1256
|
+
const tableWidth = this.$refs.table.offsetWidth + delta + 'px';
|
|
1257
|
+
|
|
1258
|
+
const updateTableWidth = (el) => {
|
|
1259
|
+
!!el && (el.style.width = el.style.minWidth = tableWidth);
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
// Reasoning: resize table cells before updating the table width so that it can use existing computed cell widths and adjust only the one column.
|
|
1263
|
+
this.resizeTableCells(newColumnWidth);
|
|
1264
|
+
updateTableWidth(this.$refs.table);
|
|
1265
|
+
|
|
1266
|
+
if (!this.virtualScrollerDisabled) {
|
|
1267
|
+
const body = this.$refs.bodyRef && this.$refs.bodyRef.$el;
|
|
1268
|
+
const frozenBody = this.$refs.frozenBodyRef && this.$refs.frozenBodyRef.$el;
|
|
1269
|
+
|
|
1270
|
+
updateTableWidth(body);
|
|
1271
|
+
updateTableWidth(frozenBody);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
this.$emit('column-resize-end', {
|
|
1276
|
+
element: this.resizeColumnElement,
|
|
1277
|
+
delta: delta
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
this.$refs.resizeHelper.style.display = 'none';
|
|
1282
|
+
this.resizeColumn = null;
|
|
1283
|
+
this.$el.removeAttribute('data-p-unselectable-text');
|
|
1284
|
+
!this.isUnstyled && (this.$el.style['user-select'] = '');
|
|
1285
|
+
|
|
1286
|
+
this.unbindColumnResizeEvents();
|
|
1287
|
+
|
|
1288
|
+
if (this.isStateful()) {
|
|
1289
|
+
this.saveState();
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
resizeTableCells(newColumnWidth, nextColumnWidth) {
|
|
1293
|
+
let colIndex = DomHandler.index(this.resizeColumnElement);
|
|
1294
|
+
let widths = [];
|
|
1295
|
+
let headers = DomHandler.find(this.$refs.table, 'thead[data-pc-section="thead"] > tr > th');
|
|
1296
|
+
|
|
1297
|
+
headers.forEach((header) => widths.push(DomHandler.getOuterWidth(header)));
|
|
1298
|
+
|
|
1299
|
+
this.destroyStyleElement();
|
|
1300
|
+
this.createStyleElement();
|
|
1301
|
+
|
|
1302
|
+
let innerHTML = '';
|
|
1303
|
+
let selector = `[data-pc-name="datatable"][${this.attributeSelector}] > [data-pc-section="tablecontainer"] ${this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]'} > table[data-pc-section="table"]`;
|
|
1304
|
+
|
|
1305
|
+
widths.forEach((width, index) => {
|
|
1306
|
+
let colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;
|
|
1307
|
+
let style = `width: ${colWidth}px !important; max-width: ${colWidth}px !important`;
|
|
1308
|
+
|
|
1309
|
+
innerHTML += `
|
|
1310
|
+
${selector} > thead[data-pc-section="thead"] > tr > th:nth-child(${index + 1}),
|
|
1311
|
+
${selector} > tbody[data-pc-section="tbody"] > tr > td:nth-child(${index + 1}),
|
|
1312
|
+
${selector} > tfoot[data-pc-section="tfoot"] > tr > td:nth-child(${index + 1}) {
|
|
1313
|
+
${style}
|
|
1314
|
+
}
|
|
1315
|
+
`;
|
|
1316
|
+
});
|
|
1317
|
+
|
|
1318
|
+
this.styleElement.innerHTML = innerHTML;
|
|
1319
|
+
},
|
|
1320
|
+
bindColumnResizeEvents() {
|
|
1321
|
+
if (!this.documentColumnResizeListener) {
|
|
1322
|
+
this.documentColumnResizeListener = document.addEventListener('mousemove', () => {
|
|
1323
|
+
if (this.columnResizing) {
|
|
1324
|
+
this.onColumnResize(event);
|
|
1325
|
+
}
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
if (!this.documentColumnResizeEndListener) {
|
|
1330
|
+
this.documentColumnResizeEndListener = document.addEventListener('mouseup', () => {
|
|
1331
|
+
if (this.columnResizing) {
|
|
1332
|
+
this.columnResizing = false;
|
|
1333
|
+
this.onColumnResizeEnd();
|
|
1334
|
+
}
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
unbindColumnResizeEvents() {
|
|
1339
|
+
if (this.documentColumnResizeListener) {
|
|
1340
|
+
document.removeEventListener('document', this.documentColumnResizeListener);
|
|
1341
|
+
this.documentColumnResizeListener = null;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
if (this.documentColumnResizeEndListener) {
|
|
1345
|
+
document.removeEventListener('document', this.documentColumnResizeEndListener);
|
|
1346
|
+
this.documentColumnResizeEndListener = null;
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1349
|
+
onColumnHeaderMouseDown(e) {
|
|
1350
|
+
const event = e.originalEvent;
|
|
1351
|
+
const column = e.column;
|
|
1352
|
+
|
|
1353
|
+
if (this.reorderableColumns && this.columnProp(column, 'reorderableColumn') !== false) {
|
|
1354
|
+
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || DomHandler.getAttribute(event.target, '[data-pc-section="columnresizer"]')) event.currentTarget.draggable = false;
|
|
1355
|
+
else event.currentTarget.draggable = true;
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
onColumnHeaderDragStart(e) {
|
|
1359
|
+
const { originalEvent: event, column } = e;
|
|
1360
|
+
|
|
1361
|
+
if (this.columnResizing) {
|
|
1362
|
+
event.preventDefault();
|
|
1363
|
+
|
|
1364
|
+
return;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
this.colReorderIconWidth = DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
|
|
1368
|
+
this.colReorderIconHeight = DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
|
|
1369
|
+
|
|
1370
|
+
this.draggedColumn = column;
|
|
1371
|
+
this.draggedColumnElement = this.findParentHeader(event.target);
|
|
1372
|
+
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
1373
|
+
},
|
|
1374
|
+
onColumnHeaderDragOver(e) {
|
|
1375
|
+
const { originalEvent: event, column } = e;
|
|
1376
|
+
let dropHeader = this.findParentHeader(event.target);
|
|
1377
|
+
|
|
1378
|
+
if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
|
|
1379
|
+
event.preventDefault();
|
|
1380
|
+
let containerOffset = DomHandler.getOffset(this.$el);
|
|
1381
|
+
let dropHeaderOffset = DomHandler.getOffset(dropHeader);
|
|
1382
|
+
|
|
1383
|
+
if (this.draggedColumnElement !== dropHeader) {
|
|
1384
|
+
let targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
1385
|
+
let columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
1386
|
+
|
|
1387
|
+
this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
|
|
1388
|
+
this.$refs.reorderIndicatorDown.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';
|
|
1389
|
+
|
|
1390
|
+
if (event.pageX > columnCenter) {
|
|
1391
|
+
this.$refs.reorderIndicatorUp.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
1392
|
+
this.$refs.reorderIndicatorDown.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
1393
|
+
this.dropPosition = 1;
|
|
1394
|
+
} else {
|
|
1395
|
+
this.$refs.reorderIndicatorUp.style.left = targetLeft - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
1396
|
+
this.$refs.reorderIndicatorDown.style.left = targetLeft - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
1397
|
+
this.dropPosition = -1;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
this.$refs.reorderIndicatorUp.style.display = 'block';
|
|
1401
|
+
this.$refs.reorderIndicatorDown.style.display = 'block';
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
},
|
|
1405
|
+
onColumnHeaderDragLeave(e) {
|
|
1406
|
+
const { originalEvent: event } = e;
|
|
1407
|
+
|
|
1408
|
+
if (this.reorderableColumns && this.draggedColumnElement) {
|
|
1409
|
+
event.preventDefault();
|
|
1410
|
+
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
1411
|
+
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
1412
|
+
}
|
|
1413
|
+
},
|
|
1414
|
+
onColumnHeaderDrop(e) {
|
|
1415
|
+
const { originalEvent: event, column } = e;
|
|
1416
|
+
|
|
1417
|
+
event.preventDefault();
|
|
1418
|
+
|
|
1419
|
+
if (this.draggedColumnElement) {
|
|
1420
|
+
let dragIndex = DomHandler.index(this.draggedColumnElement);
|
|
1421
|
+
let dropIndex = DomHandler.index(this.findParentHeader(event.target));
|
|
1422
|
+
let allowDrop = dragIndex !== dropIndex;
|
|
1423
|
+
|
|
1424
|
+
if (allowDrop && ((dropIndex - dragIndex === 1 && this.dropPosition === -1) || (dropIndex - dragIndex === -1 && this.dropPosition === 1))) {
|
|
1425
|
+
allowDrop = false;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
if (allowDrop) {
|
|
1429
|
+
let isSameColumn = (col1, col2) =>
|
|
1430
|
+
this.columnProp(col1, 'columnKey') || this.columnProp(col2, 'columnKey') ? this.columnProp(col1, 'columnKey') === this.columnProp(col2, 'columnKey') : this.columnProp(col1, 'field') === this.columnProp(col2, 'field');
|
|
1431
|
+
let dragColIndex = this.columns.findIndex((child) => isSameColumn(child, this.draggedColumn));
|
|
1432
|
+
let dropColIndex = this.columns.findIndex((child) => isSameColumn(child, column));
|
|
1433
|
+
let widths = [];
|
|
1434
|
+
let headers = DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
|
|
1435
|
+
|
|
1436
|
+
headers.forEach((header) => widths.push(DomHandler.getOuterWidth(header)));
|
|
1437
|
+
const movedItem = widths.find((_, index) => index === dragColIndex);
|
|
1438
|
+
const remainingItems = widths.filter((_, index) => index !== dragColIndex);
|
|
1439
|
+
const reorderedWidths = [...remainingItems.slice(0, dropColIndex), movedItem, ...remainingItems.slice(dropColIndex)];
|
|
1440
|
+
|
|
1441
|
+
this.addColumnWidthStyles(reorderedWidths);
|
|
1442
|
+
|
|
1443
|
+
if (dropColIndex < dragColIndex && this.dropPosition === 1) {
|
|
1444
|
+
dropColIndex++;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
if (dropColIndex > dragColIndex && this.dropPosition === -1) {
|
|
1448
|
+
dropColIndex--;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
ObjectUtils.reorderArray(this.columns, dragColIndex, dropColIndex);
|
|
1452
|
+
this.updateReorderableColumns();
|
|
1453
|
+
|
|
1454
|
+
this.$emit('column-reorder', {
|
|
1455
|
+
originalEvent: event,
|
|
1456
|
+
dragIndex: dragColIndex,
|
|
1457
|
+
dropIndex: dropColIndex
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
1462
|
+
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
1463
|
+
this.draggedColumnElement.draggable = false;
|
|
1464
|
+
this.draggedColumnElement = null;
|
|
1465
|
+
this.draggedColumn = null;
|
|
1466
|
+
this.dropPosition = null;
|
|
1467
|
+
}
|
|
1468
|
+
},
|
|
1469
|
+
findParentHeader(element) {
|
|
1470
|
+
if (element.nodeName === 'TH') {
|
|
1471
|
+
return element;
|
|
1472
|
+
} else {
|
|
1473
|
+
let parent = element.parentElement;
|
|
1474
|
+
|
|
1475
|
+
while (parent.nodeName !== 'TH') {
|
|
1476
|
+
parent = parent.parentElement;
|
|
1477
|
+
if (!parent) break;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
return parent;
|
|
1481
|
+
}
|
|
1482
|
+
},
|
|
1483
|
+
findColumnByKey(columns, key) {
|
|
1484
|
+
if (columns && columns.length) {
|
|
1485
|
+
for (let i = 0; i < columns.length; i++) {
|
|
1486
|
+
let column = columns[i];
|
|
1487
|
+
|
|
1488
|
+
if (this.columnProp(column, 'columnKey') === key || this.columnProp(column, 'field') === key) {
|
|
1489
|
+
return column;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
return null;
|
|
1495
|
+
},
|
|
1496
|
+
onRowMouseDown(event) {
|
|
1497
|
+
if (DomHandler.getAttribute(event.target, 'data-pc-section') === 'reorderablerowhandle' || DomHandler.getAttribute(event.target.parentElement, 'data-pc-section') === 'reorderablerowhandle') event.currentTarget.draggable = true;
|
|
1498
|
+
else event.currentTarget.draggable = false;
|
|
1499
|
+
},
|
|
1500
|
+
onRowDragStart(e) {
|
|
1501
|
+
const event = e.originalEvent;
|
|
1502
|
+
const index = e.index;
|
|
1503
|
+
|
|
1504
|
+
this.rowDragging = true;
|
|
1505
|
+
this.draggedRowIndex = index;
|
|
1506
|
+
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
1507
|
+
},
|
|
1508
|
+
onRowDragOver(e) {
|
|
1509
|
+
const event = e.originalEvent;
|
|
1510
|
+
const index = e.index;
|
|
1511
|
+
|
|
1512
|
+
if (this.rowDragging && this.draggedRowIndex !== index) {
|
|
1513
|
+
let rowElement = event.currentTarget;
|
|
1514
|
+
let rowY = DomHandler.getOffset(rowElement).top + DomHandler.getWindowScrollTop();
|
|
1515
|
+
let pageY = event.pageY;
|
|
1516
|
+
let rowMidY = rowY + DomHandler.getOuterHeight(rowElement) / 2;
|
|
1517
|
+
let prevRowElement = rowElement.previousElementSibling;
|
|
1518
|
+
|
|
1519
|
+
if (pageY < rowMidY) {
|
|
1520
|
+
rowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'false');
|
|
1521
|
+
!this.isUnstyled && DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
1522
|
+
|
|
1523
|
+
this.droppedRowIndex = index;
|
|
1524
|
+
|
|
1525
|
+
if (prevRowElement) {
|
|
1526
|
+
prevRowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'true');
|
|
1527
|
+
!this.isUnstyled && DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
1528
|
+
} else {
|
|
1529
|
+
rowElement.setAttribute('data-p-datatable-dragpoint-top', 'true');
|
|
1530
|
+
!this.isUnstyled && DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
1531
|
+
}
|
|
1532
|
+
} else {
|
|
1533
|
+
if (prevRowElement) {
|
|
1534
|
+
prevRowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'false');
|
|
1535
|
+
!this.isUnstyled && DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
1536
|
+
} else {
|
|
1537
|
+
rowElement.setAttribute('data-p-datatable-dragpoint-top', 'true');
|
|
1538
|
+
!this.isUnstyled && DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
this.droppedRowIndex = index + 1;
|
|
1542
|
+
rowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'true');
|
|
1543
|
+
!this.isUnstyled && DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
event.preventDefault();
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
onRowDragLeave(event) {
|
|
1550
|
+
let rowElement = event.currentTarget;
|
|
1551
|
+
let prevRowElement = rowElement.previousElementSibling;
|
|
1552
|
+
|
|
1553
|
+
if (prevRowElement) {
|
|
1554
|
+
prevRowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'false');
|
|
1555
|
+
!this.isUnstyled && DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
rowElement.setAttribute('data-p-datatable-dragpoint-bottom', 'false');
|
|
1559
|
+
!this.isUnstyled && DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
1560
|
+
rowElement.setAttribute('data-p-datatable-dragpoint-top', 'false');
|
|
1561
|
+
!this.isUnstyled && DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-top');
|
|
1562
|
+
},
|
|
1563
|
+
onRowDragEnd(event) {
|
|
1564
|
+
this.rowDragging = false;
|
|
1565
|
+
this.draggedRowIndex = null;
|
|
1566
|
+
this.droppedRowIndex = null;
|
|
1567
|
+
event.currentTarget.draggable = false;
|
|
1568
|
+
},
|
|
1569
|
+
onRowDrop(event) {
|
|
1570
|
+
if (this.droppedRowIndex != null) {
|
|
1571
|
+
let dropIndex = this.draggedRowIndex > this.droppedRowIndex ? this.droppedRowIndex : this.droppedRowIndex === 0 ? 0 : this.droppedRowIndex - 1;
|
|
1572
|
+
let processedData = [...this.processedData];
|
|
1573
|
+
|
|
1574
|
+
ObjectUtils.reorderArray(processedData, this.draggedRowIndex + this.d_first, dropIndex + this.d_first);
|
|
1575
|
+
|
|
1576
|
+
this.$emit('row-reorder', {
|
|
1577
|
+
originalEvent: event,
|
|
1578
|
+
dragIndex: this.draggedRowIndex,
|
|
1579
|
+
dropIndex: dropIndex,
|
|
1580
|
+
value: processedData
|
|
1581
|
+
});
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
//cleanup
|
|
1585
|
+
this.onRowDragLeave(event);
|
|
1586
|
+
this.onRowDragEnd(event);
|
|
1587
|
+
event.preventDefault();
|
|
1588
|
+
},
|
|
1589
|
+
toggleRow(event) {
|
|
1590
|
+
const { expanded, ...rest } = event;
|
|
1591
|
+
const rowData = event.data;
|
|
1592
|
+
let expandedRows;
|
|
1593
|
+
|
|
1594
|
+
if (this.dataKey) {
|
|
1595
|
+
const value = ObjectUtils.resolveFieldData(rowData, this.dataKey);
|
|
1596
|
+
|
|
1597
|
+
expandedRows = this.expandedRows ? { ...this.expandedRows } : {};
|
|
1598
|
+
expanded ? (expandedRows[value] = true) : delete expandedRows[value];
|
|
1599
|
+
} else {
|
|
1600
|
+
expandedRows = this.expandedRows ? [...this.expandedRows] : [];
|
|
1601
|
+
expanded ? expandedRows.push(rowData) : (expandedRows = expandedRows.filter((d) => !this.equals(rowData, d)));
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
this.$emit('update:expandedRows', expandedRows);
|
|
1605
|
+
expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
|
|
1606
|
+
},
|
|
1607
|
+
toggleRowGroup(e) {
|
|
1608
|
+
const event = e.originalEvent;
|
|
1609
|
+
const data = e.data;
|
|
1610
|
+
const groupFieldValue = ObjectUtils.resolveFieldData(data, this.groupRowsBy);
|
|
1611
|
+
let _expandedRowGroups = this.expandedRowGroups ? [...this.expandedRowGroups] : [];
|
|
1612
|
+
|
|
1613
|
+
if (this.isRowGroupExpanded(data)) {
|
|
1614
|
+
_expandedRowGroups = _expandedRowGroups.filter((group) => group !== groupFieldValue);
|
|
1615
|
+
this.$emit('update:expandedRowGroups', _expandedRowGroups);
|
|
1616
|
+
this.$emit('rowgroup-collapse', { originalEvent: event, data: groupFieldValue });
|
|
1617
|
+
} else {
|
|
1618
|
+
_expandedRowGroups.push(groupFieldValue);
|
|
1619
|
+
this.$emit('update:expandedRowGroups', _expandedRowGroups);
|
|
1620
|
+
this.$emit('rowgroup-expand', { originalEvent: event, data: groupFieldValue });
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
isRowGroupExpanded(rowData) {
|
|
1624
|
+
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
1625
|
+
let groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1626
|
+
|
|
1627
|
+
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
return false;
|
|
1631
|
+
},
|
|
1632
|
+
isStateful() {
|
|
1633
|
+
return this.stateKey != null;
|
|
1634
|
+
},
|
|
1635
|
+
getStorage() {
|
|
1636
|
+
switch (this.stateStorage) {
|
|
1637
|
+
case 'local':
|
|
1638
|
+
return window.localStorage;
|
|
1639
|
+
|
|
1640
|
+
case 'session':
|
|
1641
|
+
return window.sessionStorage;
|
|
1642
|
+
|
|
1643
|
+
default:
|
|
1644
|
+
throw new Error(this.stateStorage + ' is not a valid value for the state storage, supported values are "local" and "session".');
|
|
1645
|
+
}
|
|
1646
|
+
},
|
|
1647
|
+
saveState() {
|
|
1648
|
+
const storage = this.getStorage();
|
|
1649
|
+
let state = {};
|
|
1650
|
+
|
|
1651
|
+
if (this.paginator) {
|
|
1652
|
+
state.first = this.d_first;
|
|
1653
|
+
state.rows = this.d_rows;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
if (this.d_sortField) {
|
|
1657
|
+
state.sortField = this.d_sortField;
|
|
1658
|
+
state.sortOrder = this.d_sortOrder;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
if (this.d_multiSortMeta) {
|
|
1662
|
+
state.multiSortMeta = this.d_multiSortMeta;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
if (this.hasFilters) {
|
|
1666
|
+
state.filters = this.filters;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
if (this.resizableColumns) {
|
|
1670
|
+
this.saveColumnWidths(state);
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
if (this.reorderableColumns) {
|
|
1674
|
+
state.columnOrder = this.d_columnOrder;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
if (this.expandedRows) {
|
|
1678
|
+
state.expandedRows = this.expandedRows;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
if (this.expandedRowGroups) {
|
|
1682
|
+
state.expandedRowGroups = this.expandedRowGroups;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
if (this.selection) {
|
|
1686
|
+
state.selection = this.selection;
|
|
1687
|
+
state.selectionKeys = this.d_selectionKeys;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
if (Object.keys(state).length) {
|
|
1691
|
+
storage.setItem(this.stateKey, JSON.stringify(state));
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
this.$emit('state-save', state);
|
|
1695
|
+
},
|
|
1696
|
+
restoreState() {
|
|
1697
|
+
const storage = this.getStorage();
|
|
1698
|
+
const stateString = storage.getItem(this.stateKey);
|
|
1699
|
+
const dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
|
|
1700
|
+
|
|
1701
|
+
const reviver = function (key, value) {
|
|
1702
|
+
if (typeof value === 'string' && dateFormat.test(value)) {
|
|
1703
|
+
return new Date(value);
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
return value;
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
if (stateString) {
|
|
1710
|
+
let restoredState = JSON.parse(stateString, reviver);
|
|
1711
|
+
|
|
1712
|
+
if (this.paginator) {
|
|
1713
|
+
this.d_first = restoredState.first;
|
|
1714
|
+
this.d_rows = restoredState.rows;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
if (restoredState.sortField) {
|
|
1718
|
+
this.d_sortField = restoredState.sortField;
|
|
1719
|
+
this.d_sortOrder = restoredState.sortOrder;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
if (restoredState.multiSortMeta) {
|
|
1723
|
+
this.d_multiSortMeta = restoredState.multiSortMeta;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
if (restoredState.filters) {
|
|
1727
|
+
this.$emit('update:filters', restoredState.filters);
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
if (this.resizableColumns) {
|
|
1731
|
+
this.columnWidthsState = restoredState.columnWidths;
|
|
1732
|
+
this.tableWidthState = restoredState.tableWidth;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
if (this.reorderableColumns) {
|
|
1736
|
+
this.d_columnOrder = restoredState.columnOrder;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
if (restoredState.expandedRows) {
|
|
1740
|
+
this.$emit('update:expandedRows', restoredState.expandedRows);
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
if (restoredState.expandedRowGroups) {
|
|
1744
|
+
this.$emit('update:expandedRowGroups', restoredState.expandedRowGroups);
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
if (restoredState.selection) {
|
|
1748
|
+
this.d_selectionKeys = restoredState.d_selectionKeys;
|
|
1749
|
+
this.$emit('update:selection', restoredState.selection);
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
this.$emit('state-restore', restoredState);
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
saveColumnWidths(state) {
|
|
1756
|
+
let widths = [];
|
|
1757
|
+
let headers = DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
|
|
1758
|
+
|
|
1759
|
+
headers.forEach((header) => widths.push(DomHandler.getOuterWidth(header)));
|
|
1760
|
+
state.columnWidths = widths.join(',');
|
|
1761
|
+
|
|
1762
|
+
if (this.columnResizeMode === 'expand') {
|
|
1763
|
+
state.tableWidth = DomHandler.getOuterWidth(this.$refs.table) + 'px';
|
|
1764
|
+
}
|
|
1765
|
+
},
|
|
1766
|
+
addColumnWidthStyles(widths) {
|
|
1767
|
+
this.createStyleElement();
|
|
1768
|
+
|
|
1769
|
+
let innerHTML = '';
|
|
1770
|
+
let selector = `[data-pc-name="datatable"][${this.attributeSelector}] > [data-pc-section="tablecontainer"] ${this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]'} > table[data-pc-section="table"]`;
|
|
1771
|
+
|
|
1772
|
+
widths.forEach((width, index) => {
|
|
1773
|
+
let style = `width: ${width}px !important; max-width: ${width}px !important`;
|
|
1774
|
+
|
|
1775
|
+
innerHTML += `
|
|
1776
|
+
${selector} > thead[data-pc-section="thead"] > tr > th:nth-child(${index + 1}),
|
|
1777
|
+
${selector} > tbody[data-pc-section="tbody"] > tr > td:nth-child(${index + 1}),
|
|
1778
|
+
${selector} > tfoot[data-pc-section="tfoot"] > tr > td:nth-child(${index + 1}) {
|
|
1779
|
+
${style}
|
|
1780
|
+
}
|
|
1781
|
+
`;
|
|
1782
|
+
});
|
|
1783
|
+
|
|
1784
|
+
this.styleElement.innerHTML = innerHTML;
|
|
1785
|
+
},
|
|
1786
|
+
restoreColumnWidths() {
|
|
1787
|
+
if (this.columnWidthsState) {
|
|
1788
|
+
let widths = this.columnWidthsState.split(',');
|
|
1789
|
+
|
|
1790
|
+
if (this.columnResizeMode === 'expand' && this.tableWidthState) {
|
|
1791
|
+
this.$refs.table.style.width = this.tableWidthState;
|
|
1792
|
+
this.$refs.table.style.minWidth = this.tableWidthState;
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
if (ObjectUtils.isNotEmpty(widths)) {
|
|
1796
|
+
this.addColumnWidthStyles(widths);
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
onCellEditInit(event) {
|
|
1801
|
+
this.$emit('cell-edit-init', event);
|
|
1802
|
+
},
|
|
1803
|
+
onCellEditComplete(event) {
|
|
1804
|
+
this.$emit('cell-edit-complete', event);
|
|
1805
|
+
},
|
|
1806
|
+
onCellEditCancel(event) {
|
|
1807
|
+
this.$emit('cell-edit-cancel', event);
|
|
1808
|
+
},
|
|
1809
|
+
onRowEditInit(event) {
|
|
1810
|
+
let _editingRows = this.editingRows ? [...this.editingRows] : [];
|
|
1811
|
+
|
|
1812
|
+
_editingRows.push(event.data);
|
|
1813
|
+
this.$emit('update:editingRows', _editingRows);
|
|
1814
|
+
this.$emit('row-edit-init', event);
|
|
1815
|
+
},
|
|
1816
|
+
onRowEditSave(event) {
|
|
1817
|
+
let _editingRows = [...this.editingRows];
|
|
1818
|
+
|
|
1819
|
+
_editingRows.splice(this.findIndex(event.data, _editingRows), 1);
|
|
1820
|
+
this.$emit('update:editingRows', _editingRows);
|
|
1821
|
+
this.$emit('row-edit-save', event);
|
|
1822
|
+
},
|
|
1823
|
+
onRowEditCancel(event) {
|
|
1824
|
+
let _editingRows = [...this.editingRows];
|
|
1825
|
+
|
|
1826
|
+
_editingRows.splice(this.findIndex(event.data, _editingRows), 1);
|
|
1827
|
+
this.$emit('update:editingRows', _editingRows);
|
|
1828
|
+
this.$emit('row-edit-cancel', event);
|
|
1829
|
+
},
|
|
1830
|
+
onEditingMetaChange(event) {
|
|
1831
|
+
let { data, field, index, editing } = event;
|
|
1832
|
+
let editingMeta = { ...this.d_editingMeta };
|
|
1833
|
+
let meta = editingMeta[index];
|
|
1834
|
+
|
|
1835
|
+
if (editing) {
|
|
1836
|
+
!meta && (meta = editingMeta[index] = { data: { ...data }, fields: [] });
|
|
1837
|
+
meta['fields'].push(field);
|
|
1838
|
+
} else if (meta) {
|
|
1839
|
+
const fields = meta['fields'].filter((f) => f !== field);
|
|
1840
|
+
|
|
1841
|
+
!fields.length ? delete editingMeta[index] : (meta['fields'] = fields);
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
this.d_editingMeta = editingMeta;
|
|
1845
|
+
},
|
|
1846
|
+
clearEditingMetaData() {
|
|
1847
|
+
if (this.editMode) {
|
|
1848
|
+
this.d_editingMeta = {};
|
|
1849
|
+
}
|
|
1850
|
+
},
|
|
1851
|
+
createLazyLoadEvent(event) {
|
|
1852
|
+
return {
|
|
1853
|
+
originalEvent: event,
|
|
1854
|
+
first: this.d_first,
|
|
1855
|
+
rows: this.d_rows,
|
|
1856
|
+
sortField: this.d_sortField,
|
|
1857
|
+
sortOrder: this.d_sortOrder,
|
|
1858
|
+
multiSortMeta: this.d_multiSortMeta,
|
|
1859
|
+
filters: this.d_filters
|
|
1860
|
+
};
|
|
1861
|
+
},
|
|
1862
|
+
hasGlobalFilter() {
|
|
1863
|
+
return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
|
|
1864
|
+
},
|
|
1865
|
+
onFilterChange(filters) {
|
|
1866
|
+
this.d_filters = filters;
|
|
1867
|
+
},
|
|
1868
|
+
onFilterApply() {
|
|
1869
|
+
this.d_first = 0;
|
|
1870
|
+
this.$emit('update:first', this.d_first);
|
|
1871
|
+
this.$emit('update:filters', this.d_filters);
|
|
1872
|
+
|
|
1873
|
+
if (this.lazy) {
|
|
1874
|
+
this.$emit('filter', this.createLazyLoadEvent());
|
|
1875
|
+
}
|
|
1876
|
+
},
|
|
1877
|
+
cloneFilters() {
|
|
1878
|
+
let cloned = {};
|
|
1879
|
+
|
|
1880
|
+
if (this.filters) {
|
|
1881
|
+
Object.entries(this.filters).forEach(([prop, value]) => {
|
|
1882
|
+
cloned[prop] = value.operator
|
|
1883
|
+
? {
|
|
1884
|
+
operator: value.operator,
|
|
1885
|
+
constraints: value.constraints.map((constraint) => {
|
|
1886
|
+
return { ...constraint };
|
|
1887
|
+
})
|
|
1888
|
+
}
|
|
1889
|
+
: { ...value };
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
return cloned;
|
|
1894
|
+
},
|
|
1895
|
+
updateReorderableColumns() {
|
|
1896
|
+
let columnOrder = [];
|
|
1897
|
+
|
|
1898
|
+
this.columns.forEach((col) => columnOrder.push(this.columnProp(col, 'columnKey') || this.columnProp(col, 'field')));
|
|
1899
|
+
this.d_columnOrder = columnOrder;
|
|
1900
|
+
},
|
|
1901
|
+
createStyleElement() {
|
|
1902
|
+
this.styleElement = document.createElement('style');
|
|
1903
|
+
this.styleElement.type = 'text/css';
|
|
1904
|
+
DomHandler.setAttribute(this.styleElement, 'nonce', this.$primevue?.config?.csp?.nonce);
|
|
1905
|
+
document.head.appendChild(this.styleElement);
|
|
1906
|
+
},
|
|
1907
|
+
destroyStyleElement() {
|
|
1908
|
+
if (this.styleElement) {
|
|
1909
|
+
document.head.removeChild(this.styleElement);
|
|
1910
|
+
this.styleElement = null;
|
|
1911
|
+
}
|
|
1912
|
+
},
|
|
1913
|
+
dataToRender(data) {
|
|
1914
|
+
const _data = data || this.processedData;
|
|
1915
|
+
|
|
1916
|
+
if (_data && this.paginator) {
|
|
1917
|
+
const first = this.lazy ? 0 : this.d_first;
|
|
1918
|
+
|
|
1919
|
+
return _data.slice(first, first + this.d_rows);
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
return _data;
|
|
1923
|
+
},
|
|
1924
|
+
getVirtualScrollerRef() {
|
|
1925
|
+
return this.$refs.virtualScroller;
|
|
1926
|
+
},
|
|
1927
|
+
hasSpacerStyle(style) {
|
|
1928
|
+
return ObjectUtils.isNotEmpty(style);
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1931
|
+
computed: {
|
|
1932
|
+
columns() {
|
|
1933
|
+
const cols = this.d_columns.get(this);
|
|
1934
|
+
|
|
1935
|
+
if (this.reorderableColumns && this.d_columnOrder) {
|
|
1936
|
+
let orderedColumns = [];
|
|
1937
|
+
|
|
1938
|
+
for (let columnKey of this.d_columnOrder) {
|
|
1939
|
+
let column = this.findColumnByKey(cols, columnKey);
|
|
1940
|
+
|
|
1941
|
+
if (column && !this.columnProp(column, 'hidden')) {
|
|
1942
|
+
orderedColumns.push(column);
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
return [...orderedColumns, ...cols.filter((item) => orderedColumns.indexOf(item) < 0)];
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
return cols;
|
|
1950
|
+
},
|
|
1951
|
+
columnGroups() {
|
|
1952
|
+
return this.d_columnGroups.get(this);
|
|
1953
|
+
},
|
|
1954
|
+
headerColumnGroup() {
|
|
1955
|
+
return this.columnGroups?.find((group) => this.columnProp(group, 'type') === 'header');
|
|
1956
|
+
},
|
|
1957
|
+
footerColumnGroup() {
|
|
1958
|
+
return this.columnGroups?.find((group) => this.columnProp(group, 'type') === 'footer');
|
|
1959
|
+
},
|
|
1960
|
+
hasFilters() {
|
|
1961
|
+
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
1962
|
+
},
|
|
1963
|
+
processedData() {
|
|
1964
|
+
let data = this.value || [];
|
|
1965
|
+
|
|
1966
|
+
if (!this.lazy && !this.virtualScrollerOptions?.lazy) {
|
|
1967
|
+
if (data && data.length) {
|
|
1968
|
+
if (this.hasFilters) {
|
|
1969
|
+
data = this.filter(data);
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
if (this.sorted) {
|
|
1973
|
+
if (this.sortMode === 'single') data = this.sortSingle(data);
|
|
1974
|
+
else if (this.sortMode === 'multiple') data = this.sortMultiple(data);
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
return data;
|
|
1980
|
+
},
|
|
1981
|
+
totalRecordsLength() {
|
|
1982
|
+
if (this.lazy) {
|
|
1983
|
+
return this.totalRecords;
|
|
1984
|
+
} else {
|
|
1985
|
+
const data = this.processedData;
|
|
1986
|
+
|
|
1987
|
+
return data ? data.length : 0;
|
|
1988
|
+
}
|
|
1989
|
+
},
|
|
1990
|
+
empty() {
|
|
1991
|
+
const data = this.processedData;
|
|
1992
|
+
|
|
1993
|
+
return !data || data.length === 0;
|
|
1994
|
+
},
|
|
1995
|
+
paginatorTop() {
|
|
1996
|
+
return this.paginator && (this.paginatorPosition !== 'bottom' || this.paginatorPosition === 'both');
|
|
1997
|
+
},
|
|
1998
|
+
paginatorBottom() {
|
|
1999
|
+
return this.paginator && (this.paginatorPosition !== 'top' || this.paginatorPosition === 'both');
|
|
2000
|
+
},
|
|
2001
|
+
sorted() {
|
|
2002
|
+
return this.d_sortField || (this.d_multiSortMeta && this.d_multiSortMeta.length > 0);
|
|
2003
|
+
},
|
|
2004
|
+
allRowsSelected() {
|
|
2005
|
+
if (this.selectAll !== null) {
|
|
2006
|
+
return this.selectAll;
|
|
2007
|
+
} else {
|
|
2008
|
+
const val = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
|
|
2009
|
+
|
|
2010
|
+
return ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every((v) => this.selection.some((s) => this.equals(s, v)));
|
|
2011
|
+
}
|
|
2012
|
+
},
|
|
2013
|
+
attributeSelector() {
|
|
2014
|
+
return UniqueComponentId();
|
|
2015
|
+
},
|
|
2016
|
+
groupRowSortField() {
|
|
2017
|
+
return this.sortMode === 'single' ? this.sortField : this.d_groupRowsSortMeta ? this.d_groupRowsSortMeta.field : null;
|
|
2018
|
+
},
|
|
2019
|
+
headerFilterButtonProps() {
|
|
2020
|
+
return {
|
|
2021
|
+
filter: { severity: 'secondary', text: true, rounded: true },
|
|
2022
|
+
...this.filterButtonProps,
|
|
2023
|
+
inline: {
|
|
2024
|
+
clear: { severity: 'secondary', text: true, rounded: true },
|
|
2025
|
+
...this.filterButtonProps.inline
|
|
2026
|
+
},
|
|
2027
|
+
popover: {
|
|
2028
|
+
addRule: { severity: 'info', text: true, size: 'small' },
|
|
2029
|
+
removeRule: { severity: 'danger', text: true, size: 'small' },
|
|
2030
|
+
apply: { size: 'small' },
|
|
2031
|
+
clear: { outlined: true, size: 'small' },
|
|
2032
|
+
...this.filterButtonProps.popover
|
|
2033
|
+
}
|
|
2034
|
+
};
|
|
2035
|
+
},
|
|
2036
|
+
rowEditButtonProps() {
|
|
2037
|
+
return {
|
|
2038
|
+
...{
|
|
2039
|
+
init: { severity: 'secondary', text: true, rounded: true },
|
|
2040
|
+
save: { severity: 'secondary', text: true, rounded: true },
|
|
2041
|
+
cancel: { severity: 'secondary', text: true, rounded: true }
|
|
2042
|
+
},
|
|
2043
|
+
...this.editButtonProps
|
|
2044
|
+
};
|
|
2045
|
+
},
|
|
2046
|
+
virtualScrollerDisabled() {
|
|
2047
|
+
return ObjectUtils.isEmpty(this.virtualScrollerOptions) || !this.scrollable;
|
|
2048
|
+
}
|
|
2049
|
+
},
|
|
2050
|
+
components: {
|
|
2051
|
+
DTPaginator: Paginator,
|
|
2052
|
+
DTTableHeader: TableHeader,
|
|
2053
|
+
DTTableBody: TableBody,
|
|
2054
|
+
DTTableFooter: TableFooter,
|
|
2055
|
+
DTVirtualScroller: VirtualScroller,
|
|
2056
|
+
ArrowDownIcon: ArrowDownIcon,
|
|
2057
|
+
ArrowUpIcon: ArrowUpIcon,
|
|
2058
|
+
SpinnerIcon: SpinnerIcon
|
|
2059
|
+
}
|
|
2060
|
+
};
|
|
2061
|
+
</script>
|