primevue 4.1.1 → 4.2.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/accordion/index.mjs.map +1 -1
- package/accordion/style/index.mjs +1 -1
- package/accordion/style/index.mjs.map +1 -1
- package/accordioncontent/index.mjs.map +1 -1
- package/accordioncontent/style/index.mjs.map +1 -1
- package/accordionheader/index.mjs.map +1 -1
- package/accordionheader/style/index.mjs.map +1 -1
- package/accordionpanel/index.mjs.map +1 -1
- package/accordionpanel/style/index.mjs.map +1 -1
- package/accordiontab/index.mjs.map +1 -1
- package/accordiontab/style/index.mjs.map +1 -1
- package/animateonscroll/index.mjs.map +1 -1
- package/animateonscroll/style/index.mjs.map +1 -1
- package/autocomplete/AutoComplete.vue +36 -32
- package/autocomplete/BaseAutoComplete.vue +2 -19
- package/autocomplete/index.d.ts +21 -0
- package/autocomplete/index.mjs +40 -53
- package/autocomplete/index.mjs.map +1 -1
- package/autocomplete/style/index.mjs +7 -7
- package/autocomplete/style/index.mjs.map +1 -1
- package/avatar/index.mjs.map +1 -1
- package/avatar/style/index.mjs +1 -1
- package/avatar/style/index.mjs.map +1 -1
- package/avatargroup/index.mjs.map +1 -1
- package/avatargroup/style/index.mjs.map +1 -1
- package/badge/index.mjs.map +1 -1
- package/badge/style/index.mjs.map +1 -1
- package/badgedirective/index.d.ts +2 -2
- package/badgedirective/index.mjs.map +1 -1
- package/badgedirective/style/index.mjs.map +1 -1
- package/blockui/index.mjs.map +1 -1
- package/blockui/style/index.mjs.map +1 -1
- package/breadcrumb/Breadcrumb.vue +1 -1
- package/breadcrumb/index.mjs +2 -1
- package/breadcrumb/index.mjs.map +1 -1
- package/breadcrumb/style/index.d.ts +4 -0
- package/breadcrumb/style/index.mjs +2 -1
- package/breadcrumb/style/index.mjs.map +1 -1
- package/button/BaseButton.vue +4 -0
- package/button/index.d.ts +6 -0
- package/button/index.mjs +4 -0
- package/button/index.mjs.map +1 -1
- package/button/style/index.mjs +3 -3
- package/button/style/index.mjs.map +1 -1
- package/buttongroup/index.mjs.map +1 -1
- package/buttongroup/style/index.mjs +1 -1
- package/buttongroup/style/index.mjs.map +1 -1
- package/calendar/index.mjs.map +1 -1
- package/calendar/style/index.mjs.map +1 -1
- package/card/index.mjs.map +1 -1
- package/card/style/index.mjs.map +1 -1
- package/carousel/index.mjs.map +1 -1
- package/carousel/style/index.mjs +1 -1
- package/carousel/style/index.mjs.map +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +8 -14
- package/cascadeselect/CascadeSelect.vue +34 -25
- package/cascadeselect/index.d.ts +45 -0
- package/cascadeselect/index.mjs +50 -38
- package/cascadeselect/index.mjs.map +1 -1
- package/cascadeselect/style/index.d.ts +4 -0
- package/cascadeselect/style/index.mjs +8 -5
- package/cascadeselect/style/index.mjs.map +1 -1
- package/chart/index.mjs.map +1 -1
- package/chart/style/index.mjs.map +1 -1
- package/checkbox/BaseCheckbox.vue +2 -19
- package/checkbox/Checkbox.vue +18 -6
- package/checkbox/index.d.ts +17 -0
- package/checkbox/index.mjs +20 -25
- package/checkbox/index.mjs.map +1 -1
- package/checkbox/style/index.mjs +5 -3
- package/checkbox/style/index.mjs.map +1 -1
- package/checkboxgroup/BaseCheckboxGroup.vue +16 -0
- package/checkboxgroup/CheckboxGroup.vue +29 -0
- package/checkboxgroup/index.d.ts +160 -0
- package/checkboxgroup/index.mjs +46 -0
- package/checkboxgroup/index.mjs.map +1 -0
- package/checkboxgroup/package.json +11 -0
- package/checkboxgroup/style/index.d.ts +19 -0
- package/checkboxgroup/style/index.mjs +17 -0
- package/checkboxgroup/style/index.mjs.map +1 -0
- package/checkboxgroup/style/package.json +6 -0
- package/chip/index.mjs.map +1 -1
- package/chip/style/index.mjs +1 -1
- package/chip/style/index.mjs.map +1 -1
- package/chips/index.mjs.map +1 -1
- package/chips/style/index.mjs.map +1 -1
- package/colorpicker/BaseColorPicker.vue +2 -10
- package/colorpicker/ColorPicker.vue +7 -4
- package/colorpicker/index.d.ts +22 -0
- package/colorpicker/index.mjs +21 -23
- package/colorpicker/index.mjs.map +1 -1
- package/colorpicker/style/index.mjs +5 -3
- package/colorpicker/style/index.mjs.map +1 -1
- package/column/index.mjs.map +1 -1
- package/column/style/index.mjs.map +1 -1
- package/columngroup/index.mjs.map +1 -1
- package/columngroup/style/index.mjs.map +1 -1
- package/config/index.d.ts +4 -0
- package/confirmationservice/index.mjs.map +1 -1
- package/confirmdialog/index.mjs.map +1 -1
- package/confirmdialog/style/index.mjs.map +1 -1
- package/confirmpopup/index.mjs.map +1 -1
- package/confirmpopup/style/index.mjs +1 -1
- package/confirmpopup/style/index.mjs.map +1 -1
- package/contextmenu/index.mjs.map +1 -1
- package/contextmenu/style/index.mjs +1 -1
- package/contextmenu/style/index.mjs.map +1 -1
- package/datatable/BodyCell.vue +15 -6
- package/datatable/DataTable.vue +56 -2
- package/datatable/FooterCell.vue +15 -6
- package/datatable/HeaderCell.vue +15 -6
- package/datatable/index.d.ts +12 -8
- package/datatable/index.mjs +163 -78
- package/datatable/index.mjs.map +1 -1
- package/datatable/style/index.mjs +1 -1
- package/datatable/style/index.mjs.map +1 -1
- package/dataview/DataView.vue +33 -1
- package/dataview/index.d.ts +4 -0
- package/dataview/index.mjs +42 -6
- package/dataview/index.mjs.map +1 -1
- package/dataview/style/index.mjs.map +1 -1
- package/datepicker/BaseDatePicker.vue +2 -23
- package/datepicker/DatePicker.vue +39 -40
- package/datepicker/index.d.ts +21 -4
- package/datepicker/index.mjs +45 -65
- package/datepicker/index.mjs.map +1 -1
- package/datepicker/style/index.mjs +4 -5
- package/datepicker/style/index.mjs.map +1 -1
- package/deferredcontent/index.mjs.map +1 -1
- package/deferredcontent/style/index.mjs.map +1 -1
- package/dialog/index.mjs.map +1 -1
- package/dialog/style/index.mjs +1 -1
- package/dialog/style/index.mjs.map +1 -1
- package/dialogservice/index.mjs.map +1 -1
- package/divider/index.mjs.map +1 -1
- package/divider/style/index.mjs +1 -1
- package/divider/style/index.mjs.map +1 -1
- package/dock/index.mjs.map +1 -1
- package/dock/style/index.mjs +1 -1
- package/dock/style/index.mjs.map +1 -1
- package/drawer/index.mjs.map +1 -1
- package/drawer/style/index.mjs +1 -1
- package/drawer/style/index.mjs.map +1 -1
- package/dropdown/index.mjs.map +1 -1
- package/dropdown/style/index.mjs.map +1 -1
- package/dynamicdialog/index.mjs.map +1 -1
- package/dynamicdialog/style/index.mjs.map +1 -1
- package/editor/BaseEditor.vue +2 -3
- package/editor/Editor.vue +3 -3
- package/editor/index.d.ts +22 -0
- package/editor/index.mjs +5 -6
- package/editor/index.mjs.map +1 -1
- package/editor/style/index.mjs +7 -2
- package/editor/style/index.mjs.map +1 -1
- package/fieldset/index.mjs.map +1 -1
- package/fieldset/style/index.mjs +1 -1
- package/fieldset/style/index.mjs.map +1 -1
- package/fileupload/index.mjs.map +1 -1
- package/fileupload/style/index.mjs +1 -1
- package/fileupload/style/index.mjs.map +1 -1
- package/floatlabel/index.mjs.map +1 -1
- package/floatlabel/style/index.mjs +1 -1
- package/floatlabel/style/index.mjs.map +1 -1
- package/fluid/index.mjs.map +1 -1
- package/fluid/style/index.mjs.map +1 -1
- package/focustrap/index.mjs.map +1 -1
- package/focustrap/style/index.mjs.map +1 -1
- package/galleria/index.mjs.map +1 -1
- package/galleria/style/index.mjs +1 -1
- package/galleria/style/index.mjs.map +1 -1
- package/iconfield/index.mjs.map +1 -1
- package/iconfield/style/index.mjs +1 -1
- package/iconfield/style/index.mjs.map +1 -1
- package/iftalabel/index.mjs.map +1 -1
- package/iftalabel/style/index.mjs +1 -1
- package/iftalabel/style/index.mjs.map +1 -1
- package/image/index.mjs.map +1 -1
- package/image/style/index.mjs +1 -1
- package/image/style/index.mjs.map +1 -1
- package/imagecompare/ImageCompare.vue +33 -1
- package/imagecompare/index.mjs +35 -1
- package/imagecompare/index.mjs.map +1 -1
- package/imagecompare/style/index.mjs +1 -1
- package/imagecompare/style/index.mjs.map +1 -1
- package/index.d.ts +811 -0
- package/index.mjs +531 -0
- package/index.mjs.map +1 -0
- package/inlinemessage/index.mjs.map +1 -1
- package/inlinemessage/style/index.mjs.map +1 -1
- package/inplace/index.d.ts +0 -4
- package/inplace/index.mjs.map +1 -1
- package/inplace/style/index.mjs.map +1 -1
- package/inputchips/index.mjs.map +1 -1
- package/inputchips/style/index.mjs.map +1 -1
- package/inputgroup/index.mjs.map +1 -1
- package/inputgroup/style/index.mjs +1 -1
- package/inputgroup/style/index.mjs.map +1 -1
- package/inputgroupaddon/index.mjs.map +1 -1
- package/inputgroupaddon/style/index.mjs.map +1 -1
- package/inputicon/index.mjs.map +1 -1
- package/inputicon/style/index.mjs.map +1 -1
- package/inputmask/BaseInputMask.vue +2 -23
- package/inputmask/InputMask.vue +9 -14
- package/inputmask/index.d.ts +13 -0
- package/inputmask/index.mjs +13 -38
- package/inputmask/index.mjs.map +1 -1
- package/inputmask/style/index.mjs +1 -1
- package/inputmask/style/index.mjs.map +1 -1
- package/inputnumber/BaseInputNumber.vue +2 -22
- package/inputnumber/InputNumber.vue +14 -16
- package/inputnumber/index.d.ts +26 -0
- package/inputnumber/index.mjs +22 -39
- package/inputnumber/index.mjs.map +1 -1
- package/inputnumber/style/index.mjs +3 -3
- package/inputnumber/style/index.mjs.map +1 -1
- package/inputotp/BaseInputOtp.vue +2 -18
- package/inputotp/InputOtp.vue +4 -2
- package/inputotp/index.d.ts +21 -0
- package/inputotp/index.mjs +7 -21
- package/inputotp/index.mjs.map +1 -1
- package/inputotp/style/index.mjs +2 -2
- package/inputotp/style/index.mjs.map +1 -1
- package/inputswitch/index.mjs.map +1 -1
- package/inputswitch/style/index.mjs.map +1 -1
- package/inputtext/BaseInputText.vue +2 -21
- package/inputtext/InputText.vue +13 -22
- package/inputtext/index.d.ts +17 -0
- package/inputtext/index.mjs +16 -48
- package/inputtext/index.mjs.map +1 -1
- package/inputtext/style/index.mjs +7 -7
- package/inputtext/style/index.mjs.map +1 -1
- package/keyfilter/index.mjs.map +1 -1
- package/keyfilter/style/index.mjs.map +1 -1
- package/knob/BaseKnob.vue +2 -10
- package/knob/Knob.vue +23 -19
- package/knob/index.d.ts +24 -2
- package/knob/index.mjs +31 -32
- package/knob/index.mjs.map +1 -1
- package/knob/style/index.mjs +4 -2
- package/knob/style/index.mjs.map +1 -1
- package/listbox/BaseListbox.vue +2 -11
- package/listbox/Listbox.vue +21 -20
- package/listbox/index.d.ts +17 -0
- package/listbox/index.mjs +23 -31
- package/listbox/index.mjs.map +1 -1
- package/listbox/style/index.mjs +4 -3
- package/listbox/style/index.mjs.map +1 -1
- package/megamenu/index.mjs.map +1 -1
- package/megamenu/style/index.mjs +1 -1
- package/megamenu/style/index.mjs.map +1 -1
- package/menu/index.mjs.map +1 -1
- package/menu/style/index.mjs +1 -1
- package/menu/style/index.mjs.map +1 -1
- package/menubar/index.mjs.map +1 -1
- package/menubar/style/index.mjs +1 -1
- package/menubar/style/index.mjs.map +1 -1
- package/message/BaseMessage.vue +8 -0
- package/message/index.d.ts +9 -0
- package/message/index.mjs +8 -0
- package/message/index.mjs.map +1 -1
- package/message/style/index.mjs +7 -2
- package/message/style/index.mjs.map +1 -1
- package/metergroup/index.mjs.map +1 -1
- package/metergroup/style/index.mjs +1 -1
- package/metergroup/style/index.mjs.map +1 -1
- package/multiselect/BaseMultiSelect.vue +14 -19
- package/multiselect/MultiSelect.vue +45 -31
- package/multiselect/index.d.ts +50 -0
- package/multiselect/index.mjs +71 -52
- package/multiselect/index.mjs.map +1 -1
- package/multiselect/style/index.d.ts +4 -0
- package/multiselect/style/index.mjs +8 -5
- package/multiselect/style/index.mjs.map +1 -1
- package/orderlist/index.mjs.map +1 -1
- package/orderlist/style/index.mjs.map +1 -1
- package/organizationchart/index.mjs.map +1 -1
- package/organizationchart/style/index.mjs +1 -1
- package/organizationchart/style/index.mjs.map +1 -1
- package/overlaybadge/index.mjs.map +1 -1
- package/overlaybadge/style/index.mjs +1 -1
- package/overlaybadge/style/index.mjs.map +1 -1
- package/overlaypanel/index.mjs.map +1 -1
- package/overlaypanel/style/index.mjs.map +1 -1
- package/package.json +15 -6
- package/paginator/Paginator.vue +104 -84
- package/paginator/index.d.ts +54 -0
- package/paginator/index.mjs +21 -3
- package/paginator/index.mjs.map +1 -1
- package/paginator/style/index.mjs +1 -1
- package/paginator/style/index.mjs.map +1 -1
- package/panel/index.mjs.map +1 -1
- package/panel/style/index.mjs.map +1 -1
- package/panelmenu/index.mjs.map +1 -1
- package/panelmenu/style/index.mjs +1 -1
- package/panelmenu/style/index.mjs.map +1 -1
- package/passthrough/index.mjs.map +1 -1
- package/password/BasePassword.vue +2 -15
- package/password/Password.vue +13 -18
- package/password/index.d.ts +21 -0
- package/password/index.mjs +14 -32
- package/password/index.mjs.map +1 -1
- package/password/style/index.mjs +3 -3
- package/password/style/index.mjs.map +1 -1
- package/picklist/index.mjs.map +1 -1
- package/picklist/style/index.mjs.map +1 -1
- package/popover/index.mjs.map +1 -1
- package/popover/style/index.mjs +1 -1
- package/popover/style/index.mjs.map +1 -1
- package/portal/index.mjs.map +1 -1
- package/portal/style/index.mjs.map +1 -1
- package/progressbar/index.mjs.map +1 -1
- package/progressbar/style/index.mjs +1 -1
- package/progressbar/style/index.mjs.map +1 -1
- package/progressspinner/index.mjs.map +1 -1
- package/progressspinner/style/index.mjs.map +1 -1
- package/radiobutton/BaseRadioButton.vue +2 -19
- package/radiobutton/RadioButton.vue +15 -4
- package/radiobutton/index.d.ts +17 -0
- package/radiobutton/index.mjs +17 -23
- package/radiobutton/index.mjs.map +1 -1
- package/radiobutton/style/index.mjs +5 -3
- package/radiobutton/style/index.mjs.map +1 -1
- package/radiobuttongroup/BaseRadioButtonGroup.vue +16 -0
- package/radiobuttongroup/RadioButtonGroup.vue +29 -0
- package/radiobuttongroup/index.d.ts +160 -0
- package/radiobuttongroup/index.mjs +46 -0
- package/radiobuttongroup/index.mjs.map +1 -0
- package/radiobuttongroup/package.json +11 -0
- package/radiobuttongroup/style/index.d.ts +19 -0
- package/radiobuttongroup/style/index.mjs +17 -0
- package/radiobuttongroup/style/index.mjs.map +1 -0
- package/radiobuttongroup/style/package.json +6 -0
- package/rating/BaseRating.vue +2 -10
- package/rating/Rating.vue +17 -16
- package/rating/index.d.ts +18 -0
- package/rating/index.mjs +17 -23
- package/rating/index.mjs.map +1 -1
- package/rating/style/index.mjs +14 -5
- package/rating/style/index.mjs.map +1 -1
- package/ripple/index.mjs.map +1 -1
- package/ripple/style/index.mjs.map +1 -1
- package/row/index.mjs.map +1 -1
- package/row/style/index.mjs.map +1 -1
- package/scrollpanel/ScrollPanel.vue +38 -5
- package/scrollpanel/index.mjs +58 -28
- package/scrollpanel/index.mjs.map +1 -1
- package/scrollpanel/style/index.mjs +1 -1
- package/scrollpanel/style/index.mjs.map +1 -1
- package/scrolltop/index.mjs.map +1 -1
- package/scrolltop/style/index.mjs +1 -1
- package/scrolltop/style/index.mjs.map +1 -1
- package/select/BaseSelect.vue +2 -19
- package/select/Select.vue +15 -19
- package/select/index.d.ts +21 -0
- package/select/index.mjs +18 -40
- package/select/index.mjs.map +1 -1
- package/select/style/index.mjs +7 -5
- package/select/style/index.mjs.map +1 -1
- package/selectbutton/BaseSelectButton.vue +6 -8
- package/selectbutton/SelectButton.vue +9 -8
- package/selectbutton/index.d.ts +21 -0
- package/selectbutton/index.mjs +15 -16
- package/selectbutton/index.mjs.map +1 -1
- package/selectbutton/style/index.mjs +3 -3
- package/selectbutton/style/index.mjs.map +1 -1
- package/sidebar/index.mjs.map +1 -1
- package/sidebar/style/index.mjs.map +1 -1
- package/skeleton/index.mjs.map +1 -1
- package/skeleton/style/index.mjs +1 -1
- package/skeleton/style/index.mjs.map +1 -1
- package/slider/BaseSlider.vue +2 -7
- package/slider/Slider.vue +94 -38
- package/slider/index.d.ts +22 -0
- package/slider/index.mjs +145 -72
- package/slider/index.mjs.map +1 -1
- package/slider/style/index.mjs +4 -2
- package/slider/style/index.mjs.map +1 -1
- package/speeddial/index.mjs.map +1 -1
- package/speeddial/style/index.mjs +1 -1
- package/speeddial/style/index.mjs.map +1 -1
- package/splitbutton/index.mjs.map +1 -1
- package/splitbutton/style/index.mjs +1 -1
- package/splitbutton/style/index.mjs.map +1 -1
- package/splitter/Splitter.vue +31 -3
- package/splitter/index.mjs +50 -20
- package/splitter/index.mjs.map +1 -1
- package/splitter/style/index.mjs.map +1 -1
- package/splitterpanel/index.mjs.map +1 -1
- package/splitterpanel/style/index.mjs.map +1 -1
- package/step/index.mjs.map +1 -1
- package/step/style/index.mjs.map +1 -1
- package/stepitem/index.mjs.map +1 -1
- package/stepitem/style/index.mjs.map +1 -1
- package/steplist/index.mjs.map +1 -1
- package/steplist/style/index.mjs.map +1 -1
- package/steppanel/index.mjs.map +1 -1
- package/steppanel/style/index.mjs.map +1 -1
- package/steppanels/index.mjs.map +1 -1
- package/steppanels/style/index.mjs.map +1 -1
- package/stepper/index.mjs.map +1 -1
- package/stepper/style/index.mjs +1 -1
- package/stepper/style/index.mjs.map +1 -1
- package/steps/index.mjs.map +1 -1
- package/steps/style/index.mjs +1 -1
- package/steps/style/index.mjs.map +1 -1
- package/styleclass/index.mjs.map +1 -1
- package/styleclass/style/index.mjs.map +1 -1
- package/tab/index.mjs.map +1 -1
- package/tab/style/index.mjs.map +1 -1
- package/tablist/TabList.vue +40 -5
- package/tablist/index.mjs +38 -5
- package/tablist/index.mjs.map +1 -1
- package/tablist/style/index.mjs.map +1 -1
- package/tabmenu/index.mjs.map +1 -1
- package/tabmenu/style/index.mjs.map +1 -1
- package/tabpanel/index.mjs.map +1 -1
- package/tabpanel/style/index.mjs.map +1 -1
- package/tabpanels/index.mjs.map +1 -1
- package/tabpanels/style/index.mjs.map +1 -1
- package/tabs/index.mjs.map +1 -1
- package/tabs/style/index.mjs +1 -1
- package/tabs/style/index.mjs.map +1 -1
- package/tabview/index.mjs.map +1 -1
- package/tabview/style/index.mjs.map +1 -1
- package/tag/index.mjs.map +1 -1
- package/tag/style/index.mjs.map +1 -1
- package/terminal/index.mjs.map +1 -1
- package/terminal/style/index.mjs +1 -1
- package/terminal/style/index.mjs.map +1 -1
- package/textarea/BaseTextarea.vue +3 -16
- package/textarea/Textarea.vue +13 -19
- package/textarea/index.d.ts +21 -0
- package/textarea/index.mjs +14 -38
- package/textarea/index.mjs.map +1 -1
- package/textarea/style/index.mjs +7 -5
- package/textarea/style/index.mjs.map +1 -1
- package/tieredmenu/index.mjs.map +1 -1
- package/tieredmenu/style/index.mjs +1 -1
- package/tieredmenu/style/index.mjs.map +1 -1
- package/timeline/index.mjs.map +1 -1
- package/timeline/style/index.mjs.map +1 -1
- package/toast/Toast.vue +0 -1
- package/toast/index.mjs.map +1 -1
- package/toast/style/index.mjs +1 -1
- package/toast/style/index.mjs.map +1 -1
- package/toastservice/index.mjs.map +1 -1
- package/togglebutton/BaseToggleButton.vue +6 -11
- package/togglebutton/ToggleButton.vue +11 -7
- package/togglebutton/index.d.ts +21 -0
- package/togglebutton/index.mjs +20 -18
- package/togglebutton/index.mjs.map +1 -1
- package/togglebutton/style/index.mjs +4 -2
- package/togglebutton/style/index.mjs.map +1 -1
- package/toggleswitch/BaseToggleSwitch.vue +2 -14
- package/toggleswitch/ToggleSwitch.vue +4 -3
- package/toggleswitch/index.d.ts +17 -0
- package/toggleswitch/index.mjs +7 -17
- package/toggleswitch/index.mjs.map +1 -1
- package/toggleswitch/style/index.mjs +2 -2
- package/toggleswitch/style/index.mjs.map +1 -1
- package/toolbar/index.mjs.map +1 -1
- package/toolbar/style/index.mjs.map +1 -1
- package/tooltip/index.mjs.map +1 -1
- package/tooltip/style/index.mjs.map +1 -1
- package/tree/TreeNode.vue +1 -1
- package/tree/index.mjs +2 -2
- package/tree/index.mjs.map +1 -1
- package/tree/style/index.mjs +1 -1
- package/tree/style/index.mjs.map +1 -1
- package/treeselect/BaseTreeSelect.vue +18 -19
- package/treeselect/TreeSelect.vue +61 -18
- package/treeselect/index.d.ts +80 -26
- package/treeselect/index.mjs +87 -38
- package/treeselect/index.mjs.map +1 -1
- package/treeselect/style/index.d.ts +4 -0
- package/treeselect/style/index.mjs +8 -5
- package/treeselect/style/index.mjs.map +1 -1
- package/treetable/BodyCell.vue +21 -12
- package/treetable/FooterCell.vue +15 -6
- package/treetable/HeaderCell.vue +15 -6
- package/treetable/TreeTable.vue +57 -2
- package/treetable/index.d.ts +12 -8
- package/treetable/index.mjs +146 -59
- package/treetable/index.mjs.map +1 -1
- package/treetable/style/index.mjs +1 -1
- package/treetable/style/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- package/useconfirm/index.mjs.map +1 -1
- package/usedialog/index.mjs.map +1 -1
- package/usetoast/index.mjs.map +1 -1
- package/virtualscroller/index.mjs.map +1 -1
- package/virtualscroller/style/index.mjs.map +1 -1
- package/web-types.json +1 -1
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
ref="focusInput"
|
|
6
6
|
:id="inputId"
|
|
7
7
|
type="text"
|
|
8
|
+
:name="$formName"
|
|
8
9
|
:class="[cx('pcInputText'), inputClass]"
|
|
9
10
|
:style="inputStyle"
|
|
10
11
|
:value="inputValue"
|
|
11
12
|
:placeholder="placeholder"
|
|
12
13
|
:tabindex="!disabled ? tabindex : -1"
|
|
13
|
-
:fluid="
|
|
14
|
+
:fluid="$fluid"
|
|
14
15
|
:disabled="disabled"
|
|
16
|
+
:size="size"
|
|
15
17
|
:invalid="invalid"
|
|
16
18
|
:variant="variant"
|
|
17
19
|
autocomplete="off"
|
|
@@ -45,14 +47,14 @@
|
|
|
45
47
|
v-bind="ptm('inputMultiple')"
|
|
46
48
|
>
|
|
47
49
|
<li
|
|
48
|
-
v-for="(option, i) of
|
|
50
|
+
v-for="(option, i) of d_value"
|
|
49
51
|
:key="`${i}_${getOptionLabel(option)}`"
|
|
50
52
|
:id="id + '_multiple_option_' + i"
|
|
51
53
|
:class="cx('chipItem', { i })"
|
|
52
54
|
role="option"
|
|
53
55
|
:aria-label="getOptionLabel(option)"
|
|
54
56
|
:aria-selected="true"
|
|
55
|
-
:aria-setsize="
|
|
57
|
+
:aria-setsize="d_value.length"
|
|
56
58
|
:aria-posinset="i + 1"
|
|
57
59
|
v-bind="ptm('chipItem')"
|
|
58
60
|
>
|
|
@@ -122,7 +124,7 @@
|
|
|
122
124
|
<Portal :appendTo="appendTo">
|
|
123
125
|
<transition name="p-connected-overlay" @enter="onOverlayEnter" @after-enter="onOverlayAfterEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave" v-bind="ptm('transition')">
|
|
124
126
|
<div v-if="overlayVisible" :ref="overlayRef" :id="panelId" :class="[cx('overlay'), panelClass, overlayClass]" :style="{ ...panelStyle, ...overlayStyle }" @click="onOverlayClick" @keydown="onOverlayKeyDown" v-bind="ptm('overlay')">
|
|
125
|
-
<slot name="header" :value="
|
|
127
|
+
<slot name="header" :value="d_value" :suggestions="visibleOptions"></slot>
|
|
126
128
|
<div :class="cx('listContainer')" :style="{ 'max-height': virtualScrollerDisabled ? scrollHeight : '' }" v-bind="ptm('listContainer')">
|
|
127
129
|
<VirtualScroller :ref="virtualScrollerRef" v-bind="virtualScrollerOptions" :style="{ height: scrollHeight }" :items="visibleOptions" :tabindex="-1" :disabled="virtualScrollerDisabled" :pt="ptm('virtualScroller')">
|
|
128
130
|
<template v-slot:content="{ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }">
|
|
@@ -170,7 +172,7 @@
|
|
|
170
172
|
</template>
|
|
171
173
|
</VirtualScroller>
|
|
172
174
|
</div>
|
|
173
|
-
<slot name="footer" :value="
|
|
175
|
+
<slot name="footer" :value="d_value" :suggestions="visibleOptions"></slot>
|
|
174
176
|
<span role="status" aria-live="polite" class="p-hidden-accessible" v-bind="ptm('hiddenSelectedMessage')" :data-p-hidden-accessible="true">
|
|
175
177
|
{{ selectedMessageText }}
|
|
176
178
|
</span>
|
|
@@ -199,7 +201,7 @@ export default {
|
|
|
199
201
|
name: 'AutoComplete',
|
|
200
202
|
extends: BaseAutoComplete,
|
|
201
203
|
inheritAttrs: false,
|
|
202
|
-
emits: ['
|
|
204
|
+
emits: ['change', 'focus', 'blur', 'item-select', 'item-unselect', 'option-select', 'option-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
|
|
203
205
|
inject: {
|
|
204
206
|
$pcFluid: { default: null }
|
|
205
207
|
},
|
|
@@ -342,6 +344,7 @@ export default {
|
|
|
342
344
|
this.focused = false;
|
|
343
345
|
this.focusedOptionIndex = -1;
|
|
344
346
|
this.$emit('blur', event);
|
|
347
|
+
this.formField.onBlur?.();
|
|
345
348
|
},
|
|
346
349
|
onKeyDown(event) {
|
|
347
350
|
if (this.disabled) {
|
|
@@ -533,7 +536,7 @@ export default {
|
|
|
533
536
|
this.$refs.focusInput.value = '';
|
|
534
537
|
|
|
535
538
|
if (!this.isSelected(option)) {
|
|
536
|
-
this.updateModel(event, [...(this.
|
|
539
|
+
this.updateModel(event, [...(this.d_value || []), value]);
|
|
537
540
|
}
|
|
538
541
|
} else {
|
|
539
542
|
this.updateModel(event, value);
|
|
@@ -602,9 +605,9 @@ export default {
|
|
|
602
605
|
this.focusedOptionIndex = -1;
|
|
603
606
|
|
|
604
607
|
if (this.multiple) {
|
|
605
|
-
if (isEmpty(target.value) && this
|
|
608
|
+
if (isEmpty(target.value) && this.$filled) {
|
|
606
609
|
focus(this.$refs.multiContainer);
|
|
607
|
-
this.focusedMultipleOptionIndex = this.
|
|
610
|
+
this.focusedMultipleOptionIndex = this.d_value.length;
|
|
608
611
|
} else {
|
|
609
612
|
event.stopPropagation(); // To prevent onArrowLeftKeyOnMultiple method
|
|
610
613
|
}
|
|
@@ -644,7 +647,7 @@ export default {
|
|
|
644
647
|
onEnterKey(event) {
|
|
645
648
|
if (!this.typeahead) {
|
|
646
649
|
if (this.multiple) {
|
|
647
|
-
this.updateModel(event, [...(this.
|
|
650
|
+
this.updateModel(event, [...(this.d_value || []), event.target.value]);
|
|
648
651
|
this.$refs.focusInput.value = '';
|
|
649
652
|
}
|
|
650
653
|
} else {
|
|
@@ -659,6 +662,8 @@ export default {
|
|
|
659
662
|
this.hide();
|
|
660
663
|
}
|
|
661
664
|
}
|
|
665
|
+
|
|
666
|
+
event.preventDefault();
|
|
662
667
|
},
|
|
663
668
|
onEscapeKey(event) {
|
|
664
669
|
this.overlayVisible && this.hide(true);
|
|
@@ -673,11 +678,11 @@ export default {
|
|
|
673
678
|
},
|
|
674
679
|
onBackspaceKey(event) {
|
|
675
680
|
if (this.multiple) {
|
|
676
|
-
if (isNotEmpty(this.
|
|
677
|
-
const removedValue = this.
|
|
678
|
-
const newValue = this.
|
|
681
|
+
if (isNotEmpty(this.d_value) && !this.$refs.focusInput.value) {
|
|
682
|
+
const removedValue = this.d_value[this.d_value.length - 1];
|
|
683
|
+
const newValue = this.d_value.slice(0, -1);
|
|
679
684
|
|
|
680
|
-
this
|
|
685
|
+
this.writeValue(newValue, event);
|
|
681
686
|
this.$emit('item-unselect', { originalEvent: event, value: removedValue });
|
|
682
687
|
this.$emit('option-unselect', { originalEvent: event, value: removedValue });
|
|
683
688
|
}
|
|
@@ -691,7 +696,7 @@ export default {
|
|
|
691
696
|
onArrowRightKeyOnMultiple() {
|
|
692
697
|
this.focusedMultipleOptionIndex++;
|
|
693
698
|
|
|
694
|
-
if (this.focusedMultipleOptionIndex > this.
|
|
699
|
+
if (this.focusedMultipleOptionIndex > this.d_value.length - 1) {
|
|
695
700
|
this.focusedMultipleOptionIndex = -1;
|
|
696
701
|
focus(this.$refs.focusInput);
|
|
697
702
|
}
|
|
@@ -810,7 +815,7 @@ export default {
|
|
|
810
815
|
isSelected(option) {
|
|
811
816
|
const optionValue = this.getOptionValue(option);
|
|
812
817
|
|
|
813
|
-
return this.multiple ? (this.
|
|
818
|
+
return this.multiple ? (this.d_value || []).some((value) => this.isEquals(value, optionValue)) : this.isEquals(this.d_value, this.getOptionValue(option));
|
|
814
819
|
},
|
|
815
820
|
findFirstOptionIndex() {
|
|
816
821
|
return this.visibleOptions.findIndex((option) => this.isValidOption(option));
|
|
@@ -829,7 +834,7 @@ export default {
|
|
|
829
834
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
830
835
|
},
|
|
831
836
|
findSelectedOptionIndex() {
|
|
832
|
-
return this
|
|
837
|
+
return this.$filled ? this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
|
833
838
|
},
|
|
834
839
|
findFirstFocusedOptionIndex() {
|
|
835
840
|
const selectedIndex = this.findSelectedOptionIndex();
|
|
@@ -856,8 +861,8 @@ export default {
|
|
|
856
861
|
this.$emit('complete', { originalEvent: event, query });
|
|
857
862
|
},
|
|
858
863
|
removeOption(event, index) {
|
|
859
|
-
const removedOption = this.
|
|
860
|
-
const value = this.
|
|
864
|
+
const removedOption = this.d_value[index];
|
|
865
|
+
const value = this.d_value.filter((_, i) => i !== index).map((option) => this.getOptionValue(option));
|
|
861
866
|
|
|
862
867
|
this.updateModel(event, value);
|
|
863
868
|
this.$emit('item-unselect', { originalEvent: event, value: removedOption });
|
|
@@ -888,13 +893,13 @@ export default {
|
|
|
888
893
|
});
|
|
889
894
|
},
|
|
890
895
|
autoUpdateModel() {
|
|
891
|
-
if (this.selectOnFocus && this.autoOptionFocus && !this
|
|
896
|
+
if (this.selectOnFocus && this.autoOptionFocus && !this.$filled) {
|
|
892
897
|
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
893
898
|
this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
|
|
894
899
|
}
|
|
895
900
|
},
|
|
896
901
|
updateModel(event, value) {
|
|
897
|
-
this
|
|
902
|
+
this.writeValue(value, event);
|
|
898
903
|
this.$emit('change', { originalEvent: event, value });
|
|
899
904
|
},
|
|
900
905
|
flatOptions(options) {
|
|
@@ -924,23 +929,25 @@ export default {
|
|
|
924
929
|
return this.optionGroupLabel ? this.flatOptions(this.suggestions) : this.suggestions || [];
|
|
925
930
|
},
|
|
926
931
|
inputValue() {
|
|
927
|
-
if (
|
|
928
|
-
if (typeof this.
|
|
929
|
-
const label = this.getOptionLabel(this.
|
|
932
|
+
if (this.$filled) {
|
|
933
|
+
if (typeof this.d_value === 'object') {
|
|
934
|
+
const label = this.getOptionLabel(this.d_value);
|
|
930
935
|
|
|
931
|
-
return label != null ? label : this.
|
|
936
|
+
return label != null ? label : this.d_value;
|
|
932
937
|
} else {
|
|
933
|
-
return this.
|
|
938
|
+
return this.d_value;
|
|
934
939
|
}
|
|
935
940
|
} else {
|
|
936
941
|
return '';
|
|
937
942
|
}
|
|
938
943
|
},
|
|
944
|
+
// @deprecated use $filled instead.
|
|
939
945
|
hasSelectedOption() {
|
|
940
|
-
return
|
|
946
|
+
return this.$filled;
|
|
941
947
|
},
|
|
942
948
|
equalityKey() {
|
|
943
|
-
|
|
949
|
+
// @todo: The 'optionValue' properties can be added.
|
|
950
|
+
return this.dataKey;
|
|
944
951
|
},
|
|
945
952
|
searchResultMessageText() {
|
|
946
953
|
return isNotEmpty(this.visibleOptions) && this.overlayVisible ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
|
|
@@ -958,7 +965,7 @@ export default {
|
|
|
958
965
|
return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
|
|
959
966
|
},
|
|
960
967
|
selectedMessageText() {
|
|
961
|
-
return this
|
|
968
|
+
return this.$filled ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.d_value.length : '1') : this.emptySelectionMessageText;
|
|
962
969
|
},
|
|
963
970
|
listAriaLabel() {
|
|
964
971
|
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : undefined;
|
|
@@ -977,9 +984,6 @@ export default {
|
|
|
977
984
|
},
|
|
978
985
|
panelId() {
|
|
979
986
|
return this.id + '_panel';
|
|
980
|
-
},
|
|
981
|
-
hasFluid() {
|
|
982
|
-
return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;
|
|
983
987
|
}
|
|
984
988
|
},
|
|
985
989
|
components: {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import
|
|
2
|
+
import BaseInput from '@primevue/core/baseinput';
|
|
3
3
|
import AutoCompleteStyle from 'primevue/autocomplete/style';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
name: 'BaseAutoComplete',
|
|
7
|
-
extends:
|
|
7
|
+
extends: BaseInput,
|
|
8
8
|
props: {
|
|
9
|
-
modelValue: null,
|
|
10
9
|
suggestions: {
|
|
11
10
|
type: Array,
|
|
12
11
|
default: null
|
|
@@ -35,18 +34,6 @@ export default {
|
|
|
35
34
|
type: Boolean,
|
|
36
35
|
default: false
|
|
37
36
|
},
|
|
38
|
-
variant: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: null
|
|
41
|
-
},
|
|
42
|
-
invalid: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: false
|
|
45
|
-
},
|
|
46
|
-
disabled: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false
|
|
49
|
-
},
|
|
50
37
|
placeholder: {
|
|
51
38
|
type: String,
|
|
52
39
|
default: null
|
|
@@ -178,10 +165,6 @@ export default {
|
|
|
178
165
|
ariaLabelledby: {
|
|
179
166
|
type: String,
|
|
180
167
|
default: null
|
|
181
|
-
},
|
|
182
|
-
fluid: {
|
|
183
|
-
type: Boolean,
|
|
184
|
-
default: null
|
|
185
168
|
}
|
|
186
169
|
},
|
|
187
170
|
style: AutoCompleteStyle,
|
package/autocomplete/index.d.ts
CHANGED
|
@@ -305,6 +305,14 @@ export interface AutoCompleteProps {
|
|
|
305
305
|
* Value of the component.
|
|
306
306
|
*/
|
|
307
307
|
modelValue?: any;
|
|
308
|
+
/**
|
|
309
|
+
* The default value for the input when not controlled by `modelValue`.
|
|
310
|
+
*/
|
|
311
|
+
defaultValue?: any;
|
|
312
|
+
/**
|
|
313
|
+
* The name attribute for the element, typically used in form submissions.
|
|
314
|
+
*/
|
|
315
|
+
name?: string | undefined;
|
|
308
316
|
/**
|
|
309
317
|
* An array of suggestions to display.
|
|
310
318
|
*/
|
|
@@ -359,6 +367,10 @@ export interface AutoCompleteProps {
|
|
|
359
367
|
* @defaultValue false
|
|
360
368
|
*/
|
|
361
369
|
loading?: boolean | undefined;
|
|
370
|
+
/**
|
|
371
|
+
* Defines the size of the component.
|
|
372
|
+
*/
|
|
373
|
+
size?: 'small' | 'large' | undefined;
|
|
362
374
|
/**
|
|
363
375
|
* When present, it specifies that the component should have invalid state style.
|
|
364
376
|
* @defaultValue false
|
|
@@ -518,6 +530,10 @@ export interface AutoCompleteProps {
|
|
|
518
530
|
* Identifier of the underlying input element.
|
|
519
531
|
*/
|
|
520
532
|
ariaLabelledby?: string | undefined;
|
|
533
|
+
/**
|
|
534
|
+
* Form control object, typically used for handling validation and form state.
|
|
535
|
+
*/
|
|
536
|
+
formControl?: Record<string, any> | undefined;
|
|
521
537
|
/**
|
|
522
538
|
* It generates scoped CSS variables using design tokens for the component.
|
|
523
539
|
*/
|
|
@@ -748,6 +764,11 @@ export interface AutoCompleteEmitsOptions {
|
|
|
748
764
|
* @param {*} value - New value.
|
|
749
765
|
*/
|
|
750
766
|
'update:modelValue'(value: any): void;
|
|
767
|
+
/**
|
|
768
|
+
* Emitted when the value changes in uncontrolled mode.
|
|
769
|
+
* @param {*} value - New value.
|
|
770
|
+
*/
|
|
771
|
+
'value-change'(value: any): void;
|
|
751
772
|
/**
|
|
752
773
|
* Callback to invoke on value change.
|
|
753
774
|
* @param {AutoCompleteChangeEvent} event - Custom change event.
|
package/autocomplete/index.mjs
CHANGED
|
@@ -10,15 +10,14 @@ import OverlayEventBus from 'primevue/overlayeventbus';
|
|
|
10
10
|
import Portal from 'primevue/portal';
|
|
11
11
|
import Ripple from 'primevue/ripple';
|
|
12
12
|
import VirtualScroller from 'primevue/virtualscroller';
|
|
13
|
-
import
|
|
13
|
+
import BaseInput from '@primevue/core/baseinput';
|
|
14
14
|
import AutoCompleteStyle from 'primevue/autocomplete/style';
|
|
15
15
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createBlock, normalizeClass, normalizeStyle, createCommentVNode, Fragment, renderList, renderSlot, createVNode, withCtx, createElementVNode, resolveDynamicComponent, toDisplayString, Transition, createSlots, createTextVNode, withDirectives } from 'vue';
|
|
16
16
|
|
|
17
17
|
var script$1 = {
|
|
18
18
|
name: 'BaseAutoComplete',
|
|
19
|
-
"extends":
|
|
19
|
+
"extends": BaseInput,
|
|
20
20
|
props: {
|
|
21
|
-
modelValue: null,
|
|
22
21
|
suggestions: {
|
|
23
22
|
type: Array,
|
|
24
23
|
"default": null
|
|
@@ -47,18 +46,6 @@ var script$1 = {
|
|
|
47
46
|
type: Boolean,
|
|
48
47
|
"default": false
|
|
49
48
|
},
|
|
50
|
-
variant: {
|
|
51
|
-
type: String,
|
|
52
|
-
"default": null
|
|
53
|
-
},
|
|
54
|
-
invalid: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
"default": false
|
|
57
|
-
},
|
|
58
|
-
disabled: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
"default": false
|
|
61
|
-
},
|
|
62
49
|
placeholder: {
|
|
63
50
|
type: String,
|
|
64
51
|
"default": null
|
|
@@ -190,10 +177,6 @@ var script$1 = {
|
|
|
190
177
|
ariaLabelledby: {
|
|
191
178
|
type: String,
|
|
192
179
|
"default": null
|
|
193
|
-
},
|
|
194
|
-
fluid: {
|
|
195
|
-
type: Boolean,
|
|
196
|
-
"default": null
|
|
197
180
|
}
|
|
198
181
|
},
|
|
199
182
|
style: AutoCompleteStyle,
|
|
@@ -216,7 +199,7 @@ var script = {
|
|
|
216
199
|
name: 'AutoComplete',
|
|
217
200
|
"extends": script$1,
|
|
218
201
|
inheritAttrs: false,
|
|
219
|
-
emits: ['
|
|
202
|
+
emits: ['change', 'focus', 'blur', 'item-select', 'item-unselect', 'option-select', 'option-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
|
|
220
203
|
inject: {
|
|
221
204
|
$pcFluid: {
|
|
222
205
|
"default": null
|
|
@@ -352,10 +335,12 @@ var script = {
|
|
|
352
335
|
this.$emit('focus', event);
|
|
353
336
|
},
|
|
354
337
|
onBlur: function onBlur(event) {
|
|
338
|
+
var _this$formField$onBlu, _this$formField;
|
|
355
339
|
this.dirty = false;
|
|
356
340
|
this.focused = false;
|
|
357
341
|
this.focusedOptionIndex = -1;
|
|
358
342
|
this.$emit('blur', event);
|
|
343
|
+
(_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField);
|
|
359
344
|
},
|
|
360
345
|
onKeyDown: function onKeyDown(event) {
|
|
361
346
|
if (this.disabled) {
|
|
@@ -509,7 +494,7 @@ var script = {
|
|
|
509
494
|
if (this.multiple) {
|
|
510
495
|
this.$refs.focusInput.value = '';
|
|
511
496
|
if (!this.isSelected(option)) {
|
|
512
|
-
this.updateModel(event, [].concat(_toConsumableArray(this.
|
|
497
|
+
this.updateModel(event, [].concat(_toConsumableArray(this.d_value || []), [value]));
|
|
513
498
|
}
|
|
514
499
|
} else {
|
|
515
500
|
this.updateModel(event, value);
|
|
@@ -570,9 +555,9 @@ var script = {
|
|
|
570
555
|
var target = event.currentTarget;
|
|
571
556
|
this.focusedOptionIndex = -1;
|
|
572
557
|
if (this.multiple) {
|
|
573
|
-
if (isEmpty(target.value) && this
|
|
558
|
+
if (isEmpty(target.value) && this.$filled) {
|
|
574
559
|
focus(this.$refs.multiContainer);
|
|
575
|
-
this.focusedMultipleOptionIndex = this.
|
|
560
|
+
this.focusedMultipleOptionIndex = this.d_value.length;
|
|
576
561
|
} else {
|
|
577
562
|
event.stopPropagation(); // To prevent onArrowLeftKeyOnMultiple method
|
|
578
563
|
}
|
|
@@ -607,7 +592,7 @@ var script = {
|
|
|
607
592
|
onEnterKey: function onEnterKey(event) {
|
|
608
593
|
if (!this.typeahead) {
|
|
609
594
|
if (this.multiple) {
|
|
610
|
-
this.updateModel(event, [].concat(_toConsumableArray(this.
|
|
595
|
+
this.updateModel(event, [].concat(_toConsumableArray(this.d_value || []), [event.target.value]));
|
|
611
596
|
this.$refs.focusInput.value = '';
|
|
612
597
|
}
|
|
613
598
|
} else {
|
|
@@ -621,6 +606,7 @@ var script = {
|
|
|
621
606
|
this.hide();
|
|
622
607
|
}
|
|
623
608
|
}
|
|
609
|
+
event.preventDefault();
|
|
624
610
|
},
|
|
625
611
|
onEscapeKey: function onEscapeKey(event) {
|
|
626
612
|
this.overlayVisible && this.hide(true);
|
|
@@ -634,10 +620,10 @@ var script = {
|
|
|
634
620
|
},
|
|
635
621
|
onBackspaceKey: function onBackspaceKey(event) {
|
|
636
622
|
if (this.multiple) {
|
|
637
|
-
if (isNotEmpty(this.
|
|
638
|
-
var removedValue = this.
|
|
639
|
-
var newValue = this.
|
|
640
|
-
this
|
|
623
|
+
if (isNotEmpty(this.d_value) && !this.$refs.focusInput.value) {
|
|
624
|
+
var removedValue = this.d_value[this.d_value.length - 1];
|
|
625
|
+
var newValue = this.d_value.slice(0, -1);
|
|
626
|
+
this.writeValue(newValue, event);
|
|
641
627
|
this.$emit('item-unselect', {
|
|
642
628
|
originalEvent: event,
|
|
643
629
|
value: removedValue
|
|
@@ -655,7 +641,7 @@ var script = {
|
|
|
655
641
|
},
|
|
656
642
|
onArrowRightKeyOnMultiple: function onArrowRightKeyOnMultiple() {
|
|
657
643
|
this.focusedMultipleOptionIndex++;
|
|
658
|
-
if (this.focusedMultipleOptionIndex > this.
|
|
644
|
+
if (this.focusedMultipleOptionIndex > this.d_value.length - 1) {
|
|
659
645
|
this.focusedMultipleOptionIndex = -1;
|
|
660
646
|
focus(this.$refs.focusInput);
|
|
661
647
|
}
|
|
@@ -774,9 +760,9 @@ var script = {
|
|
|
774
760
|
isSelected: function isSelected(option) {
|
|
775
761
|
var _this8 = this;
|
|
776
762
|
var optionValue = this.getOptionValue(option);
|
|
777
|
-
return this.multiple ? (this.
|
|
763
|
+
return this.multiple ? (this.d_value || []).some(function (value) {
|
|
778
764
|
return _this8.isEquals(value, optionValue);
|
|
779
|
-
}) : this.isEquals(this.
|
|
765
|
+
}) : this.isEquals(this.d_value, this.getOptionValue(option));
|
|
780
766
|
},
|
|
781
767
|
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
782
768
|
var _this9 = this;
|
|
@@ -806,7 +792,7 @@ var script = {
|
|
|
806
792
|
},
|
|
807
793
|
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
808
794
|
var _this13 = this;
|
|
809
|
-
return this
|
|
795
|
+
return this.$filled ? this.visibleOptions.findIndex(function (option) {
|
|
810
796
|
return _this13.isValidSelectedOption(option);
|
|
811
797
|
}) : -1;
|
|
812
798
|
},
|
|
@@ -836,8 +822,8 @@ var script = {
|
|
|
836
822
|
},
|
|
837
823
|
removeOption: function removeOption(event, index) {
|
|
838
824
|
var _this14 = this;
|
|
839
|
-
var removedOption = this.
|
|
840
|
-
var value = this.
|
|
825
|
+
var removedOption = this.d_value[index];
|
|
826
|
+
var value = this.d_value.filter(function (_, i) {
|
|
841
827
|
return i !== index;
|
|
842
828
|
}).map(function (option) {
|
|
843
829
|
return _this14.getOptionValue(option);
|
|
@@ -880,13 +866,13 @@ var script = {
|
|
|
880
866
|
});
|
|
881
867
|
},
|
|
882
868
|
autoUpdateModel: function autoUpdateModel() {
|
|
883
|
-
if (this.selectOnFocus && this.autoOptionFocus && !this
|
|
869
|
+
if (this.selectOnFocus && this.autoOptionFocus && !this.$filled) {
|
|
884
870
|
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
885
871
|
this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
|
|
886
872
|
}
|
|
887
873
|
},
|
|
888
874
|
updateModel: function updateModel(event, value) {
|
|
889
|
-
this
|
|
875
|
+
this.writeValue(value, event);
|
|
890
876
|
this.$emit('change', {
|
|
891
877
|
originalEvent: event,
|
|
892
878
|
value: value
|
|
@@ -923,22 +909,24 @@ var script = {
|
|
|
923
909
|
return this.optionGroupLabel ? this.flatOptions(this.suggestions) : this.suggestions || [];
|
|
924
910
|
},
|
|
925
911
|
inputValue: function inputValue() {
|
|
926
|
-
if (
|
|
927
|
-
if (_typeof$1(this.
|
|
928
|
-
var label = this.getOptionLabel(this.
|
|
929
|
-
return label != null ? label : this.
|
|
912
|
+
if (this.$filled) {
|
|
913
|
+
if (_typeof$1(this.d_value) === 'object') {
|
|
914
|
+
var label = this.getOptionLabel(this.d_value);
|
|
915
|
+
return label != null ? label : this.d_value;
|
|
930
916
|
} else {
|
|
931
|
-
return this.
|
|
917
|
+
return this.d_value;
|
|
932
918
|
}
|
|
933
919
|
} else {
|
|
934
920
|
return '';
|
|
935
921
|
}
|
|
936
922
|
},
|
|
923
|
+
// @deprecated use $filled instead.
|
|
937
924
|
hasSelectedOption: function hasSelectedOption() {
|
|
938
|
-
return
|
|
925
|
+
return this.$filled;
|
|
939
926
|
},
|
|
940
927
|
equalityKey: function equalityKey() {
|
|
941
|
-
|
|
928
|
+
// @todo: The 'optionValue' properties can be added.
|
|
929
|
+
return this.dataKey;
|
|
942
930
|
},
|
|
943
931
|
searchResultMessageText: function searchResultMessageText() {
|
|
944
932
|
return isNotEmpty(this.visibleOptions) && this.overlayVisible ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
|
|
@@ -956,7 +944,7 @@ var script = {
|
|
|
956
944
|
return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
|
|
957
945
|
},
|
|
958
946
|
selectedMessageText: function selectedMessageText() {
|
|
959
|
-
return this
|
|
947
|
+
return this.$filled ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.d_value.length : '1') : this.emptySelectionMessageText;
|
|
960
948
|
},
|
|
961
949
|
listAriaLabel: function listAriaLabel() {
|
|
962
950
|
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : undefined;
|
|
@@ -978,9 +966,6 @@ var script = {
|
|
|
978
966
|
},
|
|
979
967
|
panelId: function panelId() {
|
|
980
968
|
return this.id + '_panel';
|
|
981
|
-
},
|
|
982
|
-
hasFluid: function hasFluid() {
|
|
983
|
-
return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;
|
|
984
969
|
}
|
|
985
970
|
},
|
|
986
971
|
components: {
|
|
@@ -1029,13 +1014,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1029
1014
|
ref: "focusInput",
|
|
1030
1015
|
id: _ctx.inputId,
|
|
1031
1016
|
type: "text",
|
|
1017
|
+
name: _ctx.$formName,
|
|
1032
1018
|
"class": normalizeClass([_ctx.cx('pcInputText'), _ctx.inputClass]),
|
|
1033
1019
|
style: normalizeStyle(_ctx.inputStyle),
|
|
1034
1020
|
value: $options.inputValue,
|
|
1035
1021
|
placeholder: _ctx.placeholder,
|
|
1036
1022
|
tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
|
|
1037
|
-
fluid:
|
|
1023
|
+
fluid: _ctx.$fluid,
|
|
1038
1024
|
disabled: _ctx.disabled,
|
|
1025
|
+
size: _ctx.size,
|
|
1039
1026
|
invalid: _ctx.invalid,
|
|
1040
1027
|
variant: _ctx.variant,
|
|
1041
1028
|
autocomplete: "off",
|
|
@@ -1054,7 +1041,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1054
1041
|
onChange: $options.onChange,
|
|
1055
1042
|
unstyled: _ctx.unstyled,
|
|
1056
1043
|
pt: _ctx.ptm('pcInputText')
|
|
1057
|
-
}, null, 8, ["id", "class", "style", "value", "placeholder", "tabindex", "fluid", "disabled", "invalid", "variant", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "onFocus", "onBlur", "onKeydown", "onInput", "onChange", "unstyled", "pt"])) : createCommentVNode("", true), _ctx.multiple ? (openBlock(), createElementBlock("ul", mergeProps({
|
|
1044
|
+
}, null, 8, ["id", "name", "class", "style", "value", "placeholder", "tabindex", "fluid", "disabled", "size", "invalid", "variant", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "onFocus", "onBlur", "onKeydown", "onInput", "onChange", "unstyled", "pt"])) : createCommentVNode("", true), _ctx.multiple ? (openBlock(), createElementBlock("ul", mergeProps({
|
|
1058
1045
|
key: 1,
|
|
1059
1046
|
ref: "multiContainer",
|
|
1060
1047
|
"class": _ctx.cx('inputMultiple'),
|
|
@@ -1071,7 +1058,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1071
1058
|
onKeydown: _cache[7] || (_cache[7] = function () {
|
|
1072
1059
|
return $options.onMultipleContainerKeyDown && $options.onMultipleContainerKeyDown.apply($options, arguments);
|
|
1073
1060
|
})
|
|
1074
|
-
}, _ctx.ptm('inputMultiple')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.
|
|
1061
|
+
}, _ctx.ptm('inputMultiple')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.d_value, function (option, i) {
|
|
1075
1062
|
return openBlock(), createElementBlock("li", mergeProps({
|
|
1076
1063
|
key: "".concat(i, "_").concat($options.getOptionLabel(option)),
|
|
1077
1064
|
id: $data.id + '_multiple_option_' + i,
|
|
@@ -1081,7 +1068,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1081
1068
|
role: "option",
|
|
1082
1069
|
"aria-label": $options.getOptionLabel(option),
|
|
1083
1070
|
"aria-selected": true,
|
|
1084
|
-
"aria-setsize": _ctx.
|
|
1071
|
+
"aria-setsize": _ctx.d_value.length,
|
|
1085
1072
|
"aria-posinset": i + 1,
|
|
1086
1073
|
ref_for: true
|
|
1087
1074
|
}, _ctx.ptm('chipItem')), [renderSlot(_ctx.$slots, "chip", mergeProps({
|
|
@@ -1222,7 +1209,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1222
1209
|
return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
|
|
1223
1210
|
})
|
|
1224
1211
|
}, _ctx.ptm('overlay')), [renderSlot(_ctx.$slots, "header", {
|
|
1225
|
-
value: _ctx.
|
|
1212
|
+
value: _ctx.d_value,
|
|
1226
1213
|
suggestions: $options.visibleOptions
|
|
1227
1214
|
}), createElementVNode("div", mergeProps({
|
|
1228
1215
|
"class": _ctx.cx('listContainer'),
|
|
@@ -1325,7 +1312,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1325
1312
|
}),
|
|
1326
1313
|
key: "0"
|
|
1327
1314
|
} : undefined]), 1040, ["style", "items", "disabled", "pt"])], 16), renderSlot(_ctx.$slots, "footer", {
|
|
1328
|
-
value: _ctx.
|
|
1315
|
+
value: _ctx.d_value,
|
|
1329
1316
|
suggestions: $options.visibleOptions
|
|
1330
1317
|
}), createElementVNode("span", mergeProps({
|
|
1331
1318
|
role: "status",
|