primevue 3.52.0 → 3.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/README.md +1 -1
  2. package/api/Api.d.ts +58 -6
  3. package/api/api.cjs.js +58 -6
  4. package/api/api.cjs.min.js +1 -1
  5. package/api/api.esm.js +58 -6
  6. package/api/api.esm.min.js +1 -1
  7. package/api/api.js +58 -6
  8. package/api/api.min.js +1 -1
  9. package/autocomplete/AutoComplete.vue +1 -1
  10. package/autocomplete/autocomplete.cjs.js +2 -2
  11. package/autocomplete/autocomplete.cjs.min.js +1 -1
  12. package/autocomplete/autocomplete.esm.js +2 -2
  13. package/autocomplete/autocomplete.esm.min.js +1 -1
  14. package/autocomplete/autocomplete.js +2 -2
  15. package/autocomplete/autocomplete.min.js +1 -1
  16. package/basecomponent/BaseComponent.vue +11 -11
  17. package/basecomponent/basecomponent.cjs.js +20 -20
  18. package/basecomponent/basecomponent.cjs.min.js +1 -1
  19. package/basecomponent/basecomponent.esm.js +20 -20
  20. package/basecomponent/basecomponent.esm.min.js +1 -1
  21. package/basecomponent/basecomponent.js +20 -20
  22. package/basecomponent/basecomponent.min.js +1 -1
  23. package/basedirective/basedirective.cjs.js +5 -5
  24. package/basedirective/basedirective.cjs.min.js +1 -1
  25. package/basedirective/basedirective.esm.js +5 -5
  26. package/basedirective/basedirective.esm.min.js +1 -1
  27. package/basedirective/basedirective.js +5 -5
  28. package/basedirective/basedirective.min.js +1 -1
  29. package/calendar/BaseCalendar.vue +4 -0
  30. package/calendar/Calendar.d.ts +4 -0
  31. package/calendar/Calendar.vue +3 -2
  32. package/calendar/calendar.cjs.js +8 -8
  33. package/calendar/calendar.cjs.min.js +1 -1
  34. package/calendar/calendar.esm.js +8 -8
  35. package/calendar/calendar.esm.min.js +1 -1
  36. package/calendar/calendar.js +8 -8
  37. package/calendar/calendar.min.js +1 -1
  38. package/colorpicker/ColorPicker.vue +0 -23
  39. package/colorpicker/colorpicker.cjs.js +0 -19
  40. package/colorpicker/colorpicker.cjs.min.js +1 -1
  41. package/colorpicker/colorpicker.esm.js +0 -19
  42. package/colorpicker/colorpicker.esm.min.js +1 -1
  43. package/colorpicker/colorpicker.js +0 -19
  44. package/colorpicker/colorpicker.min.js +1 -1
  45. package/column/Column.d.ts +1 -1
  46. package/confirmpopup/ConfirmPopup.vue +6 -1
  47. package/confirmpopup/confirmpopup.cjs.js +5 -1
  48. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  49. package/confirmpopup/confirmpopup.esm.js +5 -1
  50. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  51. package/confirmpopup/confirmpopup.js +5 -1
  52. package/confirmpopup/confirmpopup.min.js +1 -1
  53. package/contextmenu/ContextMenu.vue +3 -1
  54. package/contextmenu/contextmenu.cjs.js +3 -1
  55. package/contextmenu/contextmenu.cjs.min.js +1 -1
  56. package/contextmenu/contextmenu.esm.js +3 -1
  57. package/contextmenu/contextmenu.esm.min.js +1 -1
  58. package/contextmenu/contextmenu.js +3 -1
  59. package/contextmenu/contextmenu.min.js +1 -1
  60. package/core/core.js +137 -55
  61. package/core/core.min.js +11 -9
  62. package/datatable/BodyCell.vue +8 -16
  63. package/datatable/DataTable.d.ts +1 -1
  64. package/datatable/DataTable.vue +3 -1
  65. package/datatable/datatable.cjs.js +10 -15
  66. package/datatable/datatable.cjs.min.js +1 -1
  67. package/datatable/datatable.esm.js +10 -15
  68. package/datatable/datatable.esm.min.js +1 -1
  69. package/datatable/datatable.js +10 -15
  70. package/datatable/datatable.min.js +1 -1
  71. package/dialog/Dialog.vue +5 -1
  72. package/dialog/dialog.cjs.js +5 -1
  73. package/dialog/dialog.cjs.min.js +1 -1
  74. package/dialog/dialog.esm.js +5 -1
  75. package/dialog/dialog.esm.min.js +1 -1
  76. package/dialog/dialog.js +5 -1
  77. package/dialog/dialog.min.js +1 -1
  78. package/dropdown/Dropdown.d.ts +1 -1
  79. package/dropdown/Dropdown.vue +17 -15
  80. package/dropdown/dropdown.cjs.js +15 -15
  81. package/dropdown/dropdown.cjs.min.js +1 -1
  82. package/dropdown/dropdown.esm.js +15 -15
  83. package/dropdown/dropdown.esm.min.js +1 -1
  84. package/dropdown/dropdown.js +15 -15
  85. package/dropdown/dropdown.min.js +1 -1
  86. package/floatlabel/floatlabel.js +1 -1
  87. package/floatlabel/floatlabel.min.js +1 -1
  88. package/inplace/Inplace.vue +2 -2
  89. package/inplace/inplace.cjs.js +3 -3
  90. package/inplace/inplace.cjs.min.js +1 -1
  91. package/inplace/inplace.esm.js +4 -4
  92. package/inplace/inplace.esm.min.js +1 -1
  93. package/inplace/inplace.js +3 -3
  94. package/inplace/inplace.min.js +1 -1
  95. package/inputnumber/InputNumber.vue +7 -2
  96. package/inputnumber/inputnumber.cjs.js +6 -2
  97. package/inputnumber/inputnumber.cjs.min.js +1 -1
  98. package/inputnumber/inputnumber.esm.js +6 -2
  99. package/inputnumber/inputnumber.esm.min.js +1 -1
  100. package/inputnumber/inputnumber.js +6 -2
  101. package/inputnumber/inputnumber.min.js +1 -1
  102. package/inputotp/InputOtp.vue +8 -0
  103. package/inputotp/inputotp.cjs.js +6 -0
  104. package/inputotp/inputotp.cjs.min.js +1 -1
  105. package/inputotp/inputotp.esm.js +6 -0
  106. package/inputotp/inputotp.esm.min.js +1 -1
  107. package/inputotp/inputotp.js +6 -0
  108. package/inputotp/inputotp.min.js +1 -1
  109. package/listbox/Listbox.d.ts +1 -1
  110. package/listbox/Listbox.vue +16 -5
  111. package/listbox/listbox.cjs.js +14 -5
  112. package/listbox/listbox.cjs.min.js +1 -1
  113. package/listbox/listbox.esm.js +14 -5
  114. package/listbox/listbox.esm.min.js +1 -1
  115. package/listbox/listbox.js +14 -5
  116. package/listbox/listbox.min.js +1 -1
  117. package/multiselect/MultiSelect.d.ts +1 -1
  118. package/multiselect/MultiSelect.vue +16 -10
  119. package/multiselect/multiselect.cjs.js +15 -8
  120. package/multiselect/multiselect.cjs.min.js +1 -1
  121. package/multiselect/multiselect.esm.js +15 -8
  122. package/multiselect/multiselect.esm.min.js +1 -1
  123. package/multiselect/multiselect.js +15 -8
  124. package/multiselect/multiselect.min.js +1 -1
  125. package/package.json +1 -1
  126. package/password/BasePassword.vue +2 -2
  127. package/password/Password.d.ts +2 -2
  128. package/password/password.cjs.js +2 -2
  129. package/password/password.cjs.min.js +1 -1
  130. package/password/password.esm.js +2 -2
  131. package/password/password.esm.min.js +1 -1
  132. package/password/password.js +2 -2
  133. package/password/password.min.js +1 -1
  134. package/ripple/ripple.cjs.js +1 -1
  135. package/ripple/ripple.cjs.min.js +1 -1
  136. package/ripple/ripple.esm.js +1 -1
  137. package/ripple/ripple.esm.min.js +1 -1
  138. package/ripple/ripple.js +1 -1
  139. package/ripple/ripple.min.js +1 -1
  140. package/splitbutton/SplitButton.vue +1 -0
  141. package/splitbutton/splitbutton.cjs.js +2 -1
  142. package/splitbutton/splitbutton.cjs.min.js +1 -1
  143. package/splitbutton/splitbutton.esm.js +2 -1
  144. package/splitbutton/splitbutton.esm.min.js +1 -1
  145. package/splitbutton/splitbutton.js +2 -1
  146. package/splitbutton/splitbutton.min.js +1 -1
  147. package/tieredmenu/TieredMenu.vue +3 -2
  148. package/tieredmenu/tieredmenu.cjs.js +4 -3
  149. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  150. package/tieredmenu/tieredmenu.esm.js +4 -3
  151. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  152. package/tieredmenu/tieredmenu.js +4 -3
  153. package/tieredmenu/tieredmenu.min.js +1 -1
  154. package/treenode/TreeNode.d.ts +1 -1
  155. package/treeselect/TreeSelect.d.ts +1 -1
  156. package/virtualscroller/BaseVirtualScroller.vue +1 -1
  157. package/virtualscroller/virtualscroller.cjs.js +2 -2
  158. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  159. package/virtualscroller/virtualscroller.esm.js +2 -2
  160. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  161. package/virtualscroller/virtualscroller.js +2 -2
  162. package/virtualscroller/virtualscroller.min.js +1 -1
  163. package/web-types.json +1 -1
