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
|
@@ -9,13 +9,13 @@ import BaseComponent from 'primevue/basecomponent';
|
|
|
9
9
|
import { useStyle } from 'primevue/usestyle';
|
|
10
10
|
import ChevronDownIcon from 'primevue/icons/chevrondown';
|
|
11
11
|
import ChevronRightIcon from 'primevue/icons/chevronright';
|
|
12
|
+
import { mergeProps, resolveComponent, openBlock, createElementBlock, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode, withKeys, withModifiers, resolveDirective, toDisplayString, Fragment, withDirectives, createTextVNode, renderList, normalizeProps, guardReactiveProps, createVNode, withCtx, Transition, renderSlot, createSlots } from 'vue';
|
|
12
13
|
import BarsIcon from 'primevue/icons/bars';
|
|
13
14
|
import CheckIcon from 'primevue/icons/check';
|
|
14
15
|
import PencilIcon from 'primevue/icons/pencil';
|
|
15
16
|
import TimesIcon from 'primevue/icons/times';
|
|
16
17
|
import OverlayEventBus from 'primevue/overlayeventbus';
|
|
17
18
|
import Ripple from 'primevue/ripple';
|
|
18
|
-
import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode, withKeys, withModifiers, resolveDirective, toDisplayString, Fragment, withDirectives, createTextVNode, renderList, normalizeProps, guardReactiveProps, createVNode, withCtx, Transition, renderSlot, createSlots } from 'vue';
|
|
19
19
|
import Button from 'primevue/button';
|
|
20
20
|
import Dropdown from 'primevue/dropdown';
|
|
21
21
|
import FocusTrap from 'primevue/focustrap';
|
|
@@ -55,7 +55,9 @@ var classes = {
|
|
|
55
55
|
'p-datatable-striped': props.stripedRows,
|
|
56
56
|
'p-datatable-gridlines': props.showGridlines,
|
|
57
57
|
'p-datatable-grouped-header': instance.headerColumnGroup != null,
|
|
58
|
-
'p-datatable-grouped-footer': instance.footerColumnGroup != null
|
|
58
|
+
'p-datatable-grouped-footer': instance.footerColumnGroup != null,
|
|
59
|
+
'p-datatable-sm': props.size === 'small',
|
|
60
|
+
'p-datatable-lg': props.size === 'large'
|
|
59
61
|
}];
|
|
60
62
|
},
|
|
61
63
|
loadingOverlay: 'p-datatable-loading-overlay p-component-overlay',
|
|
@@ -514,6 +516,10 @@ var script$b = {
|
|
|
514
516
|
type: Boolean,
|
|
515
517
|
"default": false
|
|
516
518
|
},
|
|
519
|
+
size: {
|
|
520
|
+
type: String,
|
|
521
|
+
"default": null
|
|
522
|
+
},
|
|
517
523
|
tableStyle: {
|
|
518
524
|
type: null,
|
|
519
525
|
"default": null
|
|
@@ -568,7 +574,7 @@ var script$a = {
|
|
|
568
574
|
},
|
|
569
575
|
methods: {
|
|
570
576
|
getColumnPT: function getColumnPT(key) {
|
|
571
|
-
|
|
577
|
+
var columnMetaData = {
|
|
572
578
|
props: this.column.props,
|
|
573
579
|
parent: {
|
|
574
580
|
props: this.$props,
|
|
@@ -580,7 +586,10 @@ var script$a = {
|
|
|
580
586
|
focused: this.focused,
|
|
581
587
|
disabled: this.$attrs.disabled
|
|
582
588
|
}
|
|
583
|
-
}
|
|
589
|
+
};
|
|
590
|
+
return mergeProps(this.ptm("column.".concat(key), {
|
|
591
|
+
column: columnMetaData
|
|
592
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
584
593
|
},
|
|
585
594
|
getColumnProp: function getColumnProp() {
|
|
586
595
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -687,7 +696,7 @@ var script$9 = {
|
|
|
687
696
|
},
|
|
688
697
|
methods: {
|
|
689
698
|
getColumnPT: function getColumnPT(key) {
|
|
690
|
-
|
|
699
|
+
var columnMetaData = {
|
|
691
700
|
props: this.column.props,
|
|
692
701
|
parent: {
|
|
693
702
|
props: this.$props,
|
|
@@ -699,7 +708,10 @@ var script$9 = {
|
|
|
699
708
|
focused: this.focused,
|
|
700
709
|
disabled: this.$attrs.disabled
|
|
701
710
|
}
|
|
702
|
-
}
|
|
711
|
+
};
|
|
712
|
+
return mergeProps(this.ptm("column.".concat(key), {
|
|
713
|
+
column: columnMetaData
|
|
714
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
703
715
|
},
|
|
704
716
|
getColumnProp: function getColumnProp() {
|
|
705
717
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -882,6 +894,7 @@ var script$8 = {
|
|
|
882
894
|
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
883
895
|
},
|
|
884
896
|
getColumnPT: function getColumnPT(key) {
|
|
897
|
+
var _this$$parentInstance, _this$$parentInstance2;
|
|
885
898
|
var columnMetaData = {
|
|
886
899
|
props: this.column.props,
|
|
887
900
|
parent: {
|
|
@@ -889,7 +902,9 @@ var script$8 = {
|
|
|
889
902
|
state: this.$data
|
|
890
903
|
},
|
|
891
904
|
context: {
|
|
892
|
-
index: this.index
|
|
905
|
+
index: this.index,
|
|
906
|
+
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,
|
|
907
|
+
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
|
|
893
908
|
}
|
|
894
909
|
};
|
|
895
910
|
return mergeProps(this.ptm("column.".concat(key), {
|
|
@@ -1327,14 +1342,13 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1327
1342
|
}, [$props.column.children && $props.column.children.rowreordericon ? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.rowreordericon), {
|
|
1328
1343
|
key: 0,
|
|
1329
1344
|
"class": normalizeClass(_ctx.cx('rowReorderIcon'))
|
|
1330
|
-
}, null, 8, ["class"])) : $options.columnProp('rowReorderIcon') ? (openBlock(), createElementBlock("i", {
|
|
1345
|
+
}, null, 8, ["class"])) : $options.columnProp('rowReorderIcon') ? (openBlock(), createElementBlock("i", mergeProps({
|
|
1331
1346
|
key: 1,
|
|
1332
|
-
"class":
|
|
1333
|
-
}, null,
|
|
1347
|
+
"class": [_ctx.cx('rowReorderIcon'), $options.columnProp('rowReorderIcon')]
|
|
1348
|
+
}, $options.getColumnPT('rowReorderIcon')), null, 16)) : (openBlock(), createBlock(_component_BarsIcon, mergeProps({
|
|
1334
1349
|
key: 2,
|
|
1335
|
-
"class":
|
|
1336
|
-
|
|
1337
|
-
}, null, 8, ["class"]))], 64)) : $options.columnProp('expander') ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
1350
|
+
"class": _ctx.cx('rowReorderIcon')
|
|
1351
|
+
}, $options.getColumnPT('rowReorderIcon')), null, 16, ["class"]))], 64)) : $options.columnProp('expander') ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
1338
1352
|
key: 6,
|
|
1339
1353
|
"class": _ctx.cx('rowToggler'),
|
|
1340
1354
|
type: "button",
|
|
@@ -1558,18 +1572,32 @@ var script$7 = {
|
|
|
1558
1572
|
columnProp: function columnProp(col, prop) {
|
|
1559
1573
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
1560
1574
|
},
|
|
1561
|
-
getColumnPT: function getColumnPT(
|
|
1562
|
-
|
|
1563
|
-
props:
|
|
1575
|
+
getColumnPT: function getColumnPT(currentColumn, key) {
|
|
1576
|
+
var columnMetaData = {
|
|
1577
|
+
props: currentColumn.props,
|
|
1564
1578
|
parent: {
|
|
1565
1579
|
props: this.$props,
|
|
1566
1580
|
state: this.$data
|
|
1567
1581
|
}
|
|
1568
|
-
}
|
|
1582
|
+
};
|
|
1583
|
+
return mergeProps(this.ptm("column.".concat(key), {
|
|
1584
|
+
column: columnMetaData
|
|
1585
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(currentColumn), key, columnMetaData));
|
|
1569
1586
|
},
|
|
1570
1587
|
getColumnProp: function getColumnProp(column) {
|
|
1571
1588
|
return column.props && column.props.pt ? column.props.pt : undefined; //@todo
|
|
1572
1589
|
},
|
|
1590
|
+
getBodyRowPTOptions: function getBodyRowPTOptions(key, rowdata, index) {
|
|
1591
|
+
var _this$$parentInstance, _this$$parentInstance2, _this$$parentInstance3;
|
|
1592
|
+
return this.ptm(key, {
|
|
1593
|
+
context: {
|
|
1594
|
+
index: index,
|
|
1595
|
+
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),
|
|
1596
|
+
selected: this.isSelected(rowdata),
|
|
1597
|
+
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
|
|
1598
|
+
}
|
|
1599
|
+
});
|
|
1600
|
+
},
|
|
1573
1601
|
shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader(value, rowData, i) {
|
|
1574
1602
|
var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1575
1603
|
var prevRowData = value[i - 1];
|
|
@@ -1859,6 +1887,14 @@ var script$7 = {
|
|
|
1859
1887
|
},
|
|
1860
1888
|
nameAttributeSelector: function nameAttributeSelector() {
|
|
1861
1889
|
return UniqueComponentId();
|
|
1890
|
+
},
|
|
1891
|
+
ptmTBodyOptions: function ptmTBodyOptions() {
|
|
1892
|
+
var _this$$parentInstance4;
|
|
1893
|
+
return {
|
|
1894
|
+
context: {
|
|
1895
|
+
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
|
|
1896
|
+
}
|
|
1897
|
+
};
|
|
1862
1898
|
}
|
|
1863
1899
|
},
|
|
1864
1900
|
components: {
|
|
@@ -1890,7 +1926,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1890
1926
|
"class": _ctx.cx('tbody'),
|
|
1891
1927
|
role: "rowgroup",
|
|
1892
1928
|
style: $options.bodyStyle
|
|
1893
|
-
}, _ctx.ptm('tbody')), [!$props.empty ? (openBlock(true), createElementBlock(Fragment, {
|
|
1929
|
+
}, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (openBlock(true), createElementBlock(Fragment, {
|
|
1894
1930
|
key: 0
|
|
1895
1931
|
}, renderList($props.value, function (rowData, index) {
|
|
1896
1932
|
return openBlock(), createElementBlock(Fragment, null, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)) ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
@@ -1900,14 +1936,16 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1900
1936
|
role: "row"
|
|
1901
1937
|
}, _ctx.ptm('rowGroupHeader')), [createElementVNode("td", mergeProps({
|
|
1902
1938
|
colspan: $options.columnsLength - 1
|
|
1903
|
-
}, _objectSpread$8(_objectSpread$8({},
|
|
1939
|
+
}, _objectSpread$8(_objectSpread$8({}, _ctx.ptm('column.root')), _ctx.ptm('column.bodyCell')), {
|
|
1940
|
+
"data-pc-section": "bodycell"
|
|
1941
|
+
}), [$props.expandableRowGroups ? (openBlock(), createElementBlock("button", mergeProps({
|
|
1904
1942
|
key: 0,
|
|
1905
1943
|
"class": _ctx.cx('rowGroupToggler'),
|
|
1906
1944
|
onClick: function onClick($event) {
|
|
1907
1945
|
return $options.onRowGroupToggle($event, rowData);
|
|
1908
1946
|
},
|
|
1909
1947
|
type: "button"
|
|
1910
|
-
},
|
|
1948
|
+
}, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
|
|
1911
1949
|
key: 0,
|
|
1912
1950
|
expanded: $options.isRowGroupExpanded(rowData)
|
|
1913
1951
|
}, null, 8, ["expanded"])) : (openBlock(), createElementBlock(Fragment, {
|
|
@@ -1915,16 +1953,16 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1915
1953
|
}, [$options.isRowGroupExpanded(rowData) && $props.expandedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1916
1954
|
key: 0,
|
|
1917
1955
|
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
|
|
1918
|
-
},
|
|
1956
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon ? (openBlock(), createBlock(_component_ChevronDownIcon, mergeProps({
|
|
1919
1957
|
key: 1,
|
|
1920
1958
|
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1921
|
-
},
|
|
1959
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1922
1960
|
key: 2,
|
|
1923
1961
|
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
|
|
1924
|
-
},
|
|
1962
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon ? (openBlock(), createBlock(_component_ChevronRightIcon, mergeProps({
|
|
1925
1963
|
key: 3,
|
|
1926
1964
|
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1927
|
-
},
|
|
1965
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 64))], 16, _hoisted_2$1)) : createCommentVNode("", true), (openBlock(), createBlock(resolveDynamicComponent($props.templates['groupheader']), {
|
|
1928
1966
|
data: rowData,
|
|
1929
1967
|
index: $options.getRowIndex(index)
|
|
1930
1968
|
}, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData) : true) ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
@@ -1967,7 +2005,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1967
2005
|
onDrop: _cache[13] || (_cache[13] = function ($event) {
|
|
1968
2006
|
return $options.onRowDrop($event);
|
|
1969
2007
|
})
|
|
1970
|
-
},
|
|
2008
|
+
}, $options.getBodyRowPTOptions('bodyRow', rowData, index), {
|
|
1971
2009
|
"data-p-selectable-row": $props.selectionMode ? true : false,
|
|
1972
2010
|
"data-p-highlight": $props.selection && $options.isSelected(rowData),
|
|
1973
2011
|
"data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu(rowData)
|
|
@@ -2038,7 +2076,9 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2038
2076
|
role: "row"
|
|
2039
2077
|
}, _ctx.ptm('rowGroupFooter')), [createElementVNode("td", mergeProps({
|
|
2040
2078
|
colspan: $options.columnsLength - 1
|
|
2041
|
-
}, _objectSpread$8(_objectSpread$8({},
|
|
2079
|
+
}, _objectSpread$8(_objectSpread$8({}, _ctx.ptm('column.root')), _ctx.ptm('column.footerCell')), {
|
|
2080
|
+
"data-pc-section": "footercell"
|
|
2081
|
+
}), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['groupfooter']), {
|
|
2042
2082
|
data: rowData,
|
|
2043
2083
|
index: $options.getRowIndex(index)
|
|
2044
2084
|
}, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : createCommentVNode("", true)], 64);
|
|
@@ -2089,6 +2129,7 @@ var script$6 = {
|
|
|
2089
2129
|
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
2090
2130
|
},
|
|
2091
2131
|
getColumnPT: function getColumnPT(key) {
|
|
2132
|
+
var _this$$parentInstance, _this$$parentInstance2;
|
|
2092
2133
|
var columnMetaData = {
|
|
2093
2134
|
props: this.column.props,
|
|
2094
2135
|
parent: {
|
|
@@ -2096,7 +2137,9 @@ var script$6 = {
|
|
|
2096
2137
|
state: this.$data
|
|
2097
2138
|
},
|
|
2098
2139
|
context: {
|
|
2099
|
-
index: this.index
|
|
2140
|
+
index: this.index,
|
|
2141
|
+
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,
|
|
2142
|
+
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
|
|
2100
2143
|
}
|
|
2101
2144
|
};
|
|
2102
2145
|
return mergeProps(this.ptm("column.".concat(key), {
|
|
@@ -2194,7 +2237,8 @@ var script$5 = {
|
|
|
2194
2237
|
state: this.$data
|
|
2195
2238
|
},
|
|
2196
2239
|
context: {
|
|
2197
|
-
type: '
|
|
2240
|
+
type: 'footer',
|
|
2241
|
+
scrollable: this.ptmTFootOptions.context.scrollable
|
|
2198
2242
|
}
|
|
2199
2243
|
};
|
|
2200
2244
|
return mergeProps(this.ptm("columnGroup.".concat(key), {
|
|
@@ -2278,6 +2322,14 @@ var script$5 = {
|
|
|
2278
2322
|
}
|
|
2279
2323
|
}
|
|
2280
2324
|
return hasFooter;
|
|
2325
|
+
},
|
|
2326
|
+
ptmTFootOptions: function ptmTFootOptions() {
|
|
2327
|
+
var _this$$parentInstance;
|
|
2328
|
+
return {
|
|
2329
|
+
context: {
|
|
2330
|
+
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
|
|
2331
|
+
}
|
|
2332
|
+
};
|
|
2281
2333
|
}
|
|
2282
2334
|
},
|
|
2283
2335
|
components: {
|
|
@@ -2298,7 +2350,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2298
2350
|
"class": _ctx.cx('tfoot'),
|
|
2299
2351
|
style: _ctx.sx('tfoot'),
|
|
2300
2352
|
role: "rowgroup"
|
|
2301
|
-
}, $props.columnGroup ? _objectSpread$6(_objectSpread$6({}, _ctx.ptm('tfoot')), $options.getColumnGroupPT('root')) : _ctx.ptm('tfoot'), {
|
|
2353
|
+
}, $props.columnGroup ? _objectSpread$6(_objectSpread$6({}, _ctx.ptm('tfoot', $options.ptmTFootOptions)), $options.getColumnGroupPT('root')) : _ctx.ptm('tfoot', $options.ptmTFootOptions), {
|
|
2302
2354
|
"data-pc-section": "tfoot"
|
|
2303
2355
|
}), [!$props.columnGroup ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
2304
2356
|
key: 0,
|
|
@@ -2482,18 +2534,28 @@ var script$4 = {
|
|
|
2482
2534
|
}
|
|
2483
2535
|
},
|
|
2484
2536
|
methods: {
|
|
2485
|
-
getColumnPT: function getColumnPT(key) {
|
|
2486
|
-
|
|
2537
|
+
getColumnPT: function getColumnPT(key, params) {
|
|
2538
|
+
var columnMetaData = _objectSpread$5({
|
|
2487
2539
|
props: this.column.props,
|
|
2488
2540
|
parent: {
|
|
2489
2541
|
props: this.$props,
|
|
2490
2542
|
state: this.$data
|
|
2491
2543
|
}
|
|
2492
|
-
});
|
|
2544
|
+
}, params);
|
|
2545
|
+
return mergeProps(this.ptm("column.".concat(key), {
|
|
2546
|
+
column: columnMetaData
|
|
2547
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
2493
2548
|
},
|
|
2494
2549
|
getColumnProp: function getColumnProp() {
|
|
2495
2550
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
|
|
2496
2551
|
},
|
|
2552
|
+
ptmFilterRowItemOptions: function ptmFilterRowItemOptions(matchMode) {
|
|
2553
|
+
return {
|
|
2554
|
+
context: {
|
|
2555
|
+
highlighted: matchMode && this.isRowMatchModeSelected(matchMode.value)
|
|
2556
|
+
}
|
|
2557
|
+
};
|
|
2558
|
+
},
|
|
2497
2559
|
clearFilter: function clearFilter() {
|
|
2498
2560
|
var _filters = _objectSpread$5({}, this.filters);
|
|
2499
2561
|
if (_filters[this.field].operator) {
|
|
@@ -2831,6 +2893,21 @@ var script$4 = {
|
|
|
2831
2893
|
},
|
|
2832
2894
|
filterConstraintAriaLabel: function filterConstraintAriaLabel() {
|
|
2833
2895
|
return this.$primevue.config.locale ? this.$primevue.config.locale.filterConstraint : undefined;
|
|
2896
|
+
},
|
|
2897
|
+
ptmHeaderFilterClearParams: function ptmHeaderFilterClearParams() {
|
|
2898
|
+
return {
|
|
2899
|
+
context: {
|
|
2900
|
+
hidden: this.hasRowFilter()
|
|
2901
|
+
}
|
|
2902
|
+
};
|
|
2903
|
+
},
|
|
2904
|
+
ptmFilterMenuParams: function ptmFilterMenuParams() {
|
|
2905
|
+
return {
|
|
2906
|
+
context: {
|
|
2907
|
+
overlayVisible: this.overlayVisible,
|
|
2908
|
+
active: this.hasFilter()
|
|
2909
|
+
}
|
|
2910
|
+
};
|
|
2834
2911
|
}
|
|
2835
2912
|
},
|
|
2836
2913
|
components: {
|
|
@@ -2885,14 +2962,14 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2885
2962
|
onKeydown: _cache[1] || (_cache[1] = function ($event) {
|
|
2886
2963
|
return $options.onToggleButtonKeyDown($event);
|
|
2887
2964
|
})
|
|
2888
|
-
}, $options.getColumnPT('filterMenuButton')), [(openBlock(), createBlock(resolveDynamicComponent($props.filterIconTemplate || 'FilterIcon')))], 16, _hoisted_1$2)) : createCommentVNode("", true), $props.showClearButton && $props.display === 'row' ? (openBlock(), createElementBlock("button", mergeProps({
|
|
2965
|
+
}, $options.getColumnPT('filterMenuButton', $options.ptmFilterMenuParams)), [(openBlock(), createBlock(resolveDynamicComponent($props.filterIconTemplate || 'FilterIcon'), normalizeProps(guardReactiveProps($options.getColumnPT('filterMenuIcon'))), null, 16))], 16, _hoisted_1$2)) : createCommentVNode("", true), $props.showClearButton && $props.display === 'row' ? (openBlock(), createElementBlock("button", mergeProps({
|
|
2889
2966
|
key: 2,
|
|
2890
2967
|
"class": _ctx.cx('headerFilterClearButton'),
|
|
2891
2968
|
type: "button",
|
|
2892
2969
|
onClick: _cache[2] || (_cache[2] = function ($event) {
|
|
2893
2970
|
return $options.clearFilter();
|
|
2894
2971
|
})
|
|
2895
|
-
}, $options.getColumnPT('headerFilterClearButton')), [(openBlock(), createBlock(resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon'), normalizeProps(guardReactiveProps($options.getColumnPT('filterClearIcon'))), null, 16))], 16)) : createCommentVNode("", true), createVNode(_component_Portal, null, {
|
|
2972
|
+
}, $options.getColumnPT('headerFilterClearButton', $options.ptmHeaderFilterClearParams)), [(openBlock(), createBlock(resolveDynamicComponent($props.filterClearIconTemplate || 'FilterSlashIcon'), normalizeProps(guardReactiveProps($options.getColumnPT('filterClearIcon'))), null, 16))], 16)) : createCommentVNode("", true), createVNode(_component_Portal, null, {
|
|
2896
2973
|
"default": withCtx(function () {
|
|
2897
2974
|
return [createVNode(Transition, {
|
|
2898
2975
|
name: "p-connected-overlay",
|
|
@@ -2939,7 +3016,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2939
3016
|
return $options.onRowMatchModeChange(matchMode.value);
|
|
2940
3017
|
}, ["prevent"]), ["enter"])],
|
|
2941
3018
|
tabindex: i === 0 ? '0' : null
|
|
2942
|
-
}, $options.getColumnPT('filterRowItem')), toDisplayString(matchMode.label), 17, _hoisted_3);
|
|
3019
|
+
}, $options.getColumnPT('filterRowItem', $options.ptmFilterRowItemOptions(matchMode))), toDisplayString(matchMode.label), 17, _hoisted_3);
|
|
2943
3020
|
}), 128)), createElementVNode("li", mergeProps({
|
|
2944
3021
|
"class": _ctx.cx('filterSeparator')
|
|
2945
3022
|
}, $options.getColumnPT('filterSeparator')), null, 16), createElementVNode("li", mergeProps({
|
|
@@ -3004,6 +3081,9 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3004
3081
|
},
|
|
3005
3082
|
label: $options.removeRuleButtonLabel,
|
|
3006
3083
|
unstyled: _ctx.unstyled,
|
|
3084
|
+
text: "",
|
|
3085
|
+
severity: "danger",
|
|
3086
|
+
size: "small",
|
|
3007
3087
|
pt: $options.getColumnPT('filterRemoveButton'),
|
|
3008
3088
|
"data-pc-section": "filterremovebutton"
|
|
3009
3089
|
}, {
|
|
@@ -3026,6 +3106,9 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3026
3106
|
return $options.addConstraint();
|
|
3027
3107
|
}),
|
|
3028
3108
|
unstyled: _ctx.unstyled,
|
|
3109
|
+
text: "",
|
|
3110
|
+
severity: "info",
|
|
3111
|
+
size: "small",
|
|
3029
3112
|
pt: $options.getColumnPT('filterAddRuleButton'),
|
|
3030
3113
|
"data-pc-section": "filteraddrulebutton"
|
|
3031
3114
|
}, {
|
|
@@ -3044,6 +3127,8 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3044
3127
|
label: $options.clearButtonLabel,
|
|
3045
3128
|
onClick: $options.clearFilter,
|
|
3046
3129
|
unstyled: _ctx.unstyled,
|
|
3130
|
+
size: "small",
|
|
3131
|
+
outlined: "",
|
|
3047
3132
|
pt: $options.getColumnPT('filterClearButton'),
|
|
3048
3133
|
"data-pc-section": "filterclearbutton"
|
|
3049
3134
|
}, null, 8, ["class", "label", "onClick", "unstyled", "pt"])) : (openBlock(), createBlock(resolveDynamicComponent($props.filterClearTemplate), {
|
|
@@ -3062,6 +3147,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3062
3147
|
return $options.applyFilter();
|
|
3063
3148
|
}),
|
|
3064
3149
|
unstyled: _ctx.unstyled,
|
|
3150
|
+
size: "small",
|
|
3065
3151
|
pt: $options.getColumnPT('filterApplyButton'),
|
|
3066
3152
|
"data-pc-section": "filterapplybutton"
|
|
3067
3153
|
}, null, 8, ["class", "label", "unstyled", "pt"])) : (openBlock(), createBlock(resolveDynamicComponent($props.filterApplyTemplate), {
|
|
@@ -3107,7 +3193,7 @@ var script$3 = {
|
|
|
3107
3193
|
},
|
|
3108
3194
|
methods: {
|
|
3109
3195
|
getColumnPT: function getColumnPT(key) {
|
|
3110
|
-
|
|
3196
|
+
var columnMetaData = {
|
|
3111
3197
|
props: this.column.props,
|
|
3112
3198
|
parent: {
|
|
3113
3199
|
props: this.$props,
|
|
@@ -3118,7 +3204,10 @@ var script$3 = {
|
|
|
3118
3204
|
focused: this.focused,
|
|
3119
3205
|
disabled: this.disabled
|
|
3120
3206
|
}
|
|
3121
|
-
}
|
|
3207
|
+
};
|
|
3208
|
+
return mergeProps(this.ptm("column.".concat(key), {
|
|
3209
|
+
column: columnMetaData
|
|
3210
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
3122
3211
|
},
|
|
3123
3212
|
getColumnProp: function getColumnProp() {
|
|
3124
3213
|
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
@@ -3291,6 +3380,7 @@ var script$2 = {
|
|
|
3291
3380
|
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
3292
3381
|
},
|
|
3293
3382
|
getColumnPT: function getColumnPT(key) {
|
|
3383
|
+
var _this$$parentInstance, _this$$parentInstance2;
|
|
3294
3384
|
var columnMetaData = {
|
|
3295
3385
|
props: this.column.props,
|
|
3296
3386
|
parent: {
|
|
@@ -3298,7 +3388,11 @@ var script$2 = {
|
|
|
3298
3388
|
state: this.$data
|
|
3299
3389
|
},
|
|
3300
3390
|
context: {
|
|
3301
|
-
index: this.index
|
|
3391
|
+
index: this.index,
|
|
3392
|
+
sorted: this.isColumnSorted(),
|
|
3393
|
+
resizable: this.resizableColumns,
|
|
3394
|
+
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,
|
|
3395
|
+
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
|
|
3302
3396
|
}
|
|
3303
3397
|
};
|
|
3304
3398
|
return mergeProps(this.ptm("column.".concat(key), {
|
|
@@ -3506,12 +3600,12 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3506
3600
|
"class": _ctx.cx('headerTitle')
|
|
3507
3601
|
}, $options.getColumnPT('headerTitle')), toDisplayString($options.columnProp('header')), 17)) : createCommentVNode("", true), $options.columnProp('sortable') ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({
|
|
3508
3602
|
key: 2
|
|
3509
|
-
}, $options.getColumnPT('sort'))), [(openBlock(), createBlock(resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), {
|
|
3603
|
+
}, $options.getColumnPT('sort'))), [(openBlock(), createBlock(resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), mergeProps({
|
|
3510
3604
|
sorted: $options.sortState.sorted,
|
|
3511
3605
|
sortOrder: $options.sortState.sortOrder,
|
|
3512
3606
|
"data-pc-section": "sorticon",
|
|
3513
|
-
"class":
|
|
3514
|
-
}, null,
|
|
3607
|
+
"class": _ctx.cx('sortIcon')
|
|
3608
|
+
}, $options.getColumnPT('sorticon')), null, 16, ["sorted", "sortOrder", "class"]))], 16)) : createCommentVNode("", true), $options.isMultiSorted() ? (openBlock(), createElementBlock("span", mergeProps({
|
|
3515
3609
|
key: 3,
|
|
3516
3610
|
"class": _ctx.cx('sortBadge')
|
|
3517
3611
|
}, $options.getColumnPT('sortBadge')), toDisplayString($options.getBadgeValue()), 17)) : createCommentVNode("", true), $options.columnProp('selectionMode') === 'multiple' && $props.filterDisplay !== 'row' ? (openBlock(), createBlock(_component_DTHeaderCheckbox, {
|
|
@@ -3669,6 +3763,7 @@ var script$1 = {
|
|
|
3669
3763
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
3670
3764
|
},
|
|
3671
3765
|
getColumnGroupPT: function getColumnGroupPT(key) {
|
|
3766
|
+
var _this$$parentInstance;
|
|
3672
3767
|
var columnGroupMetaData = {
|
|
3673
3768
|
props: this.getColumnGroupProps(),
|
|
3674
3769
|
parent: {
|
|
@@ -3676,7 +3771,8 @@ var script$1 = {
|
|
|
3676
3771
|
state: this.$data
|
|
3677
3772
|
},
|
|
3678
3773
|
context: {
|
|
3679
|
-
type: 'header'
|
|
3774
|
+
type: 'header',
|
|
3775
|
+
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
|
|
3680
3776
|
}
|
|
3681
3777
|
};
|
|
3682
3778
|
return mergeProps(this.ptm("columnGroup.".concat(key), {
|
|
@@ -3763,6 +3859,16 @@ var script$1 = {
|
|
|
3763
3859
|
}
|
|
3764
3860
|
}
|
|
3765
3861
|
},
|
|
3862
|
+
computed: {
|
|
3863
|
+
ptmTHeadOptions: function ptmTHeadOptions() {
|
|
3864
|
+
var _this$$parentInstance2;
|
|
3865
|
+
return {
|
|
3866
|
+
context: {
|
|
3867
|
+
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
|
|
3868
|
+
}
|
|
3869
|
+
};
|
|
3870
|
+
}
|
|
3871
|
+
},
|
|
3766
3872
|
components: {
|
|
3767
3873
|
DTHeaderCell: script$2,
|
|
3768
3874
|
DTHeaderCheckbox: script$3,
|
|
@@ -3784,7 +3890,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3784
3890
|
"class": _ctx.cx('thead'),
|
|
3785
3891
|
style: _ctx.sx('thead'),
|
|
3786
3892
|
role: "rowgroup"
|
|
3787
|
-
}, $props.columnGroup ? _objectSpread$2(_objectSpread$2({}, _ctx.ptm('thead')), $options.getColumnGroupPT('root')) : _ctx.ptm('thead'), {
|
|
3893
|
+
}, $props.columnGroup ? _objectSpread$2(_objectSpread$2({}, _ctx.ptm('thead', $options.ptmTHeadOptions)), $options.getColumnGroupPT('root')) : _ctx.ptm('thead', $options.ptmTHeadOptions), {
|
|
3788
3894
|
"data-pc-section": "thead"
|
|
3789
3895
|
}), [!$props.columnGroup ? (openBlock(), createElementBlock(Fragment, {
|
|
3790
3896
|
key: 0
|