primevue 4.3.3 → 4.3.5

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 (144) hide show
  1. package/accordion/index.mjs +4 -2
  2. package/accordion/index.mjs.map +1 -1
  3. package/accordionheader/AccordionHeader.vue +1 -1
  4. package/accordionheader/index.d.ts +6 -1
  5. package/accordionheader/index.mjs +1 -1
  6. package/accordionheader/index.mjs.map +1 -1
  7. package/autocomplete/AutoComplete.vue +4 -1
  8. package/autocomplete/index.d.ts +4 -0
  9. package/autocomplete/index.mjs +38 -31
  10. package/autocomplete/index.mjs.map +1 -1
  11. package/breadcrumb/index.mjs +4 -2
  12. package/breadcrumb/index.mjs.map +1 -1
  13. package/carousel/index.mjs +10 -5
  14. package/carousel/index.mjs.map +1 -1
  15. package/cascadeselect/CascadeSelect.vue +3 -0
  16. package/cascadeselect/CascadeSelectSub.vue +1 -1
  17. package/cascadeselect/index.mjs +31 -23
  18. package/cascadeselect/index.mjs.map +1 -1
  19. package/colorpicker/ColorPicker.vue +4 -0
  20. package/colorpicker/index.mjs +4 -0
  21. package/colorpicker/index.mjs.map +1 -1
  22. package/confirmationoptions/index.d.ts +1 -1
  23. package/confirmdialog/index.d.ts +4 -0
  24. package/contextmenu/index.mjs +28 -20
  25. package/contextmenu/index.mjs.map +1 -1
  26. package/datatable/ColumnFilter.vue +2 -2
  27. package/datatable/DataTable.vue +7 -3
  28. package/datatable/index.d.ts +2 -2
  29. package/datatable/index.mjs +48 -40
  30. package/datatable/index.mjs.map +1 -1
  31. package/datatable/style/index.mjs +4 -4
  32. package/datatable/style/index.mjs.map +1 -1
  33. package/dataview/index.d.ts +5 -5
  34. package/datepicker/DatePicker.vue +10 -3
  35. package/datepicker/index.mjs +123 -84
  36. package/datepicker/index.mjs.map +1 -1
  37. package/dock/index.mjs +8 -4
  38. package/dock/index.mjs.map +1 -1
  39. package/dynamicdialog/index.mjs +6 -3
  40. package/dynamicdialog/index.mjs.map +1 -1
  41. package/fileupload/FileUpload.vue +2 -3
  42. package/fileupload/index.mjs +20 -15
  43. package/fileupload/index.mjs.map +1 -1
  44. package/floatlabel/index.d.ts +1 -1
  45. package/galleria/index.mjs +8 -4
  46. package/galleria/index.mjs.map +1 -1
  47. package/image/Image.vue +1 -1
  48. package/image/index.mjs +1 -1
  49. package/image/index.mjs.map +1 -1
  50. package/inputchips/index.mjs +2 -1
  51. package/inputchips/index.mjs.map +1 -1
  52. package/inputmask/InputMask.vue +3 -3
  53. package/inputmask/index.d.ts +3 -3
  54. package/inputmask/index.mjs +3 -3
  55. package/inputmask/index.mjs.map +1 -1
  56. package/inputnumber/InputNumber.vue +1 -1
  57. package/inputnumber/index.mjs +2 -2
  58. package/inputnumber/index.mjs.map +1 -1
  59. package/inputtext/index.d.ts +2 -1
  60. package/listbox/Listbox.vue +1 -0
  61. package/listbox/index.mjs +35 -30
  62. package/listbox/index.mjs.map +1 -1
  63. package/megamenu/index.d.ts +1 -1
  64. package/megamenu/index.mjs +33 -22
  65. package/megamenu/index.mjs.map +1 -1
  66. package/menu/Menu.vue +4 -4
  67. package/menu/index.d.ts +3 -12
  68. package/menu/index.mjs +10 -7
  69. package/menu/index.mjs.map +1 -1
  70. package/menubar/index.mjs +30 -23
  71. package/menubar/index.mjs.map +1 -1
  72. package/metergroup/index.d.ts +1 -1
  73. package/metergroup/index.mjs +10 -5
  74. package/metergroup/index.mjs.map +1 -1
  75. package/multiselect/MultiSelect.vue +4 -1
  76. package/multiselect/index.d.ts +1 -1
  77. package/multiselect/index.mjs +59 -52
  78. package/multiselect/index.mjs.map +1 -1
  79. package/organizationchart/OrganizationChartNode.vue +1 -1
  80. package/organizationchart/index.mjs +6 -3
  81. package/organizationchart/index.mjs.map +1 -1
  82. package/organizationchart/style/index.mjs +11 -6
  83. package/organizationchart/style/index.mjs.map +1 -1
  84. package/package.json +6 -6
  85. package/paginator/index.mjs +10 -4
  86. package/paginator/index.mjs.map +1 -1
  87. package/panel/Panel.vue +2 -2
  88. package/panel/index.mjs +2 -2
  89. package/panel/index.mjs.map +1 -1
  90. package/panelmenu/index.mjs +45 -24
  91. package/panelmenu/index.mjs.map +1 -1
  92. package/password/Password.vue +8 -3
  93. package/password/index.d.ts +1 -1
  94. package/password/index.mjs +18 -9
  95. package/password/index.mjs.map +1 -1
  96. package/rating/index.mjs +10 -5
  97. package/rating/index.mjs.map +1 -1
  98. package/select/Select.vue +21 -3
  99. package/select/index.mjs +66 -42
  100. package/select/index.mjs.map +1 -1
  101. package/selectbutton/index.d.ts +0 -24
  102. package/speeddial/index.mjs +6 -3
  103. package/speeddial/index.mjs.map +1 -1
  104. package/splitter/Splitter.vue +2 -2
  105. package/splitter/index.d.ts +1 -1
  106. package/splitter/index.mjs +5 -3
  107. package/splitter/index.mjs.map +1 -1
  108. package/splitter/style/index.mjs +1 -13
  109. package/splitter/style/index.mjs.map +1 -1
  110. package/step/Step.vue +2 -2
  111. package/step/index.mjs +2 -2
  112. package/step/index.mjs.map +1 -1
  113. package/steppanel/StepPanel.vue +2 -2
  114. package/steppanel/index.mjs +2 -2
  115. package/steppanel/index.mjs.map +1 -1
  116. package/steps/index.mjs +8 -4
  117. package/steps/index.mjs.map +1 -1
  118. package/tabmenu/index.mjs +8 -2
  119. package/tabmenu/index.mjs.map +1 -1
  120. package/tabview/index.mjs +8 -4
  121. package/tabview/index.mjs.map +1 -1
  122. package/terminal/index.mjs +8 -4
  123. package/terminal/index.mjs.map +1 -1
  124. package/textarea/index.d.ts +2 -1
  125. package/tieredmenu/index.mjs +30 -21
  126. package/tieredmenu/index.mjs.map +1 -1
  127. package/timeline/index.mjs +12 -6
  128. package/timeline/index.mjs.map +1 -1
  129. package/toast/ToastMessage.vue +1 -1
  130. package/toast/index.mjs +1 -1
  131. package/toast/index.mjs.map +1 -1
  132. package/toggleswitch/style/index.d.ts +1 -5
  133. package/tooltip/index.mjs +25 -14
  134. package/tooltip/index.mjs.map +1 -1
  135. package/treeselect/TreeSelect.vue +3 -0
  136. package/treeselect/index.mjs +5 -1
  137. package/treeselect/index.mjs.map +1 -1
  138. package/treetable/index.mjs +2 -1
  139. package/treetable/index.mjs.map +1 -1
  140. package/umd/primevue.min.js +12213 -1
  141. package/virtualscroller/VirtualScroller.vue +4 -1
  142. package/virtualscroller/index.mjs +21 -19
  143. package/virtualscroller/index.mjs.map +1 -1
  144. package/web-types.json +1 -1