@@ -390,39 +390,31 @@ export default {
390
390
  }
391
391
  },
392
392
  findPreviousEditableColumn(cell) {
393
- let prevCell = cell.previousElementSibling;
393
+ let prevCell = cell?.previousElementSibling;
394
394
 
395
395
  if (!prevCell) {
396
- let previousRow = cell.parentElement.previousElementSibling;
396
+ let previousRow = cell?.parentElement.previousElementSibling;
397
397
 
398
398
  if (previousRow) {
399
399
  prevCell = previousRow.lastElementChild;
400
- }
401
- }
402
-
403
- if (prevCell) {
400
+ } else return null;
401
+ } else {
404
402
  if (DomHandler.getAttribute(prevCell, 'data-p-editable-column')) return prevCell;
405
403
  else return this.findPreviousEditableColumn(prevCell);
406
- } else {
407
- return null;
408
404
  }
409
405
  },
410
406
  findNextEditableColumn(cell) {
411
- let nextCell = cell.nextElementSibling;
407
+ let nextCell = cell?.nextElementSibling;
412
408
 
413
409
  if (!nextCell) {
414
- let nextRow = cell.parentElement.nextElementSibling;
410
+ let nextRow = cell?.parentElement.nextElementSibling;
415
411
 
416
412
  if (nextRow) {
417
413
  nextCell = nextRow.firstElementChild;
418
- }
419
- }
420
-
421
- if (nextCell) {
414
+ } else return null;
415
+ } else {
422
416
  if (DomHandler.getAttribute(nextCell, 'data-p-editable-column')) return nextCell;
423
417
  else return this.findNextEditableColumn(nextCell);
424
- } else {
425
- return null;
426
418
  }
