@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
|
@@ -81,13 +81,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
81
81
|
mergedClsPrefix: import("vue").Ref<string, string>;
|
|
82
82
|
localItems: import("vue").Ref<{
|
|
83
83
|
key: string;
|
|
84
|
-
title:
|
|
84
|
+
title: import("../interface").DataTableColumnTitle;
|
|
85
85
|
visible: boolean;
|
|
86
86
|
required: boolean;
|
|
87
87
|
sortOrder: number;
|
|
88
88
|
}[], DataTableColumnSettingsItem[] | {
|
|
89
89
|
key: string;
|
|
90
|
-
title:
|
|
90
|
+
title: import("../interface").DataTableColumnTitle;
|
|
91
91
|
visible: boolean;
|
|
92
92
|
required: boolean;
|
|
93
93
|
sortOrder: number;
|
|
@@ -83,7 +83,7 @@ export default defineComponent({
|
|
|
83
83
|
}
|
|
84
84
|
}), h(UText, {
|
|
85
85
|
class: `${mergedClsPrefixRef.value}-data-table-column-settings__item-title`
|
|
86
|
-
}, () => row.title)]);
|
|
86
|
+
}, () => typeof row.title === 'function' ? row.title() : row.title)]);
|
|
87
87
|
}
|
|
88
88
|
}, {
|
|
89
89
|
type: 'draggable',
|
|
@@ -680,8 +680,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
680
680
|
caretColorSecondary: string;
|
|
681
681
|
filterCounterTextColor: string;
|
|
682
682
|
filterCounterTextColorDisabled: string;
|
|
683
|
+
filterCounterGap: string;
|
|
684
|
+
filterSuffixWrapperGap: string;
|
|
683
685
|
arrowColorSecondary: string;
|
|
684
686
|
clearColorSecondary: string;
|
|
687
|
+
loadingColorSecondary: string;
|
|
685
688
|
colorSecondary: string;
|
|
686
689
|
textColorSecondary: string;
|
|
687
690
|
borderSecondary: string;
|
|
@@ -1884,8 +1887,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1884
1887
|
caretColorSecondary: string;
|
|
1885
1888
|
filterCounterTextColor: string;
|
|
1886
1889
|
filterCounterTextColorDisabled: string;
|
|
1890
|
+
filterCounterGap: string;
|
|
1891
|
+
filterSuffixWrapperGap: string;
|
|
1887
1892
|
arrowColorSecondary: string;
|
|
1888
1893
|
clearColorSecondary: string;
|
|
1894
|
+
loadingColorSecondary: string;
|
|
1889
1895
|
colorSecondary: string;
|
|
1890
1896
|
textColorSecondary: string;
|
|
1891
1897
|
borderSecondary: string;
|
|
@@ -3088,8 +3094,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3088
3094
|
caretColorSecondary: string;
|
|
3089
3095
|
filterCounterTextColor: string;
|
|
3090
3096
|
filterCounterTextColorDisabled: string;
|
|
3097
|
+
filterCounterGap: string;
|
|
3098
|
+
filterSuffixWrapperGap: string;
|
|
3091
3099
|
arrowColorSecondary: string;
|
|
3092
3100
|
clearColorSecondary: string;
|
|
3101
|
+
loadingColorSecondary: string;
|
|
3093
3102
|
colorSecondary: string;
|
|
3094
3103
|
textColorSecondary: string;
|
|
3095
3104
|
borderSecondary: string;
|
|
@@ -4323,8 +4332,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4323
4332
|
caretColorSecondary: string;
|
|
4324
4333
|
filterCounterTextColor: string;
|
|
4325
4334
|
filterCounterTextColorDisabled: string;
|
|
4335
|
+
filterCounterGap: string;
|
|
4336
|
+
filterSuffixWrapperGap: string;
|
|
4326
4337
|
arrowColorSecondary: string;
|
|
4327
4338
|
clearColorSecondary: string;
|
|
4339
|
+
loadingColorSecondary: string;
|
|
4328
4340
|
colorSecondary: string;
|
|
4329
4341
|
textColorSecondary: string;
|
|
4330
4342
|
borderSecondary: string;
|
|
@@ -5085,8 +5097,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5085
5097
|
caretColorSecondary: string;
|
|
5086
5098
|
filterCounterTextColor: string;
|
|
5087
5099
|
filterCounterTextColorDisabled: string;
|
|
5100
|
+
filterCounterGap: string;
|
|
5101
|
+
filterSuffixWrapperGap: string;
|
|
5088
5102
|
arrowColorSecondary: string;
|
|
5089
5103
|
clearColorSecondary: string;
|
|
5104
|
+
loadingColorSecondary: string;
|
|
5090
5105
|
colorSecondary: string;
|
|
5091
5106
|
textColorSecondary: string;
|
|
5092
5107
|
borderSecondary: string;
|
|
@@ -6434,8 +6449,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6434
6449
|
caretColorSecondary: string;
|
|
6435
6450
|
filterCounterTextColor: string;
|
|
6436
6451
|
filterCounterTextColorDisabled: string;
|
|
6452
|
+
filterCounterGap: string;
|
|
6453
|
+
filterSuffixWrapperGap: string;
|
|
6437
6454
|
arrowColorSecondary: string;
|
|
6438
6455
|
clearColorSecondary: string;
|
|
6456
|
+
loadingColorSecondary: string;
|
|
6439
6457
|
colorSecondary: string;
|
|
6440
6458
|
textColorSecondary: string;
|
|
6441
6459
|
borderSecondary: string;
|
|
@@ -7638,8 +7656,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7638
7656
|
caretColorSecondary: string;
|
|
7639
7657
|
filterCounterTextColor: string;
|
|
7640
7658
|
filterCounterTextColorDisabled: string;
|
|
7659
|
+
filterCounterGap: string;
|
|
7660
|
+
filterSuffixWrapperGap: string;
|
|
7641
7661
|
arrowColorSecondary: string;
|
|
7642
7662
|
clearColorSecondary: string;
|
|
7663
|
+
loadingColorSecondary: string;
|
|
7643
7664
|
colorSecondary: string;
|
|
7644
7665
|
textColorSecondary: string;
|
|
7645
7666
|
borderSecondary: string;
|
|
@@ -8842,8 +8863,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8842
8863
|
caretColorSecondary: string;
|
|
8843
8864
|
filterCounterTextColor: string;
|
|
8844
8865
|
filterCounterTextColorDisabled: string;
|
|
8866
|
+
filterCounterGap: string;
|
|
8867
|
+
filterSuffixWrapperGap: string;
|
|
8845
8868
|
arrowColorSecondary: string;
|
|
8846
8869
|
clearColorSecondary: string;
|
|
8870
|
+
loadingColorSecondary: string;
|
|
8847
8871
|
colorSecondary: string;
|
|
8848
8872
|
textColorSecondary: string;
|
|
8849
8873
|
borderSecondary: string;
|
|
@@ -74,12 +74,15 @@ export default defineComponent({
|
|
|
74
74
|
clearResizableWidth,
|
|
75
75
|
doUpdateResizableWidth,
|
|
76
76
|
setResizableWidths,
|
|
77
|
-
|
|
77
|
+
setPreferredWidths,
|
|
78
|
+
resizableWidthsRef,
|
|
79
|
+
preferredWidthsRef
|
|
78
80
|
} = useResizable();
|
|
79
81
|
if (props.localStorageKey && props.resizableStorage !== false) {
|
|
80
82
|
const storedWidths = (_a = loadTableState(props.localStorageKey)) === null || _a === void 0 ? void 0 : _a.columnWidths;
|
|
81
83
|
if (storedWidths && Object.keys(storedWidths).length > 0) {
|
|
82
|
-
|
|
84
|
+
setPreferredWidths(Object.assign({}, storedWidths));
|
|
85
|
+
setResizableWidths(Object.assign({}, storedWidths));
|
|
83
86
|
}
|
|
84
87
|
}
|
|
85
88
|
const {
|
|
@@ -237,7 +240,7 @@ export default defineComponent({
|
|
|
237
240
|
var _a, _b;
|
|
238
241
|
return props.localStorageKey ? {
|
|
239
242
|
key: props.localStorageKey,
|
|
240
|
-
columnWidths:
|
|
243
|
+
columnWidths: preferredWidthsRef.value,
|
|
241
244
|
columnsConfig: columnsConfigRef.value,
|
|
242
245
|
page: (_a = mergedPaginationRef.value) === null || _a === void 0 ? void 0 : _a.page,
|
|
243
246
|
pageSize: (_b = mergedPaginationRef.value) === null || _b === void 0 ? void 0 : _b.pageSize,
|
|
@@ -311,7 +314,7 @@ export default defineComponent({
|
|
|
311
314
|
systemMaxWidth: props.resizableMaxWidth
|
|
312
315
|
};
|
|
313
316
|
});
|
|
314
|
-
function buildNonFixedModeWidthMap(
|
|
317
|
+
function buildNonFixedModeWidthMap(preferredWidths, resizableColumns) {
|
|
315
318
|
const {
|
|
316
319
|
systemMinWidth,
|
|
317
320
|
systemMaxWidth
|
|
@@ -321,11 +324,11 @@ export default defineComponent({
|
|
|
321
324
|
widthMap: sanitizeColumnWidthMap(resizableColumns, {
|
|
322
325
|
systemMinWidth,
|
|
323
326
|
systemMaxWidth,
|
|
324
|
-
source:
|
|
327
|
+
source: preferredWidths
|
|
325
328
|
})
|
|
326
329
|
};
|
|
327
330
|
}
|
|
328
|
-
function buildFixedModeWidthMap(visibleLeafColumns,
|
|
331
|
+
function buildFixedModeWidthMap(visibleLeafColumns, sourceWidths) {
|
|
329
332
|
const {
|
|
330
333
|
systemMinWidth,
|
|
331
334
|
systemMaxWidth
|
|
@@ -333,7 +336,7 @@ export default defineComponent({
|
|
|
333
336
|
const preferredWidths = sanitizeColumnWidthMap(visibleLeafColumns, {
|
|
334
337
|
systemMinWidth,
|
|
335
338
|
systemMaxWidth,
|
|
336
|
-
source:
|
|
339
|
+
source: sourceWidths
|
|
337
340
|
});
|
|
338
341
|
const containerWidth = containerWidthSignalRef.value;
|
|
339
342
|
if (containerWidth === undefined) {
|
|
@@ -357,10 +360,10 @@ export default defineComponent({
|
|
|
357
360
|
}
|
|
358
361
|
function reconcileResizableWidths(_reason) {
|
|
359
362
|
const visibleLeafColumns = visibleLeafColumnsSignalRef.value;
|
|
360
|
-
const
|
|
363
|
+
const preferredWidths = preferredWidthsRef.value;
|
|
361
364
|
if (!visibleLeafColumns.length || !resizableColumnPresentRef.value) {
|
|
362
|
-
if (Object.keys(
|
|
363
|
-
|
|
365
|
+
if (Object.keys(resizableWidthsRef.value).length) {
|
|
366
|
+
setResizableWidths({});
|
|
364
367
|
}
|
|
365
368
|
return;
|
|
366
369
|
}
|
|
@@ -368,12 +371,12 @@ export default defineComponent({
|
|
|
368
371
|
const {
|
|
369
372
|
widthMap,
|
|
370
373
|
keys
|
|
371
|
-
} = buildNonFixedModeWidthMap(
|
|
374
|
+
} = buildNonFixedModeWidthMap(preferredWidths, resizableColumnsSignalRef.value);
|
|
372
375
|
syncResizableWidths(widthMap, keys);
|
|
373
376
|
return;
|
|
374
377
|
}
|
|
375
378
|
const visibleLeafKeys = visibleLeafColumns.map(column => column.key);
|
|
376
|
-
const nextWidths = buildFixedModeWidthMap(visibleLeafColumns,
|
|
379
|
+
const nextWidths = buildFixedModeWidthMap(visibleLeafColumns, preferredWidths);
|
|
377
380
|
syncResizableWidths(nextWidths, visibleLeafKeys);
|
|
378
381
|
}
|
|
379
382
|
function registerResizableWidthReconcileWatches() {
|
|
@@ -388,7 +391,7 @@ export default defineComponent({
|
|
|
388
391
|
watch(() => [containerWidthSignalRef.value, widthConstraintSignalRef.value.systemMinWidth, widthConstraintSignalRef.value.systemMaxWidth], () => {
|
|
389
392
|
reconcileResizableWidths('environment');
|
|
390
393
|
});
|
|
391
|
-
watch(() =>
|
|
394
|
+
watch(() => preferredWidthsRef.value, () => {
|
|
392
395
|
reconcileResizableWidths('width-state');
|
|
393
396
|
}, {
|
|
394
397
|
deep: true
|
|
@@ -558,8 +558,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
558
558
|
caretColorSecondary: string;
|
|
559
559
|
filterCounterTextColor: string;
|
|
560
560
|
filterCounterTextColorDisabled: string;
|
|
561
|
+
filterCounterGap: string;
|
|
562
|
+
filterSuffixWrapperGap: string;
|
|
561
563
|
arrowColorSecondary: string;
|
|
562
564
|
clearColorSecondary: string;
|
|
565
|
+
loadingColorSecondary: string;
|
|
563
566
|
colorSecondary: string;
|
|
564
567
|
textColorSecondary: string;
|
|
565
568
|
borderSecondary: string;
|
|
@@ -1320,8 +1323,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1320
1323
|
caretColorSecondary: string;
|
|
1321
1324
|
filterCounterTextColor: string;
|
|
1322
1325
|
filterCounterTextColorDisabled: string;
|
|
1326
|
+
filterCounterGap: string;
|
|
1327
|
+
filterSuffixWrapperGap: string;
|
|
1323
1328
|
arrowColorSecondary: string;
|
|
1324
1329
|
clearColorSecondary: string;
|
|
1330
|
+
loadingColorSecondary: string;
|
|
1325
1331
|
colorSecondary: string;
|
|
1326
1332
|
textColorSecondary: string;
|
|
1327
1333
|
borderSecondary: string;
|
|
@@ -2447,8 +2453,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2447
2453
|
caretColorSecondary: string;
|
|
2448
2454
|
filterCounterTextColor: string;
|
|
2449
2455
|
filterCounterTextColorDisabled: string;
|
|
2456
|
+
filterCounterGap: string;
|
|
2457
|
+
filterSuffixWrapperGap: string;
|
|
2450
2458
|
arrowColorSecondary: string;
|
|
2451
2459
|
clearColorSecondary: string;
|
|
2460
|
+
loadingColorSecondary: string;
|
|
2452
2461
|
colorSecondary: string;
|
|
2453
2462
|
textColorSecondary: string;
|
|
2454
2463
|
borderSecondary: string;
|
|
@@ -3209,8 +3218,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3209
3218
|
caretColorSecondary: string;
|
|
3210
3219
|
filterCounterTextColor: string;
|
|
3211
3220
|
filterCounterTextColorDisabled: string;
|
|
3221
|
+
filterCounterGap: string;
|
|
3222
|
+
filterSuffixWrapperGap: string;
|
|
3212
3223
|
arrowColorSecondary: string;
|
|
3213
3224
|
clearColorSecondary: string;
|
|
3225
|
+
loadingColorSecondary: string;
|
|
3214
3226
|
colorSecondary: string;
|
|
3215
3227
|
textColorSecondary: string;
|
|
3216
3228
|
borderSecondary: string;
|
|
@@ -583,8 +583,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
583
583
|
caretColorSecondary: string;
|
|
584
584
|
filterCounterTextColor: string;
|
|
585
585
|
filterCounterTextColorDisabled: string;
|
|
586
|
+
filterCounterGap: string;
|
|
587
|
+
filterSuffixWrapperGap: string;
|
|
586
588
|
arrowColorSecondary: string;
|
|
587
589
|
clearColorSecondary: string;
|
|
590
|
+
loadingColorSecondary: string;
|
|
588
591
|
colorSecondary: string;
|
|
589
592
|
textColorSecondary: string;
|
|
590
593
|
borderSecondary: string;
|
|
@@ -1345,8 +1348,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1345
1348
|
caretColorSecondary: string;
|
|
1346
1349
|
filterCounterTextColor: string;
|
|
1347
1350
|
filterCounterTextColorDisabled: string;
|
|
1351
|
+
filterCounterGap: string;
|
|
1352
|
+
filterSuffixWrapperGap: string;
|
|
1348
1353
|
arrowColorSecondary: string;
|
|
1349
1354
|
clearColorSecondary: string;
|
|
1355
|
+
loadingColorSecondary: string;
|
|
1350
1356
|
colorSecondary: string;
|
|
1351
1357
|
textColorSecondary: string;
|
|
1352
1358
|
borderSecondary: string;
|
|
@@ -2472,8 +2478,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2472
2478
|
caretColorSecondary: string;
|
|
2473
2479
|
filterCounterTextColor: string;
|
|
2474
2480
|
filterCounterTextColorDisabled: string;
|
|
2481
|
+
filterCounterGap: string;
|
|
2482
|
+
filterSuffixWrapperGap: string;
|
|
2475
2483
|
arrowColorSecondary: string;
|
|
2476
2484
|
clearColorSecondary: string;
|
|
2485
|
+
loadingColorSecondary: string;
|
|
2477
2486
|
colorSecondary: string;
|
|
2478
2487
|
textColorSecondary: string;
|
|
2479
2488
|
borderSecondary: string;
|
|
@@ -3234,8 +3243,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3234
3243
|
caretColorSecondary: string;
|
|
3235
3244
|
filterCounterTextColor: string;
|
|
3236
3245
|
filterCounterTextColorDisabled: string;
|
|
3246
|
+
filterCounterGap: string;
|
|
3247
|
+
filterSuffixWrapperGap: string;
|
|
3237
3248
|
arrowColorSecondary: string;
|
|
3238
3249
|
clearColorSecondary: string;
|
|
3250
|
+
loadingColorSecondary: string;
|
|
3239
3251
|
colorSecondary: string;
|
|
3240
3252
|
textColorSecondary: string;
|
|
3241
3253
|
borderSecondary: string;
|
|
@@ -600,8 +600,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
600
600
|
caretColorSecondary: string;
|
|
601
601
|
filterCounterTextColor: string;
|
|
602
602
|
filterCounterTextColorDisabled: string;
|
|
603
|
+
filterCounterGap: string;
|
|
604
|
+
filterSuffixWrapperGap: string;
|
|
603
605
|
arrowColorSecondary: string;
|
|
604
606
|
clearColorSecondary: string;
|
|
607
|
+
loadingColorSecondary: string;
|
|
605
608
|
colorSecondary: string;
|
|
606
609
|
textColorSecondary: string;
|
|
607
610
|
borderSecondary: string;
|
|
@@ -1362,8 +1365,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1362
1365
|
caretColorSecondary: string;
|
|
1363
1366
|
filterCounterTextColor: string;
|
|
1364
1367
|
filterCounterTextColorDisabled: string;
|
|
1368
|
+
filterCounterGap: string;
|
|
1369
|
+
filterSuffixWrapperGap: string;
|
|
1365
1370
|
arrowColorSecondary: string;
|
|
1366
1371
|
clearColorSecondary: string;
|
|
1372
|
+
loadingColorSecondary: string;
|
|
1367
1373
|
colorSecondary: string;
|
|
1368
1374
|
textColorSecondary: string;
|
|
1369
1375
|
borderSecondary: string;
|
|
@@ -2489,8 +2495,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2489
2495
|
caretColorSecondary: string;
|
|
2490
2496
|
filterCounterTextColor: string;
|
|
2491
2497
|
filterCounterTextColorDisabled: string;
|
|
2498
|
+
filterCounterGap: string;
|
|
2499
|
+
filterSuffixWrapperGap: string;
|
|
2492
2500
|
arrowColorSecondary: string;
|
|
2493
2501
|
clearColorSecondary: string;
|
|
2502
|
+
loadingColorSecondary: string;
|
|
2494
2503
|
colorSecondary: string;
|
|
2495
2504
|
textColorSecondary: string;
|
|
2496
2505
|
borderSecondary: string;
|
|
@@ -3251,8 +3260,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3251
3260
|
caretColorSecondary: string;
|
|
3252
3261
|
filterCounterTextColor: string;
|
|
3253
3262
|
filterCounterTextColorDisabled: string;
|
|
3263
|
+
filterCounterGap: string;
|
|
3264
|
+
filterSuffixWrapperGap: string;
|
|
3254
3265
|
arrowColorSecondary: string;
|
|
3255
3266
|
clearColorSecondary: string;
|
|
3267
|
+
loadingColorSecondary: string;
|
|
3256
3268
|
colorSecondary: string;
|
|
3257
3269
|
textColorSecondary: string;
|
|
3258
3270
|
borderSecondary: string;
|
|
@@ -577,8 +577,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
577
577
|
caretColorSecondary: string;
|
|
578
578
|
filterCounterTextColor: string;
|
|
579
579
|
filterCounterTextColorDisabled: string;
|
|
580
|
+
filterCounterGap: string;
|
|
581
|
+
filterSuffixWrapperGap: string;
|
|
580
582
|
arrowColorSecondary: string;
|
|
581
583
|
clearColorSecondary: string;
|
|
584
|
+
loadingColorSecondary: string;
|
|
582
585
|
colorSecondary: string;
|
|
583
586
|
textColorSecondary: string;
|
|
584
587
|
borderSecondary: string;
|
|
@@ -1339,8 +1342,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1339
1342
|
caretColorSecondary: string;
|
|
1340
1343
|
filterCounterTextColor: string;
|
|
1341
1344
|
filterCounterTextColorDisabled: string;
|
|
1345
|
+
filterCounterGap: string;
|
|
1346
|
+
filterSuffixWrapperGap: string;
|
|
1342
1347
|
arrowColorSecondary: string;
|
|
1343
1348
|
clearColorSecondary: string;
|
|
1349
|
+
loadingColorSecondary: string;
|
|
1344
1350
|
colorSecondary: string;
|
|
1345
1351
|
textColorSecondary: string;
|
|
1346
1352
|
borderSecondary: string;
|
|
@@ -2466,8 +2472,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2466
2472
|
caretColorSecondary: string;
|
|
2467
2473
|
filterCounterTextColor: string;
|
|
2468
2474
|
filterCounterTextColorDisabled: string;
|
|
2475
|
+
filterCounterGap: string;
|
|
2476
|
+
filterSuffixWrapperGap: string;
|
|
2469
2477
|
arrowColorSecondary: string;
|
|
2470
2478
|
clearColorSecondary: string;
|
|
2479
|
+
loadingColorSecondary: string;
|
|
2471
2480
|
colorSecondary: string;
|
|
2472
2481
|
textColorSecondary: string;
|
|
2473
2482
|
borderSecondary: string;
|
|
@@ -3228,8 +3237,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3228
3237
|
caretColorSecondary: string;
|
|
3229
3238
|
filterCounterTextColor: string;
|
|
3230
3239
|
filterCounterTextColorDisabled: string;
|
|
3240
|
+
filterCounterGap: string;
|
|
3241
|
+
filterSuffixWrapperGap: string;
|
|
3231
3242
|
arrowColorSecondary: string;
|
|
3232
3243
|
clearColorSecondary: string;
|
|
3244
|
+
loadingColorSecondary: string;
|
|
3233
3245
|
colorSecondary: string;
|
|
3234
3246
|
textColorSecondary: string;
|
|
3235
3247
|
borderSecondary: string;
|