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
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div ref="container" :class="cx('root')" :style="sx('root')" @click="onContainerClick" v-bind="ptmi('root')">
2
+ <div ref="container" :class="cx('root')" :style="sx('root')" @click="onContainerClick" :data-p="containerDataP" v-bind="ptmi('root')">
3
3
  <InputText
4
4
  v-if="!multiple"
5
5
  ref="focusInput"
@@ -31,6 +31,7 @@
31
31
  @input="onInput"
32
32
  @change="onChange"
33
33
  :unstyled="unstyled"
34
+ :data-p-has-dropdown="dropdown"
34
35
  :pt="ptm('pcInputText')"
35
36
  />
36
37
  <ul
@@ -44,6 +45,8 @@
44
45
  @focus="onMultipleContainerFocus"
45
46
  @blur="onMultipleContainerBlur"
46
47
  @keydown="onMultipleContainerKeyDown"
48
+ :data-p-has-dropdown="dropdown"
49
+ :data-p="inputMultipleDataP"
47
50
  v-bind="ptm('inputMultiple')"
48
51
  >
49
52
  <li
@@ -60,7 +63,16 @@
60
63
  >
61
64
  <slot name="chip" :class="cx('pcChip')" :value="option" :index="i" :removeCallback="(event) => removeOption(event, i)" v-bind="ptm('pcChip')">
62
65
  <!-- TODO: removetokenicon and removeTokenIcon deprecated since v4.0. Use chipicon slot and chipIcon prop-->
63
- <Chip :class="cx('pcChip')" :label="getOptionLabel(option)" :removeIcon="chipIcon || removeTokenIcon" removable :unstyled="unstyled" @remove="removeOption($event, i)" :pt="ptm('pcChip')">
66
+ <Chip
67
+ :class="cx('pcChip')"
68
+ :label="getOptionLabel(option)"
69
+ :removeIcon="chipIcon || removeTokenIcon"
70
+ removable
71
+ :unstyled="unstyled"
72
+ @remove="removeOption($event, i)"
73
+ :data-p-focused="focusedMultipleOptionIndex === i"
74
+ :pt="ptm('pcChip')"
75
+ >
64
76
  <template #removeicon>
65
77
  <slot :name="$slots.chipicon ? 'chipicon' : 'removetokenicon'" :class="cx('chipIcon')" :index="i" :removeCallback="(event) => removeOption(event, i)" />
66
78
  </template>
@@ -97,8 +109,8 @@
97
109
  </li>
98
110
  </ul>
99
111
  <slot v-if="searching || loading" :class="cx('loader')" :name="$slots.loader ? 'loader' : 'loadingicon'">
100
- <i v-if="loader || loadingIcon" :class="['pi-spin', cx('loader'), loader, loadingIcon]" aria-hidden="true" v-bind="ptm('loader')" />
101
- <SpinnerIcon v-else :class="cx('loader')" spin aria-hidden="true" v-bind="ptm('loader')" />
112
+ <i v-if="loader || loadingIcon" :class="['pi-spin', cx('loader'), loader, loadingIcon]" aria-hidden="true" :data-p-has-dropdown="dropdown" v-bind="ptm('loader')" />
113
+ <SpinnerIcon v-else :class="cx('loader')" spin aria-hidden="true" :data-p-has-dropdown="dropdown" v-bind="ptm('loader')" />
102
114
  </slot>
103
115
  <slot :name="$slots.dropdown ? 'dropdown' : 'dropdownbutton'" :toggleCallback="(event) => onDropdownClick(event)">
104
116
  <button
@@ -118,12 +130,22 @@
118
130
  </slot>
119
131
  </button>
120
132
  </slot>
121
- <span role="status" aria-live="polite" class="p-hidden-accessible" v-bind="ptm('hiddenSearchResult')" :data-p-hidden-accessible="true">
133
+ <span v-if="typeahead" role="status" aria-live="polite" class="p-hidden-accessible" v-bind="ptm('hiddenSearchResult')" :data-p-hidden-accessible="true">
122
134
  {{ searchResultMessageText }}
123
135
  </span>
124
136
  <Portal :appendTo="appendTo">
125
137
  <transition name="p-connected-overlay" @enter="onOverlayEnter" @after-enter="onOverlayAfterEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave" v-bind="ptm('transition')">
126
- <div v-if="overlayVisible" :ref="overlayRef" :id="panelId" :class="[cx('overlay'), panelClass, overlayClass]" :style="{ ...panelStyle, ...overlayStyle }" @click="onOverlayClick" @keydown="onOverlayKeyDown" v-bind="ptm('overlay')">
138
+ <div
139
+ v-if="overlayVisible"
140
+ :ref="overlayRef"
141
+ :id="panelId"
142
+ :class="[cx('overlay'), panelClass, overlayClass]"
143
+ :style="{ ...panelStyle, ...overlayStyle }"
144
+ @click="onOverlayClick"
145
+ @keydown="onOverlayKeyDown"
146
+ :data-p="overlayDataP"
147
+ v-bind="ptm('overlay')"
148
+ >
127
149
  <slot name="header" :value="d_value" :suggestions="visibleOptions"></slot>
