primevue 4.3.7 → 4.3.9

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 (64) hide show
  1. package/autocomplete/style/index.mjs +0 -1
  2. package/autocomplete/style/index.mjs.map +1 -1
  3. package/cascadeselect/CascadeSelect.vue +1 -1
  4. package/cascadeselect/index.mjs +1 -1
  5. package/cascadeselect/index.mjs.map +1 -1
  6. package/colorpicker/ColorPicker.vue +2 -2
  7. package/colorpicker/index.mjs +2 -2
  8. package/colorpicker/index.mjs.map +1 -1
  9. package/column/index.d.ts +2 -2
  10. package/datatable/BodyCell.vue +2 -2
  11. package/datatable/ColumnFilter.vue +1 -1
  12. package/datatable/DataTable.vue +4 -1
  13. package/datatable/index.mjs +10 -9
  14. package/datatable/index.mjs.map +1 -1
  15. package/datepicker/BaseDatePicker.vue +4 -0
  16. package/datepicker/DatePicker.vue +22 -6
  17. package/datepicker/index.d.ts +4 -0
  18. package/datepicker/index.mjs +29 -10
  19. package/datepicker/index.mjs.map +1 -1
  20. package/dialog/Dialog.vue +1 -1
  21. package/dialog/index.d.ts +5 -0
  22. package/dialog/index.mjs +2 -1
  23. package/dialog/index.mjs.map +1 -1
  24. package/fileupload/FileUpload.vue +2 -2
  25. package/fileupload/index.mjs +2 -2
  26. package/fileupload/index.mjs.map +1 -1
  27. package/inputnumber/InputNumber.vue +19 -2
  28. package/inputnumber/index.mjs +14 -1
  29. package/inputnumber/index.mjs.map +1 -1
  30. package/keyfilter/index.mjs +14 -1
  31. package/keyfilter/index.mjs.map +1 -1
  32. package/listbox/Listbox.vue +7 -13
  33. package/listbox/index.mjs +12 -18
  34. package/listbox/index.mjs.map +1 -1
  35. package/multiselect/MultiSelect.vue +6 -7
  36. package/multiselect/index.mjs +7 -8
  37. package/multiselect/index.mjs.map +1 -1
  38. package/package.json +3 -3
  39. package/select/Select.vue +5 -5
  40. package/select/index.mjs +6 -6
  41. package/select/index.mjs.map +1 -1
  42. package/styleclass/index.d.ts +11 -1
  43. package/styleclass/index.mjs +62 -15
  44. package/styleclass/index.mjs.map +1 -1
  45. package/tab/Tab.vue +0 -1
  46. package/tab/index.mjs +0 -1
  47. package/tab/index.mjs.map +1 -1
  48. package/togglebutton/BaseToggleButton.vue +0 -4
  49. package/togglebutton/index.d.ts +0 -5
  50. package/togglebutton/index.mjs +0 -4
  51. package/togglebutton/index.mjs.map +1 -1
  52. package/tooltip/index.mjs +5 -1
  53. package/tooltip/index.mjs.map +1 -1
  54. package/treeselect/TreeSelect.vue +1 -1
  55. package/treeselect/index.mjs +1 -1
  56. package/treeselect/index.mjs.map +1 -1
  57. package/treetable/TreeTable.vue +15 -1
  58. package/treetable/index.d.ts +58 -4
  59. package/treetable/index.mjs +19 -6
  60. package/treetable/index.mjs.map +1 -1
  61. package/umd/primevue.min.js +1 -1
  62. package/vetur-attributes.json +0 -4
  63. package/vetur-tags.json +0 -1
  64. package/web-types.json +1 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primevue",
3
- "version": "4.3.7",
3
+ "version": "4.3.9",
4
4
  "author": "PrimeTek Informatics",
5
5
  "description": "PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock, which has 370+ ready to use UI blocks to build spectacular applications in no time.",
6
6
  "homepage": "https://primevue.org/",
@@ -60,8 +60,8 @@
60
60
  "@primeuix/styled": "^0.7.2",
61
61
  "@primeuix/utils": "^0.6.1",
62
62
  "@primeuix/styles": "^1.2.3",
63
- "@primevue/icons": "4.3.7",
64
- "@primevue/core": "4.3.7"
63
+ "@primevue/icons": "4.3.9",
64
+ "@primevue/core": "4.3.9"
65
65
  },
