primevue 4.3.3 → 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 +4 -1
- package/autocomplete/index.d.ts +4 -0
- package/autocomplete/index.mjs +30 -27
- package/autocomplete/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +3 -0
- package/cascadeselect/CascadeSelectSub.vue +1 -1
- package/cascadeselect/index.mjs +21 -18
- package/cascadeselect/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +4 -0
- package/colorpicker/index.mjs +4 -0
- 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/ColumnFilter.vue +2 -2
- package/datatable/index.d.ts +2 -2
- package/datatable/index.mjs +12 -12
- package/datatable/index.mjs.map +1 -1
- package/datatable/style/index.mjs +4 -4
- package/datatable/style/index.mjs.map +1 -1
- package/dataview/index.d.ts +5 -5
- package/datepicker/DatePicker.vue +10 -3
- package/datepicker/index.mjs +69 -59
- package/datepicker/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +2 -3
- package/fileupload/index.mjs +6 -8
- package/fileupload/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/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/InputNumber.vue +1 -1
- package/inputnumber/index.mjs +2 -2
- package/inputnumber/index.mjs.map +1 -1
- package/inputtext/index.d.ts +2 -1
- package/listbox/Listbox.vue +1 -0
- package/listbox/index.mjs +27 -26
- 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 +4 -4
- package/menu/index.d.ts +3 -12
- package/menu/index.mjs +4 -4
- package/menu/index.mjs.map +1 -1
- package/menubar/index.mjs +16 -16
- package/menubar/index.mjs.map +1 -1
- package/metergroup/index.d.ts +1 -1
- package/multiselect/MultiSelect.vue +4 -1
- package/multiselect/index.d.ts +1 -1
- package/multiselect/index.mjs +51 -48
- 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/panel/Panel.vue +2 -2
- package/panel/index.mjs +2 -2
- package/panel/index.mjs.map +1 -1
- package/panelmenu/index.mjs +3 -3
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +7 -3
- package/password/index.d.ts +1 -1
- package/password/index.mjs +14 -8
- package/password/index.mjs.map +1 -1
- package/select/Select.vue +20 -1
- package/select/index.mjs +53 -35
- package/select/index.mjs.map +1 -1
- package/selectbutton/index.d.ts +0 -24
- package/splitter/Splitter.vue +1 -1
- package/splitter/index.d.ts +1 -1
- package/splitter/index.mjs +0 -1
- 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 +2 -2
- package/step/index.mjs +2 -2
- package/step/index.mjs.map +1 -1
- package/steppanel/StepPanel.vue +2 -2
- package/steppanel/index.mjs +2 -2
- package/steppanel/index.mjs.map +1 -1
- package/textarea/index.d.ts +2 -1
- package/tieredmenu/index.mjs +12 -12
- package/tieredmenu/index.mjs.map +1 -1
- package/tooltip/index.mjs +25 -14
- package/tooltip/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +3 -0
- package/treeselect/index.mjs +3 -0
- package/treeselect/index.mjs.map +1 -1
- package/umd/primevue.min.js +12213 -1
- package/virtualscroller/index.mjs +18 -18
- package/virtualscroller/index.mjs.map +1 -1
- package/web-types.json +1 -1
|
@@ -537,6 +537,9 @@ export default {
|
|
|
537
537
|
addStyle(el, { position: 'absolute', top: '0' });
|
|
538
538
|
this.alignOverlay();
|
|
539
539
|
this.scrollInView();
|
|
540
|
+
|
|
541
|
+
// Issue: #7508
|
|
542
|
+
this.$attrSelector && el.setAttribute(this.$attrSelector, '');
|
|
540
543
|
},
|
|
541
544
|
onOverlayAfterEnter() {
|
|
542
545
|
this.bindOutsideClickListener();
|
package/cascadeselect/index.mjs
CHANGED
|
@@ -166,7 +166,7 @@ var script$1 = {
|
|
|
166
166
|
selectId: String,
|
|
167
167
|
focusedOptionId: String,
|
|
168
168
|
options: Array,
|
|
169
|
-
optionLabel: String,
|
|
169
|
+
optionLabel: String | Function,
|
|
170
170
|
optionValue: String,
|
|
171
171
|
optionDisabled: null,
|
|
172
172
|
optionGroupIcon: String,
|
|
@@ -828,6 +828,9 @@ var script = {
|
|
|
828
828
|
});
|
|
829
829
|
this.alignOverlay();
|
|
830
830
|
this.scrollInView();
|
|
831
|
+
|
|
832
|
+
// Issue: #7508
|
|
833
|
+
this.$attrSelector && el.setAttribute(this.$attrSelector, '');
|
|
831
834
|
},
|
|
832
835
|
onOverlayAfterEnter: function onOverlayAfterEnter() {
|
|
833
836
|
this.bindOutsideClickListener();
|
|
@@ -958,16 +961,16 @@ var script = {
|
|
|
958
961
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
959
962
|
},
|
|
960
963
|
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
961
|
-
var
|
|
964
|
+
var _this0 = this;
|
|
962
965
|
var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (processedOption) {
|
|
963
|
-
return
|
|
966
|
+
return _this0.isValidOption(processedOption);
|
|
964
967
|
}) : -1;
|
|
965
968
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
966
969
|
},
|
|
967
970
|
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
968
|
-
var
|
|
971
|
+
var _this1 = this;
|
|
969
972
|
return this.visibleOptions.findIndex(function (processedOption) {
|
|
970
|
-
return
|
|
973
|
+
return _this1.isValidSelectedOption(processedOption);
|
|
971
974
|
});
|
|
972
975
|
},
|
|
973
976
|
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
@@ -996,21 +999,21 @@ var script = {
|
|
|
996
999
|
}
|
|
997
1000
|
},
|
|
998
1001
|
searchOptions: function searchOptions(event, _char) {
|
|
999
|
-
var
|
|
1002
|
+
var _this10 = this;
|
|
1000
1003
|
this.searchValue = (this.searchValue || '') + _char;
|
|
1001
1004
|
var optionIndex = -1;
|
|
1002
1005
|
var matched = false;
|
|
1003
1006
|
if (isNotEmpty(this.searchValue)) {
|
|
1004
1007
|
if (this.focusedOptionInfo.index !== -1) {
|
|
1005
1008
|
optionIndex = this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex(function (processedOption) {
|
|
1006
|
-
return
|
|
1009
|
+
return _this10.isOptionMatched(processedOption);
|
|
1007
1010
|
});
|
|
1008
1011
|
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionInfo.index).findIndex(function (processedOption) {
|
|
1009
|
-
return
|
|
1012
|
+
return _this10.isOptionMatched(processedOption);
|
|
1010
1013
|
}) : optionIndex + this.focusedOptionInfo.index;
|
|
1011
1014
|
} else {
|
|
1012
1015
|
optionIndex = this.visibleOptions.findIndex(function (processedOption) {
|
|
1013
|
-
return
|
|
1016
|
+
return _this10.isOptionMatched(processedOption);
|
|
1014
1017
|
});
|
|
1015
1018
|
}
|
|
1016
1019
|
if (optionIndex !== -1) {
|
|
@@ -1027,8 +1030,8 @@ var script = {
|
|
|
1027
1030
|
clearTimeout(this.searchTimeout);
|
|
1028
1031
|
}
|
|
1029
1032
|
this.searchTimeout = setTimeout(function () {
|
|
1030
|
-
|
|
1031
|
-
|
|
1033
|
+
_this10.searchValue = '';
|
|
1034
|
+
_this10.searchTimeout = null;
|
|
1032
1035
|
}, 500);
|
|
1033
1036
|
return matched;
|
|
1034
1037
|
},
|
|
@@ -1054,11 +1057,11 @@ var script = {
|
|
|
1054
1057
|
}
|
|
1055
1058
|
},
|
|
1056
1059
|
scrollInView: function scrollInView() {
|
|
1057
|
-
var
|
|
1060
|
+
var _this11 = this;
|
|
1058
1061
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
1059
1062
|
this.$nextTick(function () {
|
|
1060
|
-
var id = index !== -1 ? "".concat(
|
|
1061
|
-
var element = findSingle(
|
|
1063
|
+
var id = index !== -1 ? "".concat(_this11.$id, "_").concat(index) : _this11.focusedOptionId;
|
|
1064
|
+
var element = findSingle(_this11.list, "li[id=\"".concat(id, "\"]"));
|
|
1062
1065
|
if (element) {
|
|
1063
1066
|
element.scrollIntoView && element.scrollIntoView({
|
|
1064
1067
|
block: 'nearest',
|
|
@@ -1089,7 +1092,7 @@ var script = {
|
|
|
1089
1092
|
});
|
|
1090
1093
|
},
|
|
1091
1094
|
createProcessedOptions: function createProcessedOptions(options) {
|
|
1092
|
-
var
|
|
1095
|
+
var _this12 = this;
|
|
1093
1096
|
var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
1094
1097
|
var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1095
1098
|
var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
@@ -1104,7 +1107,7 @@ var script = {
|
|
|
1104
1107
|
parent: parent,
|
|
1105
1108
|
parentKey: parentKey
|
|
1106
1109
|
};
|
|
1107
|
-
newOption['children'] =
|
|
1110
|
+
newOption['children'] = _this12.createProcessedOptions(_this12.getOptionGroupChildren(option, level), level + 1, newOption, key);
|
|
1108
1111
|
processedOptions.push(newOption);
|
|
1109
1112
|
});
|
|
1110
1113
|
return processedOptions;
|
|
@@ -1131,9 +1134,9 @@ var script = {
|
|
|
1131
1134
|
return this.createProcessedOptions(this.options || []);
|
|
1132
1135
|
},
|
|
1133
1136
|
visibleOptions: function visibleOptions() {
|
|
1134
|
-
var
|
|
1137
|
+
var _this13 = this;
|
|
1135
1138
|
var processedOption = this.activeOptionPath && this.activeOptionPath.find(function (p) {
|
|
1136
|
-
return p.key ===
|
|
1139
|
+
return p.key === _this13.focusedOptionInfo.parentKey;
|
|
1137
1140
|
});
|
|
1138
1141
|
return processedOption ? processedOption.children : this.processedOptions;
|
|
1139
1142
|
},
|