primevue 4.3.8 → 4.4.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 (118) hide show
  1. package/autocomplete/AutoComplete.vue +18 -3
  2. package/autocomplete/BaseAutoComplete.vue +4 -0
  3. package/autocomplete/index.d.ts +20 -0
  4. package/autocomplete/index.mjs +34 -7
  5. package/autocomplete/index.mjs.map +1 -1
  6. package/autocomplete/style/index.d.ts +4 -0
  7. package/autocomplete/style/index.mjs +3 -1
  8. package/autocomplete/style/index.mjs.map +1 -1
  9. package/cascadeselect/CascadeSelect.vue +1 -1
  10. package/cascadeselect/index.mjs +1 -1
  11. package/cascadeselect/index.mjs.map +1 -1
  12. package/checkbox/Checkbox.vue +15 -2
  13. package/checkbox/index.mjs +14 -2
  14. package/checkbox/index.mjs.map +1 -1
  15. package/colorpicker/ColorPicker.vue +5 -6
  16. package/colorpicker/index.mjs +5 -5
  17. package/colorpicker/index.mjs.map +1 -1
  18. package/column/index.d.ts +2 -2
  19. package/confirmdialog/ConfirmDialog.vue +1 -1
  20. package/confirmdialog/index.d.ts +5 -0
  21. package/confirmdialog/index.mjs +3 -2
  22. package/confirmdialog/index.mjs.map +1 -1
  23. package/datatable/BodyCell.vue +1 -1
  24. package/datatable/ColumnFilter.vue +1 -1
  25. package/datatable/DataTable.vue +6 -3
  26. package/datatable/HeaderCheckbox.vue +3 -3
  27. package/datatable/index.mjs +19 -9
  28. package/datatable/index.mjs.map +1 -1
  29. package/datepicker/BaseDatePicker.vue +8 -0
  30. package/datepicker/DatePicker.vue +200 -82
  31. package/datepicker/index.d.ts +25 -0
  32. package/datepicker/index.mjs +263 -155
  33. package/datepicker/index.mjs.map +1 -1
  34. package/datepicker/style/index.d.ts +4 -0
  35. package/datepicker/style/index.mjs +5 -2
  36. package/datepicker/style/index.mjs.map +1 -1
  37. package/dialog/Dialog.vue +1 -1
  38. package/dialog/index.d.ts +5 -0
  39. package/dialog/index.mjs +2 -1
  40. package/dialog/index.mjs.map +1 -1
  41. package/drawer/BaseDrawer.vue +4 -0
  42. package/drawer/Drawer.vue +4 -4
  43. package/drawer/index.d.ts +5 -0
  44. package/drawer/index.mjs +8 -4
  45. package/drawer/index.mjs.map +1 -1
  46. package/editor/Editor.vue +5 -1
  47. package/editor/index.mjs +5 -0
  48. package/editor/index.mjs.map +1 -1
  49. package/fileupload/FileUpload.vue +2 -2
  50. package/fileupload/index.mjs +2 -2
  51. package/fileupload/index.mjs.map +1 -1
  52. package/image/index.d.ts +5 -11
  53. package/inputmask/InputMask.vue +1 -2
  54. package/inputmask/index.mjs +1 -1
  55. package/inputmask/index.mjs.map +1 -1
  56. package/inputnumber/BaseInputNumber.vue +4 -0
  57. package/inputnumber/InputNumber.vue +33 -5
  58. package/inputnumber/index.d.ts +20 -0
  59. package/inputnumber/index.mjs +48 -7
  60. package/inputnumber/index.mjs.map +1 -1
  61. package/inputnumber/style/index.mjs +1 -0
  62. package/inputnumber/style/index.mjs.map +1 -1
  63. package/inputotp/InputOtp.vue +7 -3
  64. package/inputotp/index.mjs +6 -3
  65. package/inputotp/index.mjs.map +1 -1
  66. package/keyfilter/index.mjs +14 -1
  67. package/keyfilter/index.mjs.map +1 -1
  68. package/listbox/Listbox.vue +8 -14
  69. package/listbox/index.mjs +13 -19
  70. package/listbox/index.mjs.map +1 -1
  71. package/multiselect/MultiSelect.vue +15 -12
  72. package/multiselect/index.mjs +21 -18
  73. package/multiselect/index.mjs.map +1 -1
  74. package/package.json +5 -5
  75. package/panel/Panel.vue +1 -1
  76. package/panel/index.d.ts +4 -0
  77. package/panel/index.mjs +2 -1
  78. package/panel/index.mjs.map +1 -1
  79. package/password/BasePassword.vue +4 -0
  80. package/password/Password.vue +12 -1
  81. package/password/index.d.ts +20 -0
  82. package/password/index.mjs +23 -1
  83. package/password/index.mjs.map +1 -1
  84. package/password/style/index.d.ts +4 -0
  85. package/password/style/index.mjs +1 -0
  86. package/password/style/index.mjs.map +1 -1
  87. package/select/Select.vue +5 -4
  88. package/select/index.mjs +6 -5
  89. package/select/index.mjs.map +1 -1
  90. package/tab/Tab.vue +0 -1
  91. package/tab/index.mjs +0 -1
  92. package/tab/index.mjs.map +1 -1
  93. package/togglebutton/BaseToggleButton.vue +0 -4
  94. package/togglebutton/index.d.ts +0 -5
  95. package/togglebutton/index.mjs +0 -4
  96. package/togglebutton/index.mjs.map +1 -1
  97. package/tooltip/index.mjs +5 -1
  98. package/tooltip/index.mjs.map +1 -1
  99. package/tree/BaseTree.vue +16 -0
  100. package/tree/Tree.vue +179 -4
  101. package/tree/TreeNode.vue +225 -3
  102. package/tree/index.d.ts +65 -0
  103. package/tree/index.mjs +499 -22
  104. package/tree/index.mjs.map +1 -1
  105. package/tree/style/index.mjs +9 -4
  106. package/tree/style/index.mjs.map +1 -1
  107. package/treenode/index.d.ts +12 -0
  108. package/treeselect/TreeSelect.vue +2 -2
  109. package/treeselect/index.mjs +2 -2
  110. package/treeselect/index.mjs.map +1 -1
  111. package/treetable/TreeTable.vue +15 -1
  112. package/treetable/index.d.ts +58 -4
  113. package/treetable/index.mjs +19 -6
  114. package/treetable/index.mjs.map +1 -1
  115. package/umd/primevue.min.js +1 -1
  116. package/vetur-attributes.json +0 -4
  117. package/vetur-tags.json +0 -1
  118. package/web-types.json +1 -11
