@uzum-tech/ui 2.4.2 → 2.4.4
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/dist/index.js +321 -75
- package/dist/index.mjs +321 -75
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/_internal/selection/src/Selection.d.ts +27 -0
- package/es/_internal/selection/src/Selection.mjs +54 -26
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.mjs +15 -0
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.mjs +16 -0
- package/es/_internal/selection/src/styles/index.cssr.mjs +45 -4
- package/es/_internal/selection/styles/light.d.ts +6 -0
- package/es/_internal/selection/styles/light.mjs +3 -0
- package/es/cascader/src/Cascader.d.ts +30 -0
- package/es/cascader/src/CascaderMenu.d.ts +6 -0
- package/es/cascader/src/CascaderOption.d.ts +6 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +6 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +6 -0
- package/es/cascader/styles/light.d.ts +3 -0
- package/es/chat/src/Chat.d.ts +132 -0
- package/es/chat/src/ChatListItems.d.ts +45 -0
- package/es/chat/src/ChatMainArea.d.ts +45 -0
- package/es/chat/src/ChatMessages.d.ts +45 -0
- package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/Sidebar.d.ts +12 -0
- package/es/chat/src/interface.d.ts +9 -0
- package/es/chat/styles/dark.d.ts +3 -0
- package/es/chat/styles/light.d.ts +3 -0
- package/es/components.d.ts +474 -0
- package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +2 -2
- package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.mjs +1 -1
- package/es/data-table/src/DataTable.d.ts +24 -0
- package/es/data-table/src/DataTable.mjs +16 -13
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
- package/es/data-table/src/TableParts/Body.d.ts +12 -0
- package/es/data-table/src/TableParts/Header.d.ts +12 -0
- package/es/data-table/src/interface.d.ts +162 -151
- package/es/data-table/src/interface.mjs +7 -7
- package/es/data-table/src/use-column-settings.mjs +4 -1
- package/es/data-table/src/use-resizable.d.ts +2 -0
- package/es/data-table/src/use-resizable.mjs +9 -1
- package/es/data-table/styles/light.d.ts +3 -0
- package/es/date-picker/src/DatePicker.d.ts +30 -0
- package/es/date-picker/src/panel/date.d.ts +6 -0
- package/es/date-picker/src/panel/daterange.d.ts +6 -0
- package/es/date-picker/src/panel/datetime.d.ts +6 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +6 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +24 -0
- package/es/date-picker/src/panel/panelMonthContent.d.ts +6 -0
- package/es/date-picker/src/panel/panelYear.d.ts +24 -0
- package/es/date-picker/src/panel/panelYearContent.d.ts +6 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +6 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +6 -0
- package/es/date-picker/styles/light.d.ts +3 -0
- package/es/date-picker-v2/src/DatePickerV2.d.ts +30 -0
- package/es/date-picker-v2/styles/dark.d.ts +3 -0
- package/es/date-picker-v2/styles/light.d.ts +3 -0
- package/es/editor/src/Editor.d.ts +18 -0
- package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
- package/es/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
- package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
- package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
- package/es/editor/src/interface.d.ts +9 -0
- package/es/editor/styles/dark.d.ts +3 -0
- package/es/editor/styles/light.d.ts +3 -0
- package/es/locales/common/ruRU.mjs +1 -1
- package/es/pagination/src/Pagination.d.ts +24 -0
- package/es/pagination/src/interface.d.ts +9 -0
- package/es/pagination/styles/light.d.ts +3 -0
- package/es/select/src/Select.d.ts +24 -0
- package/es/select/src/Select.mjs +2 -1
- package/es/select/src/interface.d.ts +10 -0
- package/es/select/src/interface.mjs +1 -0
- package/es/select/src/styles/index.cssr.mjs +4 -1
- package/es/select/styles/light.d.ts +3 -0
- package/es/tree-select/src/TreeSelect.d.ts +30 -0
- package/es/tree-select/styles/light.d.ts +3 -0
- package/es/upload/src/Upload.d.ts +21 -0
- package/es/upload/src/Upload.mjs +7 -1
- package/es/upload/src/UploadFile.d.ts +6 -0
- package/es/upload/src/UploadFile.mjs +12 -8
- package/es/upload/src/UploadFileList.mjs +3 -2
- package/es/upload/src/UploadProgress.d.ts +6 -0
- package/es/upload/src/interface.d.ts +10 -1
- package/es/upload/src/styles/index.cssr.mjs +84 -1
- package/es/upload/src/useUploadActionsRender.mjs +10 -5
- package/es/upload/styles/light.d.ts +6 -0
- package/es/upload/styles/light.mjs +4 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +27 -0
- package/lib/_internal/selection/src/Selection.js +43 -35
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.js +13 -0
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.js +19 -0
- package/lib/_internal/selection/src/styles/index.cssr.js +45 -4
- package/lib/_internal/selection/styles/light.d.ts +6 -0
- package/lib/_internal/selection/styles/light.js +3 -0
- package/lib/cascader/src/Cascader.d.ts +30 -0
- package/lib/cascader/src/CascaderMenu.d.ts +6 -0
- package/lib/cascader/src/CascaderOption.d.ts +6 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +6 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +6 -0
- package/lib/cascader/styles/light.d.ts +3 -0
- package/lib/chat/src/Chat.d.ts +132 -0
- package/lib/chat/src/ChatListItems.d.ts +45 -0
- package/lib/chat/src/ChatMainArea.d.ts +45 -0
- package/lib/chat/src/ChatMessages.d.ts +45 -0
- package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/Sidebar.d.ts +12 -0
- package/lib/chat/src/interface.d.ts +9 -0
- package/lib/chat/styles/dark.d.ts +3 -0
- package/lib/chat/styles/light.d.ts +3 -0
- package/lib/components.d.ts +474 -0
- package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +2 -2
- package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.js +1 -1
- package/lib/data-table/src/DataTable.d.ts +24 -0
- package/lib/data-table/src/DataTable.js +14 -13
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
- package/lib/data-table/src/TableParts/Body.d.ts +12 -0
- package/lib/data-table/src/TableParts/Header.d.ts +12 -0
- package/lib/data-table/src/interface.d.ts +162 -151
- package/lib/data-table/src/interface.js +7 -7
- package/lib/data-table/src/use-column-settings.js +6 -1
- package/lib/data-table/src/use-resizable.d.ts +2 -0
- package/lib/data-table/src/use-resizable.js +9 -1
- package/lib/data-table/styles/light.d.ts +3 -0
- package/lib/date-picker/src/DatePicker.d.ts +30 -0
- package/lib/date-picker/src/panel/date.d.ts +6 -0
- package/lib/date-picker/src/panel/daterange.d.ts +6 -0
- package/lib/date-picker/src/panel/datetime.d.ts +6 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +6 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +24 -0
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +6 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +24 -0
- package/lib/date-picker/src/panel/panelYearContent.d.ts +6 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +6 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +6 -0
- package/lib/date-picker/styles/light.d.ts +3 -0
- package/lib/date-picker-v2/src/DatePickerV2.d.ts +30 -0
- package/lib/date-picker-v2/styles/dark.d.ts +3 -0
- package/lib/date-picker-v2/styles/light.d.ts +3 -0
- package/lib/editor/src/Editor.d.ts +18 -0
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
- package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
- package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
- package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
- package/lib/editor/src/interface.d.ts +9 -0
- package/lib/editor/styles/dark.d.ts +3 -0
- package/lib/editor/styles/light.d.ts +3 -0
- package/lib/locales/common/ruRU.js +1 -1
- package/lib/pagination/src/Pagination.d.ts +24 -0
- package/lib/pagination/src/interface.d.ts +9 -0
- package/lib/pagination/styles/light.d.ts +3 -0
- package/lib/select/src/Select.d.ts +24 -0
- package/lib/select/src/Select.js +5 -2
- package/lib/select/src/interface.d.ts +10 -0
- package/lib/select/src/interface.js +1 -1
- package/lib/select/src/styles/index.cssr.js +3 -0
- package/lib/select/styles/light.d.ts +3 -0
- package/lib/tree-select/src/TreeSelect.d.ts +30 -0
- package/lib/tree-select/styles/light.d.ts +3 -0
- package/lib/upload/src/Upload.d.ts +21 -0
- package/lib/upload/src/Upload.js +5 -2
- package/lib/upload/src/UploadFile.d.ts +6 -0
- package/lib/upload/src/UploadFile.js +19 -11
- package/lib/upload/src/UploadFileList.js +5 -1
- package/lib/upload/src/UploadProgress.d.ts +6 -0
- package/lib/upload/src/interface.d.ts +10 -1
- package/lib/upload/src/styles/index.cssr.js +84 -1
- package/lib/upload/src/useUploadActionsRender.js +17 -7
- package/lib/upload/styles/light.d.ts +6 -0
- package/lib/upload/styles/light.js +4 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +23 -10
|
@@ -12,11 +12,6 @@ import type { ScrollbarProps, ScrollTo } from '../../scrollbar/src/Scrollbar';
|
|
|
12
12
|
import type { DataTableTheme } from '../styles';
|
|
13
13
|
import type { DataTableGetCsvCell, DataTableGetCsvHeader, DataTableSize } from './public-types';
|
|
14
14
|
import type { ColItem, RowItem } from './use-group-header';
|
|
15
|
-
export declare enum TableColumnType {
|
|
16
|
-
SELECTION = "selection",
|
|
17
|
-
EXPAND = "expand",
|
|
18
|
-
DRAGGABLE = "draggable"
|
|
19
|
-
}
|
|
20
15
|
export declare const dataTableProps: {
|
|
21
16
|
readonly onUnstableColumnResize: PropType<(resizedWidth: number, limitedWidth: number, column: TableBaseColumn, getColumnWidth: (key: ColumnKey) => number | undefined) => void>;
|
|
22
17
|
readonly pagination: {
|
|
@@ -698,8 +693,11 @@ export declare const dataTableProps: {
|
|
|
698
693
|
caretColorSecondary: string;
|
|
699
694
|
filterCounterTextColor: string;
|
|
700
695
|
filterCounterTextColorDisabled: string;
|
|
696
|
+
filterCounterGap: string;
|
|
697
|
+
filterSuffixWrapperGap: string;
|
|
701
698
|
arrowColorSecondary: string;
|
|
702
699
|
clearColorSecondary: string;
|
|
700
|
+
loadingColorSecondary: string;
|
|
703
701
|
colorSecondary: string;
|
|
704
702
|
textColorSecondary: string;
|
|
705
703
|
borderSecondary: string;
|
|
@@ -1902,8 +1900,11 @@ export declare const dataTableProps: {
|
|
|
1902
1900
|
caretColorSecondary: string;
|
|
1903
1901
|
filterCounterTextColor: string;
|
|
1904
1902
|
filterCounterTextColorDisabled: string;
|
|
1903
|
+
filterCounterGap: string;
|
|
1904
|
+
filterSuffixWrapperGap: string;
|
|
1905
1905
|
arrowColorSecondary: string;
|
|
1906
1906
|
clearColorSecondary: string;
|
|
1907
|
+
loadingColorSecondary: string;
|
|
1907
1908
|
colorSecondary: string;
|
|
1908
1909
|
textColorSecondary: string;
|
|
1909
1910
|
borderSecondary: string;
|
|
@@ -3106,8 +3107,11 @@ export declare const dataTableProps: {
|
|
|
3106
3107
|
caretColorSecondary: string;
|
|
3107
3108
|
filterCounterTextColor: string;
|
|
3108
3109
|
filterCounterTextColorDisabled: string;
|
|
3110
|
+
filterCounterGap: string;
|
|
3111
|
+
filterSuffixWrapperGap: string;
|
|
3109
3112
|
arrowColorSecondary: string;
|
|
3110
3113
|
clearColorSecondary: string;
|
|
3114
|
+
loadingColorSecondary: string;
|
|
3111
3115
|
colorSecondary: string;
|
|
3112
3116
|
textColorSecondary: string;
|
|
3113
3117
|
borderSecondary: string;
|
|
@@ -3766,16 +3770,18 @@ export declare const dataTableProps: {
|
|
|
3766
3770
|
}>;
|
|
3767
3771
|
}>>>;
|
|
3768
3772
|
};
|
|
3769
|
-
export
|
|
3770
|
-
export
|
|
3771
|
-
|
|
3773
|
+
export declare const dataTableInjectionKey: import("vue").InjectionKey<DataTableInjection>;
|
|
3774
|
+
export declare enum TableColumnType {
|
|
3775
|
+
SELECTION = "selection",
|
|
3776
|
+
EXPAND = "expand",
|
|
3777
|
+
DRAGGABLE = "draggable"
|
|
3778
|
+
}
|
|
3772
3779
|
export interface ColumnWidthComputationItem {
|
|
3773
3780
|
key: ColumnKey;
|
|
3774
3781
|
width?: number | string;
|
|
3775
3782
|
minWidth?: number | string;
|
|
3776
3783
|
maxWidth?: number | string;
|
|
3777
3784
|
}
|
|
3778
|
-
export type SortOrderFlag = 1 | -1 | 0;
|
|
3779
3785
|
export interface DataTableSlots {
|
|
3780
3786
|
default?: () => VNode[];
|
|
3781
3787
|
empty?: () => VNode[];
|
|
@@ -3784,28 +3790,14 @@ export interface DataTableSlots {
|
|
|
3784
3790
|
filters?: () => VNode[];
|
|
3785
3791
|
'column-settings-trigger'?: () => VNode[];
|
|
3786
3792
|
}
|
|
3787
|
-
export type RowData = Record<string, any>;
|
|
3788
|
-
export type InternalRowData = Record<string, unknown>;
|
|
3789
|
-
export type CreateRowKey<T = InternalRowData> = (row: T) => RowKey;
|
|
3790
|
-
export type CreateRowClassName<T = InternalRowData> = (row: T, index: number) => string;
|
|
3791
|
-
export type CreateRowProps<T = InternalRowData> = (row: T, index: number) => HTMLAttributes;
|
|
3792
|
-
export type CreateCellProps<T = InternalRowData> = (row: T, index: number) => HTMLAttributes;
|
|
3793
|
-
export type CompareFn<T = InternalRowData> = (row1: T, row2: T) => number;
|
|
3794
|
-
export type Sorter<T = InternalRowData> = CompareFn<T> | SorterMultiple<T>;
|
|
3795
3793
|
export interface SorterMultiple<T = InternalRowData> {
|
|
3796
3794
|
multiple: number;
|
|
3797
3795
|
compare?: CompareFn<T> | 'default';
|
|
3798
3796
|
}
|
|
3799
|
-
export type Filter<T = InternalRowData> = (filterOptionValue: FilterOptionValue, row: T) => boolean;
|
|
3800
3797
|
export interface FilterOption {
|
|
3801
3798
|
label: string;
|
|
3802
3799
|
value: FilterOptionValue;
|
|
3803
3800
|
}
|
|
3804
|
-
export type TmNode = TreeNode<InternalRowData>;
|
|
3805
|
-
export type SortOrder = 'ascend' | 'descend' | false;
|
|
3806
|
-
export type Ellipsis = boolean | (EllipsisProps & {
|
|
3807
|
-
style?: CSSProperties;
|
|
3808
|
-
});
|
|
3809
3801
|
export interface CommonColumnInfo<T = InternalRowData> {
|
|
3810
3802
|
fixed?: 'left' | 'right';
|
|
3811
3803
|
width?: number | string;
|
|
@@ -3819,82 +3811,11 @@ export interface CommonColumnInfo<T = InternalRowData> {
|
|
|
3819
3811
|
allowExport?: boolean;
|
|
3820
3812
|
visible?: boolean;
|
|
3821
3813
|
required?: boolean;
|
|
3814
|
+
settingsTitle?: string;
|
|
3822
3815
|
}
|
|
3823
3816
|
export interface TableColumnMaskObject {
|
|
3824
3817
|
postProcess: (value: string) => string;
|
|
3825
3818
|
}
|
|
3826
|
-
export type TableColumnMask = string | ((value: string) => string) | TableColumnMaskObject;
|
|
3827
|
-
export type TableColumnTitle = string | ((column: TableBaseColumn) => VNodeChild);
|
|
3828
|
-
export type TableExpandColumnTitle = string | ((column: TableExpandColumn) => VNodeChild);
|
|
3829
|
-
export type TableColumnGroupTitle = string | ((column: TableColumnGroup) => VNodeChild);
|
|
3830
|
-
export type TableColumnGroup<T = InternalRowData> = {
|
|
3831
|
-
title?: TableColumnGroupTitle;
|
|
3832
|
-
subtitle?: string;
|
|
3833
|
-
type?: never;
|
|
3834
|
-
key: ColumnKey;
|
|
3835
|
-
children: Array<TableBaseColumn<T>>;
|
|
3836
|
-
resizable?: boolean;
|
|
3837
|
-
filterOptions?: never;
|
|
3838
|
-
} & CommonColumnInfo<T>;
|
|
3839
|
-
export type TableBaseColumn<T = InternalRowData> = {
|
|
3840
|
-
title?: TableColumnTitle;
|
|
3841
|
-
subtitle?: string;
|
|
3842
|
-
titleColSpan?: number;
|
|
3843
|
-
type?: never;
|
|
3844
|
-
key: ColumnKey;
|
|
3845
|
-
editable?: boolean | ((rowData: T) => boolean);
|
|
3846
|
-
mask?: TableColumnMask;
|
|
3847
|
-
numeric?: boolean;
|
|
3848
|
-
placeholder?: string;
|
|
3849
|
-
totalRow?: {
|
|
3850
|
-
type: 'sum' | 'default' | 'diff' | 'multiply' | 'divide' | 'percentage' | 'function';
|
|
3851
|
-
value?: string;
|
|
3852
|
-
fields?: string[];
|
|
3853
|
-
function?: (values: number[]) => number;
|
|
3854
|
-
};
|
|
3855
|
-
tree?: boolean;
|
|
3856
|
-
sorter?: boolean | Sorter<T> | 'default';
|
|
3857
|
-
defaultSortOrder?: SortOrder;
|
|
3858
|
-
sortOrder?: SortOrder;
|
|
3859
|
-
resizable?: boolean;
|
|
3860
|
-
minWidth?: string | number;
|
|
3861
|
-
maxWidth?: string | number;
|
|
3862
|
-
filter?: 'default' | boolean | Filter<T>;
|
|
3863
|
-
filterOptions?: FilterOption[];
|
|
3864
|
-
filterOptionValues?: FilterOptionValue[] | null;
|
|
3865
|
-
filterOptionValue?: FilterOptionValue | null;
|
|
3866
|
-
filterMode?: 'or' | 'and';
|
|
3867
|
-
defaultFilterOptionValues?: FilterOptionValue[] | null;
|
|
3868
|
-
defaultFilterOptionValue?: FilterOptionValue | null;
|
|
3869
|
-
filterMultiple?: boolean;
|
|
3870
|
-
render?: (rowData: T, rowIndex: number) => VNodeChild;
|
|
3871
|
-
renderFilter?: RenderFilter;
|
|
3872
|
-
renderFilterIcon?: RenderFilterIcon;
|
|
3873
|
-
renderSorter?: RenderSorter;
|
|
3874
|
-
renderSorterIcon?: RenderSorterIcon;
|
|
3875
|
-
renderFilterMenu?: RenderFilterMenu;
|
|
3876
|
-
colSpan?: (rowData: T, rowIndex: number) => number;
|
|
3877
|
-
rowSpan?: (rowData: T, rowIndex: number) => number;
|
|
3878
|
-
} & CommonColumnInfo<T>;
|
|
3879
|
-
export type TableSelectionColumn<T = InternalRowData> = {
|
|
3880
|
-
type: 'selection';
|
|
3881
|
-
multiple?: boolean;
|
|
3882
|
-
disabled?: (row: T) => boolean;
|
|
3883
|
-
options?: DataTableSelectionOptions<T>;
|
|
3884
|
-
sorter?: never;
|
|
3885
|
-
resizable?: boolean;
|
|
3886
|
-
filter?: never;
|
|
3887
|
-
filterOptions?: never;
|
|
3888
|
-
filterOptionValues?: never;
|
|
3889
|
-
filterOptionValue?: never;
|
|
3890
|
-
colSpan?: never;
|
|
3891
|
-
rowSpan?: never;
|
|
3892
|
-
} & CommonColumnInfo<T>;
|
|
3893
|
-
export type RenderExpand<T = InternalRowData> = (row: T, index: number) => VNodeChild;
|
|
3894
|
-
export type RenderExpandIcon = ({ expanded }: {
|
|
3895
|
-
expanded: boolean;
|
|
3896
|
-
}) => VNodeChild;
|
|
3897
|
-
export type Expandable<T = InternalRowData> = (row: T) => boolean;
|
|
3898
3819
|
export interface TableExpandColumn<T = InternalRowData> extends Omit<TableSelectionColumn<T>, 'type'> {
|
|
3899
3820
|
type: 'expand';
|
|
3900
3821
|
title?: TableExpandColumnTitle;
|
|
@@ -4000,30 +3921,6 @@ export interface FixedShadowStyleProps {
|
|
|
4000
3921
|
rightActiveFixedChildrenColKeys: ColumnKey[];
|
|
4001
3922
|
componentId: string;
|
|
4002
3923
|
}
|
|
4003
|
-
export type RowDropPosition = 'before' | 'after';
|
|
4004
|
-
export type TableDraggableColumn<T = InternalRowData> = {
|
|
4005
|
-
type: 'draggable';
|
|
4006
|
-
key: ColumnKey;
|
|
4007
|
-
draggable?: (row: T) => boolean;
|
|
4008
|
-
onDragEnd?: (row: T, options: RowDragEndOptions) => void;
|
|
4009
|
-
sortByKey?: boolean;
|
|
4010
|
-
sorter?: never;
|
|
4011
|
-
filter?: never;
|
|
4012
|
-
filterOptions?: never;
|
|
4013
|
-
filterOptionValues?: never;
|
|
4014
|
-
filterOptionValue?: never;
|
|
4015
|
-
resizable?: never;
|
|
4016
|
-
colSpan?: never;
|
|
4017
|
-
rowSpan?: never;
|
|
4018
|
-
} & CommonColumnInfo<T>;
|
|
4019
|
-
export type TableColumn<T = InternalRowData> = TableColumnGroup<T> | TableBaseColumn<T> | TableSelectionColumn<T> | TableExpandColumn<T> | TableDraggableColumn<T>;
|
|
4020
|
-
export type TableColumns<T = InternalRowData> = Array<TableColumn<T>>;
|
|
4021
|
-
export type DataRelatedColumn<T = InternalRowData> = TableSelectionColumn<T> | TableBaseColumn<T> | TableExpandColumn<T> | TableDraggableColumn<T>;
|
|
4022
|
-
export type DataTableSelectionOptions<T = InternalRowData> = Array<DataTableSelectionOption | {
|
|
4023
|
-
label: string;
|
|
4024
|
-
key: string | number;
|
|
4025
|
-
onSelect: (pageData: T[]) => void;
|
|
4026
|
-
}>;
|
|
4027
3924
|
export interface DataTableInjection {
|
|
4028
3925
|
props: DataTableSetupProps;
|
|
4029
3926
|
slots: Slots;
|
|
@@ -4119,7 +4016,6 @@ export interface DataTableInjection {
|
|
|
4119
4016
|
handleRowDragEnd: UseRowDragReturn['handleRowDragEnd'];
|
|
4120
4017
|
handleRowDrop: UseRowDragReturn['handleRowDrop'];
|
|
4121
4018
|
}
|
|
4122
|
-
export declare const dataTableInjectionKey: import("vue").InjectionKey<DataTableInjection>;
|
|
4123
4019
|
export interface MainTableInjection {
|
|
4124
4020
|
leftActiveFixedColKey: ColumnKey | null;
|
|
4125
4021
|
rightActiveFixedColKey: ColumnKey | null;
|
|
@@ -4131,14 +4027,11 @@ export interface DataTableColumnConfigState {
|
|
|
4131
4027
|
}
|
|
4132
4028
|
export interface DataTableColumnSettingsItem {
|
|
4133
4029
|
key: string;
|
|
4134
|
-
title:
|
|
4030
|
+
title: DataTableColumnTitle;
|
|
4135
4031
|
visible: boolean;
|
|
4136
4032
|
required: boolean;
|
|
4137
4033
|
sortOrder: number;
|
|
4138
4034
|
}
|
|
4139
|
-
export type DataTableConfigurableColumn = TableBaseColumn & {
|
|
4140
|
-
key: string | number;
|
|
4141
|
-
};
|
|
4142
4035
|
export interface UseColumnSettingsReturn {
|
|
4143
4036
|
enabledRef: ComputedRef<boolean>;
|
|
4144
4037
|
resolvedColumnsRef: ComputedRef<TableColumns>;
|
|
@@ -4165,32 +4058,11 @@ export interface DataTableStorageState {
|
|
|
4165
4058
|
checkedRowKeys?: RowKey[];
|
|
4166
4059
|
expandedRowKeys?: RowKey[];
|
|
4167
4060
|
}
|
|
4168
|
-
export type RenderFilter = (props: {
|
|
4169
|
-
active: boolean;
|
|
4170
|
-
show: boolean;
|
|
4171
|
-
}) => VNodeChild;
|
|
4172
|
-
export type RenderFilterIcon = RenderFilter;
|
|
4173
|
-
export type RenderSorter = (props: {
|
|
4174
|
-
order: SortOrder;
|
|
4175
|
-
}) => VNodeChild;
|
|
4176
|
-
export type RenderSorterIcon = RenderSorter;
|
|
4177
|
-
export type RenderFilterMenu = (actions: {
|
|
4178
|
-
hide: () => void;
|
|
4179
|
-
}) => VNodeChild;
|
|
4180
|
-
export type OnUpdateExpandedRowKeys = (keys: RowKey[]) => void;
|
|
4181
|
-
export type OnUpdateCheckedRowKeys = (keys: RowKey[], rows: InternalRowData[], meta: {
|
|
4182
|
-
row: InternalRowData | undefined;
|
|
4183
|
-
action: 'check' | 'uncheck' | 'checkAll' | 'uncheckAll';
|
|
4184
|
-
}) => void;
|
|
4185
|
-
export type OnUpdateSorter = (sortState: SortState & SortState[] & null) => void;
|
|
4186
|
-
export type OnUpdateSorterImpl = (sortState: SortState | SortState[] | null) => void;
|
|
4187
|
-
export type OnUpdateFilters = (filterState: FilterState, sourceColumn: TableBaseColumn) => void;
|
|
4188
4061
|
export interface SortState {
|
|
4189
4062
|
columnKey: ColumnKey;
|
|
4190
4063
|
order: SortOrder;
|
|
4191
4064
|
sorter: Sorter | boolean | 'default';
|
|
4192
4065
|
}
|
|
4193
|
-
export type FilterState = Record<string, FilterOptionValue[] | FilterOptionValue | null | undefined>;
|
|
4194
4066
|
export interface MainTableRef {
|
|
4195
4067
|
getHeaderElement: () => HTMLElement | null;
|
|
4196
4068
|
getBodyElement: () => HTMLElement | null;
|
|
@@ -4203,8 +4075,6 @@ export interface MainTableBodyRef {
|
|
|
4203
4075
|
export interface MainTableHeaderRef {
|
|
4204
4076
|
$el: HTMLElement | null;
|
|
4205
4077
|
}
|
|
4206
|
-
export type OnFilterMenuChange = <T extends FilterOptionValue[] & (FilterOptionValue | null)>(value: T) => void;
|
|
4207
|
-
export type OnFilterMenuChangeImpl = (value: FilterOptionValue[] | FilterOptionValue | null) => void;
|
|
4208
4078
|
export interface DataTableInst {
|
|
4209
4079
|
filter: (filters: FilterState | null) => void;
|
|
4210
4080
|
filters: (filters: FilterState | null) => void;
|
|
@@ -4225,15 +4095,11 @@ export interface DataTableInst {
|
|
|
4225
4095
|
/** @deprecated it but just leave it here, it does no harm */
|
|
4226
4096
|
clearFilter: () => void;
|
|
4227
4097
|
}
|
|
4228
|
-
export type CreateSummary<T = InternalRowData> = (pageData: T[]) => SummaryRowData | SummaryRowData[];
|
|
4229
4098
|
export interface SummaryCell {
|
|
4230
4099
|
value?: VNodeChild;
|
|
4231
4100
|
colSpan?: number;
|
|
4232
4101
|
rowSpan?: number;
|
|
4233
4102
|
}
|
|
4234
|
-
export type SummaryRowData = Record<string, SummaryCell>;
|
|
4235
|
-
export type DataTableOnLoad = (node: RowData) => Promise<void>;
|
|
4236
|
-
export type DataTableSelectionOption = 'all' | 'none';
|
|
4237
4103
|
export interface CsvOptionsType {
|
|
4238
4104
|
fileName?: string;
|
|
4239
4105
|
keepOriginalData?: boolean;
|
|
@@ -4248,6 +4114,151 @@ export interface WidthConstraintSignal {
|
|
|
4248
4114
|
systemMinWidth: number | string;
|
|
4249
4115
|
systemMaxWidth?: number | string;
|
|
4250
4116
|
}
|
|
4117
|
+
export type FilterOptionValue = string | number;
|
|
4118
|
+
export type ColumnKey = string | number;
|
|
4119
|
+
export type RowKey = string | number;
|
|
4120
|
+
export type SortOrderFlag = 1 | -1 | 0;
|
|
4121
|
+
export type RowData = Record<string, any>;
|
|
4122
|
+
export type InternalRowData = Record<string, unknown>;
|
|
4123
|
+
export type CreateRowKey<T = InternalRowData> = (row: T) => RowKey;
|
|
4124
|
+
export type CreateRowClassName<T = InternalRowData> = (row: T, index: number) => string;
|
|
4125
|
+
export type CreateRowProps<T = InternalRowData> = (row: T, index: number) => HTMLAttributes;
|
|
4126
|
+
export type CreateCellProps<T = InternalRowData> = (row: T, index: number) => HTMLAttributes;
|
|
4127
|
+
export type CompareFn<T = InternalRowData> = (row1: T, row2: T) => number;
|
|
4128
|
+
export type Sorter<T = InternalRowData> = CompareFn<T> | SorterMultiple<T>;
|
|
4129
|
+
export type Filter<T = InternalRowData> = (filterOptionValue: FilterOptionValue, row: T) => boolean;
|
|
4130
|
+
export type TmNode = TreeNode<InternalRowData>;
|
|
4131
|
+
export type SortOrder = 'ascend' | 'descend' | false;
|
|
4132
|
+
export type Ellipsis = boolean | (EllipsisProps & {
|
|
4133
|
+
style?: CSSProperties;
|
|
4134
|
+
});
|
|
4135
|
+
export type TableColumnMask = string | ((value: string) => string) | TableColumnMaskObject;
|
|
4136
|
+
export type TableColumnTitle = string | ((column: TableBaseColumn) => VNodeChild);
|
|
4137
|
+
export type TableExpandColumnTitle = string | ((column: TableExpandColumn) => VNodeChild);
|
|
4138
|
+
export type TableColumnGroupTitle = string | ((column: TableColumnGroup) => VNodeChild);
|
|
4139
|
+
export type DataTableColumnTitle = string | (() => VNodeChild);
|
|
4140
|
+
export type TableColumnGroup<T = InternalRowData> = {
|
|
4141
|
+
title?: TableColumnGroupTitle;
|
|
4142
|
+
subtitle?: string;
|
|
4143
|
+
type?: never;
|
|
4144
|
+
key: ColumnKey;
|
|
4145
|
+
children: Array<TableBaseColumn<T>>;
|
|
4146
|
+
resizable?: boolean;
|
|
4147
|
+
filterOptions?: never;
|
|
4148
|
+
} & CommonColumnInfo<T>;
|
|
4149
|
+
export type TableBaseColumn<T = InternalRowData> = {
|
|
4150
|
+
title?: TableColumnTitle;
|
|
4151
|
+
subtitle?: string;
|
|
4152
|
+
titleColSpan?: number;
|
|
4153
|
+
type?: never;
|
|
4154
|
+
key: ColumnKey;
|
|
4155
|
+
editable?: boolean | ((rowData: T) => boolean);
|
|
4156
|
+
mask?: TableColumnMask;
|
|
4157
|
+
numeric?: boolean;
|
|
4158
|
+
placeholder?: string;
|
|
4159
|
+
totalRow?: {
|
|
4160
|
+
type: 'sum' | 'default' | 'diff' | 'multiply' | 'divide' | 'percentage' | 'function';
|
|
4161
|
+
value?: string;
|
|
4162
|
+
fields?: string[];
|
|
4163
|
+
function?: (values: number[]) => number;
|
|
4164
|
+
};
|
|
4165
|
+
tree?: boolean;
|
|
4166
|
+
sorter?: boolean | Sorter<T> | 'default';
|
|
4167
|
+
defaultSortOrder?: SortOrder;
|
|
4168
|
+
sortOrder?: SortOrder;
|
|
4169
|
+
resizable?: boolean;
|
|
4170
|
+
minWidth?: string | number;
|
|
4171
|
+
maxWidth?: string | number;
|
|
4172
|
+
filter?: 'default' | boolean | Filter<T>;
|
|
4173
|
+
filterOptions?: FilterOption[];
|
|
4174
|
+
filterOptionValues?: FilterOptionValue[] | null;
|
|
4175
|
+
filterOptionValue?: FilterOptionValue | null;
|
|
4176
|
+
filterMode?: 'or' | 'and';
|
|
4177
|
+
defaultFilterOptionValues?: FilterOptionValue[] | null;
|
|
4178
|
+
defaultFilterOptionValue?: FilterOptionValue | null;
|
|
4179
|
+
filterMultiple?: boolean;
|
|
4180
|
+
render?: (rowData: T, rowIndex: number) => VNodeChild;
|
|
4181
|
+
renderFilter?: RenderFilter;
|
|
4182
|
+
renderFilterIcon?: RenderFilterIcon;
|
|
4183
|
+
renderSorter?: RenderSorter;
|
|
4184
|
+
renderSorterIcon?: RenderSorterIcon;
|
|
4185
|
+
renderFilterMenu?: RenderFilterMenu;
|
|
4186
|
+
colSpan?: (rowData: T, rowIndex: number) => number;
|
|
4187
|
+
rowSpan?: (rowData: T, rowIndex: number) => number;
|
|
4188
|
+
} & CommonColumnInfo<T>;
|
|
4189
|
+
export type TableSelectionColumn<T = InternalRowData> = {
|
|
4190
|
+
type: 'selection';
|
|
4191
|
+
multiple?: boolean;
|
|
4192
|
+
disabled?: (row: T) => boolean;
|
|
4193
|
+
options?: DataTableSelectionOptions<T>;
|
|
4194
|
+
sorter?: never;
|
|
4195
|
+
resizable?: boolean;
|
|
4196
|
+
filter?: never;
|
|
4197
|
+
filterOptions?: never;
|
|
4198
|
+
filterOptionValues?: never;
|
|
4199
|
+
filterOptionValue?: never;
|
|
4200
|
+
colSpan?: never;
|
|
4201
|
+
rowSpan?: never;
|
|
4202
|
+
} & CommonColumnInfo<T>;
|
|
4203
|
+
export type RenderExpand<T = InternalRowData> = (row: T, index: number) => VNodeChild;
|
|
4204
|
+
export type RenderExpandIcon = ({ expanded }: {
|
|
4205
|
+
expanded: boolean;
|
|
4206
|
+
}) => VNodeChild;
|
|
4207
|
+
export type Expandable<T = InternalRowData> = (row: T) => boolean;
|
|
4208
|
+
export type RowDropPosition = 'before' | 'after';
|
|
4209
|
+
export type TableDraggableColumn<T = InternalRowData> = {
|
|
4210
|
+
type: 'draggable';
|
|
4211
|
+
key: ColumnKey;
|
|
4212
|
+
draggable?: (row: T) => boolean;
|
|
4213
|
+
onDragEnd?: (row: T, options: RowDragEndOptions) => void;
|
|
4214
|
+
sortByKey?: boolean;
|
|
4215
|
+
sorter?: never;
|
|
4216
|
+
filter?: never;
|
|
4217
|
+
filterOptions?: never;
|
|
4218
|
+
filterOptionValues?: never;
|
|
4219
|
+
filterOptionValue?: never;
|
|
4220
|
+
resizable?: never;
|
|
4221
|
+
colSpan?: never;
|
|
4222
|
+
rowSpan?: never;
|
|
4223
|
+
} & CommonColumnInfo<T>;
|
|
4224
|
+
export type TableColumn<T = InternalRowData> = TableColumnGroup<T> | TableBaseColumn<T> | TableSelectionColumn<T> | TableExpandColumn<T> | TableDraggableColumn<T>;
|
|
4225
|
+
export type TableColumns<T = InternalRowData> = Array<TableColumn<T>>;
|
|
4226
|
+
export type DataRelatedColumn<T = InternalRowData> = TableSelectionColumn<T> | TableBaseColumn<T> | TableExpandColumn<T> | TableDraggableColumn<T>;
|
|
4227
|
+
export type DataTableSelectionOptions<T = InternalRowData> = Array<DataTableSelectionOption | {
|
|
4228
|
+
label: string;
|
|
4229
|
+
key: string | number;
|
|
4230
|
+
onSelect: (pageData: T[]) => void;
|
|
4231
|
+
}>;
|
|
4232
|
+
export type DataTableConfigurableColumn = TableBaseColumn & {
|
|
4233
|
+
key: string | number;
|
|
4234
|
+
};
|
|
4235
|
+
export type RenderFilter = (props: {
|
|
4236
|
+
active: boolean;
|
|
4237
|
+
show: boolean;
|
|
4238
|
+
}) => VNodeChild;
|
|
4239
|
+
export type RenderFilterIcon = RenderFilter;
|
|
4240
|
+
export type RenderSorter = (props: {
|
|
4241
|
+
order: SortOrder;
|
|
4242
|
+
}) => VNodeChild;
|
|
4243
|
+
export type RenderSorterIcon = RenderSorter;
|
|
4244
|
+
export type RenderFilterMenu = (actions: {
|
|
4245
|
+
hide: () => void;
|
|
4246
|
+
}) => VNodeChild;
|
|
4247
|
+
export type OnUpdateExpandedRowKeys = (keys: RowKey[]) => void;
|
|
4248
|
+
export type OnUpdateCheckedRowKeys = (keys: RowKey[], rows: InternalRowData[], meta: {
|
|
4249
|
+
row: InternalRowData | undefined;
|
|
4250
|
+
action: 'check' | 'uncheck' | 'checkAll' | 'uncheckAll';
|
|
4251
|
+
}) => void;
|
|
4252
|
+
export type OnUpdateSorter = (sortState: SortState & SortState[] & null) => void;
|
|
4253
|
+
export type OnUpdateSorterImpl = (sortState: SortState | SortState[] | null) => void;
|
|
4254
|
+
export type OnUpdateFilters = (filterState: FilterState, sourceColumn: TableBaseColumn) => void;
|
|
4255
|
+
export type FilterState = Record<string, FilterOptionValue[] | FilterOptionValue | null | undefined>;
|
|
4256
|
+
export type OnFilterMenuChange = <T extends FilterOptionValue[] & (FilterOptionValue | null)>(value: T) => void;
|
|
4257
|
+
export type OnFilterMenuChangeImpl = (value: FilterOptionValue[] | FilterOptionValue | null) => void;
|
|
4258
|
+
export type CreateSummary<T = InternalRowData> = (pageData: T[]) => SummaryRowData | SummaryRowData[];
|
|
4259
|
+
export type SummaryRowData = Record<string, SummaryCell>;
|
|
4260
|
+
export type DataTableOnLoad = (node: RowData) => Promise<void>;
|
|
4261
|
+
export type DataTableSelectionOption = 'all' | 'none';
|
|
4251
4262
|
export type RowRenderInfo = {
|
|
4252
4263
|
isSummaryRow: true;
|
|
4253
4264
|
key: RowKey;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { useTheme } from "../../_mixins/index.mjs";
|
|
2
2
|
import { createInjectionKey } from "../../_utils/index.mjs";
|
|
3
|
-
export var TableColumnType;
|
|
4
|
-
(function (TableColumnType) {
|
|
5
|
-
TableColumnType["SELECTION"] = "selection";
|
|
6
|
-
TableColumnType["EXPAND"] = "expand";
|
|
7
|
-
TableColumnType["DRAGGABLE"] = "draggable";
|
|
8
|
-
})(TableColumnType || (TableColumnType = {}));
|
|
9
3
|
export const dataTableProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
10
4
|
onUnstableColumnResize: Function,
|
|
11
5
|
pagination: {
|
|
@@ -145,4 +139,10 @@ export const dataTableProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
|
145
139
|
onFiltersChange: [Function, Array],
|
|
146
140
|
onCheckedRowKeysChange: [Function, Array]
|
|
147
141
|
});
|
|
148
|
-
export const dataTableInjectionKey = createInjectionKey('u-data-table');
|
|
142
|
+
export const dataTableInjectionKey = createInjectionKey('u-data-table');
|
|
143
|
+
export var TableColumnType;
|
|
144
|
+
(function (TableColumnType) {
|
|
145
|
+
TableColumnType["SELECTION"] = "selection";
|
|
146
|
+
TableColumnType["EXPAND"] = "expand";
|
|
147
|
+
TableColumnType["DRAGGABLE"] = "draggable";
|
|
148
|
+
})(TableColumnType || (TableColumnType = {}));
|
|
@@ -10,7 +10,10 @@ function isConfigurableColumn(column) {
|
|
|
10
10
|
return column.visible !== false;
|
|
11
11
|
}
|
|
12
12
|
function toColumnTitle(column) {
|
|
13
|
-
|
|
13
|
+
if (column.settingsTitle !== undefined) return column.settingsTitle;
|
|
14
|
+
const title = column.title;
|
|
15
|
+
if (typeof title === 'function') return () => title(column);
|
|
16
|
+
return title !== null && title !== void 0 ? title : String(column.key);
|
|
14
17
|
}
|
|
15
18
|
function calcColumnsScrollX(columns, getResizableWidth) {
|
|
16
19
|
let total = 0;
|
|
@@ -3,6 +3,8 @@ export declare function useResizable(): {
|
|
|
3
3
|
getResizableWidth: (key: ColumnKey) => number | undefined;
|
|
4
4
|
doUpdateResizableWidth: (column: TableColumn, width: number) => void;
|
|
5
5
|
setResizableWidths: (widths: Record<ColumnKey, number>) => void;
|
|
6
|
+
setPreferredWidths: (widths: Record<ColumnKey, number>) => void;
|
|
6
7
|
clearResizableWidth: () => void;
|
|
7
8
|
resizableWidthsRef: import("vue").Ref<Record<ColumnKey, number>, Record<ColumnKey, number>>;
|
|
9
|
+
preferredWidthsRef: import("vue").Ref<Record<ColumnKey, number>, Record<ColumnKey, number>>;
|
|
8
10
|
};
|
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
import { ref } from 'vue';
|
|
2
2
|
export function useResizable() {
|
|
3
3
|
const resizableWidthsRef = ref({});
|
|
4
|
+
const preferredWidthsRef = ref({});
|
|
4
5
|
function getResizableWidth(key) {
|
|
5
6
|
return resizableWidthsRef.value[key];
|
|
6
7
|
}
|
|
7
8
|
function doUpdateResizableWidth(column, width) {
|
|
8
9
|
if ('key' in column) {
|
|
10
|
+
preferredWidthsRef.value[column.key] = width;
|
|
9
11
|
resizableWidthsRef.value[column.key] = width;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
function setResizableWidths(widths) {
|
|
13
15
|
resizableWidthsRef.value = widths;
|
|
14
16
|
}
|
|
17
|
+
function setPreferredWidths(widths) {
|
|
18
|
+
preferredWidthsRef.value = widths;
|
|
19
|
+
}
|
|
15
20
|
function clearResizableWidth() {
|
|
21
|
+
preferredWidthsRef.value = {};
|
|
16
22
|
resizableWidthsRef.value = {};
|
|
17
23
|
}
|
|
18
24
|
return {
|
|
19
25
|
getResizableWidth,
|
|
20
26
|
doUpdateResizableWidth,
|
|
21
27
|
setResizableWidths,
|
|
28
|
+
setPreferredWidths,
|
|
22
29
|
clearResizableWidth,
|
|
23
|
-
resizableWidthsRef
|
|
30
|
+
resizableWidthsRef,
|
|
31
|
+
preferredWidthsRef
|
|
24
32
|
};
|
|
25
33
|
}
|
|
@@ -608,8 +608,11 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
608
608
|
caretColorSecondary: string;
|
|
609
609
|
filterCounterTextColor: string;
|
|
610
610
|
filterCounterTextColorDisabled: string;
|
|
611
|
+
filterCounterGap: string;
|
|
612
|
+
filterSuffixWrapperGap: string;
|
|
611
613
|
arrowColorSecondary: string;
|
|
612
614
|
clearColorSecondary: string;
|
|
615
|
+
loadingColorSecondary: string;
|
|
613
616
|
colorSecondary: string;
|
|
614
617
|
textColorSecondary: string;
|
|
615
618
|
borderSecondary: string;
|
|
@@ -885,8 +885,11 @@ export declare const datePickerProps: {
|
|
|
885
885
|
caretColorSecondary: string;
|
|
886
886
|
filterCounterTextColor: string;
|
|
887
887
|
filterCounterTextColorDisabled: string;
|
|
888
|
+
filterCounterGap: string;
|
|
889
|
+
filterSuffixWrapperGap: string;
|
|
888
890
|
arrowColorSecondary: string;
|
|
889
891
|
clearColorSecondary: string;
|
|
892
|
+
loadingColorSecondary: string;
|
|
890
893
|
colorSecondary: string;
|
|
891
894
|
textColorSecondary: string;
|
|
892
895
|
borderSecondary: string;
|
|
@@ -1731,8 +1734,11 @@ export declare const datePickerProps: {
|
|
|
1731
1734
|
caretColorSecondary: string;
|
|
1732
1735
|
filterCounterTextColor: string;
|
|
1733
1736
|
filterCounterTextColorDisabled: string;
|
|
1737
|
+
filterCounterGap: string;
|
|
1738
|
+
filterSuffixWrapperGap: string;
|
|
1734
1739
|
arrowColorSecondary: string;
|
|
1735
1740
|
clearColorSecondary: string;
|
|
1741
|
+
loadingColorSecondary: string;
|
|
1736
1742
|
colorSecondary: string;
|
|
1737
1743
|
textColorSecondary: string;
|
|
1738
1744
|
borderSecondary: string;
|
|
@@ -2577,8 +2583,11 @@ export declare const datePickerProps: {
|
|
|
2577
2583
|
caretColorSecondary: string;
|
|
2578
2584
|
filterCounterTextColor: string;
|
|
2579
2585
|
filterCounterTextColorDisabled: string;
|
|
2586
|
+
filterCounterGap: string;
|
|
2587
|
+
filterSuffixWrapperGap: string;
|
|
2580
2588
|
arrowColorSecondary: string;
|
|
2581
2589
|
clearColorSecondary: string;
|
|
2590
|
+
loadingColorSecondary: string;
|
|
2582
2591
|
colorSecondary: string;
|
|
2583
2592
|
textColorSecondary: string;
|
|
2584
2593
|
borderSecondary: string;
|
|
@@ -3517,8 +3526,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
3517
3526
|
caretColorSecondary: string;
|
|
3518
3527
|
filterCounterTextColor: string;
|
|
3519
3528
|
filterCounterTextColorDisabled: string;
|
|
3529
|
+
filterCounterGap: string;
|
|
3530
|
+
filterSuffixWrapperGap: string;
|
|
3520
3531
|
arrowColorSecondary: string;
|
|
3521
3532
|
clearColorSecondary: string;
|
|
3533
|
+
loadingColorSecondary: string;
|
|
3522
3534
|
colorSecondary: string;
|
|
3523
3535
|
textColorSecondary: string;
|
|
3524
3536
|
borderSecondary: string;
|
|
@@ -4363,8 +4375,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
4363
4375
|
caretColorSecondary: string;
|
|
4364
4376
|
filterCounterTextColor: string;
|
|
4365
4377
|
filterCounterTextColorDisabled: string;
|
|
4378
|
+
filterCounterGap: string;
|
|
4379
|
+
filterSuffixWrapperGap: string;
|
|
4366
4380
|
arrowColorSecondary: string;
|
|
4367
4381
|
clearColorSecondary: string;
|
|
4382
|
+
loadingColorSecondary: string;
|
|
4368
4383
|
colorSecondary: string;
|
|
4369
4384
|
textColorSecondary: string;
|
|
4370
4385
|
borderSecondary: string;
|
|
@@ -5209,8 +5224,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
5209
5224
|
caretColorSecondary: string;
|
|
5210
5225
|
filterCounterTextColor: string;
|
|
5211
5226
|
filterCounterTextColorDisabled: string;
|
|
5227
|
+
filterCounterGap: string;
|
|
5228
|
+
filterSuffixWrapperGap: string;
|
|
5212
5229
|
arrowColorSecondary: string;
|
|
5213
5230
|
clearColorSecondary: string;
|
|
5231
|
+
loadingColorSecondary: string;
|
|
5214
5232
|
colorSecondary: string;
|
|
5215
5233
|
textColorSecondary: string;
|
|
5216
5234
|
borderSecondary: string;
|
|
@@ -6291,8 +6309,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
6291
6309
|
caretColorSecondary: string;
|
|
6292
6310
|
filterCounterTextColor: string;
|
|
6293
6311
|
filterCounterTextColorDisabled: string;
|
|
6312
|
+
filterCounterGap: string;
|
|
6313
|
+
filterSuffixWrapperGap: string;
|
|
6294
6314
|
arrowColorSecondary: string;
|
|
6295
6315
|
clearColorSecondary: string;
|
|
6316
|
+
loadingColorSecondary: string;
|
|
6296
6317
|
colorSecondary: string;
|
|
6297
6318
|
textColorSecondary: string;
|
|
6298
6319
|
borderSecondary: string;
|
|
@@ -7643,8 +7664,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
7643
7664
|
caretColorSecondary: string;
|
|
7644
7665
|
filterCounterTextColor: string;
|
|
7645
7666
|
filterCounterTextColorDisabled: string;
|
|
7667
|
+
filterCounterGap: string;
|
|
7668
|
+
filterSuffixWrapperGap: string;
|
|
7646
7669
|
arrowColorSecondary: string;
|
|
7647
7670
|
clearColorSecondary: string;
|
|
7671
|
+
loadingColorSecondary: string;
|
|
7648
7672
|
colorSecondary: string;
|
|
7649
7673
|
textColorSecondary: string;
|
|
7650
7674
|
borderSecondary: string;
|
|
@@ -8489,8 +8513,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
8489
8513
|
caretColorSecondary: string;
|
|
8490
8514
|
filterCounterTextColor: string;
|
|
8491
8515
|
filterCounterTextColorDisabled: string;
|
|
8516
|
+
filterCounterGap: string;
|
|
8517
|
+
filterSuffixWrapperGap: string;
|
|
8492
8518
|
arrowColorSecondary: string;
|
|
8493
8519
|
clearColorSecondary: string;
|
|
8520
|
+
loadingColorSecondary: string;
|
|
8494
8521
|
colorSecondary: string;
|
|
8495
8522
|
textColorSecondary: string;
|
|
8496
8523
|
borderSecondary: string;
|
|
@@ -9335,8 +9362,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
9335
9362
|
caretColorSecondary: string;
|
|
9336
9363
|
filterCounterTextColor: string;
|
|
9337
9364
|
filterCounterTextColorDisabled: string;
|
|
9365
|
+
filterCounterGap: string;
|
|
9366
|
+
filterSuffixWrapperGap: string;
|
|
9338
9367
|
arrowColorSecondary: string;
|
|
9339
9368
|
clearColorSecondary: string;
|
|
9369
|
+
loadingColorSecondary: string;
|
|
9340
9370
|
colorSecondary: string;
|
|
9341
9371
|
textColorSecondary: string;
|
|
9342
9372
|
borderSecondary: string;
|
|
@@ -868,8 +868,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
868
868
|
caretColorSecondary: string;
|
|
869
869
|
filterCounterTextColor: string;
|
|
870
870
|
filterCounterTextColorDisabled: string;
|
|
871
|
+
filterCounterGap: string;
|
|
872
|
+
filterSuffixWrapperGap: string;
|
|
871
873
|
arrowColorSecondary: string;
|
|
872
874
|
clearColorSecondary: string;
|
|
875
|
+
loadingColorSecondary: string;
|
|
873
876
|
colorSecondary: string;
|
|
874
877
|
textColorSecondary: string;
|
|
875
878
|
borderSecondary: string;
|
|
@@ -2058,8 +2061,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2058
2061
|
caretColorSecondary: string;
|
|
2059
2062
|
filterCounterTextColor: string;
|
|
2060
2063
|
filterCounterTextColorDisabled: string;
|
|
2064
|
+
filterCounterGap: string;
|
|
2065
|
+
filterSuffixWrapperGap: string;
|
|
2061
2066
|
arrowColorSecondary: string;
|
|
2062
2067
|
clearColorSecondary: string;
|
|
2068
|
+
loadingColorSecondary: string;
|
|
2063
2069
|
colorSecondary: string;
|
|
2064
2070
|
textColorSecondary: string;
|
|
2065
2071
|
borderSecondary: string;
|