128
150
  <div :class="cx('listContainer')" :style="{ 'max-height': virtualScrollerDisabled ? scrollHeight : '' }" v-bind="ptm('listContainer')">
129
151
  <VirtualScroller :ref="virtualScrollerRef" v-bind="virtualScrollerOptions" :style="{ height: scrollHeight }" :items="visibleOptions" :tabindex="-1" :disabled="virtualScrollerDisabled" :pt="ptm('virtualScroller')">
@@ -155,7 +177,7 @@
155
177
  @click="onOptionSelect($event, option)"
156
178
  @mousemove="onOptionMouseMove($event, getOptionIndex(i, getItemOptions))"
157
179
  :data-p-selected="isSelected(option)"
158
- :data-p-focus="focusedOptionIndex === getOptionIndex(i, getItemOptions)"
180
+ :data-p-focused="focusedOptionIndex === getOptionIndex(i, getItemOptions)"
159
181
  :data-p-disabled="isOptionDisabled(option)"
160
182
  v-bind="getPTOptions(option, getItemOptions, i, 'option')"
161
183
  >
@@ -183,6 +205,7 @@
183
205
  </template>
184
206
 
185
207
  <script>
208
+ import { cn } from '@primeuix/utils';
186
209
  import { absolutePosition, addStyle, findSingle, focus, getOuterWidth, isTouchDevice, relativePosition } from '@primeuix/utils/dom';
187
210
  import { equals, findLastIndex, isEmpty, isNotEmpty, resolveFieldData } from '@primeuix/utils/object';
188
211
  import { ZIndex } from '@primeuix/utils/zindex';