package/select/Select.vue CHANGED
@@ -450,6 +450,7 @@ export default {
450
450
  if (!metaKey && isPrintableCharacter(event.key)) {
451
451
  !this.overlayVisible && this.show();
452
452
  !this.editable && this.searchOptions(event, event.key);
453
+ this.filter && (this.filterValue = event.key);
453
454
  }
454
455
 
455
456
  break;
@@ -497,7 +498,7 @@ export default {
497
498
  focus(focusableEl);
498
499
  },
499
500
  onOptionSelect(event, option, isHide = true) {
500
- const value = this.getOptionValue(option) !== '' ? this.getOptionValue(option) : this.getOptionLabel(option);
501
+ const value = this.getOptionValue(option);
501
502
  this.updateModel(event, value);
502
503
  isHide && this.hide(true);
503
504
  },
@@ -863,7 +864,7 @@ export default {
863
864
  return this.isValidOption(option) && this.isSelected(option);
864
865
  },
865
866
  isSelected(option) {
866
- return equals(this.d_value, this.getOptionValue(option) !== '' ? this.getOptionValue(option) : this.getOptionLabel(option), this.equalityKey);
867
+ return equals(this.d_value, this.getOptionValue(option), this.equalityKey);
867
868
  },
868
869
  findFirstOptionIndex() {
869
870
  return this.visibleOptions.findIndex((option) => this.isValidOption(option));
@@ -882,7 +883,7 @@ export default {
882
883
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
883
884
  },
884
885
  findSelectedOptionIndex() {
885
- return this.$filled ? this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option)) : -1;
886
+ return this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option));
886
887
  },
887
888
  findFirstFocusedOptionIndex() {
888
889
  const selectedIndex = this.findSelectedOptionIndex();
@@ -1062,7 +1063,7 @@ export default {
1062
1063
  return this.visibleOptions.filter((option) => !this.isOptionGroup(option)).length;
1063
1064
  },
1064
1065
  isClearIconVisible() {
1065
- return this.showClear && this.d_value != null && isNotEmpty(this.options);
1066
+ return this.showClear && this.d_value != null && !this.disabled && !this.loading;
1066
1067
  },
1067
1068
  virtualScrollerDisabled() {
1068
1069
  return !this.virtualScrollerOptions;
package/select/index.mjs CHANGED
@@ -422,6 +422,7 @@ var script = {
422
422
  if (!metaKey && isPrintableCharacter(event.key)) {
423
423
  !this.overlayVisible && this.show();
424
424
  !this.editable && this.searchOptions(event, event.key);
425
+ this.filter && (this.filterValue = event.key);
425
426
  }
426
427
  break;
427
428
  }
@@ -460,7 +461,7 @@ var script = {
460
461
  },
461
462
  onOptionSelect: function onOptionSelect(event, option) {
462
463
  var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
463
- var value = this.getOptionValue(option) !== '' ? this.getOptionValue(option) : this.getOptionLabel(option);
464
+ var value = this.getOptionValue(option);
464
465
  this.updateModel(event, value);
465
466
  isHide && this.hide(true);
466
467
  },
@@ -802,7 +803,7 @@ var script = {
802
803
  return this.isValidOption(option) && this.isSelected(option);
803
804
  },
804
805
  isSelected: function isSelected(option) {
805
- return equals(this.d_value, this.getOptionValue(option) !== '' ? this.getOptionValue(option) : this.getOptionLabel(option), this.equalityKey);
806
+ return equals(this.d_value, this.getOptionValue(option), this.equalityKey);
806
807
  },
807
808
  findFirstOptionIndex: function findFirstOptionIndex() {
808
809
  var _this1 = this;
@@ -832,9 +833,9 @@ var script = {
832
833
  },
833
834
  findSelectedOptionIndex: function findSelectedOptionIndex() {
834
835
  var _this13 = this;
835
- return this.$filled ? this.visibleOptions.findIndex(function (option) {
836
+ return this.visibleOptions.findIndex(function (option) {
836
837
  return _this13.isValidSelectedOption(option);
837
- }) : -1;
838
+ });
838
839
  },
839
840
  findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
840
841
  var selectedIndex = this.findSelectedOptionIndex();
@@ -1014,7 +1015,7 @@ var script = {
1014
1015
  }).length;
1015
1016
  },
1016
1017
  isClearIconVisible: function isClearIconVisible() {
1017
- return this.showClear && this.d_value != null && isNotEmpty(this.options);
1018
+ return this.showClear && this.d_value != null && !this.disabled && !this.loading;
1018
1019
  },
1019
1020
  virtualScrollerDisabled: function virtualScrollerDisabled() {
1020
1021
  return !this.virtualScrollerOptions;