primevue 4.3.2 → 4.3.4

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 (168) hide show
  1. package/accordionheader/AccordionHeader.vue +1 -1
  2. package/accordionheader/index.d.ts +6 -1
  3. package/accordionheader/index.mjs +1 -1
  4. package/accordionheader/index.mjs.map +1 -1
  5. package/autocomplete/AutoComplete.vue +60 -11
  6. package/autocomplete/index.d.ts +4 -0
  7. package/autocomplete/index.mjs +96 -59
  8. package/autocomplete/index.mjs.map +1 -1
  9. package/cascadeselect/CascadeSelect.vue +4 -1
  10. package/cascadeselect/CascadeSelectSub.vue +1 -1
  11. package/cascadeselect/index.mjs +22 -20
  12. package/cascadeselect/index.mjs.map +1 -1
  13. package/checkbox/Checkbox.vue +1 -1
  14. package/checkbox/index.mjs +2 -1
  15. package/checkbox/index.mjs.map +1 -1
  16. package/chip/BaseChip.vue +1 -1
  17. package/chip/index.d.ts +1 -1
  18. package/chip/index.mjs +1 -1
  19. package/chip/index.mjs.map +1 -1
  20. package/colorpicker/ColorPicker.vue +5 -1
  21. package/colorpicker/index.mjs +5 -1
  22. package/colorpicker/index.mjs.map +1 -1
  23. package/confirmationoptions/index.d.ts +1 -1
  24. package/confirmdialog/index.d.ts +4 -0
  25. package/contextmenu/index.mjs +12 -12
  26. package/contextmenu/index.mjs.map +1 -1
  27. package/datatable/BodyCell.vue +1 -0
  28. package/datatable/ColumnFilter.vue +3 -3
  29. package/datatable/DataTable.vue +103 -44
  30. package/datatable/HeaderCheckbox.vue +2 -2
  31. package/datatable/RowCheckbox.vue +1 -1
  32. package/datatable/TableBody.vue +12 -1
  33. package/datatable/TableFooter.vue +9 -1
  34. package/datatable/TableHeader.vue +9 -2
  35. package/datatable/index.d.ts +37 -29
  36. package/datatable/index.mjs +175 -111
  37. package/datatable/index.mjs.map +1 -1
  38. package/datatable/style/index.mjs +4 -4
  39. package/datatable/style/index.mjs.map +1 -1
  40. package/dataview/DataView.vue +4 -0
  41. package/dataview/index.d.ts +63 -6
  42. package/dataview/index.mjs +6 -2
  43. package/dataview/index.mjs.map +1 -1
  44. package/datepicker/DatePicker.vue +379 -236
  45. package/datepicker/index.d.ts +156 -0
  46. package/datepicker/index.mjs +676 -406
  47. package/datepicker/index.mjs.map +1 -1
  48. package/drawer/Drawer.vue +30 -20
  49. package/drawer/index.d.ts +10 -0
  50. package/drawer/index.mjs +42 -25
  51. package/drawer/index.mjs.map +1 -1
  52. package/fileupload/FileUpload.vue +3 -4
  53. package/fileupload/index.mjs +8 -10
  54. package/fileupload/index.mjs.map +1 -1
  55. package/galleria/Galleria.vue +39 -3
  56. package/galleria/index.mjs +40 -3
  57. package/galleria/index.mjs.map +1 -1
  58. package/image/Image.vue +1 -1
  59. package/image/index.mjs +1 -1
  60. package/image/index.mjs.map +1 -1
  61. package/inplace/Inplace.vue +1 -1
  62. package/inplace/index.mjs +3 -2
  63. package/inplace/index.mjs.map +1 -1
  64. package/inputmask/InputMask.vue +3 -3
  65. package/inputmask/index.d.ts +3 -3
  66. package/inputmask/index.mjs +3 -3
  67. package/inputmask/index.mjs.map +1 -1
  68. package/inputnumber/BaseInputNumber.vue +4 -0
  69. package/inputnumber/InputNumber.vue +3 -10
  70. package/inputnumber/index.mjs +8 -9
  71. package/inputnumber/index.mjs.map +1 -1
  72. package/keyfilter/index.mjs +12 -19
  73. package/keyfilter/index.mjs.map +1 -1
  74. package/listbox/Listbox.vue +10 -2
  75. package/listbox/index.mjs +38 -29
  76. package/listbox/index.mjs.map +1 -1
  77. package/megamenu/index.d.ts +1 -1
  78. package/megamenu/index.mjs +11 -11
  79. package/megamenu/index.mjs.map +1 -1
  80. package/menu/Menu.vue +12 -6
  81. package/menu/Menuitem.vue +14 -4
  82. package/menu/index.d.ts +3 -12
  83. package/menu/index.mjs +40 -20
  84. package/menu/index.mjs.map +1 -1
  85. package/menubar/index.mjs +16 -16
  86. package/menubar/index.mjs.map +1 -1
  87. package/metergroup/MeterGroup.vue +9 -3
  88. package/metergroup/MeterGroupLabel.vue +10 -1
  89. package/metergroup/index.d.ts +1 -1
  90. package/metergroup/index.mjs +32 -7
  91. package/metergroup/index.mjs.map +1 -1
  92. package/multiselect/MultiSelect.vue +40 -6
  93. package/multiselect/index.d.ts +1 -1
  94. package/multiselect/index.mjs +100 -68
  95. package/multiselect/index.mjs.map +1 -1
  96. package/organizationchart/OrganizationChartNode.vue +1 -1
  97. package/organizationchart/index.mjs.map +1 -1
  98. package/organizationchart/style/index.mjs +11 -6
  99. package/organizationchart/style/index.mjs.map +1 -1
  100. package/package.json +6 -6
  101. package/paginator/Paginator.vue +2 -0
  102. package/paginator/index.d.ts +8 -0
  103. package/paginator/index.mjs +3 -1
  104. package/paginator/index.mjs.map +1 -1
  105. package/panel/Panel.vue +2 -2
  106. package/panel/index.mjs +2 -2
  107. package/panel/index.mjs.map +1 -1
  108. package/panelmenu/PanelMenuList.vue +1 -1
  109. package/panelmenu/index.mjs +4 -4
  110. package/panelmenu/index.mjs.map +1 -1
  111. package/password/Password.vue +28 -6
  112. package/password/index.mjs +44 -16
  113. package/password/index.mjs.map +1 -1
  114. package/popover/Popover.vue +1 -1
  115. package/popover/index.mjs +1 -2
  116. package/popover/index.mjs.map +1 -1
  117. package/progressbar/ProgressBar.vue +4 -4
  118. package/progressbar/index.mjs +8 -12
  119. package/progressbar/index.mjs.map +1 -1
  120. package/scrolltop/ScrollTop.vue +2 -2
  121. package/scrolltop/index.mjs +4 -2
  122. package/scrolltop/index.mjs.map +1 -1
  123. package/select/Select.vue +68 -13
  124. package/select/index.mjs +128 -77
  125. package/select/index.mjs.map +1 -1
  126. package/selectbutton/index.d.ts +0 -24
  127. package/splitter/Splitter.vue +10 -2
  128. package/splitter/index.d.ts +1 -1
  129. package/splitter/index.mjs +19 -7
  130. package/splitter/index.mjs.map +1 -1
  131. package/splitter/style/index.mjs +1 -13
  132. package/splitter/style/index.mjs.map +1 -1
  133. package/step/Step.vue +27 -9
  134. package/step/index.mjs +46 -16
  135. package/step/index.mjs.map +1 -1
  136. package/steppanel/StepPanel.vue +11 -5
  137. package/steppanel/index.d.ts +8 -0
  138. package/steppanel/index.mjs +25 -10
  139. package/steppanel/index.mjs.map +1 -1
  140. package/stepper/StepperSeparator.vue +5 -2
  141. package/tab/Tab.vue +4 -4
  142. package/tab/index.mjs +4 -4
  143. package/tab/index.mjs.map +1 -1
  144. package/tablist/TabList.vue +3 -0
  145. package/tablist/index.mjs +1 -0
  146. package/tablist/index.mjs.map +1 -1
  147. package/tabpanel/TabPanel.vue +2 -2
  148. package/tabpanel/index.mjs +2 -2
  149. package/tabpanel/index.mjs.map +1 -1
  150. package/tieredmenu/TieredMenu.vue +1 -1
  151. package/tieredmenu/index.mjs +13 -14
  152. package/tieredmenu/index.mjs.map +1 -1
  153. package/tooltip/index.mjs +47 -30
  154. package/tooltip/index.mjs.map +1 -1
  155. package/tree/Tree.vue +14 -2
  156. package/tree/TreeNode.vue +2 -2
  157. package/tree/index.mjs +28 -10
  158. package/tree/index.mjs.map +1 -1
  159. package/treeselect/TreeSelect.vue +4 -1
  160. package/treeselect/index.mjs +4 -2
  161. package/treeselect/index.mjs.map +1 -1
  162. package/umd/primevue.min.js +12213 -1
  163. package/virtualscroller/VirtualScroller.vue +13 -2
  164. package/virtualscroller/index.mjs +28 -18
  165. package/virtualscroller/index.mjs.map +1 -1
  166. package/virtualscroller/style/index.mjs +1 -1
  167. package/virtualscroller/style/index.mjs.map +1 -1
  168. package/web-types.json +1 -1
