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.
Files changed (152) hide show
  1. package/basecomponent/BaseComponent.vue +1 -1
  2. package/basecomponent/basecomponent.cjs.js +1 -1
  3. package/basecomponent/basecomponent.cjs.min.js +1 -1
  4. package/basecomponent/basecomponent.esm.js +1 -1
  5. package/basecomponent/basecomponent.esm.min.js +1 -1
  6. package/basecomponent/basecomponent.js +1 -1
  7. package/basecomponent/basecomponent.min.js +1 -1
  8. package/basedirective/basedirective.cjs.js +1 -1
  9. package/basedirective/basedirective.cjs.min.js +1 -1
  10. package/basedirective/basedirective.esm.js +1 -1
  11. package/basedirective/basedirective.esm.min.js +1 -1
  12. package/basedirective/basedirective.js +1 -1
  13. package/basedirective/basedirective.min.js +1 -1
  14. package/column/Column.d.ts +48 -0
  15. package/columngroup/ColumnGroup.d.ts +5 -0
  16. package/core/core.js +19 -13
  17. package/core/core.min.js +5 -5
  18. package/datatable/BaseDataTable.vue +7 -1
  19. package/datatable/BodyCell.vue +5 -3
  20. package/datatable/ColumnFilter.vue +43 -8
  21. package/datatable/DataTable.d.ts +30 -0
  22. package/datatable/FooterCell.vue +3 -1
  23. package/datatable/HeaderCell.vue +6 -2
  24. package/datatable/HeaderCheckbox.vue +5 -2
  25. package/datatable/RowCheckbox.vue +5 -2
  26. package/datatable/RowRadioButton.vue +5 -2
  27. package/datatable/TableBody.vue +33 -13
  28. package/datatable/TableFooter.vue +10 -2
  29. package/datatable/TableHeader.vue +12 -2
  30. package/datatable/datatable.cjs.js +149 -43
  31. package/datatable/datatable.cjs.min.js +1 -1
  32. package/datatable/datatable.esm.js +149 -43
  33. package/datatable/datatable.esm.min.js +1 -1
  34. package/datatable/datatable.js +150 -44
  35. package/datatable/datatable.min.js +1 -1
  36. package/dialog/Dialog.vue +13 -1
  37. package/dialog/dialog.cjs.js +6 -2
  38. package/dialog/dialog.cjs.min.js +1 -1
  39. package/dialog/dialog.esm.js +6 -2
  40. package/dialog/dialog.esm.min.js +1 -1
  41. package/dialog/dialog.js +6 -2
  42. package/dialog/dialog.min.js +1 -1
  43. package/dock/Dock.d.ts +4 -0
  44. package/dock/DockSub.vue +9 -8
  45. package/dock/dock.cjs.js +9 -8
  46. package/dock/dock.cjs.min.js +1 -1
  47. package/dock/dock.esm.js +9 -8
  48. package/dock/dock.esm.min.js +1 -1
  49. package/dock/dock.js +9 -8
  50. package/dock/dock.min.js +1 -1
  51. package/galleria/Galleria.d.ts +4 -0
  52. package/galleria/GalleriaContent.vue +16 -6
  53. package/galleria/GalleriaItem.vue +2 -1
  54. package/galleria/GalleriaThumbnails.vue +1 -0
  55. package/galleria/galleria.cjs.js +34 -17
  56. package/galleria/galleria.cjs.min.js +1 -1
  57. package/galleria/galleria.esm.js +35 -18
  58. package/galleria/galleria.esm.min.js +1 -1
  59. package/galleria/galleria.js +34 -17
  60. package/galleria/galleria.min.js +1 -1
  61. package/message/BaseMessage.vue +2 -2
  62. package/message/Message.d.ts +10 -0
  63. package/message/Message.vue +3 -3
  64. package/message/message.cjs.js +8 -8
  65. package/message/message.cjs.min.js +1 -1
  66. package/message/message.esm.js +8 -8
  67. package/message/message.esm.min.js +1 -1
  68. package/message/message.js +8 -8
  69. package/message/message.min.js +1 -1
  70. package/multiselect/MultiSelect.vue +2 -1
  71. package/multiselect/multiselect.cjs.js +4 -4
  72. package/multiselect/multiselect.cjs.min.js +1 -1
  73. package/multiselect/multiselect.esm.js +5 -5
  74. package/multiselect/multiselect.esm.min.js +1 -1
  75. package/multiselect/multiselect.js +4 -4
  76. package/multiselect/multiselect.min.js +1 -1
  77. package/overlaypanel/OverlayPanel.vue +4 -2
  78. package/overlaypanel/overlaypanel.cjs.js +4 -2
  79. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  80. package/overlaypanel/overlaypanel.esm.js +4 -2
  81. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  82. package/overlaypanel/overlaypanel.js +4 -2
  83. package/overlaypanel/overlaypanel.min.js +1 -1
  84. package/package.json +1 -1
  85. package/scrollpanel/ScrollPanel.vue +2 -0
  86. package/scrollpanel/scrollpanel.cjs.js +6 -2
  87. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  88. package/scrollpanel/scrollpanel.esm.js +6 -2
  89. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  90. package/scrollpanel/scrollpanel.js +6 -2
  91. package/scrollpanel/scrollpanel.min.js +1 -1
  92. package/sidebar/Sidebar.vue +1 -1
  93. package/sidebar/sidebar.cjs.js +3 -1
  94. package/sidebar/sidebar.cjs.min.js +1 -1
  95. package/sidebar/sidebar.esm.js +3 -1
  96. package/sidebar/sidebar.esm.min.js +1 -1
  97. package/sidebar/sidebar.js +3 -1
  98. package/sidebar/sidebar.min.js +1 -1
  99. package/splitbutton/SplitButton.vue +2 -1
  100. package/splitbutton/splitbutton.cjs.js +4 -2
  101. package/splitbutton/splitbutton.cjs.min.js +1 -1
  102. package/splitbutton/splitbutton.esm.js +4 -2
  103. package/splitbutton/splitbutton.esm.min.js +1 -1
  104. package/splitbutton/splitbutton.js +4 -2
  105. package/splitbutton/splitbutton.min.js +1 -1
  106. package/tabmenu/TabMenu.vue +71 -72
  107. package/tabmenu/tabmenu.cjs.js +67 -75
  108. package/tabmenu/tabmenu.cjs.min.js +1 -1
  109. package/tabmenu/tabmenu.esm.js +67 -75
  110. package/tabmenu/tabmenu.esm.min.js +1 -1
  111. package/tabmenu/tabmenu.js +67 -75
  112. package/tabmenu/tabmenu.min.js +1 -1
  113. package/tabview/TabView.vue +2 -0
  114. package/tabview/tabview.cjs.js +6 -2
  115. package/tabview/tabview.cjs.min.js +1 -1
  116. package/tabview/tabview.esm.js +6 -2
  117. package/tabview/tabview.esm.min.js +1 -1
  118. package/tabview/tabview.js +6 -2
  119. package/tabview/tabview.min.js +1 -1
  120. package/toast/BaseToast.vue +2 -2
  121. package/toast/Toast.d.ts +10 -0
  122. package/toast/ToastMessage.vue +3 -2
  123. package/toast/toast.cjs.js +7 -6
  124. package/toast/toast.cjs.min.js +1 -1
  125. package/toast/toast.esm.js +7 -6
  126. package/toast/toast.esm.min.js +1 -1
  127. package/toast/toast.js +7 -6
  128. package/toast/toast.min.js +1 -1
  129. package/tree/Tree.d.ts +9 -0
  130. package/tree/TreeNode.vue +3 -1
  131. package/tree/tree.cjs.js +3 -1
  132. package/tree/tree.cjs.min.js +1 -1
  133. package/tree/tree.esm.js +3 -1
  134. package/tree/tree.esm.min.js +1 -1
  135. package/tree/tree.js +3 -1
  136. package/tree/tree.min.js +1 -1
  137. package/treetable/BaseTreeTable.vue +7 -1
  138. package/treetable/BodyCell.vue +14 -4
  139. package/treetable/FooterCell.vue +3 -1
  140. package/treetable/HeaderCell.vue +9 -2
  141. package/treetable/TreeTable.d.ts +30 -8
  142. package/treetable/TreeTable.vue +9 -2
  143. package/treetable/TreeTableRow.vue +10 -1
  144. package/treetable/treetable.cjs.js +58 -13
  145. package/treetable/treetable.cjs.min.js +1 -1
  146. package/treetable/treetable.esm.js +59 -14
  147. package/treetable/treetable.esm.min.js +1 -1
  148. package/treetable/treetable.js +58 -13
  149. package/treetable/treetable.min.js +1 -1
  150. package/vetur-attributes.json +8 -0
  151. package/vetur-tags.json +2 -0
  152. package/web-types.json +21 -1
