primevue 3.30.0 → 3.30.2
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 +4 -2
- package/accordion/Accordion.d.ts +6 -1
- package/accordion/Accordion.vue +2 -1
- package/accordion/accordion.cjs.js +5 -9
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +5 -9
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +6 -10
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +1 -1
- package/autocomplete/AutoComplete.d.ts +1 -1
- package/avatar/Avatar.d.ts +1 -1
- package/badge/Badge.d.ts +1 -1
- package/basecomponent/BaseComponent.vue +12 -16
- package/basecomponent/basecomponent.cjs.js +18 -6
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +18 -6
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +18 -6
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +8 -2
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +8 -2
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +8 -2
- package/basedirective/basedirective.min.js +1 -1
- package/blockui/BlockUI.d.ts +1 -1
- package/breadcrumb/Breadcrumb.d.ts +1 -1
- package/button/Button.d.ts +1 -1
- package/calendar/Calendar.d.ts +1 -1
- package/carousel/Carousel.d.ts +1 -1
- package/cascadeselect/CascadeSelect.d.ts +1 -1
- package/chart/Chart.d.ts +1 -1
- package/checkbox/Checkbox.d.ts +1 -1
- package/chip/Chip.d.ts +1 -1
- package/chips/Chips.d.ts +1 -1
- package/colorpicker/ColorPicker.d.ts +1 -1
- package/column/Column.d.ts +49 -1
- package/columngroup/ColumnGroup.d.ts +6 -1
- package/config/PrimeVue.d.ts +13 -6
- package/confirmdialog/ConfirmDialog.d.ts +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +1 -1
- package/contextmenu/ContextMenu.d.ts +1 -1
- package/core/core.js +144 -103
- package/core/core.min.js +10 -10
- package/datatable/BaseDataTable.vue +7 -1
- package/datatable/BodyCell.vue +7 -4
- package/datatable/ColumnFilter.vue +43 -8
- package/datatable/DataTable.d.ts +31 -1
- package/datatable/FooterCell.vue +5 -2
- package/datatable/HeaderCell.vue +8 -3
- package/datatable/HeaderCheckbox.vue +5 -2
- package/datatable/RowCheckbox.vue +5 -2
- package/datatable/RowRadioButton.vue +5 -2
- package/datatable/TableBody.vue +33 -13
- package/datatable/TableFooter.vue +13 -4
- package/datatable/TableHeader.vue +16 -5
- package/datatable/datatable.cjs.js +221 -145
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +221 -145
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +222 -146
- package/datatable/datatable.min.js +1 -1
- package/dataview/BaseDataView.vue +1 -2
- package/dataview/DataView.d.ts +1 -1
- package/dataview/DataView.vue +3 -3
- package/dataview/dataview.cjs.js +5 -13
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +5 -13
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +5 -13
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +6 -1
- package/deferredcontent/DeferredContent.d.ts +1 -1
- package/dialog/Dialog.d.ts +1 -1
- package/dialog/Dialog.vue +13 -1
- package/dialog/dialog.cjs.js +6 -2
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +6 -2
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +6 -2
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +1 -1
- package/dock/Dock.d.ts +5 -1
- package/dock/DockSub.vue +9 -8
- package/dock/dock.cjs.js +9 -8
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +9 -8
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +9 -8
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +1 -1
- package/editor/Editor.d.ts +1 -1
- package/fieldset/Fieldset.d.ts +1 -1
- package/fileupload/FileUpload.d.ts +1 -1
- package/galleria/Galleria.d.ts +5 -1
- package/galleria/GalleriaContent.vue +16 -6
- package/galleria/GalleriaItem.vue +2 -1
- package/galleria/GalleriaThumbnails.vue +1 -0
- package/galleria/galleria.cjs.js +34 -17
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +35 -18
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +34 -17
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +1 -1
- package/inlinemessage/InlineMessage.d.ts +1 -1
- package/inplace/Inplace.d.ts +1 -1
- package/inputnumber/InputNumber.d.ts +1 -1
- package/inputswitch/InputSwitch.d.ts +1 -1
- package/inputtext/InputText.d.ts +26 -1
- package/inputtext/InputText.vue +2 -1
- package/inputtext/inputtext.cjs.js +2 -1
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +2 -1
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +2 -1
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +1 -1
- package/listbox/Listbox.d.ts +1 -1
- package/megamenu/MegaMenu.d.ts +1 -1
- package/menu/Menu.d.ts +1 -1
- package/menubar/Menubar.d.ts +1 -1
- package/message/BaseMessage.vue +2 -2
- package/message/Message.d.ts +11 -1
- package/message/Message.vue +3 -3
- package/message/message.cjs.js +8 -8
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +8 -8
- package/message/message.esm.min.js +1 -1
- package/message/message.js +8 -8
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +1 -1
- package/multiselect/MultiSelect.vue +3 -2
- package/multiselect/multiselect.cjs.js +5 -5
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +6 -6
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +5 -5
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +18 -1
- package/orderlist/OrderList.vue +7 -7
- package/orderlist/orderlist.cjs.js +19 -15
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +19 -15
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +19 -15
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +1 -1
- package/overlaypanel/OverlayPanel.d.ts +1 -1
- package/overlaypanel/OverlayPanel.vue +4 -2
- package/overlaypanel/overlaypanel.cjs.js +4 -2
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +4 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +4 -2
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/JumpToPageDropdown.vue +1 -1
- package/paginator/Paginator.d.ts +1 -26
- package/paginator/paginator.cjs.js +1 -1
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +1 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +1 -1
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +2 -2
- package/panelmenu/PanelMenu.d.ts +1 -1
- package/password/Password.d.ts +1 -1
- package/picklist/BasePickList.vue +4 -4
- package/picklist/PickList.d.ts +22 -1
- package/picklist/PickList.vue +19 -19
- package/picklist/picklist.cjs.js +59 -47
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +59 -47
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +59 -47
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +1 -1
- package/progressspinner/ProgressSpinner.d.ts +1 -1
- package/radiobutton/RadioButton.d.ts +1 -1
- package/rating/Rating.d.ts +1 -1
- package/row/Row.d.ts +1 -1
- package/scrollpanel/ScrollPanel.d.ts +1 -1
- package/scrollpanel/ScrollPanel.vue +2 -0
- package/scrollpanel/scrollpanel.cjs.js +6 -2
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +6 -2
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +6 -2
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/ScrollTop.d.ts +1 -1
- package/selectbutton/SelectButton.d.ts +1 -1
- package/sidebar/Sidebar.d.ts +1 -1
- package/sidebar/Sidebar.vue +1 -1
- package/sidebar/sidebar.cjs.js +3 -1
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +3 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +3 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +1 -1
- package/slider/Slider.d.ts +1 -1
- package/speeddial/SpeedDial.d.ts +1 -1
- package/splitbutton/SplitButton.d.ts +1 -1
- package/splitbutton/SplitButton.vue +2 -1
- package/splitbutton/splitbutton.cjs.js +4 -2
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +4 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +4 -2
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +1 -1
- package/splitterpanel/SplitterPanel.d.ts +1 -1
- package/steps/Steps.d.ts +1 -1
- package/tabmenu/TabMenu.d.ts +1 -1
- package/tabmenu/TabMenu.vue +71 -72
- package/tabmenu/tabmenu.cjs.js +67 -75
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +67 -75
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +67 -75
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +17 -1
- package/tabview/TabView.d.ts +6 -1
- package/tabview/TabView.vue +12 -4
- package/tabview/tabview.cjs.js +23 -16
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +23 -16
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +24 -17
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +1 -1
- package/terminal/Terminal.d.ts +1 -1
- package/textarea/Textarea.d.ts +18 -1
- package/textarea/Textarea.vue +8 -1
- package/textarea/textarea.cjs.js +8 -1
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +8 -1
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +8 -1
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +1 -1
- package/timeline/Timeline.d.ts +20 -1
- package/timeline/Timeline.vue +14 -6
- package/timeline/timeline.cjs.js +17 -7
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +17 -7
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +17 -7
- package/timeline/timeline.min.js +1 -1
- package/toast/BaseToast.vue +2 -2
- package/toast/Toast.d.ts +11 -1
- package/toast/ToastMessage.vue +3 -2
- package/toast/toast.cjs.js +7 -6
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +7 -6
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +7 -6
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +1 -1
- package/toolbar/Toolbar.d.ts +1 -1
- package/tree/Tree.d.ts +10 -1
- package/tree/TreeNode.vue +3 -1
- package/tree/tree.cjs.js +3 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +3 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +3 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +1 -1
- package/treetable/BaseTreeTable.vue +9 -3
- package/treetable/BodyCell.vue +16 -5
- package/treetable/FooterCell.vue +5 -2
- package/treetable/HeaderCell.vue +11 -3
- package/treetable/TreeTable.d.ts +31 -9
- package/treetable/TreeTable.vue +13 -5
- package/treetable/TreeTableRow.vue +11 -2
- package/treetable/treetable.cjs.js +84 -55
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +85 -56
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +84 -55
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +1 -1
- package/usestyle/UseStyle.d.ts +1 -0
- package/usestyle/usestyle.cjs.js +12 -10
- package/usestyle/usestyle.cjs.min.js +1 -1
- package/usestyle/usestyle.esm.js +12 -10
- package/usestyle/usestyle.esm.min.js +1 -1
- package/usestyle/usestyle.js +12 -10
- package/usestyle/usestyle.min.js +1 -1
- package/utils/Utils.d.ts +4 -3
- package/utils/utils.cjs.js +19 -5
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +19 -5
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +19 -5
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +8 -0
- package/vetur-tags.json +2 -0
- package/virtualscroller/VirtualScroller.d.ts +1 -1
- package/web-types.json +21 -1
package/treetable/treetable.js
CHANGED
|
@@ -19,9 +19,10 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
19
19
|
var styles = "\n.p-treetable {\n position: relative;\n}\n\n.p-treetable table {\n border-collapse: collapse;\n width: 100%;\n table-layout: fixed;\n}\n\n.p-treetable .p-sortable-column {\n cursor: pointer;\n user-select: none;\n}\n\n.p-treetable-responsive-scroll > .p-treetable-wrapper {\n overflow-x: auto;\n}\n\n.p-treetable-responsive-scroll > .p-treetable-wrapper > table,\n.p-treetable-auto-layout > .p-treetable-wrapper > table {\n table-layout: auto;\n}\n\n.p-treetable-hoverable-rows .p-treetable-tbody > tr {\n cursor: pointer;\n}\n\n.p-treetable-toggler {\n cursor: pointer;\n user-select: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n overflow: hidden;\n position: relative;\n}\n\n.p-treetable-toggler + .p-checkbox {\n vertical-align: middle;\n}\n\n.p-treetable-toggler + .p-checkbox + span {\n vertical-align: middle;\n}\n\n/* Resizable */\n.p-treetable-resizable > .p-treetable-wrapper {\n overflow-x: auto;\n}\n\n.p-treetable-resizable .p-treetable-thead > tr > th,\n.p-treetable-resizable .p-treetable-tfoot > tr > td,\n.p-treetable-resizable .p-treetable-tbody > tr > td {\n overflow: hidden;\n}\n\n.p-treetable-resizable .p-resizable-column:not(.p-frozen-column) {\n background-clip: padding-box;\n position: relative;\n}\n\n.p-treetable-resizable-fit .p-resizable-column:last-child .p-column-resizer {\n display: none;\n}\n\n.p-treetable .p-column-resizer {\n display: block;\n position: absolute !important;\n top: 0;\n right: 0;\n margin: 0;\n width: 0.5rem;\n height: 100%;\n padding: 0px;\n cursor: col-resize;\n border: 1px solid transparent;\n}\n\n.p-treetable .p-column-resizer-helper {\n width: 1px;\n position: absolute;\n z-index: 10;\n display: none;\n}\n\n.p-treetable .p-treetable-loading-overlay {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 2;\n}\n\n/* Scrollable */\n.p-treetable-scrollable .p-treetable-wrapper {\n position: relative;\n overflow: auto;\n}\n\n.p-treetable-scrollable .p-treetable-table {\n display: block;\n}\n\n.p-treetable-scrollable .p-treetable-thead,\n.p-treetable-scrollable .p-treetable-tbody,\n.p-treetable-scrollable .p-treetable-tfoot {\n display: block;\n}\n\n.p-treetable-scrollable .p-treetable-thead > tr,\n.p-treetable-scrollable .p-treetable-tbody > tr,\n.p-treetable-scrollable .p-treetable-tfoot > tr {\n display: flex;\n flex-wrap: nowrap;\n width: 100%;\n}\n\n.p-treetable-scrollable .p-treetable-thead > tr > th,\n.p-treetable-scrollable .p-treetable-tbody > tr > td,\n.p-treetable-scrollable .p-treetable-tfoot > tr > td {\n display: flex;\n flex: 1 1 0;\n align-items: center;\n}\n\n.p-treetable-scrollable .p-treetable-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n\n.p-treetable-scrollable .p-treetable-tfoot {\n position: sticky;\n bottom: 0;\n z-index: 1;\n}\n\n.p-treetable-scrollable .p-frozen-column {\n position: sticky;\n background: inherit;\n}\n\n.p-treetable-scrollable th.p-frozen-column {\n z-index: 1;\n}\n\n.p-treetable-scrollable-both .p-treetable-thead > tr > th,\n.p-treetable-scrollable-both .p-treetable-tbody > tr > td,\n.p-treetable-scrollable-both .p-treetable-tfoot > tr > td,\n.p-treetable-scrollable-horizontal .p-treetable-thead > tr > th .p-treetable-scrollable-horizontal .p-treetable-tbody > tr > td,\n.p-treetable-scrollable-horizontal .p-treetable-tfoot > tr > td {\n flex: 0 0 auto;\n}\n\n.p-treetable-flex-scrollable {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.p-treetable-flex-scrollable .p-treetable-wrapper {\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n}\n";
|
|
20
20
|
var classes = {
|
|
21
21
|
root: function root(_ref) {
|
|
22
|
-
var
|
|
22
|
+
var instance = _ref.instance,
|
|
23
|
+
props = _ref.props;
|
|
23
24
|
return ['p-treetable p-component', {
|
|
24
|
-
'p-treetable-hoverable-rows': props.rowHover ||
|
|
25
|
+
'p-treetable-hoverable-rows': props.rowHover || instance.rowSelectionMode,
|
|
25
26
|
'p-treetable-auto-layout': props.autoLayout,
|
|
26
27
|
'p-treetable-resizable': props.resizableColumns,
|
|
27
28
|
'p-treetable-resizable-fit': props.resizableColumns && props.columnResizeMode === 'fit',
|
|
@@ -31,7 +32,9 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
31
32
|
'p-treetable-scrollable-horizontal': props.scrollable && props.scrollDirection === 'horizontal',
|
|
32
33
|
'p-treetable-scrollable-both': props.scrollable && props.scrollDirection === 'both',
|
|
33
34
|
'p-treetable-flex-scrollable': props.scrollable && props.scrollHeight === 'flex',
|
|
34
|
-
'p-treetable-responsive-scroll': props.responsiveLayout === 'scroll'
|
|
35
|
+
'p-treetable-responsive-scroll': props.responsiveLayout === 'scroll',
|
|
36
|
+
'p-treetable-sm': props.size === 'small',
|
|
37
|
+
'p-treetable-lg': props.size === 'large'
|
|
35
38
|
}];
|
|
36
39
|
},
|
|
37
40
|
loadingWrapper: 'p-treetable-loading',
|
|
@@ -265,6 +268,10 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
265
268
|
type: String,
|
|
266
269
|
"default": null
|
|
267
270
|
},
|
|
271
|
+
size: {
|
|
272
|
+
type: String,
|
|
273
|
+
"default": null
|
|
274
|
+
},
|
|
268
275
|
tableProps: {
|
|
269
276
|
type: Object,
|
|
270
277
|
"default": null
|
|
@@ -281,12 +288,6 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
281
288
|
}
|
|
282
289
|
};
|
|
283
290
|
|
|
284
|
-
function _typeof$8(obj) { "@babel/helpers - typeof"; return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$8(obj); }
|
|
285
|
-
function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
286
|
-
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$8(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
287
|
-
function _defineProperty$8(obj, key, value) { key = _toPropertyKey$8(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
288
|
-
function _toPropertyKey$8(arg) { var key = _toPrimitive$8(arg, "string"); return _typeof$8(key) === "symbol" ? key : String(key); }
|
|
289
|
-
function _toPrimitive$8(input, hint) { if (_typeof$8(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$8(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
290
291
|
var script$4 = {
|
|
291
292
|
name: 'FooterCell',
|
|
292
293
|
hostName: 'TreeTable',
|
|
@@ -321,6 +322,7 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
321
322
|
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
322
323
|
},
|
|
323
324
|
getColumnPT: function getColumnPT(key) {
|
|
325
|
+
var _this$$parentInstance;
|
|
324
326
|
var columnMetaData = {
|
|
325
327
|
props: this.column.props,
|
|
326
328
|
parent: {
|
|
@@ -328,12 +330,14 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
328
330
|
state: this.$data
|
|
329
331
|
},
|
|
330
332
|
context: {
|
|
331
|
-
index: this.index
|
|
333
|
+
index: this.index,
|
|
334
|
+
frozen: this.columnProp('frozen'),
|
|
335
|
+
size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size
|
|
332
336
|
}
|
|
333
337
|
};
|
|
334
|
-
return
|
|
338
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
335
339
|
column: columnMetaData
|
|
336
|
-
})), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
340
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
337
341
|
},
|
|
338
342
|
getColumnProp: function getColumnProp() {
|
|
339
343
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
|
|
@@ -371,18 +375,18 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
371
375
|
}
|
|
372
376
|
};
|
|
373
377
|
|
|
374
|
-
function _typeof$
|
|
375
|
-
function ownKeys$
|
|
376
|
-
function _objectSpread$
|
|
377
|
-
function _defineProperty$
|
|
378
|
-
function _toPropertyKey$
|
|
379
|
-
function _toPrimitive$
|
|
378
|
+
function _typeof$5(obj) { "@babel/helpers - typeof"; return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$5(obj); }
|
|
379
|
+
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
380
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty$5(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
381
|
+
function _defineProperty$5(obj, key, value) { key = _toPropertyKey$5(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
382
|
+
function _toPropertyKey$5(arg) { var key = _toPrimitive$5(arg, "string"); return _typeof$5(key) === "symbol" ? key : String(key); }
|
|
383
|
+
function _toPrimitive$5(input, hint) { if (_typeof$5(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$5(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
380
384
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
381
385
|
return vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
|
|
382
386
|
style: $options.containerStyle,
|
|
383
387
|
"class": $options.containerClass,
|
|
384
388
|
role: "cell"
|
|
385
|
-
}, _objectSpread$
|
|
389
|
+
}, _objectSpread$5(_objectSpread$5({}, $options.getColumnPT('root')), $options.getColumnPT('footerCell'))), [$props.column.children && $props.column.children.footer ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.footer), {
|
|
386
390
|
key: 0,
|
|
387
391
|
column: $props.column
|
|
388
392
|
}, null, 8, ["column"])) : vue.createCommentVNode("", true), vue.createTextVNode(" " + vue.toDisplayString($options.columnProp('footer')), 1)], 16);
|
|
@@ -390,12 +394,6 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
390
394
|
|
|
391
395
|
script$4.render = render$4;
|
|
392
396
|
|
|
393
|
-
function _typeof$6(obj) { "@babel/helpers - typeof"; return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$6(obj); }
|
|
394
|
-
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
395
|
-
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty$6(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
396
|
-
function _defineProperty$6(obj, key, value) { key = _toPropertyKey$6(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
397
|
-
function _toPropertyKey$6(arg) { var key = _toPrimitive$6(arg, "string"); return _typeof$6(key) === "symbol" ? key : String(key); }
|
|
398
|
-
function _toPrimitive$6(input, hint) { if (_typeof$6(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$6(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
399
397
|
var script$3 = {
|
|
400
398
|
name: 'HeaderCell',
|
|
401
399
|
hostName: 'TreeTable',
|
|
@@ -451,6 +449,7 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
451
449
|
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
452
450
|
},
|
|
453
451
|
getColumnPT: function getColumnPT(key) {
|
|
452
|
+
var _this$$parentInstance;
|
|
454
453
|
var columnMetaData = {
|
|
455
454
|
props: this.column.props,
|
|
456
455
|
parent: {
|
|
@@ -458,12 +457,19 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
458
457
|
state: this.$data
|
|
459
458
|
},
|
|
460
459
|
context: {
|
|
461
|
-
index: this.index
|
|
460
|
+
index: this.index,
|
|
461
|
+
sorted: this.isColumnSorted(),
|
|
462
|
+
frozen: this.$parentInstance.scrollable && this.columnProp('frozen'),
|
|
463
|
+
resizable: this.resizableColumns,
|
|
464
|
+
scrollable: this.$parentInstance.scrollable,
|
|
465
|
+
scrollDirection: this.$parentInstance.scrollDirection,
|
|
466
|
+
showGridlines: this.$parentInstance.showGridlines,
|
|
467
|
+
size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size
|
|
462
468
|
}
|
|
463
469
|
};
|
|
464
|
-
return
|
|
470
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
465
471
|
column: columnMetaData
|
|
466
|
-
})), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
472
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
467
473
|
},
|
|
468
474
|
getColumnProp: function getColumnProp() {
|
|
469
475
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -582,12 +588,12 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
582
588
|
}
|
|
583
589
|
};
|
|
584
590
|
|
|
585
|
-
function _typeof$
|
|
586
|
-
function ownKeys$
|
|
587
|
-
function _objectSpread$
|
|
588
|
-
function _defineProperty$
|
|
589
|
-
function _toPropertyKey$
|
|
590
|
-
function _toPrimitive$
|
|
591
|
+
function _typeof$4(obj) { "@babel/helpers - typeof"; return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$4(obj); }
|
|
592
|
+
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
593
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
594
|
+
function _defineProperty$4(obj, key, value) { key = _toPropertyKey$4(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
595
|
+
function _toPropertyKey$4(arg) { var key = _toPrimitive$4(arg, "string"); return _typeof$4(key) === "symbol" ? key : String(key); }
|
|
596
|
+
function _toPrimitive$4(input, hint) { if (_typeof$4(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$4(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
591
597
|
var _hoisted_1$2 = ["tabindex", "aria-sort", "data-p-sortable-column", "data-p-resizable-column", "data-p-highlight", "data-p-frozen-column"];
|
|
592
598
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
593
599
|
return vue.openBlock(), vue.createElementBlock("th", vue.mergeProps({
|
|
@@ -602,7 +608,7 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
602
608
|
tabindex: $options.columnProp('sortable') ? '0' : null,
|
|
603
609
|
"aria-sort": $options.ariaSort,
|
|
604
610
|
role: "columnheader"
|
|
605
|
-
}, _objectSpread$
|
|
611
|
+
}, _objectSpread$4(_objectSpread$4({}, $options.getColumnPT('root')), $options.getColumnPT('headerCell')), {
|
|
606
612
|
"data-p-sortable-column": $options.columnProp('sortable'),
|
|
607
613
|
"data-p-resizable-column": $props.resizableColumns,
|
|
608
614
|
"data-p-highlight": $options.isColumnSorted(),
|
|
@@ -621,11 +627,12 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
621
627
|
"class": _ctx.cx('headerTitle')
|
|
622
628
|
}, $options.getColumnPT('headerTitle')), vue.toDisplayString($options.columnProp('header')), 17)) : vue.createCommentVNode("", true), $options.columnProp('sortable') ? (vue.openBlock(), vue.createElementBlock("span", vue.normalizeProps(vue.mergeProps({
|
|
623
629
|
key: 3
|
|
624
|
-
}, $options.getColumnPT('sort'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), {
|
|
630
|
+
}, $options.getColumnPT('sort'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), vue.mergeProps({
|
|
625
631
|
sorted: $options.sortState.sorted,
|
|
626
632
|
sortOrder: $options.sortState.sortOrder,
|
|
627
|
-
"
|
|
628
|
-
|
|
633
|
+
"data-pc-section": "sorticon",
|
|
634
|
+
"class": _ctx.cx('sortIcon')
|
|
635
|
+
}, $options.getColumnPT('sortIcon')), null, 16, ["sorted", "sortOrder", "class"]))], 16)) : vue.createCommentVNode("", true), $options.isMultiSorted() ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
629
636
|
key: 4,
|
|
630
637
|
"class": _ctx.cx('sortBadge')
|
|
631
638
|
}, $options.getColumnPT('sortBadge')), vue.toDisplayString($options.getMultiSortMetaIndex() + 1), 17)) : vue.createCommentVNode("", true)], 16, _hoisted_1$2);
|
|
@@ -633,12 +640,6 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
633
640
|
|
|
634
641
|
script$3.render = render$3;
|
|
635
642
|
|
|
636
|
-
function _typeof$4(obj) { "@babel/helpers - typeof"; return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$4(obj); }
|
|
637
|
-
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
638
|
-
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
639
|
-
function _defineProperty$4(obj, key, value) { key = _toPropertyKey$4(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
640
|
-
function _toPropertyKey$4(arg) { var key = _toPrimitive$4(arg, "string"); return _typeof$4(key) === "symbol" ? key : String(key); }
|
|
641
|
-
function _toPrimitive$4(input, hint) { if (_typeof$4(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$4(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
642
643
|
var script$2 = {
|
|
643
644
|
name: 'BodyCell',
|
|
644
645
|
hostName: 'TreeTable',
|
|
@@ -714,6 +715,7 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
714
715
|
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
715
716
|
},
|
|
716
717
|
getColumnPT: function getColumnPT(key) {
|
|
718
|
+
var _this$$parentInstance;
|
|
717
719
|
var columnMetaData = {
|
|
718
720
|
props: this.column.props,
|
|
719
721
|
parent: {
|
|
@@ -721,18 +723,26 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
721
723
|
state: this.$data
|
|
722
724
|
},
|
|
723
725
|
context: {
|
|
724
|
-
index: this.index
|
|
726
|
+
index: this.index,
|
|
727
|
+
focused: this.checkboxFocused,
|
|
728
|
+
selectable: this.$parentInstance.rowHover || this.$parentInstance.rowSelectionMode,
|
|
729
|
+
selected: this.$parent.selected,
|
|
730
|
+
frozen: this.columnProp('frozen'),
|
|
731
|
+
scrollable: this.$parentInstance.scrollable,
|
|
732
|
+
scrollDirection: this.$parentInstance.scrollDirection,
|
|
733
|
+
showGridlines: this.$parentInstance.showGridlines,
|
|
734
|
+
size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size
|
|
725
735
|
}
|
|
726
736
|
};
|
|
727
|
-
return
|
|
737
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
728
738
|
column: columnMetaData
|
|
729
|
-
})), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
739
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
730
740
|
},
|
|
731
741
|
getColumnProp: function getColumnProp() {
|
|
732
742
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo
|
|
733
743
|
},
|
|
734
744
|
getColumnCheckboxPT: function getColumnCheckboxPT(key) {
|
|
735
|
-
|
|
745
|
+
var columnMetaData = {
|
|
736
746
|
props: this.column.props,
|
|
737
747
|
parent: {
|
|
738
748
|
props: this.$props,
|
|
@@ -743,7 +753,10 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
743
753
|
focused: this.checkboxFocused,
|
|
744
754
|
partialChecked: this.partialChecked
|
|
745
755
|
}
|
|
746
|
-
}
|
|
756
|
+
};
|
|
757
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
758
|
+
column: columnMetaData
|
|
759
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
747
760
|
},
|
|
748
761
|
updateStickyPosition: function updateStickyPosition() {
|
|
749
762
|
if (this.columnProp('frozen')) {
|
|
@@ -846,7 +859,7 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
846
859
|
onClick: _cache[3] || (_cache[3] = function () {
|
|
847
860
|
return $options.toggleCheckbox && $options.toggleCheckbox.apply($options, arguments);
|
|
848
861
|
})
|
|
849
|
-
}, $options.
|
|
862
|
+
}, $options.getColumnCheckboxPT('checkboxWrapper')), [vue.createElementVNode("div", vue.mergeProps({
|
|
850
863
|
"class": "p-hidden-accessible"
|
|
851
864
|
}, $options.getColumnPT('hiddenInputWrapper'), {
|
|
852
865
|
"data-p-hidden-accessible": true
|
|
@@ -1218,7 +1231,7 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
1218
1231
|
},
|
|
1219
1232
|
computed: {
|
|
1220
1233
|
containerClass: function containerClass() {
|
|
1221
|
-
return [this.node.styleClass, this.cx('
|
|
1234
|
+
return [this.node.styleClass, this.cx('row')];
|
|
1222
1235
|
},
|
|
1223
1236
|
expanded: function expanded() {
|
|
1224
1237
|
return this.expandedKeys && this.expandedKeys[this.node.key] === true;
|
|
@@ -1237,6 +1250,15 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
1237
1250
|
},
|
|
1238
1251
|
getAriaSelected: function getAriaSelected() {
|
|
1239
1252
|
return this.selectionMode === 'single' || this.selectionMode === 'multiple' ? this.selected : null;
|
|
1253
|
+
},
|
|
1254
|
+
ptmOptions: function ptmOptions() {
|
|
1255
|
+
return {
|
|
1256
|
+
context: {
|
|
1257
|
+
selectable: this.$parentInstance.rowHover || this.$parentInstance.rowSelectionMode,
|
|
1258
|
+
selected: this.selected,
|
|
1259
|
+
scrollable: this.$parentInstance.scrollable
|
|
1260
|
+
}
|
|
1261
|
+
};
|
|
1240
1262
|
}
|
|
1241
1263
|
},
|
|
1242
1264
|
components: {
|
|
@@ -1269,7 +1291,7 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
1269
1291
|
onTouchend: _cache[3] || (_cache[3] = function () {
|
|
1270
1292
|
return $options.onTouchEnd && $options.onTouchEnd.apply($options, arguments);
|
|
1271
1293
|
})
|
|
1272
|
-
}, _ctx.ptm('row'), {
|
|
1294
|
+
}, _ctx.ptm('row', $options.ptmOptions), {
|
|
1273
1295
|
"data-p-highlight": $options.selected
|
|
1274
1296
|
}), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, function (col, i) {
|
|
1275
1297
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
@@ -1389,6 +1411,13 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
1389
1411
|
columnProp: function columnProp(col, prop) {
|
|
1390
1412
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1391
1413
|
},
|
|
1414
|
+
ptHeaderCellOptions: function ptHeaderCellOptions(column) {
|
|
1415
|
+
return {
|
|
1416
|
+
context: {
|
|
1417
|
+
frozen: this.columnProp(column, 'frozen')
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
},
|
|
1392
1421
|
onNodeToggle: function onNodeToggle(node) {
|
|
1393
1422
|
var key = node.key;
|
|
1394
1423
|
if (this.d_expandedKeys[key]) {
|
|
@@ -1494,7 +1523,7 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
1494
1523
|
if (this.columnProp(column, 'sortable')) {
|
|
1495
1524
|
var targetNode = event.target;
|
|
1496
1525
|
var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
1497
|
-
if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === '
|
|
1526
|
+
if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon') {
|
|
1498
1527
|
utils.DomHandler.clearSelection();
|
|
1499
1528
|
if (this.sortMode === 'single') {
|
|
1500
1529
|
if (this.d_sortField === columnField) {
|
|
@@ -2105,14 +2134,14 @@ this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseCom
|
|
|
2105
2134
|
}, null, 8, ["column", "resizableColumns", "sortField", "sortOrder", "multiSortMeta", "sortMode", "onColumnClick", "onColumnResizestart", "index", "pt"])) : vue.createCommentVNode("", true)], 64);
|
|
2106
2135
|
}), 128))], 16), $options.hasColumnFilter() ? (vue.openBlock(), vue.createElementBlock("tr", vue.normalizeProps(vue.mergeProps({
|
|
2107
2136
|
key: 0
|
|
2108
|
-
}, _ctx.ptm('
|
|
2137
|
+
}, _ctx.ptm('headerRow'))), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.columns, function (col, i) {
|
|
2109
2138
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2110
2139
|
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2111
2140
|
}, [!$options.columnProp(col, 'hidden') ? (vue.openBlock(), vue.createElementBlock("th", vue.mergeProps({
|
|
2112
2141
|
key: 0,
|
|
2113
2142
|
"class": $options.getFilterColumnHeaderClass(col),
|
|
2114
2143
|
style: [$options.columnProp(col, 'style'), $options.columnProp(col, 'filterHeaderStyle')]
|
|
2115
|
-
}, _ctx.ptm('
|
|
2144
|
+
}, _ctx.ptm('headerCell', $options.ptHeaderCellOptions(col))), [col.children && col.children.filter ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(col.children.filter), {
|
|
2116
2145
|
key: 0,
|
|
2117
2146
|
column: col,
|
|
2118
2147
|
index: i
|