primevue 4.3.3 → 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 (102) 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 +4 -1
  6. package/autocomplete/index.d.ts +4 -0
  7. package/autocomplete/index.mjs +30 -27
  8. package/autocomplete/index.mjs.map +1 -1
  9. package/cascadeselect/CascadeSelect.vue +3 -0
  10. package/cascadeselect/CascadeSelectSub.vue +1 -1
  11. package/cascadeselect/index.mjs +21 -18
  12. package/cascadeselect/index.mjs.map +1 -1
  13. package/colorpicker/ColorPicker.vue +4 -0
  14. package/colorpicker/index.mjs +4 -0
  15. package/colorpicker/index.mjs.map +1 -1
  16. package/confirmationoptions/index.d.ts +1 -1
  17. package/confirmdialog/index.d.ts +4 -0
  18. package/contextmenu/index.mjs +12 -12
  19. package/contextmenu/index.mjs.map +1 -1
  20. package/datatable/ColumnFilter.vue +2 -2
  21. package/datatable/index.d.ts +2 -2
  22. package/datatable/index.mjs +12 -12
  23. package/datatable/index.mjs.map +1 -1
  24. package/datatable/style/index.mjs +4 -4
  25. package/datatable/style/index.mjs.map +1 -1
  26. package/dataview/index.d.ts +5 -5
  27. package/datepicker/DatePicker.vue +10 -3
  28. package/datepicker/index.mjs +69 -59
  29. package/datepicker/index.mjs.map +1 -1
  30. package/fileupload/FileUpload.vue +2 -3
  31. package/fileupload/index.mjs +6 -8
  32. package/fileupload/index.mjs.map +1 -1
  33. package/image/Image.vue +1 -1
  34. package/image/index.mjs +1 -1
  35. package/image/index.mjs.map +1 -1
  36. package/inputmask/InputMask.vue +3 -3
  37. package/inputmask/index.d.ts +3 -3
  38. package/inputmask/index.mjs +3 -3
  39. package/inputmask/index.mjs.map +1 -1
  40. package/inputnumber/InputNumber.vue +1 -1
  41. package/inputnumber/index.mjs +2 -2
  42. package/inputnumber/index.mjs.map +1 -1
  43. package/inputtext/index.d.ts +2 -1
  44. package/listbox/Listbox.vue +1 -0
  45. package/listbox/index.mjs +27 -26
  46. package/listbox/index.mjs.map +1 -1
  47. package/megamenu/index.d.ts +1 -1
  48. package/megamenu/index.mjs +11 -11
  49. package/megamenu/index.mjs.map +1 -1
  50. package/menu/Menu.vue +4 -4
  51. package/menu/index.d.ts +3 -12
  52. package/menu/index.mjs +4 -4
  53. package/menu/index.mjs.map +1 -1
  54. package/menubar/index.mjs +16 -16
  55. package/menubar/index.mjs.map +1 -1
  56. package/metergroup/index.d.ts +1 -1
  57. package/multiselect/MultiSelect.vue +4 -1
  58. package/multiselect/index.d.ts +1 -1
  59. package/multiselect/index.mjs +51 -48
  60. package/multiselect/index.mjs.map +1 -1
  61. package/organizationchart/OrganizationChartNode.vue +1 -1
  62. package/organizationchart/index.mjs.map +1 -1
  63. package/organizationchart/style/index.mjs +11 -6
  64. package/organizationchart/style/index.mjs.map +1 -1
  65. package/package.json +6 -6
  66. package/panel/Panel.vue +2 -2
  67. package/panel/index.mjs +2 -2
  68. package/panel/index.mjs.map +1 -1
  69. package/panelmenu/index.mjs +3 -3
  70. package/panelmenu/index.mjs.map +1 -1
  71. package/password/Password.vue +7 -3
  72. package/password/index.d.ts +1 -1
  73. package/password/index.mjs +14 -8
  74. package/password/index.mjs.map +1 -1
  75. package/select/Select.vue +20 -1
  76. package/select/index.mjs +53 -35
  77. package/select/index.mjs.map +1 -1
  78. package/selectbutton/index.d.ts +0 -24
  79. package/splitter/Splitter.vue +1 -1
  80. package/splitter/index.d.ts +1 -1
  81. package/splitter/index.mjs +0 -1
  82. package/splitter/index.mjs.map +1 -1
  83. package/splitter/style/index.mjs +1 -13
  84. package/splitter/style/index.mjs.map +1 -1
  85. package/step/Step.vue +2 -2
  86. package/step/index.mjs +2 -2
  87. package/step/index.mjs.map +1 -1
  88. package/steppanel/StepPanel.vue +2 -2
  89. package/steppanel/index.mjs +2 -2
  90. package/steppanel/index.mjs.map +1 -1
  91. package/textarea/index.d.ts +2 -1
  92. package/tieredmenu/index.mjs +12 -12
  93. package/tieredmenu/index.mjs.map +1 -1
  94. package/tooltip/index.mjs +25 -14
  95. package/tooltip/index.mjs.map +1 -1
  96. package/treeselect/TreeSelect.vue +3 -0
  97. package/treeselect/index.mjs +3 -0
  98. package/treeselect/index.mjs.map +1 -1
  99. package/umd/primevue.min.js +12213 -1
  100. package/virtualscroller/index.mjs +18 -18
  101. package/virtualscroller/index.mjs.map +1 -1
  102. package/web-types.json +1 -1
