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/slider/Slider.d.ts
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Slider is a component to provide input with a drag handle.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/slider/)
|
|
6
|
+
*
|
|
7
|
+
* @module slider
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Custom slide end event.
|
|
14
|
+
* @see {@link SliderEmits.slideend}
|
|
15
|
+
*/
|
|
5
16
|
export interface SliderSlideEndEvent {
|
|
6
17
|
/**
|
|
7
18
|
* Original event
|
|
@@ -13,39 +24,42 @@ export interface SliderSlideEndEvent {
|
|
|
13
24
|
value: number;
|
|
14
25
|
}
|
|
15
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Defines valid properties in Slider component.
|
|
29
|
+
*/
|
|
16
30
|
export interface SliderProps {
|
|
17
31
|
/**
|
|
18
32
|
* Value of the component.
|
|
19
|
-
* Default value is 0.
|
|
20
33
|
*/
|
|
21
34
|
modelValue?: number | number[] | undefined;
|
|
22
35
|
/**
|
|
23
36
|
* Mininum boundary value.
|
|
24
|
-
*
|
|
37
|
+
* @defaultValue 0
|
|
25
38
|
*/
|
|
26
39
|
min?: number | undefined;
|
|
27
40
|
/**
|
|
28
41
|
* Maximum boundary value.
|
|
29
|
-
*
|
|
42
|
+
* @defaultValue 100
|
|
30
43
|
*/
|
|
31
44
|
max?: number | undefined;
|
|
32
45
|
/**
|
|
33
46
|
* Orientation of the slider.
|
|
34
|
-
* @
|
|
35
|
-
* Default value is 'horizontal'.
|
|
47
|
+
* @defaultValue horizontal
|
|
36
48
|
*/
|
|
37
|
-
orientation?:
|
|
49
|
+
orientation?: 'horizontal' | 'vertical' | undefined;
|
|
38
50
|
/**
|
|
39
51
|
* Step factor to increment/decrement the value.
|
|
40
|
-
*
|
|
52
|
+
* @defaultValue 1
|
|
41
53
|
*/
|
|
42
54
|
step?: number | undefined;
|
|
43
55
|
/**
|
|
44
56
|
* When speficed, allows two boundary values to be picked.
|
|
57
|
+
* @defaultValue false
|
|
45
58
|
*/
|
|
46
59
|
range?: boolean | undefined;
|
|
47
60
|
/**
|
|
48
61
|
* When present, it specifies that the component should be disabled.
|
|
62
|
+
* @defaultValue false
|
|
49
63
|
*/
|
|
50
64
|
disabled?: boolean | undefined;
|
|
51
65
|
/**
|
|
@@ -62,26 +76,44 @@ export interface SliderProps {
|
|
|
62
76
|
'aria-label'?: string | undefined;
|
|
63
77
|
}
|
|
64
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Defines valid slots in Slider component.
|
|
81
|
+
*/
|
|
65
82
|
export interface SliderSlots {}
|
|
66
83
|
|
|
67
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Defines valid emits in Slider component.
|
|
86
|
+
*/
|
|
87
|
+
export interface SliderEmits {
|
|
68
88
|
/**
|
|
69
89
|
* Emitted when the value changes.
|
|
70
90
|
* @param {number | number[]} value - New value.
|
|
71
91
|
*/
|
|
72
|
-
'update:modelValue'
|
|
92
|
+
'update:modelValue'(value: number | number[]): void;
|
|
73
93
|
/**
|
|
74
94
|
* Callback to invoke on value change.
|
|
75
95
|
* @param {number} value - New value
|
|
76
96
|
*/
|
|
77
|
-
change
|
|
97
|
+
change(value: number): void;
|
|
78
98
|
/**
|
|
79
99
|
* Callback to invoke when slide ends.
|
|
80
100
|
* @param {SliderSlideEndEvent} event - Custom slide end event.
|
|
81
101
|
*/
|
|
82
|
-
slideend
|
|
83
|
-
}
|
|
102
|
+
slideend(event: SliderSlideEndEvent): void;
|
|
103
|
+
}
|
|
84
104
|
|
|
105
|
+
/**
|
|
106
|
+
* **PrimeVue - Slider**
|
|
107
|
+
*
|
|
108
|
+
* _Slider is a component to provide input with a drag handle._
|
|
109
|
+
*
|
|
110
|
+
* [Live Demo](https://www.primevue.org/slider/)
|
|
111
|
+
* --- ---
|
|
112
|
+
* 
|
|
113
|
+
*
|
|
114
|
+
* @group Component
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
85
117
|
declare class Slider extends ClassComponent<SliderProps, SliderSlots, SliderEmits> {}
|
|
86
118
|
|
|
87
119
|
declare module '@vue/runtime-core' {
|
|
@@ -90,13 +122,4 @@ declare module '@vue/runtime-core' {
|
|
|
90
122
|
}
|
|
91
123
|
}
|
|
92
124
|
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* Slider is an input component to provide a numerical input.
|
|
96
|
-
*
|
|
97
|
-
* Demos:
|
|
98
|
-
*
|
|
99
|
-
* - [Slider](https://www.primefaces.org/primevue/slider)
|
|
100
|
-
*
|
|
101
|
-
*/
|
|
102
125
|
export default Slider;
|
package/speeddial/SpeedDial.d.ts
CHANGED
|
@@ -1,33 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* When pressed, a floating action button can display multiple primary actions that can be performed on a page.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/speeddial/)
|
|
6
|
+
*
|
|
7
|
+
* @module speeddial
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type SpeedDialTooltipPositionType = 'bottom' | 'top' | 'left' | 'right' | undefined;
|
|
10
|
-
|
|
11
|
-
type SpeedDialTooltipEventType = 'hover' | 'focus' | undefined;
|
|
12
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Defines tooltip options.
|
|
16
|
+
* @see {@link SpeedDialProps.tooltipOptions}
|
|
17
|
+
*/
|
|
13
18
|
export interface SpeedDialTooltipOptions {
|
|
14
19
|
/**
|
|
15
20
|
* Event to show the tooltip, valid values are hover and focus.
|
|
16
|
-
* @see SpeedDialTooltipEventType
|
|
17
21
|
*/
|
|
18
|
-
event:
|
|
22
|
+
event: 'hover' | 'focus' | undefined;
|
|
19
23
|
/**
|
|
20
24
|
* Position of element.
|
|
21
|
-
* @
|
|
22
|
-
* Default value is 'bottom'.
|
|
25
|
+
* @defaultValue bottom
|
|
23
26
|
*/
|
|
24
|
-
position:
|
|
27
|
+
position: 'bottom' | 'top' | 'left' | 'right' | undefined;
|
|
25
28
|
/**
|
|
26
29
|
* Optional options.
|
|
27
30
|
*/
|
|
28
|
-
[key: string]:
|
|
31
|
+
[key: string]: any;
|
|
29
32
|
}
|
|
30
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Defines valid properties in SpeedDial component.
|
|
36
|
+
*/
|
|
31
37
|
export interface SpeedDialProps {
|
|
32
38
|
/**
|
|
33
39
|
* MenuModel instance to define the action items.
|
|
@@ -35,41 +41,42 @@ export interface SpeedDialProps {
|
|
|
35
41
|
model?: MenuItem[] | undefined;
|
|
36
42
|
/**
|
|
37
43
|
* Specifies the visibility of the overlay.
|
|
44
|
+
* @defaultValue false
|
|
38
45
|
*/
|
|
39
46
|
visible?: boolean | undefined;
|
|
40
47
|
/**
|
|
41
48
|
* Specifies the opening direction of actions.
|
|
42
|
-
* @
|
|
43
|
-
* Default value is 'up'.
|
|
49
|
+
* @defaultValue up
|
|
44
50
|
*/
|
|
45
|
-
direction?:
|
|
51
|
+
direction?: 'up' | 'down' | 'left' | 'right' | 'up-left' | 'up-right' | 'down-left' | 'down-right' | undefined;
|
|
46
52
|
/**
|
|
47
53
|
* Transition delay step for each action item.
|
|
48
|
-
*
|
|
54
|
+
* @defaultValue 30
|
|
49
55
|
*/
|
|
50
56
|
transitionDelay?: number | undefined;
|
|
51
57
|
/**
|
|
52
58
|
* Specifies the opening type of actions.
|
|
53
|
-
* @
|
|
54
|
-
* Default value is 'linear'.
|
|
59
|
+
* @defaultValue linear
|
|
55
60
|
*/
|
|
56
|
-
type?:
|
|
61
|
+
type?: 'linear' | 'circle' | 'semi-circle' | 'quarter-circle' | undefined;
|
|
57
62
|
/**
|
|
58
63
|
* Radius for *circle types.
|
|
59
|
-
*
|
|
64
|
+
* @defaultValue 0
|
|
60
65
|
*/
|
|
61
66
|
radius?: number | undefined;
|
|
62
67
|
/**
|
|
63
68
|
* Whether to show a mask element behind the speeddial.
|
|
69
|
+
* @defaultValue false
|
|
64
70
|
*/
|
|
65
71
|
mask?: boolean | undefined;
|
|
66
72
|
/**
|
|
67
73
|
* Whether the component is disabled.
|
|
74
|
+
* @defaultValue false
|
|
68
75
|
*/
|
|
69
76
|
disabled?: boolean | undefined;
|
|
70
77
|
/**
|
|
71
78
|
* Whether the actions close when clicked outside.
|
|
72
|
-
*
|
|
79
|
+
* @defaultValue true
|
|
73
80
|
*/
|
|
74
81
|
hideOnClickOutside?: boolean | undefined;
|
|
75
82
|
/**
|
|
@@ -86,7 +93,7 @@ export interface SpeedDialProps {
|
|
|
86
93
|
maskClass?: string | undefined;
|
|
87
94
|
/**
|
|
88
95
|
* Show icon of the button element.
|
|
89
|
-
*
|
|
96
|
+
* @defaultValue pi pi-plus
|
|
90
97
|
*/
|
|
91
98
|
showIcon?: string | undefined;
|
|
92
99
|
/**
|
|
@@ -95,7 +102,7 @@ export interface SpeedDialProps {
|
|
|
95
102
|
hideIcon?: string | undefined;
|
|
96
103
|
/**
|
|
97
104
|
* Defined to rotate showIcon when hideIcon is not present.
|
|
98
|
-
*
|
|
105
|
+
* @defaultValue true
|
|
99
106
|
*/
|
|
100
107
|
rotateAnimation?: boolean | undefined;
|
|
101
108
|
/**
|
|
@@ -108,7 +115,7 @@ export interface SpeedDialProps {
|
|
|
108
115
|
style?: any;
|
|
109
116
|
/**
|
|
110
117
|
* Whether to display the tooltip on items. The modifiers of Tooltip can be used like an object in it. Valid keys are 'event' and 'position'.
|
|
111
|
-
* @
|
|
118
|
+
* @type {SpeedDialTooltipOptions}
|
|
112
119
|
*/
|
|
113
120
|
tooltipOptions?: SpeedDialTooltipOptions;
|
|
114
121
|
/**
|
|
@@ -121,55 +128,74 @@ export interface SpeedDialProps {
|
|
|
121
128
|
'aria-labelledby'?: string | undefined;
|
|
122
129
|
}
|
|
123
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Defines valid slots in SpeedDial component.
|
|
133
|
+
*/
|
|
124
134
|
export interface SpeedDialSlots {
|
|
125
135
|
/**
|
|
126
136
|
* Custom content for each item.
|
|
127
137
|
* @param {Object} scope - item slot's params.
|
|
128
138
|
*/
|
|
129
|
-
item
|
|
139
|
+
item(scope: {
|
|
130
140
|
/**
|
|
131
141
|
* Menuitem instance
|
|
142
|
+
* @type {MenuItem}
|
|
132
143
|
*/
|
|
133
144
|
item: MenuItem;
|
|
134
|
-
})
|
|
145
|
+
}): VNode[];
|
|
135
146
|
/**
|
|
136
147
|
* Custom button template.
|
|
137
148
|
* @param {Object} scope - button slot's params.
|
|
138
149
|
*/
|
|
139
|
-
button
|
|
150
|
+
button(scope: {
|
|
140
151
|
/**
|
|
141
152
|
* Toggle metadata
|
|
142
153
|
*/
|
|
143
|
-
toggle
|
|
144
|
-
})
|
|
154
|
+
toggle(): void;
|
|
155
|
+
}): VNode[];
|
|
145
156
|
}
|
|
146
157
|
|
|
147
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Defines valid emits in SpeedDial component.
|
|
160
|
+
*/
|
|
161
|
+
export interface SpeedDialEmits {
|
|
148
162
|
/**
|
|
149
163
|
* Fired when the button element clicked.
|
|
150
164
|
* @param {Event} event - Browser event.
|
|
151
165
|
*/
|
|
152
|
-
click
|
|
166
|
+
click(event: Event): void;
|
|
153
167
|
/**
|
|
154
168
|
* Fired when the actions are visible.
|
|
155
169
|
*/
|
|
156
|
-
show
|
|
170
|
+
show(): void;
|
|
157
171
|
/**
|
|
158
172
|
* Fired when the actions are hidden.
|
|
159
173
|
*/
|
|
160
|
-
hide
|
|
174
|
+
hide(): void;
|
|
161
175
|
/**
|
|
162
176
|
* Callback to invoke when the component receives focus.
|
|
163
177
|
* @param {Event} event - Browser event.
|
|
164
178
|
*/
|
|
165
|
-
focus
|
|
179
|
+
focus(event: Event): void;
|
|
166
180
|
/**
|
|
167
181
|
* Callback to invoke when the component loses focus.
|
|
168
182
|
* @param {Event} event - Browser event.
|
|
169
183
|
*/
|
|
170
|
-
blur
|
|
171
|
-
}
|
|
184
|
+
blur(event: Event): void;
|
|
185
|
+
}
|
|
172
186
|
|
|
187
|
+
/**
|
|
188
|
+
* **PrimeVue - SpeedDial**
|
|
189
|
+
*
|
|
190
|
+
* _When pressed, a floating action button can display multiple primary actions that can be performed on a page._
|
|
191
|
+
*
|
|
192
|
+
* [Live Demo](https://www.primevue.org/speeddial/)
|
|
193
|
+
* --- ---
|
|
194
|
+
* 
|
|
195
|
+
*
|
|
196
|
+
* @group Component
|
|
197
|
+
*
|
|
198
|
+
*/
|
|
173
199
|
declare class SpeedDial extends ClassComponent<SpeedDialProps, SpeedDialSlots, SpeedDialEmits> {}
|
|
174
200
|
|
|
175
201
|
declare module '@vue/runtime-core' {
|
|
@@ -178,17 +204,4 @@ declare module '@vue/runtime-core' {
|
|
|
178
204
|
}
|
|
179
205
|
}
|
|
180
206
|
|
|
181
|
-
/**
|
|
182
|
-
*
|
|
183
|
-
* When pressed, a floating action button can display multiple primary actions that can be performed on a page.
|
|
184
|
-
*
|
|
185
|
-
* Helper API:
|
|
186
|
-
*
|
|
187
|
-
* - [MenuItem](https://www.primefaces.org/primevue/menumodel)
|
|
188
|
-
*
|
|
189
|
-
* Demos:
|
|
190
|
-
*
|
|
191
|
-
* - [SpeedDial](https://www.primefaces.org/primevue/speeddial)
|
|
192
|
-
*
|
|
193
|
-
*/
|
|
194
207
|
export default SpeedDial;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* SplitButton groups a set of commands in an overlay with a default command.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/splitbutton/)
|
|
6
|
+
*
|
|
7
|
+
* @module splitbutton
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { ButtonHTMLAttributes, 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 SplitButton component.
|
|
16
|
+
*/
|
|
7
17
|
export interface SplitButtonProps {
|
|
8
18
|
/**
|
|
9
19
|
* Text of the button.
|
|
@@ -19,22 +29,23 @@ export interface SplitButtonProps {
|
|
|
19
29
|
model?: MenuItem[] | undefined;
|
|
20
30
|
/**
|
|
21
31
|
* Whether to automatically manage layering.
|
|
22
|
-
*
|
|
32
|
+
* @defaultValue true
|
|
23
33
|
*/
|
|
24
34
|
autoZIndex?: boolean | undefined;
|
|
25
35
|
/**
|
|
26
36
|
* Base zIndex value to use in layering.
|
|
27
|
-
*
|
|
37
|
+
* @defaultValue 0
|
|
28
38
|
*/
|
|
29
39
|
baseZIndex?: number | undefined;
|
|
30
40
|
/**
|
|
31
41
|
* A valid query selector or an HTMLElement to specify where the overlay gets attached.
|
|
32
|
-
*
|
|
33
|
-
*
|
|
42
|
+
* Special keywords are 'body' for document body and 'self' for the element itself.
|
|
43
|
+
* @defaultValue body
|
|
34
44
|
*/
|
|
35
|
-
appendTo?:
|
|
45
|
+
appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
|
|
36
46
|
/**
|
|
37
47
|
* When present, it specifies that the element should be disabled.
|
|
48
|
+
* @defaultValue false
|
|
38
49
|
*/
|
|
39
50
|
disabled?: boolean | undefined;
|
|
40
51
|
/**
|
|
@@ -57,23 +68,74 @@ export interface SplitButtonProps {
|
|
|
57
68
|
* Name of the menu button icon.
|
|
58
69
|
*/
|
|
59
70
|
menuButtonIcon?: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Defines the style of the button.
|
|
73
|
+
*/
|
|
74
|
+
severity?: 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Add a shadow to indicate elevation.
|
|
77
|
+
* @defaultValue false
|
|
78
|
+
*/
|
|
79
|
+
raised?: boolean | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Add a circular border radius to the button.
|
|
82
|
+
* @defaultValue false
|
|
83
|
+
*/
|
|
84
|
+
rounded?: boolean | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Add a textual class to the button without a background initially.
|
|
87
|
+
* @defaultValue false
|
|
88
|
+
*/
|
|
89
|
+
text?: boolean | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Add a border class without a background initially.
|
|
92
|
+
* @defaultValue false
|
|
93
|
+
*/
|
|
94
|
+
outlined?: boolean | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Defines the size of the button.
|
|
97
|
+
*/
|
|
98
|
+
size?: 'small' | 'large' | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Add a plain textual class to the button without a background initially.
|
|
101
|
+
* @defaultValue false
|
|
102
|
+
*/
|
|
103
|
+
plain?: boolean | undefined;
|
|
60
104
|
}
|
|
61
105
|
|
|
106
|
+
/**
|
|
107
|
+
* Defines valid slots in SplitButton component.
|
|
108
|
+
*/
|
|
62
109
|
export interface SplitButtonSlots {
|
|
63
110
|
/**
|
|
64
111
|
* Button part of the content can easily be customized with the default slot instead of using the built-in modes.
|
|
65
112
|
*/
|
|
66
|
-
default
|
|
113
|
+
default(): VNode[];
|
|
67
114
|
}
|
|
68
115
|
|
|
69
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Defines valid emits in SplitButton component.
|
|
118
|
+
*/
|
|
119
|
+
export interface SplitButtonEmits {
|
|
70
120
|
/**
|
|
71
121
|
* Callback to invoke when main button is clicked.
|
|
72
122
|
* @param {Event} event - Browser event.
|
|
73
123
|
*/
|
|
74
|
-
click
|
|
75
|
-
}
|
|
124
|
+
click(event: Event): void;
|
|
125
|
+
}
|
|
76
126
|
|
|
127
|
+
/**
|
|
128
|
+
* **PrimeVue - SplitButton**
|
|
129
|
+
*
|
|
130
|
+
* _SplitButton groups a set of commands in an overlay with a default command._
|
|
131
|
+
*
|
|
132
|
+
* [Live Demo](https://www.primevue.org/splitbutton/)
|
|
133
|
+
* --- ---
|
|
134
|
+
* 
|
|
135
|
+
*
|
|
136
|
+
* @group Component
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
77
139
|
declare class SplitButton extends ClassComponent<SplitButtonProps, SplitButtonSlots, SplitButtonEmits> {}
|
|
78
140
|
|
|
79
141
|
declare module '@vue/runtime-core' {
|
|
@@ -82,17 +144,4 @@ declare module '@vue/runtime-core' {
|
|
|
82
144
|
}
|
|
83
145
|
}
|
|
84
146
|
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* SplitButton groups a set of commands in an overlay with a default command.
|
|
88
|
-
*
|
|
89
|
-
* Helper API:
|
|
90
|
-
*
|
|
91
|
-
* - [MenuItem](https://www.primefaces.org/primevue/menumodel)
|
|
92
|
-
*
|
|
93
|
-
* Demos:
|
|
94
|
-
*
|
|
95
|
-
* - [SplitButton](https://www.primefaces.org/primevue/splitbutton)
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
147
|
export default SplitButton;
|
|
@@ -76,6 +76,34 @@ export default {
|
|
|
76
76
|
menuButtonIcon: {
|
|
77
77
|
type: String,
|
|
78
78
|
default: 'pi pi-chevron-down'
|
|
79
|
+
},
|
|
80
|
+
severity: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: null
|
|
83
|
+
},
|
|
84
|
+
raised: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: false
|
|
87
|
+
},
|
|
88
|
+
rounded: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: false
|
|
91
|
+
},
|
|
92
|
+
text: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false
|
|
95
|
+
},
|
|
96
|
+
outlined: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: false
|
|
99
|
+
},
|
|
100
|
+
size: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: null
|
|
103
|
+
},
|
|
104
|
+
plain: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
default: false
|
|
79
107
|
}
|
|
80
108
|
},
|
|
81
109
|
data() {
|
|
@@ -105,7 +133,19 @@ export default {
|
|
|
105
133
|
return UniqueComponentId();
|
|
106
134
|
},
|
|
107
135
|
containerClass() {
|
|
108
|
-
return [
|
|
136
|
+
return [
|
|
137
|
+
'p-splitbutton p-component',
|
|
138
|
+
this.class,
|
|
139
|
+
{
|
|
140
|
+
[`p-button-${this.severity}`]: this.severity,
|
|
141
|
+
'p-button-raised': this.raised,
|
|
142
|
+
'p-button-rounded': this.rounded,
|
|
143
|
+
'p-button-text': this.text,
|
|
144
|
+
'p-button-outlined': this.outlined,
|
|
145
|
+
'p-button-sm': this.size === 'small',
|
|
146
|
+
'p-button-lg': this.size === 'large'
|
|
147
|
+
}
|
|
148
|
+
];
|
|
109
149
|
}
|
|
110
150
|
},
|
|
111
151
|
components: {
|
|
@@ -61,6 +61,34 @@ var script = {
|
|
|
61
61
|
menuButtonIcon: {
|
|
62
62
|
type: String,
|
|
63
63
|
default: 'pi pi-chevron-down'
|
|
64
|
+
},
|
|
65
|
+
severity: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: null
|
|
68
|
+
},
|
|
69
|
+
raised: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false
|
|
72
|
+
},
|
|
73
|
+
rounded: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: false
|
|
76
|
+
},
|
|
77
|
+
text: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: false
|
|
80
|
+
},
|
|
81
|
+
outlined: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: false
|
|
84
|
+
},
|
|
85
|
+
size: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: null
|
|
88
|
+
},
|
|
89
|
+
plain: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: false
|
|
64
92
|
}
|
|
65
93
|
},
|
|
66
94
|
data() {
|
|
@@ -90,7 +118,19 @@ var script = {
|
|
|
90
118
|
return utils.UniqueComponentId();
|
|
91
119
|
},
|
|
92
120
|
containerClass() {
|
|
93
|
-
return [
|
|
121
|
+
return [
|
|
122
|
+
'p-splitbutton p-component',
|
|
123
|
+
this.class,
|
|
124
|
+
{
|
|
125
|
+
[`p-button-${this.severity}`]: this.severity,
|
|
126
|
+
'p-button-raised': this.raised,
|
|
127
|
+
'p-button-rounded': this.rounded,
|
|
128
|
+
'p-button-text': this.text,
|
|
129
|
+
'p-button-outlined': this.outlined,
|
|
130
|
+
'p-button-sm': this.size === 'small',
|
|
131
|
+
'p-button-lg': this.size === 'large'
|
|
132
|
+
}
|
|
133
|
+
];
|
|
94
134
|
}
|
|
95
135
|
},
|
|
96
136
|
components: {
|
|
@@ -169,10 +209,10 @@ function styleInject(css, ref) {
|
|
|
169
209
|
}
|
|
170
210
|
}
|
|
171
211
|
|
|
172
|
-
var css_248z = "\n.p-splitbutton[data-v-
|
|
212
|
+
var css_248z = "\n.p-splitbutton[data-v-0df0b659] {\n display: inline-flex;\n position: relative;\n}\n.p-splitbutton .p-splitbutton-defaultbutton[data-v-0df0b659],\n.p-splitbutton.p-button-rounded > .p-splitbutton-defaultbutton.p-button[data-v-0df0b659],\n.p-splitbutton.p-button-outlined > .p-splitbutton-defaultbutton.p-button[data-v-0df0b659] {\n flex: 1 1 auto;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-right: 0 none;\n}\n.p-splitbutton-menubutton[data-v-0df0b659],\n.p-splitbutton.p-button-rounded > .p-splitbutton-menubutton.p-button[data-v-0df0b659],\n.p-splitbutton.p-button-outlined > .p-splitbutton-menubutton.p-button[data-v-0df0b659] {\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-splitbutton .p-menu[data-v-0df0b659] {\n min-width: 100%;\n}\n.p-fluid .p-splitbutton[data-v-0df0b659] {\n display: flex;\n}\n";
|
|
173
213
|
styleInject(css_248z);
|
|
174
214
|
|
|
175
215
|
script.render = render;
|
|
176
|
-
script.__scopeId = "data-v-
|
|
216
|
+
script.__scopeId = "data-v-0df0b659";
|
|
177
217
|
|
|
178
218
|
module.exports = script;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("primevue/button"),e=require("primevue/tieredmenu"),n=require("primevue/utils"),o=require("vue");function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=l(t),
|
|
1
|
+
"use strict";var t=require("primevue/button"),e=require("primevue/tieredmenu"),n=require("primevue/utils"),o=require("vue");function l(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=l(t),d=l(e),a={name:"SplitButton",emits:["click"],props:{label:{type:String,default:null},icon:{type:String,default:null},model:{type:Array,default:null},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},appendTo:{type:String,default:"body"},disabled:{type:Boolean,default:!1},class:{type:null,default:null},style:{type:null,default:null},buttonProps:{type:null,default:null},menuButtonProps:{type:null,default:null},menuButtonIcon:{type:String,default:"pi pi-chevron-down"},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},data:()=>({isExpanded:!1}),methods:{onDropdownButtonClick(){this.$refs.menu.toggle({currentTarget:this.$el,relatedTarget:this.$refs.button.$el}),this.isExpanded=!this.$refs.menu.visible},onDropdownKeydown(t){"ArrowDown"!==t.code&&"ArrowUp"!==t.code||(this.onDropdownButtonClick(),t.preventDefault())},onDefaultButtonClick(t){this.$refs.menu.hide(t),this.$emit("click")}},computed:{ariaId:()=>n.UniqueComponentId(),containerClass(){return["p-splitbutton p-component",this.class,{[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":"small"===this.size,"p-button-lg":"large"===this.size}]}},components:{PVSButton:u.default,PVSMenu:d.default}};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t))}}("\n.p-splitbutton[data-v-0df0b659] {\n display: inline-flex;\n position: relative;\n}\n.p-splitbutton .p-splitbutton-defaultbutton[data-v-0df0b659],\n.p-splitbutton.p-button-rounded > .p-splitbutton-defaultbutton.p-button[data-v-0df0b659],\n.p-splitbutton.p-button-outlined > .p-splitbutton-defaultbutton.p-button[data-v-0df0b659] {\n flex: 1 1 auto;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-right: 0 none;\n}\n.p-splitbutton-menubutton[data-v-0df0b659],\n.p-splitbutton.p-button-rounded > .p-splitbutton-menubutton.p-button[data-v-0df0b659],\n.p-splitbutton.p-button-outlined > .p-splitbutton-menubutton.p-button[data-v-0df0b659] {\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-splitbutton .p-menu[data-v-0df0b659] {\n min-width: 100%;\n}\n.p-fluid .p-splitbutton[data-v-0df0b659] {\n display: flex;\n}\n"),a.render=function(t,e,n,l,u,d){const a=o.resolveComponent("PVSButton"),i=o.resolveComponent("PVSMenu");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(d.containerClass),style:o.normalizeStyle(n.style)},[o.renderSlot(t.$slots,"default",{},(()=>[o.createVNode(a,o.mergeProps({type:"button",class:"p-splitbutton-defaultbutton",icon:n.icon,label:n.label,disabled:n.disabled,"aria-label":n.label,onClick:d.onDefaultButtonClick},n.buttonProps),null,16,["icon","label","disabled","aria-label","onClick"])])),o.createVNode(a,o.mergeProps({ref:"button",type:"button",class:"p-splitbutton-menubutton",icon:n.menuButtonIcon,disabled:n.disabled,"aria-haspopup":"true","aria-expanded":u.isExpanded,"aria-controls":d.ariaId+"_overlay",onClick:d.onDropdownButtonClick,onKeydown:d.onDropdownKeydown},n.menuButtonProps),null,16,["icon","disabled","aria-expanded","aria-controls","onClick","onKeydown"]),o.createVNode(i,{ref:"menu",id:d.ariaId+"_overlay",model:n.model,popup:!0,autoZIndex:n.autoZIndex,baseZIndex:n.baseZIndex,appendTo:n.appendTo},null,8,["id","model","autoZIndex","baseZIndex","appendTo"])],6)},a.__scopeId="data-v-0df0b659",module.exports=a;
|