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
|
@@ -534,9 +534,12 @@ export default {
|
|
|
534
534
|
onOverlayEnter(el) {
|
|
535
535
|
ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);
|
|
536
536
|
|
|
537
|
-
addStyle(el, { position: 'absolute', top: '0'
|
|
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,
|
|
@@ -824,11 +824,13 @@ var script = {
|
|
|
824
824
|
ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);
|
|
825
825
|
addStyle(el, {
|
|
826
826
|
position: 'absolute',
|
|
827
|
-
top: '0'
|
|
828
|
-
left: '0'
|
|
827
|
+
top: '0'
|
|
829
828
|
});
|
|
830
829
|
this.alignOverlay();
|
|
831
830
|
this.scrollInView();
|
|
831
|
+
|
|
832
|
+
// Issue: #7508
|
|
833
|
+
this.$attrSelector && el.setAttribute(this.$attrSelector, '');
|
|
832
834
|
},
|
|
833
835
|
onOverlayAfterEnter: function onOverlayAfterEnter() {
|
|
834
836
|
this.bindOutsideClickListener();
|
|
@@ -959,16 +961,16 @@ var script = {
|
|
|
959
961
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
960
962
|
},
|
|
961
963
|
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
962
|
-
var
|
|
964
|
+
var _this0 = this;
|
|
963
965
|
var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (processedOption) {
|
|
964
|
-
return
|
|
966
|
+
return _this0.isValidOption(processedOption);
|
|
965
967
|
}) : -1;
|
|
966
968
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
967
969
|
},
|
|
968
970
|
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
969
|
-
var
|
|
971
|
+
var _this1 = this;
|
|
970
972
|
return this.visibleOptions.findIndex(function (processedOption) {
|
|
971
|
-
return
|
|
973
|
+
return _this1.isValidSelectedOption(processedOption);
|
|
972
974
|
});
|
|
973
975
|
},
|
|
974
976
|
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
@@ -997,21 +999,21 @@ var script = {
|
|
|
997
999
|
}
|
|
998
1000
|
},
|
|
999
1001
|
searchOptions: function searchOptions(event, _char) {
|
|
1000
|
-
var
|
|
1002
|
+
var _this10 = this;
|
|
1001
1003
|
this.searchValue = (this.searchValue || '') + _char;
|
|
1002
1004
|
var optionIndex = -1;
|
|
1003
1005
|
var matched = false;
|
|
1004
1006
|
if (isNotEmpty(this.searchValue)) {
|
|
1005
1007
|
if (this.focusedOptionInfo.index !== -1) {
|
|
1006
1008
|
optionIndex = this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex(function (processedOption) {
|
|
1007
|
-
return
|
|
1009
|
+
return _this10.isOptionMatched(processedOption);
|
|
1008
1010
|
});
|
|
1009
1011
|
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionInfo.index).findIndex(function (processedOption) {
|
|
1010
|
-
return
|
|
1012
|
+
return _this10.isOptionMatched(processedOption);
|
|
1011
1013
|
}) : optionIndex + this.focusedOptionInfo.index;
|
|
1012
1014
|
} else {
|
|
1013
1015
|
optionIndex = this.visibleOptions.findIndex(function (processedOption) {
|
|
1014
|
-
return
|
|
1016
|
+
return _this10.isOptionMatched(processedOption);
|
|
1015
1017
|
});
|
|
1016
1018
|
}
|
|
1017
1019
|
if (optionIndex !== -1) {
|
|
@@ -1028,8 +1030,8 @@ var script = {
|
|
|
1028
1030
|
clearTimeout(this.searchTimeout);
|
|
1029
1031
|
}
|
|
1030
1032
|
this.searchTimeout = setTimeout(function () {
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
+
_this10.searchValue = '';
|
|
1034
|
+
_this10.searchTimeout = null;
|
|
1033
1035
|
}, 500);
|
|
1034
1036
|
return matched;
|
|
1035
1037
|
},
|
|
@@ -1055,11 +1057,11 @@ var script = {
|
|
|
1055
1057
|
}
|
|
1056
1058
|
},
|
|
1057
1059
|
scrollInView: function scrollInView() {
|
|
1058
|
-
var
|
|
1060
|
+
var _this11 = this;
|
|
1059
1061
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
1060
1062
|
this.$nextTick(function () {
|
|
1061
|
-
var id = index !== -1 ? "".concat(
|
|
1062
|
-
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, "\"]"));
|
|
1063
1065
|
if (element) {
|
|
1064
1066
|
element.scrollIntoView && element.scrollIntoView({
|
|
1065
1067
|
block: 'nearest',
|
|
@@ -1090,7 +1092,7 @@ var script = {
|
|
|
1090
1092
|
});
|
|
1091
1093
|
},
|
|
1092
1094
|
createProcessedOptions: function createProcessedOptions(options) {
|
|
1093
|
-
var
|
|
1095
|
+
var _this12 = this;
|
|
1094
1096
|
var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
1095
1097
|
var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1096
1098
|
var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
@@ -1105,7 +1107,7 @@ var script = {
|
|
|
1105
1107
|
parent: parent,
|
|
1106
1108
|
parentKey: parentKey
|
|
1107
1109
|
};
|
|
1108
|
-
newOption['children'] =
|
|
1110
|
+
newOption['children'] = _this12.createProcessedOptions(_this12.getOptionGroupChildren(option, level), level + 1, newOption, key);
|
|
1109
1111
|
processedOptions.push(newOption);
|
|
1110
1112
|
});
|
|
1111
1113
|
return processedOptions;
|
|
@@ -1132,9 +1134,9 @@ var script = {
|
|
|
1132
1134
|
return this.createProcessedOptions(this.options || []);
|
|
1133
1135
|
},
|
|
1134
1136
|
visibleOptions: function visibleOptions() {
|
|
1135
|
-
var
|
|
1137
|
+
var _this13 = this;
|
|
1136
1138
|
var processedOption = this.activeOptionPath && this.activeOptionPath.find(function (p) {
|
|
1137
|
-
return p.key ===
|
|
1139
|
+
return p.key === _this13.focusedOptionInfo.parentKey;
|
|
1138
1140
|
});
|
|
1139
1141
|
return processedOption ? processedOption.children : this.processedOptions;
|
|
1140
1142
|
},
|