@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.
Files changed (196) hide show
  1. package/dist/index.js +321 -75
  2. package/dist/index.mjs +321 -75
  3. package/dist/index.prod.js +3 -3
  4. package/dist/index.prod.mjs +3 -3
  5. package/es/_internal/selection/src/Selection.d.ts +27 -0
  6. package/es/_internal/selection/src/Selection.mjs +54 -26
  7. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
  8. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.mjs +15 -0
  9. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
  10. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.mjs +16 -0
  11. package/es/_internal/selection/src/styles/index.cssr.mjs +45 -4
  12. package/es/_internal/selection/styles/light.d.ts +6 -0
  13. package/es/_internal/selection/styles/light.mjs +3 -0
  14. package/es/cascader/src/Cascader.d.ts +30 -0
  15. package/es/cascader/src/CascaderMenu.d.ts +6 -0
  16. package/es/cascader/src/CascaderOption.d.ts +6 -0
  17. package/es/cascader/src/CascaderSelectMenu.d.ts +6 -0
  18. package/es/cascader/src/CascaderSubmenu.d.ts +6 -0
  19. package/es/cascader/styles/light.d.ts +3 -0
  20. package/es/chat/src/Chat.d.ts +132 -0
  21. package/es/chat/src/ChatListItems.d.ts +45 -0
  22. package/es/chat/src/ChatMainArea.d.ts +45 -0
  23. package/es/chat/src/ChatMessages.d.ts +45 -0
  24. package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
  25. package/es/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
  26. package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
  27. package/es/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
  28. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
  29. package/es/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
  30. package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
  31. package/es/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
  32. package/es/chat/src/ChatParts/Sidebar.d.ts +12 -0
  33. package/es/chat/src/interface.d.ts +9 -0
  34. package/es/chat/styles/dark.d.ts +3 -0
  35. package/es/chat/styles/light.d.ts +3 -0
  36. package/es/components.d.ts +474 -0
  37. package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +2 -2
  38. package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.mjs +1 -1
  39. package/es/data-table/src/DataTable.d.ts +24 -0
  40. package/es/data-table/src/DataTable.mjs +16 -13
  41. package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
  42. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
  43. package/es/data-table/src/TableParts/Body.d.ts +12 -0
  44. package/es/data-table/src/TableParts/Header.d.ts +12 -0
  45. package/es/data-table/src/interface.d.ts +162 -151
  46. package/es/data-table/src/interface.mjs +7 -7
  47. package/es/data-table/src/use-column-settings.mjs +4 -1
  48. package/es/data-table/src/use-resizable.d.ts +2 -0
  49. package/es/data-table/src/use-resizable.mjs +9 -1
  50. package/es/data-table/styles/light.d.ts +3 -0
  51. package/es/date-picker/src/DatePicker.d.ts +30 -0
  52. package/es/date-picker/src/panel/date.d.ts +6 -0
  53. package/es/date-picker/src/panel/daterange.d.ts +6 -0
  54. package/es/date-picker/src/panel/datetime.d.ts +6 -0
  55. package/es/date-picker/src/panel/datetimerange.d.ts +6 -0
  56. package/es/date-picker/src/panel/panelMonth.d.ts +24 -0
  57. package/es/date-picker/src/panel/panelMonthContent.d.ts +6 -0
  58. package/es/date-picker/src/panel/panelYear.d.ts +24 -0
  59. package/es/date-picker/src/panel/panelYearContent.d.ts +6 -0
  60. package/es/date-picker/src/panel/use-calendar.d.ts +6 -0
  61. package/es/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  62. package/es/date-picker/src/panel/use-panel-common.d.ts +6 -0
  63. package/es/date-picker/styles/light.d.ts +3 -0
  64. package/es/date-picker-v2/src/DatePickerV2.d.ts +30 -0
  65. package/es/date-picker-v2/styles/dark.d.ts +3 -0
  66. package/es/date-picker-v2/styles/light.d.ts +3 -0
  67. package/es/editor/src/Editor.d.ts +18 -0
  68. package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
  69. package/es/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
  70. package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
  71. package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  72. package/es/editor/src/interface.d.ts +9 -0
  73. package/es/editor/styles/dark.d.ts +3 -0
  74. package/es/editor/styles/light.d.ts +3 -0
  75. package/es/locales/common/ruRU.mjs +1 -1
  76. package/es/pagination/src/Pagination.d.ts +24 -0
  77. package/es/pagination/src/interface.d.ts +9 -0
  78. package/es/pagination/styles/light.d.ts +3 -0
  79. package/es/select/src/Select.d.ts +24 -0
  80. package/es/select/src/Select.mjs +2 -1
  81. package/es/select/src/interface.d.ts +10 -0
  82. package/es/select/src/interface.mjs +1 -0
  83. package/es/select/src/styles/index.cssr.mjs +4 -1
  84. package/es/select/styles/light.d.ts +3 -0
  85. package/es/tree-select/src/TreeSelect.d.ts +30 -0
  86. package/es/tree-select/styles/light.d.ts +3 -0
  87. package/es/upload/src/Upload.d.ts +21 -0
  88. package/es/upload/src/Upload.mjs +7 -1
  89. package/es/upload/src/UploadFile.d.ts +6 -0
  90. package/es/upload/src/UploadFile.mjs +12 -8
  91. package/es/upload/src/UploadFileList.mjs +3 -2
  92. package/es/upload/src/UploadProgress.d.ts +6 -0
  93. package/es/upload/src/interface.d.ts +10 -1
  94. package/es/upload/src/styles/index.cssr.mjs +84 -1
  95. package/es/upload/src/useUploadActionsRender.mjs +10 -5
  96. package/es/upload/styles/light.d.ts +6 -0
  97. package/es/upload/styles/light.mjs +4 -0
  98. package/es/version.d.ts +1 -1
  99. package/es/version.mjs +1 -1
  100. package/lib/_internal/selection/src/Selection.d.ts +27 -0
  101. package/lib/_internal/selection/src/Selection.js +43 -35
  102. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
  103. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.js +13 -0
  104. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
  105. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.js +19 -0
  106. package/lib/_internal/selection/src/styles/index.cssr.js +45 -4
  107. package/lib/_internal/selection/styles/light.d.ts +6 -0
  108. package/lib/_internal/selection/styles/light.js +3 -0
  109. package/lib/cascader/src/Cascader.d.ts +30 -0
  110. package/lib/cascader/src/CascaderMenu.d.ts +6 -0
  111. package/lib/cascader/src/CascaderOption.d.ts +6 -0
  112. package/lib/cascader/src/CascaderSelectMenu.d.ts +6 -0
  113. package/lib/cascader/src/CascaderSubmenu.d.ts +6 -0
  114. package/lib/cascader/styles/light.d.ts +3 -0
  115. package/lib/chat/src/Chat.d.ts +132 -0
  116. package/lib/chat/src/ChatListItems.d.ts +45 -0
  117. package/lib/chat/src/ChatMainArea.d.ts +45 -0
  118. package/lib/chat/src/ChatMessages.d.ts +45 -0
  119. package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
  120. package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
  121. package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
  122. package/lib/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
  123. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
  124. package/lib/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
  125. package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
  126. package/lib/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
  127. package/lib/chat/src/ChatParts/Sidebar.d.ts +12 -0
  128. package/lib/chat/src/interface.d.ts +9 -0
  129. package/lib/chat/styles/dark.d.ts +3 -0
  130. package/lib/chat/styles/light.d.ts +3 -0
  131. package/lib/components.d.ts +474 -0
  132. package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +2 -2
  133. package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.js +1 -1
  134. package/lib/data-table/src/DataTable.d.ts +24 -0
  135. package/lib/data-table/src/DataTable.js +14 -13
  136. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
  137. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
  138. package/lib/data-table/src/TableParts/Body.d.ts +12 -0
  139. package/lib/data-table/src/TableParts/Header.d.ts +12 -0
  140. package/lib/data-table/src/interface.d.ts +162 -151
  141. package/lib/data-table/src/interface.js +7 -7
  142. package/lib/data-table/src/use-column-settings.js +6 -1
  143. package/lib/data-table/src/use-resizable.d.ts +2 -0
  144. package/lib/data-table/src/use-resizable.js +9 -1
  145. package/lib/data-table/styles/light.d.ts +3 -0
  146. package/lib/date-picker/src/DatePicker.d.ts +30 -0
  147. package/lib/date-picker/src/panel/date.d.ts +6 -0
  148. package/lib/date-picker/src/panel/daterange.d.ts +6 -0
  149. package/lib/date-picker/src/panel/datetime.d.ts +6 -0
  150. package/lib/date-picker/src/panel/datetimerange.d.ts +6 -0
  151. package/lib/date-picker/src/panel/panelMonth.d.ts +24 -0
  152. package/lib/date-picker/src/panel/panelMonthContent.d.ts +6 -0
  153. package/lib/date-picker/src/panel/panelYear.d.ts +24 -0
  154. package/lib/date-picker/src/panel/panelYearContent.d.ts +6 -0
  155. package/lib/date-picker/src/panel/use-calendar.d.ts +6 -0
  156. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  157. package/lib/date-picker/src/panel/use-panel-common.d.ts +6 -0
  158. package/lib/date-picker/styles/light.d.ts +3 -0
  159. package/lib/date-picker-v2/src/DatePickerV2.d.ts +30 -0
  160. package/lib/date-picker-v2/styles/dark.d.ts +3 -0
  161. package/lib/date-picker-v2/styles/light.d.ts +3 -0
  162. package/lib/editor/src/Editor.d.ts +18 -0
  163. package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
  164. package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
  165. package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
  166. package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  167. package/lib/editor/src/interface.d.ts +9 -0
  168. package/lib/editor/styles/dark.d.ts +3 -0
  169. package/lib/editor/styles/light.d.ts +3 -0
  170. package/lib/locales/common/ruRU.js +1 -1
  171. package/lib/pagination/src/Pagination.d.ts +24 -0
  172. package/lib/pagination/src/interface.d.ts +9 -0
  173. package/lib/pagination/styles/light.d.ts +3 -0
  174. package/lib/select/src/Select.d.ts +24 -0
  175. package/lib/select/src/Select.js +5 -2
  176. package/lib/select/src/interface.d.ts +10 -0
  177. package/lib/select/src/interface.js +1 -1
  178. package/lib/select/src/styles/index.cssr.js +3 -0
  179. package/lib/select/styles/light.d.ts +3 -0
  180. package/lib/tree-select/src/TreeSelect.d.ts +30 -0
  181. package/lib/tree-select/styles/light.d.ts +3 -0
  182. package/lib/upload/src/Upload.d.ts +21 -0
  183. package/lib/upload/src/Upload.js +5 -2
  184. package/lib/upload/src/UploadFile.d.ts +6 -0
  185. package/lib/upload/src/UploadFile.js +19 -11
  186. package/lib/upload/src/UploadFileList.js +5 -1
  187. package/lib/upload/src/UploadProgress.d.ts +6 -0
  188. package/lib/upload/src/interface.d.ts +10 -1
  189. package/lib/upload/src/styles/index.cssr.js +84 -1
  190. package/lib/upload/src/useUploadActionsRender.js +17 -7
  191. package/lib/upload/styles/light.d.ts +6 -0
  192. package/lib/upload/styles/light.js +4 -1
  193. package/lib/version.d.ts +1 -1
  194. package/lib/version.js +1 -1
  195. package/package.json +1 -1
  196. 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: string;
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: string;
90
+ title: import("../interface").DataTableColumnTitle;
91
91
  visible: boolean;
