primevue 4.0.7 → 4.1.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 (238) hide show
  1. package/autocomplete/AutoComplete.vue +50 -50
  2. package/autocomplete/index.d.ts +5 -1
  3. package/autocomplete/index.mjs +11 -8
  4. package/autocomplete/index.mjs.map +1 -1
  5. package/autocomplete/style/index.d.ts +4 -0
  6. package/autocomplete/style/index.mjs +3 -2
  7. package/autocomplete/style/index.mjs.map +1 -1
  8. package/button/BaseButton.vue +2 -2
  9. package/button/Button.vue +1 -1
  10. package/button/index.d.ts +2 -2
  11. package/button/index.mjs +7 -6
  12. package/button/index.mjs.map +1 -1
  13. package/carousel/Carousel.vue +2 -7
  14. package/carousel/index.mjs +2 -7
  15. package/carousel/index.mjs.map +1 -1
  16. package/carousel/style/index.mjs +1 -1
  17. package/carousel/style/index.mjs.map +1 -1
  18. package/cascadeselect/BaseCascadeSelect.vue +4 -0
  19. package/cascadeselect/CascadeSelect.vue +53 -10
  20. package/cascadeselect/CascadeSelectSub.vue +24 -27
  21. package/cascadeselect/index.d.ts +41 -1
  22. package/cascadeselect/index.mjs +114 -73
  23. package/cascadeselect/index.mjs.map +1 -1
  24. package/cascadeselect/style/index.mjs +13 -6
  25. package/cascadeselect/style/index.mjs.map +1 -1
  26. package/colorpicker/BaseColorPicker.vue +2 -1
  27. package/colorpicker/ColorPicker.vue +3 -3
  28. package/colorpicker/index.d.ts +6 -1
  29. package/colorpicker/index.mjs +11 -4
  30. package/colorpicker/index.mjs.map +1 -1
  31. package/config/index.d.ts +9 -3
  32. package/confirmationoptions/index.d.ts +12 -0
  33. package/confirmdialog/ConfirmDialog.vue +11 -1
  34. package/confirmdialog/index.d.ts +3 -7
  35. package/confirmdialog/index.mjs +12 -2
  36. package/confirmdialog/index.mjs.map +1 -1
  37. package/contextmenu/BaseContextMenu.vue +4 -0
  38. package/contextmenu/ContextMenu.vue +37 -10
  39. package/contextmenu/index.d.ts +10 -5
  40. package/contextmenu/index.mjs +57 -28
  41. package/contextmenu/index.mjs.map +1 -1
  42. package/contextmenu/style/index.mjs +10 -5
  43. package/contextmenu/style/index.mjs.map +1 -1
  44. package/datatable/BaseDataTable.vue +4 -0
  45. package/datatable/DataTable.vue +5 -10
  46. package/datatable/HeaderCheckbox.vue +1 -1
  47. package/datatable/TableBody.vue +1 -1
  48. package/datatable/TableHeader.vue +51 -51
  49. package/datatable/index.d.ts +5 -0
  50. package/datatable/index.mjs +90 -87
  51. package/datatable/index.mjs.map +1 -1
  52. package/datatable/style/index.mjs +1 -1
  53. package/datatable/style/index.mjs.map +1 -1
  54. package/datepicker/DatePicker.vue +13 -11
  55. package/datepicker/index.d.ts +2 -10
  56. package/datepicker/index.mjs +12 -10
  57. package/datepicker/index.mjs.map +1 -1
  58. package/datepicker/style/index.mjs +3 -3
  59. package/datepicker/style/index.mjs.map +1 -1
  60. package/dialog/Dialog.vue +4 -10
  61. package/dialog/index.mjs +3 -10
  62. package/dialog/index.mjs.map +1 -1
  63. package/drawer/index.d.ts +5 -1
  64. package/fieldset/index.d.ts +2 -6
  65. package/fileupload/index.d.ts +1 -1
  66. package/floatlabel/BaseFloatLabel.vue +6 -1
  67. package/floatlabel/index.d.ts +7 -2
  68. package/floatlabel/index.mjs +6 -1
  69. package/floatlabel/index.mjs.map +1 -1
  70. package/floatlabel/style/index.d.ts +2 -2
  71. package/floatlabel/style/index.mjs +10 -2
  72. package/floatlabel/style/index.mjs.map +1 -1
  73. package/focustrap/index.d.ts +1 -1
  74. package/galleria/index.d.ts +8 -8
  75. package/galleria/style/index.mjs +2 -2
  76. package/galleria/style/index.mjs.map +1 -1
  77. package/iftalabel/BaseIftaLabel.vue +16 -0
  78. package/iftalabel/IftaLabel.vue +15 -0
  79. package/iftalabel/index.d.ts +130 -0
  80. package/iftalabel/index.mjs +32 -0
  81. package/iftalabel/index.mjs.map +1 -0
  82. package/iftalabel/package.json +11 -0
  83. package/iftalabel/style/index.d.ts +19 -0
  84. package/iftalabel/style/index.mjs +17 -0
  85. package/iftalabel/style/index.mjs.map +1 -0
  86. package/iftalabel/style/package.json +6 -0
  87. package/imagecompare/BaseImageCompare.vue +30 -0
  88. package/imagecompare/ImageCompare.vue +24 -0
  89. package/imagecompare/index.d.ts +149 -0
  90. package/imagecompare/index.mjs +61 -0
  91. package/imagecompare/index.mjs.map +1 -0
  92. package/imagecompare/package.json +11 -0
  93. package/imagecompare/style/index.d.ts +23 -0
  94. package/imagecompare/style/index.mjs +18 -0
  95. package/imagecompare/style/index.mjs.map +1 -0
  96. package/imagecompare/style/package.json +6 -0
  97. package/inputgroup/BaseInputGroup.vue +0 -6
  98. package/inputgroup/InputGroup.vue +1 -10
  99. package/inputgroup/index.d.ts +0 -5
  100. package/inputgroup/index.mjs +1 -18
  101. package/inputgroup/index.mjs.map +1 -1
  102. package/inputgroup/style/index.mjs +2 -7
  103. package/inputgroup/style/index.mjs.map +1 -1
  104. package/inputmask/InputMask.vue +23 -17
  105. package/inputmask/index.mjs +21 -16
  106. package/inputmask/index.mjs.map +1 -1
  107. package/inputnumber/InputNumber.vue +2 -2
  108. package/inputnumber/index.d.ts +1 -1
  109. package/inputnumber/index.mjs +2 -2
  110. package/inputnumber/index.mjs.map +1 -1
  111. package/inputnumber/style/index.mjs +2 -2
  112. package/inputnumber/style/index.mjs.map +1 -1
  113. package/inputotp/BaseInputOtp.vue +1 -1
  114. package/inputotp/InputOtp.vue +6 -12
  115. package/inputotp/index.d.ts +2 -2
  116. package/inputotp/index.mjs +11 -12
  117. package/inputotp/index.mjs.map +1 -1
  118. package/inputotp/style/index.mjs +1 -1
  119. package/inputotp/style/index.mjs.map +1 -1
  120. package/inputtext/style/index.mjs +1 -1
  121. package/inputtext/style/index.mjs.map +1 -1
  122. package/keyfilter/index.d.ts +153 -0
  123. package/keyfilter/index.mjs +127 -0
  124. package/keyfilter/index.mjs.map +1 -0
  125. package/keyfilter/package.json +5 -0
  126. package/keyfilter/style/index.d.ts +14 -0
  127. package/keyfilter/style/index.mjs +8 -0
  128. package/keyfilter/style/index.mjs.map +1 -0
  129. package/keyfilter/style/package.json +6 -0
  130. package/megamenu/MegaMenu.vue +4 -4
  131. package/megamenu/index.d.ts +4 -0
  132. package/megamenu/index.mjs +2 -2
  133. package/megamenu/index.mjs.map +1 -1
  134. package/message/Message.vue +3 -19
  135. package/message/index.mjs +4 -20
  136. package/message/index.mjs.map +1 -1
  137. package/multiselect/BaseMultiSelect.vue +1 -5
  138. package/multiselect/MultiSelect.vue +16 -14
  139. package/multiselect/index.d.ts +2 -20
  140. package/multiselect/index.mjs +15 -17
  141. package/multiselect/index.mjs.map +1 -1
  142. package/multiselect/style/index.mjs +1 -1
  143. package/multiselect/style/index.mjs.map +1 -1
  144. package/orderlist/OrderList.vue +4 -8
  145. package/orderlist/index.d.ts +1 -5
  146. package/orderlist/index.mjs +3 -7
  147. package/orderlist/index.mjs.map +1 -1
  148. package/package.json +5 -5
  149. package/paginator/JumpToPageInput.vue +1 -1
  150. package/paginator/Paginator.vue +4 -16
  151. package/paginator/index.d.ts +1 -1
  152. package/paginator/index.mjs +4 -21
  153. package/paginator/index.mjs.map +1 -1
  154. package/paginator/style/index.d.ts +1 -1
  155. package/paginator/style/index.mjs +1 -1
  156. package/paginator/style/index.mjs.map +1 -1
  157. package/panelmenu/index.d.ts +1 -1
  158. package/password/BasePassword.vue +4 -0
  159. package/password/Password.vue +4 -3
  160. package/password/index.d.ts +6 -1
  161. package/password/index.mjs +10 -5
  162. package/password/index.mjs.map +1 -1
  163. package/password/style/index.mjs +1 -1
  164. package/password/style/index.mjs.map +1 -1
  165. package/picklist/PickList.vue +4 -8
  166. package/picklist/index.d.ts +1 -13
  167. package/picklist/index.mjs +3 -7
  168. package/picklist/index.mjs.map +1 -1
  169. package/popover/Popover.vue +4 -10
  170. package/popover/index.d.ts +1 -1
  171. package/popover/index.mjs +3 -9
  172. package/popover/index.mjs.map +1 -1
  173. package/progressspinner/index.d.ts +1 -1
  174. package/rating/style/index.mjs +1 -1
  175. package/rating/style/index.mjs.map +1 -1
  176. package/scrolltop/ScrollTop.vue +2 -9
  177. package/scrolltop/index.d.ts +1 -6
  178. package/scrolltop/index.mjs +3 -9
  179. package/scrolltop/index.mjs.map +1 -1
  180. package/select/Select.vue +13 -6
  181. package/select/index.mjs +54 -45
  182. package/select/index.mjs.map +1 -1
  183. package/select/style/index.mjs +1 -1
  184. package/select/style/index.mjs.map +1 -1
  185. package/speeddial/SpeedDial.vue +3 -1
  186. package/speeddial/index.d.ts +16 -1
  187. package/speeddial/index.mjs +10 -5
  188. package/speeddial/index.mjs.map +1 -1
  189. package/splitter/Splitter.vue +31 -25
  190. package/splitter/index.d.ts +8 -1
  191. package/splitter/index.mjs +28 -22
  192. package/splitter/index.mjs.map +1 -1
  193. package/tieredmenu/BaseTieredMenu.vue +4 -0
  194. package/tieredmenu/TieredMenu.vue +31 -4
  195. package/tieredmenu/TieredMenuSub.vue +3 -1
  196. package/tieredmenu/index.d.ts +5 -0
  197. package/tieredmenu/index.mjs +63 -34
  198. package/tieredmenu/index.mjs.map +1 -1
  199. package/tieredmenu/style/index.mjs +5 -4
  200. package/tieredmenu/style/index.mjs.map +1 -1
  201. package/toast/Toast.vue +2 -9
  202. package/toast/index.mjs +1 -8
  203. package/toast/index.mjs.map +1 -1
  204. package/toggleswitch/ToggleSwitch.vue +5 -1
  205. package/toggleswitch/index.d.ts +17 -1
  206. package/toggleswitch/index.mjs +7 -3
  207. package/toggleswitch/index.mjs.map +1 -1
  208. package/toggleswitch/style/index.d.ts +9 -1
  209. package/toggleswitch/style/index.mjs +3 -2
  210. package/toggleswitch/style/index.mjs.map +1 -1
  211. package/tooltip/index.mjs +6 -1
  212. package/tooltip/index.mjs.map +1 -1
  213. package/tree/BaseTree.vue +1 -1
  214. package/tree/Tree.vue +4 -2
  215. package/tree/TreeNode.vue +16 -4
  216. package/tree/index.d.ts +52 -3
  217. package/tree/index.mjs +23 -10
  218. package/tree/index.mjs.map +1 -1
  219. package/treeselect/BaseTreeSelect.vue +36 -0
  220. package/treeselect/TreeSelect.vue +31 -16
  221. package/treeselect/index.d.ts +73 -4
  222. package/treeselect/index.mjs +82 -25
  223. package/treeselect/index.mjs.map +1 -1
  224. package/treeselect/style/index.mjs +1 -1
  225. package/treeselect/style/index.mjs.map +1 -1
  226. package/treetable/BaseTreeTable.vue +8 -0
  227. package/treetable/TreeTable.vue +19 -11
  228. package/treetable/TreeTableRow.vue +28 -2
  229. package/treetable/index.d.ts +34 -0
  230. package/treetable/index.mjs +63 -19
  231. package/treetable/index.mjs.map +1 -1
  232. package/treetable/style/index.mjs +5 -3
  233. package/treetable/style/index.mjs.map +1 -1
  234. package/umd/primevue.min.js +1 -1
  235. package/vetur-attributes.json +3 -3
  236. package/virtualscroller/style/index.mjs +3 -1
  237. package/virtualscroller/style/index.mjs.map +1 -1
  238. package/web-types.json +4 -4
