@akinon/akitable 0.2.1 → 0.3.1
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/cjs/akitable-context.d.ts +18 -0
- package/dist/cjs/akitable-context.d.ts.map +1 -0
- package/dist/cjs/akitable-context.js +19 -0
- package/dist/cjs/akitable.css +8 -0
- package/dist/cjs/akitable.d.ts +5 -0
- package/dist/cjs/akitable.d.ts.map +1 -0
- package/dist/cjs/akitable.js +37 -0
- package/dist/cjs/common/theme-overrides.d.ts +3 -0
- package/dist/cjs/common/theme-overrides.d.ts.map +1 -0
- package/dist/cjs/common/theme-overrides.js +60 -0
- package/dist/cjs/components/actions.css +19 -0
- package/dist/cjs/components/actions.d.ts +4 -0
- package/dist/cjs/components/actions.d.ts.map +1 -0
- package/dist/cjs/components/actions.js +35 -0
- package/dist/cjs/components/controls.css +5 -0
- package/dist/cjs/components/controls.d.ts +4 -0
- package/dist/cjs/components/controls.d.ts.map +1 -0
- package/dist/cjs/components/controls.js +18 -0
- package/dist/cjs/components/datatable.css +57 -0
- package/dist/cjs/components/datatable.d.ts +5 -0
- package/dist/cjs/components/datatable.d.ts.map +1 -0
- package/dist/cjs/components/datatable.js +29 -0
- package/dist/cjs/components/footer.css +5 -0
- package/dist/cjs/components/footer.d.ts +5 -0
- package/dist/cjs/components/footer.d.ts.map +1 -0
- package/dist/cjs/components/footer.js +19 -0
- package/dist/cjs/components/header.css +23 -0
- package/dist/cjs/components/header.d.ts +5 -0
- package/dist/cjs/components/header.d.ts.map +1 -0
- package/dist/cjs/components/header.js +25 -0
- package/dist/cjs/components/pagination.css +3 -0
- package/dist/{esm/components/Pagination/index.d.ts → cjs/components/pagination.d.ts} +2 -2
- package/dist/cjs/components/pagination.d.ts.map +1 -0
- package/dist/cjs/components/pagination.js +17 -0
- package/dist/cjs/i18n/index.d.ts +5 -0
- package/dist/cjs/i18n/index.d.ts.map +1 -0
- package/dist/cjs/i18n/index.js +14 -0
- package/dist/cjs/i18n/translations/en.d.ts +9 -0
- package/dist/cjs/i18n/translations/en.d.ts.map +1 -0
- package/dist/cjs/i18n/translations/en.js +10 -0
- package/dist/cjs/i18n/translations/tr.d.ts +9 -0
- package/dist/cjs/i18n/translations/tr.d.ts.map +1 -0
- package/dist/cjs/i18n/translations/tr.js +10 -0
- package/dist/cjs/index.d.ts +2 -18
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +15 -93
- package/dist/cjs/types.d.ts +50 -16
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/esm/akitable-context.d.ts +18 -0
- package/dist/esm/akitable-context.d.ts.map +1 -0
- package/dist/esm/akitable-context.js +14 -0
- package/dist/esm/akitable.css +8 -0
- package/dist/esm/akitable.d.ts +5 -0
- package/dist/esm/akitable.d.ts.map +1 -0
- package/dist/esm/akitable.js +33 -0
- package/dist/esm/common/theme-overrides.d.ts +3 -0
- package/dist/esm/common/theme-overrides.d.ts.map +1 -0
- package/dist/esm/common/theme-overrides.js +57 -0
- package/dist/esm/components/actions.css +19 -0
- package/dist/esm/components/actions.d.ts +4 -0
- package/dist/esm/components/actions.d.ts.map +1 -0
- package/dist/esm/components/actions.js +31 -0
- package/dist/esm/components/controls.css +5 -0
- package/dist/esm/components/controls.d.ts +4 -0
- package/dist/esm/components/controls.d.ts.map +1 -0
- package/dist/esm/components/controls.js +14 -0
- package/dist/esm/components/datatable.css +57 -0
- package/dist/esm/components/datatable.d.ts +5 -0
- package/dist/esm/components/datatable.d.ts.map +1 -0
- package/dist/esm/components/datatable.js +25 -0
- package/dist/esm/components/footer.css +5 -0
- package/dist/esm/components/footer.d.ts +5 -0
- package/dist/esm/components/footer.d.ts.map +1 -0
- package/dist/esm/components/footer.js +15 -0
- package/dist/esm/components/header.css +23 -0
- package/dist/esm/components/header.d.ts +5 -0
- package/dist/esm/components/header.d.ts.map +1 -0
- package/dist/esm/components/header.js +21 -0
- package/dist/esm/components/pagination.css +3 -0
- package/dist/{cjs/components/Pagination/index.d.ts → esm/components/pagination.d.ts} +2 -2
- package/dist/esm/components/pagination.d.ts.map +1 -0
- package/dist/esm/components/pagination.js +13 -0
- package/dist/esm/i18n/index.d.ts +5 -0
- package/dist/esm/i18n/index.d.ts.map +1 -0
- package/dist/esm/i18n/index.js +11 -0
- package/dist/esm/i18n/translations/en.d.ts +9 -0
- package/dist/esm/i18n/translations/en.d.ts.map +1 -0
- package/dist/esm/i18n/translations/en.js +8 -0
- package/dist/esm/i18n/translations/tr.d.ts +9 -0
- package/dist/esm/i18n/translations/tr.d.ts.map +1 -0
- package/dist/esm/i18n/translations/tr.js +8 -0
- package/dist/esm/index.d.ts +2 -18
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -92
- package/dist/esm/types.d.ts +50 -16
- package/dist/esm/types.d.ts.map +1 -1
- package/package.json +19 -15
- package/dist/cjs/components/AntdTable/index.d.ts +0 -6
- package/dist/cjs/components/AntdTable/index.d.ts.map +0 -1
- package/dist/cjs/components/AntdTable/index.js +0 -33
- package/dist/cjs/components/Footer/index.css +0 -6
- package/dist/cjs/components/Footer/index.d.ts +0 -4
- package/dist/cjs/components/Footer/index.d.ts.map +0 -1
- package/dist/cjs/components/Footer/index.js +0 -16
- package/dist/cjs/components/Header/index.css +0 -84
- package/dist/cjs/components/Header/index.d.ts +0 -10
- package/dist/cjs/components/Header/index.d.ts.map +0 -1
- package/dist/cjs/components/Header/index.js +0 -25
- package/dist/cjs/components/HeaderActions/index.css +0 -30
- package/dist/cjs/components/HeaderActions/index.d.ts +0 -9
- package/dist/cjs/components/HeaderActions/index.d.ts.map +0 -1
- package/dist/cjs/components/HeaderActions/index.js +0 -39
- package/dist/cjs/components/Pagination/index.css +0 -96
- package/dist/cjs/components/Pagination/index.d.ts.map +0 -1
- package/dist/cjs/components/Pagination/index.js +0 -20
- package/dist/cjs/components/index.d.ts +0 -6
- package/dist/cjs/components/index.d.ts.map +0 -1
- package/dist/cjs/components/index.js +0 -13
- package/dist/cjs/context/index.d.ts +0 -25
- package/dist/cjs/context/index.d.ts.map +0 -1
- package/dist/cjs/context/index.js +0 -35
- package/dist/cjs/index.css +0 -28
- package/dist/esm/components/AntdTable/index.d.ts +0 -6
- package/dist/esm/components/AntdTable/index.d.ts.map +0 -1
- package/dist/esm/components/AntdTable/index.js +0 -29
- package/dist/esm/components/Footer/index.css +0 -6
- package/dist/esm/components/Footer/index.d.ts +0 -4
- package/dist/esm/components/Footer/index.d.ts.map +0 -1
- package/dist/esm/components/Footer/index.js +0 -12
- package/dist/esm/components/Header/index.css +0 -84
- package/dist/esm/components/Header/index.d.ts +0 -10
- package/dist/esm/components/Header/index.d.ts.map +0 -1
- package/dist/esm/components/Header/index.js +0 -21
- package/dist/esm/components/HeaderActions/index.css +0 -30
- package/dist/esm/components/HeaderActions/index.d.ts +0 -9
- package/dist/esm/components/HeaderActions/index.d.ts.map +0 -1
- package/dist/esm/components/HeaderActions/index.js +0 -35
- package/dist/esm/components/Pagination/index.css +0 -96
- package/dist/esm/components/Pagination/index.d.ts.map +0 -1
- package/dist/esm/components/Pagination/index.js +0 -16
- package/dist/esm/components/index.d.ts +0 -6
- package/dist/esm/components/index.d.ts.map +0 -1
- package/dist/esm/components/index.js +0 -5
- package/dist/esm/context/index.d.ts +0 -25
- package/dist/esm/context/index.d.ts.map +0 -1
- package/dist/esm/context/index.js +0 -30
- package/dist/esm/index.css +0 -28
package/dist/cjs/index.js
CHANGED
|
@@ -1,96 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
12
15
|
};
|
|
13
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports
|
|
15
|
-
require("./
|
|
16
|
-
const ui_theme_1 = require("@akinon/ui-theme");
|
|
17
|
-
const antd_1 = require("antd");
|
|
18
|
-
const React = require("react");
|
|
19
|
-
const components_1 = require("./components");
|
|
20
|
-
const context_1 = require("./context");
|
|
21
|
-
/**
|
|
22
|
-
* Akitable component
|
|
23
|
-
* @param {AkitableProps} props
|
|
24
|
-
* @returns {React.ReactElement}
|
|
25
|
-
*/
|
|
26
|
-
const Akitable = (_a) => {
|
|
27
|
-
var { useAkitablePagination, title, description, headerActions, headerMiddleBlock } = _a, restProps = __rest(_a, ["useAkitablePagination", "title", "description", "headerActions", "headerMiddleBlock"]);
|
|
28
|
-
return (React.createElement("div", { className: "akitable-container" },
|
|
29
|
-
React.createElement(antd_1.ConfigProvider, { prefixCls: "akinon", theme: {
|
|
30
|
-
components: {
|
|
31
|
-
Checkbox: {
|
|
32
|
-
colorBgBase: ui_theme_1.theme.colors.neutral['50'],
|
|
33
|
-
algorithm: antd_1.theme.defaultAlgorithm
|
|
34
|
-
},
|
|
35
|
-
Card: {
|
|
36
|
-
paddingLG: 0,
|
|
37
|
-
colorBgContainer: ui_theme_1.theme.colors.neutral['50'],
|
|
38
|
-
colorBgBase: ui_theme_1.theme.colors.neutral['50'],
|
|
39
|
-
colorTextBase: ui_theme_1.theme.colors.neutral['950'],
|
|
40
|
-
algorithm: antd_1.theme.defaultAlgorithm
|
|
41
|
-
},
|
|
42
|
-
Typography: {
|
|
43
|
-
colorTextHeading: ui_theme_1.theme.colors.neutral['950'],
|
|
44
|
-
colorText: ui_theme_1.theme.colors.neutral['500'],
|
|
45
|
-
titleMarginBottom: 0,
|
|
46
|
-
fontWeightStrong: 500
|
|
47
|
-
},
|
|
48
|
-
Select: {
|
|
49
|
-
colorText: ui_theme_1.theme.colors.neutral['950'],
|
|
50
|
-
selectorBg: ui_theme_1.theme.colors.neutral['50'],
|
|
51
|
-
colorBgElevated: ui_theme_1.theme.colors.neutral['100'],
|
|
52
|
-
colorBorder: ui_theme_1.theme.colors.neutral['350'],
|
|
53
|
-
colorTextQuaternary: ui_theme_1.theme.colors.neutral['500'],
|
|
54
|
-
optionSelectedBg: ui_theme_1.theme.colors.azure['100'],
|
|
55
|
-
algorithm: antd_1.theme.defaultAlgorithm
|
|
56
|
-
},
|
|
57
|
-
Pagination: {
|
|
58
|
-
colorText: ui_theme_1.theme.colors.neutral['950'],
|
|
59
|
-
itemInputBg: ui_theme_1.theme.colors.neutral['75'],
|
|
60
|
-
colorBorder: ui_theme_1.theme.colors.neutral['350'],
|
|
61
|
-
borderRadius: 0,
|
|
62
|
-
itemActiveBg: ui_theme_1.theme.colors.neutral['500'],
|
|
63
|
-
colorTextDisabled: ui_theme_1.theme.colors.neutral['375'],
|
|
64
|
-
marginXS: 0,
|
|
65
|
-
itemSizeSM: 38
|
|
66
|
-
},
|
|
67
|
-
Spin: {
|
|
68
|
-
colorBgContainer: ui_theme_1.theme.colors.neutral['50']
|
|
69
|
-
},
|
|
70
|
-
Table: {
|
|
71
|
-
headerBorderRadius: 0,
|
|
72
|
-
headerBg: ui_theme_1.theme.colors.neutral['150'],
|
|
73
|
-
headerColor: ui_theme_1.theme.colors.neutral['500'],
|
|
74
|
-
borderColor: ui_theme_1.theme.colors.neutral['350'],
|
|
75
|
-
fontSize: ui_theme_1.fontSize * 0.875,
|
|
76
|
-
colorBgContainer: ui_theme_1.theme.colors.neutral['50'],
|
|
77
|
-
colorText: ui_theme_1.theme.colors.neutral['500'],
|
|
78
|
-
cellPaddingInline: 28,
|
|
79
|
-
colorBgBase: ui_theme_1.theme.colors.neutral['50'],
|
|
80
|
-
algorithm: antd_1.theme.defaultAlgorithm
|
|
81
|
-
},
|
|
82
|
-
Button: {
|
|
83
|
-
colorBgBase: ui_theme_1.theme.colors.neutral['50'],
|
|
84
|
-
colorTextBase: ui_theme_1.theme.colors.azure['500'],
|
|
85
|
-
colorBorder: ui_theme_1.theme.colors.azure['500'],
|
|
86
|
-
borderColorDisabled: ui_theme_1.theme.colors.neutral['350'],
|
|
87
|
-
algorithm: antd_1.theme.defaultAlgorithm
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
} },
|
|
91
|
-
React.createElement(context_1.AkitableContextProvider, { useAkitablePagination: useAkitablePagination, headerActions: headerActions },
|
|
92
|
-
React.createElement(components_1.AkitableHeader, { title: title, description: description, headerMiddleBlock: headerMiddleBlock }),
|
|
93
|
-
React.createElement(components_1.AntdTable, Object.assign({}, restProps)),
|
|
94
|
-
React.createElement(components_1.AkitableFooter, null)))));
|
|
95
|
-
};
|
|
96
|
-
exports.Akitable = Akitable;
|
|
17
|
+
__exportStar(require("./akitable"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -1,18 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { TableColumnType } from 'antd';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
type RowClickEvent = (record: AkitableData, event?: React.MouseEvent<HTMLElement>, rowIndex?: number) => void;
|
|
4
|
+
export type PaginationChangeEvent = (page: number, size: number) => void;
|
|
5
|
+
export interface AkitableProps {
|
|
6
|
+
actions?: AkitableAction[];
|
|
7
|
+
columns: AkitableColumn[];
|
|
8
|
+
data: AkitableData[] | AkitablePaginatedData;
|
|
9
|
+
header?: AkitableHeaderProps;
|
|
10
|
+
footer?: AkitableFooterProps;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
pagination?: AkitablePaginationProps;
|
|
13
|
+
rowKey: string;
|
|
14
|
+
onPaginationChanged?: PaginationChangeEvent;
|
|
15
|
+
onRowClick?: RowClickEvent;
|
|
16
|
+
}
|
|
17
|
+
export interface AkitableHeaderProps {
|
|
18
|
+
title?: string;
|
|
19
|
+
extra?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export interface AkitableFooterProps {
|
|
22
|
+
extra?: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export interface AkitableDataTableProps {
|
|
25
|
+
columns: AkitableColumn[];
|
|
26
|
+
data: AkitableData[];
|
|
27
|
+
rowKey: string;
|
|
28
|
+
onRowClick?: RowClickEvent;
|
|
29
|
+
}
|
|
30
|
+
export type AkitablePageSizes = 20 | 50 | 100 | 250;
|
|
31
|
+
export interface AkitablePaginationProps {
|
|
32
|
+
page: number;
|
|
33
|
+
size: AkitablePageSizes;
|
|
34
|
+
}
|
|
35
|
+
export interface AkitableColumn extends TableColumnType<AkitableData> {
|
|
36
|
+
copyable?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface AkitableData {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}
|
|
41
|
+
export interface AkitablePaginatedData {
|
|
42
|
+
count: number;
|
|
43
|
+
next?: string | null;
|
|
44
|
+
previous?: string | null;
|
|
45
|
+
results: AkitableData[];
|
|
46
|
+
}
|
|
47
|
+
export interface AkitableAction {
|
|
13
48
|
label: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
export type AnyObject = Record<string, any>;
|
|
49
|
+
onSelect: (selectedRowKeys: React.Key[]) => void;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
18
52
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/cjs/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,KAAK,aAAa,GAAG,CACnB,MAAM,EAAE,YAAY,EACpB,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EACrC,QAAQ,CAAC,EAAE,MAAM,KACd,IAAI,CAAC;AAEV,MAAM,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,IAAI,EAAE,YAAY,EAAE,GAAG,qBAAqB,CAAC;IAC7C,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,qBAAqB,CAAC;IAC5C,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED,MAAM,MAAM,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,CAAC;AAEpD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAGD,MAAM,WAAW,cAAe,SAAQ,eAAe,CAAC,YAAY,CAAC;IAEnE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAE3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,eAAe,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC;CAClD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AkitableAction, AkitablePaginationProps, PaginationChangeEvent } from './types';
|
|
3
|
+
export interface AkitableInternalPaginationProps extends AkitablePaginationProps {
|
|
4
|
+
total: number;
|
|
5
|
+
hasPagination: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface AkitableContextProps {
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
pagination?: AkitableInternalPaginationProps;
|
|
11
|
+
onPaginationChanged?: PaginationChangeEvent;
|
|
12
|
+
actions?: AkitableAction[];
|
|
13
|
+
selectedRowKeys?: React.Key[];
|
|
14
|
+
setSelectedRowKeys?: React.Dispatch<React.SetStateAction<React.Key[]>>;
|
|
15
|
+
}
|
|
16
|
+
export declare const useAkitableContext: () => AkitableContextProps;
|
|
17
|
+
export declare const AkitableProvider: React.FC<AkitableContextProps>;
|
|
18
|
+
//# sourceMappingURL=akitable-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"akitable-context.d.ts","sourceRoot":"","sources":["../../src/akitable-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAEnE,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,+BACf,SAAQ,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,+BAA+B,CAAC;IAC7C,mBAAmB,CAAC,EAAE,qBAAqB,CAAC;IAC5C,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC;IAC9B,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;CACxE;AAID,eAAO,MAAM,kBAAkB,4BAAoC,CAAC;AAEpE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAuB3D,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { createContext, useContext, useState } from 'react';
|
|
2
|
+
const AkitableContext = createContext({});
|
|
3
|
+
export const useAkitableContext = () => useContext(AkitableContext);
|
|
4
|
+
export const AkitableProvider = ({ actions, isLoading, pagination, onPaginationChanged, children }) => {
|
|
5
|
+
const [selectedRowKeys, setSelectedRowKeys] = useState([]);
|
|
6
|
+
return (React.createElement(AkitableContext.Provider, { value: {
|
|
7
|
+
actions,
|
|
8
|
+
isLoading,
|
|
9
|
+
pagination,
|
|
10
|
+
onPaginationChanged,
|
|
11
|
+
selectedRowKeys,
|
|
12
|
+
setSelectedRowKeys
|
|
13
|
+
} }, children));
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"akitable.d.ts","sourceRoot":"","sources":["../../src/akitable.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAGxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAuC,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E,eAAO,MAAM,QAAQ,UAAW,aAAa,sBA4D5C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import './akitable.css';
|
|
2
|
+
import { ConfigProvider } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { AkitableProvider } from './akitable-context';
|
|
5
|
+
import { themeOverrides } from './common/theme-overrides';
|
|
6
|
+
import { AkitableControls } from './components/controls';
|
|
7
|
+
import { AkitableDataTable } from './components/datatable';
|
|
8
|
+
import { AkitableFooter } from './components/footer';
|
|
9
|
+
import { AkitableHeader } from './components/header';
|
|
10
|
+
export const Akitable = (props) => {
|
|
11
|
+
const { actions, columns, data, footer, header, isLoading, pagination, rowKey, onPaginationChanged, onRowClick } = props;
|
|
12
|
+
let parsedData = [];
|
|
13
|
+
let total;
|
|
14
|
+
// If there is a pagination object, table data should be accessed from type AkitablePaginatedData.
|
|
15
|
+
// If not, table data should be accessed from type AkitableData.
|
|
16
|
+
if (!!pagination) {
|
|
17
|
+
const result = data;
|
|
18
|
+
total = result.count;
|
|
19
|
+
parsedData = result.results;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
const result = data;
|
|
23
|
+
total = result.length;
|
|
24
|
+
parsedData = result;
|
|
25
|
+
}
|
|
26
|
+
return (React.createElement(AkitableProvider, { actions: actions, isLoading: isLoading, pagination: Object.assign(Object.assign({}, pagination), { total, hasPagination: !!pagination }), onPaginationChanged: onPaginationChanged },
|
|
27
|
+
React.createElement(ConfigProvider, { theme: themeOverrides },
|
|
28
|
+
React.createElement("div", { className: "akitable-container" },
|
|
29
|
+
React.createElement(AkitableHeader, Object.assign({}, header)),
|
|
30
|
+
React.createElement(AkitableControls, null),
|
|
31
|
+
React.createElement(AkitableDataTable, { columns: columns, data: parsedData, rowKey: rowKey, onRowClick: onRowClick }),
|
|
32
|
+
React.createElement(AkitableFooter, Object.assign({}, footer))))));
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-overrides.d.ts","sourceRoot":"","sources":["../../../src/common/theme-overrides.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,MAAM,CAAC;AAEvD,eAAO,MAAM,cAAc,EAAE,WAsD5B,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { theme } from '@akinon/ui-theme';
|
|
2
|
+
import { theme as antdTheme } from 'antd';
|
|
3
|
+
export const themeOverrides = {
|
|
4
|
+
algorithm: antdTheme.defaultAlgorithm,
|
|
5
|
+
components: {
|
|
6
|
+
Checkbox: {
|
|
7
|
+
colorBgBase: theme.colors.neutral['50'],
|
|
8
|
+
algorithm: antdTheme.defaultAlgorithm
|
|
9
|
+
},
|
|
10
|
+
Card: {
|
|
11
|
+
paddingLG: 0,
|
|
12
|
+
colorBgContainer: theme.colors.neutral['50'],
|
|
13
|
+
colorBgBase: theme.colors.neutral['50'],
|
|
14
|
+
colorTextBase: theme.colors.neutral['950'],
|
|
15
|
+
algorithm: antdTheme.defaultAlgorithm
|
|
16
|
+
},
|
|
17
|
+
Typography: {
|
|
18
|
+
colorTextHeading: theme.colors.neutral['950'],
|
|
19
|
+
colorText: theme.colors.neutral['500'],
|
|
20
|
+
titleMarginBottom: 0,
|
|
21
|
+
fontWeightStrong: 500
|
|
22
|
+
},
|
|
23
|
+
Select: {
|
|
24
|
+
colorBgContainerDisabled: theme.colors.neutral['50'],
|
|
25
|
+
colorTextDisabled: theme.colors.neutral['375'],
|
|
26
|
+
colorTextPlaceholder: theme.colors.neutral['375'],
|
|
27
|
+
colorText: theme.colors.neutral['950'],
|
|
28
|
+
selectorBg: theme.colors.neutral['50'],
|
|
29
|
+
colorBgElevated: theme.colors.neutral['100'],
|
|
30
|
+
colorBorder: theme.colors.neutral['350'],
|
|
31
|
+
colorTextQuaternary: theme.colors.neutral['500'],
|
|
32
|
+
optionSelectedBg: theme.colors.azure['100'],
|
|
33
|
+
algorithm: antdTheme.defaultAlgorithm
|
|
34
|
+
},
|
|
35
|
+
Spin: {
|
|
36
|
+
colorBgContainer: theme.colors.neutral['50']
|
|
37
|
+
},
|
|
38
|
+
Table: {
|
|
39
|
+
headerBorderRadius: 0,
|
|
40
|
+
headerBg: theme.colors.neutral['150'],
|
|
41
|
+
headerColor: theme.colors.ebonyClay['375'],
|
|
42
|
+
borderColor: theme.colors.neutral['350'],
|
|
43
|
+
colorBgContainer: theme.colors.neutral['50'],
|
|
44
|
+
colorText: theme.colors.ebonyClay['900'],
|
|
45
|
+
cellPaddingInline: 28,
|
|
46
|
+
colorBgBase: theme.colors.neutral['50'],
|
|
47
|
+
algorithm: antdTheme.defaultAlgorithm
|
|
48
|
+
},
|
|
49
|
+
Button: {
|
|
50
|
+
colorBgBase: theme.colors.neutral['50'],
|
|
51
|
+
colorTextBase: theme.colors.azure['500'],
|
|
52
|
+
colorBorder: theme.colors.azure['500'],
|
|
53
|
+
borderColorDisabled: theme.colors.neutral['350'],
|
|
54
|
+
algorithm: antdTheme.defaultAlgorithm
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.akitable-actions {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 0.5rem;
|
|
4
|
+
align-items: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.akitable-actions .akinon-select {
|
|
8
|
+
min-width: 200px;
|
|
9
|
+
height: 38px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.akitable-actions .akinon-btn {
|
|
13
|
+
height: 36px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.akitable-actions .akitable-actions-info {
|
|
17
|
+
color: var(--color-neutral-400);
|
|
18
|
+
margin-left: 0.25rem;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/components/actions.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAKvB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,eAAe,yBA+D3B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import './actions.css';
|
|
2
|
+
import { Icon } from '@akinon/icons';
|
|
3
|
+
import { Button } from '@akinon/ui-button';
|
|
4
|
+
import { Select } from '@akinon/ui-select';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { useAkitableContext } from '../akitable-context';
|
|
7
|
+
import { i18n } from '../i18n';
|
|
8
|
+
export const AkitableActions = () => {
|
|
9
|
+
const { t } = i18n;
|
|
10
|
+
const [selectedAction, setSelectedAction] = React.useState(undefined);
|
|
11
|
+
const { actions, isLoading, selectedRowKeys } = useAkitableContext();
|
|
12
|
+
const options = actions === null || actions === void 0 ? void 0 : actions.map((action, index) => ({
|
|
13
|
+
value: index + 1,
|
|
14
|
+
label: action.label
|
|
15
|
+
}));
|
|
16
|
+
const hasSelections = selectedRowKeys && selectedRowKeys.length > 0;
|
|
17
|
+
const handleActionChange = (value) => {
|
|
18
|
+
setSelectedAction(value);
|
|
19
|
+
};
|
|
20
|
+
const handleActionTrigger = () => {
|
|
21
|
+
if (!selectedAction || !selectedRowKeys || selectedRowKeys.length === 0)
|
|
22
|
+
return;
|
|
23
|
+
const action = actions === null || actions === void 0 ? void 0 : actions.find((_, index) => index === selectedAction - 1);
|
|
24
|
+
action === null || action === void 0 ? void 0 : action.onSelect(selectedRowKeys);
|
|
25
|
+
};
|
|
26
|
+
return (React.createElement("div", { className: "akitable-actions" },
|
|
27
|
+
React.createElement(Select, { placeholder: t('selectAction'), value: selectedAction, options: options, onChange: handleActionChange, disabled: isLoading, allowClear: true }),
|
|
28
|
+
selectedAction && (React.createElement(React.Fragment, null,
|
|
29
|
+
React.createElement(Button, { type: "primary", icon: React.createElement(Icon, { icon: "katalogkontrol", size: 14, style: { position: 'relative', top: 2 } }), disabled: isLoading || !hasSelections, onClick: handleActionTrigger }, t('apply')),
|
|
30
|
+
hasSelections && (React.createElement("span", { className: "akitable-actions-info" }, t('selectedCount', { count: selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length })))))));
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../src/components/controls.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAExB,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,gBAAgB,gCAe5B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './controls.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useAkitableContext } from '../akitable-context';
|
|
4
|
+
import { AkitableActions } from './actions';
|
|
5
|
+
import { AkitablePagination } from './pagination';
|
|
6
|
+
export const AkitableControls = () => {
|
|
7
|
+
const { actions, pagination } = useAkitableContext();
|
|
8
|
+
if (!actions && !(pagination === null || pagination === void 0 ? void 0 : pagination.hasPagination))
|
|
9
|
+
return null;
|
|
10
|
+
return (React.createElement("div", { className: "akitable-controls" },
|
|
11
|
+
actions && actions.length > 0 && React.createElement(AkitableActions, null),
|
|
12
|
+
(pagination === null || pagination === void 0 ? void 0 : pagination.hasPagination) && (React.createElement("div", { className: "ml-auto" },
|
|
13
|
+
React.createElement(AkitablePagination, null)))));
|
|
14
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.akinon-table-wrapper .akinon-table-thead > tr > th {
|
|
2
|
+
text-transform: uppercase;
|
|
3
|
+
font-size: 0.75rem;
|
|
4
|
+
font-weight: 600;
|
|
5
|
+
padding-bottom: 0.5rem;
|
|
6
|
+
padding-top: 0.65rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.akitable-wrapper {
|
|
10
|
+
margin-left: -1.5rem;
|
|
11
|
+
margin-right: -1.5rem;
|
|
12
|
+
margin-bottom: 1rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.akinon-table-content {
|
|
16
|
+
scrollbar-color: auto;
|
|
17
|
+
scrollbar-width: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.akinon-table-content::-webkit-scrollbar {
|
|
21
|
+
height: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.akinon-table-content::-webkit-scrollbar-track {
|
|
25
|
+
background-color: var(--color-neutral-100);
|
|
26
|
+
border: none;
|
|
27
|
+
padding: 1px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.akinon-table-content::-webkit-scrollbar-thumb {
|
|
31
|
+
background-color: var(--color-neutral-300);
|
|
32
|
+
border-radius: 3px;
|
|
33
|
+
border: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.akinon-table-row {
|
|
37
|
+
/* Add background for alternate rows. */
|
|
38
|
+
&:nth-child(odd) td {
|
|
39
|
+
background-color: var(--color-neutral-100);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.akinon-table-row.is-selectable {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
|
|
46
|
+
& td {
|
|
47
|
+
transition: background-color 0.2s;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:hover td {
|
|
51
|
+
background-color: var(--color-blue-100) !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:hover td[class*='akinon-table-cell-fix-'] {
|
|
55
|
+
background-color: var(--color-blue-200) !important;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datatable.d.ts","sourceRoot":"","sources":["../../../src/components/datatable.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AAIzB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAgB,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEhE,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,sBAsC9D,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import './datatable.css';
|
|
2
|
+
import { Table } from '@akinon/ui-table';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { useAkitableContext } from '../akitable-context';
|
|
6
|
+
export const AkitableDataTable = (props) => {
|
|
7
|
+
const { isLoading, selectedRowKeys, setSelectedRowKeys, actions } = useAkitableContext();
|
|
8
|
+
const { columns, data, rowKey, onRowClick } = props;
|
|
9
|
+
const hasActions = actions && actions.length > 0;
|
|
10
|
+
const onSelectChange = (newSelectedRowKeys) => {
|
|
11
|
+
setSelectedRowKeys === null || setSelectedRowKeys === void 0 ? void 0 : setSelectedRowKeys(newSelectedRowKeys);
|
|
12
|
+
};
|
|
13
|
+
const rowSelection = {
|
|
14
|
+
selectedRowKeys,
|
|
15
|
+
onChange: onSelectChange
|
|
16
|
+
};
|
|
17
|
+
return (React.createElement("div", { className: "akitable-wrapper" },
|
|
18
|
+
React.createElement(Table, { columns: columns, dataSource: data, rowKey: (record) => record[rowKey], bordered: true, rowHoverable: true, pagination: false, scroll: { x: 1500 }, loading: isLoading, onRow: (record, rowIndex) => {
|
|
19
|
+
return {
|
|
20
|
+
onClick: (event) => {
|
|
21
|
+
onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(record, event, rowIndex);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}, rowClassName: clsx({ 'is-selectable': !!onRowClick }), rowSelection: hasActions ? rowSelection : undefined })));
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../src/components/footer.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAGtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,eAAO,MAAM,cAAc,UAAW,mBAAmB,6BAkBxD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './footer.css';
|
|
2
|
+
import { Spin } from '@akinon/ui-spin';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { useAkitableContext } from '../akitable-context';
|
|
5
|
+
import { AkitablePagination } from './pagination';
|
|
6
|
+
export const AkitableFooter = (props) => {
|
|
7
|
+
const { isLoading } = useAkitableContext();
|
|
8
|
+
const { extra } = props;
|
|
9
|
+
if (!extra)
|
|
10
|
+
return null;
|
|
11
|
+
return (React.createElement("div", { className: "akitable-footer" },
|
|
12
|
+
extra && (React.createElement("div", { className: "akitable-footer-extra" }, isLoading ? React.createElement(Spin, null) : extra)),
|
|
13
|
+
React.createElement("div", { className: "ml-auto" },
|
|
14
|
+
React.createElement(AkitablePagination, null))));
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.akitable-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
margin-bottom: 1.5rem;
|
|
4
|
+
/* Setting min-height to prevent cumulative layout shifts. */
|
|
5
|
+
min-height: 40px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.akitable-header-title {
|
|
9
|
+
font-size: 1.25rem;
|
|
10
|
+
font-weight: bold;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
line-height: 1;
|
|
14
|
+
color: var(--color-gray-900);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.akitable-header-description {
|
|
18
|
+
color: var(--color-gray-400);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.akitable-header-extra {
|
|
22
|
+
margin-left: auto;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/header.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAItB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,cAAc,UAAW,mBAAmB,6BA8BxD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './header.css';
|
|
2
|
+
import { Skeleton } from '@akinon/ui-skeleton';
|
|
3
|
+
import { Spin } from '@akinon/ui-spin';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { useAkitableContext } from '../akitable-context';
|
|
6
|
+
import { i18n } from '../i18n';
|
|
7
|
+
export const AkitableHeader = (props) => {
|
|
8
|
+
const { isLoading, pagination } = useAkitableContext();
|
|
9
|
+
const { title, extra } = props;
|
|
10
|
+
if (!title && !extra)
|
|
11
|
+
return null;
|
|
12
|
+
return (React.createElement("div", { className: "akitable-header" },
|
|
13
|
+
title && (React.createElement("div", null,
|
|
14
|
+
React.createElement("h2", { className: "akitable-header-title" },
|
|
15
|
+
title,
|
|
16
|
+
" ",
|
|
17
|
+
!isLoading && `(${pagination === null || pagination === void 0 ? void 0 : pagination.total})`),
|
|
18
|
+
!isLoading && (React.createElement("span", { className: "akitable-header-description" }, i18n.t('resultsFound', { count: pagination === null || pagination === void 0 ? void 0 : pagination.total }))),
|
|
19
|
+
isLoading && React.createElement(Skeleton, { count: 0.7, className: "mt-2" }))),
|
|
20
|
+
extra && (React.createElement("div", { className: "akitable-header-extra" }, isLoading ? React.createElement(Spin, null) : extra))));
|
|
21
|
+
};
|