@@ -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,
@@ -285,7 +285,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
285
285
  "aria-expanded": $options.isOptionGroup(processedOption) ? $options.isOptionActive(processedOption) : undefined,
286
286
  "aria-level": $props.level + 1,
287
287
  "aria-setsize": $props.options.length,
288
- "aria-posinset": index + 1,
288
+ "aria-posinset": index + 1
289
+ }, {
289
290
  ref_for: true
290
291
  }, $options.getPTOptions(processedOption, index, 'option'), {
291
292
  "data-p-option-group": $options.isOptionGroup(processedOption),
@@ -302,7 +303,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
302
303
  },
303
304
  onMousemove: function onMousemove($event) {
304
305
  return $options.onOptionMouseMove($event, processedOption);
305
- },
306
+ }
307
+ }, {
306
308
  ref_for: true
307
309
  }, $options.getPTOptions(processedOption, index, 'optionContent')), [$props.templates['option'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['option']), {
308
310
  key: 0,
@@ -310,7 +312,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
310
312
  selected: $options.isOptionGroup(processedOption) ? false : $options.isOptionSelected(processedOption)
311
313
  }, null, 8, ["option", "selected"])) : (openBlock(), createElementBlock("span", mergeProps({
312
314
  key: 1,
313
- "class": _ctx.cx('optionText'),
315
+ "class": _ctx.cx('optionText')
316
+ }, {
314
317
  ref_for: true
315
318
  }, $options.getPTOptions(processedOption, index, 'optionText')), toDisplayString($options.getOptionLabelToRender(processedOption)), 17)), $options.isOptionGroup(processedOption) ? (openBlock(), createElementBlock("span", {
316
319
  key: 2,
@@ -321,12 +324,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
321
324
  }, null, 8, ["class"])) : $props.optionGroupIcon ? (openBlock(), createElementBlock("span", mergeProps({
322
325
  key: 1,
323
326
  "class": [_ctx.cx('groupIcon'), $props.optionGroupIcon],
324
- "aria-hidden": "true",
327
+ "aria-hidden": "true"
328
+ }, {
325
329
  ref_for: true
326
330
  }, $options.getPTOptions(processedOption, index, 'groupIcon')), null, 16)) : (openBlock(), createBlock(_component_AngleRightIcon, mergeProps({
327
331
  key: 2,
328
332
  "class": _ctx.cx('groupIcon'),
329
- "aria-hidden": "true",
333
+ "aria-hidden": "true"
334
+ }, {
330
335
  ref_for: true
331
336
  }, $options.getPTOptions(processedOption, index, 'groupIcon')), null, 16, ["class"]))], 2)) : createCommentVNode("", true)], 16, _hoisted_2)), [[_directive_ripple]]), $options.isOptionGroup(processedOption) && $options.isOptionActive(processedOption) ? (openBlock(), createBlock(_component_CascadeSelectSub, {
332
337
  key: 0,
@@ -828,6 +833,9 @@ var script = {
828
833
  });
829
834
  this.alignOverlay();
830
835
  this.scrollInView();
836
+
837
+ // Issue: #7508
838
+ this.$attrSelector && el.setAttribute(this.$attrSelector, '');
831
839
  },
832
840
  onOverlayAfterEnter: function onOverlayAfterEnter() {
833
841
  this.bindOutsideClickListener();
@@ -958,16 +966,16 @@ var script = {
958
966
  return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
959
967
  },
960
968
  findPrevOptionIndex: function findPrevOptionIndex(index) {
961
- var _this10 = this;
969
+ var _this0 = this;
962
970
  var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (processedOption) {
963
- return _this10.isValidOption(processedOption);
971
+ return _this0.isValidOption(processedOption);
964
972
  }) : -1;
965
973
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
966
974
  },
967
975
  findSelectedOptionIndex: function findSelectedOptionIndex() {
968
- var _this11 = this;
976
+ var _this1 = this;
969
977
  return this.visibleOptions.findIndex(function (processedOption) {
970
- return _this11.isValidSelectedOption(processedOption);
978
+ return _this1.isValidSelectedOption(processedOption);
971
979
  });
972
980
  },
973
981
  findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
@@ -996,21 +1004,21 @@ var script = {
996
1004
  }
997
1005
  },
