@rockshin/tao-ui 0.0.59 → 0.0.60
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/cascader/cascader.js +1 -0
- package/dist/components/color-picker/color-picker.css +1 -1
- package/dist/components/color-picker/color-picker.js +3 -2
- package/dist/components/context-menu/context-menu.d.ts +3 -1
- package/dist/components/context-menu/context-menu.js +48 -43
- package/dist/components/date-picker/calendar/time-panel.js +7 -3
- package/dist/components/date-picker/date-picker.js +3 -1
- package/dist/components/date-picker/range-picker.js +5 -3
- package/dist/components/dropdown/dropdown.d.ts +1 -0
- package/dist/components/dropdown/dropdown.js +18 -12
- package/dist/components/float-button/float-button.js +2 -1
- package/dist/components/form/use-form.js +2 -1
- package/dist/components/input-number/input-number.d.ts +2 -1
- package/dist/components/input-number/input-number.js +67 -52
- package/dist/components/mentions/mentions.js +3 -2
- package/dist/components/menu/menu-render.d.ts +6 -0
- package/dist/components/menu/menu-render.js +38 -26
- package/dist/components/modal/confirm-dialog.js +11 -6
- package/dist/components/modal/use-modal.js +1 -1
- package/dist/components/pagination/pagination.d.ts +3 -2
- package/dist/components/pagination/pagination.js +127 -117
- package/dist/components/popover/popover.js +125 -298
- package/dist/components/select/mobile-select.js +1 -1
- package/dist/components/select/select-model.js +1 -1
- package/dist/components/select/use-select-selection.js +94 -86
- package/dist/components/statistic/statistic.js +38 -31
- package/dist/components/table/table-filter.d.ts +3 -1
- package/dist/components/table/table-filter.js +100 -74
- package/dist/components/table/table.js +1 -0
- package/dist/components/tabs/tabs.d.ts +3 -2
- package/dist/components/tabs/tabs.js +122 -112
- package/dist/components/time-picker/time-picker.js +4 -2
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +168 -210
- package/dist/components/tree-select/tree-select.js +1 -0
- package/dist/number-input/use-number-input.d.ts +1 -0
- package/dist/number-input/use-number-input.js +6 -2
- package/dist/provider/tao-provider.js +18 -4
- package/dist/theme/control.css +5 -1
- package/dist/theme/theme.css +2 -2
- package/package.json +1 -1
|
@@ -227,14 +227,20 @@ function renderMenuItems(items, ctx) {
|
|
|
227
227
|
/*#__PURE__*/ jsx(P.Portal, {
|
|
228
228
|
children: /*#__PURE__*/ jsx(TaoPortalScope, {
|
|
229
229
|
asChild: true,
|
|
230
|
+
direction: ctx.direction,
|
|
230
231
|
children: /*#__PURE__*/ jsx(P.SubContent, {
|
|
231
232
|
"data-tao-menu-content": "",
|
|
232
233
|
"data-tao-menu-sub-content": "",
|
|
234
|
+
"data-tao-size": ctx.size,
|
|
233
235
|
className: cx(ctx.classNames?.subContent),
|
|
234
236
|
style: ctx.styles?.subContent,
|
|
235
237
|
sideOffset: 2,
|
|
236
238
|
alignOffset: -4,
|
|
237
|
-
children:
|
|
239
|
+
children: ctx.selectable && !ctx.multiple ? /*#__PURE__*/ jsx(P.RadioGroup, {
|
|
240
|
+
value: ctx.selectedKeys[0],
|
|
241
|
+
onValueChange: ctx.onRadioChange,
|
|
242
|
+
children: renderMenuItems(item.children, ctx)
|
|
243
|
+
}) : renderMenuItems(item.children, ctx)
|
|
238
244
|
})
|
|
239
245
|
})
|
|
240
246
|
})
|
|
@@ -316,7 +322,7 @@ function renderMenuItems(items, ctx) {
|
|
|
316
322
|
});
|
|
317
323
|
}
|
|
318
324
|
function useMenuController(menu, P, semantic) {
|
|
319
|
-
const $ = c(
|
|
325
|
+
const $ = c(40);
|
|
320
326
|
const selectable = !!menu.selectable;
|
|
321
327
|
const multiple = !!menu.multiple;
|
|
322
328
|
const isSelControlled = "selectedKeys" in menu;
|
|
@@ -390,58 +396,64 @@ function useMenuController(menu, P, semantic) {
|
|
|
390
396
|
} else t5 = $[15];
|
|
391
397
|
const onAction = t5;
|
|
392
398
|
let t6;
|
|
393
|
-
if ($[16] !== P || $[17] !== menu.items || $[18] !== multiple || $[19] !== onAction || $[20] !==
|
|
399
|
+
if ($[16] !== P || $[17] !== menu.items || $[18] !== multiple || $[19] !== onAction || $[20] !== radioChange || $[21] !== selectable || $[22] !== selectedKeys || $[23] !== semantic.classNames || $[24] !== semantic.direction || $[25] !== semantic.size || $[26] !== semantic.styles || $[27] !== toggleKey) {
|
|
394
400
|
const ctx = {
|
|
395
401
|
P,
|
|
402
|
+
size: semantic.size,
|
|
403
|
+
direction: semantic.direction,
|
|
396
404
|
classNames: semantic.classNames,
|
|
397
405
|
styles: semantic.styles,
|
|
398
406
|
onAction,
|
|
399
407
|
selectedKeys,
|
|
400
408
|
multiple,
|
|
401
409
|
selectable,
|
|
402
|
-
onToggle: toggleKey
|
|
410
|
+
onToggle: toggleKey,
|
|
411
|
+
onRadioChange: radioChange
|
|
403
412
|
};
|
|
404
413
|
t6 = renderMenuItems(menu.items, ctx);
|
|
405
414
|
$[16] = P;
|
|
406
415
|
$[17] = menu.items;
|
|
407
416
|
$[18] = multiple;
|
|
408
417
|
$[19] = onAction;
|
|
409
|
-
$[20] =
|
|
410
|
-
$[21] =
|
|
411
|
-
$[22] =
|
|
412
|
-
$[23] = semantic.
|
|
413
|
-
$[24] =
|
|
414
|
-
$[25] =
|
|
415
|
-
|
|
418
|
+
$[20] = radioChange;
|
|
419
|
+
$[21] = selectable;
|
|
420
|
+
$[22] = selectedKeys;
|
|
421
|
+
$[23] = semantic.classNames;
|
|
422
|
+
$[24] = semantic.direction;
|
|
423
|
+
$[25] = semantic.size;
|
|
424
|
+
$[26] = semantic.styles;
|
|
425
|
+
$[27] = toggleKey;
|
|
426
|
+
$[28] = t6;
|
|
427
|
+
} else t6 = $[28];
|
|
416
428
|
const body = t6;
|
|
417
429
|
let t7;
|
|
418
|
-
if ($[
|
|
430
|
+
if ($[29] !== P || $[30] !== body || $[31] !== multiple || $[32] !== radioChange || $[33] !== selectable || $[34] !== selectedKeys) {
|
|
419
431
|
t7 = selectable && !multiple ? /*#__PURE__*/ jsx(P.RadioGroup, {
|
|
420
432
|
value: selectedKeys[0],
|
|
421
433
|
onValueChange: radioChange,
|
|
422
434
|
children: body
|
|
423
435
|
}) : body;
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
} else t7 = $[
|
|
436
|
+
$[29] = P;
|
|
437
|
+
$[30] = body;
|
|
438
|
+
$[31] = multiple;
|
|
439
|
+
$[32] = radioChange;
|
|
440
|
+
$[33] = selectable;
|
|
441
|
+
$[34] = selectedKeys;
|
|
442
|
+
$[35] = t7;
|
|
443
|
+
} else t7 = $[35];
|
|
432
444
|
const content = t7;
|
|
433
445
|
let t8;
|
|
434
|
-
if ($[
|
|
446
|
+
if ($[36] !== commitSel || $[37] !== content || $[38] !== selectedKeys) {
|
|
435
447
|
t8 = {
|
|
436
448
|
content,
|
|
437
449
|
selectedKeys,
|
|
438
450
|
commitSelection: commitSel
|
|
439
451
|
};
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
444
|
-
} else t8 = $[
|
|
452
|
+
$[36] = commitSel;
|
|
453
|
+
$[37] = content;
|
|
454
|
+
$[38] = selectedKeys;
|
|
455
|
+
$[39] = t8;
|
|
456
|
+
} else t8 = $[39];
|
|
445
457
|
return t8;
|
|
446
458
|
}
|
|
447
459
|
export { menuItemAsChild, renderMenuItems, useMenuController };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { useId, useLayoutEffect, useRef, useState } from "react";
|
|
4
|
+
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
4
5
|
import { cx } from "../../utils/semantic.js";
|
|
5
6
|
import { Button } from "../button/button.js";
|
|
6
7
|
import { StatusIcon } from "../status-icon/status-icon.js";
|
|
7
8
|
import { Modal } from "./modal.js";
|
|
8
|
-
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
9
9
|
function isPromise(v) {
|
|
10
10
|
return !!v && 'function' == typeof v.then;
|
|
11
11
|
}
|
|
@@ -15,6 +15,7 @@ function ConfirmDialog({ onMount, open, close, type = 'confirm', icon, title, co
|
|
|
15
15
|
const contentId = useId();
|
|
16
16
|
const [loading, setLoading] = useState(false);
|
|
17
17
|
const [cancelLoading, setCancelLoading] = useState(false);
|
|
18
|
+
const okPending = useRef(false);
|
|
18
19
|
const cancelPending = useRef(false);
|
|
19
20
|
useLayoutEffect(()=>onMount?.(), [
|
|
20
21
|
onMount
|
|
@@ -23,19 +24,23 @@ function ConfirmDialog({ onMount, open, close, type = 'confirm', icon, title, co
|
|
|
23
24
|
const runAndClose = async (handler, withLoading)=>{
|
|
24
25
|
const result = handler?.();
|
|
25
26
|
if (isPromise(result)) {
|
|
26
|
-
if (withLoading)
|
|
27
|
-
|
|
27
|
+
if (withLoading) {
|
|
28
|
+
okPending.current = true;
|
|
29
|
+
setLoading(true);
|
|
30
|
+
} else setCancelLoading(true);
|
|
28
31
|
try {
|
|
29
32
|
await result;
|
|
30
33
|
close();
|
|
31
34
|
} catch {} finally{
|
|
32
|
-
if (withLoading)
|
|
33
|
-
|
|
35
|
+
if (withLoading) {
|
|
36
|
+
okPending.current = false;
|
|
37
|
+
setLoading(false);
|
|
38
|
+
} else setCancelLoading(false);
|
|
34
39
|
}
|
|
35
40
|
} else close();
|
|
36
41
|
};
|
|
37
42
|
const handleOk = ()=>{
|
|
38
|
-
if (cancelPending.current) return;
|
|
43
|
+
if (cancelPending.current || okPending.current) return;
|
|
39
44
|
return runAndClose(onOk, true);
|
|
40
45
|
};
|
|
41
46
|
const handleCancel = async ()=>{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
2
|
import { type TaoSize } from '../../provider/tao-provider.js';
|
|
3
3
|
import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
|
|
4
4
|
import './pagination.css';
|
|
@@ -19,7 +19,8 @@ export interface PaginationProps {
|
|
|
19
19
|
size?: TaoSize;
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
className?: string;
|
|
22
|
+
style?: CSSProperties;
|
|
22
23
|
classNames?: SemanticClassNames<PaginationSemanticPart>;
|
|
23
24
|
styles?: SemanticStyles<PaginationSemanticPart>;
|
|
24
25
|
}
|
|
25
|
-
export declare function Pagination({ current: currentProp, defaultCurrent, pageSize: pageSizeProp, defaultPageSize, total, onChange, showSizeChanger, pageSizeOptions, showTotal, size, disabled, className, classNames, styles, }: PaginationProps): import("react").JSX.Element;
|
|
26
|
+
export declare function Pagination({ current: currentProp, defaultCurrent, pageSize: pageSizeProp, defaultPageSize, total, onChange, showSizeChanger, pageSizeOptions, showTotal, size, disabled, className, style, classNames, styles, }: PaginationProps): import("react").JSX.Element;
|
|
@@ -68,8 +68,8 @@ function ChevronRight() {
|
|
|
68
68
|
return t0;
|
|
69
69
|
}
|
|
70
70
|
function Pagination(t0) {
|
|
71
|
-
const $ = c(
|
|
72
|
-
const { current: currentProp, defaultCurrent: t1, pageSize: pageSizeProp, defaultPageSize: t2, total, onChange, showSizeChanger: t3, pageSizeOptions: t4, showTotal, size, disabled, className, classNames, styles } = t0;
|
|
71
|
+
const $ = c(74);
|
|
72
|
+
const { current: currentProp, defaultCurrent: t1, pageSize: pageSizeProp, defaultPageSize: t2, total, onChange, showSizeChanger: t3, pageSizeOptions: t4, showTotal, size, disabled, className, style, classNames, styles } = t0;
|
|
73
73
|
const defaultCurrent = void 0 === t1 ? 1 : t1;
|
|
74
74
|
const defaultPageSize = void 0 === t2 ? 10 : t2;
|
|
75
75
|
const showSizeChanger = void 0 === t3 ? false : t3;
|
|
@@ -143,8 +143,18 @@ function Pagination(t0) {
|
|
|
143
143
|
} else t11 = $[14];
|
|
144
144
|
const t12 = styles?.root;
|
|
145
145
|
let t13;
|
|
146
|
-
if ($[15] !==
|
|
147
|
-
t13 =
|
|
146
|
+
if ($[15] !== style || $[16] !== t12) {
|
|
147
|
+
t13 = {
|
|
148
|
+
...t12,
|
|
149
|
+
...style
|
|
150
|
+
};
|
|
151
|
+
$[15] = style;
|
|
152
|
+
$[16] = t12;
|
|
153
|
+
$[17] = t13;
|
|
154
|
+
} else t13 = $[17];
|
|
155
|
+
let t14;
|
|
156
|
+
if ($[18] !== classNames?.total || $[19] !== current || $[20] !== rangeEnd || $[21] !== rangeStart || $[22] !== showTotal || $[23] !== styles?.total || $[24] !== total) {
|
|
157
|
+
t14 = showTotal && /*#__PURE__*/ jsx("span", {
|
|
148
158
|
"data-tao-pagination-total": "",
|
|
149
159
|
className: classNames?.total,
|
|
150
160
|
style: styles?.total,
|
|
@@ -156,52 +166,52 @@ function Pagination(t0) {
|
|
|
156
166
|
0
|
|
157
167
|
])
|
|
158
168
|
});
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
} else
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
if ($[
|
|
171
|
-
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
} else
|
|
176
|
-
const
|
|
177
|
-
const
|
|
178
|
-
let t18;
|
|
179
|
-
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
180
|
-
t18 = /*#__PURE__*/ jsx(ChevronLeft, {});
|
|
181
|
-
$[26] = t18;
|
|
182
|
-
} else t18 = $[26];
|
|
169
|
+
$[18] = classNames?.total;
|
|
170
|
+
$[19] = current;
|
|
171
|
+
$[20] = rangeEnd;
|
|
172
|
+
$[21] = rangeStart;
|
|
173
|
+
$[22] = showTotal;
|
|
174
|
+
$[23] = styles?.total;
|
|
175
|
+
$[24] = total;
|
|
176
|
+
$[25] = t14;
|
|
177
|
+
} else t14 = $[25];
|
|
178
|
+
const t15 = resolvedDisabled || current <= 1;
|
|
179
|
+
let t16;
|
|
180
|
+
if ($[26] !== current || $[27] !== goTo) {
|
|
181
|
+
t16 = ()=>goTo(current - 1);
|
|
182
|
+
$[26] = current;
|
|
183
|
+
$[27] = goTo;
|
|
184
|
+
$[28] = t16;
|
|
185
|
+
} else t16 = $[28];
|
|
186
|
+
const t17 = classNames?.item;
|
|
187
|
+
const t18 = styles?.item;
|
|
183
188
|
let t19;
|
|
184
|
-
if ($[
|
|
185
|
-
t19 = /*#__PURE__*/ jsx(
|
|
189
|
+
if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
|
|
190
|
+
t19 = /*#__PURE__*/ jsx(ChevronLeft, {});
|
|
191
|
+
$[29] = t19;
|
|
192
|
+
} else t19 = $[29];
|
|
193
|
+
let t20;
|
|
194
|
+
if ($[30] !== ctx.locale.messages.previousPage || $[31] !== t15 || $[32] !== t16 || $[33] !== t17 || $[34] !== t18) {
|
|
195
|
+
t20 = /*#__PURE__*/ jsx("button", {
|
|
186
196
|
type: "button",
|
|
187
197
|
"data-tao-pagination-btn": "",
|
|
188
|
-
disabled:
|
|
198
|
+
disabled: t15,
|
|
189
199
|
"aria-label": ctx.locale.messages.previousPage,
|
|
190
|
-
onClick:
|
|
191
|
-
className:
|
|
192
|
-
style:
|
|
193
|
-
children:
|
|
200
|
+
onClick: t16,
|
|
201
|
+
className: t17,
|
|
202
|
+
style: t18,
|
|
203
|
+
children: t19
|
|
194
204
|
});
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
} else
|
|
202
|
-
let
|
|
203
|
-
if ($[
|
|
204
|
-
|
|
205
|
+
$[30] = ctx.locale.messages.previousPage;
|
|
206
|
+
$[31] = t15;
|
|
207
|
+
$[32] = t16;
|
|
208
|
+
$[33] = t17;
|
|
209
|
+
$[34] = t18;
|
|
210
|
+
$[35] = t20;
|
|
211
|
+
} else t20 = $[35];
|
|
212
|
+
let t21;
|
|
213
|
+
if ($[36] !== classNames?.item || $[37] !== ctx.locale.messages || $[38] !== current || $[39] !== goTo || $[40] !== pages || $[41] !== resolvedDisabled || $[42] !== styles?.item) {
|
|
214
|
+
t21 = pages.map((item, i)=>"ellipsis" === item ? /*#__PURE__*/ jsx("span", {
|
|
205
215
|
"data-tao-pagination-ellipsis": "",
|
|
206
216
|
children: "\xb7\xb7\xb7"
|
|
207
217
|
}, `ellipsis-${pages[i - 1]}-${pages[i + 1]}`) : /*#__PURE__*/ jsx("button", {
|
|
@@ -216,52 +226,52 @@ function Pagination(t0) {
|
|
|
216
226
|
style: styles?.item,
|
|
217
227
|
children: item
|
|
218
228
|
}, item));
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
$[
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
} else
|
|
228
|
-
const
|
|
229
|
-
let
|
|
230
|
-
if ($[
|
|
231
|
-
|
|
232
|
-
$[
|
|
233
|
-
$[
|
|
234
|
-
$[
|
|
235
|
-
} else
|
|
236
|
-
const
|
|
237
|
-
const
|
|
238
|
-
let t25;
|
|
239
|
-
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
240
|
-
t25 = /*#__PURE__*/ jsx(ChevronRight, {});
|
|
241
|
-
$[44] = t25;
|
|
242
|
-
} else t25 = $[44];
|
|
229
|
+
$[36] = classNames?.item;
|
|
230
|
+
$[37] = ctx.locale.messages;
|
|
231
|
+
$[38] = current;
|
|
232
|
+
$[39] = goTo;
|
|
233
|
+
$[40] = pages;
|
|
234
|
+
$[41] = resolvedDisabled;
|
|
235
|
+
$[42] = styles?.item;
|
|
236
|
+
$[43] = t21;
|
|
237
|
+
} else t21 = $[43];
|
|
238
|
+
const t22 = resolvedDisabled || current >= totalPages;
|
|
239
|
+
let t23;
|
|
240
|
+
if ($[44] !== current || $[45] !== goTo) {
|
|
241
|
+
t23 = ()=>goTo(current + 1);
|
|
242
|
+
$[44] = current;
|
|
243
|
+
$[45] = goTo;
|
|
244
|
+
$[46] = t23;
|
|
245
|
+
} else t23 = $[46];
|
|
246
|
+
const t24 = classNames?.item;
|
|
247
|
+
const t25 = styles?.item;
|
|
243
248
|
let t26;
|
|
244
|
-
if ($[
|
|
245
|
-
t26 = /*#__PURE__*/ jsx(
|
|
249
|
+
if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
|
|
250
|
+
t26 = /*#__PURE__*/ jsx(ChevronRight, {});
|
|
251
|
+
$[47] = t26;
|
|
252
|
+
} else t26 = $[47];
|
|
253
|
+
let t27;
|
|
254
|
+
if ($[48] !== ctx.locale.messages.nextPage || $[49] !== t22 || $[50] !== t23 || $[51] !== t24 || $[52] !== t25) {
|
|
255
|
+
t27 = /*#__PURE__*/ jsx("button", {
|
|
246
256
|
type: "button",
|
|
247
257
|
"data-tao-pagination-btn": "",
|
|
248
|
-
disabled:
|
|
258
|
+
disabled: t22,
|
|
249
259
|
"aria-label": ctx.locale.messages.nextPage,
|
|
250
|
-
onClick:
|
|
251
|
-
className:
|
|
252
|
-
style:
|
|
253
|
-
children:
|
|
260
|
+
onClick: t23,
|
|
261
|
+
className: t24,
|
|
262
|
+
style: t25,
|
|
263
|
+
children: t26
|
|
254
264
|
});
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
} else
|
|
262
|
-
let
|
|
263
|
-
if ($[
|
|
264
|
-
|
|
265
|
+
$[48] = ctx.locale.messages.nextPage;
|
|
266
|
+
$[49] = t22;
|
|
267
|
+
$[50] = t23;
|
|
268
|
+
$[51] = t24;
|
|
269
|
+
$[52] = t25;
|
|
270
|
+
$[53] = t27;
|
|
271
|
+
} else t27 = $[53];
|
|
272
|
+
let t28;
|
|
273
|
+
if ($[54] !== ctx.locale.messages.itemsPerPage || $[55] !== ctx.locale.messages.pageSize || $[56] !== goTo || $[57] !== pageSize || $[58] !== pageSizeOptions || $[59] !== resolvedDisabled || $[60] !== resolvedSize || $[61] !== showSizeChanger) {
|
|
274
|
+
t28 = showSizeChanger && /*#__PURE__*/ jsx(Select, {
|
|
265
275
|
"aria-label": ctx.locale.messages.pageSize,
|
|
266
276
|
style: {
|
|
267
277
|
width: "auto"
|
|
@@ -281,45 +291,45 @@ function Pagination(t0) {
|
|
|
281
291
|
disabled: resolvedDisabled,
|
|
282
292
|
size: "large" === resolvedSize ? "medium" : resolvedSize
|
|
283
293
|
});
|
|
284
|
-
$[
|
|
285
|
-
$[
|
|
286
|
-
$[
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
} else
|
|
294
|
-
let
|
|
295
|
-
if ($[
|
|
296
|
-
|
|
294
|
+
$[54] = ctx.locale.messages.itemsPerPage;
|
|
295
|
+
$[55] = ctx.locale.messages.pageSize;
|
|
296
|
+
$[56] = goTo;
|
|
297
|
+
$[57] = pageSize;
|
|
298
|
+
$[58] = pageSizeOptions;
|
|
299
|
+
$[59] = resolvedDisabled;
|
|
300
|
+
$[60] = resolvedSize;
|
|
301
|
+
$[61] = showSizeChanger;
|
|
302
|
+
$[62] = t28;
|
|
303
|
+
} else t28 = $[62];
|
|
304
|
+
let t29;
|
|
305
|
+
if ($[63] !== ctx.locale.messages.pagination || $[64] !== resolvedSize || $[65] !== t11 || $[66] !== t13 || $[67] !== t14 || $[68] !== t20 || $[69] !== t21 || $[70] !== t27 || $[71] !== t28 || $[72] !== t8) {
|
|
306
|
+
t29 = /*#__PURE__*/ jsxs("nav", {
|
|
297
307
|
"data-tao-pagination": "",
|
|
298
308
|
"data-tao-size": resolvedSize,
|
|
299
309
|
"data-tao-disabled": t8,
|
|
300
310
|
"aria-label": t9,
|
|
301
311
|
className: t11,
|
|
302
|
-
style:
|
|
312
|
+
style: t13,
|
|
303
313
|
children: [
|
|
304
|
-
|
|
305
|
-
t19,
|
|
314
|
+
t14,
|
|
306
315
|
t20,
|
|
307
|
-
|
|
308
|
-
t27
|
|
316
|
+
t21,
|
|
317
|
+
t27,
|
|
318
|
+
t28
|
|
309
319
|
]
|
|
310
320
|
});
|
|
311
|
-
$[
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
314
|
-
$[
|
|
315
|
-
$[
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
} else
|
|
323
|
-
return
|
|
321
|
+
$[63] = ctx.locale.messages.pagination;
|
|
322
|
+
$[64] = resolvedSize;
|
|
323
|
+
$[65] = t11;
|
|
324
|
+
$[66] = t13;
|
|
325
|
+
$[67] = t14;
|
|
326
|
+
$[68] = t20;
|
|
327
|
+
$[69] = t21;
|
|
328
|
+
$[70] = t27;
|
|
329
|
+
$[71] = t28;
|
|
330
|
+
$[72] = t8;
|
|
331
|
+
$[73] = t29;
|
|
332
|
+
} else t29 = $[73];
|
|
333
|
+
return t29;
|
|
324
334
|
}
|
|
325
335
|
export { Pagination };
|