@@ -11,13 +11,13 @@ var BaseComponent = require('primevue/basecomponent');
11
11
  var usestyle = require('primevue/usestyle');
12
12
  var ChevronDownIcon = require('primevue/icons/chevrondown');
13
13
  var ChevronRightIcon = require('primevue/icons/chevronright');
14
+ var vue = require('vue');
14
15
  var BarsIcon = require('primevue/icons/bars');
15
16
  var CheckIcon = require('primevue/icons/check');
16
17
  var PencilIcon = require('primevue/icons/pencil');
17
18
  var TimesIcon = require('primevue/icons/times');
18
19
  var OverlayEventBus = require('primevue/overlayeventbus');
19
20
  var Ripple = require('primevue/ripple');
20
- var vue = require('vue');
21
21
  var Button = require('primevue/button');
22
22
  var Dropdown = require('primevue/dropdown');
23
23
  var FocusTrap = require('primevue/focustrap');
@@ -85,7 +85,9 @@ var classes = {
85
85
  'p-datatable-striped': props.stripedRows,
86
86
  'p-datatable-gridlines': props.showGridlines,
87
87
  'p-datatable-grouped-header': instance.headerColumnGroup != null,
88
- 'p-datatable-grouped-footer': instance.footerColumnGroup != null
88
+ 'p-datatable-grouped-footer': instance.footerColumnGroup != null,
89
+ 'p-datatable-sm': props.size === 'small',
90
+ 'p-datatable-lg': props.size === 'large'
89
91
  }];
