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.
- package/accordionheader/AccordionHeader.vue +8 -2
- package/accordionheader/index.mjs +8 -1
- package/accordionheader/index.mjs.map +1 -1
- package/autocomplete/AutoComplete.vue +72 -16
- package/autocomplete/index.d.ts +3 -3
- package/autocomplete/index.mjs +84 -37
- package/autocomplete/index.mjs.map +1 -1
- package/avatar/Avatar.vue +13 -4
- package/avatar/index.d.ts +3 -3
- package/avatar/index.mjs +26 -6
- package/avatar/index.mjs.map +1 -1
- package/badge/Badge.vue +13 -2
- package/badge/index.d.ts +1 -1
- package/badge/index.mjs +18 -3
- package/badge/index.mjs.map +1 -1
- package/blockui/BlockUI.vue +15 -4
- package/blockui/index.mjs +13 -4
- package/blockui/index.mjs.map +1 -1
- package/button/Button.vue +30 -3
- package/button/index.d.ts +3 -7
- package/button/index.mjs +28 -9
- package/button/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +1 -1
- package/cascadeselect/index.d.ts +2 -2
- package/cascadeselect/index.mjs +1 -2
- package/cascadeselect/index.mjs.map +1 -1
- package/checkbox/Checkbox.vue +15 -5
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.mjs +29 -7
- package/checkbox/index.mjs.map +1 -1
- package/chip/BaseChip.vue +1 -1
- package/chip/Chip.vue +9 -1
- package/chip/index.d.ts +1 -1
- package/chip/index.mjs +13 -3
- package/chip/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +10 -2
- package/colorpicker/index.d.ts +1 -1
- package/colorpicker/index.mjs +9 -2
- package/colorpicker/index.mjs.map +1 -1
- package/column/index.d.ts +3 -3
- package/columngroup/index.d.ts +2 -2
- package/confirmationoptions/index.d.ts +1 -1
- package/datatable/BodyCell.vue +4 -1
- package/datatable/BodyRow.vue +2 -0
- package/datatable/ColumnFilter.vue +1 -1
- package/datatable/DataTable.vue +103 -44
- package/datatable/HeaderCheckbox.vue +2 -2
- package/datatable/RowCheckbox.vue +1 -1
- package/datatable/TableBody.vue +12 -1
- package/datatable/TableFooter.vue +9 -1
- package/datatable/TableHeader.vue +9 -2
- package/datatable/index.d.ts +45 -37
- package/datatable/index.mjs +170 -101
- package/datatable/index.mjs.map +1 -1
- package/dataview/DataView.vue +4 -0
- package/dataview/index.d.ts +61 -4
- package/dataview/index.mjs +6 -2
- package/dataview/index.mjs.map +1 -1
- package/datepicker/DatePicker.vue +370 -234
- package/datepicker/index.d.ts +162 -6
- package/datepicker/index.mjs +644 -384
- package/datepicker/index.mjs.map +1 -1
- package/dialog/Dialog.vue +48 -39
- package/dialog/index.d.ts +26 -1
- package/dialog/index.mjs +73 -50
- package/dialog/index.mjs.map +1 -1
- package/divider/Divider.vue +13 -3
- package/divider/index.d.ts +4 -4
- package/divider/index.mjs +18 -5
- package/divider/index.mjs.map +1 -1
- package/dock/index.d.ts +4 -4
- package/drawer/Drawer.vue +30 -20
- package/drawer/index.d.ts +12 -2
- package/drawer/index.mjs +42 -25
- package/drawer/index.mjs.map +1 -1
- package/fieldset/Fieldset.vue +8 -2
- package/fieldset/index.mjs +20 -10
- package/fieldset/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +1 -1
- package/fileupload/index.d.ts +2 -2
- package/fileupload/index.mjs +2 -2
- package/fileupload/index.mjs.map +1 -1
- package/floatlabel/index.d.ts +2 -2
- package/galleria/Galleria.vue +39 -3
- package/galleria/GalleriaItem.vue +8 -9
- package/galleria/index.d.ts +3 -3
- package/galleria/index.mjs +48 -11
- package/galleria/index.mjs.map +1 -1
- package/inplace/Inplace.vue +1 -1
- package/inplace/index.mjs +3 -2
- package/inplace/index.mjs.map +1 -1
- package/inputchips/index.d.ts +2 -2
- package/inputmask/InputMask.vue +15 -1
- package/inputmask/index.d.ts +3 -3
- package/inputmask/index.mjs +12 -1
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/BaseInputNumber.vue +4 -0
- package/inputnumber/InputNumber.vue +29 -14
- package/inputnumber/index.d.ts +6 -6
- package/inputnumber/index.mjs +47 -25
- package/inputnumber/index.mjs.map +1 -1
- package/inputotp/index.d.ts +3 -3
- package/inputtext/InputText.vue +10 -1
- package/inputtext/index.d.ts +4 -5
- package/inputtext/index.mjs +14 -1
- package/inputtext/index.mjs.map +1 -1
- package/keyfilter/index.mjs +12 -19
- package/keyfilter/index.mjs.map +1 -1
- package/knob/Knob.vue +1 -1
- package/knob/index.mjs +1 -1
- package/knob/index.mjs.map +1 -1
- package/listbox/Listbox.vue +9 -2
- package/listbox/index.mjs +11 -3
- package/listbox/index.mjs.map +1 -1
- package/megamenu/index.d.ts +2 -2
- package/menu/Menu.vue +8 -2
- package/menu/Menuitem.vue +14 -4
- package/menu/index.mjs +36 -16
- package/menu/index.mjs.map +1 -1
- package/message/Message.vue +16 -7
- package/message/index.d.ts +2 -2
- package/message/index.mjs +35 -13
- package/message/index.mjs.map +1 -1
- package/metergroup/MeterGroup.vue +9 -3
- package/metergroup/MeterGroupLabel.vue +10 -1
- package/metergroup/index.mjs +32 -7
- package/metergroup/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +41 -6
- package/multiselect/index.d.ts +3 -3
- package/multiselect/index.mjs +53 -21
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/index.d.ts +2 -2
- package/overlaybadge/index.d.ts +1 -1
- package/package.json +3 -3
- package/paginator/Paginator.vue +2 -0
- package/paginator/index.d.ts +8 -0
- package/paginator/index.mjs +3 -1
- package/paginator/index.mjs.map +1 -1
- package/panel/Panel.vue +29 -22
- package/panel/index.d.ts +22 -2
- package/panel/index.mjs +55 -31
- package/panel/index.mjs.map +1 -1
- package/panelmenu/PanelMenuList.vue +1 -1
- package/panelmenu/index.mjs +1 -1
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +21 -3
- package/password/index.d.ts +3 -3
- package/password/index.mjs +32 -10
- package/password/index.mjs.map +1 -1
- package/popover/Popover.vue +3 -3
- package/popover/index.mjs +3 -4
- package/popover/index.mjs.map +1 -1
- package/progressbar/ProgressBar.vue +11 -4
- package/progressbar/index.mjs +21 -7
- package/progressbar/index.mjs.map +1 -1
- package/radiobutton/RadioButton.vue +13 -3
- package/radiobutton/index.d.ts +3 -3
- package/radiobutton/index.mjs +24 -4
- package/radiobutton/index.mjs.map +1 -1
- package/rating/Rating.vue +19 -2
- package/rating/index.mjs +28 -7
- package/rating/index.mjs.map +1 -1
- package/scrolltop/ScrollTop.vue +2 -2
- package/scrolltop/index.d.ts +2 -2
- package/scrolltop/index.mjs +4 -2
- package/scrolltop/index.mjs.map +1 -1
- package/select/Select.vue +56 -16
- package/select/index.d.ts +2 -2
- package/select/index.mjs +111 -74
- package/select/index.mjs.map +1 -1
- package/selectbutton/SelectButton.vue +26 -9
- package/selectbutton/index.d.ts +2 -2
- package/selectbutton/index.mjs +30 -10
- package/selectbutton/index.mjs.map +1 -1
- package/skeleton/Skeleton.vue +7 -1
- package/skeleton/index.d.ts +3 -3
- package/skeleton/index.mjs +12 -1
- package/skeleton/index.mjs.map +1 -1
- package/slider/Slider.vue +11 -2
- package/slider/index.d.ts +2 -2
- package/slider/index.mjs +27 -8
- package/slider/index.mjs.map +1 -1
- package/speeddial/index.d.ts +5 -5
- package/splitbutton/index.d.ts +1 -1
- package/splitter/Splitter.vue +10 -2
- package/splitter/index.d.ts +3 -3
- package/splitter/index.mjs +19 -6
- package/splitter/index.mjs.map +1 -1
- package/step/Step.vue +25 -7
- package/step/index.mjs +44 -14
- package/step/index.mjs.map +1 -1
- package/steppanel/StepPanel.vue +9 -3
- package/steppanel/index.d.ts +8 -0
- package/steppanel/index.mjs +23 -8
- package/steppanel/index.mjs.map +1 -1
- package/stepper/StepperSeparator.vue +5 -2
- package/stepper/index.d.ts +4 -0
- package/tab/Tab.vue +12 -6
- package/tab/index.mjs +13 -5
- package/tab/index.mjs.map +1 -1
- package/tablist/TabList.vue +13 -2
- package/tablist/index.mjs +21 -8
- package/tablist/index.mjs.map +1 -1
- package/tabpanel/TabPanel.vue +2 -2
- package/tabpanel/index.mjs +2 -2
- package/tabpanel/index.mjs.map +1 -1
- package/tag/Tag.vue +11 -2
- package/tag/index.mjs +17 -3
- package/tag/index.mjs.map +1 -1
- package/textarea/Textarea.vue +10 -1
- package/textarea/index.d.ts +4 -5
- package/textarea/index.mjs +14 -1
- package/textarea/index.mjs.map +1 -1
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/index.mjs +1 -2
- package/tieredmenu/index.mjs.map +1 -1
- package/timeline/Timeline.vue +16 -7
- package/timeline/index.d.ts +3 -3
- package/timeline/index.mjs +42 -11
- package/timeline/index.mjs.map +1 -1
- package/toast/Toast.vue +10 -1
- package/toast/ToastMessage.vue +29 -19
- package/toast/index.d.ts +2 -2
- package/toast/index.mjs +77 -38
- package/toast/index.mjs.map +1 -1
- package/togglebutton/ToggleButton.vue +10 -1
- package/togglebutton/index.d.ts +3 -3
- package/togglebutton/index.mjs +19 -4
- package/togglebutton/index.mjs.map +1 -1
- package/toggleswitch/ToggleSwitch.vue +11 -3
- package/toggleswitch/index.mjs +20 -5
- package/toggleswitch/index.mjs.map +1 -1
- package/tooltip/index.mjs +22 -22
- package/tooltip/index.mjs.map +1 -1
- package/tree/Tree.vue +14 -2
- package/tree/TreeNode.vue +2 -2
- package/tree/index.d.ts +3 -3
- package/tree/index.mjs +28 -10
- package/tree/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +1 -1
- package/treeselect/index.d.ts +6 -6
- package/treeselect/index.mjs +1 -2
- package/treeselect/index.mjs.map +1 -1
- package/treetable/index.d.ts +7 -7
- package/treetable/style/index.mjs +2 -3
- package/treetable/style/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- package/virtualscroller/VirtualScroller.vue +13 -2
- package/virtualscroller/index.d.ts +2 -2
- package/virtualscroller/index.mjs +14 -4
- package/virtualscroller/index.mjs.map +1 -1
- package/virtualscroller/style/index.mjs +1 -1
- package/virtualscroller/style/index.mjs.map +1 -1
- package/web-types.json +1 -1
package/autocomplete/index.mjs
CHANGED
|
@@ -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,
|
|
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
|
|
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)
|
|
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
|
-
|
|
638
|
-
|
|
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
|
-
|
|
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 = ["
|
|
1069
|
-
var _hoisted_2 = ["
|
|
1070
|
-
var _hoisted_3 = ["id", "
|
|
1071
|
-
var _hoisted_4 = ["disabled", "aria-expanded", "aria-controls"];
|
|
1072
|
-
var _hoisted_5 = ["
|
|
1073
|
-
var _hoisted_6 = ["
|
|
1074
|
-
var _hoisted_7 = ["id"];
|
|
1075
|
-
var _hoisted_8 = ["id", "aria-label"
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
1259
|
-
}),
|
|
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,
|
|
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-
|
|
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,
|
|
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,
|
|
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,
|
|
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;
|