@@ -689,8 +712,10 @@ export default {
689
712
  onEnterKey(event) {
690
713
  if (!this.typeahead) {
691
714
  if (this.multiple) {
692
- this.updateModel(event, [...(this.d_value || []), event.target.value]);
693
- this.$refs.focusInput.value = '';
715
+ if (event.target.value.trim()) {
716
+ this.updateModel(event, [...(this.d_value || []), event.target.value.trim()]);
717
+ this.$refs.focusInput.value = '';
718
+ }
694
719
  }
695
720
  } else {
696
721
  if (!this.overlayVisible) {
@@ -762,7 +787,7 @@ export default {
762
787
  onOverlayEnter(el) {
763
788
  ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);
764
789
 
765
- addStyle(el, { position: 'absolute', top: '0', left: '0' });
790
+ addStyle(el, { position: 'absolute', top: '0' });
766
791
  this.alignOverlay();
767
792
  },
768
793
  onOverlayAfterEnter() {
@@ -1062,6 +1087,27 @@ export default {
1062
1087
  },
1063
1088
  panelId() {
1064
1089
  return this.$id + '_panel';
1090
+ },
1091
+ containerDataP() {
1092
+ return cn({
1093
+ fluid: this.$fluid
1094
+ });
1095
+ },
1096
+ overlayDataP() {
1097
+ return cn({
1098
+ ['portal-' + this.appendTo]: 'portal-' + this.appendTo
1099
+ });
1100
+ },
1101
+ inputMultipleDataP() {
1102
+ return cn({
1103
+ invalid: this.$invalid,
1104
+ disabled: this.disabled,
1105
+ focus: this.focused,
1106
+ fluid: this.$fluid,
1107
+ filled: this.$variant === 'filled',
1108
+ empty: !this.$filled,
1109
+ [this.size]: this.size
1110
+ });
1065
1111
  }
1066
1112
  },
1067
1113
  components: {
@@ -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."); }
@@ -643,8 +647,10 @@ var script = {
643
647
  onEnterKey: function onEnterKey(event) {
644
648
  if (!this.typeahead) {
645
649
  if (this.multiple) {
646
- this.updateModel(event, [].concat(_toConsumableArray(this.d_value || []), [event.target.value]));
647
- 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
+ }
648
654
  }
649
655
  } else {
650
656
  if (!this.overlayVisible) {
@@ -718,8 +724,7 @@ var script = {
718
724
  ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);
719
725
  addStyle(el, {
720
726
  position: 'absolute',
721
- top: '0',
722
- left: '0'
727
+ top: '0'
723
728
  });
724
729
  this.alignOverlay();
725
730
  },
@@ -1057,6 +1062,24 @@ var script = {
1057
1062
  },
1058
1063
  panelId: function panelId() {
1059
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));
1060
1083
  }
1061
1084
  },
1062
1085
  components: {
@@ -1078,14 +1101,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1078
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; }
1079
1102
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
1080
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); }
1081
- var _hoisted_1 = ["aria-activedescendant"];
1082
- var _hoisted_2 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
1083
- var _hoisted_3 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
1084
- var _hoisted_4 = ["disabled", "aria-expanded", "aria-controls"];
1085
- var _hoisted_5 = ["id"];
1086
- var _hoisted_6 = ["id", "aria-label"];
1087
- var _hoisted_7 = ["id"];
1088
- 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"];
1089
1114
  function render(_ctx, _cache, $props, $setup, $data, $options) {
1090
1115
  var _component_InputText = resolveComponent("InputText");
1091
1116
  var _component_Chip = resolveComponent("Chip");
@@ -1099,7 +1124,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1099
1124
  style: _ctx.sx('root'),
1100
1125
  onClick: _cache[11] || (_cache[11] = function () {
1101
1126
  return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
1102
- })
1127
+ }),
1128
+ "data-p": $options.containerDataP
1103
1129
  }, _ctx.ptmi('root')), [!_ctx.multiple ? (openBlock(), createBlock(_component_InputText, {
1104
1130
  key: 0,
1105
1131
  ref: "focusInput",
@@ -1131,8 +1157,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1131
1157
  onInput: $options.onInput,
1132
1158
  onChange: $options.onChange,
1133
1159
  unstyled: _ctx.unstyled,
1160
+ "data-p-has-dropdown": _ctx.dropdown,
1134
1161
  pt: _ctx.ptm('pcInputText')
1135
- }, 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({
1136
1163
  key: 1,
1137
1164
  ref: "multiContainer",
1138
1165
  "class": _ctx.cx('inputMultiple'),
@@ -1148,7 +1175,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1148
1175
  }),
1149
1176
  onKeydown: _cache[7] || (_cache[7] = function () {
1150
1177
  return $options.onMultipleContainerKeyDown && $options.onMultipleContainerKeyDown.apply($options, arguments);
1151
- })
1178
+ }),
1179
+ "data-p-has-dropdown": _ctx.dropdown,
1180
+ "data-p": $options.inputMultipleDataP
1152
1181
  }, _ctx.ptm('inputMultiple')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.d_value, function (option, i) {
1153
1182
  return openBlock(), createElementBlock("li", mergeProps({
1154
1183
  key: "".concat(i, "_").concat($options.getOptionLabel(option)),
@@ -1180,6 +1209,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1180
1209
  onRemove: function onRemove($event) {
1181
1210
  return $options.removeOption($event, i);
1182
1211
  },
1212
+ "data-p-focused": $data.focusedMultipleOptionIndex === i,
1183
1213
  pt: _ctx.ptm('pcChip')
1184
1214
  }, {
1185
1215
  removeicon: withCtx(function () {
@@ -1192,8 +1222,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1192
1222
  })];
1193
1223
  }),
1194
1224
  _: 2
1195
- }, 1032, ["class", "label", "removeIcon", "unstyled", "onRemove", "pt"])];
1196
- })], 16, _hoisted_2);
1225
+ }, 1032, ["class", "label", "removeIcon", "unstyled", "onRemove", "data-p-focused", "pt"])];
1226
+ })], 16, _hoisted_3);
1197
1227
  }), 128)), createElementVNode("li", mergeProps({
1198
1228
  "class": _ctx.cx('inputChip'),
1199
1229
  role: "option"
@@ -1231,20 +1261,22 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1231
1261
  onChange: _cache[4] || (_cache[4] = function () {
1232
1262
  return $options.onChange && $options.onChange.apply($options, arguments);
1233
1263
  })
1234
- }, _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', {
1235
1265
  key: 2,
1236
1266
  "class": normalizeClass(_ctx.cx('loader'))
1237
1267
  }, function () {
1238
1268
  return [_ctx.loader || _ctx.loadingIcon ? (openBlock(), createElementBlock("i", mergeProps({
1239
1269
  key: 0,
1240
1270
  "class": ['pi-spin', _ctx.cx('loader'), _ctx.loader, _ctx.loadingIcon],
1241
- "aria-hidden": "true"
1242
- }, _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({
1243
1274
  key: 1,
1244
1275
  "class": _ctx.cx('loader'),
1245
1276
  spin: "",
1246
- "aria-hidden": "true"
1247
- }, _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"]))];
1248
1280
  }) : createCommentVNode("", true), renderSlot(_ctx.$slots, _ctx.$slots.dropdown ? 'dropdown' : 'dropdownbutton', {
1249
1281
  toggleCallback: function toggleCallback(event) {
1250
1282
  return $options.onDropdownClick(event);
@@ -1268,14 +1300,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1268
1300
  return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
1269
1301
  "class": _ctx.dropdownIcon
1270
1302
  }, _ctx.ptm('dropdownIcon')), null, 16, ["class"]))];
1271
- })], 16, _hoisted_4)) : createCommentVNode("", true)];
1272
- }), createElementVNode("span", mergeProps({
1303
+ })], 16, _hoisted_6)) : createCommentVNode("", true)];
1304
+ }), _ctx.typeahead ? (openBlock(), createElementBlock("span", mergeProps({
1305
+ key: 3,
1273
1306
  role: "status",
1274
1307
  "aria-live": "polite",
1275
1308
  "class": "p-hidden-accessible"
1276
1309
  }, _ctx.ptm('hiddenSearchResult'), {
1277
1310
  "data-p-hidden-accessible": true
1278
- }), toDisplayString($options.searchResultMessageText), 17), createVNode(_component_Portal, {
1311
+ }), toDisplayString($options.searchResultMessageText), 17)) : createCommentVNode("", true), createVNode(_component_Portal, {
1279
1312
  appendTo: _ctx.appendTo
1280
1313
  }, {
1281
1314
  "default": withCtx(function () {
@@ -1298,7 +1331,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1298
1331
  }),
1299
1332
  onKeydown: _cache[10] || (_cache[10] = function () {
1300
1333
  return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
1301
- })
1334
+ }),
1335
+ "data-p": $options.overlayDataP
1302
1336
  }, _ctx.ptm('overlay')), [renderSlot(_ctx.$slots, "header", {
1303
1337
  value: _ctx.d_value,
1304
1338
  suggestions: $options.visibleOptions
@@ -1351,7 +1385,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1351
1385
  index: $options.getOptionIndex(i, getItemOptions)
1352
1386
  }, function () {
1353
1387
  return [createTextVNode(toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];
1354
- })], 16, _hoisted_7)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
1388
+ })], 16, _hoisted_9)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
1355
1389
  key: 1,