package/select/index.mjs CHANGED
@@ -648,6 +648,7 @@ var script = {
648
648
  }
649
649
  },
650
650
  onOverlayEnter: function onOverlayEnter(el) {
651
+ var _this3 = this;
651
652
  ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);
652
653
  addStyle(el, {
653
654
  position: 'absolute',
@@ -656,7 +657,9 @@ var script = {
656
657
  });
657
658
  this.alignOverlay();
658
659
  this.scrollInView();
659
- this.autoFilterFocus && focus(this.$refs.filterInput.$el);
660
+ setTimeout(function () {
661
+ _this3.autoFilterFocus && focus(_this3.$refs.filterInput.$el);
662
+ }, 1);
660
663
  },
661
664
  onOverlayAfterEnter: function onOverlayAfterEnter() {
662
665
  this.bindOutsideClickListener();
@@ -665,10 +668,15 @@ var script = {
665
668
  this.$emit('show');
666
669
  },
667
670
  onOverlayLeave: function onOverlayLeave() {
671
+ var _this4 = this;
668
672
  this.unbindOutsideClickListener();
669
673
  this.unbindScrollListener();
670
674
  this.unbindResizeListener();
671
- this.autoFilterFocus && focus(this.$refs.focusInput);
675
+ if (this.autoFilterFocus && this.filter) {
676
+ this.$nextTick(function () {
677
+ focus(_this4.$refs.filterInput.$el);
678
+ });
679
+ }
672
680
  this.$emit('hide');
673
681
  this.overlay = null;
674
682
  },
@@ -684,11 +692,11 @@ var script = {
684
692
  }
685
693
  },