998
1006
  searchOptions: function searchOptions(event, _char) {
999
- var _this12 = this;
1007
+ var _this10 = this;
1000
1008
  this.searchValue = (this.searchValue || '') + _char;
1001
1009
  var optionIndex = -1;
1002
1010
  var matched = false;
1003
1011
  if (isNotEmpty(this.searchValue)) {
1004
1012
  if (this.focusedOptionInfo.index !== -1) {
1005
1013
  optionIndex = this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex(function (processedOption) {
1006
- return _this12.isOptionMatched(processedOption);
1014
+ return _this10.isOptionMatched(processedOption);
1007
1015
  });
1008
1016
  optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionInfo.index).findIndex(function (processedOption) {
1009
- return _this12.isOptionMatched(processedOption);
1017
+ return _this10.isOptionMatched(processedOption);
1010
1018
  }) : optionIndex + this.focusedOptionInfo.index;
1011
1019
  } else {
1012
1020
  optionIndex = this.visibleOptions.findIndex(function (processedOption) {
1013
- return _this12.isOptionMatched(processedOption);
1021
+ return _this10.isOptionMatched(processedOption);
1014
1022
  });
1015
1023
  }
1016
1024
  if (optionIndex !== -1) {
@@ -1027,8 +1035,8 @@ var script = {
1027
1035
  clearTimeout(this.searchTimeout);
1028
1036
  }
1029
1037
  this.searchTimeout = setTimeout(function () {
1030
- _this12.searchValue = '';
1031
- _this12.searchTimeout = null;
1038
+ _this10.searchValue = '';
1039
+ _this10.searchTimeout = null;
1032
1040
  }, 500);
1033
1041
  return matched;
1034
1042
  },
@@ -1054,11 +1062,11 @@ var script = {
1054
1062
  }
1055
1063
  },
