primevue 4.3.1 → 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 (254) hide show
  1. package/accordionheader/AccordionHeader.vue +8 -2
  2. package/accordionheader/index.mjs +8 -1
  3. package/accordionheader/index.mjs.map +1 -1
  4. package/autocomplete/AutoComplete.vue +72 -16
  5. package/autocomplete/index.d.ts +3 -3
  6. package/autocomplete/index.mjs +84 -37
  7. package/autocomplete/index.mjs.map +1 -1
  8. package/avatar/Avatar.vue +13 -4
  9. package/avatar/index.d.ts +3 -3
  10. package/avatar/index.mjs +26 -6
  11. package/avatar/index.mjs.map +1 -1
  12. package/badge/Badge.vue +13 -2
  13. package/badge/index.d.ts +1 -1
  14. package/badge/index.mjs +18 -3
  15. package/badge/index.mjs.map +1 -1
  16. package/blockui/BlockUI.vue +15 -4
  17. package/blockui/index.mjs +13 -4
  18. package/blockui/index.mjs.map +1 -1
  19. package/button/Button.vue +30 -3
  20. package/button/index.d.ts +3 -7
  21. package/button/index.mjs +28 -9
  22. package/button/index.mjs.map +1 -1
  23. package/cascadeselect/CascadeSelect.vue +1 -1
  24. package/cascadeselect/index.d.ts +2 -2
  25. package/cascadeselect/index.mjs +1 -2
  26. package/cascadeselect/index.mjs.map +1 -1
  27. package/checkbox/Checkbox.vue +15 -5
  28. package/checkbox/index.d.ts +2 -2
  29. package/checkbox/index.mjs +29 -7
  30. package/checkbox/index.mjs.map +1 -1
  31. package/chip/BaseChip.vue +1 -1
  32. package/chip/Chip.vue +9 -1
  33. package/chip/index.d.ts +1 -1
  34. package/chip/index.mjs +13 -3
  35. package/chip/index.mjs.map +1 -1
  36. package/colorpicker/ColorPicker.vue +10 -2
  37. package/colorpicker/index.d.ts +1 -1
  38. package/colorpicker/index.mjs +9 -2
  39. package/colorpicker/index.mjs.map +1 -1
  40. package/column/index.d.ts +3 -3
  41. package/columngroup/index.d.ts +2 -2
  42. package/confirmationoptions/index.d.ts +1 -1
  43. package/datatable/BodyCell.vue +4 -1
  44. package/datatable/BodyRow.vue +2 -0
  45. package/datatable/ColumnFilter.vue +1 -1
  46. package/datatable/DataTable.vue +103 -44
  47. package/datatable/HeaderCheckbox.vue +2 -2
  48. package/datatable/RowCheckbox.vue +1 -1
  49. package/datatable/TableBody.vue +12 -1
  50. package/datatable/TableFooter.vue +9 -1
  51. package/datatable/TableHeader.vue +9 -2
  52. package/datatable/index.d.ts +45 -37
  53. package/datatable/index.mjs +170 -101
  54. package/datatable/index.mjs.map +1 -1
  55. package/dataview/DataView.vue +4 -0
  56. package/dataview/index.d.ts +61 -4
  57. package/dataview/index.mjs +6 -2
  58. package/dataview/index.mjs.map +1 -1
  59. package/datepicker/DatePicker.vue +370 -234
  60. package/datepicker/index.d.ts +162 -6
  61. package/datepicker/index.mjs +644 -384
  62. package/datepicker/index.mjs.map +1 -1
  63. package/dialog/Dialog.vue +48 -39
  64. package/dialog/index.d.ts +26 -1
  65. package/dialog/index.mjs +73 -50
  66. package/dialog/index.mjs.map +1 -1
  67. package/divider/Divider.vue +13 -3
  68. package/divider/index.d.ts +4 -4
  69. package/divider/index.mjs +18 -5
  70. package/divider/index.mjs.map +1 -1
  71. package/dock/index.d.ts +4 -4
  72. package/drawer/Drawer.vue +30 -20
  73. package/drawer/index.d.ts +12 -2
  74. package/drawer/index.mjs +42 -25
  75. package/drawer/index.mjs.map +1 -1
  76. package/fieldset/Fieldset.vue +8 -2
  77. package/fieldset/index.mjs +20 -10
  78. package/fieldset/index.mjs.map +1 -1
  79. package/fileupload/FileUpload.vue +1 -1
  80. package/fileupload/index.d.ts +2 -2
  81. package/fileupload/index.mjs +2 -2
  82. package/fileupload/index.mjs.map +1 -1
  83. package/floatlabel/index.d.ts +2 -2
  84. package/galleria/Galleria.vue +39 -3
  85. package/galleria/GalleriaItem.vue +8 -9
  86. package/galleria/index.d.ts +3 -3
  87. package/galleria/index.mjs +48 -11
  88. package/galleria/index.mjs.map +1 -1
  89. package/inplace/Inplace.vue +1 -1
  90. package/inplace/index.mjs +3 -2
  91. package/inplace/index.mjs.map +1 -1
  92. package/inputchips/index.d.ts +2 -2
  93. package/inputmask/InputMask.vue +15 -1
  94. package/inputmask/index.d.ts +3 -3
  95. package/inputmask/index.mjs +12 -1
  96. package/inputmask/index.mjs.map +1 -1
  97. package/inputnumber/BaseInputNumber.vue +4 -0
  98. package/inputnumber/InputNumber.vue +29 -14
  99. package/inputnumber/index.d.ts +6 -6
  100. package/inputnumber/index.mjs +47 -25
  101. package/inputnumber/index.mjs.map +1 -1
  102. package/inputotp/index.d.ts +3 -3
  103. package/inputtext/InputText.vue +10 -1
  104. package/inputtext/index.d.ts +4 -5
  105. package/inputtext/index.mjs +14 -1
  106. package/inputtext/index.mjs.map +1 -1
  107. package/keyfilter/index.mjs +12 -19
  108. package/keyfilter/index.mjs.map +1 -1
  109. package/knob/Knob.vue +1 -1
  110. package/knob/index.mjs +1 -1
  111. package/knob/index.mjs.map +1 -1
  112. package/listbox/Listbox.vue +9 -2
  113. package/listbox/index.mjs +11 -3
  114. package/listbox/index.mjs.map +1 -1
  115. package/megamenu/index.d.ts +2 -2
  116. package/menu/Menu.vue +8 -2
  117. package/menu/Menuitem.vue +14 -4
  118. package/menu/index.mjs +36 -16
  119. package/menu/index.mjs.map +1 -1
  120. package/message/Message.vue +16 -7
  121. package/message/index.d.ts +2 -2
  122. package/message/index.mjs +35 -13
  123. package/message/index.mjs.map +1 -1
  124. package/metergroup/MeterGroup.vue +9 -3
  125. package/metergroup/MeterGroupLabel.vue +10 -1
  126. package/metergroup/index.mjs +32 -7
  127. package/metergroup/index.mjs.map +1 -1
  128. package/multiselect/MultiSelect.vue +41 -6
  129. package/multiselect/index.d.ts +3 -3
  130. package/multiselect/index.mjs +53 -21
  131. package/multiselect/index.mjs.map +1 -1
  132. package/organizationchart/index.d.ts +2 -2
  133. package/overlaybadge/index.d.ts +1 -1
  134. package/package.json +3 -3
  135. package/paginator/Paginator.vue +2 -0
  136. package/paginator/index.d.ts +8 -0
  137. package/paginator/index.mjs +3 -1
  138. package/paginator/index.mjs.map +1 -1
  139. package/panel/Panel.vue +29 -22
  140. package/panel/index.d.ts +22 -2
  141. package/panel/index.mjs +55 -31
  142. package/panel/index.mjs.map +1 -1
  143. package/panelmenu/PanelMenuList.vue +1 -1
  144. package/panelmenu/index.mjs +1 -1
  145. package/panelmenu/index.mjs.map +1 -1
  146. package/password/Password.vue +21 -3
  147. package/password/index.d.ts +3 -3
  148. package/password/index.mjs +32 -10
  149. package/password/index.mjs.map +1 -1
  150. package/popover/Popover.vue +3 -3
  151. package/popover/index.mjs +3 -4
  152. package/popover/index.mjs.map +1 -1
  153. package/progressbar/ProgressBar.vue +11 -4
  154. package/progressbar/index.mjs +21 -7
  155. package/progressbar/index.mjs.map +1 -1
  156. package/radiobutton/RadioButton.vue +13 -3
  157. package/radiobutton/index.d.ts +3 -3
  158. package/radiobutton/index.mjs +24 -4
  159. package/radiobutton/index.mjs.map +1 -1
  160. package/rating/Rating.vue +19 -2
  161. package/rating/index.mjs +28 -7
  162. package/rating/index.mjs.map +1 -1
  163. package/scrolltop/ScrollTop.vue +2 -2
  164. package/scrolltop/index.d.ts +2 -2
  165. package/scrolltop/index.mjs +4 -2
  166. package/scrolltop/index.mjs.map +1 -1
  167. package/select/Select.vue +56 -16
  168. package/select/index.d.ts +2 -2
  169. package/select/index.mjs +111 -74
  170. package/select/index.mjs.map +1 -1
  171. package/selectbutton/SelectButton.vue +26 -9
  172. package/selectbutton/index.d.ts +2 -2
  173. package/selectbutton/index.mjs +30 -10
  174. package/selectbutton/index.mjs.map +1 -1
  175. package/skeleton/Skeleton.vue +7 -1
  176. package/skeleton/index.d.ts +3 -3
  177. package/skeleton/index.mjs +12 -1
  178. package/skeleton/index.mjs.map +1 -1
  179. package/slider/Slider.vue +11 -2
  180. package/slider/index.d.ts +2 -2
  181. package/slider/index.mjs +27 -8
  182. package/slider/index.mjs.map +1 -1
  183. package/speeddial/index.d.ts +5 -5
  184. package/splitbutton/index.d.ts +1 -1
  185. package/splitter/Splitter.vue +10 -2
  186. package/splitter/index.d.ts +3 -3
  187. package/splitter/index.mjs +19 -6
  188. package/splitter/index.mjs.map +1 -1
  189. package/step/Step.vue +25 -7
  190. package/step/index.mjs +44 -14
  191. package/step/index.mjs.map +1 -1
  192. package/steppanel/StepPanel.vue +9 -3
  193. package/steppanel/index.d.ts +8 -0
  194. package/steppanel/index.mjs +23 -8
  195. package/steppanel/index.mjs.map +1 -1
  196. package/stepper/StepperSeparator.vue +5 -2
  197. package/stepper/index.d.ts +4 -0
  198. package/tab/Tab.vue +12 -6
  199. package/tab/index.mjs +13 -5
  200. package/tab/index.mjs.map +1 -1
  201. package/tablist/TabList.vue +13 -2
  202. package/tablist/index.mjs +21 -8
  203. package/tablist/index.mjs.map +1 -1
  204. package/tabpanel/TabPanel.vue +2 -2
  205. package/tabpanel/index.mjs +2 -2
  206. package/tabpanel/index.mjs.map +1 -1
  207. package/tag/Tag.vue +11 -2
  208. package/tag/index.mjs +17 -3
  209. package/tag/index.mjs.map +1 -1
  210. package/textarea/Textarea.vue +10 -1
  211. package/textarea/index.d.ts +4 -5
  212. package/textarea/index.mjs +14 -1
  213. package/textarea/index.mjs.map +1 -1
  214. package/tieredmenu/TieredMenu.vue +1 -1
  215. package/tieredmenu/index.mjs +1 -2
  216. package/tieredmenu/index.mjs.map +1 -1
  217. package/timeline/Timeline.vue +16 -7
  218. package/timeline/index.d.ts +3 -3
  219. package/timeline/index.mjs +42 -11
  220. package/timeline/index.mjs.map +1 -1
  221. package/toast/Toast.vue +10 -1
  222. package/toast/ToastMessage.vue +29 -19
  223. package/toast/index.d.ts +2 -2
  224. package/toast/index.mjs +77 -38
  225. package/toast/index.mjs.map +1 -1
  226. package/togglebutton/ToggleButton.vue +10 -1
  227. package/togglebutton/index.d.ts +3 -3
  228. package/togglebutton/index.mjs +19 -4
  229. package/togglebutton/index.mjs.map +1 -1
  230. package/toggleswitch/ToggleSwitch.vue +11 -3
  231. package/toggleswitch/index.mjs +20 -5
  232. package/toggleswitch/index.mjs.map +1 -1
  233. package/tooltip/index.mjs +22 -22
  234. package/tooltip/index.mjs.map +1 -1
  235. package/tree/Tree.vue +14 -2
  236. package/tree/TreeNode.vue +2 -2
  237. package/tree/index.d.ts +3 -3
  238. package/tree/index.mjs +28 -10
  239. package/tree/index.mjs.map +1 -1
  240. package/treeselect/TreeSelect.vue +1 -1
  241. package/treeselect/index.d.ts +6 -6
  242. package/treeselect/index.mjs +1 -2
  243. package/treeselect/index.mjs.map +1 -1
  244. package/treetable/index.d.ts +7 -7
  245. package/treetable/style/index.mjs +2 -3
  246. package/treetable/style/index.mjs.map +1 -1
  247. package/umd/primevue.min.js +1 -1
  248. package/virtualscroller/VirtualScroller.vue +13 -2
  249. package/virtualscroller/index.d.ts +2 -2
  250. package/virtualscroller/index.mjs +14 -4
  251. package/virtualscroller/index.mjs.map +1 -1
  252. package/virtualscroller/style/index.mjs +1 -1
  253. package/virtualscroller/style/index.mjs.map +1 -1
  254. package/web-types.json +1 -1
