primevue 4.3.8 → 4.4.0
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/autocomplete/AutoComplete.vue +18 -3
- package/autocomplete/BaseAutoComplete.vue +4 -0
- package/autocomplete/index.d.ts +20 -0
- package/autocomplete/index.mjs +34 -7
- package/autocomplete/index.mjs.map +1 -1
- package/autocomplete/style/index.d.ts +4 -0
- package/autocomplete/style/index.mjs +3 -1
- package/autocomplete/style/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +1 -1
- package/cascadeselect/index.mjs +1 -1
- package/cascadeselect/index.mjs.map +1 -1
- package/checkbox/Checkbox.vue +15 -2
- package/checkbox/index.mjs +14 -2
- package/checkbox/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +5 -6
- package/colorpicker/index.mjs +5 -5
- package/colorpicker/index.mjs.map +1 -1
- package/column/index.d.ts +2 -2
- package/confirmdialog/ConfirmDialog.vue +1 -1
- package/confirmdialog/index.d.ts +5 -0
- package/confirmdialog/index.mjs +3 -2
- package/confirmdialog/index.mjs.map +1 -1
- package/datatable/BodyCell.vue +1 -1
- package/datatable/ColumnFilter.vue +1 -1
- package/datatable/DataTable.vue +6 -3
- package/datatable/HeaderCheckbox.vue +3 -3
- package/datatable/index.mjs +19 -9
- package/datatable/index.mjs.map +1 -1
- package/datepicker/BaseDatePicker.vue +8 -0
- package/datepicker/DatePicker.vue +200 -82
- package/datepicker/index.d.ts +25 -0
- package/datepicker/index.mjs +263 -155
- package/datepicker/index.mjs.map +1 -1
- package/datepicker/style/index.d.ts +4 -0
- package/datepicker/style/index.mjs +5 -2
- package/datepicker/style/index.mjs.map +1 -1
- package/dialog/Dialog.vue +1 -1
- package/dialog/index.d.ts +5 -0
- package/dialog/index.mjs +2 -1
- package/dialog/index.mjs.map +1 -1
- package/drawer/BaseDrawer.vue +4 -0
- package/drawer/Drawer.vue +4 -4
- package/drawer/index.d.ts +5 -0
- package/drawer/index.mjs +8 -4
- package/drawer/index.mjs.map +1 -1
- package/editor/Editor.vue +5 -1
- package/editor/index.mjs +5 -0
- package/editor/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +2 -2
- package/fileupload/index.mjs +2 -2
- package/fileupload/index.mjs.map +1 -1
- package/image/index.d.ts +5 -11
- package/inputmask/InputMask.vue +1 -2
- package/inputmask/index.mjs +1 -1
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/BaseInputNumber.vue +4 -0
- package/inputnumber/InputNumber.vue +33 -5
- package/inputnumber/index.d.ts +20 -0
- package/inputnumber/index.mjs +48 -7
- package/inputnumber/index.mjs.map +1 -1
- package/inputnumber/style/index.mjs +1 -0
- package/inputnumber/style/index.mjs.map +1 -1
- package/inputotp/InputOtp.vue +7 -3
- package/inputotp/index.mjs +6 -3
- package/inputotp/index.mjs.map +1 -1
- package/keyfilter/index.mjs +14 -1
- package/keyfilter/index.mjs.map +1 -1
- package/listbox/Listbox.vue +8 -14
- package/listbox/index.mjs +13 -19
- package/listbox/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +15 -12
- package/multiselect/index.mjs +21 -18
- package/multiselect/index.mjs.map +1 -1
- package/package.json +5 -5
- package/panel/Panel.vue +1 -1
- package/panel/index.d.ts +4 -0
- package/panel/index.mjs +2 -1
- package/panel/index.mjs.map +1 -1
- package/password/BasePassword.vue +4 -0
- package/password/Password.vue +12 -1
- package/password/index.d.ts +20 -0
- package/password/index.mjs +23 -1
- package/password/index.mjs.map +1 -1
- package/password/style/index.d.ts +4 -0
- package/password/style/index.mjs +1 -0
- package/password/style/index.mjs.map +1 -1
- package/select/Select.vue +5 -4
- package/select/index.mjs +6 -5
- package/select/index.mjs.map +1 -1
- package/tab/Tab.vue +0 -1
- package/tab/index.mjs +0 -1
- package/tab/index.mjs.map +1 -1
- package/togglebutton/BaseToggleButton.vue +0 -4
- package/togglebutton/index.d.ts +0 -5
- package/togglebutton/index.mjs +0 -4
- package/togglebutton/index.mjs.map +1 -1
- package/tooltip/index.mjs +5 -1
- package/tooltip/index.mjs.map +1 -1
- package/tree/BaseTree.vue +16 -0
- package/tree/Tree.vue +179 -4
- package/tree/TreeNode.vue +225 -3
- package/tree/index.d.ts +65 -0
- package/tree/index.mjs +499 -22
- package/tree/index.mjs.map +1 -1
- package/tree/style/index.mjs +9 -4
- package/tree/style/index.mjs.map +1 -1
- package/treenode/index.d.ts +12 -0
- package/treeselect/TreeSelect.vue +2 -2
- package/treeselect/index.mjs +2 -2
- package/treeselect/index.mjs.map +1 -1
- package/treetable/TreeTable.vue +15 -1
- package/treetable/index.d.ts +58 -4
- package/treetable/index.mjs +19 -6
- package/treetable/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- package/vetur-attributes.json +0 -4
- package/vetur-tags.json +0 -1
- package/web-types.json +1 -11
package/select/Select.vue
CHANGED
|
@@ -450,6 +450,7 @@ export default {
|
|
|
450
450
|
if (!metaKey && isPrintableCharacter(event.key)) {
|
|
451
451
|
!this.overlayVisible && this.show();
|
|
452
452
|
!this.editable && this.searchOptions(event, event.key);
|
|
453
|
+
this.filter && (this.filterValue = event.key);
|
|
453
454
|
}
|
|
454
455
|
|
|
455
456
|
break;
|
|
@@ -497,7 +498,7 @@ export default {
|
|
|
497
498
|
focus(focusableEl);
|
|
498
499
|
},
|
|
499
500
|
onOptionSelect(event, option, isHide = true) {
|
|
500
|
-
const value = this.getOptionValue(option)
|
|
501
|
+
const value = this.getOptionValue(option);
|
|
501
502
|
this.updateModel(event, value);
|
|
502
503
|
isHide && this.hide(true);
|
|
503
504
|
},
|
|
@@ -863,7 +864,7 @@ export default {
|
|
|
863
864
|
return this.isValidOption(option) && this.isSelected(option);
|
|
864
865
|
},
|
|
865
866
|
isSelected(option) {
|
|
866
|
-
return equals(this.d_value, this.getOptionValue(option)
|
|
867
|
+
return equals(this.d_value, this.getOptionValue(option), this.equalityKey);
|
|
867
868
|
},
|
|
868
869
|
findFirstOptionIndex() {
|
|
869
870
|
return this.visibleOptions.findIndex((option) => this.isValidOption(option));
|
|
@@ -882,7 +883,7 @@ export default {
|
|
|
882
883
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
883
884
|
},
|
|
884
885
|
findSelectedOptionIndex() {
|
|
885
|
-
return this
|
|
886
|
+
return this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option));
|
|
886
887
|
},
|
|
887
888
|
findFirstFocusedOptionIndex() {
|
|
888
889
|
const selectedIndex = this.findSelectedOptionIndex();
|
|
@@ -1062,7 +1063,7 @@ export default {
|
|
|
1062
1063
|
return this.visibleOptions.filter((option) => !this.isOptionGroup(option)).length;
|
|
1063
1064
|
},
|
|
1064
1065
|
isClearIconVisible() {
|
|
1065
|
-
return this.showClear && this.d_value != null &&
|
|
1066
|
+
return this.showClear && this.d_value != null && !this.disabled && !this.loading;
|
|
1066
1067
|
},
|
|
1067
1068
|
virtualScrollerDisabled() {
|
|
1068
1069
|
return !this.virtualScrollerOptions;
|
package/select/index.mjs
CHANGED
|
@@ -422,6 +422,7 @@ var script = {
|
|
|
422
422
|
if (!metaKey && isPrintableCharacter(event.key)) {
|
|
423
423
|
!this.overlayVisible && this.show();
|
|
424
424
|
!this.editable && this.searchOptions(event, event.key);
|
|
425
|
+
this.filter && (this.filterValue = event.key);
|
|
425
426
|
}
|
|
426
427
|
break;
|
|
427
428
|
}
|
|
@@ -460,7 +461,7 @@ var script = {
|
|
|
460
461
|
},
|
|
461
462
|
onOptionSelect: function onOptionSelect(event, option) {
|
|
462
463
|
var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
463
|
-
var value = this.getOptionValue(option)
|
|
464
|
+
var value = this.getOptionValue(option);
|
|
464
465
|
this.updateModel(event, value);
|
|
465
466
|
isHide && this.hide(true);
|
|
466
467
|
},
|
|
@@ -802,7 +803,7 @@ var script = {
|
|
|
802
803
|
return this.isValidOption(option) && this.isSelected(option);
|
|
803
804
|
},
|
|
804
805
|
isSelected: function isSelected(option) {
|
|
805
|
-
return equals(this.d_value, this.getOptionValue(option)
|
|
806
|
+
return equals(this.d_value, this.getOptionValue(option), this.equalityKey);
|
|
806
807
|
},
|
|
807
808
|
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
808
809
|
var _this1 = this;
|
|
@@ -832,9 +833,9 @@ var script = {
|
|
|
832
833
|
},
|
|
833
834
|
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
834
835
|
var _this13 = this;
|
|
835
|
-
return this
|
|
836
|
+
return this.visibleOptions.findIndex(function (option) {
|
|
836
837
|
return _this13.isValidSelectedOption(option);
|
|
837
|
-
})
|
|
838
|
+
});
|
|
838
839
|
},
|
|
839
840
|
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
840
841
|
var selectedIndex = this.findSelectedOptionIndex();
|
|
@@ -1014,7 +1015,7 @@ var script = {
|
|
|
1014
1015
|
}).length;
|
|
1015
1016
|
},
|
|
1016
1017
|
isClearIconVisible: function isClearIconVisible() {
|
|
1017
|
-
return this.showClear && this.d_value != null &&
|
|
1018
|
+
return this.showClear && this.d_value != null && !this.disabled && !this.loading;
|
|
1018
1019
|
},
|
|
1019
1020
|
virtualScrollerDisabled: function virtualScrollerDisabled() {
|
|
1020
1021
|
return !this.virtualScrollerOptions;
|