1056
1064
  scrollInView: function scrollInView() {
1057
- var _this13 = this;
1065
+ var _this11 = this;
1058
1066
  var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
1059
1067
  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, "\"]"));
1068
+ var id = index !== -1 ? "".concat(_this11.$id, "_").concat(index) : _this11.focusedOptionId;
1069
+ var element = findSingle(_this11.list, "li[id=\"".concat(id, "\"]"));
1062
1070
  if (element) {
1063
1071
  element.scrollIntoView && element.scrollIntoView({
1064
1072
  block: 'nearest',
@@ -1089,7 +1097,7 @@ var script = {
1089
1097
  });
1090
1098
  },
1091
1099
  createProcessedOptions: function createProcessedOptions(options) {
1092
- var _this14 = this;
1100
+ var _this12 = this;
1093
1101
  var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
1094
1102
  var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1095
1103
  var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
@@ -1104,7 +1112,7 @@ var script = {
1104
1112
  parent: parent,
1105
1113
  parentKey: parentKey
1106
1114
  };
1107
- newOption['children'] = _this14.createProcessedOptions(_this14.getOptionGroupChildren(option, level), level + 1, newOption, key);
1115
+ newOption['children'] = _this12.createProcessedOptions(_this12.getOptionGroupChildren(option, level), level + 1, newOption, key);
1108
1116
  processedOptions.push(newOption);
1109
1117
  });
1110
1118
  return processedOptions;
@@ -1131,9 +1139,9 @@ var script = {
1131
1139
  return this.createProcessedOptions(this.options || []);
1132
1140
  },
1133
1141
  visibleOptions: function visibleOptions() {
1134
- var _this15 = this;
1142
+ var _this13 = this;
1135
1143
  var processedOption = this.activeOptionPath && this.activeOptionPath.find(function (p) {
1136
- return p.key === _this15.focusedOptionInfo.parentKey;
1144
+ return p.key === _this13.focusedOptionInfo.parentKey;
1137
1145
  });
1138
1146
  return processedOption ? processedOption.children : this.processedOptions;
1139
1147
  },