686
694
  bindOutsideClickListener: function bindOutsideClickListener() {
687
- var _this3 = this;
695
+ var _this5 = this;
688
696
  if (!this.outsideClickListener) {
689
697
  this.outsideClickListener = function (event) {
690
- if (_this3.overlayVisible && _this3.overlay && !_this3.$el.contains(event.target) && !_this3.overlay.contains(event.target)) {
691
- _this3.hide();
698
+ if (_this5.overlayVisible && _this5.overlay && !_this5.$el.contains(event.target) && !_this5.overlay.contains(event.target)) {
699
+ _this5.hide();
692
700
  }
693
701
  };
694
702
  document.addEventListener('click', this.outsideClickListener);
@@ -701,11 +709,11 @@ var script = {
701
709
  }
702
710
  },
703
711
  bindScrollListener: function bindScrollListener() {
704
- var _this4 = this;
712
+ var _this6 = this;
705
713
  if (!this.scrollHandler) {
706
714
  this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function () {
707
- if (_this4.overlayVisible) {
708
- _this4.hide();
715
+ if (_this6.overlayVisible) {
716
+ _this6.hide();
709
717
  }
710
718
  });
711
719
  }
@@ -717,11 +725,11 @@ var script = {
717
725
  }
718
726
  },
719
727
  bindResizeListener: function bindResizeListener() {
720
- var _this5 = this;
728
+ var _this7 = this;
721
729
  if (!this.resizeListener) {
722
730
  this.resizeListener = function () {
723
- if (_this5.overlayVisible && !isTouchDevice()) {
724
- _this5.hide();
731
+ if (_this7.overlayVisible && !isTouchDevice()) {
732
+ _this7.hide();
725
733
  }
726
734
  };
727
735
  window.addEventListener('resize', this.resizeListener);
@@ -734,12 +742,12 @@ var script = {
734
742
  }
735
743
  },
736
744
  bindLabelClickListener: function bindLabelClickListener() {
737
- var _this6 = this;
745
+ var _this8 = this;
738
746
  if (!this.editable && !this.labelClickListener) {
739
- var label = document.querySelector("label[for=\"".concat(this.inputId, "\"]"));
747
+ var label = document.querySelector("label[for=\"".concat(this.labelId, "\"]"));
740
748
  if (label && isVisible(label)) {
741
749
  this.labelClickListener = function () {
742
- focus(_this6.$refs.focusInput);
750
+ focus(_this8.$refs.focusInput);
743
751
  };
744
752
  label.addEventListener('click', this.labelClickListener);
745
753
  }
@@ -747,7 +755,7 @@ var script = {
747
755
  },
748
756
  unbindLabelClickListener: function unbindLabelClickListener() {
749
757
  if (this.labelClickListener) {
750
- var label = document.querySelector("label[for=\"".concat(this.inputId, "\"]"));
758
+ var label = document.querySelector("label[for=\"".concat(this.labelId, "\"]"));
751
759
  if (label && isVisible(label)) {
752
760
  label.removeEventListener('click', this.labelClickListener);
753
761
  }
@@ -767,38 +775,38 @@ var script = {
767
775
  return this.isValidOption(option) && this.isSelected(option);
768
776
  },
769
777
  isSelected: function isSelected(option) {
770
- return this.isValidOption(option) && equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
778
+ return equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
771
779
  },
772
780
  findFirstOptionIndex: function findFirstOptionIndex() {
773
- var _this7 = this;
781
+ var _this9 = this;
774
782
  return this.visibleOptions.findIndex(function (option) {
775
- return _this7.isValidOption(option);
783
+ return _this9.isValidOption(option);
776
784
  });
777
785
  },
778
786
  findLastOptionIndex: function findLastOptionIndex() {
779
- var _this8 = this;
787
+ var _this10 = this;
780
788
  return findLastIndex(this.visibleOptions, function (option) {
781
- return _this8.isValidOption(option);
789
+ return _this10.isValidOption(option);
782
790
  });
783
791
  },
784
792
  findNextOptionIndex: function findNextOptionIndex(index) {
785
- var _this9 = this;
793
+ var _this11 = this;
786
794
  var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
787
- return _this9.isValidOption(option);
795
+ return _this11.isValidOption(option);
788
796
  }) : -1;
789
797
  return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
790
798
  },
791
799
  findPrevOptionIndex: function findPrevOptionIndex(index) {
792
- var _this10 = this;
800
+ var _this12 = this;
793
801
  var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {
794
- return _this10.isValidOption(option);
802
+ return _this12.isValidOption(option);
795
803
  }) : -1;
796
804
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
797
805
  },
798
806
  findSelectedOptionIndex: function findSelectedOptionIndex() {
799
- var _this11 = this;
807
+ var _this13 = this;
800
808
  return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
801
- return _this11.isValidSelectedOption(option);
809
+ return _this13.isValidSelectedOption(option);
802
810
  }) : -1;
803
811
  },
804
812
  findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
@@ -810,21 +818,21 @@ var script = {
810
818
  return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
811
819
  },
812
820
  searchOptions: function searchOptions(event, _char) {
813
- var _this12 = this;
821
+ var _this14 = this;
814
822
  this.searchValue = (this.searchValue || '') + _char;
815
823
  var optionIndex = -1;
816
824
  var matched = false;
817
825
  if (isNotEmpty(this.searchValue)) {
818
826
  if (this.focusedOptionIndex !== -1) {
819
827
  optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function (option) {
820
- return _this12.isOptionMatched(option);
828
+ return _this14.isOptionMatched(option);
821
829
  });
822
830
  optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function (option) {
823
- return _this12.isOptionMatched(option);
831
+ return _this14.isOptionMatched(option);
824
832
  }) : optionIndex + this.focusedOptionIndex;
825
833
  } else {
826
834
  optionIndex = this.visibleOptions.findIndex(function (option) {
827
- return _this12.isOptionMatched(option);
835
+ return _this14.isOptionMatched(option);
828
836
  });
829
837
  }
830
838
  if (optionIndex !== -1) {
@@ -841,8 +849,8 @@ var script = {
841
849
  clearTimeout(this.searchTimeout);
842
850
  }
843
851
  this.searchTimeout = setTimeout(function () {
844
- _this12.searchValue = '';
845
- _this12.searchTimeout = null;
852
+ _this14.searchValue = '';
853
+ _this14.searchTimeout = null;
846
854
  }, 500);
847
855
  return matched;
848
856
  },
@@ -856,18 +864,18 @@ var script = {
856
864
  }
857
865
  },
858
866
  scrollInView: function scrollInView() {
859
- var _this13 = this;
867
+ var _this15 = this;
860
868
  var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
861
869
  this.$nextTick(function () {
862
- var id = index !== -1 ? "".concat(_this13.id, "_").concat(index) : _this13.focusedOptionId;
863
- var element = findSingle(_this13.list, "li[id=\"".concat(id, "\"]"));
870
+ var id = index !== -1 ? "".concat(_this15.id, "_").concat(index) : _this15.focusedOptionId;
871
+ var element = findSingle(_this15.list, "li[id=\"".concat(id, "\"]"));
864
872
  if (element) {
865
873
  element.scrollIntoView && element.scrollIntoView({
866
874
  block: 'nearest',
867
875
  inline: 'start'
868
876
  });
869
- } else if (!_this13.virtualScrollerDisabled) {
870
- _this13.virtualScroller && _this13.virtualScroller.scrollToIndex(index !== -1 ? index : _this13.focusedOptionIndex);
877
+ } else if (!_this15.virtualScrollerDisabled) {
878
+ _this15.virtualScroller && _this15.virtualScroller.scrollToIndex(index !== -1 ? index : _this15.focusedOptionIndex);
871
879
  }
872
880
  });
873
881
  },
@@ -885,14 +893,14 @@ var script = {
885
893
  });
886
894
  },
