primevue 4.1.0 → 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/README.md +2 -94
- package/accordion/index.d.ts +2 -2
- 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.d.ts +2 -2
- package/accordioncontent/index.mjs.map +1 -1
- package/accordioncontent/style/index.mjs.map +1 -1
- package/accordionheader/index.d.ts +2 -2
- package/accordionheader/index.mjs.map +1 -1
- package/accordionheader/style/index.mjs.map +1 -1
- package/accordionpanel/index.d.ts +2 -2
- package/accordionpanel/index.mjs.map +1 -1
- package/accordionpanel/style/index.mjs.map +1 -1
- package/accordiontab/index.d.ts +2 -2
- 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 +23 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- package/avatargroup/index.mjs.map +1 -1
- package/avatargroup/style/index.mjs.map +1 -1
- package/badge/index.d.ts +2 -2
- 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.d.ts +2 -2
- package/blockui/index.mjs.map +1 -1
- package/blockui/style/index.mjs.map +1 -1
- package/breadcrumb/Breadcrumb.vue +1 -1
- package/breadcrumb/index.d.ts +2 -2
- 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 +8 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- package/calendar/index.mjs.map +1 -1
- package/calendar/style/index.mjs.map +1 -1
- package/card/index.d.ts +2 -2
- package/card/index.mjs.map +1 -1
- package/card/style/index.mjs.map +1 -1
- package/carousel/index.d.ts +2 -2
- 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 +86 -55
- package/cascadeselect/CascadeSelectSub.vue +8 -17
- package/cascadeselect/index.d.ts +47 -2
- package/cascadeselect/index.mjs +148 -99
- package/cascadeselect/index.mjs.map +1 -1
- package/cascadeselect/style/index.d.ts +4 -0
- package/cascadeselect/style/index.mjs +9 -6
- package/cascadeselect/style/index.mjs.map +1 -1
- package/chart/index.d.ts +2 -2
- 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 +19 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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 +24 -2
- 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.d.ts +2 -2
- package/column/index.mjs.map +1 -1
- package/column/style/index.mjs.map +1 -1
- package/columngroup/index.d.ts +2 -2
- 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.d.ts +2 -2
- package/confirmdialog/index.mjs.map +1 -1
- package/confirmdialog/style/index.mjs.map +1 -1
- package/confirmpopup/index.d.ts +2 -2
- package/confirmpopup/index.mjs.map +1 -1
- package/confirmpopup/style/index.mjs +1 -1
- package/confirmpopup/style/index.mjs.map +1 -1
- package/contextmenu/ContextMenu.vue +8 -3
- package/contextmenu/index.d.ts +2 -2
- package/contextmenu/index.mjs +6 -3
- 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 +58 -4
- package/datatable/FooterCell.vue +15 -6
- package/datatable/HeaderCell.vue +15 -6
- package/datatable/index.d.ts +14 -10
- package/datatable/index.mjs +167 -82
- 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 +6 -2
- 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 +23 -6
- 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.d.ts +2 -2
- package/deferredcontent/index.mjs.map +1 -1
- package/deferredcontent/style/index.mjs.map +1 -1
- package/dialog/index.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- package/dropdown/index.mjs.map +1 -1
- package/dropdown/style/index.mjs.map +1 -1
- package/dynamicdialog/index.d.ts +2 -2
- 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 +24 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- package/inlinemessage/index.mjs.map +1 -1
- package/inlinemessage/style/index.mjs.map +1 -1
- package/inplace/index.d.ts +2 -6
- package/inplace/index.mjs.map +1 -1
- package/inplace/style/index.mjs.map +1 -1
- package/inputchips/index.d.ts +2 -2
- package/inputchips/index.mjs.map +1 -1
- package/inputchips/style/index.mjs.map +1 -1
- package/inputgroup/index.d.ts +2 -2
- 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.d.ts +2 -2
- package/inputgroupaddon/index.mjs.map +1 -1
- package/inputgroupaddon/style/index.mjs.map +1 -1
- package/inputicon/index.d.ts +2 -2
- 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 +15 -2
- 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 +28 -2
- 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 +23 -2
- 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.d.ts +2 -2
- 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 +19 -2
- 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 +26 -4
- 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 +19 -2
- 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/BaseMegaMenu.vue +4 -0
- package/megamenu/MegaMenu.vue +15 -5
- package/megamenu/index.d.ts +7 -2
- package/megamenu/index.mjs +23 -6
- package/megamenu/index.mjs.map +1 -1
- package/megamenu/style/index.mjs +5 -5
- package/megamenu/style/index.mjs.map +1 -1
- package/menu/index.d.ts +2 -2
- package/menu/index.mjs.map +1 -1
- package/menu/style/index.mjs +1 -1
- package/menu/style/index.mjs.map +1 -1
- package/menubar/Menubar.vue +8 -3
- package/menubar/index.d.ts +2 -2
- package/menubar/index.mjs +6 -3
- 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 +11 -2
- 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.d.ts +2 -2
- 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 +52 -2
- 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.d.ts +2 -2
- package/orderlist/index.mjs.map +1 -1
- package/orderlist/style/index.mjs.map +1 -1
- package/organizationchart/index.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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 +56 -2
- 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.d.ts +2 -2
- package/panel/index.mjs.map +1 -1
- package/panel/style/index.mjs.map +1 -1
- package/panelmenu/index.d.ts +2 -2
- 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 +23 -2
- 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.d.ts +2 -2
- package/picklist/index.mjs.map +1 -1
- package/picklist/style/index.mjs.map +1 -1
- package/popover/index.d.ts +2 -2
- 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.d.ts +2 -2
- package/portal/index.mjs.map +1 -1
- package/portal/style/index.mjs.map +1 -1
- package/progressbar/index.d.ts +2 -2
- 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.d.ts +2 -2
- 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 +19 -2
- 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 +20 -2
- 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.d.ts +2 -2
- package/row/index.mjs.map +1 -1
- package/row/style/index.mjs.map +1 -1
- package/scrollpanel/ScrollPanel.vue +38 -5
- package/scrollpanel/index.d.ts +2 -2
- 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.d.ts +2 -2
- 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 +23 -2
- 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 +23 -2
- 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.d.ts +2 -2
- package/sidebar/index.mjs.map +1 -1
- package/sidebar/style/index.mjs.map +1 -1
- package/skeleton/index.d.ts +2 -2
- 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 +24 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- package/splitter/index.mjs +50 -20
- package/splitter/index.mjs.map +1 -1
- package/splitter/style/index.mjs.map +1 -1
- package/splitterpanel/index.d.ts +2 -2
- package/splitterpanel/index.mjs.map +1 -1
- package/splitterpanel/style/index.mjs.map +1 -1
- package/step/index.d.ts +2 -2
- package/step/index.mjs.map +1 -1
- package/step/style/index.mjs.map +1 -1
- package/stepitem/index.d.ts +2 -2
- package/stepitem/index.mjs.map +1 -1
- package/stepitem/style/index.mjs.map +1 -1
- package/steplist/index.d.ts +2 -2
- package/steplist/index.mjs.map +1 -1
- package/steplist/style/index.mjs.map +1 -1
- package/steppanel/index.d.ts +2 -2
- package/steppanel/index.mjs.map +1 -1
- package/steppanel/style/index.mjs.map +1 -1
- package/steppanels/index.d.ts +2 -2
- package/steppanels/index.mjs.map +1 -1
- package/steppanels/style/index.mjs.map +1 -1
- package/stepper/index.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- package/tab/index.mjs.map +1 -1
- package/tab/style/index.mjs.map +1 -1
- package/tablist/TabList.vue +40 -5
- package/tablist/index.d.ts +2 -2
- package/tablist/index.mjs +38 -5
- package/tablist/index.mjs.map +1 -1
- package/tablist/style/index.mjs.map +1 -1
- package/tabmenu/index.d.ts +2 -2
- package/tabmenu/index.mjs.map +1 -1
- package/tabmenu/style/index.mjs.map +1 -1
- package/tabpanel/index.d.ts +2 -2
- package/tabpanel/index.mjs.map +1 -1
- package/tabpanel/style/index.mjs.map +1 -1
- package/tabpanels/index.d.ts +2 -2
- package/tabpanels/index.mjs.map +1 -1
- package/tabpanels/style/index.mjs.map +1 -1
- package/tabs/index.d.ts +2 -2
- 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.d.ts +2 -2
- package/tabview/index.mjs.map +1 -1
- package/tabview/style/index.mjs.map +1 -1
- package/tag/index.d.ts +2 -2
- package/tag/index.mjs.map +1 -1
- package/tag/style/index.mjs.map +1 -1
- package/terminal/index.d.ts +2 -2
- 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 +23 -2
- 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/TieredMenu.vue +8 -3
- package/tieredmenu/index.d.ts +2 -2
- package/tieredmenu/index.mjs +6 -3
- 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.d.ts +2 -2
- package/timeline/index.mjs.map +1 -1
- package/timeline/style/index.mjs.map +1 -1
- package/toast/Toast.vue +0 -1
- package/toast/index.d.ts +2 -2
- 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 +23 -2
- 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 +19 -2
- 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.d.ts +2 -2
- 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 +1 -1
- package/tooltip/style/index.mjs.map +1 -1
- package/tree/Tree.vue +1 -1
- package/tree/TreeNode.vue +1 -1
- package/tree/index.d.ts +2 -2
- package/tree/index.mjs +5 -4
- package/tree/index.mjs.map +1 -1
- package/tree/style/index.mjs +2 -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 +82 -28
- 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 +14 -10
- 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.d.ts +2 -2
- package/virtualscroller/index.mjs.map +1 -1
- package/virtualscroller/style/index.mjs.map +1 -1
- package/web-types.json +2 -2
package/accordiontab/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @module accordiontab
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
import type { DefineComponent, DesignToken, EmitFn,
|
|
11
|
+
import type { DefineComponent, DesignToken, EmitFn, PassThrough } from '@primevue/core';
|
|
12
12
|
import type { PassThroughOptions } from 'primevue/passthrough';
|
|
13
13
|
import { AnchorHTMLAttributes, HTMLAttributes, TransitionProps, VNode } from 'vue';
|
|
14
14
|
|
|
@@ -229,7 +229,7 @@ declare const AccordionTab: DefineComponent<AccordionTabProps, AccordionTabSlots
|
|
|
229
229
|
|
|
230
230
|
declare module 'vue' {
|
|
231
231
|
export interface GlobalComponents {
|
|
232
|
-
AccordionTab:
|
|
232
|
+
AccordionTab: DefineComponent<AccordionTabProps, AccordionTabSlots, AccordionTabEmits>;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/accordiontab/BaseAccordionTab.vue","../../src/accordiontab/AccordionTab.vue","../../src/accordiontab/AccordionTab.vue?vue&type=template&id=5ee2e540&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport AccordionTabStyle from 'primevue/accordiontab/style';\n\nexport default {\n name: 'BaseAccordionTab',\n extends: BaseComponent,\n props: {\n header: null,\n headerStyle: null,\n headerClass: null,\n headerProps: null,\n headerActionProps: null,\n contentStyle: null,\n contentClass: null,\n contentProps: null,\n disabled: Boolean\n },\n style: AccordionTabStyle,\n provide() {\n return {\n $pcAccordionTab: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <slot></slot>\n</template>\n\n<script>\nimport BaseAccordionTab from './BaseAccordionTab.vue';\n\nexport default {\n name: 'AccordionTab',\n extends: BaseAccordionTab,\n inheritAttrs: false,\n mounted() {\n console.warn('Deprecated since v4. Use the new structure of Accordion instead.');\n }\n};\n</script>\n","<template>\n <slot></slot>\n</template>\n\n<script>\nimport BaseAccordionTab from './BaseAccordionTab.vue';\n\nexport default {\n name: 'AccordionTab',\n extends: BaseAccordionTab,\n inheritAttrs: false,\n mounted() {\n console.warn('Deprecated since v4. Use the new structure of Accordion instead.');\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","header","headerStyle","headerClass","headerProps","headerActionProps","contentStyle","contentClass","contentProps","disabled","Boolean","style","AccordionTabStyle","provide","$pcAccordionTab","$parentInstance","BaseAccordionTab","inheritAttrs","mounted","console","warn","_renderSlot","_ctx","$slots"],"mappings":";;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,kBAAkB;AACxB,EAAA,SAAA,EAASC,aAAa;AACtBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,MAAM,EAAE,IAAI;AACZC,IAAAA,WAAW,EAAE,IAAI;AACjBC,IAAAA,WAAW,EAAE,IAAI;AACjBC,IAAAA,WAAW,EAAE,IAAI;AACjBC,IAAAA,iBAAiB,EAAE,IAAI;AACvBC,IAAAA,YAAY,EAAE,IAAI;AAClBC,IAAAA,YAAY,EAAE,IAAI;AAClBC,IAAAA,YAAY,EAAE,IAAI;AAClBC,IAAAA,QAAQ,EAAEC
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/accordiontab/BaseAccordionTab.vue","../../src/accordiontab/AccordionTab.vue","../../src/accordiontab/AccordionTab.vue?vue&type=template&id=5ee2e540&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport AccordionTabStyle from 'primevue/accordiontab/style';\n\nexport default {\n name: 'BaseAccordionTab',\n extends: BaseComponent,\n props: {\n header: null,\n headerStyle: null,\n headerClass: null,\n headerProps: null,\n headerActionProps: null,\n contentStyle: null,\n contentClass: null,\n contentProps: null,\n disabled: Boolean\n },\n style: AccordionTabStyle,\n provide() {\n return {\n $pcAccordionTab: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <slot></slot>\n</template>\n\n<script>\nimport BaseAccordionTab from './BaseAccordionTab.vue';\n\nexport default {\n name: 'AccordionTab',\n extends: BaseAccordionTab,\n inheritAttrs: false,\n mounted() {\n console.warn('Deprecated since v4. Use the new structure of Accordion instead.');\n }\n};\n</script>\n","<template>\n <slot></slot>\n</template>\n\n<script>\nimport BaseAccordionTab from './BaseAccordionTab.vue';\n\nexport default {\n name: 'AccordionTab',\n extends: BaseAccordionTab,\n inheritAttrs: false,\n mounted() {\n console.warn('Deprecated since v4. Use the new structure of Accordion instead.');\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","header","headerStyle","headerClass","headerProps","headerActionProps","contentStyle","contentClass","contentProps","disabled","Boolean","style","AccordionTabStyle","provide","$pcAccordionTab","$parentInstance","BaseAccordionTab","inheritAttrs","mounted","console","warn","_renderSlot","_ctx","$slots"],"mappings":";;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,kBAAkB;AACxB,EAAA,SAAA,EAASC,aAAa;AACtBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,MAAM,EAAE,IAAI;AACZC,IAAAA,WAAW,EAAE,IAAI;AACjBC,IAAAA,WAAW,EAAE,IAAI;AACjBC,IAAAA,WAAW,EAAE,IAAI;AACjBC,IAAAA,iBAAiB,EAAE,IAAI;AACvBC,IAAAA,YAAY,EAAE,IAAI;AAClBC,IAAAA,YAAY,EAAE,IAAI;AAClBC,IAAAA,YAAY,EAAE,IAAI;AAClBC,IAAAA,QAAQ,EAAEC;GACb;AACDC,EAAAA,KAAK,EAAEC,iBAAiB;EACxBC,OAAO,EAAA,SAAPA,OAAOA,GAAG;IACN,OAAO;AACHC,MAAAA,eAAe,EAAE,IAAI;AACrBC,MAAAA,eAAe,EAAE;KACpB;AACL;AACJ,CAAC;;AClBD,aAAe;AACXjB,EAAAA,IAAI,EAAE,cAAc;AACpB,EAAA,SAAA,EAASkB,QAAgB;AACzBC,EAAAA,YAAY,EAAE,KAAK;EACnBC,OAAO,EAAA,SAAPA,OAAOA,GAAG;AACNC,IAAAA,OAAO,CAACC,IAAI,CAAC,kEAAkE,CAAC;AACpF;AACJ,CAAC;;;SCbGC,UAAY,CAAAC,IAAA,CAAAC,MAAA,EAAA,SAAA,CAAA;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/accordiontab/style/AccordionTabStyle.js"],"sourcesContent":["import BaseStyle from '@primevue/core/base/style';\n\nexport default BaseStyle.extend({\n name: 'accordiontab'\n});\n"],"names":["BaseStyle","extend","name"],"mappings":";;AAEA,wBAAeA,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/accordiontab/style/AccordionTabStyle.js"],"sourcesContent":["import BaseStyle from '@primevue/core/base/style';\n\nexport default BaseStyle.extend({\n name: 'accordiontab'\n});\n"],"names":["BaseStyle","extend","name"],"mappings":";;AAEA,wBAAeA,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE;AACV,CAAC,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/animateonscroll/BaseAnimateOnScroll.js","../../src/animateonscroll/AnimateOnScroll.js"],"sourcesContent":["import BaseDirective from '@primevue/core/basedirective';\nimport AnimateOnScrollStyle from 'primevue/animateonscroll/style';\n\nconst BaseAnimateOnScroll = BaseDirective.extend({\n style: AnimateOnScrollStyle\n});\n\nexport default BaseAnimateOnScroll;\n","import { addClass, removeClass } from '@primeuix/utils/dom';\nimport BaseAnimateOnScroll from './BaseAnimateOnScroll';\n\nconst AnimateOnScroll = BaseAnimateOnScroll.extend('animateonscroll', {\n created() {\n this.$value = this.$value || {};\n this.$el.style.opacity = this.$value.enterClass ? '0' : '';\n },\n mounted() {\n this.$el.setAttribute('data-pd-animateonscroll', true);\n\n this.bindIntersectionObserver();\n },\n unmounted() {\n this.unbindAnimationEvents();\n this.unbindIntersectionObserver();\n },\n observer: undefined,\n resetObserver: undefined,\n isObserverActive: false,\n animationState: undefined,\n animationEndListener: undefined,\n methods: {\n bindAnimationEvents() {\n if (!this.animationEndListener) {\n this.animationEndListener = () => {\n removeClass(this.$el, [this.$value.enterClass, this.$value.leaveClass]);\n !this.$modifiers.once && this.resetObserver.observe(this.$el);\n this.unbindAnimationEvents();\n };\n\n this.$el.addEventListener('animationend', this.animationEndListener);\n }\n },\n bindIntersectionObserver() {\n const { root, rootMargin, threshold = 0.5 } = this.$value;\n const options = { root, rootMargin, threshold };\n\n // States\n this.observer = new IntersectionObserver(([entry]) => {\n if (this.isObserverActive) {\n if (entry.boundingClientRect.top > 0) {\n entry.isIntersecting ? this.enter() : this.leave();\n }\n } else if (entry.isIntersecting) {\n this.enter();\n }\n\n this.isObserverActive = true;\n }, options);\n\n setTimeout(() => this.observer.observe(this.$el), 0);\n\n // Reset\n this.resetObserver = new IntersectionObserver(\n ([entry]) => {\n if (entry.boundingClientRect.top > 0 && !entry.isIntersecting) {\n this.$el.style.opacity = this.$value.enterClass ? '0' : '';\n removeClass(this.$el, [this.$value.enterClass, this.$value.leaveClass]);\n\n this.resetObserver.unobserve(this.$el);\n }\n\n this.animationState = undefined;\n },\n { ...options, threshold: 0 }\n );\n },\n enter() {\n if (this.animationState !== 'enter' && this.$value.enterClass) {\n this.$el.style.opacity = '';\n removeClass(this.$el, this.$value.leaveClass);\n addClass(this.$el, this.$value.enterClass);\n\n this.$modifiers.once && this.unbindIntersectionObserver(this.$el);\n\n this.bindAnimationEvents();\n this.animationState = 'enter';\n }\n },\n leave() {\n if (this.animationState !== 'leave' && this.$value.leaveClass) {\n this.$el.style.opacity = this.$value.enterClass ? '0' : '';\n removeClass(this.$el, this.$value.enterClass);\n addClass(this.$el, this.$value.leaveClass);\n\n this.bindAnimationEvents();\n this.animationState = 'leave';\n }\n },\n unbindAnimationEvents() {\n if (this.animationEndListener) {\n this.$el.removeEventListener('animationend', this.animationEndListener);\n this.animationEndListener = undefined;\n }\n },\n unbindIntersectionObserver() {\n this.observer?.unobserve(this.$el);\n this.resetObserver?.unobserve(this.$el);\n this.isObserverActive = false;\n }\n }\n});\n\nexport default AnimateOnScroll;\n"],"names":["BaseAnimateOnScroll","BaseDirective","extend","style","AnimateOnScrollStyle","AnimateOnScroll","created","$value","$el","opacity","enterClass","mounted","setAttribute","bindIntersectionObserver","unmounted","unbindAnimationEvents","unbindIntersectionObserver","observer","undefined","resetObserver","isObserverActive","animationState","animationEndListener","methods","bindAnimationEvents","_this","removeClass","leaveClass","$modifiers","once","observe","addEventListener","_this2","_this$$value","root","rootMargin","_this$$value$threshol","threshold","options","IntersectionObserver","_ref","_ref2","_slicedToArray","entry","boundingClientRect","top","isIntersecting","enter","leave","setTimeout","_ref3","_ref4","unobserve","_objectSpread","addClass","removeEventListener","_this$observer","_this$resetObserver"],"mappings":";;;;AAGA,IAAMA,mBAAmB,GAAGC,aAAa,CAACC,MAAM,CAAC;AAC7CC,EAAAA,KAAK,EAAEC
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/animateonscroll/BaseAnimateOnScroll.js","../../src/animateonscroll/AnimateOnScroll.js"],"sourcesContent":["import BaseDirective from '@primevue/core/basedirective';\nimport AnimateOnScrollStyle from 'primevue/animateonscroll/style';\n\nconst BaseAnimateOnScroll = BaseDirective.extend({\n style: AnimateOnScrollStyle\n});\n\nexport default BaseAnimateOnScroll;\n","import { addClass, removeClass } from '@primeuix/utils/dom';\nimport BaseAnimateOnScroll from './BaseAnimateOnScroll';\n\nconst AnimateOnScroll = BaseAnimateOnScroll.extend('animateonscroll', {\n created() {\n this.$value = this.$value || {};\n this.$el.style.opacity = this.$value.enterClass ? '0' : '';\n },\n mounted() {\n this.$el.setAttribute('data-pd-animateonscroll', true);\n\n this.bindIntersectionObserver();\n },\n unmounted() {\n this.unbindAnimationEvents();\n this.unbindIntersectionObserver();\n },\n observer: undefined,\n resetObserver: undefined,\n isObserverActive: false,\n animationState: undefined,\n animationEndListener: undefined,\n methods: {\n bindAnimationEvents() {\n if (!this.animationEndListener) {\n this.animationEndListener = () => {\n removeClass(this.$el, [this.$value.enterClass, this.$value.leaveClass]);\n !this.$modifiers.once && this.resetObserver.observe(this.$el);\n this.unbindAnimationEvents();\n };\n\n this.$el.addEventListener('animationend', this.animationEndListener);\n }\n },\n bindIntersectionObserver() {\n const { root, rootMargin, threshold = 0.5 } = this.$value;\n const options = { root, rootMargin, threshold };\n\n // States\n this.observer = new IntersectionObserver(([entry]) => {\n if (this.isObserverActive) {\n if (entry.boundingClientRect.top > 0) {\n entry.isIntersecting ? this.enter() : this.leave();\n }\n } else if (entry.isIntersecting) {\n this.enter();\n }\n\n this.isObserverActive = true;\n }, options);\n\n setTimeout(() => this.observer.observe(this.$el), 0);\n\n // Reset\n this.resetObserver = new IntersectionObserver(\n ([entry]) => {\n if (entry.boundingClientRect.top > 0 && !entry.isIntersecting) {\n this.$el.style.opacity = this.$value.enterClass ? '0' : '';\n removeClass(this.$el, [this.$value.enterClass, this.$value.leaveClass]);\n\n this.resetObserver.unobserve(this.$el);\n }\n\n this.animationState = undefined;\n },\n { ...options, threshold: 0 }\n );\n },\n enter() {\n if (this.animationState !== 'enter' && this.$value.enterClass) {\n this.$el.style.opacity = '';\n removeClass(this.$el, this.$value.leaveClass);\n addClass(this.$el, this.$value.enterClass);\n\n this.$modifiers.once && this.unbindIntersectionObserver(this.$el);\n\n this.bindAnimationEvents();\n this.animationState = 'enter';\n }\n },\n leave() {\n if (this.animationState !== 'leave' && this.$value.leaveClass) {\n this.$el.style.opacity = this.$value.enterClass ? '0' : '';\n removeClass(this.$el, this.$value.enterClass);\n addClass(this.$el, this.$value.leaveClass);\n\n this.bindAnimationEvents();\n this.animationState = 'leave';\n }\n },\n unbindAnimationEvents() {\n if (this.animationEndListener) {\n this.$el.removeEventListener('animationend', this.animationEndListener);\n this.animationEndListener = undefined;\n }\n },\n unbindIntersectionObserver() {\n this.observer?.unobserve(this.$el);\n this.resetObserver?.unobserve(this.$el);\n this.isObserverActive = false;\n }\n }\n});\n\nexport default AnimateOnScroll;\n"],"names":["BaseAnimateOnScroll","BaseDirective","extend","style","AnimateOnScrollStyle","AnimateOnScroll","created","$value","$el","opacity","enterClass","mounted","setAttribute","bindIntersectionObserver","unmounted","unbindAnimationEvents","unbindIntersectionObserver","observer","undefined","resetObserver","isObserverActive","animationState","animationEndListener","methods","bindAnimationEvents","_this","removeClass","leaveClass","$modifiers","once","observe","addEventListener","_this2","_this$$value","root","rootMargin","_this$$value$threshol","threshold","options","IntersectionObserver","_ref","_ref2","_slicedToArray","entry","boundingClientRect","top","isIntersecting","enter","leave","setTimeout","_ref3","_ref4","unobserve","_objectSpread","addClass","removeEventListener","_this$observer","_this$resetObserver"],"mappings":";;;;AAGA,IAAMA,mBAAmB,GAAGC,aAAa,CAACC,MAAM,CAAC;AAC7CC,EAAAA,KAAK,EAAEC;AACX,CAAC,CAAC;;;;;;;;;;;;;;ACFF,IAAMC,eAAe,GAAGL,mBAAmB,CAACE,MAAM,CAAC,iBAAiB,EAAE;EAClEI,OAAO,EAAA,SAAPA,OAAOA,GAAG;IACN,IAAI,CAACC,MAAM,GAAG,IAAI,CAACA,MAAM,IAAI,EAAE;AAC/B,I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nScrollStyle.js"],"sourcesContent":["import BaseStyle from '@primevue/core/base/style';\n\nexport default BaseStyle.extend({\n name: 'animateonscroll-directive'\n});\n"],"names":["BaseStyle","extend","name"],"mappings":";;AAEA,2BAAeA,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/animateonscroll/style/AnimateOnScrollStyle.js"],"sourcesContent":["import BaseStyle from '@primevue/core/base/style';\n\nexport default BaseStyle.extend({\n name: 'animateonscroll-directive'\n});\n"],"names":["BaseStyle","extend","name"],"mappings":";;AAEA,2BAAeA,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE;AACV,CAAC,CAAC;;;;"}
|
|
@@ -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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module autocomplete
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
import type { DefineComponent, DesignToken, EmitFn,
|
|
10
|
+
import type { DefineComponent, DesignToken, EmitFn, HintedString, Nullable, PassThrough } from '@primevue/core';
|
|
11
11
|
import type { ComponentHooks } from '@primevue/core/basecomponent';
|
|
12
12
|
import type { ChipPassThroughOptions } from 'primevue/chip';
|
|
13
13
|
import type { InputTextPassThroughOptions } from 'primevue/inputtext';
|
|
@@ -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.
|
|
@@ -835,7 +856,7 @@ declare const AutoComplete: DefineComponent<AutoCompleteProps, AutoCompleteSlots
|
|
|
835
856
|
|
|
836
857
|
declare module 'vue' {
|
|
837
858
|
export interface GlobalComponents {
|
|
838
|
-
AutoComplete:
|
|
859
|
+
AutoComplete: DefineComponent<AutoCompleteProps, AutoCompleteSlots, AutoCompleteEmits>;
|
|
839
860
|
}
|
|
840
861
|
}
|
|
841
862
|
|