primevue 4.3.2 → 4.3.3

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 (133) hide show
  1. package/autocomplete/AutoComplete.vue +56 -10
  2. package/autocomplete/index.mjs +67 -33
  3. package/autocomplete/index.mjs.map +1 -1
  4. package/cascadeselect/CascadeSelect.vue +1 -1
  5. package/cascadeselect/index.mjs +1 -2
  6. package/cascadeselect/index.mjs.map +1 -1
  7. package/checkbox/Checkbox.vue +1 -1
  8. package/checkbox/index.mjs +2 -1
  9. package/checkbox/index.mjs.map +1 -1
  10. package/chip/BaseChip.vue +1 -1
  11. package/chip/index.d.ts +1 -1
  12. package/chip/index.mjs +1 -1
  13. package/chip/index.mjs.map +1 -1
  14. package/colorpicker/ColorPicker.vue +1 -1
  15. package/colorpicker/index.mjs +1 -1
  16. package/colorpicker/index.mjs.map +1 -1
  17. package/datatable/BodyCell.vue +1 -0
  18. package/datatable/ColumnFilter.vue +1 -1
  19. package/datatable/DataTable.vue +103 -44
  20. package/datatable/HeaderCheckbox.vue +2 -2
  21. package/datatable/RowCheckbox.vue +1 -1
  22. package/datatable/TableBody.vue +12 -1
  23. package/datatable/TableFooter.vue +9 -1
  24. package/datatable/TableHeader.vue +9 -2
  25. package/datatable/index.d.ts +35 -27
  26. package/datatable/index.mjs +163 -99
  27. package/datatable/index.mjs.map +1 -1
  28. package/dataview/DataView.vue +4 -0
  29. package/dataview/index.d.ts +58 -1
  30. package/dataview/index.mjs +6 -2
  31. package/dataview/index.mjs.map +1 -1
  32. package/datepicker/DatePicker.vue +369 -233
  33. package/datepicker/index.d.ts +156 -0
  34. package/datepicker/index.mjs +643 -383
  35. package/datepicker/index.mjs.map +1 -1
  36. package/drawer/Drawer.vue +30 -20
  37. package/drawer/index.d.ts +10 -0
  38. package/drawer/index.mjs +42 -25
  39. package/drawer/index.mjs.map +1 -1
  40. package/fileupload/FileUpload.vue +1 -1
  41. package/fileupload/index.mjs +2 -2
  42. package/fileupload/index.mjs.map +1 -1
  43. package/galleria/Galleria.vue +39 -3
  44. package/galleria/index.mjs +40 -3
  45. package/galleria/index.mjs.map +1 -1
  46. package/inplace/Inplace.vue +1 -1
  47. package/inplace/index.mjs +3 -2
  48. package/inplace/index.mjs.map +1 -1
  49. package/inputnumber/BaseInputNumber.vue +4 -0
  50. package/inputnumber/InputNumber.vue +2 -9
  51. package/inputnumber/index.mjs +7 -8
  52. package/inputnumber/index.mjs.map +1 -1
  53. package/inputtext/index.d.ts +1 -2
  54. package/keyfilter/index.mjs +12 -19
  55. package/keyfilter/index.mjs.map +1 -1
  56. package/listbox/Listbox.vue +9 -2
  57. package/listbox/index.mjs +11 -3
  58. package/listbox/index.mjs.map +1 -1
  59. package/menu/Menu.vue +8 -2
  60. package/menu/Menuitem.vue +14 -4
  61. package/menu/index.mjs +36 -16
  62. package/menu/index.mjs.map +1 -1
  63. package/metergroup/MeterGroup.vue +9 -3
  64. package/metergroup/MeterGroupLabel.vue +10 -1
  65. package/metergroup/index.mjs +32 -7
  66. package/metergroup/index.mjs.map +1 -1
  67. package/multiselect/MultiSelect.vue +36 -5
  68. package/multiselect/index.mjs +49 -20
  69. package/multiselect/index.mjs.map +1 -1
  70. package/package.json +3 -3
  71. package/paginator/Paginator.vue +2 -0
  72. package/paginator/index.d.ts +8 -0
  73. package/paginator/index.mjs +3 -1
  74. package/paginator/index.mjs.map +1 -1
  75. package/panelmenu/PanelMenuList.vue +1 -1
  76. package/panelmenu/index.mjs +1 -1
  77. package/panelmenu/index.mjs.map +1 -1
  78. package/password/Password.vue +21 -3
  79. package/password/index.d.ts +1 -1
  80. package/password/index.mjs +32 -10
  81. package/password/index.mjs.map +1 -1
  82. package/popover/Popover.vue +1 -1
  83. package/popover/index.mjs +1 -2
  84. package/popover/index.mjs.map +1 -1
  85. package/progressbar/ProgressBar.vue +4 -4
  86. package/progressbar/index.mjs +8 -12
  87. package/progressbar/index.mjs.map +1 -1
  88. package/scrolltop/ScrollTop.vue +2 -2
  89. package/scrolltop/index.mjs +4 -2
  90. package/scrolltop/index.mjs.map +1 -1
  91. package/select/Select.vue +48 -12
  92. package/select/index.mjs +104 -71
  93. package/select/index.mjs.map +1 -1
  94. package/splitter/Splitter.vue +10 -2
  95. package/splitter/index.mjs +19 -6
  96. package/splitter/index.mjs.map +1 -1
  97. package/step/Step.vue +25 -7
  98. package/step/index.mjs +44 -14
  99. package/step/index.mjs.map +1 -1
  100. package/steppanel/StepPanel.vue +9 -3
  101. package/steppanel/index.d.ts +8 -0
  102. package/steppanel/index.mjs +23 -8
  103. package/steppanel/index.mjs.map +1 -1
  104. package/stepper/StepperSeparator.vue +5 -2
  105. package/tab/Tab.vue +4 -4
  106. package/tab/index.mjs +4 -4
  107. package/tab/index.mjs.map +1 -1
  108. package/tablist/TabList.vue +3 -0
  109. package/tablist/index.mjs +1 -0
  110. package/tablist/index.mjs.map +1 -1
  111. package/tabpanel/TabPanel.vue +2 -2
  112. package/tabpanel/index.mjs +2 -2
  113. package/tabpanel/index.mjs.map +1 -1
  114. package/textarea/index.d.ts +1 -2
  115. package/tieredmenu/TieredMenu.vue +1 -1
  116. package/tieredmenu/index.mjs +1 -2
  117. package/tieredmenu/index.mjs.map +1 -1
  118. package/tooltip/index.mjs +22 -16
  119. package/tooltip/index.mjs.map +1 -1
  120. package/tree/Tree.vue +14 -2
  121. package/tree/TreeNode.vue +2 -2
  122. package/tree/index.mjs +28 -10
  123. package/tree/index.mjs.map +1 -1
  124. package/treeselect/TreeSelect.vue +1 -1
  125. package/treeselect/index.mjs +1 -2
  126. package/treeselect/index.mjs.map +1 -1
  127. package/umd/primevue.min.js +1 -1
  128. package/virtualscroller/VirtualScroller.vue +13 -2
  129. package/virtualscroller/index.mjs +14 -4
  130. package/virtualscroller/index.mjs.map +1 -1
  131. package/virtualscroller/style/index.mjs +1 -1
  132. package/virtualscroller/style/index.mjs.map +1 -1
  133. package/web-types.json +1 -1
