@rockshin/tao-ui 0.0.48 → 0.0.49

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 (143) hide show
  1. package/dist/components/affix/affix.js +20 -16
  2. package/dist/components/alert/alert.js +114 -99
  3. package/dist/components/app/app-modals.js +134 -96
  4. package/dist/components/app/app-notices.js +39 -23
  5. package/dist/components/auto-complete/auto-complete.js +21 -7
  6. package/dist/components/avatar/avatar.js +31 -11
  7. package/dist/components/badge/badge.css +1 -1
  8. package/dist/components/badge/badge.js +72 -257
  9. package/dist/components/border-beam/border-beam.js +21 -17
  10. package/dist/components/breadcrumb/breadcrumb.js +178 -159
  11. package/dist/components/button/button.js +61 -53
  12. package/dist/components/calendar/calendar.js +6 -4
  13. package/dist/components/card/card.js +24 -8
  14. package/dist/components/carousel/carousel.d.ts +1 -1
  15. package/dist/components/carousel/carousel.js +105 -68
  16. package/dist/components/cascader/cascader.js +54 -19
  17. package/dist/components/checkbox/checkbox.css +13 -2
  18. package/dist/components/checkbox/checkbox.d.ts +2 -0
  19. package/dist/components/checkbox/checkbox.js +320 -229
  20. package/dist/components/collapse/collapse-panels.d.ts +1 -1
  21. package/dist/components/collapse/collapse-panels.js +122 -113
  22. package/dist/components/collapse/collapse.js +98 -63
  23. package/dist/components/color-picker/color-picker.js +539 -441
  24. package/dist/components/color-picker/color.js +1 -1
  25. package/dist/components/context-menu/context-menu.d.ts +1 -1
  26. package/dist/components/context-menu/context-menu.js +108 -68
  27. package/dist/components/date-picker/calendar/calendar-grid.js +42 -39
  28. package/dist/components/date-picker/calendar/month-grid.d.ts +8 -1
  29. package/dist/components/date-picker/calendar/month-grid.js +79 -37
  30. package/dist/components/date-picker/calendar/time-panel.d.ts +2 -1
  31. package/dist/components/date-picker/calendar/time-panel.js +94 -89
  32. package/dist/components/date-picker/calendar/year-grid.d.ts +8 -1
  33. package/dist/components/date-picker/calendar/year-grid.js +66 -35
  34. package/dist/components/date-picker/date-picker.css +24 -1
  35. package/dist/components/date-picker/date-picker.js +99 -53
  36. package/dist/components/date-picker/presets.d.ts +2 -1
  37. package/dist/components/date-picker/presets.js +27 -24
  38. package/dist/components/date-picker/range-picker.js +308 -153
  39. package/dist/components/descriptions/descriptions.js +7 -3
  40. package/dist/components/divider/divider.css +1 -1
  41. package/dist/components/divider/divider.js +1 -1
  42. package/dist/components/drawer/drawer.js +201 -369
  43. package/dist/components/dropdown/dropdown.d.ts +1 -1
  44. package/dist/components/dropdown/dropdown.js +183 -279
  45. package/dist/components/empty/empty.js +57 -78
  46. package/dist/components/float-button/float-button.d.ts +1 -0
  47. package/dist/components/float-button/float-button.js +47 -30
  48. package/dist/components/form/field-control.d.ts +4 -2
  49. package/dist/components/form/field-control.js +17 -9
  50. package/dist/components/form/form-context.d.ts +8 -2
  51. package/dist/components/form/form-context.js +2 -1
  52. package/dist/components/form/form-item.js +85 -63
  53. package/dist/components/form/use-form.d.ts +2 -1
  54. package/dist/components/form/use-form.js +2 -1
  55. package/dist/components/form-field/form-field-view.d.ts +3 -1
  56. package/dist/components/form-field/form-field-view.js +194 -141
  57. package/dist/components/form-section/form-section.d.ts +1 -1
  58. package/dist/components/form-section/form-section.js +52 -45
  59. package/dist/components/image/image.js +585 -477
  60. package/dist/components/input/base-input.js +8 -9
  61. package/dist/components/input/input-shared.d.ts +5 -2
  62. package/dist/components/input/input-shared.js +42 -18
  63. package/dist/components/input/otp.js +236 -217
  64. package/dist/components/input/password.js +2 -1
  65. package/dist/components/input/search.js +8 -7
  66. package/dist/components/list/list-pagination.js +41 -36
  67. package/dist/components/list/list.js +141 -125
  68. package/dist/components/listy/listy.js +175 -106
  69. package/dist/components/masonry/masonry.js +108 -85
  70. package/dist/components/mentions/mentions.js +12 -3
  71. package/dist/components/menu/menu-render.d.ts +9 -3
  72. package/dist/components/menu/menu-render.js +99 -36
  73. package/dist/components/modal/confirm-dialog.js +10 -4
  74. package/dist/components/modal/confirm.js +3 -7
  75. package/dist/components/modal/index.js +9 -3
  76. package/dist/components/modal/modal.js +390 -365
  77. package/dist/components/pagination/pagination.js +105 -96
  78. package/dist/components/popconfirm/popconfirm.d.ts +1 -1
  79. package/dist/components/popconfirm/popconfirm.js +219 -168
  80. package/dist/components/popover/popover.js +330 -243
  81. package/dist/components/progress/progress.css +2 -2
  82. package/dist/components/progress/progress.js +232 -458
  83. package/dist/components/qr-code/qr-code.js +72 -66
  84. package/dist/components/radio/radio.css +15 -4
  85. package/dist/components/radio/radio.d.ts +2 -1
  86. package/dist/components/radio/radio.js +260 -198
  87. package/dist/components/rate/rate.js +173 -113
  88. package/dist/components/scroll-area/scroll-area.js +241 -211
  89. package/dist/components/segmented/segmented.js +73 -41
  90. package/dist/components/select/mobile-select.d.ts +2 -1
  91. package/dist/components/select/mobile-select.js +24 -13
  92. package/dist/components/select/select-searchable-list.d.ts +2 -1
  93. package/dist/components/select/select-searchable-list.js +2 -3
  94. package/dist/components/select/select.js +49 -25
  95. package/dist/components/select/use-select-selection.d.ts +1 -1
  96. package/dist/components/select/use-select-selection.js +7 -4
  97. package/dist/components/skeleton/skeleton.js +56 -48
  98. package/dist/components/slider/slider.js +87 -212
  99. package/dist/components/sonner/sonner.js +109 -93
  100. package/dist/components/spinner/spinner.js +147 -138
  101. package/dist/components/splitter/splitter.js +222 -159
  102. package/dist/components/statistic/statistic.js +7 -6
  103. package/dist/components/steps/steps.js +88 -81
  104. package/dist/components/steps/use-display-steps.js +1 -1
  105. package/dist/components/switch/switch.js +89 -89
  106. package/dist/components/table/table-filter.js +66 -56
  107. package/dist/components/table/table-icons.d.ts +2 -1
  108. package/dist/components/table/table-icons.js +11 -9
  109. package/dist/components/table/table-model.js +1 -1
  110. package/dist/components/table/table.js +107 -83
  111. package/dist/components/table/use-table-data.d.ts +6 -3
  112. package/dist/components/table/use-table-data.js +166 -130
  113. package/dist/components/tabs/tabs.css +1 -1
  114. package/dist/components/tabs/tabs.js +236 -179
  115. package/dist/components/tag/tag.d.ts +2 -2
  116. package/dist/components/tag/tag.js +111 -108
  117. package/dist/components/textarea/textarea.js +22 -17
  118. package/dist/components/time-picker/time-picker.js +5 -3
  119. package/dist/components/timeline/timeline.css +6 -1
  120. package/dist/components/timeline/timeline.js +21 -11
  121. package/dist/components/tooltip/tooltip.d.ts +2 -2
  122. package/dist/components/tooltip/tooltip.js +123 -233
  123. package/dist/components/tour/tour.css +4 -0
  124. package/dist/components/tour/tour.js +400 -331
  125. package/dist/components/transfer/transfer-list.js +29 -11
  126. package/dist/components/transfer/transfer-parts.js +1 -1
  127. package/dist/components/transfer/transfer-types.d.ts +1 -0
  128. package/dist/components/transfer/transfer.js +29 -14
  129. package/dist/components/tree/tree-keyboard.d.ts +1 -1
  130. package/dist/components/tree/tree-keyboard.js +5 -3
  131. package/dist/components/tree/tree.js +74 -59
  132. package/dist/components/tree-select/select-engine.d.ts +3 -2
  133. package/dist/components/tree-select/select-engine.js +18 -16
  134. package/dist/components/tree-select/tree-select.js +21 -5
  135. package/dist/components/upload/upload.css +8 -0
  136. package/dist/components/upload/upload.js +160 -72
  137. package/dist/components/watermark/watermark.js +36 -29
  138. package/dist/number-input/use-number-input.js +129 -90
  139. package/dist/number-input/validate.js +32 -5
  140. package/dist/provider/merge-locale.js +12 -9
  141. package/dist/provider/tao-provider.d.ts +3 -1
  142. package/dist/provider/tao-provider.js +123 -86
  143. package/package.json +1 -1