90
92
  },
91
93
  loadingOverlay: 'p-datatable-loading-overlay p-component-overlay',
@@ -544,6 +546,10 @@ var script$b = {
544
546
  type: Boolean,
545
547
  "default": false
546
548
  },
549
+ size: {
550
+ type: String,
551
+ "default": null
552
+ },
547
553
  tableStyle: {
548
554
  type: null,
549
555
  "default": null
@@ -598,7 +604,7 @@ var script$a = {
598
604
  },
599
605
  methods: {
600
606
  getColumnPT: function getColumnPT(key) {
601
- return this.ptmo(this.getColumnProp(), key, {
607
+ var columnMetaData = {
602
608
  props: this.column.props,
603
609
  parent: {
604
610
  props: this.$props,
@@ -610,7 +616,10 @@ var script$a = {
610
616
  focused: this.focused,
611
617
  disabled: this.$attrs.disabled
612
618
  }
613
- });
619
+ };
620
+ return vue.mergeProps(this.ptm("column.".concat(key), {
621
+ column: columnMetaData
622
+ }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
614
623
  },
615
624
  getColumnProp: function getColumnProp() {
616
625
  return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
@@ -717,7 +726,7 @@ var script$9 = {
717
726
  },
718
727
  methods: {
719
728
  getColumnPT: function getColumnPT(key) {
720
- return this.ptmo(this.getColumnProp(), key, {
729
+ var columnMetaData = {
721
730
  props: this.column.props,
722
731
  parent: {
723
732
  props: this.$props,
@@ -729,7 +738,10 @@ var script$9 = {
729
738
  focused: this.focused,
730
739
  disabled: this.$attrs.disabled
731
740
  }
732
- });
741
+ };
742
+ return vue.mergeProps(this.ptm("column.".concat(key), {
743
+ column: columnMetaData
744
+ }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
733
745
  },
734
746
  getColumnProp: function getColumnProp() {
735
747
  return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
@@ -912,6 +924,7 @@ var script$8 = {
912
924
  return utils.ObjectUtils.getVNodeProp(this.column, prop);
913
925
  },
914
926
  getColumnPT: function getColumnPT(key) {
927
+ var _this$$parentInstance, _this$$parentInstance2;
915
928
  var columnMetaData = {
916
929
  props: this.column.props,
917
930
  parent: {
@@ -919,7 +932,9 @@ var script$8 = {
919
932
  state: this.$data
920
933
  },
921
934
  context: {
922
- index: this.index
935
+ index: this.index,
936
+ 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,
937
+ 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
923
938
  }
924
939
  };
925
940
  return vue.mergeProps(this.ptm("column.".concat(key), {
@@ -1357,14 +1372,13 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
1357
1372
  }, [$props.column.children && $props.column.children.rowreordericon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.rowreordericon), {
1358
1373
  key: 0,
1359
1374
  "class": vue.normalizeClass(_ctx.cx('rowReorderIcon'))
1360
- }, null, 8, ["class"])) : $options.columnProp('rowReorderIcon') ? (vue.openBlock(), vue.createElementBlock("i", {
1375
+ }, null, 8, ["class"])) : $options.columnProp('rowReorderIcon') ? (vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
1361
1376
  key: 1,
1362
- "class": vue.normalizeClass([_ctx.cx('rowReorderIcon'), $options.columnProp('rowReorderIcon')])
1363
- }, null, 2)) : (vue.openBlock(), vue.createBlock(_component_BarsIcon, {
1377
+ "class": [_ctx.cx('rowReorderIcon'), $options.columnProp('rowReorderIcon')]
1378
+ }, $options.getColumnPT('rowReorderIcon')), null, 16)) : (vue.openBlock(), vue.createBlock(_component_BarsIcon, vue.mergeProps({
1364
1379
  key: 2,
1365
- "class": vue.normalizeClass(_ctx.cx('rowReorderIcon')),
1366
- "data-pc-section": "rowreordericon"
1367
- }, null, 8, ["class"]))], 64)) : $options.columnProp('expander') ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1380
+ "class": _ctx.cx('rowReorderIcon')
1381
+ }, $options.getColumnPT('rowReorderIcon')), null, 16, ["class"]))], 64)) : $options.columnProp('expander') ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1368
1382
  key: 6,
1369
1383
  "class": _ctx.cx('rowToggler'),
1370
1384
  type: "button",
@@ -1588,18 +1602,32 @@ var script$7 = {
1588
1602
  columnProp: function columnProp(col, prop) {
1589
1603
  return utils.ObjectUtils.getVNodeProp(col, prop);
1590
1604
  },
1591
- getColumnPT: function getColumnPT(column, key) {
1592
- return this.ptmo(this.getColumnProp(column), key, {
1593
- props: column.props,
1605
+ getColumnPT: function getColumnPT(currentColumn, key) {
1606
+ var columnMetaData = {
1607
+ props: currentColumn.props,
1594
1608
  parent: {
1595
1609
  props: this.$props,
1596
1610
  state: this.$data
1597
1611
  }
1598
- });
1612
+ };
1613
+ return vue.mergeProps(this.ptm("column.".concat(key), {
1614
+ column: columnMetaData
1615
+ }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(currentColumn), key, columnMetaData));
1599
1616
  },
1600
1617
  getColumnProp: function getColumnProp(column) {
1601
1618
  return column.props && column.props.pt ? column.props.pt : undefined; //@todo
1602
1619
  },
1620
+ getBodyRowPTOptions: function getBodyRowPTOptions(key, rowdata, index) {
1621
+ var _this$$parentInstance, _this$$parentInstance2, _this$$parentInstance3;
1622
+ return this.ptm(key, {
1623
+ context: {
1624
+ index: index,
1625
+ 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),
1626
+ selected: this.isSelected(rowdata),
1627
+ 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
1628
+ }
1629
+ });
1630
+ },
1603
1631
  shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader(value, rowData, i) {
1604
1632
  var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
1605
1633
  var prevRowData = value[i - 1];
@@ -1889,6 +1917,14 @@ var script$7 = {
1889
1917
  },
1890
1918
  nameAttributeSelector: function nameAttributeSelector() {
1891
1919
  return utils.UniqueComponentId();
1920
+ },
1921
+ ptmTBodyOptions: function ptmTBodyOptions() {
1922
+ var _this$$parentInstance4;
1923
+ return {
1924
+ context: {
1925
+ 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
1926
+ }
1927
+ };
1892
1928
  }
1893
1929
  },
1894
1930
  components: {
@@ -1920,7 +1956,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1920
1956
  "class": _ctx.cx('tbody'),
1921
1957
  role: "rowgroup",
1922
1958
  style: $options.bodyStyle
1923
- }, _ctx.ptm('tbody')), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
1959
+ }, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
1924
1960
  key: 0
