primevue 3.22.4 → 3.24.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/README.md +13 -13
- package/accordion/Accordion.d.ts +53 -21
- package/accordiontab/AccordionTab.d.ts +33 -12
- package/autocomplete/AutoComplete.d.ts +111 -84
- package/avatar/Avatar.d.ts +38 -25
- package/avatar/Avatar.vue +1 -1
- package/avatar/avatar.cjs.js +2 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +2 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +2 -1
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +30 -14
- package/badge/Badge.d.ts +34 -20
- package/badge/Badge.vue +16 -5
- package/badge/badge.cjs.js +15 -5
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +15 -5
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +16 -7
- package/badge/badge.min.js +1 -1
- package/badgedirective/BadgeDirective.d.ts +60 -1
- package/blockui/BlockUI.d.ts +36 -16
- package/breadcrumb/Breadcrumb.d.ts +37 -20
- package/breadcrumb/Breadcrumb.vue +1 -1
- package/breadcrumb/breadcrumb.cjs.js +2 -1
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +2 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +2 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/Button.d.ts +74 -17
- package/button/Button.vue +51 -8
- package/button/button.cjs.js +51 -8
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +51 -8
- package/button/button.esm.min.js +1 -1
- package/button/button.js +51 -8
- package/button/button.min.js +1 -1
- package/calendar/Calendar.d.ts +112 -77
- package/calendar/Calendar.vue +4 -4
- package/calendar/calendar.cjs.js +4 -4
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +4 -4
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +4 -4
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +35 -15
- package/carousel/Carousel.d.ts +47 -29
- package/cascadeselect/CascadeSelect.d.ts +70 -59
- package/chart/Chart.d.ts +41 -23
- package/checkbox/Checkbox.d.ts +39 -15
- package/checkbox/Checkbox.vue +1 -1
- package/checkbox/checkbox.cjs.js +1 -1
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +1 -1
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +1 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chip/Chip.d.ts +35 -14
- package/chips/Chips.d.ts +45 -20
- package/colorpicker/ColorPicker.d.ts +46 -28
- package/column/Column.d.ts +81 -65
- package/columngroup/ColumnGroup.d.ts +29 -13
- package/config/PrimeVue.d.ts +1 -2
- package/config/config.cjs.js +20 -2
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +20 -2
- package/config/config.esm.min.js +1 -1
- package/config/config.js +20 -2
- package/config/config.min.js +1 -1
- package/confirmationoptions/ConfirmationOptions.d.ts +15 -6
- package/confirmationservice/ConfirmationService.d.ts +11 -0
- package/confirmdialog/ConfirmDialog.d.ts +35 -17
- package/confirmpopup/ConfirmPopup.d.ts +32 -17
- package/contextmenu/ContextMenu.d.ts +51 -35
- package/core/core.js +368 -121
- package/core/core.min.js +8 -8
- package/datatable/DataTable.d.ts +248 -205
- package/datatable/DataTable.vue +78 -117
- package/datatable/TableBody.vue +3 -17
- package/datatable/datatable.cjs.js +73 -67
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +73 -67
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +73 -67
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +65 -47
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +33 -13
- package/deferredcontent/DeferredContent.d.ts +30 -13
- package/dialog/Dialog.d.ts +67 -46
- package/dialog/Dialog.vue +1 -1
- package/dialog/dialog.cjs.js +1 -1
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +1 -1
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +1 -1
- package/dialog/dialog.min.js +1 -1
- package/dialogservice/DialogService.d.ts +13 -2
- package/divider/Divider.d.ts +35 -30
- package/dock/Dock.d.ts +49 -36
- package/dropdown/Dropdown.d.ts +90 -82
- package/dropdown/Dropdown.vue +1 -1
- package/dropdown/dropdown.cjs.js +1 -1
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1 -1
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1 -1
- package/dropdown/dropdown.min.js +1 -1
- package/dynamicdialog/DynamicDialog.d.ts +30 -10
- package/dynamicdialog/DynamicDialog.vue +2 -2
- package/dynamicdialog/dynamicdialog.cjs.js +3 -3
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +2 -2
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +3 -3
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/dynamicdialogoptions/DynamicDialogOptions.d.ts +28 -8
- package/editor/Editor.d.ts +48 -17
- package/fieldset/Fieldset.d.ts +43 -16
- package/fileupload/FileUpload.d.ts +101 -47
- package/focustrap/FocusTrap.d.ts +42 -3
- package/fullcalendar/FullCalendar.d.ts +1 -1
- package/galleria/Galleria.d.ts +64 -40
- package/image/Image.d.ts +33 -14
- package/inlinemessage/InlineMessage.d.ts +31 -17
- package/inplace/Inplace.d.ts +41 -18
- package/inputmask/InputMask.d.ts +41 -17
- package/inputnumber/InputNumber.d.ts +60 -41
- package/inputswitch/InputSwitch.d.ts +35 -15
- package/inputswitch/InputSwitch.vue +1 -0
- package/inputswitch/inputswitch.cjs.js +1 -1
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +1 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +1 -1
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/InputText.d.ts +32 -12
- package/knob/Knob.d.ts +47 -21
- package/listbox/Listbox.d.ts +81 -60
- package/megamenu/MegaMenu.d.ts +42 -27
- package/megamenu/MegaMenu.vue +17 -0
- package/megamenu/megamenu.cjs.js +1 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +1 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +1 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +57 -28
- package/menu/Menu.vue +6 -0
- package/menu/menu.cjs.js +26 -8
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +27 -9
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +26 -8
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +36 -19
- package/menuitem/MenuItem.d.ts +22 -10
- package/message/Message.d.ts +40 -21
- package/multiselect/MultiSelect.d.ts +111 -90
- package/orderlist/OrderList.d.ts +51 -23
- package/organizationchart/OrganizationChart.d.ts +43 -26
- package/overlaypanel/OverlayPanel.d.ts +46 -26
- package/package.json +2 -2
- package/paginator/Paginator.d.ts +49 -24
- package/panel/Panel.d.ts +39 -14
- package/panelmenu/PanelMenu.d.ts +49 -21
- package/password/Password.d.ts +47 -28
- package/picklist/PickList.d.ts +74 -33
- package/progressbar/ProgressBar.d.ts +34 -17
- package/progressspinner/ProgressSpinner.d.ts +32 -13
- package/radiobutton/RadioButton.d.ts +32 -14
- package/rating/Rating.d.ts +51 -25
- package/resources/themes/arya-blue/theme.css +34 -11
- package/resources/themes/arya-green/theme.css +34 -11
- package/resources/themes/arya-orange/theme.css +34 -11
- package/resources/themes/arya-purple/theme.css +34 -11
- package/resources/themes/bootstrap4-dark-blue/theme.css +34 -11
- package/resources/themes/bootstrap4-dark-purple/theme.css +34 -11
- package/resources/themes/bootstrap4-light-blue/theme.css +34 -11
- package/resources/themes/bootstrap4-light-purple/theme.css +34 -11
- package/resources/themes/fluent-light/theme.css +34 -11
- package/resources/themes/lara-dark-blue/theme.css +34 -11
- package/resources/themes/lara-dark-indigo/theme.css +34 -11
- package/resources/themes/lara-dark-purple/theme.css +34 -11
- package/resources/themes/lara-dark-teal/theme.css +34 -11
- package/resources/themes/lara-light-blue/theme.css +34 -11
- package/resources/themes/lara-light-indigo/theme.css +34 -11
- package/resources/themes/lara-light-purple/theme.css +34 -11
- package/resources/themes/lara-light-teal/theme.css +34 -11
- package/resources/themes/luna-amber/theme.css +34 -11
- package/resources/themes/luna-blue/theme.css +34 -11
- package/resources/themes/luna-green/theme.css +34 -11
- package/resources/themes/luna-pink/theme.css +34 -11
- package/resources/themes/md-dark-deeppurple/theme.css +34 -11
- package/resources/themes/md-dark-indigo/theme.css +34 -11
- package/resources/themes/md-light-deeppurple/theme.css +34 -11
- package/resources/themes/md-light-indigo/theme.css +34 -11
- package/resources/themes/mdc-dark-deeppurple/theme.css +34 -11
- package/resources/themes/mdc-dark-indigo/theme.css +34 -11
- package/resources/themes/mdc-light-deeppurple/theme.css +34 -11
- package/resources/themes/mdc-light-indigo/theme.css +34 -11
- package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/mira/theme.css +6089 -0
- package/resources/themes/nano/theme.css +5861 -0
- package/resources/themes/nova/theme.css +34 -11
- package/resources/themes/nova-accent/theme.css +34 -11
- package/resources/themes/nova-alt/theme.css +34 -11
- package/resources/themes/nova-vue/theme.css +34 -11
- package/resources/themes/rhea/theme.css +34 -11
- package/resources/themes/saga-blue/theme.css +34 -11
- package/resources/themes/saga-green/theme.css +34 -11
- package/resources/themes/saga-orange/theme.css +34 -11
- package/resources/themes/saga-purple/theme.css +34 -11
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-dark/theme.css +5854 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-light/theme.css +5908 -0
- package/resources/themes/tailwind-light/theme.css +34 -11
- package/resources/themes/vela-blue/theme.css +34 -11
- package/resources/themes/vela-green/theme.css +34 -11
- package/resources/themes/vela-orange/theme.css +34 -11
- package/resources/themes/vela-purple/theme.css +34 -11
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-dark/theme.css +6016 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-light/theme.css +6016 -0
- package/ripple/Ripple.d.ts +24 -1
- package/row/Row.d.ts +28 -10
- package/scrollpanel/ScrollPanel.d.ts +29 -11
- package/scrolltop/ScrollTop.d.ts +35 -18
- package/selectbutton/SelectButton.d.ts +47 -27
- package/sidebar/Sidebar.d.ts +46 -27
- package/skeleton/Skeleton.d.ts +36 -22
- package/slider/Slider.d.ts +46 -23
- package/speeddial/SpeedDial.d.ts +64 -51
- package/splitbutton/SplitButton.d.ts +73 -24
- package/splitbutton/SplitButton.vue +41 -1
- package/splitbutton/splitbutton.cjs.js +43 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +43 -3
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +43 -3
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +49 -30
- package/splitterpanel/SplitterPanel.d.ts +28 -10
- package/steps/Steps.d.ts +36 -15
- package/styleclass/StyleClass.d.ts +72 -1
- package/tabmenu/TabMenu.d.ts +41 -16
- package/tabmenu/TabMenu.vue +1 -1
- package/tabmenu/tabmenu.cjs.js +1 -0
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +1 -0
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +1 -0
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +29 -11
- package/tabview/TabView.d.ts +47 -19
- package/tag/Tag.d.ts +33 -15
- package/tag/Tag.vue +1 -1
- package/tag/tag.cjs.js +4 -2
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +5 -3
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +4 -2
- package/tag/tag.min.js +1 -1
- package/terminal/Terminal.d.ts +30 -14
- package/terminalservice/TerminalService.d.ts +24 -5
- package/textarea/Textarea.d.ts +33 -11
- package/tieredmenu/TieredMenu.d.ts +45 -31
- package/timeline/Timeline.d.ts +41 -32
- package/toast/Toast.d.ts +63 -35
- package/toast/Toast.vue +4 -2
- package/toast/ToastMessage.vue +4 -4
- package/toast/toast.cjs.js +8 -6
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +8 -6
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +8 -6
- package/toast/toast.min.js +1 -1
- package/toastservice/ToastService.d.ts +16 -3
- package/togglebutton/ToggleButton.d.ts +42 -22
- package/toolbar/Toolbar.d.ts +34 -14
- package/tooltip/Tooltip.d.ts +99 -1
- package/tree/Tree.d.ts +55 -36
- package/treeselect/TreeSelect.d.ts +63 -55
- package/treetable/TreeTable.d.ts +121 -107
- package/tristatecheckbox/TriStateCheckbox.d.ts +35 -12
- package/ts-helpers.d.ts +2 -2
- package/utils/utils.cjs.js +20 -22
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +20 -22
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +20 -22
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +62 -2
- package/vetur-tags.json +17 -2
- package/virtualscroller/VirtualScroller.d.ts +99 -43
- package/virtualscroller/VirtualScroller.vue +248 -72
- package/virtualscroller/virtualscroller.cjs.js +234 -72
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +234 -72
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +235 -74
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1930 -1742
package/textarea/Textarea.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Textarea is a multi-line text input element.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/textarea/)
|
|
6
|
+
*
|
|
7
|
+
* @module textarea
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { TextareaHTMLAttributes } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Defines valid properties in Textarea component. In addition to these, all properties of TextareaHTMLAttributes can be used in this component.
|
|
15
|
+
* @extends TextareaHTMLAttributes
|
|
16
|
+
*/
|
|
4
17
|
export interface TextareaProps extends TextareaHTMLAttributes {
|
|
5
18
|
/**
|
|
6
19
|
* Value of the component.
|
|
@@ -12,16 +25,34 @@ export interface TextareaProps extends TextareaHTMLAttributes {
|
|
|
12
25
|
autoResize?: boolean | undefined;
|
|
13
26
|
}
|
|
14
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Defines valid slots in Textarea component.
|
|
30
|
+
*/
|
|
15
31
|
export interface TextareaSlots {}
|
|
16
32
|
|
|
17
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Defines valid emits in Textarea component.
|
|
35
|
+
*/
|
|
36
|
+
export interface TextareaEmits {
|
|
18
37
|
/**
|
|
19
38
|
* Emitted when the value changes.
|
|
20
39
|
* @param {string} value - New value.
|
|
21
40
|
*/
|
|
22
41
|
'update:modelValue': (value: string) => void;
|
|
23
|
-
}
|
|
42
|
+
}
|
|
24
43
|
|
|
44
|
+
/**
|
|
45
|
+
* **PrimeVue - Textarea**
|
|
46
|
+
*
|
|
47
|
+
* _Textarea is a multi-line text input element._
|
|
48
|
+
*
|
|
49
|
+
* [Live Demo](https://www.primevue.org/textarea/)
|
|
50
|
+
* --- ---
|
|
51
|
+
* 
|
|
52
|
+
*
|
|
53
|
+
* @group Component
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
25
56
|
declare class Textarea extends ClassComponent<TextareaProps, TextareaSlots, TextareaEmits> {}
|
|
26
57
|
|
|
27
58
|
declare module '@vue/runtime-core' {
|
|
@@ -30,13 +61,4 @@ declare module '@vue/runtime-core' {
|
|
|
30
61
|
}
|
|
31
62
|
}
|
|
32
63
|
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* Textarea is a multi-line text input element.
|
|
36
|
-
*
|
|
37
|
-
* Demos:
|
|
38
|
-
*
|
|
39
|
-
* - [Textarea](https://www.primefaces.org/primevue/textarea)
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
64
|
export default Textarea;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* TieredMenu displays submenus in nested overlays.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/menu/)
|
|
6
|
+
*
|
|
7
|
+
* @module tieredmenu
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { VNode } from 'vue';
|
|
2
11
|
import { MenuItem } from '../menuitem';
|
|
3
12
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
4
13
|
|
|
5
|
-
|
|
6
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Defines valid properties in TieredMenuMenu component.
|
|
16
|
+
*/
|
|
7
17
|
export interface TieredMenuProps {
|
|
8
18
|
/**
|
|
9
19
|
* An array of menuitems.
|
|
@@ -15,23 +25,22 @@ export interface TieredMenuProps {
|
|
|
15
25
|
popup?: boolean | undefined;
|
|
16
26
|
/**
|
|
17
27
|
* A valid query selector or an HTMLElement to specify where the overlay gets attached.
|
|
18
|
-
* @
|
|
19
|
-
* Default value is 'body'.
|
|
28
|
+
* @defaultValue body
|
|
20
29
|
*/
|
|
21
|
-
appendTo?:
|
|
30
|
+
appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
|
|
22
31
|
/**
|
|
23
32
|
* Whether to automatically manage layering.
|
|
24
|
-
*
|
|
33
|
+
* @defaultValue true
|
|
25
34
|
*/
|
|
26
35
|
autoZIndex?: boolean | undefined;
|
|
27
36
|
/**
|
|
28
37
|
* Base zIndex value to use in layering.
|
|
29
|
-
*
|
|
38
|
+
* @defaultValue 0
|
|
30
39
|
*/
|
|
31
40
|
baseZIndex?: number | undefined;
|
|
32
41
|
/**
|
|
33
42
|
* Whether to apply 'router-link-active-exact' class if route exactly matches the item path.
|
|
34
|
-
*
|
|
43
|
+
* @defaultValue true
|
|
35
44
|
*/
|
|
36
45
|
exact?: boolean | undefined;
|
|
37
46
|
/**
|
|
@@ -52,48 +61,66 @@ export interface TieredMenuProps {
|
|
|
52
61
|
'aria-labelledby'?: string | undefined;
|
|
53
62
|
}
|
|
54
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Defines valid slots in TieredMenuMenu component.
|
|
66
|
+
*/
|
|
55
67
|
export interface TieredMenuSlots {
|
|
56
68
|
/**
|
|
57
69
|
* Custom content for each item.
|
|
58
70
|
* @param {Object} scope - item slot's params.
|
|
59
71
|
*/
|
|
60
|
-
item
|
|
72
|
+
item(scope: {
|
|
61
73
|
/**
|
|
62
74
|
* Menuitem instance
|
|
63
75
|
*/
|
|
64
76
|
item: MenuItem;
|
|
65
|
-
})
|
|
77
|
+
}): VNode[];
|
|
66
78
|
}
|
|
67
79
|
|
|
68
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Defines valid emits in TieredMenuMenu component.
|
|
82
|
+
*/
|
|
83
|
+
export interface TieredMenuEmits {
|
|
69
84
|
/**
|
|
70
85
|
* Callback to invoke when the component receives focus.
|
|
71
86
|
* @param {Event} event - Browser event.
|
|
72
87
|
*/
|
|
73
|
-
focus
|
|
88
|
+
focus(event: Event): void;
|
|
74
89
|
/**
|
|
75
90
|
* Callback to invoke when the component loses focus.
|
|
76
91
|
* @param {Event} event - Browser event.
|
|
77
92
|
*/
|
|
78
|
-
blur
|
|
93
|
+
blur(event: Event): void;
|
|
79
94
|
/**
|
|
80
95
|
* Callback to invoke before the popup is shown.
|
|
81
96
|
*/
|
|
82
|
-
'before-show'
|
|
97
|
+
'before-show'(): void;
|
|
83
98
|
/**
|
|
84
99
|
* Callback to invoke before the popup is hidden.
|
|
85
100
|
*/
|
|
86
|
-
'before-hide'
|
|
101
|
+
'before-hide'(): void;
|
|
87
102
|
/**
|
|
88
103
|
* Callback to invoke when the popup is shown.
|
|
89
104
|
*/
|
|
90
|
-
show
|
|
105
|
+
show(): void;
|
|
91
106
|
/**
|
|
92
107
|
* Callback to invoke when the popup is hidden.
|
|
93
108
|
*/
|
|
94
|
-
hide
|
|
95
|
-
}
|
|
109
|
+
hide(): void;
|
|
110
|
+
}
|
|
96
111
|
|
|
112
|
+
/**
|
|
113
|
+
* **PrimeVue - TieredMenu**
|
|
114
|
+
*
|
|
115
|
+
* _TieredMenu displays submenus in nested overlays._
|
|
116
|
+
*
|
|
117
|
+
* [Live Demo](https://www.primevue.org/tieredmenu/)
|
|
118
|
+
* --- ---
|
|
119
|
+
* 
|
|
120
|
+
*
|
|
121
|
+
* @group Component
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
97
124
|
declare class TieredMenu extends ClassComponent<TieredMenuProps, TieredMenuSlots, TieredMenuEmits> {
|
|
98
125
|
/**
|
|
99
126
|
* Toggles the visibility of the overlay.
|
|
@@ -123,17 +150,4 @@ declare module '@vue/runtime-core' {
|
|
|
123
150
|
}
|
|
124
151
|
}
|
|
125
152
|
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* TieredMenu displays submenus in nested overlays.
|
|
129
|
-
*
|
|
130
|
-
* Helper API:
|
|
131
|
-
*
|
|
132
|
-
* - [MenuItem](https://www.primefaces.org/primevue/menumodel)
|
|
133
|
-
*
|
|
134
|
-
* Demos:
|
|
135
|
-
*
|
|
136
|
-
* - [TieredMenu](https://www.primefaces.org/primevue/tieredmenu)
|
|
137
|
-
*
|
|
138
|
-
*/
|
|
139
153
|
export default TieredMenu;
|
package/timeline/Timeline.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Timeline visualizes a series of chained events.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://primevue.org/timeline)
|
|
6
|
+
*
|
|
7
|
+
* @module timeline
|
|
8
|
+
*/
|
|
1
9
|
import { VNode } from 'vue';
|
|
2
10
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
11
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type TimelineAlignType = TimelineVerticalAlignType | TimelineHorizontalAlignType | undefined;
|
|
9
|
-
|
|
10
|
-
type TimelineLayoutType = 'vertical' | 'horizontal' | undefined;
|
|
11
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Defines valid properties in Timeline component.
|
|
14
|
+
*/
|
|
12
15
|
export interface TimelineProps {
|
|
13
16
|
/**
|
|
14
17
|
* An array of events to display.
|
|
@@ -16,28 +19,29 @@ export interface TimelineProps {
|
|
|
16
19
|
value?: any[] | undefined;
|
|
17
20
|
/**
|
|
18
21
|
* Position of the timeline bar relative to the content.
|
|
19
|
-
* @
|
|
20
|
-
* Default value is 'left'.
|
|
22
|
+
* @defaultValue left
|
|
21
23
|
*/
|
|
22
|
-
align?:
|
|
24
|
+
align?: 'left' | 'right' | 'alternate' | 'top' | 'bottom' | undefined;
|
|
23
25
|
/**
|
|
24
26
|
* Orientation of the timeline.
|
|
25
|
-
* @
|
|
26
|
-
* Default value is 'horizontal'.
|
|
27
|
+
* @defaultValue horizontal
|
|
27
28
|
*/
|
|
28
|
-
layout?:
|
|
29
|
+
layout?: 'vertical' | 'horizontal' | undefined;
|
|
29
30
|
/**
|
|
30
31
|
* Name of the field that uniquely identifies the a record in the data.
|
|
31
32
|
*/
|
|
32
33
|
dataKey?: string | undefined;
|
|
33
34
|
}
|
|
34
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Defines valid slots in Timeline component.
|
|
38
|
+
*/
|
|
35
39
|
export interface TimelineSlots {
|
|
36
40
|
/**
|
|
37
41
|
* Custom content template
|
|
38
42
|
* @param {Object} scope - content slot's params.
|
|
39
43
|
*/
|
|
40
|
-
content
|
|
44
|
+
content(scope: {
|
|
41
45
|
/**
|
|
42
46
|
* Item data
|
|
43
47
|
*/
|
|
@@ -46,12 +50,12 @@ export interface TimelineSlots {
|
|
|
46
50
|
* Index of item
|
|
47
51
|
*/
|
|
48
52
|
index: number;
|
|
49
|
-
})
|
|
53
|
+
}): VNode[];
|
|
50
54
|
/**
|
|
51
55
|
* Custom opposite template.
|
|
52
56
|
* @param {Object} scope - opposite slot's params.
|
|
53
57
|
*/
|
|
54
|
-
opposite
|
|
58
|
+
opposite(scope: {
|
|
55
59
|
/**
|
|
56
60
|
* Item data
|
|
57
61
|
*/
|
|
@@ -60,12 +64,12 @@ export interface TimelineSlots {
|
|
|
60
64
|
* Index of item
|
|
61
65
|
*/
|
|
62
66
|
index: number;
|
|
63
|
-
})
|
|
67
|
+
}): VNode[];
|
|
64
68
|
/**
|
|
65
69
|
* Custom marker template.
|
|
66
70
|
* @param {Object} scope - marker slot's params.
|
|
67
71
|
*/
|
|
68
|
-
marker
|
|
72
|
+
marker(scope: {
|
|
69
73
|
/**
|
|
70
74
|
* Item data
|
|
71
75
|
*/
|
|
@@ -74,11 +78,11 @@ export interface TimelineSlots {
|
|
|
74
78
|
* Index of item
|
|
75
79
|
*/
|
|
76
80
|
index: number;
|
|
77
|
-
})
|
|
81
|
+
}): VNode[];
|
|
78
82
|
/**
|
|
79
83
|
* Custom connector template.
|
|
80
84
|
*/
|
|
81
|
-
connector
|
|
85
|
+
connector(scope: {
|
|
82
86
|
/**
|
|
83
87
|
* Item data
|
|
84
88
|
*/
|
|
@@ -87,11 +91,25 @@ export interface TimelineSlots {
|
|
|
87
91
|
* Index of item
|
|
88
92
|
*/
|
|
89
93
|
index: number;
|
|
90
|
-
})
|
|
94
|
+
}): VNode[];
|
|
91
95
|
}
|
|
92
96
|
|
|
93
|
-
|
|
97
|
+
/**
|
|
98
|
+
* Defines valid emits in Timeline component.
|
|
99
|
+
*/
|
|
100
|
+
export interface TimelineEmits {}
|
|
94
101
|
|
|
102
|
+
/**
|
|
103
|
+
* **PrimeVue - Timeline**
|
|
104
|
+
*
|
|
105
|
+
* _Timeline visualizes a series of chained events._
|
|
106
|
+
*
|
|
107
|
+
* [Live Demo](https://www.primevue.org/timeline/)
|
|
108
|
+
* --- ---
|
|
109
|
+
* 
|
|
110
|
+
*
|
|
111
|
+
* @group Component
|
|
112
|
+
*/
|
|
95
113
|
declare class Timeline extends ClassComponent<TimelineProps, TimelineSlots, TimelineEmits> {}
|
|
96
114
|
|
|
97
115
|
declare module '@vue/runtime-core' {
|
|
@@ -100,13 +118,4 @@ declare module '@vue/runtime-core' {
|
|
|
100
118
|
}
|
|
101
119
|
}
|
|
102
120
|
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* Timeline visualizes a series of chained events.
|
|
106
|
-
*
|
|
107
|
-
* Demos:
|
|
108
|
-
*
|
|
109
|
-
* - [Timeline](https://www.primefaces.org/primevue/timeline)
|
|
110
|
-
*
|
|
111
|
-
*/
|
|
112
121
|
export default Timeline;
|
package/toast/Toast.d.ts
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Toast is used to display messages in an overlay.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/toast/)
|
|
6
|
+
*
|
|
7
|
+
* @module toast
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Defines message options in Toast component.
|
|
15
|
+
*/
|
|
8
16
|
export interface ToastMessageOptions {
|
|
9
17
|
/**
|
|
10
18
|
* Severity level of the message.
|
|
11
|
-
* @
|
|
12
|
-
* Default value is 'info'.
|
|
19
|
+
* @defaultValue info
|
|
13
20
|
*/
|
|
14
|
-
severity?:
|
|
21
|
+
severity?: 'success' | 'info' | 'warn' | 'error' | undefined;
|
|
15
22
|
/**
|
|
16
23
|
* Summary content of the message.
|
|
17
24
|
*/
|
|
@@ -22,12 +29,12 @@ export interface ToastMessageOptions {
|
|
|
22
29
|
detail?: any | undefined;
|
|
23
30
|
/**
|
|
24
31
|
* Whether the message can be closed manually using the close icon.
|
|
25
|
-
*
|
|
32
|
+
* @defaultValue true
|
|
26
33
|
*/
|
|
27
34
|
closable?: boolean | undefined;
|
|
28
35
|
/**
|
|
29
36
|
* Delay in milliseconds to close the message automatically.
|
|
30
|
-
*
|
|
37
|
+
* @defaultValue 3000
|
|
31
38
|
*/
|
|
32
39
|
life?: number | undefined;
|
|
33
40
|
/**
|
|
@@ -44,6 +51,9 @@ export interface ToastMessageOptions {
|
|
|
44
51
|
contentStyleClass?: any;
|
|
45
52
|
}
|
|
46
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Defines breakpoints type in Toast component.
|
|
56
|
+
*/
|
|
47
57
|
export interface ToastBreakpointsType {
|
|
48
58
|
/**
|
|
49
59
|
* Breakpoint for responsive mode.
|
|
@@ -56,6 +66,9 @@ export interface ToastBreakpointsType {
|
|
|
56
66
|
[key: string]: any;
|
|
57
67
|
}
|
|
58
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Defines valid properties in Toast component.
|
|
71
|
+
*/
|
|
59
72
|
export interface ToastProps {
|
|
60
73
|
/**
|
|
61
74
|
* Unique identifier of a message group.
|
|
@@ -63,18 +76,17 @@ export interface ToastProps {
|
|
|
63
76
|
group?: string | undefined;
|
|
64
77
|
/**
|
|
65
78
|
* Position of the toast in viewport.
|
|
66
|
-
* @
|
|
67
|
-
* Default value is 'top-right'.
|
|
79
|
+
* @defaultValue top-right
|
|
68
80
|
*/
|
|
69
|
-
position?:
|
|
81
|
+
position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center' | undefined;
|
|
70
82
|
/**
|
|
71
83
|
* Whether to automatically manage layering.
|
|
72
|
-
*
|
|
84
|
+
* @defaultValue true
|
|
73
85
|
*/
|
|
74
86
|
autoZIndex?: boolean | undefined;
|
|
75
87
|
/**
|
|
76
88
|
* Base zIndex value to use in layering.
|
|
77
|
-
*
|
|
89
|
+
* @defaultValue 0
|
|
78
90
|
*/
|
|
79
91
|
baseZIndex?: number | undefined;
|
|
80
92
|
/**
|
|
@@ -84,27 +96,27 @@ export interface ToastProps {
|
|
|
84
96
|
breakpoints?: ToastBreakpointsType;
|
|
85
97
|
/**
|
|
86
98
|
* Icon to display in the toast close button.
|
|
87
|
-
*
|
|
99
|
+
* @defaultValue pi pi-times
|
|
88
100
|
*/
|
|
89
101
|
closeIcon?: string | undefined;
|
|
90
102
|
/**
|
|
91
103
|
* Icon to display in the toast with info severity.
|
|
92
|
-
*
|
|
104
|
+
* @defaultValue pi pi-info-circle
|
|
93
105
|
*/
|
|
94
106
|
infoIcon?: string | undefined;
|
|
95
107
|
/**
|
|
96
108
|
* Icon to display in the toast with warn severity.
|
|
97
|
-
*
|
|
109
|
+
* @defaultValue pi pi-exclamation-triangle
|
|
98
110
|
*/
|
|
99
111
|
warnIcon?: string | undefined;
|
|
100
112
|
/**
|
|
101
113
|
* Icon to display in the toast with error severity.
|
|
102
|
-
*
|
|
114
|
+
* @defaultValue pi pi-times
|
|
103
115
|
*/
|
|
104
116
|
errorIcon?: string | undefined;
|
|
105
117
|
/**
|
|
106
118
|
* Icon to display in the toast with success severity.
|
|
107
|
-
*
|
|
119
|
+
* @defaultValue pi pi-check
|
|
108
120
|
*/
|
|
109
121
|
successIcon?: string | undefined;
|
|
110
122
|
/**
|
|
@@ -113,21 +125,50 @@ export interface ToastProps {
|
|
|
113
125
|
closeButtonProps?: ButtonHTMLAttributes | undefined;
|
|
114
126
|
}
|
|
115
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Defines valid slot in Toast component.
|
|
130
|
+
*/
|
|
116
131
|
export interface ToastSlots {
|
|
117
132
|
/**
|
|
118
133
|
* Custom message template.
|
|
119
134
|
* @param {Object} scope - message slot's params.
|
|
120
135
|
*/
|
|
121
|
-
message
|
|
136
|
+
message(scope: {
|
|
122
137
|
/**
|
|
123
138
|
* Message of the component
|
|
124
139
|
*/
|
|
125
140
|
message: any;
|
|
126
|
-
})
|
|
141
|
+
}): VNode[];
|
|
127
142
|
}
|
|
128
143
|
|
|
129
|
-
|
|
144
|
+
/**
|
|
145
|
+
* Defines valid emits in Toast component.
|
|
146
|
+
*/
|
|
147
|
+
export interface ToastEmits {
|
|
148
|
+
/**
|
|
149
|
+
* Callback to invoke when the toast is closed.
|
|
150
|
+
* @param {ToastMessageOptions} message - Toast message.
|
|
151
|
+
*/
|
|
152
|
+
close(message: ToastMessageOptions): void;
|
|
153
|
+
/**
|
|
154
|
+
* Callback to invoke when the toast's timeout is over.
|
|
155
|
+
* @param {ToastMessageOptions} message - Toast message.
|
|
156
|
+
*/
|
|
157
|
+
'life-end'(message: ToastMessageOptions): void;
|
|
158
|
+
}
|
|
130
159
|
|
|
160
|
+
/**
|
|
161
|
+
* **PrimeVue - Toast**
|
|
162
|
+
*
|
|
163
|
+
* _Toast is used to display messages in an overlay._
|
|
164
|
+
*
|
|
165
|
+
* [Live Demo](https://www.primevue.org/toast/)
|
|
166
|
+
* --- ---
|
|
167
|
+
* 
|
|
168
|
+
*
|
|
169
|
+
* @group Component
|
|
170
|
+
*
|
|
171
|
+
*/
|
|
131
172
|
declare class Toast extends ClassComponent<ToastProps, ToastSlots, ToastEmits> {}
|
|
132
173
|
|
|
133
174
|
declare module '@vue/runtime-core' {
|
|
@@ -136,17 +177,4 @@ declare module '@vue/runtime-core' {
|
|
|
136
177
|
}
|
|
137
178
|
}
|
|
138
179
|
|
|
139
|
-
/**
|
|
140
|
-
*
|
|
141
|
-
* Toast is used to display messages in an overlay.
|
|
142
|
-
*
|
|
143
|
-
* Helper API:
|
|
144
|
-
*
|
|
145
|
-
* - ToastService
|
|
146
|
-
*
|
|
147
|
-
* Demos:
|
|
148
|
-
*
|
|
149
|
-
* - [Toast](https://www.primefaces.org/primevue/toast)
|
|
150
|
-
*
|
|
151
|
-
*/
|
|
152
180
|
export default Toast;
|
package/toast/Toast.vue
CHANGED
|
@@ -31,6 +31,7 @@ var messageIdx = 0;
|
|
|
31
31
|
export default {
|
|
32
32
|
name: 'Toast',
|
|
33
33
|
inheritAttrs: false,
|
|
34
|
+
emits: ['close', 'life-end'],
|
|
34
35
|
props: {
|
|
35
36
|
group: {
|
|
36
37
|
type: String,
|
|
@@ -111,17 +112,18 @@ export default {
|
|
|
111
112
|
|
|
112
113
|
this.messages = [...this.messages, message];
|
|
113
114
|
},
|
|
114
|
-
remove(
|
|
115
|
+
remove(params) {
|
|
115
116
|
let index = -1;
|
|
116
117
|
|
|
117
118
|
for (let i = 0; i < this.messages.length; i++) {
|
|
118
|
-
if (this.messages[i] === message) {
|
|
119
|
+
if (this.messages[i] === params.message) {
|
|
119
120
|
index = i;
|
|
120
121
|
break;
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
this.messages.splice(index, 1);
|
|
126
|
+
this.$emit(params.type, { message: params.message });
|
|
125
127
|
},
|
|
126
128
|
onAdd(message) {
|
|
127
129
|
if (this.group == message.group) {
|
package/toast/ToastMessage.vue
CHANGED
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
mounted() {
|
|
63
63
|
if (this.message.life) {
|
|
64
64
|
this.closeTimeout = setTimeout(() => {
|
|
65
|
-
this.close();
|
|
65
|
+
this.close({ message: this.message, type: 'life-end' });
|
|
66
66
|
}, this.message.life);
|
|
67
67
|
}
|
|
68
68
|
},
|
|
@@ -70,12 +70,12 @@ export default {
|
|
|
70
70
|
this.clearCloseTimeout();
|
|
71
71
|
},
|
|
72
72
|
methods: {
|
|
73
|
-
close() {
|
|
74
|
-
this.$emit('close',
|
|
73
|
+
close(params) {
|
|
74
|
+
this.$emit('close', params);
|
|
75
75
|
},
|
|
76
76
|
onCloseClick() {
|
|
77
77
|
this.clearCloseTimeout();
|
|
78
|
-
this.close();
|
|
78
|
+
this.close({ message: this.message, type: 'close' });
|
|
79
79
|
},
|
|
80
80
|
clearCloseTimeout() {
|
|
81
81
|
if (this.closeTimeout) {
|
package/toast/toast.cjs.js
CHANGED
|
@@ -53,7 +53,7 @@ var script$1 = {
|
|
|
53
53
|
mounted() {
|
|
54
54
|
if (this.message.life) {
|
|
55
55
|
this.closeTimeout = setTimeout(() => {
|
|
56
|
-
this.close();
|
|
56
|
+
this.close({ message: this.message, type: 'life-end' });
|
|
57
57
|
}, this.message.life);
|
|
58
58
|
}
|
|
59
59
|
},
|
|
@@ -61,12 +61,12 @@ var script$1 = {
|
|
|
61
61
|
this.clearCloseTimeout();
|
|
62
62
|
},
|
|
63
63
|
methods: {
|
|
64
|
-
close() {
|
|
65
|
-
this.$emit('close',
|
|
64
|
+
close(params) {
|
|
65
|
+
this.$emit('close', params);
|
|
66
66
|
},
|
|
67
67
|
onCloseClick() {
|
|
68
68
|
this.clearCloseTimeout();
|
|
69
|
-
this.close();
|
|
69
|
+
this.close({ message: this.message, type: 'close' });
|
|
70
70
|
},
|
|
71
71
|
clearCloseTimeout() {
|
|
72
72
|
if (this.closeTimeout) {
|
|
@@ -168,6 +168,7 @@ var messageIdx = 0;
|
|
|
168
168
|
var script = {
|
|
169
169
|
name: 'Toast',
|
|
170
170
|
inheritAttrs: false,
|
|
171
|
+
emits: ['close', 'life-end'],
|
|
171
172
|
props: {
|
|
172
173
|
group: {
|
|
173
174
|
type: String,
|
|
@@ -248,17 +249,18 @@ var script = {
|
|
|
248
249
|
|
|
249
250
|
this.messages = [...this.messages, message];
|
|
250
251
|
},
|
|
251
|
-
remove(
|
|
252
|
+
remove(params) {
|
|
252
253
|
let index = -1;
|
|
253
254
|
|
|
254
255
|
for (let i = 0; i < this.messages.length; i++) {
|
|
255
|
-
if (this.messages[i] === message) {
|
|
256
|
+
if (this.messages[i] === params.message) {
|
|
256
257
|
index = i;
|
|
257
258
|
break;
|
|
258
259
|
}
|
|
259
260
|
}
|
|
260
261
|
|
|
261
262
|
this.messages.splice(index, 1);
|
|
263
|
+
this.$emit(params.type, { message: params.message });
|
|
262
264
|
},
|
|
263
265
|
onAdd(message) {
|
|
264
266
|
if (this.group == message.group) {
|