From 1b2bfb2dd7be9d1467d17d4050caff2bbe5f50b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 2 Sep 2022 16:18:53 +0300 Subject: [PATCH] Fixed #2926 - Update for props typing in .vue files --- src/components/autocomplete/AutoComplete.vue | 35 ++++++++--- src/components/calendar/Calendar.vue | 40 ++++++++++--- .../cascadeselect/CascadeSelect.vue | 35 ++++++++--- src/components/checkbox/Checkbox.vue | 20 +++++-- src/components/chips/Chips.vue | 20 +++++-- src/components/dropdown/Dropdown.vue | 60 +++++++++++++++---- src/components/inputnumber/InputNumber.vue | 30 ++++++++-- src/components/inputswitch/InputSwitch.vue | 20 +++++-- src/components/multiselect/MultiSelect.vue | 35 ++++++++--- src/components/password/Password.vue | 40 ++++++++++--- src/components/radiobutton/RadioButton.vue | 20 +++++-- src/components/togglebutton/ToggleButton.vue | 20 +++++-- src/components/treeselect/TreeSelect.vue | 48 +++++++++++---- .../tristatecheckbox/TriStateCheckbox.vue | 10 +++- 14 files changed, 344 insertions(+), 89 deletions(-) diff --git a/src/components/autocomplete/AutoComplete.vue b/src/components/autocomplete/AutoComplete.vue index e7819565b..524ef45df 100755 --- a/src/components/autocomplete/AutoComplete.vue +++ b/src/components/autocomplete/AutoComplete.vue @@ -135,13 +135,34 @@ export default { type: Boolean, default: false }, - inputId: String, - inputStyle: null, - inputClass: null, - inputProps: null, - panelStyle: null, - panelClass: null, - panelProps: null, + inputId: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputProps: { + type: null, + default: null + }, + panelStyle: { + type: null, + default: null + }, + panelClass: { + type: String, + default: null + }, + panelProps: { + type: null, + default: null + }, loadingIcon: { type: String, default: 'pi pi-spinner' diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index 36ddf47c8..8dc431796 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -321,14 +321,38 @@ export default { type: String, default: null }, - id: null, - inputId: null, - inputClass: null, - inputStyle: null, - inputProps: null, - panelClass: null, - panelStyle: null, - panelProps: null, + id: { + type: String, + default: null + }, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, + panelClass: { + type: String, + default: null + }, + panelStyle: { + type: null, + default: null + }, + panelProps: { + type: null, + default: null + }, 'aria-labelledby': { type: String, default: null diff --git a/src/components/cascadeselect/CascadeSelect.vue b/src/components/cascadeselect/CascadeSelect.vue index 15b845a0c..4cdeefd60 100644 --- a/src/components/cascadeselect/CascadeSelect.vue +++ b/src/components/cascadeselect/CascadeSelect.vue @@ -56,13 +56,34 @@ export default { placeholder: String, disabled: Boolean, dataKey: null, - inputId: null, - inputStyle: null, - inputClass: null, - inputProps: null, - panelStyle: null, - panelClass: null, - panelProps: null, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, + panelClass: { + type: String, + default: null + }, + panelStyle: { + type: null, + default: null + }, + panelProps: { + type: null, + default: null + }, appendTo: { type: String, default: 'body' diff --git a/src/components/checkbox/Checkbox.vue b/src/components/checkbox/Checkbox.vue index bc2a999d9..d1a1ecf81 100755 --- a/src/components/checkbox/Checkbox.vue +++ b/src/components/checkbox/Checkbox.vue @@ -48,10 +48,22 @@ export default { type: Number, default: null }, - inputId: null, - inputClass: null, - inputStyle: null, - inputProps: null, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, 'aria-labelledby': { type: String, default: null diff --git a/src/components/chips/Chips.vue b/src/components/chips/Chips.vue index f38690b84..5906f79cb 100755 --- a/src/components/chips/Chips.vue +++ b/src/components/chips/Chips.vue @@ -48,14 +48,26 @@ export default { type: String, default: null }, - inputId: null, - inputClass: null, - inputStyle: null, - inputProps: null, disabled: { type: Boolean, default: false }, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, 'aria-labelledby': { type: String, default: null diff --git a/src/components/dropdown/Dropdown.vue b/src/components/dropdown/Dropdown.vue index c6f64c440..4d3e7430f 100755 --- a/src/components/dropdown/Dropdown.vue +++ b/src/components/dropdown/Dropdown.vue @@ -107,19 +107,55 @@ export default { default: null }, editable: Boolean, - placeholder: String, - disabled: Boolean, + placeholder: { + type: String, + default: null + }, + disabled: { + type: Boolean, + default: false + }, dataKey: null, - showClear: Boolean, - inputId: String, - inputStyle: null, - inputClass: null, - inputProps: null, - panelStyle: null, - panelClass: null, - panelProps: null, - filterInputProps: null, - clearIconProps: null, + showClear: { + type: Boolean, + default: false + }, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, + panelClass: { + type: String, + default: null + }, + panelStyle: { + type: null, + default: null + }, + panelProps: { + type: null, + default: null + }, + filterInputProps: { + type: null, + default: null + }, + clearIconProps: { + type: null, + default: null + }, appendTo: { type: String, default: 'body' diff --git a/src/components/inputnumber/InputNumber.vue b/src/components/inputnumber/InputNumber.vue index c9d26e7f0..30c7d5f16 100755 --- a/src/components/inputnumber/InputNumber.vue +++ b/src/components/inputnumber/InputNumber.vue @@ -119,12 +119,30 @@ export default { type: String, default: null }, - inputId: null, - inputClass: null, - inputStyle: null, - inputProps: null, - incrementButtonProps: null, - decrementButtonProps: null, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, + incrementButtonProps: { + type: null, + default: null + }, + decrementButtonProps: { + type: null, + default: null + }, 'aria-labelledby': { type: String, default: null diff --git a/src/components/inputswitch/InputSwitch.vue b/src/components/inputswitch/InputSwitch.vue index 9a1d2852e..bdd0d4e86 100755 --- a/src/components/inputswitch/InputSwitch.vue +++ b/src/components/inputswitch/InputSwitch.vue @@ -29,10 +29,22 @@ export default { type: Boolean, default: false }, - inputId: null, - inputClass: null, - inputStyle: null, - inputProps: null, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, 'aria-labelledby': { type: String, default: null diff --git a/src/components/multiselect/MultiSelect.vue b/src/components/multiselect/MultiSelect.vue index 967ed4a88..532349757 100755 --- a/src/components/multiselect/MultiSelect.vue +++ b/src/components/multiselect/MultiSelect.vue @@ -130,13 +130,34 @@ export default { }, placeholder: String, disabled: Boolean, - inputId: String, - inputProps: null, - panelStyle: null, - panelClass: null, - panelProps: null, - filterInputProps: null, - closeButtonProps: null, + inputId: { + type: String, + default: null + }, + inputProps: { + type: null, + default: null + }, + panelClass: { + type: String, + default: null + }, + panelStyle: { + type: null, + default: null + }, + panelProps: { + type: null, + default: null + }, + filterInputProps: { + type: null, + default: null + }, + closeButtonProps: { + type: null, + default: null + }, dataKey: null, filter: Boolean, filterPlaceholder: String, diff --git a/src/components/password/Password.vue b/src/components/password/Password.vue index 51501a482..a94467d5e 100755 --- a/src/components/password/Password.vue +++ b/src/components/password/Password.vue @@ -91,14 +91,38 @@ export default { type: Boolean, required: false }, - inputId: null, - inputClass: null, - inputStyle: null, - inputProps: null, - panelId: null, - panelClass: null, - panelStyle: null, - panelProps: null, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, + panelId: { + type: String, + default: null + }, + panelClass: { + type: String, + default: null + }, + panelStyle: { + type: null, + default: null + }, + panelProps: { + type: null, + default: null + }, 'aria-labelledby': { type: String, default: null diff --git a/src/components/radiobutton/RadioButton.vue b/src/components/radiobutton/RadioButton.vue index dddf5a4db..a6bd8843f 100755 --- a/src/components/radiobutton/RadioButton.vue +++ b/src/components/radiobutton/RadioButton.vue @@ -27,10 +27,22 @@ export default { type: Boolean, default: false }, - inputId: null, - inputClass: null, - inputStyle: null, - inputProps: null, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, 'aria-labelledby': { type: String, default: null diff --git a/src/components/togglebutton/ToggleButton.vue b/src/components/togglebutton/ToggleButton.vue index 07dc0be48..e2131c71e 100755 --- a/src/components/togglebutton/ToggleButton.vue +++ b/src/components/togglebutton/ToggleButton.vue @@ -39,10 +39,22 @@ export default { type: Number, default: null }, - inputId: null, - inputClass: null, - inputStyle: null, - inputProps: null, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, 'aria-labelledby': { type: String, default: null diff --git a/src/components/treeselect/TreeSelect.vue b/src/components/treeselect/TreeSelect.vue index f646148c4..e039d8c1c 100644 --- a/src/components/treeselect/TreeSelect.vue +++ b/src/components/treeselect/TreeSelect.vue @@ -62,18 +62,22 @@ export default { type: String, default: '400px' }, - placeholder: String, - disabled: Boolean, - tabindex: String, + placeholder: { + type: String, + default: null + }, + disabled: { + type: Boolean, + default: false + }, + tabindex: { + type: Number, + default: null + }, selectionMode: { type: String, default: 'single' }, - panelClass: { - type: String, - default: null - }, - panelProps: null, appendTo: { type: String, default: 'body' @@ -90,10 +94,30 @@ export default { type: Boolean, default: true }, - inputId: String, - inputClass: String, - inputStyle: null, - inputProps: null, + inputId: { + type: String, + default: null + }, + inputClass: { + type: String, + default: null + }, + inputStyle: { + type: null, + default: null + }, + inputProps: { + type: null, + default: null + }, + panelClass: { + type: String, + default: null + }, + panelProps: { + type: null, + default: null + }, 'aria-labelledby': { type: String, default: null diff --git a/src/components/tristatecheckbox/TriStateCheckbox.vue b/src/components/tristatecheckbox/TriStateCheckbox.vue index b9c4e4070..7fb2c7fce 100755 --- a/src/components/tristatecheckbox/TriStateCheckbox.vue +++ b/src/components/tristatecheckbox/TriStateCheckbox.vue @@ -17,8 +17,14 @@ export default { emits: ['click', 'update:modelValue', 'change', 'keydown', 'focus', 'blur'], props: { modelValue: null, - inputId: null, - inputProps: null, + inputId: { + type: String, + default: null + }, + inputProps: { + type: null, + default: null + }, disabled: { type: Boolean, default: false