@@ -1,7 +1,10 @@
1
- import type { SortOrder, TableProps, TableRecord } from './table-types.js';
2
- type TableDataProps<T extends TableRecord> = Pick<TableProps<T>, 'columns' | 'dataSource' | 'pagination' | 'onChange'>;
3
- export declare function useTableData<T extends TableRecord>({ columns, dataSource, pagination: paginationProp, onChange, }: TableDataProps<T>): {
1
+ import type { SortOrder, TableColumn, TableProps, TableRecord } from './table-types.js';
2
+ type TableDataProps<T extends TableRecord> = Pick<TableProps<T>, 'columns' | 'dataSource' | 'pagination' | 'onChange'> & {
3
+ configuredColumns: TableColumn<T>[];
4
+ };
5
+ export declare function useTableData<T extends TableRecord>({ columns, configuredColumns, dataSource, pagination: paginationProp, onChange, }: TableDataProps<T>): {
4
6
  rows: T[];
7
+ columnKeys: string[];
5
8
  getColumnState: (index: number) => {
6
9
  sortOrder: SortOrder;
7
10
  filteredValue: string[];
@@ -2,34 +2,34 @@ import { c } from "react-compiler-runtime";
2
2
  import { useState } from "react";
3
3
  import { getColKey, nextSortOrder } from "./table-model.js";
4
4
  function useTableData(t0) {
5
- const $ = c(49);
6
- const { columns, dataSource, pagination: paginationProp, onChange } = t0;
5
+ const $ = c(58);
6
+ const { columns, configuredColumns, dataSource, pagination: paginationProp, onChange } = t0;
7
7
  let t1;
8
- if ($[0] !== columns) {
8
+ if ($[0] !== configuredColumns) {
9
9
  t1 = ()=>{
10
- const index = columns.findIndex(_temp);
10
+ const index = configuredColumns.findIndex(_temp);
11
11
  return index < 0 ? {
12
12
  key: null,
13
13
  order: null
14
14
  } : {
15
- key: getColKey(columns[index], index),
16
- order: columns[index].defaultSortOrder ?? null
15
+ key: getColKey(configuredColumns[index], index),
16
+ order: configuredColumns[index].defaultSortOrder ?? null
17
17
  };
18
18
  };
19
- $[0] = columns;
19
+ $[0] = configuredColumns;
20
20
  $[1] = t1;
21
21
  } else t1 = $[1];
22
22
  const [sort, setSort] = useState(t1);
23
23
  let t2;
24
- if ($[2] !== columns) {
24
+ if ($[2] !== configuredColumns) {
25
25
  t2 = ()=>{
26
- const values = {};
27
- columns.forEach((column_0, index_0)=>{
26
+ const values = Object.create(null);
27
+ configuredColumns.forEach((column_0, index_0)=>{
28
28
  if (column_0.filters) values[getColKey(column_0, index_0)] = column_0.filteredValue ?? [];
29
29
  });
30
30
  return values;
31
31
  };
32
- $[2] = columns;
32
+ $[2] = configuredColumns;
33
33
  $[3] = t2;
34
34
  } else t2 = $[3];
35
35
  const [filters, setFilters] = useState(t2);
@@ -38,132 +38,155 @@ function useTableData(t0) {
38
38
  const [internalPageSize, setPageSize] = useState(paginationConfig?.defaultPageSize ?? paginationConfig?.pageSize ?? 10);
39
39
  const pageSize = paginationConfig?.pageSize ?? internalPageSize;
40
40
  let t3;
41
- if ($[4] !== columns || $[5] !== filters || $[6] !== sort) {
42
- let t4;
43
- if ($[8] !== filters || $[9] !== sort) {
44
- t4 = (column_1, index_1)=>{
45
- const key = getColKey(column_1, index_1);
41
+ if ($[4] !== columns) {
42
+ t3 = columns.some(_temp2);
43
+ $[4] = columns;
44
+ $[5] = t3;
45
+ } else t3 = $[5];
46
+ const hasControlledSort = t3;
47
+ let t4;
48
+ if ($[6] !== columns || $[7] !== configuredColumns) {
49
+ const configuredIndexes = new Map(configuredColumns.map(_temp3));
50
+ t4 = columns.map((column_3, index_2)=>getColKey(column_3, configuredIndexes.get(column_3) ?? index_2));
51
+ $[6] = columns;
52
+ $[7] = configuredColumns;
53
+ $[8] = t4;
54
+ } else t4 = $[8];
55
+ const columnKeys = t4;
56
+ let t5;
57
+ if ($[9] !== columnKeys || $[10] !== columns || $[11] !== filters || $[12] !== hasControlledSort || $[13] !== sort) {
58
+ let t6;
59
+ if ($[15] !== columnKeys || $[16] !== filters || $[17] !== hasControlledSort || $[18] !== sort) {
60
+ t6 = (column_4, index_3)=>{
61
+ const key = columnKeys[index_3];
46
62
  return {
47
- column: column_1,
63
+ column: column_4,
48
64
  key,
49
- order: void 0 !== column_1.sortOrder ? column_1.sortOrder : sort.key === key ? sort.order : null,
50
- values: column_1.filteredValue ?? filters[key] ?? []
65
+ order: column_4.sorter ? void 0 !== column_4.sortOrder ? column_4.sortOrder : hasControlledSort || sort.key !== key ? null : sort.order : null,
66
+ values: column_4.filteredValue ?? (Object.hasOwn(filters, key) ? filters[key] : [])
51
67
  };
52
68
  };
53
- $[8] = filters;
54
- $[9] = sort;
55
- $[10] = t4;
56
- } else t4 = $[10];
57
- t3 = columns.map(t4);
58
- $[4] = columns;
59
- $[5] = filters;
60
- $[6] = sort;
61
- $[7] = t3;
62
- } else t3 = $[7];
63
- const columnStates = t3;
64
- let t4;
65
- if ($[11] !== columnStates) {
66
- t4 = columnStates.find(_temp2) ?? {
69
+ $[15] = columnKeys;
70
+ $[16] = filters;
71
+ $[17] = hasControlledSort;
72
+ $[18] = sort;
73
+ $[19] = t6;
74
+ } else t6 = $[19];
75
+ t5 = columns.map(t6);
76
+ $[9] = columnKeys;
77
+ $[10] = columns;
78
+ $[11] = filters;
79
+ $[12] = hasControlledSort;
80
+ $[13] = sort;
81
+ $[14] = t5;
82
+ } else t5 = $[14];
83
+ const columnStates = t5;
84
+ let t6;
85
+ if ($[20] !== columnStates) {
86
+ t6 = columnStates.find(_temp4) ?? {
67
87
  key: null,
68
88
  order: null
69
89
  };
70
- $[11] = columnStates;
71
- $[12] = t4;
72
- } else t4 = $[12];
73
- const resolvedSort = t4;
90
+ $[20] = columnStates;
91
+ $[21] = t6;
92
+ } else t6 = $[21];
93
+ const resolvedSort = t6;
74
94
  let values_0;
75
- if ($[13] !== columnStates || $[14] !== filters) {
76
- values_0 = {
77
- ...filters
78
- };
95
+ if ($[22] !== columnStates || $[23] !== filters) {
96
+ values_0 = Object.assign(Object.create(null), filters);
79
97
  for (const state_0 of columnStates)if (void 0 !== state_0.column.filteredValue) values_0[state_0.key] = state_0.values;
80
- $[13] = columnStates;
81
- $[14] = filters;
82
- $[15] = values_0;
83
- } else values_0 = $[15];
98
+ $[22] = columnStates;
99
+ $[23] = filters;
100
+ $[24] = values_0;
101
+ } else values_0 = $[24];
84
102
  const resolvedFilters = values_0;
85
103
  let data;
86
- if ($[16] !== columnStates || $[17] !== dataSource) {
104
+ if ($[25] !== columnStates || $[26] !== dataSource) {
87
105
  data = [
88
106
  ...dataSource
89
107
  ];
90
- for (const { column: column_2, values: values_1 } of columnStates)if (column_2.filters && column_2.onFilter && values_1.length > 0) data = data.filter((record)=>values_1.some((v)=>column_2.onFilter(v, record)));
91
- const activeSort = columnStates.find(_temp3);
108
+ for (const { column: column_5, values: values_1 } of columnStates)if (column_5.filters && column_5.onFilter && values_1.length > 0) data = data.filter((record)=>values_1.some((v)=>column_5.onFilter(v, record)));
109
+ const activeSort = columnStates.find(_temp5);
92
110
  if (activeSort && "function" == typeof activeSort.column.sorter) {
93
111
  const compare = activeSort.column.sorter;
94
112
  data.sort((a, b)=>{
95
- const result = compare(a, b);
113
+ const result = compare.call(activeSort.column, a, b);
96
114
  return "descend" === activeSort.order ? -result : result;
97
115
  });
98
116
  }
99
- $[16] = columnStates;
100
- $[17] = dataSource;
101
- $[18] = data;
102
- } else data = $[18];
117
+ $[25] = columnStates;
118
+ $[26] = dataSource;
119
+ $[27] = data;
120
+ } else data = $[27];
103
121
  const processedData = data;
104
122
  const total = paginationConfig?.total ?? processedData.length;
105
123
  const lastPage = Math.max(1, Math.ceil(total / pageSize));
106
124
  const boundedPage = Math.min(Math.max(1, internalPage), lastPage);
107
125
  if (false !== paginationProp && paginationConfig?.current === void 0 && boundedPage !== internalPage) setPage(boundedPage);
108
126
  const currentPage = paginationConfig?.current ?? internalPage;
109
- let t5;
127
+ let t7;
110
128
  bb0: {
111
129
  if (false === paginationProp || paginationConfig?.total !== void 0) {
112
- t5 = processedData;
130
+ t7 = processedData;
113
131
  break bb0;
114
132
  }
115
133
  const start = (currentPage - 1) * pageSize;
116
- let t6;
117
- if ($[19] !== pageSize || $[20] !== processedData || $[21] !== start) {
118
- t6 = processedData.slice(start, start + pageSize);
119
- $[19] = pageSize;
120
- $[20] = processedData;
121
- $[21] = start;
122
- $[22] = t6;
123
- } else t6 = $[22];
124
- t5 = t6;
134
+ let t8;
135
+ if ($[28] !== pageSize || $[29] !== processedData || $[30] !== start) {
136
+ t8 = processedData.slice(start, start + pageSize);
137
+ $[28] = pageSize;
138
+ $[29] = processedData;
139
+ $[30] = start;
140
+ $[31] = t8;
141
+ } else t8 = $[31];
142
+ t7 = t8;
125
143
  }
126
- const rows = t5;
127
- let t6;
128
- if ($[23] !== columnStates || $[24] !== onChange || $[25] !== resolvedFilters || $[26] !== resolvedSort) {
129
- t6 = function(page, size, t7, t8) {
130
- const nextSort = void 0 === t7 ? resolvedSort : t7;
131
- const nextFilters = void 0 === t8 ? resolvedFilters : t8;
132
- const filterResult = {};
133
- for (const { column: column_4, key: key_0 } of columnStates){
134
- if (!column_4.filters) continue;
135
- const values_2 = nextFilters[key_0];
136
- filterResult[null == column_4.dataIndex ? key_0 : String(column_4.dataIndex)] = values_2?.length ? values_2 : null;
144
+ const rows = t7;
145
+ let t8;
146
+ if ($[32] !== columnStates || $[33] !== onChange || $[34] !== resolvedFilters || $[35] !== resolvedSort) {
147
+ t8 = function(page, size, t9, t10) {
148
+ const nextSort = void 0 === t9 ? resolvedSort : t9;
149
+ const nextFilters = void 0 === t10 ? resolvedFilters : t10;
150
+ const filterEntries = [];
151
+ for (const { column: column_7, key: key_0 } of columnStates){
152
+ if (!column_7.filters) continue;
153
+ const values_2 = Object.hasOwn(nextFilters, key_0) ? nextFilters[key_0] : void 0;
154
+ filterEntries.push([
155
+ null == column_7.dataIndex ? key_0 : String(column_7.dataIndex),
156
+ values_2?.length ? [
157
+ ...values_2
158
+ ] : null
159
+ ]);
137
160
  }
138
- const column_5 = nextSort.key ? columnStates.find((state_1)=>state_1.key === nextSort.key)?.column : void 0;
161
+ const column_8 = null === nextSort.key ? void 0 : columnStates.find((state_1)=>state_1.key === nextSort.key)?.column;
139
162
  onChange?.({
140
163
  current: page,
141
164
  pageSize: size
142
- }, filterResult, nextSort.key && nextSort.order ? {
143
- column: column_5,
165
+ }, Object.fromEntries(filterEntries), null !== nextSort.key && nextSort.order ? {
166
+ column: column_8,
144
167
  order: nextSort.order,
145
- field: column_5?.dataIndex
168
+ field: column_8?.dataIndex
146
169
  } : {
147
170
  order: null
148
171
  });
149
172
  };
150
- $[23] = columnStates;
151
- $[24] = onChange;
152
- $[25] = resolvedFilters;
153
- $[26] = resolvedSort;
154
- $[27] = t6;
155
- } else t6 = $[27];
156
- const notifyChange = t6;
157
- let t7;
158
- if ($[28] !== columnStates || $[29] !== currentPage || $[30] !== notifyChange || $[31] !== pageSize || $[32] !== resolvedFilters || $[33] !== resolvedSort || $[34] !== sort) {
159
- t7 = function(index_2) {
160
- const { column: column_6, key: key_1, order: order_0, values: values_3 } = columnStates[index_2];
173
+ $[32] = columnStates;
174
+ $[33] = onChange;
175
+ $[34] = resolvedFilters;
176
+ $[35] = resolvedSort;
177
+ $[36] = t8;
178
+ } else t8 = $[36];
179
+ const notifyChange = t8;
180
+ let t9;
181
+ if ($[37] !== columnStates || $[38] !== currentPage || $[39] !== notifyChange || $[40] !== pageSize || $[41] !== resolvedFilters || $[42] !== resolvedSort) {
182
+ t9 = function(index_4) {
183
+ const { column: column_9, key: key_1, order: order_0, values: values_3 } = columnStates[index_4];
161
184
  return {
162
185
  sortOrder: order_0,
163
186
  filteredValue: values_3,
164
187
  onSort () {
165
- const controlled = void 0 !== column_6.sortOrder;
166
- const nextOrder = controlled ? nextSortOrder(column_6.sortOrder ?? null) : sort.key === key_1 ? nextSortOrder(sort.order) : "ascend";
188
+ const controlled = void 0 !== column_9.sortOrder;
189
+ const nextOrder = nextSortOrder(order_0);
167
190
  const next = {
168
191
  key: nextOrder ? key_1 : null,
169
192
  order: nextOrder
@@ -176,25 +199,27 @@ function useTableData(t0) {
176
199
  ...resolvedFilters,
177
200
  [key_1]: nextValues
178
201
  };
179
- setFilters(next_0);
202
+ if (void 0 === column_9.filteredValue) setFilters((previous)=>({
203
+ ...previous,
204
+ [key_1]: nextValues
205
+ }));
180
206
  setPage(1);
181
207
  notifyChange(1, pageSize, resolvedSort, next_0);
182
208
  }
183
209
  };
184
210
  };
185
- $[28] = columnStates;
186
- $[29] = currentPage;
187
- $[30] = notifyChange;
188
- $[31] = pageSize;
189
- $[32] = resolvedFilters;
190
- $[33] = resolvedSort;
191
- $[34] = sort;
192
- $[35] = t7;
193
- } else t7 = $[35];
194
- const getColumnState = t7;
195
- let t8;
196
- if ($[36] !== currentPage || $[37] !== notifyChange || $[38] !== pageSize || $[39] !== paginationConfig?.pageSizeOptions || $[40] !== paginationConfig?.showSizeChanger || $[41] !== paginationConfig?.showTotal || $[42] !== paginationProp || $[43] !== total) {
197
- t8 = false === paginationProp ? null : {
211
+ $[37] = columnStates;
212
+ $[38] = currentPage;
213
+ $[39] = notifyChange;
214
+ $[40] = pageSize;
215
+ $[41] = resolvedFilters;
216
+ $[42] = resolvedSort;
217
+ $[43] = t9;
218
+ } else t9 = $[43];
219
+ const getColumnState = t9;
220
+ let t10;
221
+ if ($[44] !== currentPage || $[45] !== notifyChange || $[46] !== pageSize || $[47] !== paginationConfig?.pageSizeOptions || $[48] !== paginationConfig?.showSizeChanger || $[49] !== paginationConfig?.showTotal || $[50] !== paginationProp || $[51] !== total) {
222
+ t10 = false === paginationProp ? null : {
198
223
  current: currentPage,
199
224
  pageSize,
200
225
  total,
@@ -207,37 +232,48 @@ function useTableData(t0) {
207
232
  notifyChange(page_0, size_0);
208
233
  }
209
234
  };
210
- $[36] = currentPage;
211
- $[37] = notifyChange;
212
- $[38] = pageSize;
213
- $[39] = paginationConfig?.pageSizeOptions;
214
- $[40] = paginationConfig?.showSizeChanger;
215
- $[41] = paginationConfig?.showTotal;
216
- $[42] = paginationProp;
217
- $[43] = total;
218
- $[44] = t8;
219
- } else t8 = $[44];
220
- let t9;
221
- if ($[45] !== getColumnState || $[46] !== rows || $[47] !== t8) {
222
- t9 = {
235
+ $[44] = currentPage;
236
+ $[45] = notifyChange;
237
+ $[46] = pageSize;
238
+ $[47] = paginationConfig?.pageSizeOptions;
239
+ $[48] = paginationConfig?.showSizeChanger;
240
+ $[49] = paginationConfig?.showTotal;
241
+ $[50] = paginationProp;
242
+ $[51] = total;
243
+ $[52] = t10;
244
+ } else t10 = $[52];
245
+ let t11;
246
+ if ($[53] !== columnKeys || $[54] !== getColumnState || $[55] !== rows || $[56] !== t10) {
247
+ t11 = {
223
248
  rows,
249
+ columnKeys,
224
250
  getColumnState,
225
- pagination: t8
251
+ pagination: t10
226
252
  };
227
- $[45] = getColumnState;
228
- $[46] = rows;
229
- $[47] = t8;
230
- $[48] = t9;
231
- } else t9 = $[48];
232
- return t9;
253
+ $[53] = columnKeys;
254
+ $[54] = getColumnState;
255
+ $[55] = rows;
256
+ $[56] = t10;
257
+ $[57] = t11;
258
+ } else t11 = $[57];
259
+ return t11;
233
260
  }
234
- function _temp3(t0) {
235
- const { column: column_3, order } = t0;
236
- return null !== order && "function" == typeof column_3.sorter;
261
+ function _temp5(t0) {
262
+ const { column: column_6, order } = t0;
263
+ return null !== order && "function" == typeof column_6.sorter;
237
264
  }
238
- function _temp2(state) {
265
+ function _temp4(state) {
239
266
  return state.order;
240
267
  }
268
+ function _temp3(column_2, index_1) {
269
+ return [
270
+ column_2,
271
+ index_1
272
+ ];
273
+ }
274
+ function _temp2(column_1) {
275
+ return column_1.sorter && column_1.sortOrder;
276
+ }
241
277
  function _temp(column) {
242
278
  return column.defaultSortOrder;
243
279
  }
@@ -65,6 +65,7 @@
65
65
  }
66
66
 
67
67
  [data-tao-tabs-ink] {
68
+ inset-inline-start: 0;
68
69
  background: var(--tao-primary);
69
70
  transform-origin: 0;
70
71
  width: 1px;
@@ -74,7 +75,6 @@
74
75
  border-radius: 0;
75
76
  position: absolute;
76
77
  bottom: 0;
77
- left: 0;
78
78
  }
79
79
 
80
80
  [data-tao-tabs][data-tao-variant="card"] [data-tao-tabs-list] {