primevue 3.30.1 → 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/basecomponent/BaseComponent.vue +1 -1
- package/basecomponent/basecomponent.cjs.js +1 -1
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +1 -1
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +1 -1
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +1 -1
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +1 -1
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +1 -1
- package/basedirective/basedirective.min.js +1 -1
- package/column/Column.d.ts +48 -0
- package/columngroup/ColumnGroup.d.ts +5 -0
- package/core/core.js +19 -13
- package/core/core.min.js +5 -5
- package/datatable/BaseDataTable.vue +7 -1
- package/datatable/BodyCell.vue +5 -3
- package/datatable/ColumnFilter.vue +43 -8
- package/datatable/DataTable.d.ts +30 -0
- package/datatable/FooterCell.vue +3 -1
- package/datatable/HeaderCell.vue +6 -2
- 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 +10 -2
- package/datatable/TableHeader.vue +12 -2
- package/datatable/datatable.cjs.js +149 -43
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +149 -43
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +150 -44
- package/datatable/datatable.min.js +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/dock/Dock.d.ts +4 -0
- 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/galleria/Galleria.d.ts +4 -0
- 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/message/BaseMessage.vue +2 -2
- package/message/Message.d.ts +10 -0
- 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.vue +2 -1
- package/multiselect/multiselect.cjs.js +4 -4
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +5 -5
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +4 -4
- package/multiselect/multiselect.min.js +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/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/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/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/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/tabview/TabView.vue +2 -0
- package/tabview/tabview.cjs.js +6 -2
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +6 -2
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +6 -2
- package/tabview/tabview.min.js +1 -1
- package/toast/BaseToast.vue +2 -2
- package/toast/Toast.d.ts +10 -0
- 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/tree/Tree.d.ts +9 -0
- 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/treetable/BaseTreeTable.vue +7 -1
- package/treetable/BodyCell.vue +14 -4
- package/treetable/FooterCell.vue +3 -1
- package/treetable/HeaderCell.vue +9 -2
- package/treetable/TreeTable.d.ts +30 -8
- package/treetable/TreeTable.vue +9 -2
- package/treetable/TreeTableRow.vue +10 -1
- package/treetable/treetable.cjs.js +58 -13
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +59 -14
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +58 -13
- package/treetable/treetable.min.js +1 -1
- package/vetur-attributes.json +8 -0
- package/vetur-tags.json +2 -0
- package/web-types.json +21 -1
package/datatable/datatable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIcon, Paginator, utils, VirtualScroller, BaseComponent, usestyle, ChevronDownIcon, ChevronRightIcon, BarsIcon, CheckIcon, PencilIcon, TimesIcon, OverlayEventBus, Ripple,
|
|
2
|
+
this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIcon, Paginator, utils, VirtualScroller, BaseComponent, usestyle, ChevronDownIcon, ChevronRightIcon, vue, BarsIcon, CheckIcon, PencilIcon, TimesIcon, OverlayEventBus, Ripple, Button, Dropdown, FocusTrap, FilterIcon, FilterSlashIcon, PlusIcon, TrashIcon, Portal, SortAltIcon, SortAmountDownIcon, SortAmountUpAltIcon) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -57,7 +57,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
57
57
|
'p-datatable-striped': props.stripedRows,
|
|
58
58
|
'p-datatable-gridlines': props.showGridlines,
|
|
59
59
|
'p-datatable-grouped-header': instance.headerColumnGroup != null,
|
|
60
|
-
'p-datatable-grouped-footer': instance.footerColumnGroup != null
|
|
60
|
+
'p-datatable-grouped-footer': instance.footerColumnGroup != null,
|
|
61
|
+
'p-datatable-sm': props.size === 'small',
|
|
62
|
+
'p-datatable-lg': props.size === 'large'
|
|
61
63
|
}];
|
|
62
64
|
},
|
|
63
65
|
loadingOverlay: 'p-datatable-loading-overlay p-component-overlay',
|
|
@@ -516,6 +518,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
516
518
|
type: Boolean,
|
|
517
519
|
"default": false
|
|
518
520
|
},
|
|
521
|
+
size: {
|
|
522
|
+
type: String,
|
|
523
|
+
"default": null
|
|
524
|
+
},
|
|
519
525
|
tableStyle: {
|
|
520
526
|
type: null,
|
|
521
527
|
"default": null
|
|
@@ -570,7 +576,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
570
576
|
},
|
|
571
577
|
methods: {
|
|
572
578
|
getColumnPT: function getColumnPT(key) {
|
|
573
|
-
|
|
579
|
+
var columnMetaData = {
|
|
574
580
|
props: this.column.props,
|
|
575
581
|
parent: {
|
|
576
582
|
props: this.$props,
|
|
@@ -582,7 +588,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
582
588
|
focused: this.focused,
|
|
583
589
|
disabled: this.$attrs.disabled
|
|
584
590
|
}
|
|
585
|
-
}
|
|
591
|
+
};
|
|
592
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
593
|
+
column: columnMetaData
|
|
594
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
586
595
|
},
|
|
587
596
|
getColumnProp: function getColumnProp() {
|
|
588
597
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -689,7 +698,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
689
698
|
},
|
|
690
699
|
methods: {
|
|
691
700
|
getColumnPT: function getColumnPT(key) {
|
|
692
|
-
|
|
701
|
+
var columnMetaData = {
|
|
693
702
|
props: this.column.props,
|
|
694
703
|
parent: {
|
|
695
704
|
props: this.$props,
|
|
@@ -701,7 +710,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
701
710
|
focused: this.focused,
|
|
702
711
|
disabled: this.$attrs.disabled
|
|
703
712
|
}
|
|
704
|
-
}
|
|
713
|
+
};
|
|
714
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
715
|
+
column: columnMetaData
|
|
716
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
705
717
|
},
|
|
706
718
|
getColumnProp: function getColumnProp() {
|
|
707
719
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -884,6 +896,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
884
896
|
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
885
897
|
},
|
|
886
898
|
getColumnPT: function getColumnPT(key) {
|
|
899
|
+
var _this$$parentInstance, _this$$parentInstance2;
|
|
887
900
|
var columnMetaData = {
|
|
888
901
|
props: this.column.props,
|
|
889
902
|
parent: {
|
|
@@ -891,7 +904,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
891
904
|
state: this.$data
|
|
892
905
|
},
|
|
893
906
|
context: {
|
|
894
|
-
index: this.index
|
|
907
|
+
index: this.index,
|
|
908
|
+
size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size,
|
|
909
|
+
showGridlines: (_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.showGridlines
|
|
895
910
|
}
|
|
896
911
|
};
|
|
897
912
|
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
@@ -1329,14 +1344,13 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1329
1344
|
}, [$props.column.children && $props.column.children.rowreordericon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.rowreordericon), {
|
|
1330
1345
|
key: 0,
|
|
1331
1346
|
"class": vue.normalizeClass(_ctx.cx('rowReorderIcon'))
|
|
1332
|
-
}, null, 8, ["class"])) : $options.columnProp('rowReorderIcon') ? (vue.openBlock(), vue.createElementBlock("i", {
|
|
1347
|
+
}, null, 8, ["class"])) : $options.columnProp('rowReorderIcon') ? (vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
|
|
1333
1348
|
key: 1,
|
|
1334
|
-
"class":
|
|
1335
|
-
}, null,
|
|
1349
|
+
"class": [_ctx.cx('rowReorderIcon'), $options.columnProp('rowReorderIcon')]
|
|
1350
|
+
}, $options.getColumnPT('rowReorderIcon')), null, 16)) : (vue.openBlock(), vue.createBlock(_component_BarsIcon, vue.mergeProps({
|
|
1336
1351
|
key: 2,
|
|
1337
|
-
"class":
|
|
1338
|
-
|
|
1339
|
-
}, null, 8, ["class"]))], 64)) : $options.columnProp('expander') ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
1352
|
+
"class": _ctx.cx('rowReorderIcon')
|
|
1353
|
+
}, $options.getColumnPT('rowReorderIcon')), null, 16, ["class"]))], 64)) : $options.columnProp('expander') ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
1340
1354
|
key: 6,
|
|
1341
1355
|
"class": _ctx.cx('rowToggler'),
|
|
1342
1356
|
type: "button",
|
|
@@ -1560,18 +1574,32 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1560
1574
|
columnProp: function columnProp(col, prop) {
|
|
1561
1575
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1562
1576
|
},
|
|
1563
|
-
getColumnPT: function getColumnPT(
|
|
1564
|
-
|
|
1565
|
-
props:
|
|
1577
|
+
getColumnPT: function getColumnPT(currentColumn, key) {
|
|
1578
|
+
var columnMetaData = {
|
|
1579
|
+
props: currentColumn.props,
|
|
1566
1580
|
parent: {
|
|
1567
1581
|
props: this.$props,
|
|
1568
1582
|
state: this.$data
|
|
1569
1583
|
}
|
|
1570
|
-
}
|
|
1584
|
+
};
|
|
1585
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
1586
|
+
column: columnMetaData
|
|
1587
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(currentColumn), key, columnMetaData));
|
|
1571
1588
|
},
|
|
1572
1589
|
getColumnProp: function getColumnProp(column) {
|
|
1573
1590
|
return column.props && column.props.pt ? column.props.pt : undefined; //@todo
|
|
1574
1591
|
},
|
|
1592
|
+
getBodyRowPTOptions: function getBodyRowPTOptions(key, rowdata, index) {
|
|
1593
|
+
var _this$$parentInstance, _this$$parentInstance2, _this$$parentInstance3;
|
|
1594
|
+
return this.ptm(key, {
|
|
1595
|
+
context: {
|
|
1596
|
+
index: index,
|
|
1597
|
+
selectable: ((_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.rowHover) || ((_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.selectionMode),
|
|
1598
|
+
selected: this.isSelected(rowdata),
|
|
1599
|
+
stripedRows: ((_this$$parentInstance3 = this.$parentInstance) === null || _this$$parentInstance3 === void 0 || (_this$$parentInstance3 = _this$$parentInstance3.$parentInstance) === null || _this$$parentInstance3 === void 0 ? void 0 : _this$$parentInstance3.stripedRows) || false
|
|
1600
|
+
}
|
|
1601
|
+
});
|
|
1602
|
+
},
|
|
1575
1603
|
shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader(value, rowData, i) {
|
|
1576
1604
|
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1577
1605
|
var prevRowData = value[i - 1];
|
|
@@ -1861,6 +1889,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1861
1889
|
},
|
|
1862
1890
|
nameAttributeSelector: function nameAttributeSelector() {
|
|
1863
1891
|
return utils.UniqueComponentId();
|
|
1892
|
+
},
|
|
1893
|
+
ptmTBodyOptions: function ptmTBodyOptions() {
|
|
1894
|
+
var _this$$parentInstance4;
|
|
1895
|
+
return {
|
|
1896
|
+
context: {
|
|
1897
|
+
scrollable: (_this$$parentInstance4 = this.$parentInstance) === null || _this$$parentInstance4 === void 0 || (_this$$parentInstance4 = _this$$parentInstance4.$parentInstance) === null || _this$$parentInstance4 === void 0 ? void 0 : _this$$parentInstance4.scrollable
|
|
1898
|
+
}
|
|
1899
|
+
};
|
|
1864
1900
|
}
|
|
1865
1901
|
},
|
|
1866
1902
|
components: {
|
|
@@ -1892,7 +1928,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1892
1928
|
"class": _ctx.cx('tbody'),
|
|
1893
1929
|
role: "rowgroup",
|
|
1894
1930
|
style: $options.bodyStyle
|
|
1895
|
-
}, _ctx.ptm('tbody')), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
1931
|
+
}, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
1896
1932
|
key: 0
|
|
1897
1933
|
}, vue.renderList($props.value, function (rowData, index) {
|
|
1898
1934
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
@@ -1902,14 +1938,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1902
1938
|
role: "row"
|
|
1903
1939
|
}, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1904
1940
|
colspan: $options.columnsLength - 1
|
|
1905
|
-
}, _objectSpread$8(_objectSpread$8({},
|
|
1941
|
+
}, _objectSpread$8(_objectSpread$8({}, _ctx.ptm('column.root')), _ctx.ptm('column.bodyCell')), {
|
|
1942
|
+
"data-pc-section": "bodycell"
|
|
1943
|
+
}), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
1906
1944
|
key: 0,
|
|
1907
1945
|
"class": _ctx.cx('rowGroupToggler'),
|
|
1908
1946
|
onClick: function onClick($event) {
|
|
1909
1947
|
return $options.onRowGroupToggle($event, rowData);
|
|
1910
1948
|
},
|
|
1911
1949
|
type: "button"
|
|
1912
|
-
},
|
|
1950
|
+
}, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
|
|
1913
1951
|
key: 0,
|
|
1914
1952
|
expanded: $options.isRowGroupExpanded(rowData)
|
|
1915
1953
|
}, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
@@ -1917,16 +1955,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1917
1955
|
}, [$options.isRowGroupExpanded(rowData) && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1918
1956
|
key: 0,
|
|
1919
1957
|
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
|
|
1920
|
-
},
|
|
1958
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
|
|
1921
1959
|
key: 1,
|
|
1922
1960
|
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1923
|
-
},
|
|
1961
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1924
1962
|
key: 2,
|
|
1925
1963
|
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
|
|
1926
|
-
},
|
|
1964
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
|
|
1927
1965
|
key: 3,
|
|
1928
1966
|
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1929
|
-
},
|
|
1967
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 64))], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
|
|
1930
1968
|
data: rowData,
|
|
1931
1969
|
index: $options.getRowIndex(index)
|
|
1932
1970
|
}, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : vue.createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData) : true) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
@@ -1969,7 +2007,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1969
2007
|
onDrop: _cache[13] || (_cache[13] = function ($event) {
|
|
1970
2008
|
return $options.onRowDrop($event);
|
|
1971
2009
|
})
|
|
1972
|
-
},
|
|
2010
|
+
}, $options.getBodyRowPTOptions('bodyRow', rowData, index), {
|
|
1973
2011
|
"data-p-selectable-row": $props.selectionMode ? true : false,
|
|
1974
2012
|
"data-p-highlight": $props.selection && $options.isSelected(rowData),
|
|
1975
2013
|
"data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu(rowData)
|
|
@@ -2040,7 +2078,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2040
2078
|
role: "row"
|
|
2041
2079
|
}, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
|
|
2042
2080
|
colspan: $options.columnsLength - 1
|
|
2043
|
-
}, _objectSpread$8(_objectSpread$8({},
|
|
2081
|
+
}, _objectSpread$8(_objectSpread$8({}, _ctx.ptm('column.root')), _ctx.ptm('column.footerCell')), {
|
|
2082
|
+
"data-pc-section": "footercell"
|
|
2083
|
+
}), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
|
|
2044
2084
|
data: rowData,
|
|
2045
2085
|
index: $options.getRowIndex(index)
|
|
2046
2086
|
}, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : vue.createCommentVNode("", true)], 64);
|
|
@@ -2091,6 +2131,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2091
2131
|
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
2092
2132
|
},
|
|
2093
2133
|
getColumnPT: function getColumnPT(key) {
|
|
2134
|
+
var _this$$parentInstance, _this$$parentInstance2;
|
|
2094
2135
|
var columnMetaData = {
|
|
2095
2136
|
props: this.column.props,
|
|
2096
2137
|
parent: {
|
|
@@ -2098,7 +2139,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2098
2139
|
state: this.$data
|
|
2099
2140
|
},
|
|
2100
2141
|
context: {
|
|
2101
|
-
index: this.index
|
|
2142
|
+
index: this.index,
|
|
2143
|
+
size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size,
|
|
2144
|
+
showGridlines: ((_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.showGridlines) || false
|
|
2102
2145
|
}
|
|
2103
2146
|
};
|
|
2104
2147
|
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
@@ -2196,7 +2239,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2196
2239
|
state: this.$data
|
|
2197
2240
|
},
|
|
2198
2241
|
context: {
|
|
2199
|
-
type: '
|
|
2242
|
+
type: 'footer',
|
|
2243
|
+
scrollable: this.ptmTFootOptions.context.scrollable
|
|
2200
2244
|
}
|
|
2201
2245
|
};
|
|
2202
2246
|
return vue.mergeProps(this.ptm("columnGroup.".concat(key), {
|
|
@@ -2280,6 +2324,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2280
2324
|
}
|
|
2281
2325
|
}
|
|
2282
2326
|
return hasFooter;
|
|
2327
|
+
},
|
|
2328
|
+
ptmTFootOptions: function ptmTFootOptions() {
|
|
2329
|
+
var _this$$parentInstance;
|
|
2330
|
+
return {
|
|
2331
|
+
context: {
|
|
2332
|
+
scrollable: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.scrollable
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2283
2335
|
}
|
|
2284
2336
|
},
|
|
2285
2337
|
components: {
|
|
@@ -2300,7 +2352,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2300
2352
|
"class": _ctx.cx('tfoot'),
|
|
2301
2353
|
style: _ctx.sx('tfoot'),
|
|
2302
2354
|
role: "rowgroup"
|
|
2303
|
-
}, $props.columnGroup ? _objectSpread$6(_objectSpread$6({}, _ctx.ptm('tfoot')), $options.getColumnGroupPT('root')) : _ctx.ptm('tfoot'), {
|
|
2355
|
+
}, $props.columnGroup ? _objectSpread$6(_objectSpread$6({}, _ctx.ptm('tfoot', $options.ptmTFootOptions)), $options.getColumnGroupPT('root')) : _ctx.ptm('tfoot', $options.ptmTFootOptions), {
|
|
2304
2356
|
"data-pc-section": "tfoot"
|
|
2305
2357
|
}), [!$props.columnGroup ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
2306
2358
|
key: 0,
|
|
@@ -2484,18 +2536,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2484
2536
|
}
|
|
2485
2537
|
},
|
|
2486
2538
|
methods: {
|
|
2487
|
-
getColumnPT: function getColumnPT(key) {
|
|
2488
|
-
|
|
2539
|
+
getColumnPT: function getColumnPT(key, params) {
|
|
2540
|
+
var columnMetaData = _objectSpread$5({
|
|
2489
2541
|
props: this.column.props,
|
|
2490
2542
|
parent: {
|
|
2491
2543
|
props: this.$props,
|
|
2492
2544
|
state: this.$data
|
|
2493
2545
|
}
|
|
2494
|
-
});
|
|
2546
|
+
}, params);
|
|
2547
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
2548
|
+
column: columnMetaData
|
|
2549
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
2495
2550
|
},
|
|
2496
2551
|
getColumnProp: function getColumnProp() {
|
|
2497
2552
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
|
|
2498
2553
|
},
|
|
2554
|
+
ptmFilterRowItemOptions: function ptmFilterRowItemOptions(matchMode) {
|
|
2555
|
+
return {
|
|
2556
|
+
context: {
|
|
2557
|
+
highlighted: matchMode && this.isRowMatchModeSelected(matchMode.value)
|
|
2558
|
+
}
|
|
2559
|
+
};
|
|
2560
|
+
},
|
|
2499
2561
|
clearFilter: function clearFilter() {
|
|
2500
2562
|
var _filters = _objectSpread$5({}, this.filters);
|
|
2501
2563
|
if (_filters[this.field].operator) {
|
|
@@ -2833,6 +2895,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2833
2895
|
},
|
|
2834
2896
|
filterConstraintAriaLabel: function filterConstraintAriaLabel() {
|
|
2835
2897
|
return this.$primevue.config.locale ? this.$primevue.config.locale.filterConstraint : undefined;
|
|
2898
|
+
},
|
|
2899
|
+
ptmHeaderFilterClearParams: function ptmHeaderFilterClearParams() {
|
|
2900
|
+
return {
|
|
2901
|
+
context: {
|
|
2902
|
+
hidden: this.hasRowFilter()
|
|
2903
|
+
}
|
|
2904
|
+
};
|
|
2905
|
+
},
|
|
2906
|
+
ptmFilterMenuParams: function ptmFilterMenuParams() {
|
|
2907
|
+
return {
|
|
2908
|
+
context: {
|
|
2909
|
+
overlayVisible: this.overlayVisible,
|
|
2910
|
+
active: this.hasFilter()
|
|
2911
|
+
}
|
|
2912
|
+
};
|
|
2836
2913
|
}
|
|
2837
2914
|
},
|
|
2838
2915
|
components: {
|
|
@@ -2887,14 +2964,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2887
2964
|
onKeydown: _cache[1] || (_cache[1] = function ($event) {
|
|
2888
2965
|
return $options.onToggleButtonKeyDown($event);
|
|
2889
2966
|
})
|
|
2890
|
-
}, $options.getColumnPT('filterMenuButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterIconTemplate || 'FilterIcon')))], 16, _hoisted_1$2)) : vue.createCommentVNode("", true), $props.showClearButton && $props.display === 'row' ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
2967
|
+
}, $options.getColumnPT('filterMenuButton', $options.ptmFilterMenuParams)), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterIconTemplate || 'FilterIcon'), vue.normalizeProps(vue.guardReactiveProps($options.getColumnPT('filterMenuIcon'))), null, 16))], 16, _hoisted_1$2)) : vue.createCommentVNode("", true), $props.showClearButton && $props.display === 'row' ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
2891
2968
|
key: 2,
|
|
2892
2969
|
"class": _ctx.cx('headerFilterClearButton'),
|
|
2893
2970
|
type: "button",
|
|
2894
2971
|
onClick: _cache[2] || (_cache[2] = function ($event) {
|
|
2895
2972
|
return $options.clearFilter();
|
|
2896
2973
|
})
|
|
2897
|
-
}, $options.getColumnPT('headerFilterClearButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon'), vue.normalizeProps(vue.guardReactiveProps($options.getColumnPT('filterClearIcon'))), null, 16))], 16)) : vue.createCommentVNode("", true), vue.createVNode(_component_Portal, null, {
|
|
2974
|
+
}, $options.getColumnPT('headerFilterClearButton', $options.ptmHeaderFilterClearParams)), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon'), vue.normalizeProps(vue.guardReactiveProps($options.getColumnPT('filterClearIcon'))), null, 16))], 16)) : vue.createCommentVNode("", true), vue.createVNode(_component_Portal, null, {
|
|
2898
2975
|
"default": vue.withCtx(function () {
|
|
2899
2976
|
return [vue.createVNode(vue.Transition, {
|
|
2900
2977
|
name: "p-connected-overlay",
|
|
@@ -2941,7 +3018,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2941
3018
|
return $options.onRowMatchModeChange(matchMode.value);
|
|
2942
3019
|
}, ["prevent"]), ["enter"])],
|
|
2943
3020
|
tabindex: i === 0 ? '0' : null
|
|
2944
|
-
}, $options.getColumnPT('filterRowItem')), vue.toDisplayString(matchMode.label), 17, _hoisted_3);
|
|
3021
|
+
}, $options.getColumnPT('filterRowItem', $options.ptmFilterRowItemOptions(matchMode))), vue.toDisplayString(matchMode.label), 17, _hoisted_3);
|
|
2945
3022
|
}), 128)), vue.createElementVNode("li", vue.mergeProps({
|
|
2946
3023
|
"class": _ctx.cx('filterSeparator')
|
|
2947
3024
|
}, $options.getColumnPT('filterSeparator')), null, 16), vue.createElementVNode("li", vue.mergeProps({
|
|
@@ -3006,6 +3083,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3006
3083
|
},
|
|
3007
3084
|
label: $options.removeRuleButtonLabel,
|
|
3008
3085
|
unstyled: _ctx.unstyled,
|
|
3086
|
+
text: "",
|
|
3087
|
+
severity: "danger",
|
|
3088
|
+
size: "small",
|
|
3009
3089
|
pt: $options.getColumnPT('filterRemoveButton'),
|
|
3010
3090
|
"data-pc-section": "filterremovebutton"
|
|
3011
3091
|
}, {
|
|
@@ -3028,6 +3108,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3028
3108
|
return $options.addConstraint();
|
|
3029
3109
|
}),
|
|
3030
3110
|
unstyled: _ctx.unstyled,
|
|
3111
|
+
text: "",
|
|
3112
|
+
severity: "info",
|
|
3113
|
+
size: "small",
|
|
3031
3114
|
pt: $options.getColumnPT('filterAddRuleButton'),
|
|
3032
3115
|
"data-pc-section": "filteraddrulebutton"
|
|
3033
3116
|
}, {
|
|
@@ -3046,6 +3129,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3046
3129
|
label: $options.clearButtonLabel,
|
|
3047
3130
|
onClick: $options.clearFilter,
|
|
3048
3131
|
unstyled: _ctx.unstyled,
|
|
3132
|
+
size: "small",
|
|
3133
|
+
outlined: "",
|
|
3049
3134
|
pt: $options.getColumnPT('filterClearButton'),
|
|
3050
3135
|
"data-pc-section": "filterclearbutton"
|
|
3051
3136
|
}, null, 8, ["class", "label", "onClick", "unstyled", "pt"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterClearTemplate), {
|
|
@@ -3064,6 +3149,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3064
3149
|
return $options.applyFilter();
|
|
3065
3150
|
}),
|
|
3066
3151
|
unstyled: _ctx.unstyled,
|
|
3152
|
+
size: "small",
|
|
3067
3153
|
pt: $options.getColumnPT('filterApplyButton'),
|
|
3068
3154
|
"data-pc-section": "filterapplybutton"
|
|
3069
3155
|
}, null, 8, ["class", "label", "unstyled", "pt"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterApplyTemplate), {
|
|
@@ -3109,7 +3195,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3109
3195
|
},
|
|
3110
3196
|
methods: {
|
|
3111
3197
|
getColumnPT: function getColumnPT(key) {
|
|
3112
|
-
|
|
3198
|
+
var columnMetaData = {
|
|
3113
3199
|
props: this.column.props,
|
|
3114
3200
|
parent: {
|
|
3115
3201
|
props: this.$props,
|
|
@@ -3120,7 +3206,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3120
3206
|
focused: this.focused,
|
|
3121
3207
|
disabled: this.disabled
|
|
3122
3208
|
}
|
|
3123
|
-
}
|
|
3209
|
+
};
|
|
3210
|
+
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
3211
|
+
column: columnMetaData
|
|
3212
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
3124
3213
|
},
|
|
3125
3214
|
getColumnProp: function getColumnProp() {
|
|
3126
3215
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -3293,6 +3382,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3293
3382
|
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
3294
3383
|
},
|
|
3295
3384
|
getColumnPT: function getColumnPT(key) {
|
|
3385
|
+
var _this$$parentInstance, _this$$parentInstance2;
|
|
3296
3386
|
var columnMetaData = {
|
|
3297
3387
|
props: this.column.props,
|
|
3298
3388
|
parent: {
|
|
@@ -3300,7 +3390,11 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3300
3390
|
state: this.$data
|
|
3301
3391
|
},
|
|
3302
3392
|
context: {
|
|
3303
|
-
index: this.index
|
|
3393
|
+
index: this.index,
|
|
3394
|
+
sorted: this.isColumnSorted(),
|
|
3395
|
+
resizable: this.resizableColumns,
|
|
3396
|
+
size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size,
|
|
3397
|
+
showGridlines: ((_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.showGridlines) || false
|
|
3304
3398
|
}
|
|
3305
3399
|
};
|
|
3306
3400
|
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
@@ -3508,12 +3602,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3508
3602
|
"class": _ctx.cx('headerTitle')
|
|
3509
3603
|
}, $options.getColumnPT('headerTitle')), vue.toDisplayString($options.columnProp('header')), 17)) : vue.createCommentVNode("", true), $options.columnProp('sortable') ? (vue.openBlock(), vue.createElementBlock("span", vue.normalizeProps(vue.mergeProps({
|
|
3510
3604
|
key: 2
|
|
3511
|
-
}, $options.getColumnPT('sort'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), {
|
|
3605
|
+
}, $options.getColumnPT('sort'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), vue.mergeProps({
|
|
3512
3606
|
sorted: $options.sortState.sorted,
|
|
3513
3607
|
sortOrder: $options.sortState.sortOrder,
|
|
3514
3608
|
"data-pc-section": "sorticon",
|
|
3515
|
-
"class":
|
|
3516
|
-
}, null,
|
|
3609
|
+
"class": _ctx.cx('sortIcon')
|
|
3610
|
+
}, $options.getColumnPT('sorticon')), null, 16, ["sorted", "sortOrder", "class"]))], 16)) : vue.createCommentVNode("", true), $options.isMultiSorted() ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
3517
3611
|
key: 3,
|
|
3518
3612
|
"class": _ctx.cx('sortBadge')
|
|
3519
3613
|
}, $options.getColumnPT('sortBadge')), vue.toDisplayString($options.getBadgeValue()), 17)) : vue.createCommentVNode("", true), $options.columnProp('selectionMode') === 'multiple' && $props.filterDisplay !== 'row' ? (vue.openBlock(), vue.createBlock(_component_DTHeaderCheckbox, {
|
|
@@ -3671,6 +3765,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3671
3765
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
3672
3766
|
},
|
|
3673
3767
|
getColumnGroupPT: function getColumnGroupPT(key) {
|
|
3768
|
+
var _this$$parentInstance;
|
|
3674
3769
|
var columnGroupMetaData = {
|
|
3675
3770
|
props: this.getColumnGroupProps(),
|
|
3676
3771
|
parent: {
|
|
@@ -3678,7 +3773,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3678
3773
|
state: this.$data
|
|
3679
3774
|
},
|
|
3680
3775
|
context: {
|
|
3681
|
-
type: 'header'
|
|
3776
|
+
type: 'header',
|
|
3777
|
+
scrollable: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.scrollable
|
|
3682
3778
|
}
|
|
3683
3779
|
};
|
|
3684
3780
|
return vue.mergeProps(this.ptm("columnGroup.".concat(key), {
|
|
@@ -3765,6 +3861,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3765
3861
|
}
|
|
3766
3862
|
}
|
|
3767
3863
|
},
|
|
3864
|
+
computed: {
|
|
3865
|
+
ptmTHeadOptions: function ptmTHeadOptions() {
|
|
3866
|
+
var _this$$parentInstance2;
|
|
3867
|
+
return {
|
|
3868
|
+
context: {
|
|
3869
|
+
scrollable: (_this$$parentInstance2 = this.$parentInstance) === null || _this$$parentInstance2 === void 0 || (_this$$parentInstance2 = _this$$parentInstance2.$parentInstance) === null || _this$$parentInstance2 === void 0 ? void 0 : _this$$parentInstance2.scrollable
|
|
3870
|
+
}
|
|
3871
|
+
};
|
|
3872
|
+
}
|
|
3873
|
+
},
|
|
3768
3874
|
components: {
|
|
3769
3875
|
DTHeaderCell: script$2,
|
|
3770
3876
|
DTHeaderCheckbox: script$3,
|
|
@@ -3786,7 +3892,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3786
3892
|
"class": _ctx.cx('thead'),
|
|
3787
3893
|
style: _ctx.sx('thead'),
|
|
3788
3894
|
role: "rowgroup"
|
|
3789
|
-
}, $props.columnGroup ? _objectSpread$2(_objectSpread$2({}, _ctx.ptm('thead')), $options.getColumnGroupPT('root')) : _ctx.ptm('thead'), {
|
|
3895
|
+
}, $props.columnGroup ? _objectSpread$2(_objectSpread$2({}, _ctx.ptm('thead', $options.ptmTHeadOptions)), $options.getColumnGroupPT('root')) : _ctx.ptm('thead', $options.ptmTHeadOptions), {
|
|
3790
3896
|
"data-pc-section": "thead"
|
|
3791
3897
|
}), [!$props.columnGroup ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
3792
3898
|
key: 0
|
|
@@ -6073,4 +6179,4 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
6073
6179
|
|
|
6074
6180
|
return script;
|
|
6075
6181
|
|
|
6076
|
-
})(primevue.api, primevue.icons.arrowdown, primevue.icons.arrowup, primevue.icons.spinner, primevue.paginator, primevue.utils, primevue.virtualscroller, primevue.basecomponent, primevue.usestyle, primevue.icons.chevrondown, primevue.icons.chevronright, primevue.icons.bars, primevue.icons.check, primevue.icons.pencil, primevue.icons.times, primevue.overlayeventbus, primevue.ripple,
|
|
6182
|
+
})(primevue.api, primevue.icons.arrowdown, primevue.icons.arrowup, primevue.icons.spinner, primevue.paginator, primevue.utils, primevue.virtualscroller, primevue.basecomponent, primevue.usestyle, primevue.icons.chevrondown, primevue.icons.chevronright, Vue, primevue.icons.bars, primevue.icons.check, primevue.icons.pencil, primevue.icons.times, primevue.overlayeventbus, primevue.ripple, primevue.button, primevue.dropdown, primevue.focustrap, primevue.icons.filter, primevue.icons.filterslash, primevue.icons.plus, primevue.icons.trash, primevue.portal, primevue.icons.sortalt, primevue.icons.sortamountdown, primevue.icons.sortamountupalt);
|