primevue 4.3.2 → 4.3.4
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 +1 -1
- package/accordionheader/index.d.ts +6 -1
- package/accordionheader/index.mjs +1 -1
- package/accordionheader/index.mjs.map +1 -1
- package/autocomplete/AutoComplete.vue +60 -11
- package/autocomplete/index.d.ts +4 -0
- package/autocomplete/index.mjs +96 -59
- package/autocomplete/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +4 -1
- package/cascadeselect/CascadeSelectSub.vue +1 -1
- package/cascadeselect/index.mjs +22 -20
- package/cascadeselect/index.mjs.map +1 -1
- package/checkbox/Checkbox.vue +1 -1
- package/checkbox/index.mjs +2 -1
- package/checkbox/index.mjs.map +1 -1
- package/chip/BaseChip.vue +1 -1
- package/chip/index.d.ts +1 -1
- package/chip/index.mjs +1 -1
- package/chip/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +5 -1
- package/colorpicker/index.mjs +5 -1
- package/colorpicker/index.mjs.map +1 -1
- package/confirmationoptions/index.d.ts +1 -1
- package/confirmdialog/index.d.ts +4 -0
- package/contextmenu/index.mjs +12 -12
- package/contextmenu/index.mjs.map +1 -1
- package/datatable/BodyCell.vue +1 -0
- package/datatable/ColumnFilter.vue +3 -3
- 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 +37 -29
- package/datatable/index.mjs +175 -111
- package/datatable/index.mjs.map +1 -1
- package/datatable/style/index.mjs +4 -4
- package/datatable/style/index.mjs.map +1 -1
- package/dataview/DataView.vue +4 -0
- package/dataview/index.d.ts +63 -6
- package/dataview/index.mjs +6 -2
- package/dataview/index.mjs.map +1 -1
- package/datepicker/DatePicker.vue +379 -236
- package/datepicker/index.d.ts +156 -0
- package/datepicker/index.mjs +676 -406
- package/datepicker/index.mjs.map +1 -1
- package/drawer/Drawer.vue +30 -20
- package/drawer/index.d.ts +10 -0
- package/drawer/index.mjs +42 -25
- package/drawer/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +3 -4
- package/fileupload/index.mjs +8 -10
- package/fileupload/index.mjs.map +1 -1
- package/galleria/Galleria.vue +39 -3
- package/galleria/index.mjs +40 -3
- package/galleria/index.mjs.map +1 -1
- package/image/Image.vue +1 -1
- package/image/index.mjs +1 -1
- package/image/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/inputmask/InputMask.vue +3 -3
- package/inputmask/index.d.ts +3 -3
- package/inputmask/index.mjs +3 -3
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/BaseInputNumber.vue +4 -0
- package/inputnumber/InputNumber.vue +3 -10
- package/inputnumber/index.mjs +8 -9
- package/inputnumber/index.mjs.map +1 -1
- package/keyfilter/index.mjs +12 -19
- package/keyfilter/index.mjs.map +1 -1
- package/listbox/Listbox.vue +10 -2
- package/listbox/index.mjs +38 -29
- package/listbox/index.mjs.map +1 -1
- package/megamenu/index.d.ts +1 -1
- package/megamenu/index.mjs +11 -11
- package/megamenu/index.mjs.map +1 -1
- package/menu/Menu.vue +12 -6
- package/menu/Menuitem.vue +14 -4
- package/menu/index.d.ts +3 -12
- package/menu/index.mjs +40 -20
- package/menu/index.mjs.map +1 -1
- package/menubar/index.mjs +16 -16
- package/menubar/index.mjs.map +1 -1
- package/metergroup/MeterGroup.vue +9 -3
- package/metergroup/MeterGroupLabel.vue +10 -1
- package/metergroup/index.d.ts +1 -1
- package/metergroup/index.mjs +32 -7
- package/metergroup/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +40 -6
- package/multiselect/index.d.ts +1 -1
- package/multiselect/index.mjs +100 -68
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/OrganizationChartNode.vue +1 -1
- package/organizationchart/index.mjs.map +1 -1
- package/organizationchart/style/index.mjs +11 -6
- package/organizationchart/style/index.mjs.map +1 -1
- package/package.json +6 -6
- 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 +2 -2
- package/panel/index.mjs +2 -2
- package/panel/index.mjs.map +1 -1
- package/panelmenu/PanelMenuList.vue +1 -1
- package/panelmenu/index.mjs +4 -4
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +28 -6
- package/password/index.mjs +44 -16
- package/password/index.mjs.map +1 -1
- package/popover/Popover.vue +1 -1
- package/popover/index.mjs +1 -2
- package/popover/index.mjs.map +1 -1
- package/progressbar/ProgressBar.vue +4 -4
- package/progressbar/index.mjs +8 -12
- package/progressbar/index.mjs.map +1 -1
- package/scrolltop/ScrollTop.vue +2 -2
- package/scrolltop/index.mjs +4 -2
- package/scrolltop/index.mjs.map +1 -1
- package/select/Select.vue +68 -13
- package/select/index.mjs +128 -77
- package/select/index.mjs.map +1 -1
- package/selectbutton/index.d.ts +0 -24
- package/splitter/Splitter.vue +10 -2
- package/splitter/index.d.ts +1 -1
- package/splitter/index.mjs +19 -7
- package/splitter/index.mjs.map +1 -1
- package/splitter/style/index.mjs +1 -13
- package/splitter/style/index.mjs.map +1 -1
- package/step/Step.vue +27 -9
- package/step/index.mjs +46 -16
- package/step/index.mjs.map +1 -1
- package/steppanel/StepPanel.vue +11 -5
- package/steppanel/index.d.ts +8 -0
- package/steppanel/index.mjs +25 -10
- package/steppanel/index.mjs.map +1 -1
- package/stepper/StepperSeparator.vue +5 -2
- package/tab/Tab.vue +4 -4
- package/tab/index.mjs +4 -4
- package/tab/index.mjs.map +1 -1
- package/tablist/TabList.vue +3 -0
- package/tablist/index.mjs +1 -0
- 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/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/index.mjs +13 -14
- package/tieredmenu/index.mjs.map +1 -1
- package/tooltip/index.mjs +47 -30
- package/tooltip/index.mjs.map +1 -1
- package/tree/Tree.vue +14 -2
- package/tree/TreeNode.vue +2 -2
- package/tree/index.mjs +28 -10
- package/tree/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +4 -1
- package/treeselect/index.mjs +4 -2
- package/treeselect/index.mjs.map +1 -1
- package/umd/primevue.min.js +12213 -1
- package/virtualscroller/VirtualScroller.vue +13 -2
- package/virtualscroller/index.mjs +28 -18
- 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."); }
|
|
@@ -643,8 +647,10 @@ var script = {
|
|
|
643
647
|
onEnterKey: function onEnterKey(event) {
|
|
644
648
|
if (!this.typeahead) {
|
|
645
649
|
if (this.multiple) {
|
|
646
|
-
|
|
647
|
-
|
|
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,10 +724,12 @@ 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();
|
|
730
|
+
|
|
731
|
+
// Issue: #7508
|
|
732
|
+
this.$attrSelector && el.setAttribute(this.$attrSelector, '');
|
|
725
733
|
},
|
|
726
734
|
onOverlayAfterEnter: function onOverlayAfterEnter() {
|
|
727
735
|
this.bindOutsideClickListener();
|
|
@@ -828,35 +836,35 @@ var script = {
|
|
|
828
836
|
}) : this.isEquals(this.d_value, this.getOptionValue(option));
|
|
829
837
|
},
|
|
830
838
|
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
831
|
-
var
|
|
839
|
+
var _this0 = this;
|
|
832
840
|
return this.visibleOptions.findIndex(function (option) {
|
|
833
|
-
return
|
|
841
|
+
return _this0.isValidOption(option);
|
|
834
842
|
});
|
|
835
843
|
},
|
|
836
844
|
findLastOptionIndex: function findLastOptionIndex() {
|
|
837
|
-
var
|
|
845
|
+
var _this1 = this;
|
|
838
846
|
return findLastIndex(this.visibleOptions, function (option) {
|
|
839
|
-
return
|
|
847
|
+
return _this1.isValidOption(option);
|
|
840
848
|
});
|
|
841
849
|
},
|
|
842
850
|
findNextOptionIndex: function findNextOptionIndex(index) {
|
|
843
|
-
var
|
|
851
|
+
var _this10 = this;
|
|
844
852
|
var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
845
|
-
return
|
|
853
|
+
return _this10.isValidOption(option);
|
|
846
854
|
}) : -1;
|
|
847
855
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
848
856
|
},
|
|
849
857
|
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
850
|
-
var
|
|
858
|
+
var _this11 = this;
|
|
851
859
|
var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
852
|
-
return
|
|
860
|
+
return _this11.isValidOption(option);
|
|
853
861
|
}) : -1;
|
|
854
862
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
855
863
|
},
|
|
856
864
|
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
857
|
-
var
|
|
865
|
+
var _this12 = this;
|
|
858
866
|
return this.$filled ? this.visibleOptions.findIndex(function (option) {
|
|
859
|
-
return
|
|
867
|
+
return _this12.isValidSelectedOption(option);
|
|
860
868
|
}) : -1;
|
|
861
869
|
},
|
|
862
870
|
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
@@ -884,12 +892,12 @@ var script = {
|
|
|
884
892
|
});
|
|
885
893
|
},
|
|
886
894
|
removeOption: function removeOption(event, index) {
|
|
887
|
-
var
|
|
895
|
+
var _this13 = this;
|
|
888
896
|
var removedOption = this.d_value[index];
|
|
889
897
|
var value = this.d_value.filter(function (_, i) {
|
|
890
898
|
return i !== index;
|
|
891
899
|
}).map(function (option) {
|
|
892
|
-
return
|
|
900
|
+
return _this13.getOptionValue(option);
|
|
893
901
|
});
|
|
894
902
|
this.updateModel(event, value);
|
|
895
903
|
this.$emit('item-unselect', {
|
|
@@ -913,18 +921,18 @@ var script = {
|
|
|
913
921
|
}
|
|
914
922
|
},
|
|
915
923
|
scrollInView: function scrollInView() {
|
|
916
|
-
var
|
|
924
|
+
var _this14 = this;
|
|
917
925
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
918
926
|
this.$nextTick(function () {
|
|
919
|
-
var id = index !== -1 ? "".concat(
|
|
920
|
-
var element = findSingle(
|
|
927
|
+
var id = index !== -1 ? "".concat(_this14.$id, "_").concat(index) : _this14.focusedOptionId;
|
|
928
|
+
var element = findSingle(_this14.list, "li[id=\"".concat(id, "\"]"));
|
|
921
929
|
if (element) {
|
|
922
930
|
element.scrollIntoView && element.scrollIntoView({
|
|
923
931
|
block: 'nearest',
|
|
924
932
|
inline: 'start'
|
|
925
933
|
});
|
|
926
|
-
} else if (!
|
|
927
|
-
|
|
934
|
+
} else if (!_this14.virtualScrollerDisabled) {
|
|
935
|
+
_this14.virtualScroller && _this14.virtualScroller.scrollToIndex(index !== -1 ? index : _this14.focusedOptionIndex);
|
|
928
936
|
}
|
|
929
937
|
});
|
|
930
938
|
},
|
|
@@ -942,14 +950,14 @@ var script = {
|
|
|
942
950
|
});
|
|
943
951
|
},
|
|
944
952
|
flatOptions: function flatOptions(options) {
|
|
945
|
-
var
|
|
953
|
+
var _this15 = this;
|
|
946
954
|
return (options || []).reduce(function (result, option, index) {
|
|
947
955
|
result.push({
|
|
948
956
|
optionGroup: option,
|
|
949
957
|
group: true,
|
|
950
958
|
index: index
|
|
951
959
|
});
|
|
952
|
-
var optionGroupChildren =
|
|
960
|
+
var optionGroupChildren = _this15.getOptionGroupChildren(option);
|
|
953
961
|
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
954
962
|
return result.push(o);
|
|
955
963
|
});
|
|
@@ -967,16 +975,16 @@ var script = {
|
|
|
967
975
|
this.virtualScroller = el;
|
|
968
976
|
},
|
|
969
977
|
findNextSelectedOptionIndex: function findNextSelectedOptionIndex(index) {
|
|
970
|
-
var
|
|
978
|
+
var _this16 = this;
|
|
971
979
|
var matchedOptionIndex = this.$filled && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
972
|
-
return
|
|
980
|
+
return _this16.isValidSelectedOption(option);
|
|
973
981
|
}) : -1;
|
|
974
982
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
975
983
|
},
|
|
976
984
|
findPrevSelectedOptionIndex: function findPrevSelectedOptionIndex(index) {
|
|
977
|
-
var
|
|
985
|
+
var _this17 = this;
|
|
978
986
|
var matchedOptionIndex = this.$filled && index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
979
|
-
return
|
|
987
|
+
return _this17.isValidSelectedOption(option);
|
|
980
988
|
}) : -1;
|
|
981
989
|
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
982
990
|
},
|
|
@@ -1047,9 +1055,9 @@ var script = {
|
|
|
1047
1055
|
return this.focusedMultipleOptionIndex !== -1 ? "".concat(this.$id, "_multiple_option_").concat(this.focusedMultipleOptionIndex) : null;
|
|
1048
1056
|
},
|
|
1049
1057
|
ariaSetSize: function ariaSetSize() {
|
|
1050
|
-
var
|
|
1058
|
+
var _this18 = this;
|
|
1051
1059
|
return this.visibleOptions.filter(function (option) {
|
|
1052
|
-
return !
|
|
1060
|
+
return !_this18.isOptionGroup(option);
|
|
1053
1061
|
}).length;
|
|
1054
1062
|
},
|
|
1055
1063
|
virtualScrollerDisabled: function virtualScrollerDisabled() {
|
|
@@ -1057,6 +1065,24 @@ var script = {
|
|
|
1057
1065
|
},
|
|
1058
1066
|
panelId: function panelId() {
|
|
1059
1067
|
return this.$id + '_panel';
|
|
1068
|
+
},
|
|
1069
|
+
containerDataP: function containerDataP() {
|
|
1070
|
+
return cn({
|
|
1071
|
+
fluid: this.$fluid
|
|
1072
|
+
});
|
|
1073
|
+
},
|
|
1074
|
+
overlayDataP: function overlayDataP() {
|
|
1075
|
+
return cn(_defineProperty$1({}, 'portal-' + this.appendTo, 'portal-' + this.appendTo));
|
|
1076
|
+
},
|
|
1077
|
+
inputMultipleDataP: function inputMultipleDataP() {
|
|
1078
|
+
return cn(_defineProperty$1({
|
|
1079
|
+
invalid: this.$invalid,
|
|
1080
|
+
disabled: this.disabled,
|
|
1081
|
+
focus: this.focused,
|
|
1082
|
+
fluid: this.$fluid,
|
|
1083
|
+
filled: this.$variant === 'filled',
|
|
1084
|
+
empty: !this.$filled
|
|
1085
|
+
}, this.size, this.size));
|
|
1060
1086
|
}
|
|
1061
1087
|
},
|
|
1062
1088
|
components: {
|
|
@@ -1078,14 +1104,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
1078
1104
|
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
1105
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
1080
1106
|
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 = ["
|
|
1082
|
-
var _hoisted_2 = ["
|
|
1083
|
-
var _hoisted_3 = ["id", "
|
|
1084
|
-
var _hoisted_4 = ["disabled", "aria-expanded", "aria-controls"];
|
|
1085
|
-
var _hoisted_5 = ["
|
|
1086
|
-
var _hoisted_6 = ["
|
|
1087
|
-
var _hoisted_7 = ["id"];
|
|
1088
|
-
var _hoisted_8 = ["id", "aria-label"
|
|
1107
|
+
var _hoisted_1 = ["data-p"];
|
|
1108
|
+
var _hoisted_2 = ["aria-activedescendant", "data-p-has-dropdown", "data-p"];
|
|
1109
|
+
var _hoisted_3 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
|
|
1110
|
+
var _hoisted_4 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
|
|
1111
|
+
var _hoisted_5 = ["data-p-has-dropdown"];
|
|
1112
|
+
var _hoisted_6 = ["disabled", "aria-expanded", "aria-controls"];
|
|
1113
|
+
var _hoisted_7 = ["id", "data-p"];
|
|
1114
|
+
var _hoisted_8 = ["id", "aria-label"];
|
|
1115
|
+
var _hoisted_9 = ["id"];
|
|
1116
|
+
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
1117
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1090
1118
|
var _component_InputText = resolveComponent("InputText");
|
|
1091
1119
|
var _component_Chip = resolveComponent("Chip");
|
|
@@ -1099,7 +1127,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1099
1127
|
style: _ctx.sx('root'),
|
|
1100
1128
|
onClick: _cache[11] || (_cache[11] = function () {
|
|
1101
1129
|
return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
|
|
1102
|
-
})
|
|
1130
|
+
}),
|
|
1131
|
+
"data-p": $options.containerDataP
|
|
1103
1132
|
}, _ctx.ptmi('root')), [!_ctx.multiple ? (openBlock(), createBlock(_component_InputText, {
|
|
1104
1133
|
key: 0,
|
|
1105
1134
|
ref: "focusInput",
|
|
@@ -1108,7 +1137,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1108
1137
|
name: _ctx.$formName,
|
|
1109
1138
|
"class": normalizeClass([_ctx.cx('pcInputText'), _ctx.inputClass]),
|
|
1110
1139
|
style: normalizeStyle(_ctx.inputStyle),
|
|
1111
|
-
|
|
1140
|
+
defaultValue: $options.inputValue,
|
|
1112
1141
|
placeholder: _ctx.placeholder,
|
|
1113
1142
|
tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
|
|
1114
1143
|
fluid: _ctx.$fluid,
|
|
@@ -1131,8 +1160,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1131
1160
|
onInput: $options.onInput,
|
|
1132
1161
|
onChange: $options.onChange,
|
|
1133
1162
|
unstyled: _ctx.unstyled,
|
|
1163
|
+
"data-p-has-dropdown": _ctx.dropdown,
|
|
1134
1164
|
pt: _ctx.ptm('pcInputText')
|
|
1135
|
-
}, null, 8, ["id", "name", "class", "style", "
|
|
1165
|
+
}, null, 8, ["id", "name", "class", "style", "defaultValue", "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
1166
|
key: 1,
|
|
1137
1167
|
ref: "multiContainer",
|
|
1138
1168
|
"class": _ctx.cx('inputMultiple'),
|
|
@@ -1148,7 +1178,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1148
1178
|
}),
|
|
1149
1179
|
onKeydown: _cache[7] || (_cache[7] = function () {
|
|
1150
1180
|
return $options.onMultipleContainerKeyDown && $options.onMultipleContainerKeyDown.apply($options, arguments);
|
|
1151
|
-
})
|
|
1181
|
+
}),
|
|
1182
|
+
"data-p-has-dropdown": _ctx.dropdown,
|
|
1183
|
+
"data-p": $options.inputMultipleDataP
|
|
1152
1184
|
}, _ctx.ptm('inputMultiple')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.d_value, function (option, i) {
|
|
1153
1185
|
return openBlock(), createElementBlock("li", mergeProps({
|
|
1154
1186
|
key: "".concat(i, "_").concat($options.getOptionLabel(option)),
|
|
@@ -1180,6 +1212,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1180
1212
|
onRemove: function onRemove($event) {
|
|
1181
1213
|
return $options.removeOption($event, i);
|
|
1182
1214
|
},
|
|
1215
|
+
"data-p-focused": $data.focusedMultipleOptionIndex === i,
|
|
1183
1216
|
pt: _ctx.ptm('pcChip')
|
|
1184
1217
|
}, {
|
|
1185
1218
|
removeicon: withCtx(function () {
|
|
@@ -1192,8 +1225,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1192
1225
|
})];
|
|
1193
1226
|
}),
|
|
1194
1227
|
_: 2
|
|
1195
|
-
}, 1032, ["class", "label", "removeIcon", "unstyled", "onRemove", "pt"])];
|
|
1196
|
-
})], 16,
|
|
1228
|
+
}, 1032, ["class", "label", "removeIcon", "unstyled", "onRemove", "data-p-focused", "pt"])];
|
|
1229
|
+
})], 16, _hoisted_3);
|
|
1197
1230
|
}), 128)), createElementVNode("li", mergeProps({
|
|
1198
1231
|
"class": _ctx.cx('inputChip'),
|
|
1199
1232
|
role: "option"
|
|
@@ -1231,20 +1264,22 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1231
1264
|
onChange: _cache[4] || (_cache[4] = function () {
|
|
1232
1265
|
return $options.onChange && $options.onChange.apply($options, arguments);
|
|
1233
1266
|
})
|
|
1234
|
-
}, _ctx.ptm('input')), null, 16,
|
|
1267
|
+
}, _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
1268
|
key: 2,
|
|
1236
1269
|
"class": normalizeClass(_ctx.cx('loader'))
|
|
1237
1270
|
}, function () {
|
|
1238
1271
|
return [_ctx.loader || _ctx.loadingIcon ? (openBlock(), createElementBlock("i", mergeProps({
|
|
1239
1272
|
key: 0,
|
|
1240
1273
|
"class": ['pi-spin', _ctx.cx('loader'), _ctx.loader, _ctx.loadingIcon],
|
|
1241
|
-
"aria-hidden": "true"
|
|
1242
|
-
|
|
1274
|
+
"aria-hidden": "true",
|
|
1275
|
+
"data-p-has-dropdown": _ctx.dropdown
|
|
1276
|
+
}, _ctx.ptm('loader')), null, 16, _hoisted_5)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
|
|
1243
1277
|
key: 1,
|
|
1244
1278
|
"class": _ctx.cx('loader'),
|
|
1245
1279
|
spin: "",
|
|
1246
|
-
"aria-hidden": "true"
|
|
1247
|
-
|
|
1280
|
+
"aria-hidden": "true",
|
|
1281
|
+
"data-p-has-dropdown": _ctx.dropdown
|
|
1282
|
+
}, _ctx.ptm('loader')), null, 16, ["class", "data-p-has-dropdown"]))];
|
|
1248
1283
|
}) : createCommentVNode("", true), renderSlot(_ctx.$slots, _ctx.$slots.dropdown ? 'dropdown' : 'dropdownbutton', {
|
|
1249
1284
|
toggleCallback: function toggleCallback(event) {
|
|
1250
1285
|
return $options.onDropdownClick(event);
|
|
@@ -1268,14 +1303,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1268
1303
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), mergeProps({
|
|
1269
1304
|
"class": _ctx.dropdownIcon
|
|
1270
1305
|
}, _ctx.ptm('dropdownIcon')), null, 16, ["class"]))];
|
|
1271
|
-
})], 16,
|
|
1272
|
-
}),
|
|
1306
|
+
})], 16, _hoisted_6)) : createCommentVNode("", true)];
|
|
1307
|
+
}), _ctx.typeahead ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1308
|
+
key: 3,
|
|
1273
1309
|
role: "status",
|
|
1274
1310
|
"aria-live": "polite",
|
|
1275
1311
|
"class": "p-hidden-accessible"
|
|
1276
1312
|
}, _ctx.ptm('hiddenSearchResult'), {
|
|
1277
1313
|
"data-p-hidden-accessible": true
|
|
1278
|
-
}), toDisplayString($options.searchResultMessageText), 17), createVNode(_component_Portal, {
|
|
1314
|
+
}), toDisplayString($options.searchResultMessageText), 17)) : createCommentVNode("", true), createVNode(_component_Portal, {
|
|
1279
1315
|
appendTo: _ctx.appendTo
|
|
1280
1316
|
}, {
|
|
1281
1317
|
"default": withCtx(function () {
|
|
@@ -1298,7 +1334,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1298
1334
|
}),
|
|
1299
1335
|
onKeydown: _cache[10] || (_cache[10] = function () {
|
|
1300
1336
|
return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
|
|
1301
|
-
})
|
|
1337
|
+
}),
|
|
1338
|
+
"data-p": $options.overlayDataP
|
|
1302
1339
|
}, _ctx.ptm('overlay')), [renderSlot(_ctx.$slots, "header", {
|
|
1303
1340
|
value: _ctx.d_value,
|
|
1304
1341
|
suggestions: $options.visibleOptions
|
|
@@ -1351,7 +1388,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1351
1388
|
index: $options.getOptionIndex(i, getItemOptions)
|
|
1352
1389
|
}, function () {
|
|
1353
1390
|
return [createTextVNode(toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];
|
|
1354
|
-
})], 16,
|
|
1391
|
+
})], 16, _hoisted_9)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
|
|
1355
1392
|
key: 1,
|
|
1356
1393
|
id: _ctx.$id + '_' + $options.getOptionIndex(i, getItemOptions),
|
|
1357
1394
|
style: {
|
|
@@ -1375,7 +1412,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1375
1412
|
return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
|
|
1376
1413
|
},
|
|
1377
1414
|
"data-p-selected": $options.isSelected(option),
|
|
1378
|
-
"data-p-
|
|
1415
|
+
"data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
|
|
1379
1416
|
"data-p-disabled": $options.isOptionDisabled(option),
|
|
1380
1417
|
ref_for: true
|
|
1381
1418
|
}, $options.getPTOptions(option, getItemOptions, i, 'option')), [renderSlot(_ctx.$slots, "option", {
|
|
@@ -1383,14 +1420,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1383
1420
|
index: $options.getOptionIndex(i, getItemOptions)
|
|
1384
1421
|
}, function () {
|
|
1385
1422
|
return [createTextVNode(toDisplayString($options.getOptionLabel(option)), 1)];
|
|
1386
|
-
})], 16,
|
|
1423
|
+
})], 16, _hoisted_10)), [[_directive_ripple]])], 64);
|
|
1387
1424
|
}), 128)), _ctx.showEmptyMessage && (!items || items && items.length === 0) ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1388
1425
|
key: 0,
|
|
1389
1426
|
"class": _ctx.cx('emptyMessage'),
|
|
1390
1427
|
role: "option"
|
|
1391
1428
|
}, _ctx.ptm('emptyMessage')), [renderSlot(_ctx.$slots, "empty", {}, function () {
|
|
1392
1429
|
return [createTextVNode(toDisplayString($options.searchResultMessageText), 1)];
|
|
1393
|
-
})], 16)) : createCommentVNode("", true)], 16,
|
|
1430
|
+
})], 16)) : createCommentVNode("", true)], 16, _hoisted_8)];
|
|
1394
1431
|
}),
|
|
1395
1432
|
_: 2
|
|
1396
1433
|
}, [_ctx.$slots.loader ? {
|
|
@@ -1411,13 +1448,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1411
1448
|
"class": "p-hidden-accessible"
|
|
1412
1449
|
}, _ctx.ptm('hiddenSelectedMessage'), {
|
|
1413
1450
|
"data-p-hidden-accessible": true
|
|
1414
|
-
}), toDisplayString($options.selectedMessageText), 17)], 16,
|
|
1451
|
+
}), toDisplayString($options.selectedMessageText), 17)], 16, _hoisted_7)) : createCommentVNode("", true)];
|
|
1415
1452
|
}),
|
|
1416
1453
|
_: 3
|
|
1417
1454
|
}, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
|
|
1418
1455
|
}),
|
|
1419
1456
|
_: 3
|
|
1420
|
-
}, 8, ["appendTo"])], 16);
|
|
1457
|
+
}, 8, ["appendTo"])], 16, _hoisted_1);
|
|
1421
1458
|
}
|
|
1422
1459
|
|
|
1423
1460
|
script.render = render;
|