@@ -537,6 +537,9 @@ export default {
537
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,
@@ -828,6 +828,9 @@ var script = {
828
828
  });
829
829
  this.alignOverlay();
830
830
  this.scrollInView();
831
+
832
+ // Issue: #7508
833
+ this.$attrSelector && el.setAttribute(this.$attrSelector, '');
831
834
  },
832
835
  onOverlayAfterEnter: function onOverlayAfterEnter() {
833
836
  this.bindOutsideClickListener();
@@ -958,16 +961,16 @@ var script = {
958
961
  return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
959
962
  },
960
963
  findPrevOptionIndex: function findPrevOptionIndex(index) {
961
- var _this10 = this;
964
+ var _this0 = this;
962
965
  var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (processedOption) {
963
- return _this10.isValidOption(processedOption);
966
+ return _this0.isValidOption(processedOption);
964
967
  }) : -1;
965
968
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
966
969
  },
967
970
  findSelectedOptionIndex: function findSelectedOptionIndex() {
968
- var _this11 = this;
971
+ var _this1 = this;
969
972
  return this.visibleOptions.findIndex(function (processedOption) {
970
- return _this11.isValidSelectedOption(processedOption);
973
+ return _this1.isValidSelectedOption(processedOption);
971
974
  });
972
975
  },
973
976
  findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
@@ -996,21 +999,21 @@ var script = {
996
999
  }
997
1000
  },
998
1001
  searchOptions: function searchOptions(event, _char) {
999
- var _this12 = this;
1002
+ var _this10 = this;
1000
1003
  this.searchValue = (this.searchValue || '') + _char;
1001
1004
  var optionIndex = -1;
1002
1005
  var matched = false;
1003
1006
  if (isNotEmpty(this.searchValue)) {
1004
1007
  if (this.focusedOptionInfo.index !== -1) {
1005
1008
  optionIndex = this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex(function (processedOption) {
1006
- return _this12.isOptionMatched(processedOption);
1009
+ return _this10.isOptionMatched(processedOption);
1007
1010
  });
1008
1011
  optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionInfo.index).findIndex(function (processedOption) {
1009
- return _this12.isOptionMatched(processedOption);
1012
+ return _this10.isOptionMatched(processedOption);
1010
1013
  }) : optionIndex + this.focusedOptionInfo.index;
1011
1014
  } else {
1012
1015
  optionIndex = this.visibleOptions.findIndex(function (processedOption) {
1013
- return _this12.isOptionMatched(processedOption);
1016
+ return _this10.isOptionMatched(processedOption);
1014
1017
  });
1015
1018
  }
1016
1019
  if (optionIndex !== -1) {
@@ -1027,8 +1030,8 @@ var script = {
1027
1030
  clearTimeout(this.searchTimeout);
1028
1031
  }
1029
1032
  this.searchTimeout = setTimeout(function () {
1030
- _this12.searchValue = '';
1031
- _this12.searchTimeout = null;
1033
+ _this10.searchValue = '';
1034
+ _this10.searchTimeout = null;
1032
1035
  }, 500);
1033
1036
  return matched;
1034
1037
  },
@@ -1054,11 +1057,11 @@ var script = {
1054
1057
  }
1055
1058
  },
1056
1059
  scrollInView: function scrollInView() {
1057
- var _this13 = this;
1060
+ var _this11 = this;
1058
1061
  var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
1059
1062
  this.$nextTick(function () {
1060
- var id = index !== -1 ? "".concat(_this13.$id, "_").concat(index) : _this13.focusedOptionId;
1061
- 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, "\"]"));
1062
1065
  if (element) {
1063
1066
  element.scrollIntoView && element.scrollIntoView({
1064
1067
  block: 'nearest',
@@ -1089,7 +1092,7 @@ var script = {
1089
1092
  });
1090
1093
  },
1091
1094
  createProcessedOptions: function createProcessedOptions(options) {
1092
- var _this14 = this;
1095
+ var _this12 = this;
1093
1096
  var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
1094
1097
  var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1095
1098
  var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
@@ -1104,7 +1107,7 @@ var script = {
1104
1107
  parent: parent,
1105
1108
  parentKey: parentKey
1106
1109
  };
1107
- 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);
1108
1111
  processedOptions.push(newOption);
1109
1112
  });
1110
1113
  return processedOptions;
@@ -1131,9 +1134,9 @@ var script = {
1131
1134
  return this.createProcessedOptions(this.options || []);
1132
1135
  },
1133
1136
  visibleOptions: function visibleOptions() {
1134
- var _this15 = this;
1137
+ var _this13 = this;
1135
1138
  var processedOption = this.activeOptionPath && this.activeOptionPath.find(function (p) {
1136
- return p.key === _this15.focusedOptionInfo.parentKey;
1139
+ return p.key === _this13.focusedOptionInfo.parentKey;
1137
1140
  });
1138
1141
  return processedOption ? processedOption.children : this.processedOptions;
1139
1142
  },