427
419
  },
428
420
  onRowEditInit(event) {
@@ -128,7 +128,7 @@ export interface DataTableSortMeta {
128
128
  /**
129
129
  * Column field
130
130
  */
131
- field: string;
131
+ field: string | ((item: any) => string) | undefined;
132
132
  /**
133
133
  * Column sort order
134
134
  */
@@ -871,7 +871,9 @@ export default {
871
871
  this.$emit('update:selection', data);
872
872
  }
873
873
 
874
- event.preventDefault();
874
+ const isCopyShortcut = event.code === 'KeyC' && metaKey;
875
+
876
+ if (!isCopyShortcut) event.preventDefault();
875
877
 
876
878
  break;
877
879
  }
@@ -784,31 +784,25 @@ var script$9 = {
784
784
  }
785
785
  },
786
786
  findPreviousEditableColumn: function findPreviousEditableColumn(cell) {
787
- var prevCell = cell.previousElementSibling;
787
+ var prevCell = cell === null || cell === void 0 ? void 0 : cell.previousElementSibling;
788
788
  if (!prevCell) {
789
- var previousRow = cell.parentElement.previousElementSibling;
789
+ var previousRow = cell === null || cell === void 0 ? void 0 : cell.parentElement.previousElementSibling;
790
790
  if (previousRow) {
791
791
  prevCell = previousRow.lastElementChild;
792
- }
793
- }
794
- if (prevCell) {
795
- if (utils.DomHandler.getAttribute(prevCell, 'data-p-editable-column')) return prevCell;else return this.findPreviousEditableColumn(prevCell);
792
+ } else return null;
796
793
  } else {
797
- return null;
794
+ if (utils.DomHandler.getAttribute(prevCell, 'data-p-editable-column')) return prevCell;else return this.findPreviousEditableColumn(prevCell);
798
795
  }
799
796
  },
800
797
  findNextEditableColumn: function findNextEditableColumn(cell) {
801
- var nextCell = cell.nextElementSibling;
798
+ var nextCell = cell === null || cell === void 0 ? void 0 : cell.nextElementSibling;
802
799
  if (!nextCell) {
803
- var nextRow = cell.parentElement.nextElementSibling;
800
+ var nextRow = cell === null || cell === void 0 ? void 0 : cell.parentElement.nextElementSibling;
804
801
  if (nextRow) {
805
802
  nextCell = nextRow.firstElementChild;
806
- }
807
- }
808
- if (nextCell) {
809
- if (utils.DomHandler.getAttribute(nextCell, 'data-p-editable-column')) return nextCell;else return this.findNextEditableColumn(nextCell);
803
+ } else return null;
810
804
  } else {
811
- return null;
805
+ if (utils.DomHandler.getAttribute(nextCell, 'data-p-editable-column')) return nextCell;else return this.findNextEditableColumn(nextCell);
812
806
  }
813
807
  },
814
808
  onRowEditInit: function onRowEditInit(event) {
@@ -4665,7 +4659,8 @@ var script = {
4665
4659
  var data = this.dataToRender(slotProps.rows);
4666
4660
  this.$emit('update:selection', data);
4667
4661
  }
4668
- event.preventDefault();
4662
+ var isCopyShortcut = event.code === 'KeyC' && metaKey;
4663
+ if (!isCopyShortcut) event.preventDefault();
4669
4664
  break;
4670
4665
  }
4671
4666
  }