@@ -1,3 +1,4 @@
1
+ import { cn } from '@primeuix/utils';
1
2
  import { findSingle, focus, isTouchDevice, relativePosition, getOuterWidth, absolutePosition, addStyle } from '@primeuix/utils/dom';
2
3
  import { isNotEmpty, findLastIndex, equals, isEmpty, resolveFieldData } from '@primeuix/utils/object';
3
4
  import { ZIndex } from '@primeuix/utils/zindex';
@@ -12,7 +13,7 @@ import Ripple from 'primevue/ripple';
12
13
  import VirtualScroller from 'primevue/virtualscroller';
13
14
  import BaseInput from '@primevue/core/baseinput';
14
15
  import AutoCompleteStyle from 'primevue/autocomplete/style';
15
- import { resolveComponent, resolveDirective, createElementBlock, openBlock, mergeProps, createBlock, createCommentVNode, renderSlot, createElementVNode, createVNode, normalizeStyle, normalizeClass, Fragment, renderList, withCtx, resolveDynamicComponent, toDisplayString, Transition, createSlots, withDirectives, createTextVNode } from 'vue';
16
+ import { resolveComponent, resolveDirective, createElementBlock, openBlock, mergeProps, createBlock, createCommentVNode, renderSlot, createVNode, normalizeStyle, normalizeClass, createElementVNode, Fragment, renderList, withCtx, resolveDynamicComponent, toDisplayString, Transition, createSlots, withDirectives, createTextVNode } from 'vue';
16
17
 
