primevue 4.3.1 → 4.3.3
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/accordionheader/AccordionHeader.vue +8 -2
- package/accordionheader/index.mjs +8 -1
- package/accordionheader/index.mjs.map +1 -1
- package/autocomplete/AutoComplete.vue +72 -16
- package/autocomplete/index.d.ts +3 -3
- package/autocomplete/index.mjs +84 -37
- package/autocomplete/index.mjs.map +1 -1
- package/avatar/Avatar.vue +13 -4
- package/avatar/index.d.ts +3 -3
- package/avatar/index.mjs +26 -6
- package/avatar/index.mjs.map +1 -1
- package/badge/Badge.vue +13 -2
- package/badge/index.d.ts +1 -1
- package/badge/index.mjs +18 -3
- package/badge/index.mjs.map +1 -1
- package/blockui/BlockUI.vue +15 -4
- package/blockui/index.mjs +13 -4
- package/blockui/index.mjs.map +1 -1
- package/button/Button.vue +30 -3
- package/button/index.d.ts +3 -7
- package/button/index.mjs +28 -9
- package/button/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +1 -1
- package/cascadeselect/index.d.ts +2 -2
- package/cascadeselect/index.mjs +1 -2
- package/cascadeselect/index.mjs.map +1 -1
- package/checkbox/Checkbox.vue +15 -5
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.mjs +29 -7
- package/checkbox/index.mjs.map +1 -1
- package/chip/BaseChip.vue +1 -1
- package/chip/Chip.vue +9 -1
- package/chip/index.d.ts +1 -1
- package/chip/index.mjs +13 -3
- package/chip/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +10 -2
- package/colorpicker/index.d.ts +1 -1
- package/colorpicker/index.mjs +9 -2
- package/colorpicker/index.mjs.map +1 -1
- package/column/index.d.ts +3 -3
- package/columngroup/index.d.ts +2 -2
- package/confirmationoptions/index.d.ts +1 -1
- package/datatable/BodyCell.vue +4 -1
- package/datatable/BodyRow.vue +2 -0
- package/datatable/ColumnFilter.vue +1 -1
- package/datatable/DataTable.vue +103 -44
- package/datatable/HeaderCheckbox.vue +2 -2
- package/datatable/RowCheckbox.vue +1 -1
- package/datatable/TableBody.vue +12 -1
- package/datatable/TableFooter.vue +9 -1
- package/datatable/TableHeader.vue +9 -2
- package/datatable/index.d.ts +45 -37
- package/datatable/index.mjs +170 -101
- package/datatable/index.mjs.map +1 -1
- package/dataview/DataView.vue +4 -0
- package/dataview/index.d.ts +61 -4
- package/dataview/index.mjs +6 -2
- package/dataview/index.mjs.map +1 -1
- package/datepicker/DatePicker.vue +370 -234
- package/datepicker/index.d.ts +162 -6
- package/datepicker/index.mjs +644 -384
- package/datepicker/index.mjs.map +1 -1
- package/dialog/Dialog.vue +48 -39
- package/dialog/index.d.ts +26 -1
- package/dialog/index.mjs +73 -50
- package/dialog/index.mjs.map +1 -1
- package/divider/Divider.vue +13 -3
- package/divider/index.d.ts +4 -4
- package/divider/index.mjs +18 -5
- package/divider/index.mjs.map +1 -1
- package/dock/index.d.ts +4 -4
- package/drawer/Drawer.vue +30 -20
- package/drawer/index.d.ts +12 -2
- package/drawer/index.mjs +42 -25
- package/drawer/index.mjs.map +1 -1
- package/fieldset/Fieldset.vue +8 -2
- package/fieldset/index.mjs +20 -10
- package/fieldset/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +1 -1
- package/fileupload/index.d.ts +2 -2
- package/fileupload/index.mjs +2 -2
- package/fileupload/index.mjs.map +1 -1
- package/floatlabel/index.d.ts +2 -2
- package/galleria/Galleria.vue +39 -3
- package/galleria/GalleriaItem.vue +8 -9
- package/galleria/index.d.ts +3 -3
- package/galleria/index.mjs +48 -11
- package/galleria/index.mjs.map +1 -1
- package/inplace/Inplace.vue +1 -1
- package/inplace/index.mjs +3 -2
- package/inplace/index.mjs.map +1 -1
- package/inputchips/index.d.ts +2 -2
- package/inputmask/InputMask.vue +15 -1
- package/inputmask/index.d.ts +3 -3
- package/inputmask/index.mjs +12 -1
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/BaseInputNumber.vue +4 -0
- package/inputnumber/InputNumber.vue +29 -14
- package/inputnumber/index.d.ts +6 -6
- package/inputnumber/index.mjs +47 -25
- package/inputnumber/index.mjs.map +1 -1
- package/inputotp/index.d.ts +3 -3
- package/inputtext/InputText.vue +10 -1
- package/inputtext/index.d.ts +4 -5
- package/inputtext/index.mjs +14 -1
- package/inputtext/index.mjs.map +1 -1
- package/keyfilter/index.mjs +12 -19
- package/keyfilter/index.mjs.map +1 -1
- package/knob/Knob.vue +1 -1
- package/knob/index.mjs +1 -1
- package/knob/index.mjs.map +1 -1
- package/listbox/Listbox.vue +9 -2
- package/listbox/index.mjs +11 -3
- package/listbox/index.mjs.map +1 -1
- package/megamenu/index.d.ts +2 -2
- package/menu/Menu.vue +8 -2
- package/menu/Menuitem.vue +14 -4
- package/menu/index.mjs +36 -16
- package/menu/index.mjs.map +1 -1
- package/message/Message.vue +16 -7
- package/message/index.d.ts +2 -2
- package/message/index.mjs +35 -13
- package/message/index.mjs.map +1 -1
- package/metergroup/MeterGroup.vue +9 -3
- package/metergroup/MeterGroupLabel.vue +10 -1
- package/metergroup/index.mjs +32 -7
- package/metergroup/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +41 -6
- package/multiselect/index.d.ts +3 -3
- package/multiselect/index.mjs +53 -21
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/index.d.ts +2 -2
- package/overlaybadge/index.d.ts +1 -1
- package/package.json +3 -3
- package/paginator/Paginator.vue +2 -0
- package/paginator/index.d.ts +8 -0
- package/paginator/index.mjs +3 -1
- package/paginator/index.mjs.map +1 -1
- package/panel/Panel.vue +29 -22
- package/panel/index.d.ts +22 -2
- package/panel/index.mjs +55 -31
- package/panel/index.mjs.map +1 -1
- package/panelmenu/PanelMenuList.vue +1 -1
- package/panelmenu/index.mjs +1 -1
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +21 -3
- package/password/index.d.ts +3 -3
- package/password/index.mjs +32 -10
- package/password/index.mjs.map +1 -1
- package/popover/Popover.vue +3 -3
- package/popover/index.mjs +3 -4
- package/popover/index.mjs.map +1 -1
- package/progressbar/ProgressBar.vue +11 -4
- package/progressbar/index.mjs +21 -7
- package/progressbar/index.mjs.map +1 -1
- package/radiobutton/RadioButton.vue +13 -3
- package/radiobutton/index.d.ts +3 -3
- package/radiobutton/index.mjs +24 -4
- package/radiobutton/index.mjs.map +1 -1
- package/rating/Rating.vue +19 -2
- package/rating/index.mjs +28 -7
- package/rating/index.mjs.map +1 -1
- package/scrolltop/ScrollTop.vue +2 -2
- package/scrolltop/index.d.ts +2 -2
- package/scrolltop/index.mjs +4 -2
- package/scrolltop/index.mjs.map +1 -1
- package/select/Select.vue +56 -16
- package/select/index.d.ts +2 -2
- package/select/index.mjs +111 -74
- package/select/index.mjs.map +1 -1
- package/selectbutton/SelectButton.vue +26 -9
- package/selectbutton/index.d.ts +2 -2
- package/selectbutton/index.mjs +30 -10
- package/selectbutton/index.mjs.map +1 -1
- package/skeleton/Skeleton.vue +7 -1
- package/skeleton/index.d.ts +3 -3
- package/skeleton/index.mjs +12 -1
- package/skeleton/index.mjs.map +1 -1
- package/slider/Slider.vue +11 -2
- package/slider/index.d.ts +2 -2
- package/slider/index.mjs +27 -8
- package/slider/index.mjs.map +1 -1
- package/speeddial/index.d.ts +5 -5
- package/splitbutton/index.d.ts +1 -1
- package/splitter/Splitter.vue +10 -2
- package/splitter/index.d.ts +3 -3
- package/splitter/index.mjs +19 -6
- package/splitter/index.mjs.map +1 -1
- package/step/Step.vue +25 -7
- package/step/index.mjs +44 -14
- package/step/index.mjs.map +1 -1
- package/steppanel/StepPanel.vue +9 -3
- package/steppanel/index.d.ts +8 -0
- package/steppanel/index.mjs +23 -8
- package/steppanel/index.mjs.map +1 -1
- package/stepper/StepperSeparator.vue +5 -2
- package/stepper/index.d.ts +4 -0
- package/tab/Tab.vue +12 -6
- package/tab/index.mjs +13 -5
- package/tab/index.mjs.map +1 -1
- package/tablist/TabList.vue +13 -2
- package/tablist/index.mjs +21 -8
- package/tablist/index.mjs.map +1 -1
- package/tabpanel/TabPanel.vue +2 -2
- package/tabpanel/index.mjs +2 -2
- package/tabpanel/index.mjs.map +1 -1
- package/tag/Tag.vue +11 -2
- package/tag/index.mjs +17 -3
- package/tag/index.mjs.map +1 -1
- package/textarea/Textarea.vue +10 -1
- package/textarea/index.d.ts +4 -5
- package/textarea/index.mjs +14 -1
- package/textarea/index.mjs.map +1 -1
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/index.mjs +1 -2
- package/tieredmenu/index.mjs.map +1 -1
- package/timeline/Timeline.vue +16 -7
- package/timeline/index.d.ts +3 -3
- package/timeline/index.mjs +42 -11
- package/timeline/index.mjs.map +1 -1
- package/toast/Toast.vue +10 -1
- package/toast/ToastMessage.vue +29 -19
- package/toast/index.d.ts +2 -2
- package/toast/index.mjs +77 -38
- package/toast/index.mjs.map +1 -1
- package/togglebutton/ToggleButton.vue +10 -1
- package/togglebutton/index.d.ts +3 -3
- package/togglebutton/index.mjs +19 -4
- package/togglebutton/index.mjs.map +1 -1
- package/toggleswitch/ToggleSwitch.vue +11 -3
- package/toggleswitch/index.mjs +20 -5
- package/toggleswitch/index.mjs.map +1 -1
- package/tooltip/index.mjs +22 -22
- package/tooltip/index.mjs.map +1 -1
- package/tree/Tree.vue +14 -2
- package/tree/TreeNode.vue +2 -2
- package/tree/index.d.ts +3 -3
- package/tree/index.mjs +28 -10
- package/tree/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +1 -1
- package/treeselect/index.d.ts +6 -6
- package/treeselect/index.mjs +1 -2
- package/treeselect/index.mjs.map +1 -1
- package/treetable/index.d.ts +7 -7
- package/treetable/style/index.mjs +2 -3
- package/treetable/style/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- package/virtualscroller/VirtualScroller.vue +13 -2
- package/virtualscroller/index.d.ts +2 -2
- package/virtualscroller/index.mjs +14 -4
- package/virtualscroller/index.mjs.map +1 -1
- package/virtualscroller/style/index.mjs +1 -1
- package/virtualscroller/style/index.mjs.map +1 -1
- package/web-types.json +1 -1
package/datatable/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module datatable
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
import type { DefineComponent, DesignToken, EmitFn, HintedString, Nullable, PassThrough } from '@primevue/core';
|
|
10
|
+
import type { DefineComponent, DesignToken, EmitFn, HintedString, NoInfer, Nullable, PassThrough } from '@primevue/core';
|
|
11
11
|
import type { ComponentHooks } from '@primevue/core/basecomponent';
|
|
12
12
|
import type { ButtonProps } from 'primevue/button';
|
|
13
13
|
import type { ColumnPassThroughOptionType } from 'primevue/column';
|
|
@@ -593,19 +593,19 @@ export interface DataTableRowEditCancelEvent<T = any> extends DataTableRowEditIn
|
|
|
593
593
|
* Custom state event.
|
|
594
594
|
* @see {@link DataTableEmitsOptions['state-save']}
|
|
595
595
|
*/
|
|
596
|
-
export interface DataTableStateEvent {
|
|
596
|
+
export interface DataTableStateEvent<T = any> {
|
|
597
597
|
/**
|
|
598
598
|
* Index of first record
|
|
599
599
|
*/
|
|
600
|
-
first
|
|
600
|
+
first?: number | undefined;
|
|
601
601
|
/**
|
|
602
602
|
* Number of rows to display in new page
|
|
603
603
|
*/
|
|
604
|
-
rows
|
|
604
|
+
rows?: number | undefined;
|
|
605
605
|
/**
|
|
606
606
|
* Field to sort against
|
|
607
607
|
*/
|
|
608
|
-
sortField:
|
|
608
|
+
sortField: keyof T;
|
|
609
609
|
/**
|
|
610
610
|
* Sort order as integer
|
|
611
611
|
*/
|
|
@@ -613,19 +613,19 @@ export interface DataTableStateEvent {
|
|
|
613
613
|
/**
|
|
614
614
|
* MultiSort metadata
|
|
615
615
|
*/
|
|
616
|
-
multiSortMeta
|
|
616
|
+
multiSortMeta?: DataTableSortMeta[] | undefined | null;
|
|
617
617
|
/**
|
|
618
618
|
* Collection of active filters
|
|
619
619
|
*/
|
|
620
|
-
filters
|
|
620
|
+
filters?: DataTableFilterMeta;
|
|
621
621
|
/**
|
|
622
622
|
* Comma separated list of column widths
|
|
623
623
|
*/
|
|
624
|
-
columnWidths
|
|
624
|
+
columnWidths?: string[] | null;
|
|
625
625
|
/**
|
|
626
626
|
* Order of the columns
|
|
627
627
|
*/
|
|
628
|
-
columnOrder
|
|
628
|
+
columnOrder?: string[] | null;
|
|
629
629
|
/**
|
|
630
630
|
* Instances of rows in expanded state
|
|
631
631
|
*/
|
|
@@ -637,15 +637,15 @@ export interface DataTableStateEvent {
|
|
|
637
637
|
/**
|
|
638
638
|
* Instances of rows in expanded state
|
|
639
639
|
*/
|
|
640
|
-
expandedRowGroups
|
|
640
|
+
expandedRowGroups?: any[] | DataTableExpandedRows;
|
|
641
641
|
/**
|
|
642
642
|
* Selected rows
|
|
643
643
|
*/
|
|
644
|
-
selection
|
|
644
|
+
selection?: T[] | T | undefined | null;
|
|
645
645
|
/**
|
|
646
646
|
* Keys of selected rows
|
|
647
647
|
*/
|
|
648
|
-
selectionKeys: any[];
|
|
648
|
+
selectionKeys: any[] | null;
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
/**
|
|
@@ -884,11 +884,11 @@ export interface DataTableProps<T = any> {
|
|
|
884
884
|
/**
|
|
885
885
|
* An array of objects to display.
|
|
886
886
|
*/
|
|
887
|
-
value?:
|
|
887
|
+
value?: T[] | undefined | null;
|
|
888
888
|
/**
|
|
889
889
|
* Name of the field that uniquely identifies the a record in the data.
|
|
890
890
|
*/
|
|
891
|
-
dataKey?:
|
|
891
|
+
dataKey?: keyof T | ((item: NoInfer<T>) => string) | undefined;
|
|
892
892
|
/**
|
|
893
893
|
* Number of rows to display per page.
|
|
894
894
|
* @defaultValue 0
|
|
@@ -913,7 +913,7 @@ export interface DataTableProps<T = any> {
|
|
|
913
913
|
* Position of the paginator, options are 'top','bottom' or 'both'.
|
|
914
914
|
* @defaultValue bottom
|
|
915
915
|
*/
|
|
916
|
-
paginatorPosition?: 'top' | 'bottom' | 'both' | undefined;
|
|
916
|
+
paginatorPosition?: HintedString<'top' | 'bottom' | 'both'> | undefined;
|
|
917
917
|
/**
|
|
918
918
|
* Whether to show it even there is only one page.
|
|
919
919
|
* @defaultValue true
|
|
@@ -972,7 +972,7 @@ export interface DataTableProps<T = any> {
|
|
|
972
972
|
/**
|
|
973
973
|
* Property name or a getter function of a row data used for sorting by default
|
|
974
974
|
*/
|
|
975
|
-
sortField?:
|
|
975
|
+
sortField?: keyof T | ((item: NoInfer<T>) => string) | undefined;
|
|
976
976
|
/**
|
|
977
977
|
* Order to sort the data by default.
|
|
978
978
|
*/
|
|
@@ -995,7 +995,7 @@ export interface DataTableProps<T = any> {
|
|
|
995
995
|
* Defines whether sorting works on single column or on multiple columns.
|
|
996
996
|
* @defaultValue single
|
|
997
997
|
*/
|
|
998
|
-
sortMode?: 'single' | 'multiple' | undefined;
|
|
998
|
+
sortMode?: HintedString<'single' | 'multiple'> | undefined;
|
|
999
999
|
/**
|
|
1000
1000
|
* When enabled, columns can have an un-sorted state.
|
|
1001
1001
|
* @defaultValue false
|
|
@@ -1009,11 +1009,11 @@ export interface DataTableProps<T = any> {
|
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Layout of the filter elements.
|
|
1011
1011
|
*/
|
|
1012
|
-
filterDisplay?: 'menu' | 'row' | undefined;
|
|
1012
|
+
filterDisplay?: HintedString<'menu' | 'row'> | undefined;
|
|
1013
1013
|
/**
|
|
1014
1014
|
* An array of fields as string or function to use in global filtering.
|
|
1015
1015
|
*/
|
|
1016
|
-
globalFilterFields?: (
|
|
1016
|
+
globalFilterFields?: (keyof T | ((data: NoInfer<T>) => string))[] | undefined;
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
1019
1019
|
*/
|
|
@@ -1021,16 +1021,16 @@ export interface DataTableProps<T = any> {
|
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Selected row in single mode or an array of values in multiple mode.
|
|
1023
1023
|
*/
|
|
1024
|
-
selection?: T[] | T | undefined;
|
|
1024
|
+
selection?: NoInfer<T>[] | NoInfer<T> | undefined;
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Specifies the selection mode.
|
|
1027
1027
|
*/
|
|
1028
|
-
selectionMode?: 'single' | 'multiple' | undefined;
|
|
1028
|
+
selectionMode?: HintedString<'single' | 'multiple'> | undefined;
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Algorithm to define if a row is selected.
|
|
1031
1031
|
* @defaultValue deepEquals
|
|
1032
1032
|
*/
|
|
1033
|
-
compareSelectionBy?: 'equals' | 'deepEquals' | undefined;
|
|
1033
|
+
compareSelectionBy?: HintedString<'equals' | 'deepEquals'> | undefined;
|
|
1034
1034
|
/**
|
|
1035
1035
|
* Defines whether metaKey is requred or not for the selection. When true metaKey needs to be pressed to select or unselect an item and
|
|
1036
1036
|
* when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.
|
|
@@ -1045,7 +1045,7 @@ export interface DataTableProps<T = any> {
|
|
|
1045
1045
|
/**
|
|
1046
1046
|
* Selected row instance with the ContextMenu.
|
|
1047
1047
|
*/
|
|
1048
|
-
contextMenuSelection?:
|
|
1048
|
+
contextMenuSelection?: NoInfer<T> | NoInfer<T>[] | undefined;
|
|
1049
1049
|
/**
|
|
1050
1050
|
* Whether all data is selected.
|
|
1051
1051
|
*/
|
|
@@ -1078,7 +1078,7 @@ export interface DataTableProps<T = any> {
|
|
|
1078
1078
|
* Defines whether the overall table width.
|
|
1079
1079
|
* @defaultValue fit
|
|
1080
1080
|
*/
|
|
1081
|
-
columnResizeMode?: 'fit' | 'expand' | undefined;
|
|
1081
|
+
columnResizeMode?: HintedString<'fit' | 'expand'> | undefined;
|
|
1082
1082
|
/**
|
|
1083
1083
|
* When enabled, columns can be reordered using drag and drop.
|
|
1084
1084
|
* @defaultValue false
|
|
@@ -1087,7 +1087,7 @@ export interface DataTableProps<T = any> {
|
|
|
1087
1087
|
/**
|
|
1088
1088
|
* A collection of row data display as expanded.
|
|
1089
1089
|
*/
|
|
1090
|
-
expandedRows?:
|
|
1090
|
+
expandedRows?: NoInfer<T>[] | DataTableExpandedRows | null;
|
|
1091
1091
|
/**
|
|
1092
1092
|
* Icon of the row toggler to display the row as expanded.
|
|
1093
1093
|
*/
|
|
@@ -1099,11 +1099,11 @@ export interface DataTableProps<T = any> {
|
|
|
1099
1099
|
/**
|
|
1100
1100
|
* Defines the row group mode.
|
|
1101
1101
|
*/
|
|
1102
|
-
rowGroupMode?: 'subheader' | 'rowspan' | undefined;
|
|
1102
|
+
rowGroupMode?: HintedString<'subheader' | 'rowspan'> | undefined;
|
|
1103
1103
|
/**
|
|
1104
1104
|
* One or more field names to use in row grouping.
|
|
1105
1105
|
*/
|
|
1106
|
-
groupRowsBy?: ((field:
|
|
1106
|
+
groupRowsBy?: ((field: NoInfer<T>) => object) | keyof T[] | keyof T | undefined;
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Whether the row groups can be expandable.
|
|
1109
1109
|
* @defaultValue false
|
|
@@ -1112,12 +1112,12 @@ export interface DataTableProps<T = any> {
|
|
|
1112
1112
|
/**
|
|
1113
1113
|
* An array of group field values whose groups would be rendered as expanded.
|
|
1114
1114
|
*/
|
|
1115
|
-
expandedRowGroups?:
|
|
1115
|
+
expandedRowGroups?: NoInfer<T>[] | DataTableExpandedRows;
|
|
1116
1116
|
/**
|
|
1117
1117
|
* Defines where a stateful table keeps its state.
|
|
1118
1118
|
* @defaultValue session
|
|
1119
1119
|
*/
|
|
1120
|
-
stateStorage?: 'session' | 'local' | undefined;
|
|
1120
|
+
stateStorage?: HintedString<'session' | 'local'> | undefined;
|
|
1121
1121
|
/**
|
|
1122
1122
|
* Unique identifier of a stateful table to use in state storage.
|
|
1123
1123
|
*/
|
|
@@ -1125,22 +1125,22 @@ export interface DataTableProps<T = any> {
|
|
|
1125
1125
|
/**
|
|
1126
1126
|
* Defines the incell editing mode.
|
|
1127
1127
|
*/
|
|
1128
|
-
editMode?: 'cell' | 'row' | undefined;
|
|
1128
|
+
editMode?: HintedString<'cell' | 'row'> | undefined;
|
|
1129
1129
|
/**
|
|
1130
1130
|
* A collection of rows to represent the current editing data in row edit mode.
|
|
1131
1131
|
*/
|
|
1132
|
-
editingRows?: T[] | DataTableEditingRows;
|
|
1132
|
+
editingRows?: NoInfer<T>[] | DataTableEditingRows;
|
|
1133
1133
|
/**
|
|
1134
1134
|
* A function that takes the row data as a parameter and returns a string to apply a particular class for the row.
|
|
1135
1135
|
* The return value is added to the row's :classes array (see Vue.js class bindings).
|
|
1136
1136
|
*/
|
|
1137
|
-
rowClass?: (data: T) => string | object | undefined;
|
|
1137
|
+
rowClass?: (data: NoInfer<T>) => string | object | undefined;
|
|
1138
1138
|
/**
|
|
1139
1139
|
* A function that takes the row data as a parameter and returns the inline style object for the corresponding row.
|
|
1140
1140
|
* The function may also return an array of style objects which will be merged.
|
|
1141
1141
|
* The return value of this function is directly applied as a Vue.js style-binding on the table row.
|
|
1142
1142
|
*/
|
|
1143
|
-
rowStyle?: (data: T) => object | object[] | undefined;
|
|
1143
|
+
rowStyle?: (data: NoInfer<T>) => object | object[] | undefined;
|
|
1144
1144
|
/**
|
|
1145
1145
|
* When specified, enables horizontal and/or vertical scrolling.
|
|
1146
1146
|
* @defaultValue false
|
|
@@ -1158,7 +1158,7 @@ export interface DataTableProps<T = any> {
|
|
|
1158
1158
|
/**
|
|
1159
1159
|
* Items of the frozen part in scrollable DataTable.
|
|
1160
1160
|
*/
|
|
1161
|
-
frozenValue?:
|
|
1161
|
+
frozenValue?: NoInfer<T>[] | undefined | null;
|
|
1162
1162
|
/**
|
|
1163
1163
|
* The breakpoint to define the maximum width boundary when using stack responsive layout.
|
|
1164
1164
|
* @defaultValue 960px
|
|
@@ -1187,7 +1187,7 @@ export interface DataTableProps<T = any> {
|
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Defines the size of the table.
|
|
1189
1189
|
*/
|
|
1190
|
-
size?: 'small' | 'large' | undefined;
|
|
1190
|
+
size?: HintedString<'small' | 'large'> | undefined;
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Inline style of the table element.
|
|
1193
1193
|
*/
|
|
@@ -1370,6 +1370,10 @@ export interface DataTableSlots<T = any> {
|
|
|
1370
1370
|
* Total number of pages
|
|
1371
1371
|
*/
|
|
1372
1372
|
pageCount?: number;
|
|
1373
|
+
/**
|
|
1374
|
+
* Direct page links
|
|
1375
|
+
*/
|
|
1376
|
+
pageLinks?: number;
|
|
1373
1377
|
/**
|
|
1374
1378
|
* Total records
|
|
1375
1379
|
*/
|
|
@@ -1398,6 +1402,10 @@ export interface DataTableSlots<T = any> {
|
|
|
1398
1402
|
* Row change function.
|
|
1399
1403
|
*/
|
|
1400
1404
|
rowChangeCallback: (value: number) => void;
|
|
1405
|
+
/**
|
|
1406
|
+
* Page change function.
|
|
1407
|
+
*/
|
|
1408
|
+
changePageCallback: (value: number) => void;
|
|
1401
1409
|
}): VNode[];
|
|
1402
1410
|
/**
|
|
1403
1411
|
* Custom paginator start template.
|
|
@@ -1656,12 +1664,12 @@ export interface DataTableEmitsOptions<T = any> {
|
|
|
1656
1664
|
* Invoked when a stateful table saves the state.
|
|
1657
1665
|
* @param {DataTableStateEvent} event - Custom state event.
|
|
1658
1666
|
*/
|
|
1659
|
-
'state-restore'(event: DataTableStateEvent): void;
|
|
1667
|
+
'state-restore'(event: DataTableStateEvent<T>): void;
|
|
1660
1668
|
/**
|
|
1661
1669
|
* Invoked when a stateful table restores the state.
|
|
1662
1670
|
* @param {DataTableStateEvent} event - Custom state event.
|
|
1663
1671
|
*/
|
|
1664
|
-
'state-save'(event: DataTableStateEvent): void;
|
|
1672
|
+
'state-save'(event: DataTableStateEvent<T>): void;
|
|
1665
1673
|
}
|
|
1666
1674
|
|
|
1667
1675
|
export declare type DataTableEmits = EmitFn<DataTableEmitsOptions>;
|