package/select/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import { cn } from '@primeuix/utils';
1
2
  import { findSingle, getFocusableElements, isVisible, focus, isTouchDevice, relativePosition, getOuterWidth, absolutePosition, addStyle, getLastFocusableElement, getFirstFocusableElement, isAndroid } from '@primeuix/utils/dom';
2
3
  import { isNotEmpty, findLastIndex, equals, isPrintableCharacter, resolveFieldData } from '@primeuix/utils/object';
3
4
  import { ZIndex } from '@primeuix/utils/zindex';
@@ -344,12 +345,15 @@ var script = {
344
345
  this.$emit('focus', event);
345
346
  },
346
347
  onBlur: function onBlur(event) {
347
- var _this$formField$onBlu, _this$formField;
348
- this.focused = false;
349
- this.focusedOptionIndex = -1;
350
- this.searchValue = '';
351
- this.$emit('blur', event);
352
- (_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField, event);
348
+ var _this3 = this;
349
+ setTimeout(function () {
350
+ var _this3$formField$onBl, _this3$formField;
351
+ _this3.focused = false;
352
+ _this3.focusedOptionIndex = -1;
353
+ _this3.searchValue = '';
354
+ _this3.$emit('blur', event);
355
+ (_this3$formField$onBl = (_this3$formField = _this3.formField).onBlur) === null || _this3$formField$onBl === void 0 || _this3$formField$onBl.call(_this3$formField, event);
356
+ }, 100);
353
357
  },