17
18
  var script$1 = {
18
19
  name: 'BaseAutoComplete',
@@ -192,6 +193,9 @@ var script$1 = {
192
193
  }
193
194
  };
194
195
 
196
+ function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
197
+ function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
198
+ function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
195
199
  function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
196
200
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
197
201
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -378,9 +382,11 @@ var script = {
378
382
  break;
379
383
  case 'Enter':
380
384
  case 'NumpadEnter':
381
- case 'Space':
382
385
  this.onEnterKey(event);
383
386
  break;
387
+ case 'Space':
388
+ this.onSpaceKey(event);
389
+ break;
384
390
  case 'Escape':
385
391
  this.onEscapeKey(event);
386
392
  break;
@@ -429,7 +435,8 @@ var script = {
429
435
 
430
436
  // when forceSelection is on, prevent called twice onOptionSelect()
431
437
  if (this.visibleOptions && !this.multiple) {
432
- var value = this.multiple ? this.$refs.focusInput.value : this.$refs.focusInput.$el.value;
438
+ var _this$$refs$focusInpu;
439
+ var value = this.multiple ? this.$refs.focusInput.value : (_this$$refs$focusInpu = this.$refs.focusInput) === null || _this$$refs$focusInpu === void 0 || (_this$$refs$focusInpu = _this$$refs$focusInpu.$el) === null || _this$$refs$focusInpu === void 0 ? void 0 : _this$$refs$focusInpu.value;
433
440
  var matchedValue = this.visibleOptions.find(function (option) {
434
441
  return _this4.isOptionMatched(option, value || '');
435
442
  });
@@ -439,7 +446,13 @@ var script = {
439
446
  }
440
447
  }
441
448
  if (!valid) {
442
- if (this.multiple) this.$refs.focusInput.value = '';else this.$refs.focusInput.$el.value = '';
449
+ if (this.multiple) {
450
+ this.$refs.focusInput.value = '';
451
+ } else {
452
+ var _this$$refs$focusInpu2;
453
+ var inputEl = (_this$$refs$focusInpu2 = this.$refs.focusInput) === null || _this$$refs$focusInpu2 === void 0 ? void 0 : _this$$refs$focusInpu2.$el;
454
+ inputEl && (inputEl.value = '');
455
+ }
443
456
  this.$emit('clear');
444
457
  !this.multiple && this.updateModel(event, null);
445
458
  }
@@ -634,8 +647,10 @@ var script = {
634
647
  onEnterKey: function onEnterKey(event) {
635
648
  if (!this.typeahead) {
636
649
  if (this.multiple) {
637
- this.updateModel(event, [].concat(_toConsumableArray(this.d_value || []), [event.target.value]));
638
- this.$refs.focusInput.value = '';
650
+ if (event.target.value.trim()) {
651
+ this.updateModel(event, [].concat(_toConsumableArray(this.d_value || []), [event.target.value.trim()]));
652
+ this.$refs.focusInput.value = '';
653
+ }
639
654
  }
640
655
  } else {
641
656
  if (!this.overlayVisible) {
@@ -653,7 +668,11 @@ var script = {
653
668
  this.hide();
654
669
  }
655
670
  }
656
- event.preventDefault();
671
+ },
672
+ onSpaceKey: function onSpaceKey(event) {
673
+ if (this.focusedOptionIndex !== -1) {
674
+ this.onEnterKey(event);
675
+ }
657
676
  },
658
677
  onEscapeKey: function onEscapeKey(event) {
659
678
  this.overlayVisible && this.hide(true);
@@ -705,8 +724,7 @@ var script = {
705
724
  ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);
706
725
  addStyle(el, {
707
726
  position: 'absolute',
708
- top: '0',
709
- left: '0'
727
+ top: '0'
710
728
  });
711
729
  this.alignOverlay();
712
730
  },
@@ -1044,6 +1062,24 @@ var script = {
1044
1062
  },
1045
1063
  panelId: function panelId() {
1046
1064
  return this.$id + '_panel';
1065
+ },
1066
+ containerDataP: function containerDataP() {
1067
+ return cn({
1068
+ fluid: this.$fluid
1069
+ });
1070
+ },
1071
+ overlayDataP: function overlayDataP() {
1072
+ return cn(_defineProperty$1({}, 'portal-' + this.appendTo, 'portal-' + this.appendTo));
1073
+ },
1074
+ inputMultipleDataP: function inputMultipleDataP() {
1075
+ return cn(_defineProperty$1({
1076
+ invalid: this.$invalid,
1077
+ disabled: this.disabled,
1078
+ focus: this.focused,
1079
+ fluid: this.$fluid,
1080
+ filled: this.$variant === 'filled',
1081
+ empty: !this.$filled
1082
+ }, this.size, this.size));
1047
1083
  }
1048
1084
  },
1049
1085
  components: {
@@ -1065,14 +1101,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1065
1101
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
1066
1102
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
1067
1103
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1068
- var _hoisted_1 = ["aria-activedescendant"];
1069
- var _hoisted_2 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
1070
- var _hoisted_3 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
1071
- var _hoisted_4 = ["disabled", "aria-expanded", "aria-controls"];
1072
- var _hoisted_5 = ["id"];
1073
- var _hoisted_6 = ["id", "aria-label"];
1074
- var _hoisted_7 = ["id"];
1075
- var _hoisted_8 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-selected", "data-p-focus", "data-p-disabled"];
1104
+ var _hoisted_1 = ["data-p"];
1105
+ var _hoisted_2 = ["aria-activedescendant", "data-p-has-dropdown", "data-p"];
1106
+ var _hoisted_3 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
1107
+ var _hoisted_4 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
1108
+ var _hoisted_5 = ["data-p-has-dropdown"];
1109
+ var _hoisted_6 = ["disabled", "aria-expanded", "aria-controls"];
1110
+ var _hoisted_7 = ["id", "data-p"];
1111
+ var _hoisted_8 = ["id", "aria-label"];
1112
+ var _hoisted_9 = ["id"];
1113
+ var _hoisted_10 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-selected", "data-p-focused", "data-p-disabled"];
1076
1114
  function render(_ctx, _cache, $props, $setup, $data, $options) {
1077
1115
  var _component_InputText = resolveComponent("InputText");
1078
1116
  var _component_Chip = resolveComponent("Chip");
@@ -1086,7 +1124,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1086
1124
  style: _ctx.sx('root'),
1087
1125
  onClick: _cache[11] || (_cache[11] = function () {
1088
1126
  return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
1089
- })
1127
+ }),
1128
+ "data-p": $options.containerDataP
1090
1129
  }, _ctx.ptmi('root')), [!_ctx.multiple ? (openBlock(), createBlock(_component_InputText, {
1091
1130
  key: 0,
1092
1131
  ref: "focusInput",
@@ -1118,8 +1157,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1118
1157
  onInput: $options.onInput,
1119
1158
  onChange: $options.onChange,
1120
1159
  unstyled: _ctx.unstyled,
1160
+ "data-p-has-dropdown": _ctx.dropdown,
1121
1161
  pt: _ctx.ptm('pcInputText')
1122
- }, null, 8, ["id", "name", "class", "style", "value", "placeholder", "tabindex", "fluid", "disabled", "size", "invalid", "variant", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "onFocus", "onBlur", "onKeydown", "onInput", "onChange", "unstyled", "pt"])) : createCommentVNode("", true), _ctx.multiple ? (openBlock(), createElementBlock("ul", mergeProps({
1162
+ }, null, 8, ["id", "name", "class", "style", "value", "placeholder", "tabindex", "fluid", "disabled", "size", "invalid", "variant", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "onFocus", "onBlur", "onKeydown", "onInput", "onChange", "unstyled", "data-p-has-dropdown", "pt"])) : createCommentVNode("", true), _ctx.multiple ? (openBlock(), createElementBlock("ul", mergeProps({
1123
1163
  key: 1,
1124
1164
  ref: "multiContainer",
1125
1165
  "class": _ctx.cx('inputMultiple'),
@@ -1135,7 +1175,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1135
1175
  }),
1136
1176
  onKeydown: _cache[7] || (_cache[7] = function () {
1137
1177
  return $options.onMultipleContainerKeyDown && $options.onMultipleContainerKeyDown.apply($options, arguments);
1138
- })
1178
+ }),
1179
+ "data-p-has-dropdown": _ctx.dropdown,
1180
+ "data-p": $options.inputMultipleDataP
1139
1181
  }, _ctx.ptm('inputMultiple')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.d_value, function (option, i) {
1140
1182
  return openBlock(), createElementBlock("li", mergeProps({
1141
1183
  key: "".concat(i, "_").concat($options.getOptionLabel(option)),
@@ -1167,6 +1209,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1167
1209
  onRemove: function onRemove($event) {
1168
1210
  return $options.removeOption($event, i);
1169
1211
  },
1212
+ "data-p-focused": $data.focusedMultipleOptionIndex === i,
1170
1213
  pt: _ctx.ptm('pcChip')
1171
1214
  }, {
1172
1215
  removeicon: withCtx(function () {
@@ -1179,8 +1222,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1179
1222
  })];
1180
1223
  }),
1181
1224
  _: 2
1182
- }, 1032, ["class", "label", "removeIcon", "unstyled", "onRemove", "pt"])];
1183
- })], 16, _hoisted_2);
1225
+ }, 1032, ["class", "label", "removeIcon", "unstyled", "onRemove", "data-p-focused", "pt"])];
1226
+ })], 16, _hoisted_3);
1184
1227
  }), 128)), createElementVNode("li", mergeProps({
1185
1228
  "class": _ctx.cx('inputChip'),
1186
1229
  role: "option"
@@ -1218,20 +1261,22 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1218
1261
  onChange: _cache[4] || (_cache[4] = function () {
1219
1262
  return $options.onChange && $options.onChange.apply($options, arguments);
1220
1263
  })
1221
- }, _ctx.ptm('input')), null, 16, _hoisted_3)], 16)], 16, _hoisted_1)) : createCommentVNode("", true), $data.searching || _ctx.loading ? renderSlot(_ctx.$slots, _ctx.$slots.loader ? 'loader' : 'loadingicon', {
1264
+ }, _ctx.ptm('input')), null, 16, _hoisted_4)], 16)], 16, _hoisted_2)) : createCommentVNode("", true), $data.searching || _ctx.loading ? renderSlot(_ctx.$slots, _ctx.$slots.loader ? 'loader' : 'loadingicon', {
1222
1265
  key: 2,
1223
1266
  "class": normalizeClass(_ctx.cx('loader'))
1224
1267
  }, function () {
1225
1268
  return [_ctx.loader || _ctx.loadingIcon ? (openBlock(), createElementBlock("i", mergeProps({
1226
1269
  key: 0,
1227
1270
  "class": ['pi-spin', _ctx.cx('loader'), _ctx.loader, _ctx.loadingIcon],
1228
- "aria-hidden": "true"
1229
- }, _ctx.ptm('loader')), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
1271
+ "aria-hidden": "true",
1272
+ "data-p-has-dropdown": _ctx.dropdown
1273
+ }, _ctx.ptm('loader')), null, 16, _hoisted_5)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
1230
1274
  key: 1,
1231
1275
  "class": _ctx.cx('loader'),
1232
1276
  spin: "",
1233
- "aria-hidden": "true"
1234
- }, _ctx.ptm('loader')), null, 16, ["class"]))];
1277
+ "aria-hidden": "true",
1278
+ "data-p-has-dropdown": _ctx.dropdown
1279
+ }, _ctx.ptm('loader')), null, 16, ["class", "data-p-has-dropdown"]))];
1235
1280
  }) : createCommentVNode("", true), renderSlot(_ctx.$slots, _ctx.$slots.dropdown ? 'dropdown' : 'dropdownbutton', {
1236
1281
  toggleCallback: function toggleCallback(event) {
1237
1282
  return $options.onDropdownClick(event);
@@ -1255,14 +1300,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1255
1300
  return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
1256
1301
  "class": _ctx.dropdownIcon
1257
1302
  }, _ctx.ptm('dropdownIcon')), null, 16, ["class"]))];
