primevue 4.2.5 → 4.3.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/LICENSE.md +1 -1
- package/accordion/Accordion.vue +0 -8
- package/accordion/index.mjs +1 -9
- package/accordion/index.mjs.map +1 -1
- package/accordion/style/index.mjs +2 -5
- package/accordion/style/index.mjs.map +1 -1
- package/accordioncontent/index.mjs +1 -1
- package/accordionheader/AccordionHeader.vue +2 -2
- package/accordionheader/index.mjs +4 -4
- package/accordionheader/index.mjs.map +1 -1
- package/accordionpanel/index.mjs +1 -1
- package/animateonscroll/index.d.ts +1 -1
- package/animateonscroll/index.mjs +4 -4
- package/animateonscroll/index.mjs.map +1 -1
- package/animateonscroll/style/index.d.ts +1 -1
- package/autocomplete/AutoComplete.vue +90 -23
- package/autocomplete/index.d.ts +19 -2
- package/autocomplete/index.mjs +127 -55
- package/autocomplete/index.mjs.map +1 -1
- package/autocomplete/style/index.mjs +15 -19
- package/autocomplete/style/index.mjs.map +1 -1
- package/avatar/index.mjs +1 -1
- package/avatar/style/index.mjs +4 -7
- package/avatar/style/index.mjs.map +1 -1
- package/avatargroup/index.mjs +1 -1
- package/badge/index.mjs +1 -1
- package/badge/style/index.mjs +6 -9
- package/badge/style/index.mjs.map +1 -1
- package/badgedirective/index.mjs +6 -6
- package/badgedirective/index.mjs.map +1 -1
- package/blockui/BlockUI.vue +2 -1
- package/blockui/index.mjs +3 -2
- package/blockui/index.mjs.map +1 -1
- package/blockui/style/index.mjs +2 -5
- package/blockui/style/index.mjs.map +1 -1
- package/breadcrumb/index.mjs +1 -1
- package/breadcrumb/style/index.mjs +4 -7
- package/breadcrumb/style/index.mjs.map +1 -1
- package/button/Button.vue +1 -1
- package/button/index.d.ts +11 -1
- package/button/index.mjs +5 -4
- package/button/index.mjs.map +1 -1
- package/button/style/index.mjs +9 -12
- package/button/style/index.mjs.map +1 -1
- package/buttongroup/index.mjs +1 -1
- package/buttongroup/style/index.mjs +2 -5
- package/buttongroup/style/index.mjs.map +1 -1
- package/card/index.mjs +1 -1
- package/card/style/index.mjs +2 -5
- package/card/style/index.mjs.map +1 -1
- package/carousel/index.mjs +2 -2
- package/carousel/index.mjs.map +1 -1
- package/carousel/style/index.mjs +19 -22
- package/carousel/style/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +16 -17
- package/cascadeselect/CascadeSelectSub.vue +1 -1
- package/cascadeselect/index.d.ts +2 -2
- package/cascadeselect/index.mjs +26 -28
- package/cascadeselect/index.mjs.map +1 -1
- package/cascadeselect/style/index.mjs +17 -19
- package/cascadeselect/style/index.mjs.map +1 -1
- package/chart/index.mjs +4 -4
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.mjs +2 -2
- package/checkbox/index.mjs.map +1 -1
- package/checkbox/style/index.mjs +5 -8
- package/checkbox/style/index.mjs.map +1 -1
- package/checkboxgroup/index.mjs +1 -1
- package/checkboxgroup/style/index.mjs +2 -5
- package/checkboxgroup/style/index.mjs.map +1 -1
- package/chip/index.mjs +1 -1
- package/chip/style/index.mjs +2 -5
- package/chip/style/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +2 -2
- package/colorpicker/index.mjs +7 -7
- package/colorpicker/index.mjs.map +1 -1
- package/colorpicker/style/index.mjs +7 -10
- package/colorpicker/style/index.mjs.map +1 -1
- package/column/BaseColumn.vue +1 -1
- package/column/index.d.ts +2 -2
- package/column/index.mjs +1 -1
- package/column/index.mjs.map +1 -1
- package/columngroup/index.mjs.map +1 -1
- package/confirmdialog/index.d.ts +4 -0
- package/confirmdialog/index.mjs +1 -1
- package/confirmdialog/index.mjs.map +1 -1
- package/confirmdialog/style/index.mjs +2 -5
- package/confirmdialog/style/index.mjs.map +1 -1
- package/confirmpopup/ConfirmPopup.vue +2 -2
- package/confirmpopup/index.mjs +4 -4
- package/confirmpopup/index.mjs.map +1 -1
- package/confirmpopup/style/index.mjs +2 -5
- package/confirmpopup/style/index.mjs.map +1 -1
- package/contextmenu/ContextMenu.vue +6 -12
- package/contextmenu/index.mjs +9 -15
- package/contextmenu/index.mjs.map +1 -1
- package/contextmenu/style/index.mjs +7 -10
- package/contextmenu/style/index.mjs.map +1 -1
- package/datatable/BodyCell.vue +24 -14
- package/datatable/BodyRow.vue +0 -1
- package/datatable/ColumnFilter.vue +10 -16
- package/datatable/DataTable.vue +6 -6
- package/datatable/FilterHeaderCell.vue +189 -0
- package/datatable/FooterCell.vue +2 -2
- package/datatable/HeaderCell.vue +4 -4
- package/datatable/TableBody.vue +3 -10
- package/datatable/TableHeader.vue +23 -50
- package/datatable/index.d.ts +89 -39
- package/datatable/index.mjs +444 -234
- package/datatable/index.mjs.map +1 -1
- package/datatable/style/index.mjs +32 -36
- package/datatable/style/index.mjs.map +1 -1
- package/dataview/index.mjs +2 -2
- package/dataview/index.mjs.map +1 -1
- package/dataview/style/index.mjs +6 -9
- package/dataview/style/index.mjs.map +1 -1
- package/datepicker/BaseDatePicker.vue +0 -4
- package/datepicker/DatePicker.vue +46 -20
- package/datepicker/index.d.ts +2 -6
- package/datepicker/index.mjs +78 -52
- package/datepicker/index.mjs.map +1 -1
- package/datepicker/style/index.mjs +26 -28
- package/datepicker/style/index.mjs.map +1 -1
- package/deferredcontent/index.mjs +1 -1
- package/dialog/Dialog.vue +3 -11
- package/dialog/index.d.ts +1 -1
- package/dialog/index.mjs +7 -14
- package/dialog/index.mjs.map +1 -1
- package/dialog/style/index.mjs +10 -14
- package/dialog/style/index.mjs.map +1 -1
- package/divider/index.mjs +1 -1
- package/divider/style/index.mjs +6 -10
- package/divider/style/index.mjs.map +1 -1
- package/dock/DockSub.vue +5 -13
- package/dock/index.mjs +6 -14
- package/dock/index.mjs.map +1 -1
- package/dock/style/index.mjs +9 -12
- package/dock/style/index.mjs.map +1 -1
- package/drawer/Drawer.vue +7 -4
- package/drawer/index.d.ts +4 -0
- package/drawer/index.mjs +7 -5
- package/drawer/index.mjs.map +1 -1
- package/drawer/style/index.mjs +10 -13
- package/drawer/style/index.mjs.map +1 -1
- package/dynamicdialog/DynamicDialog.vue +5 -5
- package/dynamicdialog/index.mjs +8 -6
- package/dynamicdialog/index.mjs.map +1 -1
- package/editor/Editor.vue +9 -11
- package/editor/index.d.ts +0 -15
- package/editor/index.mjs +16 -16
- package/editor/index.mjs.map +1 -1
- package/editor/style/index.mjs +4 -7
- package/editor/style/index.mjs.map +1 -1
- package/fieldset/Fieldset.vue +4 -12
- package/fieldset/index.mjs +9 -17
- package/fieldset/index.mjs.map +1 -1
- package/fieldset/style/index.mjs +4 -7
- package/fieldset/style/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +9 -7
- package/fileupload/index.d.ts +3 -3
- package/fileupload/index.mjs +12 -10
- package/fileupload/index.mjs.map +1 -1
- package/fileupload/style/index.mjs +4 -7
- package/fileupload/style/index.mjs.map +1 -1
- package/floatlabel/index.mjs +1 -1
- package/floatlabel/style/index.mjs +4 -8
- package/floatlabel/style/index.mjs.map +1 -1
- package/fluid/index.mjs +1 -1
- package/focustrap/index.mjs +4 -4
- package/focustrap/index.mjs.map +1 -1
- package/galleria/Galleria.vue +2 -1
- package/galleria/GalleriaContent.vue +3 -11
- package/galleria/GalleriaThumbnails.vue +15 -8
- package/galleria/index.mjs +28 -30
- package/galleria/index.mjs.map +1 -1
- package/galleria/style/index.mjs +23 -26
- package/galleria/style/index.mjs.map +1 -1
- package/iconfield/index.mjs +1 -1
- package/iconfield/style/index.mjs +2 -5
- package/iconfield/style/index.mjs.map +1 -1
- package/iftalabel/index.mjs +1 -1
- package/iftalabel/style/index.mjs +2 -5
- package/iftalabel/style/index.mjs.map +1 -1
- package/image/Image.vue +2 -1
- package/image/index.d.ts +4 -0
- package/image/index.mjs +6 -5
- package/image/index.mjs.map +1 -1
- package/image/style/index.mjs +8 -11
- package/image/style/index.mjs.map +1 -1
- package/imagecompare/index.mjs +1 -1
- package/imagecompare/style/index.mjs +2 -5
- package/imagecompare/style/index.mjs.map +1 -1
- package/index.d.ts +3 -0
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/inlinemessage/index.mjs +1 -1
- package/inlinemessage/style/index.mjs +7 -10
- package/inlinemessage/style/index.mjs.map +1 -1
- package/inplace/index.mjs +4 -4
- package/inplace/style/index.mjs +4 -7
- package/inplace/style/index.mjs.map +1 -1
- package/inputchips/InputChips.vue +2 -10
- package/inputchips/index.mjs +6 -14
- package/inputchips/index.mjs.map +1 -1
- package/inputchips/style/index.mjs +11 -14
- package/inputchips/style/index.mjs.map +1 -1
- package/inputgroup/index.mjs +1 -1
- package/inputgroup/style/index.mjs +2 -5
- package/inputgroup/style/index.mjs.map +1 -1
- package/inputgroupaddon/index.mjs +1 -1
- package/inputicon/index.mjs +1 -1
- package/inputmask/InputMask.vue +26 -17
- package/inputmask/index.d.ts +2 -2
- package/inputmask/index.mjs +28 -17
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/InputNumber.vue +17 -6
- package/inputnumber/index.d.ts +4 -4
- package/inputnumber/index.mjs +20 -12
- package/inputnumber/index.mjs.map +1 -1
- package/inputnumber/style/index.mjs +12 -14
- package/inputnumber/style/index.mjs.map +1 -1
- package/inputotp/index.d.ts +23 -8
- package/inputotp/index.mjs +1 -1
- package/inputotp/style/index.mjs +2 -5
- package/inputotp/style/index.mjs.map +1 -1
- package/inputtext/InputText.vue +1 -1
- package/inputtext/index.d.ts +1 -1
- package/inputtext/index.mjs +3 -2
- package/inputtext/index.mjs.map +1 -1
- package/inputtext/style/index.mjs +5 -8
- package/inputtext/style/index.mjs.map +1 -1
- package/keyfilter/index.mjs +8 -9
- package/keyfilter/index.mjs.map +1 -1
- package/knob/index.mjs +3 -3
- package/knob/index.mjs.map +1 -1
- package/knob/style/index.mjs +5 -8
- package/knob/style/index.mjs.map +1 -1
- package/listbox/Listbox.vue +7 -13
- package/listbox/index.mjs +10 -16
- package/listbox/index.mjs.map +1 -1
- package/listbox/style/index.mjs +11 -14
- package/listbox/style/index.mjs.map +1 -1
- package/megamenu/MegaMenu.vue +9 -15
- package/megamenu/index.mjs +12 -18
- package/megamenu/index.mjs.map +1 -1
- package/megamenu/style/index.mjs +15 -18
- package/megamenu/style/index.mjs.map +1 -1
- package/menu/Menu.vue +9 -17
- package/menu/index.d.ts +10 -0
- package/menu/index.mjs +10 -17
- package/menu/index.mjs.map +1 -1
- package/menu/style/index.mjs +6 -9
- package/menu/style/index.mjs.map +1 -1
- package/menubar/Menubar.vue +10 -16
- package/menubar/index.mjs +14 -20
- package/menubar/index.mjs.map +1 -1
- package/menubar/style/index.mjs +10 -13
- package/menubar/style/index.mjs.map +1 -1
- package/message/index.mjs +4 -4
- package/message/style/index.mjs +4 -7
- package/message/style/index.mjs.map +1 -1
- package/metergroup/index.mjs +1 -1
- package/metergroup/style/index.mjs +6 -9
- package/metergroup/style/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +23 -18
- package/multiselect/index.d.ts +12 -6
- package/multiselect/index.mjs +32 -28
- package/multiselect/index.mjs.map +1 -1
- package/multiselect/style/index.mjs +17 -20
- package/multiselect/style/index.mjs.map +1 -1
- package/orderlist/OrderList.vue +1 -10
- package/orderlist/index.mjs +7 -15
- package/orderlist/index.mjs.map +1 -1
- package/orderlist/style/index.mjs +2 -5
- package/orderlist/style/index.mjs.map +1 -1
- package/organizationchart/index.mjs +4 -4
- package/organizationchart/style/index.mjs +9 -12
- package/organizationchart/style/index.mjs.map +1 -1
- package/overlaybadge/index.mjs +1 -1
- package/overlaybadge/style/index.mjs +2 -5
- package/overlaybadge/style/index.mjs.map +1 -1
- package/package.json +6 -5
- package/paginator/index.mjs +2 -2
- package/paginator/index.mjs.map +1 -1
- package/paginator/style/index.mjs +18 -21
- package/paginator/style/index.mjs.map +1 -1
- package/panel/Panel.vue +5 -13
- package/panel/index.mjs +7 -15
- package/panel/index.mjs.map +1 -1
- package/panel/style/index.mjs +4 -7
- package/panel/style/index.mjs.map +1 -1
- package/panelmenu/PanelMenu.vue +2 -12
- package/panelmenu/index.mjs +8 -18
- package/panelmenu/index.mjs.map +1 -1
- package/panelmenu/style/index.mjs +8 -11
- package/panelmenu/style/index.mjs.map +1 -1
- package/passthrough/index.mjs +3 -3
- package/password/Password.vue +3 -10
- package/password/index.d.ts +2 -2
- package/password/index.mjs +9 -16
- package/password/index.mjs.map +1 -1
- package/password/style/index.mjs +8 -11
- package/password/style/index.mjs.map +1 -1
- package/picklist/PickList.vue +2 -9
- package/picklist/index.mjs +8 -14
- package/picklist/index.mjs.map +1 -1
- package/picklist/style/index.mjs +2 -5
- package/picklist/style/index.mjs.map +1 -1
- package/popover/Popover.vue +2 -2
- package/popover/index.mjs +4 -4
- package/popover/index.mjs.map +1 -1
- package/popover/style/index.mjs +2 -5
- package/popover/style/index.mjs.map +1 -1
- package/portal/index.mjs +1 -1
- package/progressbar/index.mjs +1 -1
- package/progressbar/style/index.mjs +4 -7
- package/progressbar/style/index.mjs.map +1 -1
- package/progressspinner/index.mjs +1 -1
- package/progressspinner/style/index.mjs +2 -5
- package/progressspinner/style/index.mjs.map +1 -1
- package/radiobutton/index.d.ts +2 -2
- package/radiobutton/index.mjs +1 -1
- package/radiobutton/index.mjs.map +1 -1
- package/radiobutton/style/index.mjs +5 -8
- package/radiobutton/style/index.mjs.map +1 -1
- package/radiobuttongroup/index.mjs +1 -1
- package/radiobuttongroup/style/index.mjs +2 -5
- package/radiobuttongroup/style/index.mjs.map +1 -1
- package/rating/Rating.vue +6 -11
- package/rating/index.mjs +7 -12
- package/rating/index.mjs.map +1 -1
- package/rating/style/index.mjs +11 -14
- package/rating/style/index.mjs.map +1 -1
- package/ripple/index.mjs +16 -13
- package/ripple/index.mjs.map +1 -1
- package/ripple/style/index.mjs +2 -5
- package/ripple/style/index.mjs.map +1 -1
- package/row/index.mjs.map +1 -1
- package/scrollpanel/ScrollPanel.vue +1 -10
- package/scrollpanel/index.mjs +3 -11
- package/scrollpanel/index.mjs.map +1 -1
- package/scrollpanel/style/index.mjs +2 -5
- package/scrollpanel/style/index.mjs.map +1 -1
- package/scrolltop/index.mjs +1 -1
- package/scrolltop/style/index.mjs +4 -7
- package/scrolltop/style/index.mjs.map +1 -1
- package/select/Select.vue +55 -26
- package/select/index.d.ts +9 -5
- package/select/index.mjs +89 -63
- package/select/index.mjs.map +1 -1
- package/select/style/index.mjs +15 -18
- package/select/style/index.mjs.map +1 -1
- package/selectbutton/index.mjs +3 -3
- package/selectbutton/style/index.mjs +4 -7
- package/selectbutton/style/index.mjs.map +1 -1
- package/skeleton/index.mjs +1 -1
- package/skeleton/style/index.mjs +4 -7
- package/skeleton/style/index.mjs.map +1 -1
- package/slider/Slider.vue +1 -1
- package/slider/index.mjs +3 -3
- package/slider/index.mjs.map +1 -1
- package/slider/style/index.mjs +5 -8
- package/slider/style/index.mjs.map +1 -1
- package/speeddial/SpeedDial.vue +8 -15
- package/speeddial/index.d.ts +1 -1
- package/speeddial/index.mjs +13 -19
- package/speeddial/index.mjs.map +1 -1
- package/speeddial/style/index.mjs +15 -18
- package/speeddial/style/index.mjs.map +1 -1
- package/splitbutton/SplitButton.vue +2 -11
- package/splitbutton/index.d.ts +2 -2
- package/splitbutton/index.mjs +3 -11
- package/splitbutton/index.mjs.map +1 -1
- package/splitbutton/style/index.mjs +5 -8
- package/splitbutton/style/index.mjs.map +1 -1
- package/splitter/Splitter.vue +31 -14
- package/splitter/index.d.ts +1 -1
- package/splitter/index.mjs +28 -14
- package/splitter/index.mjs.map +1 -1
- package/splitter/style/index.mjs +6 -9
- package/splitter/style/index.mjs.map +1 -1
- package/splitterpanel/index.mjs +1 -1
- package/step/index.mjs +1 -1
- package/step/index.mjs.map +1 -1
- package/stepitem/index.mjs +1 -1
- package/stepitem/index.mjs.map +1 -1
- package/steplist/index.mjs +1 -1
- package/steppanel/index.mjs +1 -1
- package/steppanel/index.mjs.map +1 -1
- package/steppanels/index.mjs +1 -1
- package/stepper/Stepper.vue +0 -8
- package/stepper/index.mjs +1 -9
- package/stepper/index.mjs.map +1 -1
- package/stepper/style/index.mjs +4 -7
- package/stepper/style/index.mjs.map +1 -1
- package/steps/index.mjs +2 -2
- package/steps/style/index.mjs +8 -11
- package/steps/style/index.mjs.map +1 -1
- package/styleclass/index.mjs +1 -1
- package/tab/Tab.vue +3 -3
- package/tab/index.mjs +4 -4
- package/tab/index.mjs.map +1 -1
- package/tablist/TabList.vue +2 -2
- package/tablist/index.mjs +4 -4
- package/tablist/index.mjs.map +1 -1
- package/tabmenu/index.mjs +2 -2
- package/tabmenu/index.mjs.map +1 -1
- package/tabmenu/style/index.mjs +6 -9
- package/tabmenu/style/index.mjs.map +1 -1
- package/tabpanel/index.mjs +1 -1
- package/tabpanel/index.mjs.map +1 -1
- package/tabpanels/index.mjs +1 -1
- package/tabs/Tabs.vue +0 -8
- package/tabs/index.mjs +1 -9
- package/tabs/index.mjs.map +1 -1
- package/tabs/style/index.mjs +4 -7
- package/tabs/style/index.mjs.map +1 -1
- package/tabview/TabView.vue +3 -9
- package/tabview/index.mjs +7 -13
- package/tabview/index.mjs.map +1 -1
- package/tabview/style/index.mjs +11 -14
- package/tabview/style/index.mjs.map +1 -1
- package/tag/index.mjs +1 -1
- package/tag/style/index.mjs +4 -7
- package/tag/style/index.mjs.map +1 -1
- package/terminal/index.mjs +1 -1
- package/terminal/style/index.mjs +2 -5
- package/terminal/style/index.mjs.map +1 -1
- package/textarea/Textarea.vue +5 -2
- package/textarea/index.d.ts +4 -4
- package/textarea/index.mjs +7 -3
- package/textarea/index.mjs.map +1 -1
- package/textarea/style/index.mjs +5 -8
- package/textarea/style/index.mjs.map +1 -1
- package/tieredmenu/TieredMenu.vue +8 -13
- package/tieredmenu/index.mjs +11 -16
- package/tieredmenu/index.mjs.map +1 -1
- package/tieredmenu/style/index.mjs +11 -14
- package/tieredmenu/style/index.mjs.map +1 -1
- package/timeline/index.d.ts +4 -0
- package/timeline/index.mjs +1 -1
- package/timeline/style/index.mjs +4 -7
- package/timeline/style/index.mjs.map +1 -1
- package/toast/BaseToast.vue +12 -0
- package/toast/ToastMessage.vue +38 -4
- package/toast/index.d.ts +12 -0
- package/toast/index.mjs +79 -15
- package/toast/index.mjs.map +1 -1
- package/toast/style/index.mjs +12 -15
- package/toast/style/index.mjs.map +1 -1
- package/togglebutton/ToggleButton.vue +1 -0
- package/togglebutton/index.mjs +3 -2
- package/togglebutton/index.mjs.map +1 -1
- package/togglebutton/style/index.mjs +5 -8
- package/togglebutton/style/index.mjs.map +1 -1
- package/toggleswitch/index.mjs +1 -1
- package/toggleswitch/index.mjs.map +1 -1
- package/toggleswitch/style/index.mjs +5 -8
- package/toggleswitch/style/index.mjs.map +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar/style/index.mjs +2 -5
- package/toolbar/style/index.mjs.map +1 -1
- package/tooltip/index.mjs +62 -14
- package/tooltip/index.mjs.map +1 -1
- package/tooltip/style/index.mjs +2 -5
- package/tooltip/style/index.mjs.map +1 -1
- package/tree/Tree.vue +2 -2
- package/tree/index.mjs +16 -16
- package/tree/index.mjs.map +1 -1
- package/tree/style/index.mjs +8 -11
- package/tree/style/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +21 -26
- package/treeselect/index.d.ts +2 -2
- package/treeselect/index.mjs +56 -72
- package/treeselect/index.mjs.map +1 -1
- package/treeselect/style/index.mjs +10 -13
- package/treeselect/style/index.mjs.map +1 -1
- package/treetable/BodyCell.vue +8 -5
- package/treetable/FooterCell.vue +2 -2
- package/treetable/HeaderCell.vue +4 -4
- package/treetable/index.d.ts +29 -0
- package/treetable/index.mjs +42 -35
- package/treetable/index.mjs.map +1 -1
- package/treetable/style/index.mjs +22 -25
- package/treetable/style/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- package/utils/index.d.ts +9 -0
- package/utils/index.mjs +16 -0
- package/utils/index.mjs.map +1 -0
- package/utils/package.json +5 -0
- package/virtualscroller/VirtualScroller.vue +16 -10
- package/virtualscroller/index.mjs +21 -15
- package/virtualscroller/index.mjs.map +1 -1
- package/virtualscroller/style/index.mjs +2 -5
- package/virtualscroller/style/index.mjs.map +1 -1
- package/web-types.json +1 -1
|
@@ -1,22 +1,19 @@
|
|
|
1
|
+
import { style } from '@primeuix/styles/tieredmenu';
|
|
1
2
|
import BaseStyle from '@primevue/core/base/style';
|
|
2
3
|
|
|
3
|
-
var theme = function theme(_ref) {
|
|
4
|
-
var dt = _ref.dt;
|
|
5
|
-
return "\n.p-tieredmenu {\n background: ".concat(dt('tieredmenu.background'), ";\n color: ").concat(dt('tieredmenu.color'), ";\n border: 1px solid ").concat(dt('tieredmenu.border.color'), ";\n border-radius: ").concat(dt('tieredmenu.border.radius'), ";\n min-width: 12.5rem;\n}\n\n.p-tieredmenu-root-list,\n.p-tieredmenu-submenu {\n margin: 0;\n padding: ").concat(dt('tieredmenu.list.padding'), ";\n list-style: none;\n outline: 0 none;\n display: flex;\n flex-direction: column;\n gap: ").concat(dt('tieredmenu.list.gap'), ";\n}\n\n.p-tieredmenu-submenu {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n background: ").concat(dt('tieredmenu.background'), ";\n color: ").concat(dt('tieredmenu.color'), ";\n border: 1px solid ").concat(dt('tieredmenu.border.color'), ";\n border-radius: ").concat(dt('tieredmenu.border.radius'), ";\n box-shadow: ").concat(dt('tieredmenu.shadow'), ";\n}\n\n.p-tieredmenu-item {\n position: relative;\n}\n\n.p-tieredmenu-item-content {\n transition: background ").concat(dt('tieredmenu.transition.duration'), ", color ").concat(dt('tieredmenu.transition.duration'), ";\n border-radius: ").concat(dt('tieredmenu.item.border.radius'), ";\n color: ").concat(dt('tieredmenu.item.color'), ";\n}\n\n.p-tieredmenu-item-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n color: inherit;\n padding: ").concat(dt('tieredmenu.item.padding'), ";\n gap: ").concat(dt('tieredmenu.item.gap'), ";\n user-select: none;\n outline: 0 none;\n}\n\n.p-tieredmenu-item-label {\n line-height: 1;\n}\n\n.p-tieredmenu-item-icon {\n color: ").concat(dt('tieredmenu.item.icon.color'), ";\n}\n\n.p-tieredmenu-submenu-icon {\n color: ").concat(dt('tieredmenu.submenu.icon.color'), ";\n margin-left: auto;\n font-size: ").concat(dt('tieredmenu.submenu.icon.size'), ";\n width: ").concat(dt('tieredmenu.submenu.icon.size'), ";\n height: ").concat(dt('tieredmenu.submenu.icon.size'), ";\n}\n\n.p-tieredmenu-submenu-icon:dir(rtl) {\n margin-left: 0;\n margin-right: auto;\n}\n\n.p-tieredmenu-item.p-focus > .p-tieredmenu-item-content {\n color: ").concat(dt('tieredmenu.item.focus.color'), ";\n background: ").concat(dt('tieredmenu.item.focus.background'), ";\n}\n\n.p-tieredmenu-item.p-focus > .p-tieredmenu-item-content .p-tieredmenu-item-icon {\n color: ").concat(dt('tieredmenu.item.icon.focus.color'), ";\n}\n\n.p-tieredmenu-item.p-focus > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {\n color: ").concat(dt('tieredmenu.submenu.icon.focus.color'), ";\n}\n\n.p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover {\n color: ").concat(dt('tieredmenu.item.focus.color'), ";\n background: ").concat(dt('tieredmenu.item.focus.background'), ";\n}\n\n.p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover .p-tieredmenu-item-icon {\n color: ").concat(dt('tieredmenu.item.icon.focus.color'), ";\n}\n\n.p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover .p-tieredmenu-submenu-icon {\n color: ").concat(dt('tieredmenu.submenu.icon.focus.color'), ";\n}\n\n.p-tieredmenu-item-active > .p-tieredmenu-item-content {\n color: ").concat(dt('tieredmenu.item.active.color'), ";\n background: ").concat(dt('tieredmenu.item.active.background'), ";\n}\n\n.p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-item-icon {\n color: ").concat(dt('tieredmenu.item.icon.active.color'), ";\n}\n\n.p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {\n color: ").concat(dt('tieredmenu.submenu.icon.active.color'), ";\n}\n\n.p-tieredmenu-separator {\n border-block-start: 1px solid ").concat(dt('tieredmenu.separator.border.color'), ";\n}\n\n.p-tieredmenu-overlay {\n box-shadow: ").concat(dt('tieredmenu.shadow'), ";\n}\n\n.p-tieredmenu-enter-from,\n.p-tieredmenu-leave-active {\n opacity: 0;\n}\n\n.p-tieredmenu-enter-active {\n transition: opacity 250ms;\n}\n\n.p-tieredmenu-mobile .p-tieredmenu-submenu {\n position: static;\n box-shadow: none;\n border: 0 none;\n padding-inline-start: ").concat(dt('tieredmenu.submenu.mobile.indent'), ";\n padding-inline-end: 0;\n}\n\n.p-tieredmenu-mobile .p-tieredmenu-submenu:dir(rtl) {\n padding-inline-start: 0;\n padding-inline-end: ").concat(dt('tieredmenu.submenu.mobile.indent'), ";\n}\n\n.p-tieredmenu-mobile .p-tieredmenu-submenu-icon {\n transition: transform 0.2s;\n transform: rotate(90deg);\n}\n\n.p-tieredmenu-mobile .p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {\n transform: rotate(-90deg);\n}\n");
|
|
6
|
-
};
|
|
7
4
|
var inlineStyles = {
|
|
8
|
-
submenu: function submenu(
|
|
9
|
-
var instance =
|
|
10
|
-
processedItem =
|
|
5
|
+
submenu: function submenu(_ref) {
|
|
6
|
+
var instance = _ref.instance,
|
|
7
|
+
processedItem = _ref.processedItem;
|
|
11
8
|
return {
|
|
12
9
|
display: instance.isItemActive(processedItem) ? 'flex' : 'none'
|
|
13
10
|
};
|
|
14
11
|
}
|
|
15
12
|
};
|
|
16
13
|
var classes = {
|
|
17
|
-
root: function root(
|
|
18
|
-
var props =
|
|
19
|
-
instance =
|
|
14
|
+
root: function root(_ref2) {
|
|
15
|
+
var props = _ref2.props,
|
|
16
|
+
instance = _ref2.instance;
|
|
20
17
|
return ['p-tieredmenu p-component', {
|
|
21
18
|
'p-tieredmenu-overlay': props.popup,
|
|
22
19
|
'p-tieredmenu-mobile': instance.queryMatches
|
|
@@ -24,9 +21,9 @@ var classes = {
|
|
|
24
21
|
},
|
|
25
22
|
start: 'p-tieredmenu-start',
|
|
26
23
|
rootList: 'p-tieredmenu-root-list',
|
|
27
|
-
item: function item(
|
|
28
|
-
var instance =
|
|
29
|
-
processedItem =
|
|
24
|
+
item: function item(_ref3) {
|
|
25
|
+
var instance = _ref3.instance,
|
|
26
|
+
processedItem = _ref3.processedItem;
|
|
30
27
|
return ['p-tieredmenu-item', {
|
|
31
28
|
'p-tieredmenu-item-active': instance.isItemActive(processedItem),
|
|
32
29
|
'p-focus': instance.isItemFocused(processedItem),
|
|
@@ -44,7 +41,7 @@ var classes = {
|
|
|
44
41
|
};
|
|
45
42
|
var TieredMenuStyle = BaseStyle.extend({
|
|
46
43
|
name: 'tieredmenu',
|
|
47
|
-
|
|
44
|
+
style: style,
|
|
48
45
|
classes: classes,
|
|
49
46
|
inlineStyles: inlineStyles
|
|
50
47
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/tieredmenu/style/TieredMenuStyle.js"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/tieredmenu/style/TieredMenuStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/tieredmenu';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst inlineStyles = {\n submenu: ({ instance, processedItem }) => ({ display: instance.isItemActive(processedItem) ? 'flex' : 'none' })\n};\n\nconst classes = {\n root: ({ props, instance }) => [\n 'p-tieredmenu p-component',\n {\n 'p-tieredmenu-overlay': props.popup,\n 'p-tieredmenu-mobile': instance.queryMatches\n }\n ],\n start: 'p-tieredmenu-start',\n rootList: 'p-tieredmenu-root-list',\n item: ({ instance, processedItem }) => [\n 'p-tieredmenu-item',\n {\n 'p-tieredmenu-item-active': instance.isItemActive(processedItem),\n 'p-focus': instance.isItemFocused(processedItem),\n 'p-disabled': instance.isItemDisabled(processedItem)\n }\n ],\n itemContent: 'p-tieredmenu-item-content',\n itemLink: 'p-tieredmenu-item-link',\n itemIcon: 'p-tieredmenu-item-icon',\n itemLabel: 'p-tieredmenu-item-label',\n submenuIcon: 'p-tieredmenu-submenu-icon',\n submenu: 'p-tieredmenu-submenu',\n separator: 'p-tieredmenu-separator',\n end: 'p-tieredmenu-end'\n};\n\nexport default BaseStyle.extend({\n name: 'tieredmenu',\n style,\n classes,\n inlineStyles\n});\n"],"names":["inlineStyles","submenu","_ref","instance","processedItem","display","isItemActive","classes","root","_ref2","props","popup","queryMatches","start","rootList","item","_ref3","isItemFocused","isItemDisabled","itemContent","itemLink","itemIcon","itemLabel","submenuIcon","separator","end","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,YAAY,GAAG;AACjBC,EAAAA,OAAO,EAAE,SAATA,OAAOA,CAAAC,IAAA,EAAA;AAAA,IAAA,IAAKC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;MAAEC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IAAA,OAAQ;MAAEC,OAAO,EAAEF,QAAQ,CAACG,YAAY,CAACF,aAAa,CAAC,GAAG,MAAM,GAAG;KAAQ;AAAA;AAClH,CAAC;AAED,IAAMG,OAAO,GAAG;AACZC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,KAAA,EAAA;AAAA,IAAA,IAAKC,KAAK,GAAAD,KAAA,CAALC,KAAK;MAAEP,QAAQ,GAAAM,KAAA,CAARN,QAAQ;IAAA,OAAO,CAC3B,0BAA0B,EAC1B;MACI,sBAAsB,EAAEO,KAAK,CAACC,KAAK;MACnC,qBAAqB,EAAER,QAAQ,CAACS;AACpC,KAAC,CACJ;AAAA,GAAA;AACDC,EAAAA,KAAK,EAAE,oBAAoB;AAC3BC,EAAAA,QAAQ,EAAE,wBAAwB;AAClCC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,KAAA,EAAA;AAAA,IAAA,IAAKb,QAAQ,GAAAa,KAAA,CAARb,QAAQ;MAAEC,aAAa,GAAAY,KAAA,CAAbZ,aAAa;IAAA,OAAO,CACnC,mBAAmB,EACnB;AACI,MAAA,0BAA0B,EAAED,QAAQ,CAACG,YAAY,CAACF,aAAa,CAAC;AAChE,MAAA,SAAS,EAAED,QAAQ,CAACc,aAAa,CAACb,aAAa,CAAC;AAChD,MAAA,YAAY,EAAED,QAAQ,CAACe,cAAc,CAACd,aAAa;AACvD,KAAC,CACJ;AAAA,GAAA;AACDe,EAAAA,WAAW,EAAE,2BAA2B;AACxCC,EAAAA,QAAQ,EAAE,wBAAwB;AAClCC,EAAAA,QAAQ,EAAE,wBAAwB;AAClCC,EAAAA,SAAS,EAAE,yBAAyB;AACpCC,EAAAA,WAAW,EAAE,2BAA2B;AACxCtB,EAAAA,OAAO,EAAE,sBAAsB;AAC/BuB,EAAAA,SAAS,EAAE,wBAAwB;AACnCC,EAAAA,GAAG,EAAE;AACT,CAAC;AAED,sBAAeC,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE,YAAY;AAClBC,EAAAA,KAAK,EAALA,KAAK;AACLtB,EAAAA,OAAO,EAAPA,OAAO;AACPP,EAAAA,YAAY,EAAZA;AACJ,CAAC,CAAC;;;;"}
|
package/timeline/index.d.ts
CHANGED
package/timeline/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveFieldData } from '@primeuix/utils/object';
|
|
2
2
|
import BaseComponent from '@primevue/core/basecomponent';
|
|
3
3
|
import TimelineStyle from 'primevue/timeline/style';
|
|
4
|
-
import {
|
|
4
|
+
import { createElementBlock, openBlock, mergeProps, Fragment, renderList, createElementVNode, renderSlot, createCommentVNode } from 'vue';
|
|
5
5
|
|
|
6
6
|
var script$1 = {
|
|
7
7
|
name: 'BaseTimeline',
|
package/timeline/style/index.mjs
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import { style } from '@primeuix/styles/timeline';
|
|
1
2
|
import BaseStyle from '@primevue/core/base/style';
|
|
2
3
|
|
|
3
|
-
var theme = function theme(_ref) {
|
|
4
|
-
var dt = _ref.dt;
|
|
5
|
-
return "\n.p-timeline {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n direction: ltr;\n}\n\n.p-timeline-left .p-timeline-event-opposite {\n text-align: right;\n}\n\n.p-timeline-left .p-timeline-event-content {\n text-align: left;\n}\n\n.p-timeline-right .p-timeline-event {\n flex-direction: row-reverse;\n}\n\n.p-timeline-right .p-timeline-event-opposite {\n text-align: left;\n}\n\n.p-timeline-right .p-timeline-event-content {\n text-align: right;\n}\n\n.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) {\n flex-direction: row-reverse;\n}\n\n.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-opposite {\n text-align: right;\n}\n\n.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-content {\n text-align: left;\n}\n\n.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) .p-timeline-event-opposite {\n text-align: left;\n}\n\n.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) .p-timeline-event-content {\n text-align: right;\n}\n\n.p-timeline-vertical .p-timeline-event-opposite,\n.p-timeline-vertical .p-timeline-event-content {\n padding: ".concat(dt('timeline.vertical.event.content.padding'), ";\n}\n\n.p-timeline-vertical .p-timeline-event-connector {\n width: ").concat(dt('timeline.event.connector.size'), ";\n}\n\n.p-timeline-event {\n display: flex;\n position: relative;\n min-height: ").concat(dt('timeline.event.min.height'), ";\n}\n\n.p-timeline-event:last-child {\n min-height: 0;\n}\n\n.p-timeline-event-opposite {\n flex: 1;\n}\n\n.p-timeline-event-content {\n flex: 1;\n}\n\n.p-timeline-event-separator {\n flex: 0;\n display: flex;\n align-items: center;\n flex-direction: column;\n}\n\n.p-timeline-event-marker {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n align-self: baseline;\n border-width: ").concat(dt('timeline.event.marker.border.width'), ";\n border-style: solid;\n border-color: ").concat(dt('timeline.event.marker.border.color'), ";\n border-radius: ").concat(dt('timeline.event.marker.border.radius'), ";\n width: ").concat(dt('timeline.event.marker.size'), ";\n height: ").concat(dt('timeline.event.marker.size'), ";\n background: ").concat(dt('timeline.event.marker.background'), ";\n}\n\n.p-timeline-event-marker::before {\n content: \" \";\n border-radius: ").concat(dt('timeline.event.marker.content.border.radius'), ";\n width: ").concat(dt('timeline.event.marker.content.size'), ";\n height:").concat(dt('timeline.event.marker.content.size'), ";\n background: ").concat(dt('timeline.event.marker.content.background'), ";\n}\n\n.p-timeline-event-marker::after {\n content: \" \";\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: ").concat(dt('timeline.event.marker.border.radius'), ";\n box-shadow: ").concat(dt('timeline.event.marker.content.inset.shadow'), ";\n}\n\n.p-timeline-event-connector {\n flex-grow: 1;\n background: ").concat(dt('timeline.event.connector.color'), ";\n}\n\n.p-timeline-horizontal {\n flex-direction: row;\n}\n\n.p-timeline-horizontal .p-timeline-event {\n flex-direction: column;\n flex: 1;\n}\n\n.p-timeline-horizontal .p-timeline-event:last-child {\n flex: 0;\n}\n\n.p-timeline-horizontal .p-timeline-event-separator {\n flex-direction: row;\n}\n\n.p-timeline-horizontal .p-timeline-event-connector {\n width: 100%;\n height: ").concat(dt('timeline.event.connector.size'), ";\n}\n\n.p-timeline-horizontal .p-timeline-event-opposite,\n.p-timeline-horizontal .p-timeline-event-content {\n padding: ").concat(dt('timeline.horizontal.event.content.padding'), ";\n}\n\n.p-timeline-horizontal.p-timeline-alternate .p-timeline-event:nth-child(even) {\n flex-direction: column-reverse;\n}\n\n.p-timeline-bottom .p-timeline-event {\n flex-direction: column-reverse;\n}\n");
|
|
6
|
-
};
|
|
7
4
|
var classes = {
|
|
8
|
-
root: function root(
|
|
9
|
-
var props =
|
|
5
|
+
root: function root(_ref) {
|
|
6
|
+
var props = _ref.props;
|
|
10
7
|
return ['p-timeline p-component', 'p-timeline-' + props.align, 'p-timeline-' + props.layout];
|
|
11
8
|
},
|
|
12
9
|
event: 'p-timeline-event',
|
|
@@ -18,7 +15,7 @@ var classes = {
|
|
|
18
15
|
};
|
|
19
16
|
var TimelineStyle = BaseStyle.extend({
|
|
20
17
|
name: 'timeline',
|
|
21
|
-
|
|
18
|
+
style: style,
|
|
22
19
|
classes: classes
|
|
23
20
|
});
|
|
24
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../src/timeline/style/TimelineStyle.js"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../src/timeline/style/TimelineStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/timeline';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst classes = {\n root: ({ props }) => ['p-timeline p-component', 'p-timeline-' + props.align, 'p-timeline-' + props.layout],\n event: 'p-timeline-event',\n eventOpposite: 'p-timeline-event-opposite',\n eventSeparator: 'p-timeline-event-separator',\n eventMarker: 'p-timeline-event-marker',\n eventConnector: 'p-timeline-event-connector',\n eventContent: 'p-timeline-event-content'\n};\n\nexport default BaseStyle.extend({\n name: 'timeline',\n style,\n classes\n});\n"],"names":["classes","root","_ref","props","align","layout","event","eventOpposite","eventSeparator","eventMarker","eventConnector","eventContent","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,OAAO,GAAG;AACZC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,IAAA,EAAA;AAAA,IAAA,IAAKC,KAAK,GAAAD,IAAA,CAALC,KAAK;AAAA,IAAA,OAAO,CAAC,wBAAwB,EAAE,aAAa,GAAGA,KAAK,CAACC,KAAK,EAAE,aAAa,GAAGD,KAAK,CAACE,MAAM,CAAC;AAAA,GAAA;AAC1GC,EAAAA,KAAK,EAAE,kBAAkB;AACzBC,EAAAA,aAAa,EAAE,2BAA2B;AAC1CC,EAAAA,cAAc,EAAE,4BAA4B;AAC5CC,EAAAA,WAAW,EAAE,yBAAyB;AACtCC,EAAAA,cAAc,EAAE,4BAA4B;AAC5CC,EAAAA,YAAY,EAAE;AAClB,CAAC;AAED,oBAAeC,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE,UAAU;AAChBC,EAAAA,KAAK,EAALA,KAAK;AACLf,EAAAA,OAAO,EAAPA;AACJ,CAAC,CAAC;;;;"}
|
package/toast/BaseToast.vue
CHANGED
|
@@ -49,6 +49,18 @@ export default {
|
|
|
49
49
|
closeButtonProps: {
|
|
50
50
|
type: null,
|
|
51
51
|
default: null
|
|
52
|
+
},
|
|
53
|
+
onMouseEnter: {
|
|
54
|
+
type: Function,
|
|
55
|
+
default: undefined
|
|
56
|
+
},
|
|
57
|
+
onMouseLeave: {
|
|
58
|
+
type: Function,
|
|
59
|
+
default: undefined
|
|
60
|
+
},
|
|
61
|
+
onClick: {
|
|
62
|
+
type: Function,
|
|
63
|
+
default: undefined
|
|
52
64
|
}
|
|
53
65
|
},
|
|
54
66
|
style: ToastStyle,
|
package/toast/ToastMessage.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="[cx('message'), message.styleClass]" role="alert" aria-live="assertive" aria-atomic="true" v-bind="ptm('message')">
|
|
2
|
+
<div :class="[cx('message'), message.styleClass]" role="alert" aria-live="assertive" aria-atomic="true" v-bind="ptm('message')" @click="onMessageClick" @mouseenter="onMouseEnter" @mouseleave="onMouseLeave">
|
|
3
3
|
<component v-if="templates.container" :is="templates.container" :message="message" :closeCallback="onCloseClick" />
|
|
4
4
|
<div v-else :class="[cx('messageContent'), message.contentStyleClass]" v-bind="ptm('messageContent')">
|
|
5
5
|
<template v-if="!templates.message">
|
|
@@ -34,6 +34,8 @@ export default {
|
|
|
34
34
|
extends: BaseComponent,
|
|
35
35
|
emits: ['close'],
|
|
36
36
|
closeTimeout: null,
|
|
37
|
+
createdAt: null,
|
|
38
|
+
lifeRemaining: null,
|
|
37
39
|
props: {
|
|
38
40
|
message: {
|
|
39
41
|
type: null,
|
|
@@ -70,15 +72,20 @@ export default {
|
|
|
70
72
|
},
|
|
71
73
|
mounted() {
|
|
72
74
|
if (this.message.life) {
|
|
73
|
-
this.
|
|
74
|
-
|
|
75
|
-
}, this.message.life);
|
|
75
|
+
this.lifeRemaining = this.message.life;
|
|
76
|
+
this.startTimeout();
|
|
76
77
|
}
|
|
77
78
|
},
|
|
78
79
|
beforeUnmount() {
|
|
79
80
|
this.clearCloseTimeout();
|
|
80
81
|
},
|
|
81
82
|
methods: {
|
|
83
|
+
startTimeout() {
|
|
84
|
+
this.createdAt = new Date().valueOf();
|
|
85
|
+
this.closeTimeout = setTimeout(() => {
|
|
86
|
+
this.close({ message: this.message, type: 'life-end' });
|
|
87
|
+
}, this.lifeRemaining);
|
|
88
|
+
},
|
|
82
89
|
close(params) {
|
|
83
90
|
this.$emit('close', params);
|
|
84
91
|
},
|
|
@@ -91,6 +98,33 @@ export default {
|
|
|
91
98
|
clearTimeout(this.closeTimeout);
|
|
92
99
|
this.closeTimeout = null;
|
|
93
100
|
}
|
|
101
|
+
},
|
|
102
|
+
onMessageClick(event) {
|
|
103
|
+
this.props?.onClick && this.props.onClick({ originalEvent: event, message: this.message });
|
|
104
|
+
},
|
|
105
|
+
onMouseEnter(event) {
|
|
106
|
+
this.props?.onMouseEnter && this.props.onMouseEnter({ originalEvent: event, message: this.message });
|
|
107
|
+
|
|
108
|
+
if (event.defaultPrevented) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (this.message.life) {
|
|
113
|
+
this.lifeRemaining = this.createdAt + this.lifeRemaining - Date().valueOf();
|
|
114
|
+
this.createdAt = null;
|
|
115
|
+
this.clearCloseTimeout();
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
onMouseLeave(event) {
|
|
119
|
+
this.props?.onMouseLeave && this.props.onMouseLeave({ originalEvent: event, message: this.message });
|
|
120
|
+
|
|
121
|
+
if (event.defaultPrevented) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (this.message.life) {
|
|
126
|
+
this.startTimeout();
|
|
127
|
+
}
|
|
94
128
|
}
|
|
95
129
|
},
|
|
96
130
|
computed: {
|
package/toast/index.d.ts
CHANGED
|
@@ -231,6 +231,18 @@ export interface ToastProps {
|
|
|
231
231
|
* @type {ToastMessageOptions}
|
|
232
232
|
*/
|
|
233
233
|
message?: ToastMessageOptions;
|
|
234
|
+
/**
|
|
235
|
+
* Used to specify a callback function to be run when the mouseenter event is fired on the message component.
|
|
236
|
+
*/
|
|
237
|
+
onMouseEnter?: Function | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* Used to specify a callback function to be run when the mouseleave event is fired on the message component.
|
|
240
|
+
*/
|
|
241
|
+
onMouseLeave?: Function | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* Used to specify a callback function to be run when the click event is fired on the message component.
|
|
244
|
+
*/
|
|
245
|
+
onClick?: Function | undefined;
|
|
234
246
|
/**
|
|
235
247
|
* It generates scoped CSS variables using design tokens for the component.
|
|
236
248
|
*/
|
package/toast/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import InfoCircleIcon from '@primevue/icons/infocircle';
|
|
|
11
11
|
import TimesIcon from '@primevue/icons/times';
|
|
12
12
|
import TimesCircleIcon from '@primevue/icons/timescircle';
|
|
13
13
|
import Ripple from 'primevue/ripple';
|
|
14
|
-
import { resolveDirective,
|
|
14
|
+
import { resolveDirective, createElementBlock, openBlock, mergeProps, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, createElementVNode, toDisplayString, normalizeProps, withDirectives, resolveComponent, withCtx, createVNode, TransitionGroup, renderList } from 'vue';
|
|
15
15
|
|
|
16
16
|
var script$2 = {
|
|
17
17
|
name: 'BaseToast',
|
|
@@ -60,6 +60,18 @@ var script$2 = {
|
|
|
60
60
|
closeButtonProps: {
|
|
61
61
|
type: null,
|
|
62
62
|
"default": null
|
|
63
|
+
},
|
|
64
|
+
onMouseEnter: {
|
|
65
|
+
type: Function,
|
|
66
|
+
"default": undefined
|
|
67
|
+
},
|
|
68
|
+
onMouseLeave: {
|
|
69
|
+
type: Function,
|
|
70
|
+
"default": undefined
|
|
71
|
+
},
|
|
72
|
+
onClick: {
|
|
73
|
+
type: Function,
|
|
74
|
+
"default": undefined
|
|
63
75
|
}
|
|
64
76
|
},
|
|
65
77
|
style: ToastStyle,
|
|
@@ -77,6 +89,8 @@ var script$1 = {
|
|
|
77
89
|
"extends": BaseComponent,
|
|
78
90
|
emits: ['close'],
|
|
79
91
|
closeTimeout: null,
|
|
92
|
+
createdAt: null,
|
|
93
|
+
lifeRemaining: null,
|
|
80
94
|
props: {
|
|
81
95
|
message: {
|
|
82
96
|
type: null,
|
|
@@ -112,20 +126,25 @@ var script$1 = {
|
|
|
112
126
|
}
|
|
113
127
|
},
|
|
114
128
|
mounted: function mounted() {
|
|
115
|
-
var _this = this;
|
|
116
129
|
if (this.message.life) {
|
|
117
|
-
this.
|
|
118
|
-
|
|
119
|
-
message: _this.message,
|
|
120
|
-
type: 'life-end'
|
|
121
|
-
});
|
|
122
|
-
}, this.message.life);
|
|
130
|
+
this.lifeRemaining = this.message.life;
|
|
131
|
+
this.startTimeout();
|
|
123
132
|
}
|
|
124
133
|
},
|
|
125
134
|
beforeUnmount: function beforeUnmount() {
|
|
126
135
|
this.clearCloseTimeout();
|
|
127
136
|
},
|
|
128
137
|
methods: {
|
|
138
|
+
startTimeout: function startTimeout() {
|
|
139
|
+
var _this = this;
|
|
140
|
+
this.createdAt = new Date().valueOf();
|
|
141
|
+
this.closeTimeout = setTimeout(function () {
|
|
142
|
+
_this.close({
|
|
143
|
+
message: _this.message,
|
|
144
|
+
type: 'life-end'
|
|
145
|
+
});
|
|
146
|
+
}, this.lifeRemaining);
|
|
147
|
+
},
|
|
129
148
|
close: function close(params) {
|
|
130
149
|
this.$emit('close', params);
|
|
131
150
|
},
|
|
@@ -141,6 +160,41 @@ var script$1 = {
|
|
|
141
160
|
clearTimeout(this.closeTimeout);
|
|
142
161
|
this.closeTimeout = null;
|
|
143
162
|
}
|
|
163
|
+
},
|
|
164
|
+
onMessageClick: function onMessageClick(event) {
|
|
165
|
+
var _this$props;
|
|
166
|
+
((_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.onClick) && this.props.onClick({
|
|
167
|
+
originalEvent: event,
|
|
168
|
+
message: this.message
|
|
169
|
+
});
|
|
170
|
+
},
|
|
171
|
+
onMouseEnter: function onMouseEnter(event) {
|
|
172
|
+
var _this$props2;
|
|
173
|
+
((_this$props2 = this.props) === null || _this$props2 === void 0 ? void 0 : _this$props2.onMouseEnter) && this.props.onMouseEnter({
|
|
174
|
+
originalEvent: event,
|
|
175
|
+
message: this.message
|
|
176
|
+
});
|
|
177
|
+
if (event.defaultPrevented) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
if (this.message.life) {
|
|
181
|
+
this.lifeRemaining = this.createdAt + this.lifeRemaining - Date().valueOf();
|
|
182
|
+
this.createdAt = null;
|
|
183
|
+
this.clearCloseTimeout();
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
onMouseLeave: function onMouseLeave(event) {
|
|
187
|
+
var _this$props3;
|
|
188
|
+
((_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : _this$props3.onMouseLeave) && this.props.onMouseLeave({
|
|
189
|
+
originalEvent: event,
|
|
190
|
+
message: this.message
|
|
191
|
+
});
|
|
192
|
+
if (event.defaultPrevented) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
if (this.message.life) {
|
|
196
|
+
this.startTimeout();
|
|
197
|
+
}
|
|
144
198
|
}
|
|
145
199
|
},
|
|
146
200
|
computed: {
|
|
@@ -170,10 +224,10 @@ var script$1 = {
|
|
|
170
224
|
|
|
171
225
|
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
|
|
172
226
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
173
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t),
|
|
174
|
-
function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable:
|
|
227
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
228
|
+
function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
175
229
|
function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
|
|
176
|
-
function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r
|
|
230
|
+
function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
177
231
|
var _hoisted_1 = ["aria-label"];
|
|
178
232
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
179
233
|
var _directive_ripple = resolveDirective("ripple");
|
|
@@ -182,7 +236,17 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
182
236
|
role: "alert",
|
|
183
237
|
"aria-live": "assertive",
|
|
184
238
|
"aria-atomic": "true"
|
|
185
|
-
}, _ctx.ptm('message')
|
|
239
|
+
}, _ctx.ptm('message'), {
|
|
240
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
241
|
+
return $options.onMessageClick && $options.onMessageClick.apply($options, arguments);
|
|
242
|
+
}),
|
|
243
|
+
onMouseenter: _cache[2] || (_cache[2] = function () {
|
|
244
|
+
return $options.onMouseEnter && $options.onMouseEnter.apply($options, arguments);
|
|
245
|
+
}),
|
|
246
|
+
onMouseleave: _cache[3] || (_cache[3] = function () {
|
|
247
|
+
return $options.onMouseLeave && $options.onMouseLeave.apply($options, arguments);
|
|
248
|
+
})
|
|
249
|
+
}), [$props.templates.container ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.container), {
|
|
186
250
|
key: 0,
|
|
187
251
|
message: $props.message,
|
|
188
252
|
closeCallback: $options.onCloseClick
|
|
@@ -339,10 +403,10 @@ var script = {
|
|
|
339
403
|
|
|
340
404
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
341
405
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
342
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
343
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable:
|
|
406
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
407
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
344
408
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
345
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r
|
|
409
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
346
410
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
347
411
|
var _component_ToastMessage = resolveComponent("ToastMessage");
|
|
348
412
|
var _component_Portal = resolveComponent("Portal");
|