1356
1390
  id: _ctx.$id + '_' + $options.getOptionIndex(i, getItemOptions),
1357
1391
  style: {
@@ -1375,7 +1409,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1375
1409
  return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
1376
1410
  },
1377
1411
  "data-p-selected": $options.isSelected(option),
1378
- "data-p-focus": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
1412
+ "data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
1379
1413
  "data-p-disabled": $options.isOptionDisabled(option),
1380
1414
  ref_for: true
1381
1415
  }, $options.getPTOptions(option, getItemOptions, i, 'option')), [renderSlot(_ctx.$slots, "option", {
@@ -1383,14 +1417,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1383
1417
  index: $options.getOptionIndex(i, getItemOptions)
1384
1418
  }, function () {
1385
1419
  return [createTextVNode(toDisplayString($options.getOptionLabel(option)), 1)];
1386
- })], 16, _hoisted_8)), [[_directive_ripple]])], 64);
1420
+ })], 16, _hoisted_10)), [[_directive_ripple]])], 64);
1387
1421
  }), 128)), _ctx.showEmptyMessage && (!items || items && items.length === 0) ? (openBlock(), createElementBlock("li", mergeProps({
1388
1422
  key: 0,
1389
1423
  "class": _ctx.cx('emptyMessage'),
1390
1424
  role: "option"
1391
1425
  }, _ctx.ptm('emptyMessage')), [renderSlot(_ctx.$slots, "empty", {}, function () {
1392
1426
  return [createTextVNode(toDisplayString($options.searchResultMessageText), 1)];
1393
- })], 16)) : createCommentVNode("", true)], 16, _hoisted_6)];
1427
+ })], 16)) : createCommentVNode("", true)], 16, _hoisted_8)];
1394
1428
  }),
1395
1429
  _: 2
1396
1430
  }, [_ctx.$slots.loader ? {
@@ -1411,13 +1445,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1411
1445
  "class": "p-hidden-accessible"
1412
1446
  }, _ctx.ptm('hiddenSelectedMessage'), {
1413
1447
  "data-p-hidden-accessible": true
1414
- }), toDisplayString($options.selectedMessageText), 17)], 16, _hoisted_5)) : createCommentVNode("", true)];
1448
+ }), toDisplayString($options.selectedMessageText), 17)], 16, _hoisted_7)) : createCommentVNode("", true)];
1415
1449
  }),
1416
1450
  _: 3
1417
1451
  }, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
1418
1452
  }),
1419
1453
  _: 3
1420
- }, 8, ["appendTo"])], 16);
1454
+ }, 8, ["appendTo"])], 16, _hoisted_1);
1421
1455
  }
1422
1456
 
1423
1457
  script.render = render;