1258
- })], 16, _hoisted_4)) : createCommentVNode("", true)];
1259
- }), createElementVNode("span", mergeProps({
1303
+ })], 16, _hoisted_6)) : createCommentVNode("", true)];
1304
+ }), _ctx.typeahead ? (openBlock(), createElementBlock("span", mergeProps({
1305
+ key: 3,
1260
1306
  role: "status",
1261
1307
  "aria-live": "polite",
1262
1308
  "class": "p-hidden-accessible"
1263
1309
  }, _ctx.ptm('hiddenSearchResult'), {
1264
1310
  "data-p-hidden-accessible": true
1265
- }), toDisplayString($options.searchResultMessageText), 17), createVNode(_component_Portal, {
1311
+ }), toDisplayString($options.searchResultMessageText), 17)) : createCommentVNode("", true), createVNode(_component_Portal, {
1266
1312
  appendTo: _ctx.appendTo
1267
1313
  }, {
1268
1314
  "default": withCtx(function () {
@@ -1285,7 +1331,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1285
1331
  }),
1286
1332
  onKeydown: _cache[10] || (_cache[10] = function () {
1287
1333
  return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
1288
- })
1334
+ }),
1335
+ "data-p": $options.overlayDataP
1289
1336
  }, _ctx.ptm('overlay')), [renderSlot(_ctx.$slots, "header", {
1290
1337
  value: _ctx.d_value,
1291
1338
  suggestions: $options.visibleOptions
@@ -1338,7 +1385,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1338
1385
  index: $options.getOptionIndex(i, getItemOptions)
1339
1386
  }, function () {
1340
1387
  return [createTextVNode(toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];
1341
- })], 16, _hoisted_7)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
1388
+ })], 16, _hoisted_9)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
1342
1389
  key: 1,
