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
|
@@ -740,6 +740,9 @@ export default {
|
|
|
740
740
|
|
|
741
741
|
this.autoFilterFocus && focus(this.$refs.filterInput.$el);
|
|
742
742
|
this.autoUpdateModel();
|
|
743
|
+
|
|
744
|
+
// Issue: #7508
|
|
745
|
+
this.$attrSelector && el.setAttribute(this.$attrSelector, '');
|
|
743
746
|
},
|
|
744
747
|
onOverlayAfterEnter() {
|
|
745
748
|
this.bindOutsideClickListener();
|
|
@@ -934,7 +937,7 @@ export default {
|
|
|
934
937
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
935
938
|
},
|
|
936
939
|
findFirstFocusedOptionIndex() {
|
|
937
|
-
const selectedIndex = this.
|
|
940
|
+
const selectedIndex = this.findFirstSelectedOptionIndex();
|
|
938
941
|
|
|
939
942
|
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
940
943
|
},
|
package/multiselect/index.d.ts
CHANGED
package/multiselect/index.mjs
CHANGED
|
@@ -666,6 +666,9 @@ var script = {
|
|
|
666
666
|
this.scrollInView();
|
|
667
667
|
this.autoFilterFocus && focus(this.$refs.filterInput.$el);
|
|
668
668
|
this.autoUpdateModel();
|
|
669
|
+
|
|
670
|
+
// Issue: #7508
|
|
671
|
+
this.$attrSelector && el.setAttribute(this.$attrSelector, '');
|
|
669
672
|
},
|
|
670
673
|
onOverlayAfterEnter: function onOverlayAfterEnter() {
|
|
671
674
|
this.bindOutsideClickListener();
|
|
@@ -761,7 +764,7 @@ var script = {
|
|
|
761
764
|
return selectedItemsLabel;
|
|
762
765
|
},
|
|
763
766
|
onToggleAll: function onToggleAll(event) {
|
|
764
|
-
var
|
|
767
|
+
var _this0 = this;
|
|
765
768
|
if (this.selectAll !== null) {
|
|
766
769
|
this.$emit('selectall-change', {
|
|
767
770
|
originalEvent: event,
|
|
@@ -769,18 +772,18 @@ var script = {
|
|
|
769
772
|
});
|
|
770
773
|
} else {
|
|
771
774
|
var value = this.allSelected ? [] : this.visibleOptions.filter(function (option) {
|
|
772
|
-
return
|
|
775
|
+
return _this0.isValidOption(option);
|
|
773
776
|
}).map(function (option) {
|
|
774
|
-
return
|
|
777
|
+
return _this0.getOptionValue(option);
|
|
775
778
|
});
|
|
776
779
|
this.updateModel(event, value);
|
|
777
780
|
}
|
|
778
781
|
},
|
|
779
782
|
removeOption: function removeOption(event, optionValue) {
|
|
780
|
-
var
|
|
783
|
+
var _this1 = this;
|
|
781
784
|
event.stopPropagation();
|
|
782
785
|
var value = this.d_value.filter(function (val) {
|
|
783
|
-
return !equals(val, optionValue,
|
|
786
|
+
return !equals(val, optionValue, _this1.equalityKey);
|
|
784
787
|
});
|
|
785
788
|
this.updateModel(event, value);
|
|
786
789
|
},
|
|
@@ -804,45 +807,45 @@ var script = {
|
|
|
804
807
|
return equals(value1, value2, this.equalityKey);
|
|
805
808
|
},
|
|
806
809
|
isSelected: function isSelected(option) {
|
|
807
|
-
var
|
|
810
|
+
var _this10 = this;
|
|
808
811
|
var optionValue = this.getOptionValue(option);
|
|
809
812
|
return (this.d_value || []).some(function (value) {
|
|
810
|
-
return
|
|
813
|
+
return _this10.isEquals(value, optionValue);
|
|
811
814
|
});
|
|
812
815
|
},
|
|
813
816
|
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
814
|
-
var
|
|
817
|
+
var _this11 = this;
|
|
815
818
|
return this.visibleOptions.findIndex(function (option) {
|
|
816
|
-
return
|
|
819
|
+
return _this11.isValidOption(option);
|
|
817
820
|
});
|
|
818
821
|
},
|
|
819
822
|
findLastOptionIndex: function findLastOptionIndex() {
|
|
820
|
-
var
|
|
823
|
+
var _this12 = this;
|
|
821
824
|
return findLastIndex(this.visibleOptions, function (option) {
|
|
822
|
-
return
|
|
825
|
+
return _this12.isValidOption(option);
|
|
823
826
|
});
|
|
824
827
|
},
|
|
825
828
|
findNextOptionIndex: function findNextOptionIndex(index) {
|
|
826
|
-
var
|
|
829
|
+
var _this13 = this;
|
|
827
830
|
var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
828
|
-
return
|
|
831
|
+
return _this13.isValidOption(option);
|
|
829
832
|
}) : -1;
|
|
830
833
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
831
834
|
},
|
|
832
835
|
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
833
|
-
var
|
|
836
|
+
var _this14 = this;
|
|
834
837
|
var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
835
|
-
return
|
|
838
|
+
return _this14.isValidOption(option);
|
|
836
839
|
}) : -1;
|
|
837
840
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
838
841
|
},
|
|
839
842
|
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
840
|
-
var
|
|
843
|
+
var _this15 = this;
|
|
841
844
|
if (this.$filled) {
|
|
842
845
|
var _loop = function _loop() {
|
|
843
|
-
var value =
|
|
844
|
-
var matchedOptionIndex =
|
|
845
|
-
return
|
|
846
|
+
var value = _this15.d_value[index];
|
|
847
|
+
var matchedOptionIndex = _this15.visibleOptions.findIndex(function (option) {
|
|
848
|
+
return _this15.isValidSelectedOption(option) && _this15.isEquals(value, _this15.getOptionValue(option));
|
|
846
849
|
});
|
|
847
850
|
if (matchedOptionIndex > -1) return {
|
|
848
851
|
v: matchedOptionIndex
|
|
@@ -857,28 +860,28 @@ var script = {
|
|
|
857
860
|
return -1;
|
|
858
861
|
},
|
|
859
862
|
findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex() {
|
|
860
|
-
var
|
|
863
|
+
var _this16 = this;
|
|
861
864
|
return this.$filled ? this.visibleOptions.findIndex(function (option) {
|
|
862
|
-
return
|
|
865
|
+
return _this16.isValidSelectedOption(option);
|
|
863
866
|
}) : -1;
|
|
864
867
|
},
|
|
865
868
|
findLastSelectedOptionIndex: function findLastSelectedOptionIndex() {
|
|
866
|
-
var
|
|
869
|
+
var _this17 = this;
|
|
867
870
|
return this.$filled ? findLastIndex(this.visibleOptions, function (option) {
|
|
868
|
-
return
|
|
871
|
+
return _this17.isValidSelectedOption(option);
|
|
869
872
|
}) : -1;
|
|
870
873
|
},
|
|
871
874
|
findNextSelectedOptionIndex: function findNextSelectedOptionIndex(index) {
|
|
872
|
-
var
|
|
875
|
+
var _this18 = this;
|
|
873
876
|
var matchedOptionIndex = this.$filled && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
874
|
-
return
|
|
877
|
+
return _this18.isValidSelectedOption(option);
|
|
875
878
|
}) : -1;
|
|
876
879
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
877
880
|
},
|
|
878
881
|
findPrevSelectedOptionIndex: function findPrevSelectedOptionIndex(index) {
|
|
879
|
-
var
|
|
882
|
+
var _this19 = this;
|
|
880
883
|
var matchedOptionIndex = this.$filled && index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
881
|
-
return
|
|
884
|
+
return _this19.isValidSelectedOption(option);
|
|
882
885
|
}) : -1;
|
|
883
886
|
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
884
887
|
},
|
|
@@ -897,7 +900,7 @@ var script = {
|
|
|
897
900
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
898
901
|
},
|
|
899
902
|
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
900
|
-
var selectedIndex = this.
|
|
903
|
+
var selectedIndex = this.findFirstSelectedOptionIndex();
|
|
901
904
|
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
902
905
|
},
|
|
903
906
|
findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
|
|
@@ -905,20 +908,20 @@ var script = {
|
|
|
905
908
|
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
906
909
|
},
|
|
907
910
|
searchOptions: function searchOptions(event) {
|
|
908
|
-
var
|
|
911
|
+
var _this20 = this;
|
|
909
912
|
this.searchValue = (this.searchValue || '') + event.key;
|
|
910
913
|
var optionIndex = -1;
|
|
911
914
|
if (isNotEmpty(this.searchValue)) {
|
|
912
915
|
if (this.focusedOptionIndex !== -1) {
|
|
913
916
|
optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function (option) {
|
|
914
|
-
return
|
|
917
|
+
return _this20.isOptionMatched(option);
|
|
915
918
|
});
|
|
916
919
|
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function (option) {
|
|
917
|
-
return
|
|
920
|
+
return _this20.isOptionMatched(option);
|
|
918
921
|
}) : optionIndex + this.focusedOptionIndex;
|
|
919
922
|
} else {
|
|
920
923
|
optionIndex = this.visibleOptions.findIndex(function (option) {
|
|
921
|
-
return
|
|
924
|
+
return _this20.isOptionMatched(option);
|
|
922
925
|
});
|
|
923
926
|
}
|
|
924
927
|
if (optionIndex === -1 && this.focusedOptionIndex === -1) {
|
|
@@ -932,8 +935,8 @@ var script = {
|
|
|
932
935
|
clearTimeout(this.searchTimeout);
|
|
933
936
|
}
|
|
934
937
|
this.searchTimeout = setTimeout(function () {
|
|
935
|
-
|
|
936
|
-
|
|
938
|
+
_this20.searchValue = '';
|
|
939
|
+
_this20.searchTimeout = null;
|
|
937
940
|
}, 500);
|
|
938
941
|
},
|
|
939
942
|
changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
|
|
@@ -946,18 +949,18 @@ var script = {
|
|
|
946
949
|
}
|
|
947
950
|
},
|
|
948
951
|
scrollInView: function scrollInView() {
|
|
949
|
-
var
|
|
952
|
+
var _this21 = this;
|
|
950
953
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
951
954
|
this.$nextTick(function () {
|
|
952
|
-
var id = index !== -1 ? "".concat(
|
|
953
|
-
var element = findSingle(
|
|
955
|
+
var id = index !== -1 ? "".concat(_this21.$id, "_").concat(index) : _this21.focusedOptionId;
|
|
956
|
+
var element = findSingle(_this21.list, "li[id=\"".concat(id, "\"]"));
|
|
954
957
|
if (element) {
|
|
955
958
|
element.scrollIntoView && element.scrollIntoView({
|
|
956
959
|
block: 'nearest',
|
|
957
960
|
inline: 'nearest'
|
|
958
961
|
});
|
|
959
|
-
} else if (!
|
|
960
|
-
|
|
962
|
+
} else if (!_this21.virtualScrollerDisabled) {
|
|
963
|
+
_this21.virtualScroller && _this21.virtualScroller.scrollToIndex(index !== -1 ? index : _this21.focusedOptionIndex);
|
|
961
964
|
}
|
|
962
965
|
});
|
|
963
966
|
},
|
|
@@ -978,14 +981,14 @@ var script = {
|
|
|
978
981
|
});
|
|
979
982
|
},
|
|
980
983
|
flatOptions: function flatOptions(options) {
|
|
981
|
-
var
|
|
984
|
+
var _this22 = this;
|
|
982
985
|
return (options || []).reduce(function (result, option, index) {
|
|
983
986
|
result.push({
|
|
984
987
|
optionGroup: option,
|
|
985
988
|
group: true,
|
|
986
989
|
index: index
|
|
987
990
|
});
|
|
988
|
-
var optionGroupChildren =
|
|
991
|
+
var optionGroupChildren = _this22.getOptionGroupChildren(option);
|
|
989
992
|
optionGroupChildren && optionGroupChildren.forEach(function (o) {
|
|
990
993
|
return result.push(o);
|
|
991
994
|
});
|
|
@@ -1005,7 +1008,7 @@ var script = {
|
|
|
1005
1008
|
},
|
|
1006
1009
|
computed: {
|
|
1007
1010
|
visibleOptions: function visibleOptions() {
|
|
1008
|
-
var
|
|
1011
|
+
var _this23 = this;
|
|
1009
1012
|
var options = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
|
|
1010
1013
|
if (this.filterValue) {
|
|
1011
1014
|
var filteredOptions = FilterService.filter(options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
|
|
@@ -1013,11 +1016,11 @@ var script = {
|
|
|
1013
1016
|
var optionGroups = this.options || [];
|
|
1014
1017
|
var filtered = [];
|
|
1015
1018
|
optionGroups.forEach(function (group) {
|
|
1016
|
-
var groupChildren =
|
|
1019
|
+
var groupChildren = _this23.getOptionGroupChildren(group);
|
|
1017
1020
|
var filteredItems = groupChildren.filter(function (item) {
|
|
1018
1021
|
return filteredOptions.includes(item);
|
|
1019
1022
|
});
|
|
1020
|
-
if (filteredItems.length > 0) filtered.push(_objectSpread(_objectSpread({}, group), {}, _defineProperty$1({}, typeof
|
|
1023
|
+
if (filteredItems.length > 0) filtered.push(_objectSpread(_objectSpread({}, group), {}, _defineProperty$1({}, typeof _this23.optionGroupChildren === 'string' ? _this23.optionGroupChildren : 'items', _toConsumableArray(filteredItems))));
|
|
1021
1024
|
});
|
|
1022
1025
|
return this.flatOptions(filtered);
|
|
1023
1026
|
}
|
|
@@ -1049,9 +1052,9 @@ var script = {
|
|
|
1049
1052
|
return isNotEmpty(this.maxSelectedLabels) && this.d_value && this.d_value.length > this.maxSelectedLabels;
|
|
1050
1053
|
},
|
|
1051
1054
|
allSelected: function allSelected() {
|
|
1052
|
-
var
|
|
1055
|
+
var _this24 = this;
|
|
1053
1056
|
return this.selectAll !== null ? this.selectAll : isNotEmpty(this.visibleOptions) && this.visibleOptions.every(function (option) {
|
|
1054
|
-
return
|
|
1057
|
+
return _this24.isOptionGroup(option) || _this24.isOptionDisabled(option) || _this24.isSelected(option);
|
|
1055
1058
|
});
|
|
1056
1059
|
},
|
|
1057
1060
|
// @deprecated use $filled instead.
|
|
@@ -1092,9 +1095,9 @@ var script = {
|
|
|
1092
1095
|
return this.focusedOptionIndex !== -1 ? "".concat(this.$id, "_").concat(this.focusedOptionIndex) : null;
|
|
1093
1096
|
},
|
|
1094
1097
|
ariaSetSize: function ariaSetSize() {
|
|
1095
|
-
var
|
|
1098
|
+
var _this25 = this;
|
|
1096
1099
|
return this.visibleOptions.filter(function (option) {
|
|
1097
|
-
return !
|
|
1100
|
+
return !_this25.isOptionGroup(option);
|
|
1098
1101
|
}).length;
|
|
1099
1102
|
},
|
|
1100
1103
|
toggleAllAriaLabel: function toggleAllAriaLabel() {
|