887
895
  flatOptions: function flatOptions(options) {
888
- var _this14 = this;
896
+ var _this16 = this;
889
897
  return (options || []).reduce(function (result, option, index) {
890
898
  result.push({
891
899
  optionGroup: option,
892
900
  group: true,
893
901
  index: index
894
902
  });
895
- var optionGroupChildren = _this14.getOptionGroupChildren(option);
903
+ var optionGroupChildren = _this16.getOptionGroupChildren(option);
896
904
  optionGroupChildren && optionGroupChildren.forEach(function (o) {
897
905
  return result.push(o);
898
906
  });
@@ -912,7 +920,7 @@ var script = {
912
920
  },
913
921
  computed: {
914
922
  visibleOptions: function visibleOptions() {
915
- var _this15 = this;
923
+ var _this17 = this;
916
924
  var options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
917
925
  if (this.filterValue) {
918
926
  var filteredOptions = FilterService.filter(options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
@@ -920,11 +928,11 @@ var script = {
920
928
  var optionGroups = this.options || [];
921
929
  var filtered = [];
922
930
  optionGroups.forEach(function (group) {
923
- var groupChildren = _this15.getOptionGroupChildren(group);
931
+ var groupChildren = _this17.getOptionGroupChildren(group);
924
932
  var filteredItems = groupChildren.filter(function (item) {
925
933
  return filteredOptions.includes(item);
926
934
  });
927
- if (filteredItems.length > 0) filtered.push(_objectSpread(_objectSpread({}, group), {}, _defineProperty({}, typeof _this15.optionGroupChildren === 'string' ? _this15.optionGroupChildren : 'items', _toConsumableArray(filteredItems))));
935
+ if (filteredItems.length > 0) filtered.push(_objectSpread(_objectSpread({}, group), {}, _defineProperty({}, typeof _this17.optionGroupChildren === 'string' ? _this17.optionGroupChildren : 'items', _toConsumableArray(filteredItems))));
928
936
  });
929
937
  return this.flatOptions(filtered);
930
938
  }
@@ -974,9 +982,9 @@ var script = {
974
982
  return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
975
983
  },
976
984
  ariaSetSize: function ariaSetSize() {
977
- var _this16 = this;
985
+ var _this18 = this;
978
986
  return this.visibleOptions.filter(function (option) {
979
- return !_this16.isOptionGroup(option);
987
+ return !_this18.isOptionGroup(option);
980
988
  }).length;
981
989
  },
982
990
  isClearIconVisible: function isClearIconVisible() {
@@ -1091,7 +1099,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1091
1099
  value: _ctx.modelValue,
1092
1100
  placeholder: _ctx.placeholder
1093
1101
  }, function () {
1094
- return [createTextVNode(toDisplayString($options.label === 'p-emptylabel' ? ' ' : $options.label || 'empty'), 1)];
1102
+ var _$options$label;
1103
+ return [createTextVNode(toDisplayString($options.label === 'p-emptylabel' ? ' ' : (_$options$label = $options.label) !== null && _$options$label !== void 0 ? _$options$label : 'empty'), 1)];
1095
1104
  })], 16, _hoisted_3)), $options.isClearIconVisible ? renderSlot(_ctx.$slots, "clearicon", {
1096
1105
  key: 2,
1097
1106
  "class": normalizeClass(_ctx.cx('clearIcon')),