354
358
  onKeyDown: function onKeyDown(event) {
355
359
  if (this.disabled || isAndroid()) {
@@ -627,18 +631,17 @@ var script = {
627
631
  }
628
632
  },
629
633
  onOverlayEnter: function onOverlayEnter(el) {
630
- var _this3 = this;
634
+ var _this4 = this;
631
635
  ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);
632
636
  addStyle(el, {
633
637
  position: 'absolute',
634
- top: '0',
635
- left: '0'
638
+ top: '0'
636
639
  });
637
640
  this.alignOverlay();
638
641
  this.scrollInView();
639
642
  setTimeout(function () {
640
- _this3.autoFilterFocus && _this3.filter && focus(_this3.$refs.filterInput.$el);
641
- _this3.autoUpdateModel();
643
+ _this4.autoFilterFocus && _this4.filter && focus(_this4.$refs.filterInput.$el);
644
+ _this4.autoUpdateModel();
642
645
  }, 1);
643
646
  },
644
647
  onOverlayAfterEnter: function onOverlayAfterEnter() {
@@ -648,14 +651,14 @@ var script = {
648
651
  this.$emit('show');
649
652
  },
650
653
  onOverlayLeave: function onOverlayLeave() {
651
- var _this4 = this;
654
+ var _this5 = this;
652
655
  this.unbindOutsideClickListener();
653
656
  this.unbindScrollListener();
654
657
  this.unbindResizeListener();
655
658
  if (this.autoFilterFocus && this.filter && !this.editable) {
656
659
  this.$nextTick(function () {
657
- if (_this4.$refs.filterInput) {
658
- focus(_this4.$refs.filterInput.$el);
660
+ if (_this5.$refs.filterInput) {
661
+ focus(_this5.$refs.filterInput.$el);
659
662
  }
660
663
  });
661
664
  }
@@ -676,11 +679,12 @@ var script = {
676
679
  }
677
680
  },
678
681
  bindOutsideClickListener: function bindOutsideClickListener() {
679
- var _this5 = this;
682
+ var _this6 = this;
680
683
  if (!this.outsideClickListener) {
681
684
  this.outsideClickListener = function (event) {
682
- if (_this5.overlayVisible && _this5.overlay && !_this5.$el.contains(event.target) && !_this5.overlay.contains(event.target)) {
683
- _this5.hide();
685
+ var composedPath = event.composedPath();
686
+ if (_this6.overlayVisible && _this6.overlay && !composedPath.includes(_this6.$el) && !composedPath.includes(_this6.overlay)) {
687
+ _this6.hide();
684
688
  }
685
689
  };
686
690
  document.addEventListener('click', this.outsideClickListener, true);
@@ -693,11 +697,11 @@ var script = {
693
697
  }
694
698
  },
695
699
  bindScrollListener: function bindScrollListener() {
696
- var _this6 = this;
700
+ var _this7 = this;
697
701
  if (!this.scrollHandler) {
698
702
  this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function () {
699
- if (_this6.overlayVisible) {
700
- _this6.hide();
703
+ if (_this7.overlayVisible) {
704
+ _this7.hide();
701
705
  }
702
706
  });
703
707
  }
@@ -709,11 +713,11 @@ var script = {
709
713
  }
710
714
  },
711
715
  bindResizeListener: function bindResizeListener() {
712
- var _this7 = this;
716
+ var _this8 = this;
713
717
  if (!this.resizeListener) {
714
718
  this.resizeListener = function () {
715
- if (_this7.overlayVisible && !isTouchDevice()) {
716
- _this7.hide();
719
+ if (_this8.overlayVisible && !isTouchDevice()) {
720
+ _this8.hide();
717
721
  }
718
722
  };
719
723
  window.addEventListener('resize', this.resizeListener);
@@ -726,12 +730,12 @@ var script = {
726
730
  }
727
731
  },
728
732
  bindLabelClickListener: function bindLabelClickListener() {
729
- var _this8 = this;
733
+ var _this9 = this;
730
734
  if (!this.editable && !this.labelClickListener) {
731
735
  var label = document.querySelector("label[for=\"".concat(this.labelId, "\"]"));
732
736
  if (label && isVisible(label)) {
733
737
  this.labelClickListener = function () {
734
- focus(_this8.$refs.focusInput);
738
+ focus(_this9.$refs.focusInput);
735
739
  };
736
740
  label.addEventListener('click', this.labelClickListener);
737
741
  }
@@ -746,12 +750,12 @@ var script = {
746
750
  }
747
751
  },
748
752
  bindMatchMediaOrientationListener: function bindMatchMediaOrientationListener() {
749
- var _this9 = this;
753
+ var _this10 = this;
750
754
  if (!this.matchMediaOrientationListener) {
751
755
  var query = matchMedia("(orientation: portrait)");
752
756
  this.queryOrientation = query;
753
757
  this.matchMediaOrientationListener = function () {
754
- _this9.alignOverlay();
758
+ _this10.alignOverlay();
755
759
  };
756
760
  this.queryOrientation.addEventListener('change', this.matchMediaOrientationListener);
757
761
  }
@@ -784,35 +788,35 @@ var script = {
784
788
  return equals(this.d_value, this.getOptionValue(option), this.equalityKey);
785
789
  },
786
790
  findFirstOptionIndex: function findFirstOptionIndex() {
787
- var _this10 = this;
791
+ var _this11 = this;
788
792
  return this.visibleOptions.findIndex(function (option) {
789
- return _this10.isValidOption(option);
793
+ return _this11.isValidOption(option);
790
794
  });
791
795
  },
792
796
  findLastOptionIndex: function findLastOptionIndex() {
793
- var _this11 = this;
797
+ var _this12 = this;
794
798
  return findLastIndex(this.visibleOptions, function (option) {
795
- return _this11.isValidOption(option);
799
+ return _this12.isValidOption(option);
796
800
  });
797
801
  },
798
802
  findNextOptionIndex: function findNextOptionIndex(index) {
799
- var _this12 = this;
803
+ var _this13 = this;
800
804
  var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
801
- return _this12.isValidOption(option);
805
+ return _this13.isValidOption(option);
802
806
  }) : -1;
803
807
  return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
804
808
  },
805
809
  findPrevOptionIndex: function findPrevOptionIndex(index) {
806
- var _this13 = this;
810
+ var _this14 = this;
807
811
  var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {
808
- return _this13.isValidOption(option);
812
+ return _this14.isValidOption(option);
809
813
  }) : -1;
810
814
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
811
815
  },
812
816
  findSelectedOptionIndex: function findSelectedOptionIndex() {
813
- var _this14 = this;
817
+ var _this15 = this;
814
818
  return this.$filled ? this.visibleOptions.findIndex(function (option) {
815
- return _this14.isValidSelectedOption(option);
819
+ return _this15.isValidSelectedOption(option);
816
820
  }) : -1;
817
821
  },
818
822
  findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
@@ -824,17 +828,17 @@ var script = {
824
828
  return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
825
829
  },
826
830
  searchOptions: function searchOptions(event, _char) {
827
- var _this15 = this;
831
+ var _this16 = this;
828
832
  this.searchValue = (this.searchValue || '') + _char;
829
833
  var optionIndex = -1;
830
834
  var matched = false;
831
835
  if (isNotEmpty(this.searchValue)) {
832
836
  optionIndex = this.visibleOptions.findIndex(function (option) {
833
- return _this15.isOptionExactMatched(option);
837
+ return _this16.isOptionExactMatched(option);
834
838
  });
835
839
  if (optionIndex === -1) {
836
840
  optionIndex = this.visibleOptions.findIndex(function (option) {
837
- return _this15.isOptionStartsWith(option);
841
+ return _this16.isOptionStartsWith(option);
838
842
  });
839
843
  }
840
844
  if (optionIndex !== -1) {
@@ -851,8 +855,8 @@ var script = {
851
855
  clearTimeout(this.searchTimeout);
852
856
  }
853
857
  this.searchTimeout = setTimeout(function () {
854
- _this15.searchValue = '';
855
- _this15.searchTimeout = null;
858
+ _this16.searchValue = '';
859
+ _this16.searchTimeout = null;
856
860
  }, 500);
857
861
  return matched;
858
862
  },
@@ -866,18 +870,18 @@ var script = {
866
870
  }
867
871
  },
868
872
  scrollInView: function scrollInView() {
869
- var _this16 = this;
873
+ var _this17 = this;
870
874
  var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
871
875
  this.$nextTick(function () {
872
- var id = index !== -1 ? "".concat(_this16.$id, "_").concat(index) : _this16.focusedOptionId;
873
- var element = findSingle(_this16.list, "li[id=\"".concat(id, "\"]"));
876
+ var id = index !== -1 ? "".concat(_this17.$id, "_").concat(index) : _this17.focusedOptionId;
877
+ var element = findSingle(_this17.list, "li[id=\"".concat(id, "\"]"));
874
878
  if (element) {
875
879
  element.scrollIntoView && element.scrollIntoView({
876
880
  block: 'nearest',
877
881
  inline: 'nearest'
878
882
  });
879
- } else if (!_this16.virtualScrollerDisabled) {
880
- _this16.virtualScroller && _this16.virtualScroller.scrollToIndex(index !== -1 ? index : _this16.focusedOptionIndex);
883
+ } else if (!_this17.virtualScrollerDisabled) {
884
+ _this17.virtualScroller && _this17.virtualScroller.scrollToIndex(index !== -1 ? index : _this17.focusedOptionIndex);
881
885
  }
882
886
  });
883
887
  },
@@ -897,14 +901,14 @@ var script = {
897
901
  });
898
902
  },
899
903
  flatOptions: function flatOptions(options) {
900
- var _this17 = this;
904
+ var _this18 = this;
901
905
  return (options || []).reduce(function (result, option, index) {
902
906
  result.push({
903
907
  optionGroup: option,
904
908
  group: true,
905
909
  index: index
906
910
  });
907
- var optionGroupChildren = _this17.getOptionGroupChildren(option);
911
+ var optionGroupChildren = _this18.getOptionGroupChildren(option);
908
912
  optionGroupChildren && optionGroupChildren.forEach(function (o) {
909
913
  return result.push(o);
910
914
  });
@@ -924,7 +928,7 @@ var script = {
924
928
  },
925
929
  computed: {
926
930
  visibleOptions: function visibleOptions() {
927
- var _this18 = this;
931
+ var _this19 = this;
928
932
  var options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
929
933
  if (this.filterValue) {
930
934
  var filteredOptions = FilterService.filter(options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
@@ -932,11 +936,11 @@ var script = {
932
936
  var optionGroups = this.options || [];
933
937
  var filtered = [];
934
938
  optionGroups.forEach(function (group) {
935
- var groupChildren = _this18.getOptionGroupChildren(group);
939
+ var groupChildren = _this19.getOptionGroupChildren(group);
936
940
  var filteredItems = groupChildren.filter(function (item) {
937
941
  return filteredOptions.includes(item);
938
942
  });
939
- if (filteredItems.length > 0) filtered.push(_objectSpread(_objectSpread({}, group), {}, _defineProperty({}, typeof _this18.optionGroupChildren === 'string' ? _this18.optionGroupChildren : 'items', _toConsumableArray(filteredItems))));
943
+ if (filteredItems.length > 0) filtered.push(_objectSpread(_objectSpread({}, group), {}, _defineProperty({}, typeof _this19.optionGroupChildren === 'string' ? _this19.optionGroupChildren : 'items', _toConsumableArray(filteredItems))));
940
944
  });
941
945
  return this.flatOptions(filtered);
942
946
  }
@@ -987,9 +991,9 @@ var script = {
987
991
  return this.focusedOptionIndex !== -1 ? "".concat(this.$id, "_").concat(this.focusedOptionIndex) : null;
988
992
  },
989
993
  ariaSetSize: function ariaSetSize() {
990
- var _this19 = this;
994
+ var _this20 = this;
991
995
  return this.visibleOptions.filter(function (option) {
992
- return !_this19.isOptionGroup(option);
996
+ return !_this20.isOptionGroup(option);
993
997
  }).length;
994
998
  },
995
999
  isClearIconVisible: function isClearIconVisible() {
@@ -997,6 +1001,29 @@ var script = {
997
1001
  },
998
1002
  virtualScrollerDisabled: function virtualScrollerDisabled() {
999
1003
  return !this.virtualScrollerOptions;
1004
+ },
1005
+ containerDataP: function containerDataP() {
1006
+ return cn(_defineProperty({
1007
+ invalid: this.$invalid,
1008
+ disabled: this.disabled,
1009
+ focus: this.focused,
1010
+ fluid: this.$fluid,
1011
+ filled: this.$variant === 'filled'
1012
+ }, this.size, this.size));
1013
+ },
1014
+ labelDataP: function labelDataP() {
1015
+ return cn(_defineProperty(_defineProperty({
1016
+ placeholder: !this.editable && this.label === this.placeholder,
1017
+ clearable: this.showClear,
1018
+ disabled: this.disabled,
1019
+ editable: this.editable
1020
+ }, this.size, this.size), "empty", !this.editable && !this.$slots['value'] && (this.label === 'p-emptylabel' || this.label.length === 0)));
1021
+ },
1022
+ dropdownIconDataP: function dropdownIconDataP() {
1023
+ return cn(_defineProperty({}, this.size, this.size));
1024
+ },
1025
+ overlayDataP: function overlayDataP() {
1026
+ return cn(_defineProperty({}, 'portal-' + this.appendTo, 'portal-' + this.appendTo));
1000
1027
  }
1001
1028
  },
1002
1029
  directives: {
@@ -1017,12 +1044,13 @@ var script = {
1017
1044
  }
1018
1045
  };
1019
1046
 
1020
- var _hoisted_1 = ["id"];
1021
- var _hoisted_2 = ["name", "id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
1022
- var _hoisted_3 = ["name", "id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-disabled"];
1023
- var _hoisted_4 = ["id"];
1047
+ var _hoisted_1 = ["id", "data-p"];
1048
+ var _hoisted_2 = ["name", "id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "data-p"];
1049
+ var _hoisted_3 = ["name", "id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-disabled", "data-p"];
1050
+ var _hoisted_4 = ["data-p"];
1024
1051
  var _hoisted_5 = ["id"];
1025
- var _hoisted_6 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-selected", "data-p-focused", "data-p-disabled"];
1052
+ var _hoisted_6 = ["id"];
1053
+ var _hoisted_7 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onMousedown", "onMousemove", "data-p-selected", "data-p-focused", "data-p-disabled"];
1026
1054
  function render(_ctx, _cache, $props, $setup, $data, $options) {
1027
1055
  var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
1028
1056
  var _component_InputText = resolveComponent("InputText");
@@ -1040,7 +1068,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1040
1068
  "class": _ctx.cx('root'),
1041
1069
  onClick: _cache[11] || (_cache[11] = function () {
1042
1070
  return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
1043
- })
1071
+ }),
1072
+ "data-p": $options.containerDataP
1044
1073
  }, _ctx.ptmi('root')), [_ctx.editable ? (openBlock(), createElementBlock("input", mergeProps({
1045
1074
  key: 0,
1046
1075
  ref: "focusInput",
@@ -1073,7 +1102,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1073
1102
  }),
1074
1103
  onInput: _cache[3] || (_cache[3] = function () {
1075
1104
  return $options.onEditableInput && $options.onEditableInput.apply($options, arguments);
1076
- })
1105
+ }),
1106
+ "data-p": $options.labelDataP
1077
1107
  }, _ctx.ptm('label')), null, 16, _hoisted_2)) : (openBlock(), createElementBlock("span", mergeProps({
1078
1108
  key: 1,
1079
1109
  ref: "focusInput",
@@ -1099,7 +1129,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1099
1129
  }),
1100
1130
  onKeydown: _cache[6] || (_cache[6] = function () {
1101
1131
  return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
1102
- })
1132
+ }),
1133
+ "data-p": $options.labelDataP
1103
1134
  }, _ctx.ptm('label')), [renderSlot(_ctx.$slots, "value", {
1104
1135
  value: _ctx.d_value,
1105
1136
  placeholder: _ctx.placeholder
@@ -1140,8 +1171,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1140
1171
  }, function () {
1141
1172
  return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
1142
1173
  "class": [_ctx.cx('dropdownIcon'), _ctx.dropdownIcon],
1143
- "aria-hidden": "true"
1144
- }, _ctx.ptm('dropdownIcon')), null, 16, ["class"]))];
1174
+ "aria-hidden": "true",
1175
+ "data-p": $options.dropdownIconDataP
1176
+ }, _ctx.ptm('dropdownIcon')), null, 16, ["class", "data-p"]))];
1145
1177
  })], 16), createVNode(_component_Portal, {
1146
1178
  appendTo: _ctx.appendTo
1147
1179
  }, {
@@ -1164,7 +1196,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1164
1196
  }),