1925
1961
  }, vue.renderList($props.value, function (rowData, index) {
1926
1962
  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({
@@ -1930,14 +1966,16 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1930
1966
  role: "row"
1931
1967
  }, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
1932
1968
  colspan: $options.columnsLength - 1
1933
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1969
+ }, _objectSpread$8(_objectSpread$8({}, _ctx.ptm('column.root')), _ctx.ptm('column.bodyCell')), {
1970
+ "data-pc-section": "bodycell"
1971
+ }), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1934
1972
  key: 0,
1935
1973
  "class": _ctx.cx('rowGroupToggler'),
1936
1974
  onClick: function onClick($event) {
1937
1975
  return $options.onRowGroupToggle($event, rowData);
1938
1976
  },
1939
1977
  type: "button"
1940
- }, $options.getColumnPT('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1978
+ }, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
1941
1979
  key: 0,
1942
1980
  expanded: $options.isRowGroupExpanded(rowData)
1943
1981
  }, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
@@ -1945,16 +1983,16 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1945
1983
  }, [$options.isRowGroupExpanded(rowData) && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1946
1984
  key: 0,
1947
1985
  "class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
1948
- }, $options.getColumnPT('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
1986
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded(rowData) && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
1949
1987
  key: 1,
1950
1988
  "class": _ctx.cx('rowGroupTogglerIcon')
1951
- }, $options.getColumnPT('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1989
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded(rowData) && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
1952
1990
  key: 2,
1953
1991
  "class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
1954
- }, $options.getColumnPT('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
1992
+ }, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded(rowData) && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
1955
1993
  key: 3,