66
66
  "engines": {
67
67
  "node": ">=12.11.0"
package/select/Select.vue CHANGED
@@ -497,7 +497,7 @@ export default {
497
497
  focus(focusableEl);
498
498
  },
499
499
  onOptionSelect(event, option, isHide = true) {
500
- const value = this.getOptionValue(option) !== '' ? this.getOptionValue(option) : this.getOptionLabel(option);
500
+ const value = this.getOptionValue(option);
501
501
  this.updateModel(event, value);
502
502
  isHide && this.hide(true);
503
503
  },
@@ -552,7 +552,7 @@ export default {
552
552
  break;
553
553
 
554
554
  case 'Tab':
555
- this.onTabKey(event, true);
555
+ this.onTabKey(event);
556
556
  break;
557
557
 
558
558
  default:
@@ -863,7 +863,7 @@ export default {
863
863
  return this.isValidOption(option) && this.isSelected(option);
864
864
  },
865
865
  isSelected(option) {
866
- return equals(this.d_value, this.getOptionValue(option) !== '' ? this.getOptionValue(option) : this.getOptionLabel(option), this.equalityKey);
866
+ return equals(this.d_value, this.getOptionValue(option), this.equalityKey);
867
867
  },
868
868
  findFirstOptionIndex() {
869
869
  return this.visibleOptions.findIndex((option) => this.isValidOption(option));
@@ -882,7 +882,7 @@ export default {
882
882
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
883
883
  },
884
884
  findSelectedOptionIndex() {
885
- return this.$filled ? this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option)) : -1;
885
+ return this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option));
886
886
  },
887
887
  findFirstFocusedOptionIndex() {
888
888
  const selectedIndex = this.findSelectedOptionIndex();
@@ -1062,7 +1062,7 @@ export default {
1062
1062
  return this.visibleOptions.filter((option) => !this.isOptionGroup(option)).length;
1063
1063
  },
1064
1064
  isClearIconVisible() {
1065
- return this.showClear && this.d_value != null && isNotEmpty(this.options);
1065
+ return this.showClear && this.d_value != null && !this.disabled && !this.loading;
1066
1066
  },
1067
1067
  virtualScrollerDisabled() {
1068
1068
  return !this.virtualScrollerOptions;
package/select/index.mjs CHANGED
@@ -460,7 +460,7 @@ var script = {
460
460
  },
461
461
  onOptionSelect: function onOptionSelect(event, option) {
462
462
  var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
463
- var value = this.getOptionValue(option) !== '' ? this.getOptionValue(option) : this.getOptionLabel(option);
463
+ var value = this.getOptionValue(option);
464
464
  this.updateModel(event, value);
465
465
  isHide && this.hide(true);
466
466
  },
@@ -508,7 +508,7 @@ var script = {
508
508
  this.onEscapeKey(event);
509
509
  break;
510
510
  case 'Tab':
511
- this.onTabKey(event, true);
511
+ this.onTabKey(event);
512
512
  break;
513
513
  }
514
514
  },
@@ -802,7 +802,7 @@ var script = {
802
802
  return this.isValidOption(option) && this.isSelected(option);
803
803
  },
804
804
  isSelected: function isSelected(option) {
805
- return equals(this.d_value, this.getOptionValue(option) !== '' ? this.getOptionValue(option) : this.getOptionLabel(option), this.equalityKey);
805
+ return equals(this.d_value, this.getOptionValue(option), this.equalityKey);
806
806
  },
807
807
  findFirstOptionIndex: function findFirstOptionIndex() {
808
808
  var _this1 = this;
@@ -832,9 +832,9 @@ var script = {
832
832
  },
833
833
  findSelectedOptionIndex: function findSelectedOptionIndex() {
834
834
  var _this13 = this;
835
- return this.$filled ? this.visibleOptions.findIndex(function (option) {
835
+ return this.visibleOptions.findIndex(function (option) {
836
836
  return _this13.isValidSelectedOption(option);
837
- }) : -1;
837
+ });
838
838
  },
839
839
  findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
840
840
  var selectedIndex = this.findSelectedOptionIndex();
@@ -1014,7 +1014,7 @@ var script = {
1014
1014
  }).length;
1015
1015
  },
1016
1016
  isClearIconVisible: function isClearIconVisible() {
1017
- return this.showClear && this.d_value != null && isNotEmpty(this.options);
1017
+ return this.showClear && this.d_value != null && !this.disabled && !this.loading;
1018
1018
  },
1019
1019
  virtualScrollerDisabled: function virtualScrollerDisabled() {
1020
1020
  return !this.virtualScrollerOptions;