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
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* CascadeSelect is a form component to select a value from a nested structure of options.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/cascadeselect/)
|
|
6
|
+
*
|
|
7
|
+
* @module cascadeselect
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type CascadeSelectOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
|
9
|
-
|
|
10
|
-
type CascadeSelectOptionChildrenType = string[] | string | ((data: any) => any[]) | undefined;
|
|
11
|
-
|
|
12
|
-
type CascadeSelectAppendToType = 'body' | 'self' | string | undefined | HTMLElement;
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Custom change event
|
|
15
|
+
* @see {@link CascadeSelectEmits.change}
|
|
16
|
+
*/
|
|
14
17
|
export interface CascadeSelectChangeEvent {
|
|
15
18
|
/**
|
|
16
19
|
* Original event.
|
|
@@ -23,10 +26,14 @@ export interface CascadeSelectChangeEvent {
|
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
/**
|
|
29
|
+
* @see {@link CascadeSelectEmits.change}
|
|
26
30
|
* @extends CascadeSelectChangeEvent
|
|
27
31
|
*/
|
|
28
32
|
export interface CascadeSelectGroupChangeEvent extends CascadeSelectChangeEvent {}
|
|
29
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Defines valid properties in CascadeSelect component.
|
|
36
|
+
*/
|
|
30
37
|
export interface CascadeSelectProps {
|
|
31
38
|
/**
|
|
32
39
|
* Value of the component.
|
|
@@ -38,35 +45,31 @@ export interface CascadeSelectProps {
|
|
|
38
45
|
options?: any[] | undefined;
|
|
39
46
|
/**
|
|
40
47
|
* Property name or getter function to use as the label of an option.
|
|
41
|
-
* @see CascadeSelectOptionLabelType
|
|
42
48
|
*/
|
|
43
|
-
optionLabel?:
|
|
49
|
+
optionLabel?: string | ((data: any) => string) | undefined;
|
|
44
50
|
/**
|
|
45
51
|
* Property name or getter function to use as the value of an option, defaults to the option itself when not defined.
|
|
46
|
-
* @see CascadeSelectOptionValueType
|
|
47
52
|
*/
|
|
48
|
-
optionValue?:
|
|
53
|
+
optionValue?: string | ((data: any) => any) | undefined;
|
|
49
54
|
/**
|
|
50
55
|
* Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.
|
|
51
|
-
* @see CascadeSelectOptionDisabledType
|
|
52
56
|
*/
|
|
53
|
-
optionDisabled?:
|
|
57
|
+
optionDisabled?: string | ((data: any) => boolean) | undefined;
|
|
54
58
|
/**
|
|
55
59
|
* Property name or getter function to use as the label of an option group.
|
|
56
|
-
* @see CascadeSelectOptionLabelType
|
|
57
60
|
*/
|
|
58
|
-
optionGroupLabel?:
|
|
61
|
+
optionGroupLabel?: string | ((data: any) => string) | undefined;
|
|
59
62
|
/**
|
|
60
63
|
* Property name or getter function to retrieve the items of a group.
|
|
61
|
-
* @see CascadeSelectOptionChildrenType
|
|
62
64
|
*/
|
|
63
|
-
optionGroupChildren?:
|
|
65
|
+
optionGroupChildren?: string[] | string | ((data: any) => any[]) | undefined;
|
|
64
66
|
/**
|
|
65
67
|
* Default text to display when no option is selected.
|
|
66
68
|
*/
|
|
67
69
|
placeholder?: string | undefined;
|
|
68
70
|
/**
|
|
69
71
|
* When present, it specifies that the component should be disabled.
|
|
72
|
+
* @defaultValue false
|
|
70
73
|
*/
|
|
71
74
|
disabled?: boolean | undefined;
|
|
72
75
|
/**
|
|
@@ -103,37 +106,37 @@ export interface CascadeSelectProps {
|
|
|
103
106
|
panelProps?: HTMLAttributes | undefined;
|
|
104
107
|
/**
|
|
105
108
|
* A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself.
|
|
106
|
-
* @
|
|
107
|
-
* Default value is 'body'.
|
|
109
|
+
* @defaultValue body
|
|
108
110
|
*/
|
|
109
|
-
appendTo?:
|
|
111
|
+
appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
|
|
110
112
|
/**
|
|
111
113
|
* Whether the dropdown is in loading state.
|
|
114
|
+
* @defaultValue false
|
|
112
115
|
*/
|
|
113
116
|
loading?: boolean | undefined;
|
|
114
117
|
/**
|
|
115
118
|
* Icon to display in the dropdown.
|
|
116
|
-
*
|
|
119
|
+
* @defaultValue pi pi-chevron-down
|
|
117
120
|
*/
|
|
118
121
|
dropdownIcon?: string | undefined;
|
|
119
122
|
/**
|
|
120
123
|
* Icon to display in loading state.
|
|
121
|
-
*
|
|
124
|
+
* @defaultValue pi pi-spinner pi-spin
|
|
122
125
|
*/
|
|
123
126
|
loadingIcon?: string | undefined;
|
|
124
127
|
/**
|
|
125
128
|
* Icon to display in the option group.
|
|
126
|
-
*
|
|
129
|
+
* @defaultValue pi pi-angle-right
|
|
127
130
|
*/
|
|
128
131
|
optionGroupIcon?: string | undefined;
|
|
129
132
|
/**
|
|
130
133
|
* Whether to focus on the first visible or selected element when the overlay panel is shown.
|
|
131
|
-
*
|
|
134
|
+
* @defaultValue true
|
|
132
135
|
*/
|
|
133
136
|
autoOptionFocus?: boolean | undefined;
|
|
134
137
|
/**
|
|
135
138
|
* When enabled, the focused option is selected/opened.
|
|
136
|
-
*
|
|
139
|
+
* @defaultValue false
|
|
137
140
|
*/
|
|
138
141
|
selectOnFocus?: boolean | undefined;
|
|
139
142
|
/**
|
|
@@ -142,27 +145,27 @@ export interface CascadeSelectProps {
|
|
|
142
145
|
searchLocale?: string | undefined;
|
|
143
146
|
/**
|
|
144
147
|
* Text to be displayed in hidden accessible field when filtering returns any results. Defaults to value from PrimeVue locale configuration.
|
|
145
|
-
*
|
|
148
|
+
* @defaultValue '{0} results are available'
|
|
146
149
|
*/
|
|
147
150
|
searchMessage?: string | undefined;
|
|
148
151
|
/**
|
|
149
152
|
* Text to be displayed in hidden accessible field when options are selected. Defaults to value from PrimeVue locale configuration.
|
|
150
|
-
*
|
|
153
|
+
* @defaultValue '{0} items selected'
|
|
151
154
|
*/
|
|
152
155
|
selectionMessage?: string | undefined;
|
|
153
156
|
/**
|
|
154
157
|
* Text to be displayed in hidden accessible field when any option is not selected. Defaults to value from PrimeVue locale configuration.
|
|
155
|
-
*
|
|
158
|
+
* @defaultValue No selected item
|
|
156
159
|
*/
|
|
157
160
|
emptySelectionMessage?: string | undefined;
|
|
158
161
|
/**
|
|
159
162
|
* Text to display when filtering does not return any results. Defaults to value from PrimeVue locale configuration.
|
|
160
|
-
*
|
|
163
|
+
* @defaultValue No results found
|
|
161
164
|
*/
|
|
162
165
|
emptySearchMessage?: string | undefined;
|
|
163
166
|
/**
|
|
164
167
|
* Text to be displayed when there are no options available. Defaults to value from PrimeVue locale configuration.
|
|
165
|
-
*
|
|
168
|
+
* @defaultValue No available options
|
|
166
169
|
*/
|
|
167
170
|
emptyMessage?: string | undefined;
|
|
168
171
|
/**
|
|
@@ -179,22 +182,25 @@ export interface CascadeSelectProps {
|
|
|
179
182
|
'aria-label'?: string | undefined;
|
|
180
183
|
}
|
|
181
184
|
|
|
185
|
+
/**
|
|
186
|
+
* Defines valid slots in CascadeSelect component.
|
|
187
|
+
*/
|
|
182
188
|
export interface CascadeSelectSlots {
|
|
183
189
|
/**
|
|
184
190
|
* Custom content for each option.
|
|
185
191
|
* @param {Object} scope - option slot's params.
|
|
186
192
|
*/
|
|
187
|
-
option
|
|
193
|
+
option(scope: {
|
|
188
194
|
/**
|
|
189
195
|
* Option instance
|
|
190
196
|
*/
|
|
191
197
|
option: any;
|
|
192
|
-
})
|
|
198
|
+
}): VNode[];
|
|
193
199
|
/**
|
|
194
200
|
* Custom value template.
|
|
195
201
|
* @param {CascadeSelectValueSlot} scope - value slot's params.
|
|
196
202
|
*/
|
|
197
|
-
value
|
|
203
|
+
value(scope: {
|
|
198
204
|
/**
|
|
199
205
|
* Value of the component
|
|
200
206
|
*/
|
|
@@ -203,62 +209,76 @@ export interface CascadeSelectSlots {
|
|
|
203
209
|
* Placeholder text to show
|
|
204
210
|
*/
|
|
205
211
|
placeholder: string;
|
|
206
|
-
})
|
|
212
|
+
}): VNode[];
|
|
207
213
|
/**
|
|
208
214
|
* Custom indicator template.
|
|
209
215
|
*/
|
|
210
|
-
indicator
|
|
216
|
+
indicator(): VNode[];
|
|
211
217
|
}
|
|
212
218
|
|
|
213
|
-
|
|
219
|
+
/**
|
|
220
|
+
* Defines valid emits in CascadeSelect component.
|
|
221
|
+
*/
|
|
222
|
+
export interface CascadeSelectEmits {
|
|
214
223
|
/**
|
|
215
224
|
* Emitted when the value changes.
|
|
216
225
|
* @param {*} value - New value.
|
|
217
226
|
*/
|
|
218
|
-
'update:modelValue'
|
|
227
|
+
'update:modelValue'(value: any): void;
|
|
219
228
|
/**
|
|
220
229
|
* Callback to invoke on value change.
|
|
221
230
|
* @param { CascadeSelectChangeEvent } event - Custom change event.
|
|
222
231
|
*/
|
|
223
|
-
change
|
|
232
|
+
change(event: CascadeSelectChangeEvent): void;
|
|
224
233
|
/**
|
|
225
234
|
* Callback to invoke when the component receives focus.
|
|
226
235
|
* @param {Event} event - Browser event.
|
|
227
236
|
*/
|
|
228
|
-
focus
|
|
237
|
+
focus(event: Event): void;
|
|
229
238
|
/**
|
|
230
239
|
* Callback to invoke when the component loses focus.
|
|
231
240
|
* @param {Event} event - Browser event.
|
|
232
241
|
*/
|
|
233
|
-
blur
|
|
242
|
+
blur(event: Event): void;
|
|
234
243
|
/**
|
|
235
244
|
* Callback to invoke on click.
|
|
236
245
|
* @param { Event } event - Browser event.
|
|
237
246
|
*/
|
|
238
|
-
click
|
|
247
|
+
click(event: Event): void;
|
|
239
248
|
/**
|
|
240
249
|
* Callback to invoke when a group changes.
|
|
241
250
|
* @param { CascadeSelectGroupChangeEvent } event - Custom change event.
|
|
242
251
|
*/
|
|
243
|
-
'group-change'
|
|
252
|
+
'group-change'(event: CascadeSelectGroupChangeEvent): void;
|
|
244
253
|
/**
|
|
245
254
|
* Callback to invoke before the overlay is shown.
|
|
246
255
|
*/
|
|
247
|
-
'before-show'
|
|
256
|
+
'before-show'(): void;
|
|
248
257
|
/**
|
|
249
258
|
* Callback to invoke before the overlay is hidden.
|
|
250
259
|
*/
|
|
251
|
-
'before-hide'
|
|
260
|
+
'before-hide'(): void;
|
|
252
261
|
/**
|
|
253
262
|
* Callback to invoke when the overlay is shown.
|
|
254
263
|
*/
|
|
255
|
-
show
|
|
264
|
+
show(): void;
|
|
256
265
|
/**
|
|
257
266
|
* Callback to invoke when the overlay is hidden.
|
|
258
267
|
*/
|
|
259
|
-
hide
|
|
260
|
-
}
|
|
268
|
+
hide(): void;
|
|
269
|
+
}
|
|
261
270
|
|
|
271
|
+
/**
|
|
272
|
+
* **PrimeVue - CascadeSelect**
|
|
273
|
+
*
|
|
274
|
+
* _CascadeSelect is a form component to select a value from a nested structure of options._
|
|
275
|
+
*
|
|
276
|
+
* [Live Demo](https://www.primevue.org/cascadeselect/)
|
|
277
|
+
* --- ---
|
|
278
|
+
* 
|
|
277
|
-
*
|
|
278
|
-
*/
|
|
279
290
|
export default CascadeSelect;
|
package/chart/Chart.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Chart groups a collection of contents in tabs.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/chart/)
|
|
6
|
+
*
|
|
7
|
+
* @module chart
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { CanvasHTMLAttributes } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Custom select event.
|
|
15
|
+
* @see {@link ChartEmits.select}
|
|
16
|
+
*/
|
|
4
17
|
export interface ChartSelectEvent {
|
|
5
18
|
/**
|
|
6
19
|
* Browser event.
|
|
@@ -16,6 +29,9 @@ export interface ChartSelectEvent {
|
|
|
16
29
|
dataset: any;
|
|
17
30
|
}
|
|
18
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Defines valid properties in Chart component.
|
|
34
|
+
*/
|
|
19
35
|
export interface ChartProps {
|
|
20
36
|
/**
|
|
21
37
|
* Type of the chart.
|
|
@@ -35,12 +51,12 @@ export interface ChartProps {
|
|
|
35
51
|
plugins?: any;
|
|
36
52
|
/**
|
|
37
53
|
* Width of the chart in non-responsive mode.
|
|
38
|
-
*
|
|
54
|
+
* @defaultValue 300
|
|
39
55
|
*/
|
|
40
56
|
width?: number | undefined;
|
|
41
57
|
/**
|
|
42
58
|
* Height of the chart in non-responsive mode.
|
|
43
|
-
*
|
|
59
|
+
* @defaultValue 150
|
|
44
60
|
*/
|
|
45
61
|
height?: number | undefined;
|
|
46
62
|
/**
|
|
@@ -51,44 +67,59 @@ export interface ChartProps {
|
|
|
51
67
|
|
|
52
68
|
export interface ChartSlots {}
|
|
53
69
|
|
|
54
|
-
|
|
70
|
+
/**
|
|
71
|
+
* Defines valid emits in Chart component.
|
|
72
|
+
*/
|
|
73
|
+
export interface ChartEmits {
|
|
55
74
|
/**
|
|
56
75
|
* Callback to invoke when a tab gets expanded.
|
|
57
76
|
* @param {ChartSelectEvent} event - Custom select event.
|
|
58
77
|
*/
|
|
59
|
-
select
|
|
78
|
+
select(event: ChartSelectEvent): void;
|
|
60
79
|
/**
|
|
61
80
|
* Callback to invoke when chart is loaded.
|
|
62
81
|
* @param {*} chart - Chart instance.
|
|
63
82
|
*/
|
|
64
|
-
loaded
|
|
65
|
-
}
|
|
83
|
+
loaded(chart: any): void;
|
|
84
|
+
}
|
|
66
85
|
|
|
86
|
+
/**
|
|
87
|
+
* **PrimeVue - Chart**
|
|
88
|
+
*
|
|
89
|
+
* _Chart groups a collection of contents in tabs._
|
|
90
|
+
*
|
|
91
|
+
* [Live Demo](https://www.primevue.org/chart/)
|
|
92
|
+
* --- ---
|
|
93
|
+
* 
|
|
94
|
+
*
|
|
95
|
+
* @group Component
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
67
98
|
declare class Chart extends ClassComponent<ChartProps, ChartSlots, ChartEmits> {
|
|
68
99
|
/**
|
|
69
100
|
* Redraws the graph.
|
|
70
101
|
*
|
|
71
102
|
* @memberof Chart
|
|
72
103
|
*/
|
|
73
|
-
refresh
|
|
104
|
+
refresh(): void;
|
|
74
105
|
/**
|
|
75
106
|
* Destroys the graph first and then creates it again.
|
|
76
107
|
*
|
|
77
108
|
* @memberof Chart
|
|
78
109
|
*/
|
|
79
|
-
reinit
|
|
110
|
+
reinit(): void;
|
|
80
111
|
/**
|
|
81
112
|
* Returns an HTML string of a legend for that chart. The legend is generated from the legendCallback in the options.
|
|
82
113
|
*
|
|
83
114
|
* @memberof Chart
|
|
84
115
|
*/
|
|
85
|
-
generateLegend
|
|
116
|
+
generateLegend(): string | any;
|
|
86
117
|
/**
|
|
87
118
|
* Returns Chart instance.
|
|
88
119
|
*
|
|
89
120
|
* @memberof Chart
|
|
90
121
|
*/
|
|
91
|
-
getChart
|
|
122
|
+
getChart(): any;
|
|
92
123
|
}
|
|
93
124
|
|
|
94
125
|
declare module '@vue/runtime-core' {
|
|
@@ -97,17 +128,4 @@ declare module '@vue/runtime-core' {
|
|
|
97
128
|
}
|
|
98
129
|
}
|
|
99
130
|
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* Chart components are based on Charts.js, an open source HTML5 based charting library.
|
|
103
|
-
*
|
|
104
|
-
* Helper API;
|
|
105
|
-
*
|
|
106
|
-
* - [Chart.js](https://www.chartjs.org/)
|
|
107
|
-
*
|
|
108
|
-
* Demos:
|
|
109
|
-
*
|
|
110
|
-
* - [Chart](https://www.primefaces.org/primevue/chart)
|
|
111
|
-
*
|
|
112
|
-
*/
|
|
113
131
|
export default Chart;
|
package/checkbox/Checkbox.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Checkbox is an extension to standard checkbox element with theming.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/checkbox/)
|
|
6
|
+
*
|
|
7
|
+
* @module checkbox
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { InputHTMLAttributes } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Defines valid properties in Checkbox component.
|
|
15
|
+
*/
|
|
4
16
|
export interface CheckboxProps {
|
|
5
17
|
/**
|
|
6
18
|
* Value of the checkbox.
|
|
@@ -16,18 +28,22 @@ export interface CheckboxProps {
|
|
|
16
28
|
name?: string | undefined;
|
|
17
29
|
/**
|
|
18
30
|
* Allows to select a boolean value instead of multiple values.
|
|
31
|
+
* @default false
|
|
19
32
|
*/
|
|
20
33
|
binary?: boolean;
|
|
21
34
|
/**
|
|
22
35
|
* When present, it specifies that the element should be disabled.
|
|
36
|
+
* @default false
|
|
23
37
|
*/
|
|
24
38
|
disabled?: boolean | undefined;
|
|
25
39
|
/**
|
|
26
40
|
* When present, it specifies that an input field is read-only.
|
|
41
|
+
* @default false
|
|
27
42
|
*/
|
|
28
43
|
readonly?: boolean | undefined;
|
|
29
44
|
/**
|
|
30
45
|
* When present, it specifies that the element is required.
|
|
46
|
+
* @default false
|
|
31
47
|
*/
|
|
32
48
|
required?: boolean | undefined;
|
|
33
49
|
/**
|
|
@@ -36,10 +52,12 @@ export interface CheckboxProps {
|
|
|
36
52
|
tabindex?: number | undefined;
|
|
37
53
|
/**
|
|
38
54
|
* Value in checked state.
|
|
55
|
+
* @default true
|
|
39
56
|
*/
|
|
40
57
|
trueValue?: any;
|
|
41
58
|
/**
|
|
42
59
|
* Value in unchecked state.
|
|
60
|
+
* @default false
|
|
43
61
|
*/
|
|
44
62
|
falseValue?: any;
|
|
45
63
|
/**
|
|
@@ -70,29 +88,44 @@ export interface CheckboxProps {
|
|
|
70
88
|
|
|
71
89
|
export interface CheckboxSlots {}
|
|
72
90
|
|
|
73
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Defines valid emits in Checkbox component.
|
|
93
|
+
*/
|
|
94
|
+
export interface CheckboxEmits {
|
|
74
95
|
/**
|
|
75
96
|
* Emitted when the page changes.
|
|
76
97
|
* @param {*} value - New page value.
|
|
77
98
|
*/
|
|
78
|
-
'update:page'
|
|
99
|
+
'update:page'(value: any): void;
|
|
79
100
|
/**
|
|
80
101
|
* Callback to invoke on value click.
|
|
81
102
|
* @param {MouseEvent} event - Browser event.
|
|
82
103
|
*/
|
|
83
|
-
click
|
|
104
|
+
click(event: MouseEvent): void;
|
|
84
105
|
/**
|
|
85
106
|
* Callback to invoke on value change.
|
|
86
107
|
* @param {Event} event - Browser event.
|
|
87
108
|
*/
|
|
88
|
-
change
|
|
109
|
+
change(event: Event): void;
|
|
89
110
|
/**
|
|
90
111
|
* Callback to invoke on value change.
|
|
91
112
|
* @param {boolean} value - New value.
|
|
92
113
|
*/
|
|
93
|
-
input
|
|
94
|
-
}
|
|
114
|
+
input(value: boolean): void;
|
|
115
|
+
}
|
|
95
116
|
|
|
117
|
+
/**
|
|
118
|
+
* **PrimeVue - Checkbox**
|
|
119
|
+
*
|
|
120
|
+
* _Accordion groups a collection of contents in tabs._
|
|
121
|
+
*
|
|
122
|
+
* [Live Demo](https://www.primevue.org/checkbox/)
|
|
123
|
+
* --- ---
|
|
124
|
+
* 
|
|
125
|
+
*
|
|
126
|
+
* @group Component
|
|
127
|
+
*
|
|
128
|
+
*/
|
|
96
129
|
declare class Checkbox extends ClassComponent<CheckboxProps, CheckboxSlots, CheckboxEmits> {}
|
|
97
130
|
|
|
98
131
|
declare module '@vue/runtime-core' {
|
|
@@ -101,13 +134,4 @@ declare module '@vue/runtime-core' {
|
|
|
101
134
|
}
|
|
102
135
|
}
|
|
103
136
|
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* Checkbox is an extension to standard checkbox element with theming.
|
|
107
|
-
*
|
|
108
|
-
* Demos:
|
|
109
|
-
*
|
|
110
|
-
* - [Checkbox](https://www.primefaces.org/primevue/checkbox)
|
|
111
|
-
*
|
|
112
|
-
*/
|
|
113
137
|
export default Checkbox;
|
package/checkbox/Checkbox.vue
CHANGED
package/checkbox/checkbox.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/utils"),l=require("vue"),t={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.ObjectUtils.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.ObjectUtils.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const a={class:"p-hidden-accessible"},i=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];t.render=function(e,t,u,s,n,d){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(d.containerClass),onClick:t[2]||(t[2]=e=>d.onClick(e))},[l.createElementVNode("div",a,[l.createElementVNode("input",l.mergeProps({ref:"input",id:u.inputId,type:"checkbox",value:u.value,name:u.name,checked:d.checked,tabindex:u.tabindex,disabled:u.disabled,readonly:u.readonly,required:u.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=e=>d.onFocus(e)),onBlur:t[1]||(t[1]=e=>d.onBlur(e))},u.inputProps),null,16,i)]),l.createElementVNode("div",{ref:"box",class:l.normalizeClass(["p-checkbox-box",u.inputClass,{"p-highlight":d.checked,"p-disabled":u.disabled,"p-focus":n.focused}]),style:l.normalizeStyle(u.inputStyle)},[l.createElementVNode("span",{class:l.normalizeClass(["p-checkbox-icon",{"pi pi-check":d.checked}])},null,2)],6)],2)},module.exports=t;
|
|
1
|
+
"use strict";var e=require("primevue/utils"),l=require("vue"),t={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled&&!this.readonly){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.ObjectUtils.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.ObjectUtils.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const a={class:"p-hidden-accessible"},i=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];t.render=function(e,t,u,s,n,d){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(d.containerClass),onClick:t[2]||(t[2]=e=>d.onClick(e))},[l.createElementVNode("div",a,[l.createElementVNode("input",l.mergeProps({ref:"input",id:u.inputId,type:"checkbox",value:u.value,name:u.name,checked:d.checked,tabindex:u.tabindex,disabled:u.disabled,readonly:u.readonly,required:u.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=e=>d.onFocus(e)),onBlur:t[1]||(t[1]=e=>d.onBlur(e))},u.inputProps),null,16,i)]),l.createElementVNode("div",{ref:"box",class:l.normalizeClass(["p-checkbox-box",u.inputClass,{"p-highlight":d.checked,"p-disabled":u.disabled,"p-focus":n.focused}]),style:l.normalizeStyle(u.inputStyle)},[l.createElementVNode("span",{class:l.normalizeClass(["p-checkbox-icon",{"pi pi-check":d.checked}])},null,2)],6)],2)},module.exports=t;
|
package/checkbox/checkbox.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ObjectUtils as e}from"primevue/utils";import{openBlock as l,createElementBlock as t,normalizeClass as a,createElementVNode as i,mergeProps as u,normalizeStyle as d}from"vue";var s={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const n={class:"p-hidden-accessible"},c=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];s.render=function(e,s,o,r,h,p){return l(),t("div",{class:a(p.containerClass),onClick:s[2]||(s[2]=e=>p.onClick(e))},[i("div",n,[i("input",u({ref:"input",id:o.inputId,type:"checkbox",value:o.value,name:o.name,checked:p.checked,tabindex:o.tabindex,disabled:o.disabled,readonly:o.readonly,required:o.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:s[0]||(s[0]=e=>p.onFocus(e)),onBlur:s[1]||(s[1]=e=>p.onBlur(e))},o.inputProps),null,16,c)]),i("div",{ref:"box",class:a(["p-checkbox-box",o.inputClass,{"p-highlight":p.checked,"p-disabled":o.disabled,"p-focus":h.focused}]),style:d(o.inputStyle)},[i("span",{class:a(["p-checkbox-icon",{"pi pi-check":p.checked}])},null,2)],6)],2)};export{s as default};
|
|
1
|
+
import{ObjectUtils as e}from"primevue/utils";import{openBlock as l,createElementBlock as t,normalizeClass as a,createElementVNode as i,mergeProps as u,normalizeStyle as d}from"vue";var s={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled&&!this.readonly){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const n={class:"p-hidden-accessible"},c=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];s.render=function(e,s,o,r,h,p){return l(),t("div",{class:a(p.containerClass),onClick:s[2]||(s[2]=e=>p.onClick(e))},[i("div",n,[i("input",u({ref:"input",id:o.inputId,type:"checkbox",value:o.value,name:o.name,checked:p.checked,tabindex:o.tabindex,disabled:o.disabled,readonly:o.readonly,required:o.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:s[0]||(s[0]=e=>p.onFocus(e)),onBlur:s[1]||(s[1]=e=>p.onBlur(e))},o.inputProps),null,16,c)]),i("div",{ref:"box",class:a(["p-checkbox-box",o.inputClass,{"p-highlight":p.checked,"p-disabled":o.disabled,"p-focus":h.focused}]),style:d(o.inputStyle)},[i("span",{class:a(["p-checkbox-icon",{"pi pi-check":p.checked}])},null,2)],6)],2)};export{s as default};
|
package/checkbox/checkbox.js
CHANGED
package/checkbox/checkbox.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.checkbox=function(e,l){"use strict";var t={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.ObjectUtils.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.ObjectUtils.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const a={class:"p-hidden-accessible"},i=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];return t.render=function(e,t,u,s,n,d){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(d.containerClass),onClick:t[2]||(t[2]=e=>d.onClick(e))},[l.createElementVNode("div",a,[l.createElementVNode("input",l.mergeProps({ref:"input",id:u.inputId,type:"checkbox",value:u.value,name:u.name,checked:d.checked,tabindex:u.tabindex,disabled:u.disabled,readonly:u.readonly,required:u.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=e=>d.onFocus(e)),onBlur:t[1]||(t[1]=e=>d.onBlur(e))},u.inputProps),null,16,i)]),l.createElementVNode("div",{ref:"box",class:l.normalizeClass(["p-checkbox-box",u.inputClass,{"p-highlight":d.checked,"p-disabled":u.disabled,"p-focus":n.focused}]),style:l.normalizeStyle(u.inputStyle)},[l.createElementVNode("span",{class:l.normalizeClass(["p-checkbox-icon",{"pi pi-check":d.checked}])},null,2)],6)],2)},t}(primevue.utils,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.checkbox=function(e,l){"use strict";var t={name:"Checkbox",emits:["click","update:modelValue","change","input","focus","blur"],props:{value:null,modelValue:null,binary:Boolean,name:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:String,default:null},inputStyle:{type:null,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},data:()=>({focused:!1}),methods:{onClick(l){if(!this.disabled&&!this.readonly){let t;t=this.binary?this.checked?this.falseValue:this.trueValue:this.checked?this.modelValue.filter((l=>!e.ObjectUtils.equals(l,this.value))):this.modelValue?[...this.modelValue,this.value]:[this.value],this.$emit("click",l),this.$emit("update:modelValue",t),this.$emit("change",l),this.$emit("input",t),this.$refs.input.focus()}},onFocus(e){this.focused=!0,this.$emit("focus",e)},onBlur(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked(){return this.binary?this.modelValue===this.trueValue:e.ObjectUtils.contains(this.value,this.modelValue)},containerClass(){return["p-checkbox p-component",{"p-checkbox-checked":this.checked,"p-checkbox-disabled":this.disabled,"p-checkbox-focused":this.focused}]}}};const a={class:"p-hidden-accessible"},i=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label"];return t.render=function(e,t,u,s,n,d){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(d.containerClass),onClick:t[2]||(t[2]=e=>d.onClick(e))},[l.createElementVNode("div",a,[l.createElementVNode("input",l.mergeProps({ref:"input",id:u.inputId,type:"checkbox",value:u.value,name:u.name,checked:d.checked,tabindex:u.tabindex,disabled:u.disabled,readonly:u.readonly,required:u.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=e=>d.onFocus(e)),onBlur:t[1]||(t[1]=e=>d.onBlur(e))},u.inputProps),null,16,i)]),l.createElementVNode("div",{ref:"box",class:l.normalizeClass(["p-checkbox-box",u.inputClass,{"p-highlight":d.checked,"p-disabled":u.disabled,"p-focus":n.focused}]),style:l.normalizeStyle(u.inputStyle)},[l.createElementVNode("span",{class:l.normalizeClass(["p-checkbox-icon",{"pi pi-check":d.checked}])},null,2)],6)],2)},t}(primevue.utils,Vue);
|