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,8 +1,9 @@
|
|
|
1
1
|
import { FilterService } from 'primevue/api';
|
|
2
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
2
3
|
import SpinnerIcon from 'primevue/icons/spinner';
|
|
3
4
|
import Paginator from 'primevue/paginator';
|
|
4
5
|
import { ObjectUtils, DomHandler } from 'primevue/utils';
|
|
5
|
-
import { openBlock, createElementBlock,
|
|
6
|
+
import { openBlock, createElementBlock, mergeProps, createBlock, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, normalizeProps, resolveDirective, withDirectives, createElementVNode, resolveComponent, Fragment, renderList, renderSlot, createSlots, withCtx } from 'vue';
|
|
6
7
|
import SortAltIcon from 'primevue/icons/sortalt';
|
|
7
8
|
import SortAmountDownIcon from 'primevue/icons/sortamountdown';
|
|
8
9
|
import SortAmountUpAltIcon from 'primevue/icons/sortamountupalt';
|
|
@@ -14,6 +15,7 @@ import Ripple from 'primevue/ripple';
|
|
|
14
15
|
|
|
15
16
|
var script$4 = {
|
|
16
17
|
name: 'FooterCell',
|
|
18
|
+
extends: BaseComponent,
|
|
17
19
|
props: {
|
|
18
20
|
column: {
|
|
19
21
|
type: Object,
|
|
@@ -39,6 +41,18 @@ var script$4 = {
|
|
|
39
41
|
columnProp(prop) {
|
|
40
42
|
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
41
43
|
},
|
|
44
|
+
getColumnPTOptions(key) {
|
|
45
|
+
return this.ptmo(this.getColumnProp(), key, {
|
|
46
|
+
props: this.column.props,
|
|
47
|
+
parent: {
|
|
48
|
+
props: this.$props,
|
|
49
|
+
state: this.$data
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
},
|
|
53
|
+
getColumnProp() {
|
|
54
|
+
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
|
|
55
|
+
},
|
|
42
56
|
updateStickyPosition() {
|
|
43
57
|
if (this.columnProp('frozen')) {
|
|
44
58
|
let align = this.columnProp('alignFrozen');
|
|
@@ -85,10 +99,11 @@ var script$4 = {
|
|
|
85
99
|
};
|
|
86
100
|
|
|
87
101
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
88
|
-
return (openBlock(), createElementBlock("td", {
|
|
89
|
-
style:
|
|
90
|
-
class:
|
|
91
|
-
|
|
102
|
+
return (openBlock(), createElementBlock("td", mergeProps({
|
|
103
|
+
style: $options.containerStyle,
|
|
104
|
+
class: $options.containerClass,
|
|
105
|
+
role: "cell"
|
|
106
|
+
}, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('footerCell') }), [
|
|
92
107
|
($props.column.children && $props.column.children.footer)
|
|
93
108
|
? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.footer), {
|
|
94
109
|
key: 0,
|
|
@@ -96,13 +111,14 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
96
111
|
}, null, 8, ["column"]))
|
|
97
112
|
: createCommentVNode("", true),
|
|
98
113
|
createTextVNode(" " + toDisplayString($options.columnProp('footer')), 1)
|
|
99
|
-
],
|
|
114
|
+
], 16))
|
|
100
115
|
}
|
|
101
116
|
|
|
102
117
|
script$4.render = render$4;
|
|
103
118
|
|
|
104
119
|
var script$3 = {
|
|
105
120
|
name: 'HeaderCell',
|
|
121
|
+
extends: BaseComponent,
|
|
106
122
|
emits: ['column-click', 'column-resizestart'],
|
|
107
123
|
props: {
|
|
108
124
|
column: {
|
|
@@ -149,6 +165,18 @@ var script$3 = {
|
|
|
149
165
|
columnProp(prop) {
|
|
150
166
|
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
151
167
|
},
|
|
168
|
+
getColumnPTOptions(key) {
|
|
169
|
+
return this.ptmo(this.getColumnProp(), key, {
|
|
170
|
+
props: this.column.props,
|
|
171
|
+
parent: {
|
|
172
|
+
props: this.$props,
|
|
173
|
+
state: this.$data
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
},
|
|
177
|
+
getColumnProp() {
|
|
178
|
+
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
179
|
+
},
|
|
152
180
|
updateStickyPosition() {
|
|
153
181
|
if (this.columnProp('frozen')) {
|
|
154
182
|
let align = this.columnProp('alignFrozen');
|
|
@@ -285,33 +313,24 @@ var script$3 = {
|
|
|
285
313
|
}
|
|
286
314
|
};
|
|
287
315
|
|
|
288
|
-
const _hoisted_1$
|
|
289
|
-
const _hoisted_2$2 = {
|
|
290
|
-
key: 2,
|
|
291
|
-
class: "p-column-title"
|
|
292
|
-
};
|
|
293
|
-
const _hoisted_3$1 = { key: 3 };
|
|
294
|
-
const _hoisted_4$1 = {
|
|
295
|
-
key: 4,
|
|
296
|
-
class: "p-sortable-column-badge"
|
|
297
|
-
};
|
|
316
|
+
const _hoisted_1$2 = ["tabindex", "aria-sort"];
|
|
298
317
|
|
|
299
318
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
300
|
-
return (openBlock(), createElementBlock("th", {
|
|
301
|
-
style:
|
|
302
|
-
class:
|
|
319
|
+
return (openBlock(), createElementBlock("th", mergeProps({
|
|
320
|
+
style: [$options.containerStyle],
|
|
321
|
+
class: $options.containerClass,
|
|
303
322
|
onClick: _cache[1] || (_cache[1] = (...args) => ($options.onClick && $options.onClick(...args))),
|
|
304
323
|
onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
|
|
305
324
|
tabindex: $options.columnProp('sortable') ? '0' : null,
|
|
306
325
|
"aria-sort": $options.ariaSort,
|
|
307
326
|
role: "columnheader"
|
|
308
|
-
}, [
|
|
327
|
+
}, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('headerCell') }), [
|
|
309
328
|
($props.resizableColumns && !$options.columnProp('frozen'))
|
|
310
|
-
? (openBlock(), createElementBlock("span", {
|
|
329
|
+
? (openBlock(), createElementBlock("span", mergeProps({
|
|
311
330
|
key: 0,
|
|
312
331
|
class: "p-column-resizer",
|
|
313
332
|
onMousedown: _cache[0] || (_cache[0] = (...args) => ($options.onResizeStart && $options.onResizeStart(...args)))
|
|
314
|
-
}, null,
|
|
333
|
+
}, $options.getColumnPTOptions('columnResizer')), null, 16))
|
|
315
334
|
: createCommentVNode("", true),
|
|
316
335
|
($props.column.children && $props.column.children.header)
|
|
317
336
|
? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.header), {
|
|
@@ -320,27 +339,34 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
320
339
|
}, null, 8, ["column"]))
|
|
321
340
|
: createCommentVNode("", true),
|
|
322
341
|
($options.columnProp('header'))
|
|
323
|
-
? (openBlock(), createElementBlock("span",
|
|
342
|
+
? (openBlock(), createElementBlock("span", mergeProps({
|
|
343
|
+
key: 2,
|
|
344
|
+
class: "p-column-title"
|
|
345
|
+
}, $options.getColumnPTOptions('headerTitle')), toDisplayString($options.columnProp('header')), 17))
|
|
324
346
|
: createCommentVNode("", true),
|
|
325
347
|
($options.columnProp('sortable'))
|
|
326
|
-
? (openBlock(), createElementBlock("span",
|
|
348
|
+
? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 3 }, $options.getColumnPTOptions('sort'))), [
|
|
327
349
|
(openBlock(), createBlock(resolveDynamicComponent(($props.column.children && $props.column.children.sorticon) || $options.sortableColumnIcon), {
|
|
328
350
|
sorted: $options.sortState.sorted,
|
|
329
351
|
sortOrder: $options.sortState.sortOrder,
|
|
330
352
|
class: "p-sortable-column-icon"
|
|
331
353
|
}, null, 8, ["sorted", "sortOrder"]))
|
|
332
|
-
]))
|
|
354
|
+
], 16))
|
|
333
355
|
: createCommentVNode("", true),
|
|
334
356
|
($options.isMultiSorted())
|
|
335
|
-
? (openBlock(), createElementBlock("span",
|
|
357
|
+
? (openBlock(), createElementBlock("span", mergeProps({
|
|
358
|
+
key: 4,
|
|
359
|
+
class: "p-sortable-column-badge"
|
|
360
|
+
}, $options.getColumnPTOptions('sortBadge')), toDisplayString($options.getMultiSortMetaIndex() + 1), 17))
|
|
336
361
|
: createCommentVNode("", true)
|
|
337
|
-
],
|
|
362
|
+
], 16, _hoisted_1$2))
|
|
338
363
|
}
|
|
339
364
|
|
|
340
365
|
script$3.render = render$3;
|
|
341
366
|
|
|
342
367
|
var script$2 = {
|
|
343
368
|
name: 'BodyCell',
|
|
369
|
+
extends: BaseComponent,
|
|
344
370
|
emits: ['node-toggle', 'checkbox-toggle'],
|
|
345
371
|
props: {
|
|
346
372
|
node: {
|
|
@@ -407,6 +433,32 @@ var script$2 = {
|
|
|
407
433
|
columnProp(prop) {
|
|
408
434
|
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
409
435
|
},
|
|
436
|
+
getColumnPTOptions(key) {
|
|
437
|
+
return this.ptmo(this.getColumnProp(), key, {
|
|
438
|
+
props: this.column.props,
|
|
439
|
+
parent: {
|
|
440
|
+
props: this.$props,
|
|
441
|
+
state: this.$data
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
},
|
|
445
|
+
getColumnCheckboxPTOptions(key) {
|
|
446
|
+
return this.ptmo(this.getColumnProp(), key, {
|
|
447
|
+
props: this.column.props,
|
|
448
|
+
parent: {
|
|
449
|
+
props: this.$props,
|
|
450
|
+
state: this.$data
|
|
451
|
+
},
|
|
452
|
+
context: {
|
|
453
|
+
checked: this.checked,
|
|
454
|
+
focused: this.checkboxFocused,
|
|
455
|
+
partialChecked: this.partialChecked
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
},
|
|
459
|
+
getColumnProp() {
|
|
460
|
+
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo
|
|
461
|
+
},
|
|
410
462
|
updateStickyPosition() {
|
|
411
463
|
if (this.columnProp('frozen')) {
|
|
412
464
|
let align = this.columnProp('alignFrozen');
|
|
@@ -485,26 +537,23 @@ var script$2 = {
|
|
|
485
537
|
}
|
|
486
538
|
};
|
|
487
539
|
|
|
488
|
-
const _hoisted_1$2 = { class: "p-hidden-accessible" };
|
|
489
|
-
const _hoisted_2$1 = { key: 3 };
|
|
490
|
-
|
|
491
540
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
492
541
|
const _directive_ripple = resolveDirective("ripple");
|
|
493
542
|
|
|
494
|
-
return (openBlock(), createElementBlock("td", {
|
|
495
|
-
style:
|
|
496
|
-
class:
|
|
543
|
+
return (openBlock(), createElementBlock("td", mergeProps({
|
|
544
|
+
style: $options.containerStyle,
|
|
545
|
+
class: $options.containerClass,
|
|
497
546
|
role: "cell"
|
|
498
|
-
}, [
|
|
547
|
+
}, { ...$options.getColumnPTOptions('root'), ...$options.getColumnPTOptions('bodyCell') }), [
|
|
499
548
|
($options.columnProp('expander'))
|
|
500
|
-
? withDirectives((openBlock(), createElementBlock("button", {
|
|
549
|
+
? withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
501
550
|
key: 0,
|
|
502
551
|
type: "button",
|
|
503
552
|
class: "p-treetable-toggler p-link",
|
|
504
553
|
onClick: _cache[0] || (_cache[0] = (...args) => ($options.toggle && $options.toggle(...args))),
|
|
505
|
-
style:
|
|
554
|
+
style: $options.togglerStyle,
|
|
506
555
|
tabindex: "-1"
|
|
507
|
-
}, [
|
|
556
|
+
}, $options.getColumnPTOptions('rowToggler')), [
|
|
508
557
|
($props.templates['togglericon'])
|
|
509
558
|
? (openBlock(), createBlock(resolveDynamicComponent($props.templates['togglericon']), {
|
|
510
559
|
key: 0,
|
|
@@ -513,36 +562,36 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
513
562
|
class: "p-tree-toggler-icon"
|
|
514
563
|
}, null, 8, ["node", "expanded"]))
|
|
515
564
|
: ($props.expanded)
|
|
516
|
-
? (openBlock(), createBlock(resolveDynamicComponent($props.node.expandedIcon ? 'span' : 'ChevronDownIcon'), {
|
|
565
|
+
? (openBlock(), createBlock(resolveDynamicComponent($props.node.expandedIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
|
|
517
566
|
key: 1,
|
|
518
567
|
class: "p-tree-toggler-icon"
|
|
519
|
-
}))
|
|
520
|
-
: (openBlock(), createBlock(resolveDynamicComponent($props.node.collapsedIcon ? 'span' : 'ChevronRightIcon'), {
|
|
568
|
+
}, $options.getColumnPTOptions('rowTogglerIcon')), null, 16))
|
|
569
|
+
: (openBlock(), createBlock(resolveDynamicComponent($props.node.collapsedIcon ? 'span' : 'ChevronRightIcon'), mergeProps({
|
|
521
570
|
key: 2,
|
|
522
571
|
class: "p-tree-toggler-icon"
|
|
523
|
-
}))
|
|
524
|
-
],
|
|
572
|
+
}, $options.getColumnPTOptions('rowTogglerIcon')), null, 16))
|
|
573
|
+
], 16)), [
|
|
525
574
|
[_directive_ripple]
|
|
526
575
|
])
|
|
527
576
|
: createCommentVNode("", true),
|
|
528
577
|
($options.checkboxSelectionMode && $options.columnProp('expander'))
|
|
529
|
-
? (openBlock(), createElementBlock("div", {
|
|
578
|
+
? (openBlock(), createElementBlock("div", mergeProps({
|
|
530
579
|
key: 1,
|
|
531
|
-
class:
|
|
580
|
+
class: ['p-checkbox p-treetable-checkbox p-component', { 'p-checkbox-focused': $data.checkboxFocused }],
|
|
532
581
|
onClick: _cache[3] || (_cache[3] = (...args) => ($options.toggleCheckbox && $options.toggleCheckbox(...args)))
|
|
533
|
-
}, [
|
|
534
|
-
createElementVNode("div",
|
|
535
|
-
createElementVNode("input", {
|
|
582
|
+
}, $options.getColumnPTOptions('checkboxWrapper')), [
|
|
583
|
+
createElementVNode("div", mergeProps({ class: "p-hidden-accessible" }, $options.getColumnPTOptions('hiddenInputWrapper')), [
|
|
584
|
+
createElementVNode("input", mergeProps({
|
|
536
585
|
type: "checkbox",
|
|
537
586
|
onFocus: _cache[1] || (_cache[1] = (...args) => ($options.onCheckboxFocus && $options.onCheckboxFocus(...args))),
|
|
538
587
|
onBlur: _cache[2] || (_cache[2] = (...args) => ($options.onCheckboxBlur && $options.onCheckboxBlur(...args))),
|
|
539
588
|
tabindex: "-1"
|
|
540
|
-
}, null,
|
|
541
|
-
]),
|
|
542
|
-
createElementVNode("div", {
|
|
589
|
+
}, $options.getColumnPTOptions('hiddenInput')), null, 16)
|
|
590
|
+
], 16),
|
|
591
|
+
createElementVNode("div", mergeProps({
|
|
543
592
|
ref: "checkboxEl",
|
|
544
|
-
class:
|
|
545
|
-
}, [
|
|
593
|
+
class: $options.checkboxClass
|
|
594
|
+
}, $options.getColumnCheckboxPTOptions('checkbox')), [
|
|
546
595
|
($props.templates['checkboxicon'])
|
|
547
596
|
? (openBlock(), createBlock(resolveDynamicComponent($props.templates['checkboxicon']), {
|
|
548
597
|
key: 0,
|
|
@@ -550,12 +599,12 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
550
599
|
partialChecked: $props.partialChecked,
|
|
551
600
|
class: "p-checkbox-icon"
|
|
552
601
|
}, null, 8, ["checked", "partialChecked"]))
|
|
553
|
-
: (openBlock(), createBlock(resolveDynamicComponent($props.checked ? 'CheckIcon' : $props.partialChecked ? 'MinusIcon' : null), {
|
|
602
|
+
: (openBlock(), createBlock(resolveDynamicComponent($props.checked ? 'CheckIcon' : $props.partialChecked ? 'MinusIcon' : null), mergeProps({
|
|
554
603
|
key: 1,
|
|
555
604
|
class: "p-checkbox-icon"
|
|
556
|
-
}))
|
|
557
|
-
],
|
|
558
|
-
],
|
|
605
|
+
}, $options.getColumnCheckboxPTOptions('checkboxIcon')), null, 16))
|
|
606
|
+
], 16)
|
|
607
|
+
], 16))
|
|
559
608
|
: createCommentVNode("", true),
|
|
560
609
|
($props.column.children && $props.column.children.body)
|
|
561
610
|
? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.body), {
|
|
@@ -563,14 +612,15 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
563
612
|
node: $props.node,
|
|
564
613
|
column: $props.column
|
|
565
614
|
}, null, 8, ["node", "column"]))
|
|
566
|
-
: (openBlock(), createElementBlock("span",
|
|
567
|
-
],
|
|
615
|
+
: (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 3 }, $options.getColumnPTOptions('cellContent'))), toDisplayString($options.resolveFieldData($props.node.data, $options.columnProp('field'))), 17))
|
|
616
|
+
], 16))
|
|
568
617
|
}
|
|
569
618
|
|
|
570
619
|
script$2.render = render$2;
|
|
571
620
|
|
|
572
621
|
var script$1 = {
|
|
573
622
|
name: 'TreeTableRow',
|
|
623
|
+
extends: BaseComponent,
|
|
574
624
|
emits: ['node-click', 'node-toggle', 'checkbox-change', 'nodeClick', 'nodeToggle', 'checkboxChange'],
|
|
575
625
|
props: {
|
|
576
626
|
node: {
|
|
@@ -931,10 +981,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
931
981
|
const _component_TreeTableRow = resolveComponent("TreeTableRow", true);
|
|
932
982
|
|
|
933
983
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
934
|
-
createElementVNode("tr", {
|
|
984
|
+
createElementVNode("tr", mergeProps({
|
|
935
985
|
ref: "node",
|
|
936
|
-
class:
|
|
937
|
-
style:
|
|
986
|
+
class: $options.containerClass,
|
|
987
|
+
style: $props.node.style,
|
|
938
988
|
tabindex: $props.tabindex,
|
|
939
989
|
role: "row",
|
|
940
990
|
"aria-expanded": $options.expanded,
|
|
@@ -946,7 +996,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
946
996
|
onClick: _cache[1] || (_cache[1] = (...args) => ($options.onClick && $options.onClick(...args))),
|
|
947
997
|
onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
|
|
948
998
|
onTouchend: _cache[3] || (_cache[3] = (...args) => ($options.onTouchEnd && $options.onTouchEnd(...args)))
|
|
949
|
-
}, [
|
|
999
|
+
}, _ctx.ptm('row')), [
|
|
950
1000
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col, i) => {
|
|
951
1001
|
return (openBlock(), createElementBlock(Fragment, {
|
|
952
1002
|
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
@@ -965,12 +1015,13 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
965
1015
|
partialChecked: $options.partialChecked,
|
|
966
1016
|
templates: $props.templates,
|
|
967
1017
|
onNodeToggle: _cache[0] || (_cache[0] = $event => (_ctx.$emit('node-toggle', $event))),
|
|
968
|
-
onCheckboxToggle: $options.toggleCheckbox
|
|
969
|
-
|
|
1018
|
+
onCheckboxToggle: $options.toggleCheckbox,
|
|
1019
|
+
pt: _ctx.pt
|
|
1020
|
+
}, null, 8, ["column", "node", "level", "leaf", "indentation", "expanded", "selectionMode", "checked", "partialChecked", "templates", "onCheckboxToggle", "pt"]))
|
|
970
1021
|
: createCommentVNode("", true)
|
|
971
1022
|
], 64))
|
|
972
1023
|
}), 128))
|
|
973
|
-
],
|
|
1024
|
+
], 16, _hoisted_1$1),
|
|
974
1025
|
($options.expanded && $props.node.children && $props.node.children.length)
|
|
975
1026
|
? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($props.node.children, (childNode) => {
|
|
976
1027
|
return (openBlock(), createBlock(_component_TreeTableRow, {
|
|
@@ -988,8 +1039,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
988
1039
|
templates: $props.templates,
|
|
989
1040
|
onNodeToggle: _cache[4] || (_cache[4] = $event => (_ctx.$emit('node-toggle', $event))),
|
|
990
1041
|
onNodeClick: _cache[5] || (_cache[5] = $event => (_ctx.$emit('node-click', $event))),
|
|
991
|
-
onCheckboxChange: $options.onCheckboxChange
|
|
992
|
-
|
|
1042
|
+
onCheckboxChange: $options.onCheckboxChange,
|
|
1043
|
+
pt: _ctx.pt
|
|
1044
|
+
}, null, 8, ["columns", "node", "parentNode", "level", "expandedKeys", "selectionMode", "selectionKeys", "indentation", "ariaPosInset", "ariaSetSize", "templates", "onCheckboxChange", "pt"]))
|
|
993
1045
|
}), 128))
|
|
994
1046
|
: createCommentVNode("", true)
|
|
995
1047
|
], 64))
|
|
@@ -999,6 +1051,7 @@ script$1.render = render$1;
|
|
|
999
1051
|
|
|
1000
1052
|
var script = {
|
|
1001
1053
|
name: 'TreeTable',
|
|
1054
|
+
extends: BaseComponent,
|
|
1002
1055
|
emits: [
|
|
1003
1056
|
'node-expand',
|
|
1004
1057
|
'node-collapse',
|
|
@@ -1854,45 +1907,7 @@ var script = {
|
|
|
1854
1907
|
}
|
|
1855
1908
|
};
|
|
1856
1909
|
|
|
1857
|
-
const _hoisted_1 =
|
|
1858
|
-
key: 0,
|
|
1859
|
-
class: "p-treetable-loading"
|
|
1860
|
-
};
|
|
1861
|
-
const _hoisted_2 = { class: "p-treetable-loading-overlay p-component-overlay" };
|
|
1862
|
-
const _hoisted_3 = {
|
|
1863
|
-
key: 1,
|
|
1864
|
-
class: "p-treetable-header"
|
|
1865
|
-
};
|
|
1866
|
-
const _hoisted_4 = {
|
|
1867
|
-
class: "p-treetable-thead",
|
|
1868
|
-
role: "rowgroup"
|
|
1869
|
-
};
|
|
1870
|
-
const _hoisted_5 = { role: "row" };
|
|
1871
|
-
const _hoisted_6 = { key: 0 };
|
|
1872
|
-
const _hoisted_7 = {
|
|
1873
|
-
class: "p-treetable-tbody",
|
|
1874
|
-
role: "rowgroup"
|
|
1875
|
-
};
|
|
1876
|
-
const _hoisted_8 = {
|
|
1877
|
-
key: 1,
|
|
1878
|
-
class: "p-treetable-emptymessage"
|
|
1879
|
-
};
|
|
1880
|
-
const _hoisted_9 = ["colspan"];
|
|
1881
|
-
const _hoisted_10 = {
|
|
1882
|
-
key: 0,
|
|
1883
|
-
class: "p-treetable-tfoot",
|
|
1884
|
-
role: "rowgroup"
|
|
1885
|
-
};
|
|
1886
|
-
const _hoisted_11 = { role: "row" };
|
|
1887
|
-
const _hoisted_12 = {
|
|
1888
|
-
key: 4,
|
|
1889
|
-
class: "p-treetable-footer"
|
|
1890
|
-
};
|
|
1891
|
-
const _hoisted_13 = {
|
|
1892
|
-
ref: "resizeHelper",
|
|
1893
|
-
class: "p-column-resizer-helper p-highlight",
|
|
1894
|
-
style: {"display":"none"}
|
|
1895
|
-
};
|
|
1910
|
+
const _hoisted_1 = ["colspan"];
|
|
1896
1911
|
|
|
1897
1912
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1898
1913
|
const _component_TTPaginator = resolveComponent("TTPaginator");
|
|
@@ -1900,27 +1915,33 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1900
1915
|
const _component_TTRow = resolveComponent("TTRow");
|
|
1901
1916
|
const _component_TTFooterCell = resolveComponent("TTFooterCell");
|
|
1902
1917
|
|
|
1903
|
-
return (openBlock(), createElementBlock("div", {
|
|
1904
|
-
class:
|
|
1918
|
+
return (openBlock(), createElementBlock("div", mergeProps({
|
|
1919
|
+
class: $options.containerClass,
|
|
1905
1920
|
"data-scrollselectors": ".p-treetable-scrollable-body",
|
|
1906
1921
|
role: "table"
|
|
1907
|
-
}, [
|
|
1922
|
+
}, _ctx.ptm('root')), [
|
|
1908
1923
|
($props.loading)
|
|
1909
|
-
? (openBlock(), createElementBlock("div",
|
|
1910
|
-
|
|
1924
|
+
? (openBlock(), createElementBlock("div", mergeProps({
|
|
1925
|
+
key: 0,
|
|
1926
|
+
class: "p-treetable-loading"
|
|
1927
|
+
}, _ctx.ptm('loadingWrapper')), [
|
|
1928
|
+
createElementVNode("div", mergeProps({ class: "p-treetable-loading-overlay p-component-overlay" }, _ctx.ptm('loadingOverlay')), [
|
|
1911
1929
|
renderSlot(_ctx.$slots, "loadingicon", {}, () => [
|
|
1912
|
-
(openBlock(), createBlock(resolveDynamicComponent($props.loadingIcon ? 'span' : 'SpinnerIcon'), {
|
|
1930
|
+
(openBlock(), createBlock(resolveDynamicComponent($props.loadingIcon ? 'span' : 'SpinnerIcon'), mergeProps({
|
|
1913
1931
|
spin: "",
|
|
1914
|
-
class:
|
|
1915
|
-
}, null,
|
|
1932
|
+
class: ['p-treetable-loading-icon', $props.loadingIcon]
|
|
1933
|
+
}, _ctx.ptm('loadingIcon')), null, 16, ["class"]))
|
|
1916
1934
|
])
|
|
1917
|
-
])
|
|
1918
|
-
]))
|
|
1935
|
+
], 16)
|
|
1936
|
+
], 16))
|
|
1919
1937
|
: createCommentVNode("", true),
|
|
1920
1938
|
(_ctx.$slots.header)
|
|
1921
|
-
? (openBlock(), createElementBlock("div",
|
|
1939
|
+
? (openBlock(), createElementBlock("div", mergeProps({
|
|
1940
|
+
key: 1,
|
|
1941
|
+
class: "p-treetable-header"
|
|
1942
|
+
}, _ctx.ptm('header')), [
|
|
1922
1943
|
renderSlot(_ctx.$slots, "header")
|
|
1923
|
-
]))
|
|
1944
|
+
], 16))
|
|
1924
1945
|
: createCommentVNode("", true),
|
|
1925
1946
|
($options.paginatorTop)
|
|
1926
1947
|
? (openBlock(), createBlock(_component_TTPaginator, {
|
|
@@ -1934,7 +1955,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1934
1955
|
currentPageReportTemplate: $props.currentPageReportTemplate,
|
|
1935
1956
|
class: "p-paginator-top",
|
|
1936
1957
|
onPage: _cache[0] || (_cache[0] = $event => ($options.onPage($event))),
|
|
1937
|
-
alwaysShow: $props.alwaysShowPaginator
|
|
1958
|
+
alwaysShow: $props.alwaysShowPaginator,
|
|
1959
|
+
pt: _ctx.ptm('paginator')
|
|
1938
1960
|
}, createSlots({ _: 2 }, [
|
|
1939
1961
|
(_ctx.$slots.paginatorstart)
|
|
1940
1962
|
? {
|
|
@@ -1990,18 +2012,21 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1990
2012
|
key: "5"
|
|
1991
2013
|
}
|
|
1992
2014
|
: undefined
|
|
1993
|
-
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
2015
|
+
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow", "pt"]))
|
|
1994
2016
|
: createCommentVNode("", true),
|
|
1995
|
-
createElementVNode("div", {
|
|
2017
|
+
createElementVNode("div", mergeProps({
|
|
1996
2018
|
class: "p-treetable-wrapper",
|
|
1997
|
-
style:
|
|
1998
|
-
}, [
|
|
2019
|
+
style: { maxHeight: $props.scrollHeight }
|
|
2020
|
+
}, _ctx.ptm('wrapper')), [
|
|
1999
2021
|
createElementVNode("table", mergeProps({
|
|
2000
2022
|
ref: "table",
|
|
2001
2023
|
role: "table"
|
|
2002
|
-
},
|
|
2003
|
-
createElementVNode("thead",
|
|
2004
|
-
|
|
2024
|
+
}, { ...$props.tableProps, ..._ctx.ptm('table') }), [
|
|
2025
|
+
createElementVNode("thead", mergeProps({
|
|
2026
|
+
class: "p-treetable-thead",
|
|
2027
|
+
role: "rowgroup"
|
|
2028
|
+
}, _ctx.ptm('thead')), [
|
|
2029
|
+
createElementVNode("tr", mergeProps({ role: "row" }, _ctx.ptm('headerRow')), [
|
|
2005
2030
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.columns, (col, i) => {
|
|
2006
2031
|
return (openBlock(), createElementBlock(Fragment, {
|
|
2007
2032
|
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
@@ -2016,38 +2041,42 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2016
2041
|
multiSortMeta: $data.d_multiSortMeta,
|
|
2017
2042
|
sortMode: $props.sortMode,
|
|
2018
2043
|
onColumnClick: $options.onColumnHeaderClick,
|
|
2019
|
-
onColumnResizestart: $options.onColumnResizeStart
|
|
2020
|
-
|
|
2044
|
+
onColumnResizestart: $options.onColumnResizeStart,
|
|
2045
|
+
pt: _ctx.pt
|
|
2046
|
+
}, null, 8, ["column", "resizableColumns", "sortField", "sortOrder", "multiSortMeta", "sortMode", "onColumnClick", "onColumnResizestart", "pt"]))
|
|
2021
2047
|
: createCommentVNode("", true)
|
|
2022
2048
|
], 64))
|
|
2023
2049
|
}), 128))
|
|
2024
|
-
]),
|
|
2050
|
+
], 16),
|
|
2025
2051
|
($options.hasColumnFilter())
|
|
2026
|
-
? (openBlock(), createElementBlock("tr",
|
|
2052
|
+
? (openBlock(), createElementBlock("tr", normalizeProps(mergeProps({ key: 0 }, _ctx.ptm('headerRow'))), [
|
|
2027
2053
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.columns, (col, i) => {
|
|
2028
2054
|
return (openBlock(), createElementBlock(Fragment, {
|
|
2029
2055
|
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2030
2056
|
}, [
|
|
2031
2057
|
(!$options.columnProp(col, 'hidden'))
|
|
2032
|
-
? (openBlock(), createElementBlock("th", {
|
|
2058
|
+
? (openBlock(), createElementBlock("th", mergeProps({
|
|
2033
2059
|
key: 0,
|
|
2034
|
-
class:
|
|
2035
|
-
style:
|
|
2036
|
-
}, [
|
|
2060
|
+
class: $options.getFilterColumnHeaderClass(col),
|
|
2061
|
+
style: [$options.columnProp(col, 'style'), $options.columnProp(col, 'filterHeaderStyle')]
|
|
2062
|
+
}, _ctx.ptm('headerCell')), [
|
|
2037
2063
|
(col.children && col.children.filter)
|
|
2038
2064
|
? (openBlock(), createBlock(resolveDynamicComponent(col.children.filter), {
|
|
2039
2065
|
key: 0,
|
|
2040
2066
|
column: col
|
|
2041
2067
|
}, null, 8, ["column"]))
|
|
2042
2068
|
: createCommentVNode("", true)
|
|
2043
|
-
],
|
|
2069
|
+
], 16))
|
|
2044
2070
|
: createCommentVNode("", true)
|
|
2045
2071
|
], 64))
|
|
2046
2072
|
}), 128))
|
|
2047
|
-
]))
|
|
2073
|
+
], 16))
|
|
2048
2074
|
: createCommentVNode("", true)
|
|
2049
|
-
]),
|
|
2050
|
-
createElementVNode("tbody",
|
|
2075
|
+
], 16),
|
|
2076
|
+
createElementVNode("tbody", mergeProps({
|
|
2077
|
+
class: "p-treetable-tbody",
|
|
2078
|
+
role: "rowgroup"
|
|
2079
|
+
}, _ctx.ptm('tbody')), [
|
|
2051
2080
|
(!$options.empty)
|
|
2052
2081
|
? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($options.dataToRender, (node, index) => {
|
|
2053
2082
|
return (openBlock(), createBlock(_component_TTRow, {
|
|
@@ -2065,20 +2094,28 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2065
2094
|
templates: _ctx.$slots,
|
|
2066
2095
|
onNodeToggle: $options.onNodeToggle,
|
|
2067
2096
|
onNodeClick: $options.onNodeClick,
|
|
2068
|
-
onCheckboxChange: $options.onCheckboxChange
|
|
2069
|
-
|
|
2097
|
+
onCheckboxChange: $options.onCheckboxChange,
|
|
2098
|
+
pt: _ctx.pt
|
|
2099
|
+
}, null, 8, ["columns", "node", "expandedKeys", "indentation", "selectionMode", "selectionKeys", "ariaSetSize", "ariaPosInset", "tabindex", "templates", "onNodeToggle", "onNodeClick", "onCheckboxChange", "pt"]))
|
|
2070
2100
|
}), 128))
|
|
2071
|
-
: (openBlock(), createElementBlock("tr",
|
|
2072
|
-
|
|
2101
|
+
: (openBlock(), createElementBlock("tr", mergeProps({
|
|
2102
|
+
key: 1,
|
|
2103
|
+
class: "p-treetable-emptymessage"
|
|
2104
|
+
}, _ctx.ptm('emptyMessage')), [
|
|
2105
|
+
createElementVNode("td", mergeProps({
|
|
2073
2106
|
colspan: $options.columns.length
|
|
2074
|
-
}, [
|
|
2107
|
+
}, _ctx.ptm('bodyCell')), [
|
|
2075
2108
|
renderSlot(_ctx.$slots, "empty")
|
|
2076
|
-
],
|
|
2077
|
-
]))
|
|
2078
|
-
]),
|
|
2109
|
+
], 16, _hoisted_1)
|
|
2110
|
+
], 16))
|
|
2111
|
+
], 16),
|
|
2079
2112
|
($options.hasFooter)
|
|
2080
|
-
? (openBlock(), createElementBlock("tfoot",
|
|
2081
|
-
|
|
2113
|
+
? (openBlock(), createElementBlock("tfoot", mergeProps({
|
|
2114
|
+
key: 0,
|
|
2115
|
+
class: "p-treetable-tfoot",
|
|
2116
|
+
role: "rowgroup"
|
|
2117
|
+
}, _ctx.ptm('tfoot')), [
|
|
2118
|
+
createElementVNode("tr", mergeProps({ role: "row" }, _ctx.ptm('footerRow')), [
|
|
2082
2119
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.columns, (col, i) => {
|
|
2083
2120
|
return (openBlock(), createElementBlock(Fragment, {
|
|
2084
2121
|
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
@@ -2086,16 +2123,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2086
2123
|
(!$options.columnProp(col, 'hidden'))
|
|
2087
2124
|
? (openBlock(), createBlock(_component_TTFooterCell, {
|
|
2088
2125
|
key: 0,
|
|
2089
|
-
column: col
|
|
2090
|
-
|
|
2126
|
+
column: col,
|
|
2127
|
+
pt: _ctx.pt
|
|
2128
|
+
}, null, 8, ["column", "pt"]))
|
|
2091
2129
|
: createCommentVNode("", true)
|
|
2092
2130
|
], 64))
|
|
2093
2131
|
}), 128))
|
|
2094
|
-
])
|
|
2095
|
-
]))
|
|
2132
|
+
], 16)
|
|
2133
|
+
], 16))
|
|
2096
2134
|
: createCommentVNode("", true)
|
|
2097
2135
|
], 16)
|
|
2098
|
-
],
|
|
2136
|
+
], 16),
|
|
2099
2137
|
($options.paginatorBottom)
|
|
2100
2138
|
? (openBlock(), createBlock(_component_TTPaginator, {
|
|
2101
2139
|
key: 3,
|
|
@@ -2108,7 +2146,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2108
2146
|
currentPageReportTemplate: $props.currentPageReportTemplate,
|
|
2109
2147
|
class: "p-paginator-bottom",
|
|
2110
2148
|
onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
|
|
2111
|
-
alwaysShow: $props.alwaysShowPaginator
|
|
2149
|
+
alwaysShow: $props.alwaysShowPaginator,
|
|
2150
|
+
pt: _ctx.pt
|
|
2112
2151
|
}, createSlots({ _: 2 }, [
|
|
2113
2152
|
(_ctx.$slots.paginatorstart)
|
|
2114
2153
|
? {
|
|
@@ -2164,15 +2203,22 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2164
2203
|
key: "5"
|
|
2165
2204
|
}
|
|
2166
2205
|
: undefined
|
|
2167
|
-
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
2206
|
+
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow", "pt"]))
|
|
2168
2207
|
: createCommentVNode("", true),
|
|
2169
2208
|
(_ctx.$slots.footer)
|
|
2170
|
-
? (openBlock(), createElementBlock("div",
|
|
2209
|
+
? (openBlock(), createElementBlock("div", mergeProps({
|
|
2210
|
+
key: 4,
|
|
2211
|
+
class: "p-treetable-footer"
|
|
2212
|
+
}, _ctx.ptm('footer')), [
|
|
2171
2213
|
renderSlot(_ctx.$slots, "footer")
|
|
2172
|
-
]))
|
|
2214
|
+
], 16))
|
|
2173
2215
|
: createCommentVNode("", true),
|
|
2174
|
-
createElementVNode("div",
|
|
2175
|
-
|
|
2216
|
+
createElementVNode("div", mergeProps({
|
|
2217
|
+
ref: "resizeHelper",
|
|
2218
|
+
class: "p-column-resizer-helper p-highlight",
|
|
2219
|
+
style: {"display":"none"}
|
|
2220
|
+
}, _ctx.ptm('resizeHelper')), null, 16)
|
|
2221
|
+
], 16))
|
|
2176
2222
|
}
|
|
2177
2223
|
|
|
2178
2224
|
function styleInject(css, ref) {
|