primevue 3.28.0 → 3.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +273 -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 +29 -16
- 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 +563 -378
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +563 -379
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +564 -380
- 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/dialogservice/dialogservice.cjs.js +3 -3
- package/dialogservice/dialogservice.cjs.min.js +1 -1
- package/dialogservice/dialogservice.esm.js +3 -3
- package/dialogservice/dialogservice.esm.min.js +1 -1
- package/dialogservice/dialogservice.js +3 -3
- package/dialogservice/dialogservice.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/speeddial/SpeedDial.d.ts +4 -0
- package/speeddial/SpeedDial.vue +1 -1
- package/speeddial/speeddial.cjs.js +3 -2
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +3 -2
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +3 -2
- package/speeddial/speeddial.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/steps/Steps.vue +4 -0
- package/steps/steps.cjs.js +1 -1
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +1 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +1 -1
- package/steps/steps.min.js +1 -1
- package/tabmenu/TabMenu.vue +13 -4
- package/tabmenu/tabmenu.cjs.js +13 -4
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +13 -4
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +13 -4
- package/tabmenu/tabmenu.min.js +1 -1
- 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
package/vetur-tags.json
CHANGED
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
"emptySearchMessage",
|
|
72
72
|
"tabindex",
|
|
73
73
|
"aria-label",
|
|
74
|
-
"aria-labelledby"
|
|
74
|
+
"aria-labelledby",
|
|
75
|
+
"pt"
|
|
75
76
|
]
|
|
76
77
|
},
|
|
77
78
|
"Avatar": {
|
|
@@ -201,7 +202,8 @@
|
|
|
201
202
|
"inputProps",
|
|
202
203
|
"panelClass",
|
|
203
204
|
"panelStyle",
|
|
204
|
-
"panelProps"
|
|
205
|
+
"panelProps",
|
|
206
|
+
"pt"
|
|
205
207
|
]
|
|
206
208
|
},
|
|
207
209
|
"Carousel": {
|
|
@@ -220,7 +222,8 @@
|
|
|
220
222
|
"containerClass",
|
|
221
223
|
"indicatorsContentClass",
|
|
222
224
|
"showNavigators",
|
|
223
|
-
"showIndicators"
|
|
225
|
+
"showIndicators",
|
|
226
|
+
"pt"
|
|
224
227
|
]
|
|
225
228
|
},
|
|
226
229
|
"CascadeSelect": {
|
|
@@ -256,7 +259,8 @@
|
|
|
256
259
|
"emptySearchMessage",
|
|
257
260
|
"tabindex",
|
|
258
261
|
"aria-label",
|
|
259
|
-
"aria-labelledby"
|
|
262
|
+
"aria-labelledby",
|
|
263
|
+
"pt"
|
|
260
264
|
]
|
|
261
265
|
},
|
|
262
266
|
"Chart": {
|
|
@@ -288,7 +292,8 @@
|
|
|
288
292
|
"inputStyle",
|
|
289
293
|
"inputProps",
|
|
290
294
|
"aria-labelledby",
|
|
291
|
-
"aria-label"
|
|
295
|
+
"aria-label",
|
|
296
|
+
"pt"
|
|
292
297
|
]
|
|
293
298
|
},
|
|
294
299
|
"Chip": {
|
|
@@ -315,7 +320,8 @@
|
|
|
315
320
|
"inputId",
|
|
316
321
|
"inputClass",
|
|
317
322
|
"inputStyle",
|
|
318
|
-
"inputProps"
|
|
323
|
+
"inputProps",
|
|
324
|
+
"pt"
|
|
319
325
|
]
|
|
320
326
|
},
|
|
321
327
|
"ColorPicker": {
|
|
@@ -332,7 +338,8 @@
|
|
|
332
338
|
"panelClass",
|
|
333
339
|
"appendTo",
|
|
334
340
|
"aria-labelledby",
|
|
335
|
-
"aria-label"
|
|
341
|
+
"aria-label",
|
|
342
|
+
"pt"
|
|
336
343
|
]
|
|
337
344
|
},
|
|
338
345
|
"Column": {
|
|
@@ -379,7 +386,15 @@
|
|
|
379
386
|
"exportable",
|
|
380
387
|
"exportHeader",
|
|
381
388
|
"exportFooter",
|
|
382
|
-
"hidden"
|
|
389
|
+
"hidden",
|
|
390
|
+
"pt"
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
"ColumnGroup": {
|
|
394
|
+
"description": "Columns can be grouped at header and footer sections by defining a ColumnGroup with nested rows and columns",
|
|
395
|
+
"attributes": [
|
|
396
|
+
"type",
|
|
397
|
+
"pt"
|
|
383
398
|
]
|
|
384
399
|
},
|
|
385
400
|
"ConfirmDialog": {
|
|
@@ -475,7 +490,8 @@
|
|
|
475
490
|
"showGridlines",
|
|
476
491
|
"stripedRows",
|
|
477
492
|
"tableStyle",
|
|
478
|
-
"tableClass"
|
|
493
|
+
"tableClass",
|
|
494
|
+
"pt"
|
|
479
495
|
]
|
|
480
496
|
},
|
|
481
497
|
"DataView": {
|
|
@@ -496,13 +512,15 @@
|
|
|
496
512
|
"sortField",
|
|
497
513
|
"sortOrder",
|
|
498
514
|
"lazy",
|
|
499
|
-
"dataKey"
|
|
515
|
+
"dataKey",
|
|
516
|
+
"pt"
|
|
500
517
|
]
|
|
501
518
|
},
|
|
502
519
|
"DataViewLayoutOptions": {
|
|
503
520
|
"description": "When both layout modes are enabled in DataView, a UI element would be necessary to let the user toggle between the view. DataViewLayoutOptions is a helper component to display a buttonset to choose the layout mode in DataView.",
|
|
504
521
|
"attributes": [
|
|
505
|
-
"modelValue"
|
|
522
|
+
"modelValue",
|
|
523
|
+
"pt"
|
|
506
524
|
]
|
|
507
525
|
},
|
|
508
526
|
"DeferredContent": {
|
|
@@ -605,7 +623,8 @@
|
|
|
605
623
|
"emptyMessage",
|
|
606
624
|
"tabindex",
|
|
607
625
|
"aria-label",
|
|
608
|
-
"aria-labelledby"
|
|
626
|
+
"aria-labelledby",
|
|
627
|
+
"pt"
|
|
609
628
|
]
|
|
610
629
|
},
|
|
611
630
|
"Editor": {
|
|
@@ -616,7 +635,8 @@
|
|
|
616
635
|
"readonly",
|
|
617
636
|
"formats",
|
|
618
637
|
"editorStyle",
|
|
619
|
-
"modules"
|
|
638
|
+
"modules",
|
|
639
|
+
"pt"
|
|
620
640
|
]
|
|
621
641
|
},
|
|
622
642
|
"Fieldset": {
|
|
@@ -685,14 +705,18 @@
|
|
|
685
705
|
"baseZIndex",
|
|
686
706
|
"maskClass",
|
|
687
707
|
"containerStyle",
|
|
688
|
-
"containerClass"
|
|
708
|
+
"containerClass",
|
|
709
|
+
"pt"
|
|
689
710
|
]
|
|
690
711
|
},
|
|
691
712
|
"Image": {
|
|
692
713
|
"description": "Displays an image with preview and tranformation options.",
|
|
693
714
|
"attributes": [
|
|
694
715
|
"preview",
|
|
695
|
-
"indicatorIcon"
|
|
716
|
+
"indicatorIcon",
|
|
717
|
+
"zoomInDisabled",
|
|
718
|
+
"zoomOutDisabled",
|
|
719
|
+
"pt"
|
|
696
720
|
]
|
|
697
721
|
},
|
|
698
722
|
"InlineMessage": {
|
|
@@ -719,7 +743,8 @@
|
|
|
719
743
|
"mask",
|
|
720
744
|
"slotChar",
|
|
721
745
|
"autoClear",
|
|
722
|
-
"unmask"
|
|
746
|
+
"unmask",
|
|
747
|
+
"pt"
|
|
723
748
|
]
|
|
724
749
|
},
|
|
725
750
|
"InputNumber": {
|
|
@@ -754,7 +779,8 @@
|
|
|
754
779
|
"inputClass",
|
|
755
780
|
"inputProps",
|
|
756
781
|
"incrementButtonProps",
|
|
757
|
-
"decrementButtonProps"
|
|
782
|
+
"decrementButtonProps",
|
|
783
|
+
"pt"
|
|
758
784
|
]
|
|
759
785
|
},
|
|
760
786
|
"InputSwitch": {
|
|
@@ -766,13 +792,15 @@
|
|
|
766
792
|
"inputId",
|
|
767
793
|
"inputStyle",
|
|
768
794
|
"inputClass",
|
|
769
|
-
"inputProps"
|
|
795
|
+
"inputProps",
|
|
796
|
+
"pt"
|
|
770
797
|
]
|
|
771
798
|
},
|
|
772
799
|
"InputText": {
|
|
773
800
|
"description": "InputText renders a text field to enter data.",
|
|
774
801
|
"attributes": [
|
|
775
|
-
"modelValue"
|
|
802
|
+
"modelValue",
|
|
803
|
+
"pt"
|
|
776
804
|
]
|
|
777
805
|
},
|
|
778
806
|
"Knob": {
|
|
@@ -793,7 +821,8 @@
|
|
|
793
821
|
"valueTemplate",
|
|
794
822
|
"tabindex",
|
|
795
823
|
"aria-labelledby",
|
|
796
|
-
"aria-label"
|
|
824
|
+
"aria-label",
|
|
825
|
+
"pt"
|
|
797
826
|
]
|
|
798
827
|
},
|
|
799
828
|
"Listbox": {
|
|
@@ -827,7 +856,8 @@
|
|
|
827
856
|
"emptyMessage",
|
|
828
857
|
"tabindex",
|
|
829
858
|
"aria-label",
|
|
830
|
-
"aria-labelledby"
|
|
859
|
+
"aria-labelledby",
|
|
860
|
+
"pt"
|
|
831
861
|
]
|
|
832
862
|
},
|
|
833
863
|
"MegaMenu": {
|
|
@@ -922,7 +952,8 @@
|
|
|
922
952
|
"emptyMessage",
|
|
923
953
|
"tabindex",
|
|
924
954
|
"aria-label",
|
|
925
|
-
"aria-labelledby"
|
|
955
|
+
"aria-labelledby",
|
|
956
|
+
"pt"
|
|
926
957
|
]
|
|
927
958
|
},
|
|
928
959
|
"OrderList": {
|
|
@@ -935,7 +966,8 @@
|
|
|
935
966
|
"listStyle",
|
|
936
967
|
"responsive",
|
|
937
968
|
"breakpoint",
|
|
938
|
-
"stripedRows"
|
|
969
|
+
"stripedRows",
|
|
970
|
+
"pt"
|
|
939
971
|
]
|
|
940
972
|
},
|
|
941
973
|
"OrganizationChart": {
|
|
@@ -945,7 +977,8 @@
|
|
|
945
977
|
"selectionKeys",
|
|
946
978
|
"selectionMode",
|
|
947
979
|
"collapsible",
|
|
948
|
-
"collapsedKeys"
|
|
980
|
+
"collapsedKeys",
|
|
981
|
+
"pt"
|
|
949
982
|
]
|
|
950
983
|
},
|
|
951
984
|
"OverlayPanel": {
|
|
@@ -972,7 +1005,8 @@
|
|
|
972
1005
|
"rowsPerPageOptions",
|
|
973
1006
|
"template",
|
|
974
1007
|
"currentPageReportTemplate",
|
|
975
|
-
"alwaysShow"
|
|
1008
|
+
"alwaysShow",
|
|
1009
|
+
"pt"
|
|
976
1010
|
]
|
|
977
1011
|
},
|
|
978
1012
|
"Panel": {
|
|
@@ -1019,7 +1053,8 @@
|
|
|
1019
1053
|
"panelId",
|
|
1020
1054
|
"panelClass",
|
|
1021
1055
|
"panelStyle",
|
|
1022
|
-
"panelProps"
|
|
1056
|
+
"panelProps",
|
|
1057
|
+
"pt"
|
|
1023
1058
|
]
|
|
1024
1059
|
},
|
|
1025
1060
|
"PickList": {
|
|
@@ -1034,7 +1069,8 @@
|
|
|
1034
1069
|
"breakpoint",
|
|
1035
1070
|
"stripedRows",
|
|
1036
1071
|
"showSourceControls",
|
|
1037
|
-
"showTargetControls"
|
|
1072
|
+
"showTargetControls",
|
|
1073
|
+
"pt"
|
|
1038
1074
|
]
|
|
1039
1075
|
},
|
|
1040
1076
|
"Portal": {
|
|
@@ -1074,7 +1110,8 @@
|
|
|
1074
1110
|
"inputStyle",
|
|
1075
1111
|
"inputProps",
|
|
1076
1112
|
"aria-labelledby",
|
|
1077
|
-
"aria-label"
|
|
1113
|
+
"aria-label",
|
|
1114
|
+
"pt"
|
|
1078
1115
|
]
|
|
1079
1116
|
},
|
|
1080
1117
|
"rating": {
|
|
@@ -1087,7 +1124,15 @@
|
|
|
1087
1124
|
"cancel",
|
|
1088
1125
|
"onIcon",
|
|
1089
1126
|
"offIcon",
|
|
1090
|
-
"cancelIcon"
|
|
1127
|
+
"cancelIcon",
|
|
1128
|
+
"pt"
|
|
1129
|
+
]
|
|
1130
|
+
},
|
|
1131
|
+
"Row": {
|
|
1132
|
+
"description": "DataTable can be grouped by defining a Row component with nested columns",
|
|
1133
|
+
"attributes": [
|
|
1134
|
+
"type",
|
|
1135
|
+
"pt"
|
|
1091
1136
|
]
|
|
1092
1137
|
},
|
|
1093
1138
|
"ScrollPanel": {
|
|
@@ -1119,7 +1164,8 @@
|
|
|
1119
1164
|
"disabled",
|
|
1120
1165
|
"dataKey",
|
|
1121
1166
|
"unselectable",
|
|
1122
|
-
"aria-labelledby"
|
|
1167
|
+
"aria-labelledby",
|
|
1168
|
+
"pt"
|
|
1123
1169
|
]
|
|
1124
1170
|
},
|
|
1125
1171
|
"Sidebar": {
|
|
@@ -1162,7 +1208,8 @@
|
|
|
1162
1208
|
"disabled",
|
|
1163
1209
|
"tabindex",
|
|
1164
1210
|
"aria-labelledby",
|
|
1165
|
-
"aria-label"
|
|
1211
|
+
"aria-label",
|
|
1212
|
+
"pt"
|
|
1166
1213
|
]
|
|
1167
1214
|
},
|
|
1168
1215
|
"SpeedDial": {
|
|
@@ -1302,7 +1349,8 @@
|
|
|
1302
1349
|
"description": "Textarea is a multi-line text input element.",
|
|
1303
1350
|
"attributes": [
|
|
1304
1351
|
"modelValue",
|
|
1305
|
-
"autoResize"
|
|
1352
|
+
"autoResize",
|
|
1353
|
+
"pt"
|
|
1306
1354
|
]
|
|
1307
1355
|
},
|
|
1308
1356
|
"TieredMenu": {
|
|
@@ -1323,7 +1371,8 @@
|
|
|
1323
1371
|
"value",
|
|
1324
1372
|
"align",
|
|
1325
1373
|
"layout",
|
|
1326
|
-
"dataKey"
|
|
1374
|
+
"dataKey",
|
|
1375
|
+
"pt"
|
|
1327
1376
|
]
|
|
1328
1377
|
},
|
|
1329
1378
|
"Toast": {
|
|
@@ -1351,7 +1400,8 @@
|
|
|
1351
1400
|
"inputId",
|
|
1352
1401
|
"inputClass",
|
|
1353
1402
|
"inputStyle",
|
|
1354
|
-
"inputProps"
|
|
1403
|
+
"inputProps",
|
|
1404
|
+
"pt"
|
|
1355
1405
|
]
|
|
1356
1406
|
},
|
|
1357
1407
|
"Toolbar": {
|
|
@@ -1376,7 +1426,8 @@
|
|
|
1376
1426
|
"filterMode",
|
|
1377
1427
|
"filterPlaceholder",
|
|
1378
1428
|
"filterLocale",
|
|
1379
|
-
"scrollHeight"
|
|
1429
|
+
"scrollHeight",
|
|
1430
|
+
"pt"
|
|
1380
1431
|
]
|
|
1381
1432
|
},
|
|
1382
1433
|
"TreeSelect": {
|
|
@@ -1398,7 +1449,8 @@
|
|
|
1398
1449
|
"display",
|
|
1399
1450
|
"metaKeySelection",
|
|
1400
1451
|
"aria-labelledby",
|
|
1401
|
-
"aria-label"
|
|
1452
|
+
"aria-label",
|
|
1453
|
+
"pt"
|
|
1402
1454
|
]
|
|
1403
1455
|
},
|
|
1404
1456
|
"TreeTable": {
|
|
@@ -1440,7 +1492,8 @@
|
|
|
1440
1492
|
"scrollable",
|
|
1441
1493
|
"scrollDirection",
|
|
1442
1494
|
"scrollHeight",
|
|
1443
|
-
"responsiveLayout"
|
|
1495
|
+
"responsiveLayout",
|
|
1496
|
+
"pt"
|
|
1444
1497
|
]
|
|
1445
1498
|
},
|
|
1446
1499
|
"TriStateCheckbox": {
|
|
@@ -1452,7 +1505,8 @@
|
|
|
1452
1505
|
"inputId",
|
|
1453
1506
|
"inputProps",
|
|
1454
1507
|
"aria-labelledby",
|
|
1455
|
-
"aria-label"
|
|
1508
|
+
"aria-label",
|
|
1509
|
+
"pt"
|
|
1456
1510
|
]
|
|
1457
1511
|
},
|
|
1458
1512
|
"VirtualScroller": {
|
|
@@ -1474,7 +1528,8 @@
|
|
|
1474
1528
|
"loading",
|
|
1475
1529
|
"showSpacer",
|
|
1476
1530
|
"showLoader",
|
|
1477
|
-
"tabindex"
|
|
1531
|
+
"tabindex",
|
|
1532
|
+
"pt"
|
|
1478
1533
|
]
|
|
1479
1534
|
}
|
|
1480
1535
|
}
|
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
12
12
|
|
|
13
|
+
export declare type VirtualScrollerPassThroughOptionType = VirtualScrollerPassThroughAttributes | ((options: VirtualScrollerPassThroughMethodOptions) => VirtualScrollerPassThroughAttributes) | null | undefined;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Custom passthrough(pt) option method.
|
|
17
|
+
*/
|
|
18
|
+
export interface VirtualScrollerPassThroughMethodOptions {
|
|
19
|
+
props: VirtualScrollerProps;
|
|
20
|
+
state: VirtualScrollerState;
|
|
21
|
+
}
|
|
22
|
+
|
|
13
23
|
/**
|
|
14
24
|
* Custom scroll index change event.
|
|
15
25
|
* @see {@link VirtualScrollerEmits['scroll-index-change']}
|
|
@@ -92,6 +102,87 @@ export interface VirtualScrollerItemOptions {
|
|
|
92
102
|
[key: string]: any;
|
|
93
103
|
}
|
|
94
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Custom passthrough(pt) options.
|
|
107
|
+
* @see {@link VirtualScrollerProps.pt}
|
|
108
|
+
*/
|
|
109
|
+
export interface VirtualScrollerPassThroughOptions {
|
|
110
|
+
/**
|
|
111
|
+
* Uses to pass attributes to the root's DOM element.
|
|
112
|
+
*/
|
|
113
|
+
root?: VirtualScrollerPassThroughOptionType;
|
|
114
|
+
/**
|
|
115
|
+
* Uses to pass attributes to the content's DOM element.
|
|
116
|
+
*/
|
|
117
|
+
content?: VirtualScrollerPassThroughOptionType;
|
|
118
|
+
/**
|
|
119
|
+
* Uses to pass attributes to the spacer's DOM element.
|
|
120
|
+
*/
|
|
121
|
+
spacer?: VirtualScrollerPassThroughOptionType;
|
|
122
|
+
/**
|
|
123
|
+
* Uses to pass attributes to the loader's DOM element.
|
|
124
|
+
*/
|
|
125
|
+
loader?: VirtualScrollerPassThroughOptionType;
|
|
126
|
+
/**
|
|
127
|
+
* Uses to pass attributes to the loading icon's DOM element.
|
|
128
|
+
*/
|
|
129
|
+
loadingIcon?: VirtualScrollerPassThroughOptionType;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Custom passthrough attributes for each DOM elements
|
|
134
|
+
*/
|
|
135
|
+
export interface VirtualScrollerPassThroughAttributes {
|
|
136
|
+
[key: string]: any;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Defines current inline state in VirtualScroller component.
|
|
141
|
+
*/
|
|
142
|
+
export interface VirtualScrollerState {
|
|
143
|
+
/**
|
|
144
|
+
* First index of the new data range to be loaded as a number.
|
|
145
|
+
*/
|
|
146
|
+
first: number;
|
|
147
|
+
/**
|
|
148
|
+
* Last index of the new data range to be loaded as a number.
|
|
149
|
+
*/
|
|
150
|
+
last: number;
|
|
151
|
+
/**
|
|
152
|
+
* Index of the first item as a number.
|
|
153
|
+
*/
|
|
154
|
+
page: number;
|
|
155
|
+
/**
|
|
156
|
+
* Visible item count in the viewport as a number.
|
|
157
|
+
*/
|
|
158
|
+
numItemsInViewport: number;
|
|
159
|
+
/**
|
|
160
|
+
* Lastest scroll position as a number.
|
|
161
|
+
*/
|
|
162
|
+
lastScrollPos: number;
|
|
163
|
+
/**
|
|
164
|
+
* Additional elements to add to the DOM outside of the view as a number.
|
|
165
|
+
*/
|
|
166
|
+
d_numToleratedItems: number;
|
|
167
|
+
/**
|
|
168
|
+
* Current loading state as a boolean.
|
|
169
|
+
* @defaultValue false
|
|
170
|
+
*/
|
|
171
|
+
d_loading: number;
|
|
172
|
+
/**
|
|
173
|
+
* Loadable items array.
|
|
174
|
+
*/
|
|
175
|
+
loaderArr: any[];
|
|
176
|
+
/**
|
|
177
|
+
* The style of spacer element.
|
|
178
|
+
*/
|
|
179
|
+
spacerStyle: any;
|
|
180
|
+
/**
|
|
181
|
+
* The style of content element.
|
|
182
|
+
*/
|
|
183
|
+
contentStyle: any;
|
|
184
|
+
}
|
|
185
|
+
|
|
95
186
|
/**
|
|
96
187
|
* Custom virtualscroller loader options
|
|
97
188
|
* @see VirtualScrollerItemOptions
|
|
@@ -169,6 +260,7 @@ export interface VirtualScrollerProps {
|
|
|
169
260
|
loaderDisabled?: boolean | undefined;
|
|
170
261
|
/**
|
|
171
262
|
* Whether to show loader.
|
|
263
|
+
* @defaultValue false
|
|
172
264
|
*/
|
|
173
265
|
showLoader?: boolean | undefined;
|
|
174
266
|
/**
|
|
@@ -211,6 +303,11 @@ export interface VirtualScrollerProps {
|
|
|
211
303
|
* @defaultValue false
|
|
212
304
|
*/
|
|
213
305
|
autoSize?: boolean | undefined;
|
|
306
|
+
/**
|
|
307
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
308
|
+
* @type {VirtualScrollerPassThroughOptions}
|
|
309
|
+
*/
|
|
310
|
+
pt?: VirtualScrollerPassThroughOptions;
|
|
214
311
|
}
|
|
215
312
|
|
|
216
313
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<template v-if="!disabled">
|
|
3
|
-
<div :ref="elementRef" :class="containerClass" :tabindex="tabindex" :style="style" @scroll="onScroll">
|
|
3
|
+
<div :ref="elementRef" :class="containerClass" :tabindex="tabindex" :style="style" @scroll="onScroll" v-bind="ptm('root')">
|
|
4
4
|
<slot
|
|
5
5
|
name="content"
|
|
6
6
|
:styleClass="contentClass"
|
|
@@ -18,21 +18,21 @@
|
|
|
18
18
|
:horizontal="isHorizontal()"
|
|
19
19
|
:both="isBoth()"
|
|
20
20
|
>
|
|
21
|
-
<div :ref="contentRef" :class="contentClass" :style="contentStyle">
|
|
21
|
+
<div :ref="contentRef" :class="contentClass" :style="contentStyle" v-bind="ptm('content')">
|
|
22
22
|
<template v-for="(item, index) of loadedItems" :key="index">
|
|
23
23
|
<slot name="item" :item="item" :options="getOptions(index)"></slot>
|
|
24
24
|
</template>
|
|
25
25
|
</div>
|
|
26
26
|
</slot>
|
|
27
|
-
<div v-if="showSpacer" class="p-virtualscroller-spacer" :style="spacerStyle"></div>
|
|
28
|
-
<div v-if="!loaderDisabled && showLoader && d_loading" :class="loaderClass">
|
|
27
|
+
<div v-if="showSpacer" class="p-virtualscroller-spacer" :style="spacerStyle" v-bind="ptm('spacer')"></div>
|
|
28
|
+
<div v-if="!loaderDisabled && showLoader && d_loading" :class="loaderClass" v-bind="ptm('loader')">
|
|
29
29
|
<template v-if="$slots && $slots.loader">
|
|
30
30
|
<template v-for="(_, index) of loaderArr" :key="index">
|
|
31
31
|
<slot name="loader" :options="getLoaderOptions(index, isBoth() && { numCols: d_numItemsInViewport.cols })"></slot>
|
|
32
32
|
</template>
|
|
33
33
|
</template>
|
|
34
34
|
<slot name="loadingicon">
|
|
35
|
-
<SpinnerIcon spin class="p-virtualscroller-loading-icon" />
|
|
35
|
+
<SpinnerIcon spin class="p-virtualscroller-loading-icon" v-bind="ptm('loadingIcon')" />
|
|
36
36
|
</slot>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
@@ -44,11 +44,13 @@
|
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<script>
|
|
47
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
47
48
|
import SpinnerIcon from 'primevue/icons/spinner';
|
|
48
49
|
import { DomHandler } from 'primevue/utils';
|
|
49
50
|
|
|
50
51
|
export default {
|
|
51
52
|
name: 'VirtualScroller',
|
|
53
|
+
extends: BaseComponent,
|
|
52
54
|
emits: ['update:numToleratedItems', 'scroll', 'scroll-index-change', 'lazy-load'],
|
|
53
55
|
props: {
|
|
54
56
|
id: {
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var BaseComponent = require('primevue/basecomponent');
|
|
3
4
|
var SpinnerIcon = require('primevue/icons/spinner');
|
|
4
5
|
var utils = require('primevue/utils');
|
|
5
6
|
var vue = require('vue');
|
|
6
7
|
|
|
7
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
9
|
|
|
10
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
9
11
|
var SpinnerIcon__default = /*#__PURE__*/_interopDefaultLegacy(SpinnerIcon);
|
|
10
12
|
|
|
11
13
|
var script = {
|
|
12
14
|
name: 'VirtualScroller',
|
|
15
|
+
extends: BaseComponent__default["default"],
|
|
13
16
|
emits: ['update:numToleratedItems', 'scroll', 'scroll-index-change', 'lazy-load'],
|
|
14
17
|
props: {
|
|
15
18
|
id: {
|
|
@@ -718,14 +721,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
718
721
|
const _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
|
|
719
722
|
|
|
720
723
|
return (!$props.disabled)
|
|
721
|
-
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
724
|
+
? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
722
725
|
key: 0,
|
|
723
726
|
ref: $options.elementRef,
|
|
724
|
-
class:
|
|
727
|
+
class: $options.containerClass,
|
|
725
728
|
tabindex: $props.tabindex,
|
|
726
|
-
style:
|
|
729
|
+
style: $props.style,
|
|
727
730
|
onScroll: _cache[0] || (_cache[0] = (...args) => ($options.onScroll && $options.onScroll(...args)))
|
|
728
|
-
}, [
|
|
731
|
+
}, _ctx.ptm('root')), [
|
|
729
732
|
vue.renderSlot(_ctx.$slots, "content", {
|
|
730
733
|
styleClass: $options.contentClass,
|
|
731
734
|
items: $options.loadedItems,
|
|
@@ -742,11 +745,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
742
745
|
horizontal: $options.isHorizontal(),
|
|
743
746
|
both: $options.isBoth()
|
|
744
747
|
}, () => [
|
|
745
|
-
vue.createElementVNode("div", {
|
|
748
|
+
vue.createElementVNode("div", vue.mergeProps({
|
|
746
749
|
ref: $options.contentRef,
|
|
747
|
-
class:
|
|
748
|
-
style:
|
|
749
|
-
}, [
|
|
750
|
+
class: $options.contentClass,
|
|
751
|
+
style: $data.contentStyle
|
|
752
|
+
}, _ctx.ptm('content')), [
|
|
750
753
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.loadedItems, (item, index) => {
|
|
751
754
|
return vue.renderSlot(_ctx.$slots, "item", {
|
|
752
755
|
key: index,
|
|
@@ -754,20 +757,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
754
757
|
options: $options.getOptions(index)
|
|
755
758
|
})
|
|
756
759
|
}), 128))
|
|
757
|
-
],
|
|
760
|
+
], 16)
|
|
758
761
|
]),
|
|
759
762
|
($props.showSpacer)
|
|
760
|
-
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
763
|
+
? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
761
764
|
key: 0,
|
|
762
765
|
class: "p-virtualscroller-spacer",
|
|
763
|
-
style:
|
|
764
|
-
}, null,
|
|
766
|
+
style: $data.spacerStyle
|
|
767
|
+
}, _ctx.ptm('spacer')), null, 16))
|
|
765
768
|
: vue.createCommentVNode("", true),
|
|
766
769
|
(!$props.loaderDisabled && $props.showLoader && $data.d_loading)
|
|
767
|
-
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
770
|
+
? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
768
771
|
key: 1,
|
|
769
|
-
class:
|
|
770
|
-
}, [
|
|
772
|
+
class: $options.loaderClass
|
|
773
|
+
}, _ctx.ptm('loader')), [
|
|
771
774
|
(_ctx.$slots && _ctx.$slots.loader)
|
|
772
775
|
? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList($data.loaderArr, (_, index) => {
|
|
773
776
|
return vue.renderSlot(_ctx.$slots, "loader", {
|
|
@@ -777,14 +780,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
777
780
|
}), 128))
|
|
778
781
|
: vue.createCommentVNode("", true),
|
|
779
782
|
vue.renderSlot(_ctx.$slots, "loadingicon", {}, () => [
|
|
780
|
-
vue.createVNode(_component_SpinnerIcon, {
|
|
783
|
+
vue.createVNode(_component_SpinnerIcon, vue.mergeProps({
|
|
781
784
|
spin: "",
|
|
782
785
|
class: "p-virtualscroller-loading-icon"
|
|
783
|
-
})
|
|
786
|
+
}, _ctx.ptm('loadingIcon')), null, 16)
|
|
784
787
|
])
|
|
785
|
-
],
|
|
788
|
+
], 16))
|
|
786
789
|
: vue.createCommentVNode("", true)
|
|
787
|
-
],
|
|
790
|
+
], 16, _hoisted_1))
|
|
788
791
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
789
792
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
790
793
|
vue.renderSlot(_ctx.$slots, "content", {
|