1956
1994
  "class": _ctx.cx('rowGroupTogglerIcon')
1957
- }, $options.getColumnPT('rowGroupTogglerIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 64))], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
1995
+ }, _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']), {
1958
1996
  data: rowData,
1959
1997
  index: $options.getRowIndex(index)
1960
1998
  }, 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({
@@ -1997,7 +2035,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
1997
2035
  onDrop: _cache[13] || (_cache[13] = function ($event) {
1998
2036
  return $options.onRowDrop($event);
1999
2037
  })
2000
- }, _ctx.ptm('bodyRow'), {
2038
+ }, $options.getBodyRowPTOptions('bodyRow', rowData, index), {
2001
2039
  "data-p-selectable-row": $props.selectionMode ? true : false,
2002
2040
  "data-p-highlight": $props.selection && $options.isSelected(rowData),
2003
2041
  "data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu(rowData)
@@ -2068,7 +2106,9 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
2068
2106
  role: "row"
2069
2107
  }, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
2070
2108
  colspan: $options.columnsLength - 1
2071
- }, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
2109
+ }, _objectSpread$8(_objectSpread$8({}, _ctx.ptm('column.root')), _ctx.ptm('column.footerCell')), {
2110
+ "data-pc-section": "footercell"
2111
+ }), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
2072
2112
  data: rowData,
2073
2113
  index: $options.getRowIndex(index)
2074
2114
  }, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : vue.createCommentVNode("", true)], 64);
@@ -2119,6 +2159,7 @@ var script$6 = {
2119
2159
  return utils.ObjectUtils.getVNodeProp(this.column, prop);
2120
2160
  },
