@rockshin/tao-ui 0.0.48 → 0.0.51
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/components/affix/affix.js +20 -16
- package/dist/components/alert/alert.js +114 -99
- package/dist/components/app/app-modals.js +134 -96
- package/dist/components/app/app-notices.js +39 -23
- package/dist/components/auto-complete/auto-complete.js +21 -7
- package/dist/components/avatar/avatar.js +31 -11
- package/dist/components/badge/badge.css +1 -1
- package/dist/components/badge/badge.js +72 -257
- package/dist/components/border-beam/border-beam.js +21 -17
- package/dist/components/breadcrumb/breadcrumb.js +178 -159
- package/dist/components/button/button.css +9 -1
- package/dist/components/button/button.js +61 -53
- package/dist/components/calendar/calendar.js +6 -4
- package/dist/components/card/card.js +24 -8
- package/dist/components/carousel/carousel.d.ts +1 -1
- package/dist/components/carousel/carousel.js +105 -68
- package/dist/components/cascader/cascader.js +54 -19
- package/dist/components/checkbox/checkbox.css +13 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -0
- package/dist/components/checkbox/checkbox.js +320 -229
- package/dist/components/collapse/collapse-panels.d.ts +1 -1
- package/dist/components/collapse/collapse-panels.js +122 -113
- package/dist/components/collapse/collapse.js +98 -63
- package/dist/components/color-picker/color-picker.js +539 -441
- package/dist/components/color-picker/color.js +1 -1
- package/dist/components/context-menu/context-menu.d.ts +1 -1
- package/dist/components/context-menu/context-menu.js +108 -68
- package/dist/components/date-picker/calendar/calendar-grid.js +42 -39
- package/dist/components/date-picker/calendar/month-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/month-grid.js +79 -37
- package/dist/components/date-picker/calendar/time-panel.d.ts +2 -1
- package/dist/components/date-picker/calendar/time-panel.js +94 -89
- package/dist/components/date-picker/calendar/year-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/year-grid.js +66 -35
- package/dist/components/date-picker/date-picker.css +24 -1
- package/dist/components/date-picker/date-picker.js +99 -53
- package/dist/components/date-picker/presets.d.ts +2 -1
- package/dist/components/date-picker/presets.js +27 -24
- package/dist/components/date-picker/range-picker.js +308 -153
- package/dist/components/descriptions/descriptions.js +7 -3
- package/dist/components/divider/divider.css +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/drawer.js +201 -369
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/dropdown/dropdown.js +183 -279
- package/dist/components/empty/empty.js +57 -78
- package/dist/components/float-button/float-button.d.ts +1 -0
- package/dist/components/float-button/float-button.js +47 -30
- package/dist/components/form/field-control.d.ts +4 -2
- package/dist/components/form/field-control.js +17 -9
- package/dist/components/form/form-context.d.ts +8 -2
- package/dist/components/form/form-context.js +2 -1
- package/dist/components/form/form-item.js +85 -63
- package/dist/components/form/use-form.d.ts +2 -1
- package/dist/components/form/use-form.js +2 -1
- package/dist/components/form-field/form-field-view.d.ts +3 -1
- package/dist/components/form-field/form-field-view.js +194 -141
- package/dist/components/form-section/form-section.d.ts +1 -1
- package/dist/components/form-section/form-section.js +52 -45
- package/dist/components/image/image.js +585 -477
- package/dist/components/input/base-input.js +8 -9
- package/dist/components/input/input-shared.d.ts +5 -2
- package/dist/components/input/input-shared.js +42 -18
- package/dist/components/input/input.css +1 -0
- package/dist/components/input/otp.js +236 -217
- package/dist/components/input/password.js +2 -1
- package/dist/components/input/search.js +8 -7
- package/dist/components/list/list-pagination.js +41 -36
- package/dist/components/list/list.js +141 -125
- package/dist/components/listy/listy.js +175 -106
- package/dist/components/masonry/masonry.js +108 -85
- package/dist/components/mentions/mentions.js +12 -3
- package/dist/components/menu/menu-render.d.ts +9 -3
- package/dist/components/menu/menu-render.js +99 -36
- package/dist/components/modal/confirm-dialog.js +10 -4
- package/dist/components/modal/confirm.js +3 -7
- package/dist/components/modal/index.js +9 -3
- package/dist/components/modal/modal.js +390 -365
- package/dist/components/pagination/pagination.js +105 -96
- package/dist/components/popconfirm/popconfirm.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.js +219 -168
- package/dist/components/popover/popover.js +330 -243
- package/dist/components/progress/progress.css +2 -2
- package/dist/components/progress/progress.js +232 -458
- package/dist/components/qr-code/qr-code.js +72 -66
- package/dist/components/radio/radio.css +15 -4
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +260 -198
- package/dist/components/rate/rate.js +173 -113
- package/dist/components/scroll-area/scroll-area.js +241 -211
- package/dist/components/segmented/segmented.js +73 -41
- package/dist/components/select/mobile-select.d.ts +2 -1
- package/dist/components/select/mobile-select.js +24 -13
- package/dist/components/select/select-searchable-list.d.ts +2 -1
- package/dist/components/select/select-searchable-list.js +2 -3
- package/dist/components/select/select.css +3 -2
- package/dist/components/select/select.js +49 -25
- package/dist/components/select/use-select-selection.d.ts +1 -1
- package/dist/components/select/use-select-selection.js +7 -4
- package/dist/components/skeleton/skeleton.js +56 -48
- package/dist/components/slider/slider.js +87 -212
- package/dist/components/sonner/sonner.js +109 -93
- package/dist/components/spinner/spinner.js +147 -138
- package/dist/components/splitter/splitter.js +222 -159
- package/dist/components/statistic/statistic.js +7 -6
- package/dist/components/steps/steps.js +88 -81
- package/dist/components/steps/use-display-steps.js +1 -1
- package/dist/components/switch/switch.js +89 -89
- package/dist/components/table/table-filter.js +66 -56
- package/dist/components/table/table-icons.d.ts +2 -1
- package/dist/components/table/table-icons.js +11 -9
- package/dist/components/table/table-model.js +1 -1
- package/dist/components/table/table.js +107 -83
- package/dist/components/table/use-table-data.d.ts +6 -3
- package/dist/components/table/use-table-data.js +166 -130
- package/dist/components/tabs/tabs.css +1 -1
- package/dist/components/tabs/tabs.js +236 -179
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.js +111 -108
- package/dist/components/textarea/textarea.js +22 -17
- package/dist/components/time-picker/time-picker.js +5 -3
- package/dist/components/timeline/timeline.css +6 -1
- package/dist/components/timeline/timeline.js +21 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/tooltip.js +123 -233
- package/dist/components/tour/tour.css +4 -0
- package/dist/components/tour/tour.js +400 -331
- package/dist/components/transfer/transfer-list.js +31 -12
- package/dist/components/transfer/transfer-parts.js +1 -1
- package/dist/components/transfer/transfer-types.d.ts +1 -0
- package/dist/components/transfer/transfer.css +5 -0
- package/dist/components/transfer/transfer.js +29 -14
- package/dist/components/tree/tree-keyboard.d.ts +1 -1
- package/dist/components/tree/tree-keyboard.js +5 -3
- package/dist/components/tree/tree.js +74 -59
- package/dist/components/tree-select/select-engine.d.ts +3 -2
- package/dist/components/tree-select/select-engine.js +18 -16
- package/dist/components/tree-select/tree-select.js +21 -5
- package/dist/components/upload/upload.css +8 -0
- package/dist/components/upload/upload.js +160 -72
- package/dist/components/watermark/watermark.js +36 -29
- package/dist/number-input/use-number-input.js +129 -90
- package/dist/number-input/validate.js +32 -5
- package/dist/provider/merge-locale.js +12 -9
- package/dist/provider/tao-provider.d.ts +3 -1
- package/dist/provider/tao-provider.js +123 -86
- package/package.json +4 -3
|
@@ -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
|
-
|
|
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(
|
|
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] !==
|
|
8
|
+
if ($[0] !== configuredColumns) {
|
|
9
9
|
t1 = ()=>{
|
|
10
|
-
const index =
|
|
10
|
+
const index = configuredColumns.findIndex(_temp);
|
|
11
11
|
return index < 0 ? {
|
|
12
12
|
key: null,
|
|
13
13
|
order: null
|
|
14
14
|
} : {
|
|
15
|
-
key: getColKey(
|
|
16
|
-
order:
|
|
15
|
+
key: getColKey(configuredColumns[index], index),
|
|
16
|
+
order: configuredColumns[index].defaultSortOrder ?? null
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
$[0] =
|
|
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] !==
|
|
24
|
+
if ($[2] !== configuredColumns) {
|
|
25
25
|
t2 = ()=>{
|
|
26
|
-
const values =
|
|
27
|
-
|
|
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] =
|
|
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
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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:
|
|
63
|
+
column: column_4,
|
|
48
64
|
key,
|
|
49
|
-
order: void 0 !==
|
|
50
|
-
values:
|
|
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
|
-
$[
|
|
54
|
-
$[
|
|
55
|
-
$[
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
$[
|
|
59
|
-
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
} else
|
|
73
|
-
const resolvedSort =
|
|
90
|
+
$[20] = columnStates;
|
|
91
|
+
$[21] = t6;
|
|
92
|
+
} else t6 = $[21];
|
|
93
|
+
const resolvedSort = t6;
|
|
74
94
|
let values_0;
|
|
75
|
-
if ($[
|
|
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
|
-
$[
|
|
81
|
-
$[
|
|
82
|
-
$[
|
|
83
|
-
} else values_0 = $[
|
|
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 ($[
|
|
104
|
+
if ($[25] !== columnStates || $[26] !== dataSource) {
|
|
87
105
|
data = [
|
|
88
106
|
...dataSource
|
|
89
107
|
];
|
|
90
|
-
for (const { column:
|
|
91
|
-
const activeSort = columnStates.find(
|
|
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
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
} else data = $[
|
|
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
|
|
127
|
+
let t7;
|
|
110
128
|
bb0: {
|
|
111
129
|
if (false === paginationProp || paginationConfig?.total !== void 0) {
|
|
112
|
-
|
|
130
|
+
t7 = processedData;
|
|
113
131
|
break bb0;
|
|
114
132
|
}
|
|
115
133
|
const start = (currentPage - 1) * pageSize;
|
|
116
|
-
let
|
|
117
|
-
if ($[
|
|
118
|
-
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
} else
|
|
124
|
-
|
|
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 =
|
|
127
|
-
let
|
|
128
|
-
if ($[
|
|
129
|
-
|
|
130
|
-
const nextSort = void 0 ===
|
|
131
|
-
const nextFilters = void 0 ===
|
|
132
|
-
const
|
|
133
|
-
for (const { column:
|
|
134
|
-
if (!
|
|
135
|
-
const values_2 = nextFilters[key_0];
|
|
136
|
-
|
|
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
|
|
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
|
-
},
|
|
143
|
-
column:
|
|
165
|
+
}, Object.fromEntries(filterEntries), null !== nextSort.key && nextSort.order ? {
|
|
166
|
+
column: column_8,
|
|
144
167
|
order: nextSort.order,
|
|
145
|
-
field:
|
|
168
|
+
field: column_8?.dataIndex
|
|
146
169
|
} : {
|
|
147
170
|
order: null
|
|
148
171
|
});
|
|
149
172
|
};
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
} else
|
|
156
|
-
const notifyChange =
|
|
157
|
-
let
|
|
158
|
-
if ($[
|
|
159
|
-
|
|
160
|
-
const { column:
|
|
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 !==
|
|
166
|
-
const nextOrder =
|
|
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(
|
|
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
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
$[
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
} else
|
|
220
|
-
let
|
|
221
|
-
if ($[
|
|
222
|
-
|
|
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:
|
|
251
|
+
pagination: t10
|
|
226
252
|
};
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
|
|
232
|
-
|
|
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
|
|
235
|
-
const { column:
|
|
236
|
-
return null !== order && "function" == typeof
|
|
261
|
+
function _temp5(t0) {
|
|
262
|
+
const { column: column_6, order } = t0;
|
|
263
|
+
return null !== order && "function" == typeof column_6.sorter;
|
|
237
264
|
}
|
|
238
|
-
function
|
|
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] {
|