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/treetable/TreeTable.d.ts
CHANGED
|
@@ -1,31 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* TreeTable is used to display hierarchical data in tabular format.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/treetable/)
|
|
6
|
+
*
|
|
7
|
+
* @module treetable
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { VNode } from 'vue';
|
|
2
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
11
|
import { TreeNode } from '../tree';
|
|
12
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
4
13
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type TreeTableMultiSortMetaType = TreeTableSortMeta[] | undefined | null;
|
|
10
|
-
|
|
11
|
-
type TreeTableSortOrderType = 1 | 0 | -1 | undefined | null;
|
|
12
|
-
|
|
13
|
-
type TreeTableSortModeType = 'single' | 'multiple' | undefined;
|
|
14
|
-
|
|
15
|
-
type TreeTableFilterMatchModeType = 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | undefined;
|
|
16
|
-
|
|
17
|
-
type TreeTableSelectionModeType = 'single' | 'multiple' | 'checkbox' | undefined;
|
|
18
|
-
|
|
19
|
-
type TreeTableFilterModeType = 'lenient' | 'strict' | undefined;
|
|
20
|
-
|
|
21
|
-
type TreeTableColumnResizeModeType = 'fit' | 'expand' | undefined;
|
|
22
|
-
|
|
23
|
-
type TreeTableScrollDirectionType = 'vertical' | 'horizontal' | 'both' | undefined;
|
|
24
|
-
|
|
25
|
-
type TreeTableScrollHeightType = 'flex' | string | undefined;
|
|
26
|
-
|
|
27
|
-
type TreeTableResponsiveLayoutType = 'stack' | 'scroll' | undefined;
|
|
28
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Custom treetable filter metadata.
|
|
16
|
+
*/
|
|
29
17
|
export interface TreeTableFilterMetaData {
|
|
30
18
|
/**
|
|
31
19
|
* Filter value
|
|
@@ -33,11 +21,13 @@ export interface TreeTableFilterMetaData {
|
|
|
33
21
|
value: any;
|
|
34
22
|
/**
|
|
35
23
|
* Filter match mode
|
|
36
|
-
* @see TreeTableFilterMatchModeType
|
|
37
24
|
*/
|
|
38
|
-
matchMode:
|
|
25
|
+
matchMode: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | undefined;
|
|
39
26
|
}
|
|
40
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Custom operator filter metadata.
|
|
30
|
+
*/
|
|
41
31
|
export interface TreeTableOperatorFilterMetaData {
|
|
42
32
|
/**
|
|
43
33
|
* Filter operator
|
|
@@ -50,6 +40,9 @@ export interface TreeTableOperatorFilterMetaData {
|
|
|
50
40
|
constraints: TreeTableFilterMetaData[];
|
|
51
41
|
}
|
|
52
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Custom filter metadata.
|
|
45
|
+
*/
|
|
53
46
|
export interface TreeTableFilterMeta {
|
|
54
47
|
/**
|
|
55
48
|
* Filter keys
|
|
@@ -58,6 +51,10 @@ export interface TreeTableFilterMeta {
|
|
|
58
51
|
[key: string]: string | TreeTableFilterMetaData | TreeTableOperatorFilterMetaData;
|
|
59
52
|
}
|
|
60
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Custom sort event.
|
|
56
|
+
* @see {@link TreeTableEmits.sort}
|
|
57
|
+
*/
|
|
61
58
|
export interface TreeTableSortEvent {
|
|
62
59
|
/**
|
|
63
60
|
* Browser event.
|
|
@@ -73,19 +70,16 @@ export interface TreeTableSortEvent {
|
|
|
73
70
|
rows: number;
|
|
74
71
|
/**
|
|
75
72
|
* Field to sort against
|
|
76
|
-
* @see TreeTableSortFieldType
|
|
77
73
|
*/
|
|
78
|
-
sortField:
|
|
74
|
+
sortField: string | ((item: any) => string) | undefined;
|
|
79
75
|
/**
|
|
80
76
|
* Sort order as integer
|
|
81
|
-
* @see TreeTableSortOrderType
|
|
82
77
|
*/
|
|
83
|
-
sortOrder:
|
|
78
|
+
sortOrder: 1 | 0 | -1 | undefined | null;
|
|
84
79
|
/**
|
|
85
80
|
* MultiSort metadata
|
|
86
|
-
* @see TreeTableMultiSortMetaType
|
|
87
81
|
*/
|
|
88
|
-
multiSortMeta:
|
|
82
|
+
multiSortMeta: TreeTableSortMeta[] | undefined | null;
|
|
89
83
|
/**
|
|
90
84
|
* Collection of active filters
|
|
91
85
|
* @see TreeTableFilterMeta
|
|
@@ -93,12 +87,13 @@ export interface TreeTableSortEvent {
|
|
|
93
87
|
filters: TreeTableFilterMeta;
|
|
94
88
|
/**
|
|
95
89
|
* Match modes per field
|
|
96
|
-
* @see TreeTableFilterMatchModeType
|
|
97
90
|
*/
|
|
98
|
-
filterMatchModes:
|
|
91
|
+
filterMatchModes: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | undefined;
|
|
99
92
|
}
|
|
100
93
|
|
|
101
94
|
/**
|
|
95
|
+
* Custom page event.
|
|
96
|
+
* @see {@link TreeTableEmits.sort}
|
|
102
97
|
* @extends TreeTableSortEvent
|
|
103
98
|
*/
|
|
104
99
|
export interface TreeTablePageEvent extends TreeTableSortEvent {
|
|
@@ -113,6 +108,8 @@ export interface TreeTablePageEvent extends TreeTableSortEvent {
|
|
|
113
108
|
}
|
|
114
109
|
|
|
115
110
|
/**
|
|
111
|
+
* Custom filter event.
|
|
112
|
+
* @see {@link TreeTableEmits.sort}
|
|
116
113
|
* @extends TreeTableSortEvent
|
|
117
114
|
*/
|
|
118
115
|
export interface TreeTableFilterEvent extends TreeTableSortEvent {
|
|
@@ -122,6 +119,9 @@ export interface TreeTableFilterEvent extends TreeTableSortEvent {
|
|
|
122
119
|
filteredValue: any;
|
|
123
120
|
}
|
|
124
121
|
|
|
122
|
+
/**
|
|
123
|
+
* Custom sort metadata.
|
|
124
|
+
*/
|
|
125
125
|
export interface TreeTableSortMeta {
|
|
126
126
|
/**
|
|
127
127
|
* Column field
|
|
@@ -130,9 +130,12 @@ export interface TreeTableSortMeta {
|
|
|
130
130
|
/**
|
|
131
131
|
* Column sort order
|
|
132
132
|
*/
|
|
133
|
-
order:
|
|
133
|
+
order: 1 | 0 | -1 | undefined | null;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Custom expanded keys metadata.
|
|
138
|
+
*/
|
|
136
139
|
export interface TreeTableExpandedKeys {
|
|
137
140
|
/**
|
|
138
141
|
* Optional
|
|
@@ -140,6 +143,9 @@ export interface TreeTableExpandedKeys {
|
|
|
140
143
|
[key: string]: any;
|
|
141
144
|
}
|
|
142
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Custom selection keys metadata.
|
|
148
|
+
*/
|
|
143
149
|
export interface TreeTableSelectionKeys {
|
|
144
150
|
/**
|
|
145
151
|
* Optional
|
|
@@ -147,6 +153,9 @@ export interface TreeTableSelectionKeys {
|
|
|
147
153
|
[key: string]: any;
|
|
148
154
|
}
|
|
149
155
|
|
|
156
|
+
/**
|
|
157
|
+
* Defines valid properties in TreeTable component.
|
|
158
|
+
*/
|
|
150
159
|
export interface TreeTableProps {
|
|
151
160
|
/**
|
|
152
161
|
* An array of treenodes.
|
|
@@ -164,13 +173,12 @@ export interface TreeTableProps {
|
|
|
164
173
|
selectionKeys?: TreeTableSelectionKeys;
|
|
165
174
|
/**
|
|
166
175
|
* Defines the selection mode.
|
|
167
|
-
* @see TreeTableSelectionModeType
|
|
168
176
|
*/
|
|
169
|
-
selectionMode?:
|
|
177
|
+
selectionMode?: 'single' | 'multiple' | 'checkbox' | undefined;
|
|
170
178
|
/**
|
|
171
179
|
* Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually.
|
|
172
180
|
* On touch enabled devices, metaKeySelection is turned off automatically.
|
|
173
|
-
*
|
|
181
|
+
* @defaultValue true
|
|
174
182
|
*/
|
|
175
183
|
metaKeySelection?: boolean | undefined;
|
|
176
184
|
/**
|
|
@@ -179,7 +187,7 @@ export interface TreeTableProps {
|
|
|
179
187
|
rows?: number | undefined;
|
|
180
188
|
/**
|
|
181
189
|
* Index of the first row to be displayed.
|
|
182
|
-
*
|
|
190
|
+
* @defaultValue 0
|
|
183
191
|
*/
|
|
184
192
|
first?: number | undefined;
|
|
185
193
|
/**
|
|
@@ -192,17 +200,16 @@ export interface TreeTableProps {
|
|
|
192
200
|
paginator?: boolean | undefined;
|
|
193
201
|
/**
|
|
194
202
|
* Position of the paginator, options are 'top','bottom' or 'both'.
|
|
195
|
-
* @
|
|
196
|
-
* Default value is 'bottom'.
|
|
203
|
+
* @defaultValue bottom
|
|
197
204
|
*/
|
|
198
|
-
paginatorPosition?:
|
|
205
|
+
paginatorPosition?: 'top' | 'bottom' | 'both' | undefined;
|
|
199
206
|
/**
|
|
200
207
|
* Whether to show it even there is only one page.
|
|
201
|
-
*
|
|
208
|
+
* @defaultValue true
|
|
202
209
|
*/
|
|
203
210
|
alwaysShowPaginator?: boolean | undefined;
|
|
204
211
|
/**
|
|
205
|
-
* Template of the paginator. It can be customized using the template property using the predefined keys
|
|
212
|
+
* Template of the paginator. It can be customized using the template property using the predefined keys. Here are the available elements that can be placed inside a paginator in any order.
|
|
206
213
|
*
|
|
207
214
|
* - FirstPageLink
|
|
208
215
|
* - PrevPageLink
|
|
@@ -213,11 +220,13 @@ export interface TreeTableProps {
|
|
|
213
220
|
* - JumpToPageDropdown
|
|
214
221
|
* - JumpToPageInput
|
|
215
222
|
* - CurrentPageReport
|
|
223
|
+
*
|
|
224
|
+
* @defaultValue FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown
|
|
216
225
|
*/
|
|
217
226
|
paginatorTemplate?: string | undefined;
|
|
218
227
|
/**
|
|
219
228
|
* Number of page links to display.
|
|
220
|
-
*
|
|
229
|
+
* @defaultValue 5
|
|
221
230
|
*/
|
|
222
231
|
pageLinkSize?: number | undefined;
|
|
223
232
|
/**
|
|
@@ -225,7 +234,7 @@ export interface TreeTableProps {
|
|
|
225
234
|
*/
|
|
226
235
|
rowsPerPageOptions?: number[] | undefined;
|
|
227
236
|
/**
|
|
228
|
-
* Template of the current page report element. It displays information about the pagination state.
|
|
237
|
+
* Template of the current page report element. It displays information about the pagination state.
|
|
229
238
|
*
|
|
230
239
|
* - {currentPage}
|
|
231
240
|
* - {totalPages}
|
|
@@ -233,56 +242,60 @@ export interface TreeTableProps {
|
|
|
233
242
|
* - {first}
|
|
234
243
|
* - {last}
|
|
235
244
|
* - {totalRecords}
|
|
245
|
+
*
|
|
246
|
+
* @defaultValue '({currentPage} of {totalPages})'
|
|
236
247
|
*/
|
|
237
248
|
currentPageReportTemplate?: string | undefined;
|
|
238
249
|
/**
|
|
239
250
|
* Defines if data is loaded and interacted with in lazy manner.
|
|
251
|
+
* @defaultValue false
|
|
240
252
|
*/
|
|
241
253
|
lazy?: boolean | undefined;
|
|
242
254
|
/**
|
|
243
255
|
* Displays a loader to indicate data load is in progress.
|
|
256
|
+
* @defaultValue false
|
|
244
257
|
*/
|
|
245
258
|
loading?: boolean | undefined;
|
|
246
259
|
/**
|
|
247
260
|
* The icon to show while indicating data load is in progress.
|
|
248
|
-
*
|
|
261
|
+
* @defaultValue pi pi-spinner
|
|
249
262
|
*/
|
|
250
263
|
loadingIcon?: string | undefined;
|
|
251
264
|
/**
|
|
252
265
|
* When enabled, background of the rows change on hover.
|
|
266
|
+
* @defaultValue false
|
|
253
267
|
*/
|
|
254
268
|
rowHover?: boolean | undefined;
|
|
255
269
|
/**
|
|
256
270
|
* Whether the cell widths scale according to their content or not.
|
|
271
|
+
* @defaultValue false
|
|
257
272
|
*/
|
|
258
273
|
autoLayout?: boolean | undefined;
|
|
259
274
|
/**
|
|
260
275
|
* Property name or a getter function of a row data used for sorting by default.
|
|
261
|
-
* @see TreeTableSortFieldType
|
|
262
276
|
*/
|
|
263
|
-
sortField?:
|
|
277
|
+
sortField?: string | ((item: any) => string) | undefined | undefined;
|
|
264
278
|
/**
|
|
265
279
|
* Order to sort the data by default.
|
|
266
280
|
*/
|
|
267
281
|
sortOrder?: number | undefined;
|
|
268
282
|
/**
|
|
269
283
|
* Default sort order of an unsorted column.
|
|
270
|
-
*
|
|
284
|
+
* @defaultValue 1
|
|
271
285
|
*/
|
|
272
286
|
defaultSortOrder?: number | undefined;
|
|
273
287
|
/**
|
|
274
288
|
* An array of SortMeta objects to sort the data by default in multiple sort mode.
|
|
275
|
-
* @see TreeTableMultiSortMetaType
|
|
276
289
|
*/
|
|
277
|
-
multiSortMeta?:
|
|
290
|
+
multiSortMeta?: TreeTableSortMeta[] | undefined | null;
|
|
278
291
|
/**
|
|
279
292
|
* Defines whether sorting works on single column or on multiple columns.
|
|
280
|
-
* @
|
|
281
|
-
* Default value is 'single'.
|
|
293
|
+
* @defaultValue single
|
|
282
294
|
*/
|
|
283
|
-
sortMode?:
|
|
295
|
+
sortMode?: 'single' | 'multiple' | undefined;
|
|
284
296
|
/**
|
|
285
297
|
* When enabled, columns can have an un-sorted state.
|
|
298
|
+
* @defaultValue false
|
|
286
299
|
*/
|
|
287
300
|
removableSort?: boolean | undefined;
|
|
288
301
|
/**
|
|
@@ -292,10 +305,9 @@ export interface TreeTableProps {
|
|
|
292
305
|
filters?: TreeTableFilterMeta;
|
|
293
306
|
/**
|
|
294
307
|
* Mode for filtering.
|
|
295
|
-
* @
|
|
296
|
-
*
|
|
308
|
+
* @defaultValue lenient
|
|
297
309
|
*/
|
|
298
|
-
filterMode?:
|
|
310
|
+
filterMode?: 'lenient' | 'strict' | undefined;
|
|
299
311
|
/**
|
|
300
312
|
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
301
313
|
*/
|
|
@@ -306,147 +318,162 @@ export interface TreeTableProps {
|
|
|
306
318
|
resizableColumns?: boolean | undefined;
|
|
307
319
|
/**
|
|
308
320
|
* Defines whether the overall table width should change on column resize.
|
|
309
|
-
* @
|
|
310
|
-
* Default value is 'fit'.
|
|
321
|
+
* @defaultValue fit
|
|
311
322
|
*/
|
|
312
|
-
columnResizeMode?:
|
|
323
|
+
columnResizeMode?: 'fit' | 'expand' | undefined;
|
|
313
324
|
/**
|
|
314
325
|
* Indentation factor as rem value for children nodes.
|
|
315
|
-
*
|
|
326
|
+
* @defaultValue 1
|
|
316
327
|
*/
|
|
317
328
|
indentation?: number | undefined;
|
|
318
329
|
/**
|
|
319
330
|
* Whether to show grid lines between cells.
|
|
331
|
+
* @defaultValue false
|
|
320
332
|
*/
|
|
321
333
|
showGridlines?: boolean | undefined;
|
|
322
334
|
/**
|
|
323
335
|
* When specified, enables horizontal and/or vertical scrolling.
|
|
336
|
+
* @defaultValue false
|
|
324
337
|
*/
|
|
325
338
|
scrollable?: boolean | undefined;
|
|
326
339
|
/**
|
|
327
340
|
* Height of the scroll viewport in fixed pixels or the 'flex' keyword for a dynamic size.
|
|
328
|
-
* @see TreeTableScrollHeightType
|
|
329
341
|
*/
|
|
330
|
-
scrollHeight?:
|
|
342
|
+
scrollHeight?: 'flex' | string | undefined;
|
|
331
343
|
/**
|
|
332
344
|
* Orientation of the scrolling.
|
|
333
|
-
* @
|
|
334
|
-
* Default value is 'vertical'.
|
|
345
|
+
* @defaultValue vertical
|
|
335
346
|
*/
|
|
336
|
-
scrollDirection?:
|
|
347
|
+
scrollDirection?: 'vertical' | 'horizontal' | 'both' | undefined;
|
|
337
348
|
/**
|
|
338
349
|
* Defines the responsive mode, currently only option is scroll.
|
|
339
|
-
* @
|
|
340
|
-
* Default value is 'stack'.
|
|
350
|
+
* @defaultValue stack
|
|
341
351
|
*/
|
|
342
|
-
responsiveLayout?:
|
|
352
|
+
responsiveLayout?: 'stack' | 'scroll' | undefined;
|
|
343
353
|
/**
|
|
344
354
|
* Props to pass to the table element.
|
|
345
355
|
*/
|
|
346
356
|
tableProps?: any | undefined;
|
|
347
357
|
}
|
|
348
358
|
|
|
359
|
+
/**
|
|
360
|
+
* Defines valid slots in TreeTable component.
|
|
361
|
+
*/
|
|
349
362
|
export interface TreeTableSlots {
|
|
350
363
|
/**
|
|
351
364
|
* Custom header template.
|
|
352
365
|
*/
|
|
353
|
-
header
|
|
366
|
+
header(): VNode[];
|
|
354
367
|
/**
|
|
355
368
|
* Custom footer template.
|
|
356
369
|
*/
|
|
357
|
-
footer
|
|
370
|
+
footer(): VNode[];
|
|
358
371
|
/**
|
|
359
372
|
* Custom paginator start template.
|
|
360
373
|
*/
|
|
361
|
-
paginatorstart
|
|
374
|
+
paginatorstart(): VNode[];
|
|
362
375
|
/**
|
|
363
376
|
* Custom paginator end template.
|
|
364
377
|
*/
|
|
365
|
-
paginatorend
|
|
378
|
+
paginatorend(): VNode[];
|
|
366
379
|
/**
|
|
367
380
|
* Custom empty template.
|
|
368
381
|
*/
|
|
369
|
-
empty
|
|
382
|
+
empty(): VNode[];
|
|
370
383
|
}
|
|
371
384
|
|
|
372
|
-
|
|
385
|
+
/**
|
|
386
|
+
* Defines valid emits in TreeTable component.
|
|
387
|
+
*/
|
|
388
|
+
export interface TreeTableEmits {
|
|
373
389
|
/**
|
|
374
390
|
* Emitted when the expanded keys change.
|
|
375
391
|
* @param {TreeNode} value - New expanded keys.
|
|
376
392
|
*/
|
|
377
|
-
'update:expandedKeys'
|
|
393
|
+
'update:expandedKeys'(value: TreeTableExpandedKeys): void;
|
|
378
394
|
/**
|
|
379
395
|
* Emitted when the selection keys change.
|
|
380
396
|
* @param {TreeSelectionKeys} value - New selection keys.
|
|
381
397
|
*/
|
|
382
|
-
'update:selectionKeys'
|
|
398
|
+
'update:selectionKeys'(event: TreeTableSelectionKeys): void;
|
|
383
399
|
/**
|
|
384
400
|
* Emitted when the first changes.
|
|
385
401
|
* @param {number} value - New value.
|
|
386
402
|
*/
|
|
387
|
-
'update:first'
|
|
403
|
+
'update:first'(value: number): void;
|
|
388
404
|
/**
|
|
389
405
|
* Emitted when the rows changes.
|
|
390
406
|
* @param {number} value - New value.
|
|
391
407
|
*/
|
|
392
|
-
'update:rows'
|
|
408
|
+
'update:rows'(value: number): void;
|
|
393
409
|
/**
|
|
394
410
|
* Emitted when the sortField changes.
|
|
395
411
|
* @param {string} value - New value.
|
|
396
412
|
*/
|
|
397
|
-
'update:sortField'
|
|
413
|
+
'update:sortField'(value: string): void;
|
|
398
414
|
/**
|
|
399
415
|
* Emitted when the sortOrder changes.
|
|
400
416
|
* @param {number | undefined} value - New value.
|
|
401
417
|
*/
|
|
402
|
-
'update:sortOrder'
|
|
418
|
+
'update:sortOrder'(value: number | undefined): void;
|
|
403
419
|
/**
|
|
404
420
|
* Emitted when the multiSortMeta changes.
|
|
405
|
-
* @param {
|
|
421
|
+
* @param {TreeTableSortMeta[] | undefined | null} value - New value.
|
|
406
422
|
*/
|
|
407
|
-
'update:multiSortMeta'
|
|
423
|
+
'update:multiSortMeta'(value: TreeTableSortMeta[] | undefined | null): void;
|
|
408
424
|
/**
|
|
409
425
|
* Callback to invoke on pagination. Sort and Filter information is also available for lazy loading implementation.
|
|
410
426
|
* @param {TreeTablePageEvent} event - Custom page event.
|
|
411
427
|
*/
|
|
412
|
-
page
|
|
428
|
+
page(event: TreeTablePageEvent): void;
|
|
413
429
|
/**
|
|
414
430
|
* Callback to invoke on sort. Page and Filter information is also available for lazy loading implementation.
|
|
415
431
|
* @param {TreeTableSortEvent} event - Custom sort event.
|
|
416
432
|
*/
|
|
417
|
-
sort
|
|
433
|
+
sort(event: TreeTableSortEvent): void;
|
|
418
434
|
/**
|
|
419
435
|
* Event to emit after filtering, not triggered in lazy mode.
|
|
420
436
|
* @param {TreeTableFilterEvent} event - Custom filter event.
|
|
421
437
|
*/
|
|
422
|
-
filter
|
|
438
|
+
filter(event: TreeTableFilterEvent): void;
|
|
423
439
|
/**
|
|
424
440
|
* Callback to invoke when a node is selected.
|
|
425
441
|
* @param {TreeNode} node - Node instance.
|
|
426
442
|
*/
|
|
427
|
-
'node-select'
|
|
443
|
+
'node-select'(node: TreeNode): void;
|
|
428
444
|
/**
|
|
429
445
|
* Callback to invoke when a node is unselected.
|
|
430
446
|
* @param {TreeNode} node - Node instance.
|
|
431
447
|
*/
|
|
432
|
-
'node-unselect'
|
|
448
|
+
'node-unselect'(node: TreeNode): void;
|
|
433
449
|
/**
|
|
434
450
|
* Callback to invoke when a node is expanded.
|
|
435
451
|
* @param {TreeNode} node - Node instance.
|
|
436
452
|
*/
|
|
437
|
-
'node-expand'
|
|
453
|
+
'node-expand'(node: TreeNode): void;
|
|
438
454
|
/**
|
|
439
455
|
* Callback to invoke when a node is collapsed.
|
|
440
456
|
* @param {TreeNode} node - Node instance.
|
|
441
457
|
*/
|
|
442
|
-
'node-collapse'
|
|
458
|
+
'node-collapse'(node: TreeNode): void;
|
|
443
459
|
/**
|
|
444
460
|
* Callback to invoke when a column is resized.
|
|
445
461
|
* @param {Event} event - Browser event.
|
|
446
462
|
*/
|
|
447
|
-
'column-resize-end'
|
|
448
|
-
}
|
|
463
|
+
'column-resize-end'(event: Event): void;
|
|
464
|
+
}
|
|
449
465
|
|
|
466
|
+
/**
|
|
467
|
+
* **PrimeVue - TreeTable**
|
|
468
|
+
*
|
|
469
|
+
* _TreeTable is used to display hierarchical data in tabular format._
|
|
470
|
+
*
|
|
471
|
+
* [Live Demo](https://www.primevue.org/treetable/)
|
|
472
|
+
* --- ---
|
|
473
|
+
* 
|
|
474
|
+
*
|
|
475
|
+
* @group Component
|
|
476
|
+
*/
|
|
450
477
|
declare class TreeTable extends ClassComponent<TreeTableProps, TreeTableSlots, TreeTableEmits> {}
|
|
451
478
|
|
|
452
479
|
declare module '@vue/runtime-core' {
|
|
@@ -455,17 +482,4 @@ declare module '@vue/runtime-core' {
|
|
|
455
482
|
}
|
|
456
483
|
}
|
|
457
484
|
|
|
458
|
-
/**
|
|
459
|
-
*
|
|
460
|
-
* TreeTable is used to display hierarchical data in tabular format.
|
|
461
|
-
*
|
|
462
|
-
* Helper Components:
|
|
463
|
-
*
|
|
464
|
-
* - Column
|
|
465
|
-
*
|
|
466
|
-
* Demos:
|
|
467
|
-
*
|
|
468
|
-
* - [TreeTable](https://www.primefaces.org/primevue/treetable)
|
|
469
|
-
*
|
|
470
|
-
*/
|
|
471
485
|
export default TreeTable;
|
|
@@ -1,13 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* TriStateCheckbox is used to select either 'true', 'false' or 'null' as the value.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primevue.org/tristatecheckbox/)
|
|
6
|
+
*
|
|
7
|
+
* @module tristatecheckbox
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import { InputHTMLAttributes } from 'vue';
|
|
2
11
|
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
|
|
3
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Defines valid properties in TriStateCheckbox component.
|
|
15
|
+
*/
|
|
4
16
|
export interface TriStateCheckboxProps {
|
|
5
17
|
/**
|
|
6
18
|
* Value of the component.
|
|
19
|
+
* @defaultValue null
|
|
7
20
|
*/
|
|
8
21
|
modelValue?: Nullable<boolean>;
|
|
9
22
|
/**
|
|
10
23
|
* When present, it specifies that the component should be disabled.
|
|
24
|
+
* @defaultValue false
|
|
11
25
|
*/
|
|
12
26
|
disabled?: boolean | undefined;
|
|
13
27
|
/**
|
|
@@ -32,16 +46,34 @@ export interface TriStateCheckboxProps {
|
|
|
32
46
|
'aria-label'?: string | undefined;
|
|
33
47
|
}
|
|
34
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Defines valid slots in TriStateCheckbox component.
|
|
51
|
+
*/
|
|
35
52
|
export interface TriStateCheckboxSlots {}
|
|
36
53
|
|
|
37
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Defines valid emits in TriStateCheckbox component.
|
|
56
|
+
*/
|
|
57
|
+
export interface TriStateCheckboxEmits {
|
|
38
58
|
/**
|
|
39
59
|
* Emitted when the value changes.
|
|
40
60
|
* @param {boolean|null|undefined} value - New value.
|
|
41
61
|
*/
|
|
42
|
-
'update:modelValue'
|
|
43
|
-
}
|
|
62
|
+
'update:modelValue'(value: Nullable<boolean>): void;
|
|
63
|
+
}
|
|
44
64
|
|
|
65
|
+
/**
|
|
66
|
+
* **PrimeVue - TriStateCheckbox**
|
|
67
|
+
*
|
|
68
|
+
* _TriStateCheckbox is used to select either 'true', 'false' or 'null' as the value._
|
|
69
|
+
*
|
|
70
|
+
* [Live Demo](https://www.primevue.org/tristatecheckbox/)
|
|
71
|
+
* --- ---
|
|
72
|
+
* 
|
|
73
|
+
*
|
|
74
|
+
* @group Component
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
45
77
|
declare class TriStateCheckbox extends ClassComponent<TriStateCheckboxProps, TriStateCheckboxSlots, TriStateCheckboxEmits> {}
|
|
46
78
|
|
|
47
79
|
declare module '@vue/runtime-core' {
|
|
@@ -50,13 +82,4 @@ declare module '@vue/runtime-core' {
|
|
|
50
82
|
}
|
|
51
83
|
}
|
|
52
84
|
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* TriStateCheckbox is used to select either 'true', 'false' or 'null' as the value.
|
|
56
|
-
*
|
|
57
|
-
* Demos:
|
|
58
|
-
*
|
|
59
|
-
* - [TriStateCheckbox](https://www.primefaces.org/primevue/tristatecheckbox)
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
85
|
export default TriStateCheckbox;
|
package/ts-helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AllowedComponentProps, ComponentCustomProps, ObjectEmitsOptions, VNodeProps } from 'vue';
|
|
2
2
|
|
|
3
3
|
declare type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ declare type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options =
|
|
|
14
14
|
}[Event]
|
|
15
15
|
>;
|
|
16
16
|
|
|
17
|
-
export class ClassComponent<Props, Slots, Emits
|
|
17
|
+
export class ClassComponent<Props, Slots, Emits> {
|
|
18
18
|
$props: Props & PublicProps;
|
|
19
19
|
$slots: Slots;
|
|
20
20
|
$emit: EmitFn<Emits>;
|
package/utils/utils.cjs.js
CHANGED
|
@@ -582,21 +582,24 @@ var DomHandler = {
|
|
|
582
582
|
},
|
|
583
583
|
|
|
584
584
|
isClickable(element) {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
585
|
+
if (element) {
|
|
586
|
+
const targetNode = element.nodeName;
|
|
587
|
+
const parentNode = element.parentElement && element.parentElement.nodeName;
|
|
588
|
+
|
|
589
|
+
return (
|
|
590
|
+
targetNode === 'INPUT' ||
|
|
591
|
+
targetNode === 'TEXTAREA' ||
|
|
592
|
+
targetNode === 'BUTTON' ||
|
|
593
|
+
targetNode === 'A' ||
|
|
594
|
+
parentNode === 'INPUT' ||
|
|
595
|
+
parentNode === 'TEXTAREA' ||
|
|
596
|
+
parentNode === 'BUTTON' ||
|
|
597
|
+
parentNode === 'A' ||
|
|
598
|
+
!!element.closest('.p-button, .p-checkbox, .p-radiobutton')
|
|
599
|
+
);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
return false;
|
|
600
603
|
},
|
|
601
604
|
|
|
602
605
|
applyStyle(element, style) {
|
|
@@ -817,15 +820,10 @@ var ObjectUtils = {
|
|
|
817
820
|
},
|
|
818
821
|
|
|
819
822
|
reorderArray(value, from, to) {
|
|
820
|
-
let target;
|
|
821
|
-
|
|
822
823
|
if (value && from !== to) {
|
|
823
824
|
if (to >= value.length) {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
while (target-- + 1) {
|
|
827
|
-
value.push(undefined);
|
|
828
|
-
}
|
|
825
|
+
to %= value.length;
|
|
826
|
+
from %= value.length;
|
|
829
827
|
}
|
|
830
828
|
|
|
831
829
|
value.splice(to, 0, value.splice(from, 1)[0]);
|