2121
2161
  getColumnPT: function getColumnPT(key) {
2162
+ var _this$$parentInstance, _this$$parentInstance2;
2122
2163
  var columnMetaData = {
2123
2164
  props: this.column.props,
2124
2165
  parent: {
@@ -2126,7 +2167,9 @@ var script$6 = {
2126
2167
  state: this.$data
2127
2168
  },
2128
2169
  context: {
2129
- index: this.index
2170
+ index: this.index,
2171
+ 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,
2172
+ 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
2130
2173
  }
2131
2174
  };
2132
2175
  return vue.mergeProps(this.ptm("column.".concat(key), {
@@ -2224,7 +2267,8 @@ var script$5 = {
2224
2267
  state: this.$data
2225
2268
  },
2226
2269
  context: {
2227
- type: 'header'
2270
+ type: 'footer',
2271
+ scrollable: this.ptmTFootOptions.context.scrollable
2228
2272
  }
2229
2273
  };
2230
2274
  return vue.mergeProps(this.ptm("columnGroup.".concat(key), {
@@ -2308,6 +2352,14 @@ var script$5 = {
2308
2352
  }
2309
2353
  }
2310
2354
  return hasFooter;
2355
+ },
2356
+ ptmTFootOptions: function ptmTFootOptions() {
2357
+ var _this$$parentInstance;
2358
+ return {
2359
+ context: {
2360
+ 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
2361
+ }
2362
+ };
2311
2363
  }
2312
2364
  },
2313
2365
  components: {
@@ -2328,7 +2380,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2328
2380
  "class": _ctx.cx('tfoot'),
2329
2381
  style: _ctx.sx('tfoot'),
2330
2382
  role: "rowgroup"
2331
- }, $props.columnGroup ? _objectSpread$6(_objectSpread$6({}, _ctx.ptm('tfoot')), $options.getColumnGroupPT('root')) : _ctx.ptm('tfoot'), {
2383
+ }, $props.columnGroup ? _objectSpread$6(_objectSpread$6({}, _ctx.ptm('tfoot', $options.ptmTFootOptions)), $options.getColumnGroupPT('root')) : _ctx.ptm('tfoot', $options.ptmTFootOptions), {
2332
2384
  "data-pc-section": "tfoot"
2333
2385
  }), [!$props.columnGroup ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
2334
2386
  key: 0,
@@ -2512,18 +2564,28 @@ var script$4 = {
2512
2564
  }
2513
2565
  },
2514
2566
  methods: {
2515
- getColumnPT: function getColumnPT(key) {
2516
- return this.ptmo(this.getColumnProp(), key, {
2567
+ getColumnPT: function getColumnPT(key, params) {
2568
+ var columnMetaData = _objectSpread$5({
2517
2569
  props: this.column.props,
2518
2570
  parent: {
2519
2571
  props: this.$props,
2520
2572
  state: this.$data
2521
2573
  }
2522
- });
2574
+ }, params);
2575
+ return vue.mergeProps(this.ptm("column.".concat(key), {
2576
+ column: columnMetaData
2577
+ }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
2523
2578
  },
2524
2579
  getColumnProp: function getColumnProp() {
2525
2580
  return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
2526
2581
  },
2582
+ ptmFilterRowItemOptions: function ptmFilterRowItemOptions(matchMode) {
2583
+ return {
2584
+ context: {
2585
+ highlighted: matchMode && this.isRowMatchModeSelected(matchMode.value)
2586
+ }
2587
+ };
2588
+ },
2527
2589
  clearFilter: function clearFilter() {
2528
2590
  var _filters = _objectSpread$5({}, this.filters);
2529
2591
  if (_filters[this.field].operator) {
@@ -2861,6 +2923,21 @@ var script$4 = {
2861
2923
  },
2862
2924
  filterConstraintAriaLabel: function filterConstraintAriaLabel() {
2863
2925
  return this.$primevue.config.locale ? this.$primevue.config.locale.filterConstraint : undefined;
2926
+ },
2927
+ ptmHeaderFilterClearParams: function ptmHeaderFilterClearParams() {
2928
+ return {
2929
+ context: {
2930
+ hidden: this.hasRowFilter()
2931
+ }
2932
+ };
2933
+ },
2934
+ ptmFilterMenuParams: function ptmFilterMenuParams() {
2935
+ return {
2936
+ context: {
2937
+ overlayVisible: this.overlayVisible,
2938
+ active: this.hasFilter()
2939
+ }
2940
+ };
2864
2941
  }
2865
2942
  },
2866
2943
  components: {
@@ -2915,14 +2992,14 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2915
2992
  onKeydown: _cache[1] || (_cache[1] = function ($event) {
2916
2993
  return $options.onToggleButtonKeyDown($event);
2917
2994
  })
2918
- }, $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({
2995
+ }, $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({
2919
2996
  key: 2,
2920
2997
  "class": _ctx.cx('headerFilterClearButton'),
2921
2998
  type: "button",
2922
2999
  onClick: _cache[2] || (_cache[2] = function ($event) {
2923
3000
  return $options.clearFilter();
2924
3001
  })
2925
- }, $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, {
3002
+ }, $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, {
2926
3003
  "default": vue.withCtx(function () {
2927
3004
  return [vue.createVNode(vue.Transition, {
2928
3005
  name: "p-connected-overlay",
@@ -2969,7 +3046,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2969
3046
  return $options.onRowMatchModeChange(matchMode.value);
2970
3047
  }, ["prevent"]), ["enter"])],
2971
3048
  tabindex: i === 0 ? '0' : null
2972
- }, $options.getColumnPT('filterRowItem')), vue.toDisplayString(matchMode.label), 17, _hoisted_3);
3049
+ }, $options.getColumnPT('filterRowItem', $options.ptmFilterRowItemOptions(matchMode))), vue.toDisplayString(matchMode.label), 17, _hoisted_3);
2973
3050
  }), 128)), vue.createElementVNode("li", vue.mergeProps({
2974
3051
  "class": _ctx.cx('filterSeparator')
2975
3052
  }, $options.getColumnPT('filterSeparator')), null, 16), vue.createElementVNode("li", vue.mergeProps({
@@ -3034,6 +3111,9 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
3034
3111
  },
3035
3112
  label: $options.removeRuleButtonLabel,
3036
3113
  unstyled: _ctx.unstyled,
3114
+ text: "",
3115
+ severity: "danger",
3116
+ size: "small",
3037
3117
  pt: $options.getColumnPT('filterRemoveButton'),
3038
3118
  "data-pc-section": "filterremovebutton"
3039
3119
  }, {
@@ -3056,6 +3136,9 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
3056
3136
  return $options.addConstraint();
3057
3137
  }),
3058
3138
  unstyled: _ctx.unstyled,
3139
+ text: "",
3140
+ severity: "info",
3141
+ size: "small",
3059
3142
  pt: $options.getColumnPT('filterAddRuleButton'),
3060
3143
  "data-pc-section": "filteraddrulebutton"
3061
3144
  }, {
@@ -3074,6 +3157,8 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
3074
3157
  label: $options.clearButtonLabel,
3075
3158
  onClick: $options.clearFilter,
3076
3159
  unstyled: _ctx.unstyled,
3160
+ size: "small",
3161
+ outlined: "",
3077
3162
  pt: $options.getColumnPT('filterClearButton'),
3078
3163
  "data-pc-section": "filterclearbutton"
3079
3164
  }, null, 8, ["class", "label", "onClick", "unstyled", "pt"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterClearTemplate), {
@@ -3092,6 +3177,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
3092
3177
  return $options.applyFilter();
3093
3178
  }),