1165
1197
  onKeydown: _cache[10] || (_cache[10] = function () {
1166
1198
  return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
1167
- })
1199
+ }),
1200
+ "data-p": $options.overlayDataP
1168
1201
  }, _ctx.ptm('overlay')), [createElementVNode("span", mergeProps({
1169
1202
  ref: "firstHiddenFocusableElementOnOverlay",
1170
1203
  role: "presentation",
@@ -1284,7 +1317,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1284
1317
  "class": _ctx.cx('optionGroupLabel'),
1285
1318
  ref_for: true
1286
1319
  }, _ctx.ptm('optionGroupLabel')), toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 17)];
1287
- })], 16, _hoisted_5)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
1320
+ })], 16, _hoisted_6)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
1288
1321
  key: 1,
1289
1322
  id: _ctx.$id + '_' + $options.getOptionIndex(i, getItemOptions),
1290
1323
  "class": _ctx.cx('option', {
@@ -1300,13 +1333,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1300
1333
  "aria-disabled": $options.isOptionDisabled(option),
1301
1334
  "aria-setsize": $options.ariaSetSize,
1302
1335
  "aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
1303
- onClick: function onClick($event) {
1336
+ onMousedown: function onMousedown($event) {
1304
1337
  return $options.onOptionSelect($event, option);
1305
1338
  },
1306
1339
  onMousemove: function onMousemove($event) {
1307
1340
  return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
1308
1341
  },
1309
- "data-p-selected": $options.isSelected(option),
1342
+ "data-p-selected": !_ctx.checkmark && $options.isSelected(option),
1310
1343
  "data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
1311
1344
  "data-p-disabled": $options.isOptionDisabled(option),
1312
1345
  ref_for: true
@@ -1329,7 +1362,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1329
1362
  "class": _ctx.cx('optionLabel'),
1330
1363
  ref_for: true
1331
1364
  }, _ctx.ptm('optionLabel')), toDisplayString($options.getOptionLabel(option)), 17)];
