primevue 3.28.0 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/autocomplete/AutoComplete.d.ts +153 -1
- package/autocomplete/AutoComplete.vue +46 -17
- package/autocomplete/autocomplete.cjs.js +80 -74
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +80 -75
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +81 -76
- package/autocomplete/autocomplete.min.js +1 -1
- package/basecomponent/BaseComponent.vue +19 -5
- package/basecomponent/basecomponent.cjs.js +19 -5
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +19 -5
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +20 -7
- package/basecomponent/basecomponent.min.js +1 -1
- package/calendar/Calendar.d.ts +269 -0
- package/calendar/Calendar.vue +75 -59
- package/calendar/calendar.cjs.js +223 -259
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +223 -260
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +224 -261
- package/calendar/calendar.min.js +1 -1
- package/carousel/Carousel.d.ts +154 -0
- package/carousel/Carousel.vue +27 -14
- package/carousel/carousel.cjs.js +64 -65
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +64 -66
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +65 -67
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +133 -0
- package/cascadeselect/CascadeSelect.vue +15 -12
- package/cascadeselect/CascadeSelectSub.vue +7 -3
- package/cascadeselect/cascadeselect.cjs.js +63 -66
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +63 -67
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +64 -68
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/Checkbox.d.ts +60 -0
- package/checkbox/Checkbox.vue +7 -5
- package/checkbox/checkbox.cjs.js +17 -15
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +17 -16
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +18 -17
- package/checkbox/checkbox.min.js +1 -1
- package/chips/Chips.d.ts +80 -0
- package/chips/Chips.vue +9 -5
- package/chips/chips.cjs.js +23 -24
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +23 -25
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +24 -26
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +76 -0
- package/colorpicker/ColorPicker.vue +11 -9
- package/colorpicker/colorpicker.cjs.js +28 -27
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +28 -28
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +29 -29
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +303 -2
- package/column/Column.vue +3 -0
- package/column/column.cjs.js +7 -0
- package/column/column.cjs.min.js +1 -1
- package/column/column.esm.js +3 -0
- package/column/column.esm.min.js +1 -1
- package/column/column.js +7 -2
- package/column/column.min.js +1 -1
- package/columngroup/ColumnGroup.d.ts +34 -0
- package/columngroup/ColumnGroup.vue +3 -0
- package/columngroup/columngroup.cjs.js +7 -0
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +3 -0
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +7 -2
- package/columngroup/columngroup.min.js +1 -1
- package/config/PrimeVue.d.ts +163 -2
- package/confirmdialog/ConfirmDialog.d.ts +14 -7
- package/contextmenu/ContextMenu.d.ts +1 -1
- package/core/core.js +448 -331
- package/core/core.min.js +9 -9
- package/datatable/BodyCell.vue +29 -13
- package/datatable/ColumnFilter.vue +49 -20
- package/datatable/DataTable.d.ts +188 -1
- package/datatable/DataTable.vue +25 -14
- package/datatable/FooterCell.vue +15 -1
- package/datatable/HeaderCell.vue +31 -6
- package/datatable/HeaderCheckbox.vue +35 -5
- package/datatable/RowCheckbox.vue +36 -5
- package/datatable/RowRadioButton.vue +26 -6
- package/datatable/TableBody.vue +41 -11
- package/datatable/TableFooter.vue +31 -5
- package/datatable/TableHeader.vue +53 -6
- package/datatable/datatable.cjs.js +559 -376
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +559 -377
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +560 -378
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +72 -0
- package/dataview/DataView.vue +13 -8
- package/dataview/dataview.cjs.js +33 -37
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +33 -38
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +33 -38
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +65 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +7 -5
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +19 -17
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +19 -18
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +20 -19
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
- package/dialog/Dialog.d.ts +6 -4
- package/dialog/Dialog.vue +2 -3
- package/dialog/dialog.cjs.js +4 -5
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +4 -5
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +4 -5
- package/dialog/dialog.min.js +1 -1
- package/dropdown/Dropdown.d.ts +162 -1
- package/dropdown/Dropdown.vue +44 -25
- package/dropdown/dropdown.cjs.js +97 -93
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +97 -94
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +98 -95
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.d.ts +67 -0
- package/editor/Editor.vue +35 -33
- package/editor/editor.cjs.js +88 -73
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +85 -74
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +89 -75
- package/editor/editor.min.js +1 -1
- package/fileupload/FileUpload.d.ts +23 -23
- package/fileupload/FileUpload.vue +3 -3
- package/fileupload/fileupload.cjs.js +4 -4
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +4 -4
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +4 -4
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/Galleria.d.ts +196 -0
- package/galleria/Galleria.vue +5 -3
- package/galleria/GalleriaContent.vue +10 -6
- package/galleria/GalleriaItem.vue +12 -9
- package/galleria/GalleriaThumbnails.vue +46 -9
- package/galleria/galleria.cjs.js +106 -104
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +106 -105
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +107 -106
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +170 -0
- package/image/Image.vue +49 -21
- package/image/image.cjs.js +94 -59
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +94 -60
- package/image/image.esm.min.js +1 -1
- package/image/image.js +95 -61
- package/image/image.min.js +1 -1
- package/inputmask/InputMask.d.ts +25 -0
- package/inputmask/InputMask.vue +3 -1
- package/inputmask/inputmask.cjs.js +9 -3
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +6 -4
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +10 -5
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/InputNumber.d.ts +69 -0
- package/inputnumber/InputNumber.vue +13 -11
- package/inputnumber/inputnumber.cjs.js +19 -28
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +19 -29
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +20 -30
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +51 -0
- package/inputswitch/InputSwitch.vue +7 -4
- package/inputswitch/inputswitch.cjs.js +15 -11
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +12 -12
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +16 -13
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/InputText.d.ts +25 -0
- package/inputtext/InputText.vue +4 -1
- package/inputtext/inputtext.cjs.js +9 -3
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +6 -4
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +10 -5
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +78 -0
- package/knob/Knob.vue +8 -4
- package/knob/knob.cjs.js +17 -13
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +14 -14
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +18 -15
- package/knob/knob.min.js +1 -1
- package/listbox/Listbox.d.ts +137 -1
- package/listbox/Listbox.vue +28 -15
- package/listbox/listbox.cjs.js +83 -78
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +83 -79
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +84 -80
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.d.ts +5 -5
- package/menu/Menu.d.ts +4 -4
- package/menubar/Menubar.d.ts +1 -1
- package/multiselect/MultiSelect.d.ts +223 -1
- package/multiselect/MultiSelect.vue +72 -41
- package/multiselect/multiselect.cjs.js +156 -151
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +156 -152
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +157 -153
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +94 -0
- package/orderlist/OrderList.vue +38 -18
- package/orderlist/orderlist.cjs.js +50 -36
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +50 -37
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +51 -38
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +129 -0
- package/organizationchart/OrganizationChart.vue +14 -2
- package/organizationchart/OrganizationChartNode.vue +37 -16
- package/organizationchart/organizationchart.cjs.js +77 -61
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +77 -62
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +78 -63
- package/organizationchart/organizationchart.min.js +1 -1
- package/package.json +1 -1
- package/paginator/CurrentPageReport.vue +5 -1
- package/paginator/FirstPageLink.vue +13 -2
- package/paginator/JumpToPageDropdown.vue +3 -1
- package/paginator/JumpToPageInput.vue +3 -1
- package/paginator/LastPageLink.vue +13 -2
- package/paginator/NextPageLink.vue +13 -2
- package/paginator/PageLinks.vue +12 -2
- package/paginator/Paginator.d.ts +133 -0
- package/paginator/Paginator.vue +23 -12
- package/paginator/PrevPageLink.vue +13 -2
- package/paginator/RowsPerPageDropdown.vue +3 -1
- package/paginator/paginator.cjs.js +135 -76
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +135 -77
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +136 -78
- package/paginator/paginator.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +4 -8
- package/password/Password.d.ts +104 -0
- package/password/Password.vue +11 -9
- package/password/password.cjs.js +26 -28
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +26 -29
- package/password/password.esm.min.js +1 -1
- package/password/password.js +27 -30
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +160 -0
- package/picklist/PickList.vue +46 -34
- package/picklist/picklist.cjs.js +111 -85
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +111 -86
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +112 -87
- package/picklist/picklist.min.js +1 -1
- package/radiobutton/RadioButton.d.ts +55 -0
- package/radiobutton/RadioButton.vue +7 -5
- package/radiobutton/radiobutton.cjs.js +19 -16
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +16 -17
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +20 -18
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/Rating.d.ts +96 -0
- package/rating/Rating.vue +32 -9
- package/rating/rating.cjs.js +41 -34
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +41 -35
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +42 -36
- package/rating/rating.min.js +1 -1
- package/row/Row.d.ts +29 -0
- package/row/Row.vue +3 -0
- package/row/row.cjs.js +7 -0
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +3 -0
- package/row/row.esm.min.js +1 -1
- package/row/row.js +7 -2
- package/row/row.min.js +1 -1
- package/selectbutton/SelectButton.d.ts +68 -0
- package/selectbutton/SelectButton.vue +13 -2
- package/selectbutton/selectbutton.cjs.js +20 -10
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +20 -11
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +21 -12
- package/selectbutton/selectbutton.min.js +1 -1
- package/slider/Slider.d.ts +48 -0
- package/slider/Slider.vue +7 -2
- package/slider/slider.cjs.js +22 -16
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +19 -17
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +23 -18
- package/slider/slider.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +0 -4
- package/splitbutton/SplitButton.vue +2 -2
- package/splitbutton/splitbutton.cjs.js +7 -6
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +7 -6
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +7 -6
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +3 -3
- package/textarea/Textarea.d.ts +32 -0
- package/textarea/Textarea.vue +4 -1
- package/textarea/textarea.cjs.js +9 -3
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +6 -4
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +10 -5
- package/textarea/textarea.min.js +1 -1
- package/timeline/Timeline.d.ts +49 -0
- package/timeline/Timeline.vue +9 -7
- package/timeline/timeline.cjs.js +19 -21
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +16 -22
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +20 -23
- package/timeline/timeline.min.js +1 -1
- package/toast/Toast.d.ts +4 -0
- package/toast/Toast.vue +1 -1
- package/toast/toast.cjs.js +3 -3
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +3 -3
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +3 -3
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +59 -0
- package/togglebutton/ToggleButton.vue +7 -5
- package/togglebutton/togglebutton.cjs.js +15 -14
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +15 -15
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +16 -16
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/Tooltip.d.ts +10 -0
- package/tooltip/tooltip.cjs.js +51 -9
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +52 -10
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +51 -9
- package/tooltip/tooltip.min.js +1 -1
- package/tree/Tree.d.ts +137 -0
- package/tree/Tree.vue +12 -9
- package/tree/TreeNode.vue +23 -10
- package/tree/tree.cjs.js +85 -79
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +85 -80
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +86 -81
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +103 -1
- package/treeselect/TreeSelect.vue +15 -12
- package/treeselect/treeselect.cjs.js +37 -39
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +37 -40
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +38 -41
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BodyCell.vue +38 -10
- package/treetable/FooterCell.vue +15 -1
- package/treetable/HeaderCell.vue +28 -5
- package/treetable/TreeTable.d.ts +162 -0
- package/treetable/TreeTable.vue +25 -19
- package/treetable/TreeTableRow.vue +5 -0
- package/treetable/treetable.cjs.js +205 -158
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +205 -159
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +206 -160
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +93 -0
- package/tristatecheckbox/TriStateCheckbox.vue +19 -8
- package/tristatecheckbox/tristatecheckbox.cjs.js +31 -22
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +31 -23
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +32 -24
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/ts-helpers.d.ts +3 -1
- package/vetur-attributes.json +180 -0
- package/vetur-tags.json +94 -39
- package/virtualscroller/VirtualScroller.d.ts +97 -0
- package/virtualscroller/VirtualScroller.vue +7 -5
- package/virtualscroller/virtualscroller.cjs.js +22 -19
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +22 -20
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +23 -21
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +467 -3
- package/datatable/TableLoadingBody.vue +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.organizationchart=function(e,
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.organizationchart=function(e,t,o,n,l){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=s(e),a=s(t),d=s(o),c={name:"OrganizationChartNode",extends:i.default,emits:["node-click","node-toggle"],props:{node:{type:null,default:null},templates:{type:null,default:null},collapsible:{type:Boolean,default:!1},collapsedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null}},methods:{getPTOptions(e){return this.ptm(e,{context:{expanded:this.expanded,selectable:this.selectable,selected:this.selected,toggleable:this.toggleable,active:this.selected}})},getNodeOptions(e,t){return this.ptm(t,{context:{lineTop:e}})},onNodeClick(e){n.DomHandler.hasClass(e.target,"p-node-toggler")||n.DomHandler.hasClass(e.target,"p-node-toggler-icon")||this.selectionMode&&this.$emit("node-click",this.node)},onChildNodeClick(e){this.$emit("node-click",e)},toggleNode(){this.$emit("node-toggle",this.node)},onChildNodeToggle(e){this.$emit("node-toggle",e)},onKeydown(e){"Enter"!==e.code&&"Space"!==e.code||(this.toggleNode(),e.preventDefault())}},computed:{nodeContentClass(){return["p-organizationchart-node-content",this.node.styleClass,{"p-organizationchart-selectable-node":this.selectable,"p-highlight":this.selected}]},leaf(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},colspan(){return this.node.children&&this.node.children.length?2*this.node.children.length:null},childStyle(){return{visibility:!this.leaf&&this.expanded?"inherit":"hidden"}},expanded(){return void 0===this.collapsedKeys[this.node.key]},selectable(){return this.selectionMode&&!1!==this.node.selectable},selected(){return this.selectable&&this.selectionKeys&&!0===this.selectionKeys[this.node.key]},toggleable(){return this.collapsible&&!1!==this.node.collapsible&&!this.leaf}},components:{ChevronDownIcon:a.default,ChevronUpIcon:d.default}};const r=["colspan"],p=["colspan"],h=["colspan"];c.render=function(e,t,o,n,s,i){const a=l.resolveComponent("OrganizationChartNode",!0);return l.openBlock(),l.createElementBlock("table",l.mergeProps({class:"p-organizationchart-table"},e.ptm("table")),[l.createElementVNode("tbody",l.normalizeProps(l.guardReactiveProps(e.ptm("body"))),[o.node?(l.openBlock(),l.createElementBlock("tr",l.normalizeProps(l.mergeProps({key:0},e.ptm("row"))),[l.createElementVNode("td",l.mergeProps({colspan:i.colspan},e.ptm("cell")),[l.createElementVNode("div",l.mergeProps({class:i.nodeContentClass,onClick:t[2]||(t[2]=(...e)=>i.onNodeClick&&i.onNodeClick(...e))},i.getPTOptions("node")),[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o.templates[o.node.type]||o.templates.default),{node:o.node},null,8,["node"])),i.toggleable?(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,tabindex:"0",class:"p-node-toggler",onClick:t[0]||(t[0]=(...e)=>i.toggleNode&&i.toggleNode(...e)),onKeydown:t[1]||(t[1]=(...e)=>i.onKeydown&&i.onKeydown(...e))},i.getPTOptions("nodeToggler")),[o.templates.togglericon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o.templates.togglericon),{key:0,expanded:i.expanded,class:"p-node-toggler-icon"},null,8,["expanded"])):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.expanded?"ChevronDownIcon":"ChevronUpIcon"),l.mergeProps({key:1,class:"p-node-toggler-icon"},i.getPTOptions("nodeTogglerIcon")),null,16))],16)):l.createCommentVNode("",!0)],16)],16,r)],16)):l.createCommentVNode("",!0),l.createElementVNode("tr",l.mergeProps({style:i.childStyle,class:"p-organizationchart-lines"},e.ptm("lines")),[l.createElementVNode("td",{colspan:i.colspan},[l.createElementVNode("div",l.mergeProps({class:"p-organizationchart-line-down"},e.ptm("lineDown")),null,16)],8,p)],16),l.createElementVNode("tr",l.mergeProps({style:i.childStyle,class:"p-organizationchart-lines"},e.ptm("lines")),[o.node.children&&1===o.node.children.length?(l.openBlock(),l.createElementBlock("td",l.mergeProps({key:0,colspan:i.colspan},e.ptm("lineCell")),[l.createElementVNode("div",l.mergeProps({class:"p-organizationchart-line-down"},e.ptm("lineDown")),null,16)],16,h)):l.createCommentVNode("",!0),o.node.children&&o.node.children.length>1?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(o.node.children,((e,t)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:e.key},[l.createElementVNode("td",l.mergeProps({class:["p-organizationchart-line-left",{"p-organizationchart-line-top":!(0===t)}]},i.getNodeOptions(!(0===t),"lineLeft"))," ",16),l.createElementVNode("td",l.mergeProps({class:["p-organizationchart-line-right",{"p-organizationchart-line-top":!(t===o.node.children.length-1)}]},i.getNodeOptions(!(t===o.node.children.length-1),"lineRight"))," ",16)],64)))),128)):l.createCommentVNode("",!0)],16),l.createElementVNode("tr",l.mergeProps({style:i.childStyle,class:"p-organizationchart-nodes"},e.ptm("nodes")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.node.children,(t=>(l.openBlock(),l.createElementBlock("td",l.mergeProps({key:t.key,colspan:"2"},e.ptm("nodeCell")),[l.createVNode(a,{node:t,templates:o.templates,collapsedKeys:o.collapsedKeys,onNodeToggle:i.onChildNodeToggle,collapsible:o.collapsible,selectionMode:o.selectionMode,selectionKeys:o.selectionKeys,onNodeClick:i.onChildNodeClick,pt:e.pt},null,8,["node","templates","collapsedKeys","onNodeToggle","collapsible","selectionMode","selectionKeys","onNodeClick","pt"])],16)))),128))],16)],16)],16)};var g={name:"OrganizationChart",extends:i.default,emits:["node-unselect","node-select","update:selectionKeys","node-expand","node-collapse","update:collapsedKeys"],props:{value:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsedKeys:{type:null,default:null}},data(){return{d_collapsedKeys:this.collapsedKeys||{}}},watch:{collapsedKeys(e){this.d_collapsedKeys=e}},methods:{onNodeClick(e){const t=e.key;if(this.selectionMode){let o=this.selectionKeys?{...this.selectionKeys}:{};o[t]?(delete o[t],this.$emit("node-unselect",e)):("single"===this.selectionMode&&(o={}),o[t]=!0,this.$emit("node-select",e)),this.$emit("update:selectionKeys",o)}},onNodeToggle(e){const t=e.key;this.d_collapsedKeys[t]?(delete this.d_collapsedKeys[t],this.$emit("node-expand",e)):(this.d_collapsedKeys[t]=!0,this.$emit("node-collapse",e)),this.d_collapsedKeys={...this.d_collapsedKeys},this.$emit("update:collapsedKeys",this.d_collapsedKeys)}},components:{OrganizationChartNode:c}};return function(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===o&&n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-organizationchart-table {\n border-spacing: 0;\n border-collapse: separate;\n margin: 0 auto;\n}\n.p-organizationchart-table > tbody > tr > td {\n text-align: center;\n vertical-align: top;\n padding: 0 0.75rem;\n}\n.p-organizationchart-node-content {\n display: inline-block;\n position: relative;\n}\n.p-organizationchart-node-content .p-node-toggler {\n position: absolute;\n bottom: -0.75rem;\n margin-left: -0.75rem;\n z-index: 2;\n left: 50%;\n user-select: none;\n cursor: pointer;\n width: 1.5rem;\n height: 1.5rem;\n text-decoration: none;\n}\n.p-organizationchart-node-content .p-node-toggler .p-node-toggler-icon {\n position: relative;\n top: 0.25rem;\n}\n.p-organizationchart-line-down {\n margin: 0 auto;\n height: 20px;\n width: 1px;\n}\n.p-organizationchart-line-right {\n border-radius: 0px;\n}\n.p-organizationchart-line-left {\n border-radius: 0;\n}\n.p-organizationchart-selectable-node {\n cursor: pointer;\n}\n"),g.render=function(e,t,o,n,s,i){const a=l.resolveComponent("OrganizationChartNode");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:"p-organizationchart p-component"},e.ptm("root")),[l.createVNode(a,{node:o.value,templates:e.$slots,onNodeToggle:i.onNodeToggle,collapsedKeys:s.d_collapsedKeys,collapsible:o.collapsible,onNodeClick:i.onNodeClick,selectionMode:o.selectionMode,selectionKeys:o.selectionKeys,pt:e.pt},null,8,["node","templates","onNodeToggle","collapsedKeys","collapsible","onNodeClick","selectionMode","selectionKeys","pt"])],16)},g}(primevue.basecomponent,primevue.icons.chevrondown,primevue.icons.chevronup,primevue.utils,Vue);
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span class="p-paginator-current">{{ text }}</span>
|
|
2
|
+
<span class="p-paginator-current" v-bind="ptm('current')">{{ text }}</span>
|
|
3
3
|
</template>
|
|
4
|
+
|
|
4
5
|
<script>
|
|
6
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
7
|
+
|
|
5
8
|
export default {
|
|
6
9
|
name: 'CurrentPageReport',
|
|
10
|
+
extends: BaseComponent,
|
|
7
11
|
props: {
|
|
8
12
|
pageCount: {
|
|
9
13
|
type: Number,
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button v-ripple :class="containerClass" type="button">
|
|
3
|
-
<component :is="template || 'AngleDoubleLeftIcon'" class="p-paginator-icon" />
|
|
2
|
+
<button v-ripple :class="containerClass" type="button" v-bind="getPTOptions('firstPageButton')">
|
|
3
|
+
<component :is="template || 'AngleDoubleLeftIcon'" class="p-paginator-icon" v-bind="getPTOptions('firstPageIcon')" />
|
|
4
4
|
</button>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
8
9
|
import AngleDoubleLeftIcon from 'primevue/icons/angledoubleleft';
|
|
9
10
|
import Ripple from 'primevue/ripple';
|
|
10
11
|
|
|
11
12
|
export default {
|
|
12
13
|
name: 'FirstPageLink',
|
|
14
|
+
extends: BaseComponent,
|
|
13
15
|
props: {
|
|
14
16
|
template: {
|
|
15
17
|
type: Function,
|
|
16
18
|
default: null
|
|
17
19
|
}
|
|
18
20
|
},
|
|
21
|
+
methods: {
|
|
22
|
+
getPTOptions(key) {
|
|
23
|
+
return this.ptm(key, {
|
|
24
|
+
context: {
|
|
25
|
+
disabled: this.$attrs.disabled
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
},
|
|
19
30
|
computed: {
|
|
20
31
|
containerClass() {
|
|
21
32
|
return [
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<JTPDropdown :modelValue="page" :options="pageOptions" optionLabel="label" optionValue="value" @update:modelValue="onChange($event)" class="p-paginator-page-options" :disabled="disabled"></JTPDropdown>
|
|
2
|
+
<JTPDropdown :modelValue="page" :options="pageOptions" optionLabel="label" optionValue="value" @update:modelValue="onChange($event)" class="p-paginator-page-options" :disabled="disabled" :pt="ptm('JTPDropdown')"></JTPDropdown>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
6
7
|
import Dropdown from 'primevue/dropdown';
|
|
7
8
|
|
|
8
9
|
export default {
|
|
9
10
|
name: 'JumpToPageDropdown',
|
|
11
|
+
extends: BaseComponent,
|
|
10
12
|
emits: ['page-change'],
|
|
11
13
|
props: {
|
|
12
14
|
page: Number,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<JTPInput ref="jtpInput" :modelValue="d_page" class="p-paginator-page-input" :aria-label="inputArialabel" :disabled="disabled" @update:modelValue="onChange"></JTPInput>
|
|
2
|
+
<JTPInput ref="jtpInput" :modelValue="d_page" class="p-paginator-page-input" :aria-label="inputArialabel" :disabled="disabled" @update:modelValue="onChange" :pt="ptm('JTPInput')"></JTPInput>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
6
7
|
import InputNumber from 'primevue/inputnumber';
|
|
7
8
|
|
|
8
9
|
export default {
|
|
9
10
|
name: 'JumpToPageInput',
|
|
11
|
+
extends: BaseComponent,
|
|
10
12
|
inheritAttrs: false,
|
|
11
13
|
emits: ['page-change'],
|
|
12
14
|
props: {
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button v-ripple :class="containerClass" type="button">
|
|
3
|
-
<component :is="template || 'AngleDoubleRightIcon'" class="p-paginator-icon" />
|
|
2
|
+
<button v-ripple :class="containerClass" type="button" v-bind="getPTOptions('lastPageButton')">
|
|
3
|
+
<component :is="template || 'AngleDoubleRightIcon'" class="p-paginator-icon" v-bind="getPTOptions('lastPageIcon')" />
|
|
4
4
|
</button>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
8
9
|
import AngleDoubleRightIcon from 'primevue/icons/angledoubleright';
|
|
9
10
|
import Ripple from 'primevue/ripple';
|
|
10
11
|
|
|
11
12
|
export default {
|
|
12
13
|
name: 'LastPageLink',
|
|
14
|
+
extends: BaseComponent,
|
|
13
15
|
props: {
|
|
14
16
|
template: {
|
|
15
17
|
type: Function,
|
|
16
18
|
default: null
|
|
17
19
|
}
|
|
18
20
|
},
|
|
21
|
+
methods: {
|
|
22
|
+
getPTOptions(key) {
|
|
23
|
+
return this.ptm(key, {
|
|
24
|
+
context: {
|
|
25
|
+
disabled: this.$attrs.disabled
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
},
|
|
19
30
|
computed: {
|
|
20
31
|
containerClass() {
|
|
21
32
|
return [
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button v-ripple :class="containerClass" type="button">
|
|
3
|
-
<component :is="template || 'AngleRightIcon'" class="p-paginator-icon" />
|
|
2
|
+
<button v-ripple :class="containerClass" type="button" v-bind="getPTOptions('nextPageButton')">
|
|
3
|
+
<component :is="template || 'AngleRightIcon'" class="p-paginator-icon" v-bind="getPTOptions('nextPageIcon')" />
|
|
4
4
|
</button>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
8
9
|
import AngleRightIcon from 'primevue/icons/angleright';
|
|
9
10
|
import Ripple from 'primevue/ripple';
|
|
10
11
|
|
|
11
12
|
export default {
|
|
12
13
|
name: 'NextPageLink',
|
|
14
|
+
extends: BaseComponent,
|
|
13
15
|
props: {
|
|
14
16
|
template: {
|
|
15
17
|
type: Function,
|
|
16
18
|
default: null
|
|
17
19
|
}
|
|
18
20
|
},
|
|
21
|
+
methods: {
|
|
22
|
+
getPTOptions(key) {
|
|
23
|
+
return this.ptm(key, {
|
|
24
|
+
context: {
|
|
25
|
+
disabled: this.$attrs.disabled
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
},
|
|
19
30
|
computed: {
|
|
20
31
|
containerClass() {
|
|
21
32
|
return [
|
package/paginator/PageLinks.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span class="p-paginator-pages">
|
|
2
|
+
<span class="p-paginator-pages" v-bind="ptm('pages')">
|
|
3
3
|
<button
|
|
4
4
|
v-for="pageLink of value"
|
|
5
5
|
:key="pageLink"
|
|
@@ -9,16 +9,20 @@
|
|
|
9
9
|
:aria-label="ariaPageLabel(pageLink)"
|
|
10
10
|
:aria-current="pageLink - 1 === page ? 'page' : undefined"
|
|
11
11
|
@click="onPageLinkClick($event, pageLink)"
|
|
12
|
+
v-bind="getPTOptions(pageLink - 1, 'pageButton')"
|
|
12
13
|
>
|
|
13
14
|
{{ pageLink }}
|
|
14
15
|
</button>
|
|
15
16
|
</span>
|
|
16
17
|
</template>
|
|
18
|
+
|
|
17
19
|
<script>
|
|
20
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
18
21
|
import Ripple from 'primevue/ripple';
|
|
19
22
|
|
|
20
23
|
export default {
|
|
21
24
|
name: 'PageLinks',
|
|
25
|
+
extends: BaseComponent,
|
|
22
26
|
inheritAttrs: false,
|
|
23
27
|
emits: ['click'],
|
|
24
28
|
props: {
|
|
@@ -26,6 +30,13 @@ export default {
|
|
|
26
30
|
page: Number
|
|
27
31
|
},
|
|
28
32
|
methods: {
|
|
33
|
+
getPTOptions(pageLink, key) {
|
|
34
|
+
return this.ptm(key, {
|
|
35
|
+
context: {
|
|
36
|
+
active: pageLink === this.page
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
},
|
|
29
40
|
onPageLinkClick(event, pageLink) {
|
|
30
41
|
this.$emit('click', {
|
|
31
42
|
originalEvent: event,
|
|
@@ -36,7 +47,6 @@ export default {
|
|
|
36
47
|
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, value) : undefined;
|
|
37
48
|
}
|
|
38
49
|
},
|
|
39
|
-
computed: {},
|
|
40
50
|
directives: {
|
|
41
51
|
ripple: Ripple
|
|
42
52
|
}
|
package/paginator/Paginator.d.ts
CHANGED
|
@@ -8,8 +8,136 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
|
+
import { DropdownPassThroughOptionType } from '../dropdown';
|
|
12
|
+
import { InputNumberPassThroughOptionType } from '../inputnumber';
|
|
11
13
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
12
14
|
|
|
15
|
+
export declare type PaginatorPassThroughOptionType = PaginatorPassThroughAttributes | ((options: PaginatorPassThroughMethodOptions) => PaginatorPassThroughAttributes) | null | undefined;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Custom passthrough(pt) option method.
|
|
19
|
+
*/
|
|
20
|
+
export interface PaginatorPassThroughMethodOptions {
|
|
21
|
+
props: PaginatorProps;
|
|
22
|
+
state: PaginatorState;
|
|
23
|
+
context: PaginatorContext;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Custom passthrough(pt) options.
|
|
28
|
+
* @see {@link PaginatorProps.pt}
|
|
29
|
+
*/
|
|
30
|
+
export interface PaginatorPassThroughOptions {
|
|
31
|
+
/**
|
|
32
|
+
* Uses to pass attributes to the root's DOM element.
|
|
33
|
+
*/
|
|
34
|
+
root?: PaginatorPassThroughOptionType;
|
|
35
|
+
/**
|
|
36
|
+
* Uses to pass attributes to the left's DOM element.
|
|
37
|
+
*/
|
|
38
|
+
left?: PaginatorPassThroughOptionType;
|
|
39
|
+
/**
|
|
40
|
+
* Uses to pass attributes to the first page button's DOM element.
|
|
41
|
+
*/
|
|
42
|
+
firstPageButton?: PaginatorPassThroughOptionType;
|
|
43
|
+
/**
|
|
44
|
+
* Uses to pass attributes to the first page icon's DOM element.
|
|
45
|
+
*/
|
|
46
|
+
firstPageIcon?: PaginatorPassThroughOptionType;
|
|
47
|
+
/**
|
|
48
|
+
* Uses to pass attributes to the prev page button's DOM element.
|
|
49
|
+
*/
|
|
50
|
+
prevPageButton?: PaginatorPassThroughOptionType;
|
|
51
|
+
/**
|
|
52
|
+
* Uses to pass attributes to the prev page icon's DOM element.
|
|
53
|
+
*/
|
|
54
|
+
prevPageIcon?: PaginatorPassThroughOptionType;
|
|
55
|
+
/**
|
|
56
|
+
* Uses to pass attributes to the next page button's DOM element.
|
|
57
|
+
*/
|
|
58
|
+
nextPageButton?: PaginatorPassThroughOptionType;
|
|
59
|
+
/**
|
|
60
|
+
* Uses to pass attributes to the next page icon's DOM element.
|
|
61
|
+
*/
|
|
62
|
+
nextPageIcon?: PaginatorPassThroughOptionType;
|
|
63
|
+
/**
|
|
64
|
+
* Uses to pass attributes to the last page button's DOM element.
|
|
65
|
+
*/
|
|
66
|
+
lastPageButton?: PaginatorPassThroughOptionType;
|
|
67
|
+
/**
|
|
68
|
+
* Uses to pass attributes to the last page icon's DOM element.
|
|
69
|
+
*/
|
|
70
|
+
lastPageIcon?: PaginatorPassThroughOptionType;
|
|
71
|
+
/**
|
|
72
|
+
* Uses to pass attributes to the pages's DOM element.
|
|
73
|
+
*/
|
|
74
|
+
pages?: PaginatorPassThroughOptionType;
|
|
75
|
+
/**
|
|
76
|
+
* Uses to pass attributes to the page button's DOM element.
|
|
77
|
+
*/
|
|
78
|
+
pageButton?: PaginatorPassThroughOptionType;
|
|
79
|
+
/**
|
|
80
|
+
* Uses to pass attributes to the current's DOM element.
|
|
81
|
+
*/
|
|
82
|
+
current?: PaginatorPassThroughOptionType;
|
|
83
|
+
/**
|
|
84
|
+
* Uses to pass attributes to the Dropdown component.
|
|
85
|
+
* @see {@link DropdownPassThroughOptionType}
|
|
86
|
+
*/
|
|
87
|
+
RPPDropdown?: DropdownPassThroughOptionType;
|
|
88
|
+
/**
|
|
89
|
+
* Uses to pass attributes to the Dropdown component.
|
|
90
|
+
* @see {@link DropdownPassThroughOptionType}
|
|
91
|
+
*/
|
|
92
|
+
JTPDropdown?: DropdownPassThroughOptionType;
|
|
93
|
+
/**
|
|
94
|
+
* Uses to pass attributes to the Dropdown component.
|
|
95
|
+
* @see {@link InputNumberPassThroughOptionType}
|
|
96
|
+
*/
|
|
97
|
+
JTPInput?: InputNumberPassThroughOptionType;
|
|
98
|
+
/**
|
|
99
|
+
* Uses to pass attributes to the end's DOM element.
|
|
100
|
+
*/
|
|
101
|
+
end?: PaginatorPassThroughOptionType;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Custom passthrough attributes for each DOM elements
|
|
106
|
+
*/
|
|
107
|
+
export interface PaginatorPassThroughAttributes {
|
|
108
|
+
[key: string]: any;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Defines current inline state in Paginator component.
|
|
113
|
+
*/
|
|
114
|
+
export interface PaginatorState {
|
|
115
|
+
/**
|
|
116
|
+
* Current index of first record as a number.
|
|
117
|
+
*/
|
|
118
|
+
d_first: number;
|
|
119
|
+
/**
|
|
120
|
+
* Current number of rows to display in new page as a number.
|
|
121
|
+
*/
|
|
122
|
+
d_rows: number;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Defines current options in Paginator component.
|
|
127
|
+
*/
|
|
128
|
+
export interface PaginatorContext {
|
|
129
|
+
/**
|
|
130
|
+
* Current active state as a boolean.
|
|
131
|
+
* @defaultValue false
|
|
132
|
+
*/
|
|
133
|
+
active: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Current disabled state of the button as a boolean.
|
|
136
|
+
* @defaultValue false
|
|
137
|
+
*/
|
|
138
|
+
disabled: boolean;
|
|
139
|
+
}
|
|
140
|
+
|
|
13
141
|
/**
|
|
14
142
|
* Paginator page state metadata.
|
|
15
143
|
*/
|
|
@@ -92,6 +220,11 @@ export interface PaginatorProps {
|
|
|
92
220
|
* @defaultValue true
|
|
93
221
|
*/
|
|
94
222
|
alwaysShow?: boolean | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
225
|
+
* @type {PaginatorPassThroughOptions}
|
|
226
|
+
*/
|
|
227
|
+
pt?: PaginatorPassThroughOptions;
|
|
95
228
|
}
|
|
96
229
|
|
|
97
230
|
/**
|
package/paginator/Paginator.vue
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<nav v-if="alwaysShow ? true : pageLinks && pageLinks.length > 1">
|
|
3
|
-
<div v-for="(value, key) in templateItems" :key="key" ref="paginator" class="p-paginator p-component" :class="getPaginatorClasses(key)">
|
|
4
|
-
<div v-if="$slots.start" class="p-paginator-left-content">
|
|
2
|
+
<nav v-if="alwaysShow ? true : pageLinks && pageLinks.length > 1" v-bind="ptm('root')">
|
|
3
|
+
<div v-for="(value, key) in templateItems" :key="key" ref="paginator" class="p-paginator p-component" :class="getPaginatorClasses(key)" v-bind="ptm('paginator')">
|
|
4
|
+
<div v-if="$slots.start" class="p-paginator-left-content" v-bind="ptm('left')">
|
|
5
5
|
<slot name="start" :state="currentState"></slot>
|
|
6
6
|
</div>
|
|
7
7
|
<template v-for="item in value" :key="item">
|
|
8
|
-
<FirstPageLink v-if="item === 'FirstPageLink'" :aria-label="getAriaLabel('firstPageLabel')" :template="$slots.firstpagelinkicon" @click="changePageToFirst($event)" :disabled="isFirstPage || empty" />
|
|
9
|
-
<PrevPageLink v-else-if="item === 'PrevPageLink'" :aria-label="getAriaLabel('prevPageLabel')" :template="$slots.prevpagelinkicon" @click="changePageToPrev($event)" :disabled="isFirstPage || empty" />
|
|
10
|
-
<NextPageLink v-else-if="item === 'NextPageLink'" :aria-label="getAriaLabel('nextPageLabel')" :template="$slots.nextpagelinkicon" @click="changePageToNext($event)" :disabled="isLastPage || empty" />
|
|
11
|
-
<LastPageLink v-else-if="item === 'LastPageLink'" :aria-label="getAriaLabel('lastPageLabel')" :template="$slots.lastpagelinkicon" @click="changePageToLast($event)" :disabled="isLastPage || empty" />
|
|
12
|
-
<PageLinks v-else-if="item === 'PageLinks'" :aria-label="getAriaLabel('pageLabel')" :value="pageLinks" :page="page" @click="changePageLink($event)" />
|
|
8
|
+
<FirstPageLink v-if="item === 'FirstPageLink'" :aria-label="getAriaLabel('firstPageLabel')" :template="$slots.firstpagelinkicon" @click="changePageToFirst($event)" :disabled="isFirstPage || empty" :pt="pt" />
|
|
9
|
+
<PrevPageLink v-else-if="item === 'PrevPageLink'" :aria-label="getAriaLabel('prevPageLabel')" :template="$slots.prevpagelinkicon" @click="changePageToPrev($event)" :disabled="isFirstPage || empty" :pt="pt" />
|
|
10
|
+
<NextPageLink v-else-if="item === 'NextPageLink'" :aria-label="getAriaLabel('nextPageLabel')" :template="$slots.nextpagelinkicon" @click="changePageToNext($event)" :disabled="isLastPage || empty" :pt="pt" />
|
|
11
|
+
<LastPageLink v-else-if="item === 'LastPageLink'" :aria-label="getAriaLabel('lastPageLabel')" :template="$slots.lastpagelinkicon" @click="changePageToLast($event)" :disabled="isLastPage || empty" :pt="pt" />
|
|
12
|
+
<PageLinks v-else-if="item === 'PageLinks'" :aria-label="getAriaLabel('pageLabel')" :value="pageLinks" :page="page" @click="changePageLink($event)" :pt="pt" />
|
|
13
13
|
<CurrentPageReport
|
|
14
14
|
v-else-if="item === 'CurrentPageReport'"
|
|
15
15
|
aria-live="polite"
|
|
@@ -20,12 +20,21 @@
|
|
|
20
20
|
:first="d_first"
|
|
21
21
|
:rows="d_rows"
|
|
22
22
|
:totalRecords="totalRecords"
|
|
23
|
+
:pt="pt"
|
|
23
24
|
/>
|
|
24
|
-
<RowsPerPageDropdown
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
<RowsPerPageDropdown
|
|
26
|
+
v-else-if="item === 'RowsPerPageDropdown' && rowsPerPageOptions"
|
|
27
|
+
:aria-label="getAriaLabel('rowsPerPageLabel')"
|
|
28
|
+
:rows="d_rows"
|
|
29
|
+
:options="rowsPerPageOptions"
|
|
30
|
+
@rows-change="onRowChange($event)"
|
|
31
|
+
:disabled="empty"
|
|
32
|
+
:pt="pt"
|
|
33
|
+
/>
|
|
34
|
+
<JumpToPageDropdown v-else-if="item === 'JumpToPageDropdown'" :aria-label="getAriaLabel('jumpToPageDropdownLabel')" :page="page" :pageCount="pageCount" @page-change="changePage($event)" :disabled="empty" :pt="pt" />
|
|
35
|
+
<JumpToPageInput v-else-if="item === 'JumpToPageInput'" :page="currentPage" @page-change="changePage($event)" :disabled="empty" :pt="pt" />
|
|
27
36
|
</template>
|
|
28
|
-
<div v-if="$slots.end" class="p-paginator-right-content">
|
|
37
|
+
<div v-if="$slots.end" class="p-paginator-right-content" v-bind="ptm('end')">
|
|
29
38
|
<slot name="end" :state="currentState"></slot>
|
|
30
39
|
</div>
|
|
31
40
|
</div>
|
|
@@ -33,6 +42,7 @@
|
|
|
33
42
|
</template>
|
|
34
43
|
|
|
35
44
|
<script>
|
|
45
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
36
46
|
import { UniqueComponentId } from 'primevue/utils';
|
|
37
47
|
import CurrrentPageReport from './CurrentPageReport.vue';
|
|
38
48
|
import FirstPageLink from './FirstPageLink.vue';
|
|
@@ -46,6 +56,7 @@ import RowsPerPageDropdown from './RowsPerPageDropdown.vue';
|
|
|
46
56
|
|
|
47
57
|
export default {
|
|
48
58
|
name: 'Paginator',
|
|
59
|
+
extends: BaseComponent,
|
|
49
60
|
emits: ['update:first', 'update:rows', 'page'],
|
|
50
61
|
props: {
|
|
51
62
|
totalRecords: {
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button v-ripple :class="containerClass" type="button">
|
|
3
|
-
<component :is="template || 'AngleLeftIcon'" class="p-paginator-icon" />
|
|
2
|
+
<button v-ripple :class="containerClass" type="button" v-bind="getPTOptions('prevPageButton')">
|
|
3
|
+
<component :is="template || 'AngleLeftIcon'" class="p-paginator-icon" v-bind="getPTOptions('prevPageIcon')" />
|
|
4
4
|
</button>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
8
9
|
import AngleLeftIcon from 'primevue/icons/angleleft';
|
|
9
10
|
import Ripple from 'primevue/ripple';
|
|
10
11
|
|
|
11
12
|
export default {
|
|
12
13
|
name: 'PrevPageLink',
|
|
14
|
+
extends: BaseComponent,
|
|
13
15
|
props: {
|
|
14
16
|
template: {
|
|
15
17
|
type: Function,
|
|
16
18
|
default: null
|
|
17
19
|
}
|
|
18
20
|
},
|
|
21
|
+
methods: {
|
|
22
|
+
getPTOptions(key) {
|
|
23
|
+
return this.ptm(key, {
|
|
24
|
+
context: {
|
|
25
|
+
disabled: this.$attrs.disabled
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
},
|
|
19
30
|
computed: {
|
|
20
31
|
containerClass() {
|
|
21
32
|
return [
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<RPPDropdown :modelValue="rows" :options="rowsOptions" optionLabel="label" optionValue="value" @update:modelValue="onChange($event)" class="p-paginator-rpp-options" :disabled="disabled"></RPPDropdown>
|
|
2
|
+
<RPPDropdown :modelValue="rows" :options="rowsOptions" optionLabel="label" optionValue="value" @update:modelValue="onChange($event)" class="p-paginator-rpp-options" :disabled="disabled" :pt="ptm('RPPDropdown')"></RPPDropdown>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
6
7
|
import Dropdown from 'primevue/dropdown';
|
|
7
8
|
|
|
8
9
|
export default {
|
|
9
10
|
name: 'RowsPerPageDropdown',
|
|
11
|
+
extends: BaseComponent,
|
|
10
12
|
emits: ['rows-change'],
|
|
11
13
|
props: {
|
|
12
14
|
options: Array,
|