3094
3179
  unstyled: _ctx.unstyled,
3180
+ size: "small",
3095
3181
  pt: $options.getColumnPT('filterApplyButton'),
3096
3182
  "data-pc-section": "filterapplybutton"
3097
3183
  }, null, 8, ["class", "label", "unstyled", "pt"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterApplyTemplate), {
@@ -3137,7 +3223,7 @@ var script$3 = {
3137
3223
  },
3138
3224
  methods: {
3139
3225
  getColumnPT: function getColumnPT(key) {
3140
- return this.ptmo(this.getColumnProp(), key, {
3226
+ var columnMetaData = {
3141
3227
  props: this.column.props,
3142
3228
  parent: {
3143
3229
  props: this.$props,
@@ -3148,7 +3234,10 @@ var script$3 = {
3148
3234
  focused: this.focused,
3149
3235
  disabled: this.disabled
3150
3236
  }
3151
- });
3237
+ };
3238
+ return vue.mergeProps(this.ptm("column.".concat(key), {
3239
+ column: columnMetaData
3240
+ }), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.getColumnProp(), key, columnMetaData));
3152
3241
  },
3153
3242
  getColumnProp: function getColumnProp() {
3154
3243
  return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
@@ -3321,6 +3410,7 @@ var script$2 = {
3321
3410
  return utils.ObjectUtils.getVNodeProp(this.column, prop);
3322
3411
  },
3323
3412
  getColumnPT: function getColumnPT(key) {
3413
+ var _this$$parentInstance, _this$$parentInstance2;
3324
3414
  var columnMetaData = {
3325
3415
  props: this.column.props,
3326
3416
  parent: {
@@ -3328,7 +3418,11 @@ var script$2 = {
3328
3418
  state: this.$data
3329
3419
  },
3330
3420
  context: {
3331
- index: this.index
3421
+ index: this.index,
3422
+ sorted: this.isColumnSorted(),
3423
+ resizable: this.resizableColumns,
3424
+ 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,
3425
+ 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
3332
3426
  }
3333
3427
  };
3334
3428
  return vue.mergeProps(this.ptm("column.".concat(key), {
@@ -3536,12 +3630,12 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
3536
3630
  "class": _ctx.cx('headerTitle')
3537
3631
  }, $options.getColumnPT('headerTitle')), vue.toDisplayString($options.columnProp('header')), 17)) : vue.createCommentVNode("", true), $options.columnProp('sortable') ? (vue.openBlock(), vue.createElementBlock("span", vue.normalizeProps(vue.mergeProps({
3538
3632
  key: 2
3539
- }, $options.getColumnPT('sort'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), {
3633
+ }, $options.getColumnPT('sort'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), vue.mergeProps({
3540
3634
  sorted: $options.sortState.sorted,
3541
3635
  sortOrder: $options.sortState.sortOrder,
3542
3636
  "data-pc-section": "sorticon",
3543
- "class": vue.normalizeClass(_ctx.cx('sortIcon'))
3544
- }, null, 8, ["sorted", "sortOrder", "class"]))], 16)) : vue.createCommentVNode("", true), $options.isMultiSorted() ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
3637
+ "class": _ctx.cx('sortIcon')
3638
+ }, $options.getColumnPT('sorticon')), null, 16, ["sorted", "sortOrder", "class"]))], 16)) : vue.createCommentVNode("", true), $options.isMultiSorted() ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
3545
3639
  key: 3,