@@ -534,9 +534,12 @@ export default {
534
534
  onOverlayEnter(el) {
535
535
  ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);
536
536
 
537
- addStyle(el, { position: 'absolute', top: '0', left: '0' });
537
+ addStyle(el, { position: 'absolute', top: '0' });
538
538
  this.alignOverlay();
539
539
  this.scrollInView();
540
+
541
+ // Issue: #7508
542
+ this.$attrSelector && el.setAttribute(this.$attrSelector, '');
540
543
  },
541
544
  onOverlayAfterEnter() {
542
545
  this.bindOutsideClickListener();
@@ -78,7 +78,7 @@ export default {
78
78
  selectId: String,
79
79
  focusedOptionId: String,
80
80
  options: Array,
81
- optionLabel: String,
81
+ optionLabel: String | Function,
82
82
  optionValue: String,
83
83
  optionDisabled: null,
84
84
  optionGroupIcon: String,
@@ -166,7 +166,7 @@ var script$1 = {
166
166
  selectId: String,
167
167
  focusedOptionId: String,
168
168
  options: Array,
169
- optionLabel: String,
169
+ optionLabel: String | Function,
170
170
  optionValue: String,
171
171
  optionDisabled: null,
172
172
  optionGroupIcon: String,
@@ -824,11 +824,13 @@ var script = {
824
824
  ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);
825
825
  addStyle(el, {
826
826
  position: 'absolute',
827
- top: '0',
828
- left: '0'
827
+ top: '0'
829
828
  });
830
829
  this.alignOverlay();
831
830
  this.scrollInView();
831
+
832
+ // Issue: #7508
833
+ this.$attrSelector && el.setAttribute(this.$attrSelector, '');
832
834
  },
833
835
  onOverlayAfterEnter: function onOverlayAfterEnter() {
834
836
  this.bindOutsideClickListener();
@@ -959,16 +961,16 @@ var script = {
959
961
  return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
960
962
  },
961
963
  findPrevOptionIndex: function findPrevOptionIndex(index) {
962
- var _this10 = this;
964
+ var _this0 = this;
963
965
  var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (processedOption) {
964
- return _this10.isValidOption(processedOption);
966
+ return _this0.isValidOption(processedOption);
965
967
  }) : -1;
966
968
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
967
969
  },
968
970
  findSelectedOptionIndex: function findSelectedOptionIndex() {
969
- var _this11 = this;
971
+ var _this1 = this;
970
972
  return this.visibleOptions.findIndex(function (processedOption) {
971
- return _this11.isValidSelectedOption(processedOption);
973
+ return _this1.isValidSelectedOption(processedOption);
972
974
  });
973
975
  },
974
976
  findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
@@ -997,21 +999,21 @@ var script = {
997
999
  }
998
1000
  },
999
1001
  searchOptions: function searchOptions(event, _char) {
1000
- var _this12 = this;
1002
+ var _this10 = this;
1001
1003
  this.searchValue = (this.searchValue || '') + _char;
1002
1004
  var optionIndex = -1;
1003
1005
  var matched = false;
1004
1006
  if (isNotEmpty(this.searchValue)) {
1005
1007
  if (this.focusedOptionInfo.index !== -1) {
1006
1008
  optionIndex = this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex(function (processedOption) {
1007
- return _this12.isOptionMatched(processedOption);
1009
+ return _this10.isOptionMatched(processedOption);
1008
1010
  });
1009
1011
  optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionInfo.index).findIndex(function (processedOption) {
1010
- return _this12.isOptionMatched(processedOption);
1012
+ return _this10.isOptionMatched(processedOption);
1011
1013
  }) : optionIndex + this.focusedOptionInfo.index;
1012
1014
  } else {
1013
1015
  optionIndex = this.visibleOptions.findIndex(function (processedOption) {
1014
- return _this12.isOptionMatched(processedOption);
1016
+ return _this10.isOptionMatched(processedOption);
1015
1017
  });
1016
1018
  }
1017
1019
  if (optionIndex !== -1) {
@@ -1028,8 +1030,8 @@ var script = {
1028
1030
  clearTimeout(this.searchTimeout);
1029
1031
  }
1030
1032
  this.searchTimeout = setTimeout(function () {
1031
- _this12.searchValue = '';
1032
- _this12.searchTimeout = null;
1033
+ _this10.searchValue = '';
1034
+ _this10.searchTimeout = null;
1033
1035
  }, 500);
1034
1036
  return matched;
1035
1037
  },
@@ -1055,11 +1057,11 @@ var script = {
1055
1057
  }
1056
1058
  },
1057
1059
  scrollInView: function scrollInView() {
1058
- var _this13 = this;
1060
+ var _this11 = this;
1059
1061
  var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
1060
1062
  this.$nextTick(function () {
1061
- var id = index !== -1 ? "".concat(_this13.$id, "_").concat(index) : _this13.focusedOptionId;
1062
- var element = findSingle(_this13.list, "li[id=\"".concat(id, "\"]"));
1063
+ var id = index !== -1 ? "".concat(_this11.$id, "_").concat(index) : _this11.focusedOptionId;
1064
+ var element = findSingle(_this11.list, "li[id=\"".concat(id, "\"]"));
1063
1065
  if (element) {
1064
1066
  element.scrollIntoView && element.scrollIntoView({
1065
1067
  block: 'nearest',
@@ -1090,7 +1092,7 @@ var script = {
1090
1092
  });
1091
1093
  },
1092
1094
  createProcessedOptions: function createProcessedOptions(options) {
1093
- var _this14 = this;
1095
+ var _this12 = this;
1094
1096
  var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
1095
1097
  var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1096
1098
  var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
@@ -1105,7 +1107,7 @@ var script = {
1105
1107
  parent: parent,
1106
1108
  parentKey: parentKey
1107
1109
  };
1108
- newOption['children'] = _this14.createProcessedOptions(_this14.getOptionGroupChildren(option, level), level + 1, newOption, key);
1110
+ newOption['children'] = _this12.createProcessedOptions(_this12.getOptionGroupChildren(option, level), level + 1, newOption, key);
1109
1111
  processedOptions.push(newOption);
1110
1112
  });
1111
1113
  return processedOptions;
@@ -1132,9 +1134,9 @@ var script = {
1132
1134
  return this.createProcessedOptions(this.options || []);
1133
1135
  },
1134
1136
  visibleOptions: function visibleOptions() {
1135
- var _this15 = this;
1137
+ var _this13 = this;
1136
1138
  var processedOption = this.activeOptionPath && this.activeOptionPath.find(function (p) {
1137
- return p.key === _this15.focusedOptionInfo.parentKey;
1139
+ return p.key === _this13.focusedOptionInfo.parentKey;
1138
1140
  });
1139
1141
  return processedOption ? processedOption.children : this.processedOptions;
1140
1142
  },