92
92
  required: boolean;
93
93
  sortOrder: number;
@@ -90,7 +90,7 @@ exports.default = (0, vue_1.defineComponent)({
90
90
  }),
91
91
  (0, vue_1.h)(typography_1.UText, {
92
92
  class: `${mergedClsPrefixRef.value}-data-table-column-settings__item-title`
93
- }, () => row.title)
93
+ }, () => typeof row.title === 'function' ? row.title() : row.title)
94
94
  ]);
95
95
  }
96
96
  },
@@ -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;
@@ -67,11 +67,12 @@ exports.default = (0, vue_1.defineComponent)({
67
67
  const themeRef = (0, _mixins_1.useTheme)('DataTable', '-data-table', index_cssr_1.default, styles_1.dataTableLight, props, mergedClsPrefixRef);
68
68
  const bodyWidthRef = (0, vue_1.ref)(null);
69
69
  const mainTableInstRef = (0, vue_1.ref)(null);
70
- const { getResizableWidth, clearResizableWidth, doUpdateResizableWidth, setResizableWidths, resizableWidthsRef } = (0, use_resizable_1.useResizable)();
70
+ const { getResizableWidth, clearResizableWidth, doUpdateResizableWidth, setResizableWidths, setPreferredWidths, resizableWidthsRef, preferredWidthsRef } = (0, use_resizable_1.useResizable)();
71
71
  if (props.localStorageKey && props.resizableStorage !== false) {
72
72
  const storedWidths = (_a = (0, use_table_storage_1.loadTableState)(props.localStorageKey)) === null || _a === void 0 ? void 0 : _a.columnWidths;
73
73
  if (storedWidths && Object.keys(storedWidths).length > 0) {
74
- resizableWidthsRef.value = Object.assign(Object.assign({}, resizableWidthsRef.value), storedWidths);
74
+ setPreferredWidths(Object.assign({}, storedWidths));
75
+ setResizableWidths(Object.assign({}, storedWidths));
75
76
  }
76
77
  }
77
78
  const { enabledRef: columnSettingsEnabledRef, resolvedColumnsRef, scrollXRef: columnSettingsScrollXRef, columnsConfigRef, drawerOpenRef, drawerItemsRef, defaultDrawerItemsRef, openDrawer: openColumnSettings, resetConfig: resetColumnSettings, applyConfig: applyColumnSettings, applyConfigFromKeys: applyColumnSettingsFromKeys } = (0, use_column_settings_1.useColumnSettings)(props, getResizableWidth);
@@ -145,7 +146,7 @@ exports.default = (0, vue_1.defineComponent)({
145
146
  return props.localStorageKey
146
147
  ? {
147
148
  key: props.localStorageKey,
148
- columnWidths: resizableWidthsRef.value,
149
+ columnWidths: preferredWidthsRef.value,
149
150
  columnsConfig: columnsConfigRef.value,
150
151
  page: (_a = mergedPaginationRef.value) === null || _a === void 0 ? void 0 : _a.page,
151
152
  pageSize: (_b = mergedPaginationRef.value) === null || _b === void 0 ? void 0 : _b.pageSize,
@@ -235,23 +236,23 @@ exports.default = (0, vue_1.defineComponent)({
235
236
  systemMaxWidth: props.resizableMaxWidth
236
237
  };
237
238
  });
238
- function buildNonFixedModeWidthMap(currentWidths, resizableColumns) {
239
+ function buildNonFixedModeWidthMap(preferredWidths, resizableColumns) {
239
240
  const { systemMinWidth, systemMaxWidth } = widthConstraintSignalRef.value;
240
241
  return {
241
242
  keys: resizableColumns.map(column => column.key),
242
243
  widthMap: (0, utils_1.sanitizeColumnWidthMap)(resizableColumns, {
243
244
  systemMinWidth,
244
245
  systemMaxWidth,
245
- source: currentWidths
246
+ source: preferredWidths
246
247
  })
247
248
  };
248
249
  }
249
- function buildFixedModeWidthMap(visibleLeafColumns, currentWidths) {
250
+ function buildFixedModeWidthMap(visibleLeafColumns, sourceWidths) {
250
251
  const { systemMinWidth, systemMaxWidth } = widthConstraintSignalRef.value;
251
252
  const preferredWidths = (0, utils_1.sanitizeColumnWidthMap)(visibleLeafColumns, {
252
253
  systemMinWidth,
253
254
  systemMaxWidth,
254
- source: currentWidths
255
+ source: sourceWidths
255
256
  });
256
257
  const containerWidth = containerWidthSignalRef.value;
257
258
  if (containerWidth === undefined) {
@@ -276,20 +277,20 @@ exports.default = (0, vue_1.defineComponent)({
276
277
  }
277
278
  function reconcileResizableWidths(_reason) {
278
279
  const visibleLeafColumns = visibleLeafColumnsSignalRef.value;
279
- const currentWidths = resizableWidthsRef.value;
280
+ const preferredWidths = preferredWidthsRef.value;
280
281
  if (!visibleLeafColumns.length || !resizableColumnPresentRef.value) {
281
- if (Object.keys(currentWidths).length) {
282
- clearResizableWidth();
282
+ if (Object.keys(resizableWidthsRef.value).length) {
283
+ setResizableWidths({});
283
284
  }
284
285
  return;
285
286
  }
286
287
  if (modeSignalRef.value !== 'fixed') {
287
- const { widthMap, keys } = buildNonFixedModeWidthMap(currentWidths, resizableColumnsSignalRef.value);
288
+ const { widthMap, keys } = buildNonFixedModeWidthMap(preferredWidths, resizableColumnsSignalRef.value);
288
289
  syncResizableWidths(widthMap, keys);
289
290
  return;
290
291
  }
291
292
  const visibleLeafKeys = visibleLeafColumns.map(column => column.key);
292
- const nextWidths = buildFixedModeWidthMap(visibleLeafColumns, currentWidths);
293
+ const nextWidths = buildFixedModeWidthMap(visibleLeafColumns, preferredWidths);
293
294
  syncResizableWidths(nextWidths, visibleLeafKeys);
294
295
  }
295
296
  function registerResizableWidthReconcileWatches() {
@@ -311,7 +312,7 @@ exports.default = (0, vue_1.defineComponent)({
311
312
  ], () => {
312
313
  reconcileResizableWidths('environment');
313
314
  });
314
- (0, vue_1.watch)(() => resizableWidthsRef.value, () => {
315
+ (0, vue_1.watch)(() => preferredWidthsRef.value, () => {
315
316
  reconcileResizableWidths('width-state');
316
317
  }, { deep: true });
317
318
  }
@@ -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;