3546
3640
  "class": _ctx.cx('sortBadge')
3547
3641
  }, $options.getColumnPT('sortBadge')), vue.toDisplayString($options.getBadgeValue()), 17)) : vue.createCommentVNode("", true), $options.columnProp('selectionMode') === 'multiple' && $props.filterDisplay !== 'row' ? (vue.openBlock(), vue.createBlock(_component_DTHeaderCheckbox, {
@@ -3699,6 +3793,7 @@ var script$1 = {
3699
3793
  return utils.ObjectUtils.getVNodeProp(col, prop);
3700
3794
  },
3701
3795
  getColumnGroupPT: function getColumnGroupPT(key) {
3796
+ var _this$$parentInstance;
3702
3797
  var columnGroupMetaData = {
3703
3798
  props: this.getColumnGroupProps(),
3704
3799
  parent: {
@@ -3706,7 +3801,8 @@ var script$1 = {
3706
3801
  state: this.$data
3707
3802
  },
3708
3803
  context: {
3709
- type: 'header'
3804
+ type: 'header',
3805
+ 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
3710
3806
  }
3711
3807
  };
3712
3808
  return vue.mergeProps(this.ptm("columnGroup.".concat(key), {
@@ -3793,6 +3889,16 @@ var script$1 = {
3793
3889
  }
3794
3890
  }
3795
3891
  },
3892
+ computed: {
3893
+ ptmTHeadOptions: function ptmTHeadOptions() {
3894
+ var _this$$parentInstance2;
3895
+ return {
3896
+ context: {
3897
+ 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
3898
+ }
3899
+ };
3900
+ }
3901
+ },
3796
3902
  components: {
3797
3903
  DTHeaderCell: script$2,
3798
3904
  DTHeaderCheckbox: script$3,
@@ -3814,7 +3920,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3814
3920
  "class": _ctx.cx('thead'),
3815
3921
  style: _ctx.sx('thead'),
3816
3922
  role: "rowgroup"
3817
- }, $props.columnGroup ? _objectSpread$2(_objectSpread$2({}, _ctx.ptm('thead')), $options.getColumnGroupPT('root')) : _ctx.ptm('thead'), {
3923
+ }, $props.columnGroup ? _objectSpread$2(_objectSpread$2({}, _ctx.ptm('thead', $options.ptmTHeadOptions)), $options.getColumnGroupPT('root')) : _ctx.ptm('thead', $options.ptmTHeadOptions), {
3818
3924
  "data-pc-section": "thead"
3819
3925
  }), [!$props.columnGroup ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
3820
3926
  key: 0