1332
- })], 16, _hoisted_6)), [[_directive_ripple]])], 64);
1365
+ })], 16, _hoisted_7)), [[_directive_ripple]])], 64);
1333
1366
  }), 128)), $data.filterValue && (!items || items && items.length === 0) ? (openBlock(), createElementBlock("li", mergeProps({
1334
1367
  key: 0,
1335
1368
  "class": _ctx.cx('emptyMessage'),
@@ -1346,7 +1379,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1346
1379
  "data-p-hidden-accessible": true
1347
1380
  }), [renderSlot(_ctx.$slots, "empty", {}, function () {
1348
1381
  return [createTextVNode(toDisplayString($options.emptyMessageText), 1)];
1349
- })], 16)) : createCommentVNode("", true)], 16, _hoisted_4)];
1382
+ })], 16)) : createCommentVNode("", true)], 16, _hoisted_5)];
1350
1383
  }),
1351
1384
  _: 2
1352
1385
  }, [_ctx.$slots.loader ? {
@@ -1386,7 +1419,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1386
1419
  }, _ctx.ptm('hiddenLastFocusableEl'), {
1387
1420
  "data-p-hidden-accessible": true,
1388
1421
  "data-p-hidden-focusable": true
1389
- }), null, 16)], 16)) : createCommentVNode("", true)];
1422
+ }), null, 16)], 16, _hoisted_4)) : createCommentVNode("", true)];
1390
1423
  }),
1391
1424
  _: 3
1392
1425
  }, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];