1343
1390
  id: _ctx.$id + '_' + $options.getOptionIndex(i, getItemOptions),
1344
1391
  style: {
@@ -1362,7 +1409,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1362
1409
  return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
1363
1410
  },
1364
1411
  "data-p-selected": $options.isSelected(option),
1365
- "data-p-focus": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
1412
+ "data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
1366
1413
  "data-p-disabled": $options.isOptionDisabled(option),
1367
1414
  ref_for: true
1368
1415
  }, $options.getPTOptions(option, getItemOptions, i, 'option')), [renderSlot(_ctx.$slots, "option", {
@@ -1370,14 +1417,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1370
1417
  index: $options.getOptionIndex(i, getItemOptions)
1371
1418
  }, function () {
1372
1419
  return [createTextVNode(toDisplayString($options.getOptionLabel(option)), 1)];
1373
- })], 16, _hoisted_8)), [[_directive_ripple]])], 64);
1420
+ })], 16, _hoisted_10)), [[_directive_ripple]])], 64);
1374
1421
  }), 128)), _ctx.showEmptyMessage && (!items || items && items.length === 0) ? (openBlock(), createElementBlock("li", mergeProps({
1375
1422
  key: 0,
1376
1423
  "class": _ctx.cx('emptyMessage'),
1377
1424
  role: "option"
1378
1425
  }, _ctx.ptm('emptyMessage')), [renderSlot(_ctx.$slots, "empty", {}, function () {
1379
1426
  return [createTextVNode(toDisplayString($options.searchResultMessageText), 1)];
1380
- })], 16)) : createCommentVNode("", true)], 16, _hoisted_6)];
1427
+ })], 16)) : createCommentVNode("", true)], 16, _hoisted_8)];
1381
1428
  }),
1382
1429
  _: 2
1383
1430
  }, [_ctx.$slots.loader ? {
@@ -1398,13 +1445,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1398
1445
  "class": "p-hidden-accessible"
1399
1446
  }, _ctx.ptm('hiddenSelectedMessage'), {
1400
1447
  "data-p-hidden-accessible": true
1401
- }), toDisplayString($options.selectedMessageText), 17)], 16, _hoisted_5)) : createCommentVNode("", true)];
1448
+ }), toDisplayString($options.selectedMessageText), 17)], 16, _hoisted_7)) : createCommentVNode("", true)];
1402
1449
  }),
1403
1450
  _: 3
1404
1451
  }, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
1405
1452
  }),
1406
1453
  _: 3
1407
- }, 8, ["appendTo"])], 16);
1454
+ }, 8, ["appendTo"])], 16, _hoisted_1);
1408
1455
  }
1409
1456
 
1410
1457
  script.render = render;