@aloudata/aloudata-design 0.4.0-beta.1 → 0.4.0-beta.11
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/es/Avatar/component/Avatar/index.d.ts +84 -0
- package/es/Avatar/component/Avatar/index.js +42 -0
- package/es/Avatar/index.d.ts +1 -13
- package/es/Avatar/index.js +1 -30
- package/es/Avatar/style/index.less +1 -1
- package/es/Breadcrumb/index.d.ts +5 -2
- package/es/Breadcrumb/index.js +17 -7
- package/es/Button/index.d.ts +1 -1
- package/es/Button/index.js +3 -8
- package/es/Button/style/index.less +6 -0
- package/es/Button/style/variables.less +26 -26
- package/es/Checkbox/component/CheckboxGroup/index.d.ts +4 -0
- package/es/Checkbox/component/CheckboxGroup/index.js +27 -0
- package/es/Checkbox/index.d.ts +4 -5
- package/es/Checkbox/index.js +3 -12
- package/es/Checkbox/style/index.less +36 -16
- package/es/Checkbox/type.d.ts +94 -0
- package/es/Checkbox/type.js +6 -0
- package/es/Divider/index.d.ts +40 -2
- package/es/Divider/index.js +10 -1
- package/es/Divider/style/index.less +4 -0
- package/es/Divider/style/index.less.d.ts +183 -0
- package/es/Dropdown/Button.d.ts +4 -4
- package/es/Dropdown/Button.js +5 -5
- package/es/Dropdown/index.d.ts +5 -5
- package/es/Dropdown/index.js +5 -5
- package/es/Icon/icons.d.ts +9 -0
- package/es/Icon/icons.js +1590 -0
- package/es/Input/components/Input/index.d.ts +13 -1
- package/es/Input/components/Input/index.js +1 -3
- package/es/Input/components/Password/index.d.ts +6 -1
- package/es/Input/components/Password/index.js +11 -3
- package/es/Input/components/TextArea/index.d.ts +1 -1
- package/es/Input/style/index.less +139 -59
- package/es/InputNumber/index.d.ts +3 -3
- package/es/InputNumber/style/index.less +66 -26
- package/es/InputNumber/type.d.ts +161 -0
- package/es/InputNumber/type.js +1 -0
- package/es/Menu/index.d.ts +2 -0
- package/es/Popconfirm/index.d.ts +90 -0
- package/es/Popconfirm/index.js +111 -0
- package/es/Popconfirm/style/index.d.ts +2 -0
- package/es/Popconfirm/style/index.js +2 -0
- package/es/Popconfirm/style/index.less +57 -0
- package/es/Progress/index.d.ts +3 -0
- package/es/Progress/index.js +2 -0
- package/es/Progress/style/index.d.ts +2 -0
- package/es/Progress/style/index.js +2 -0
- package/es/Progress/style/index.less +1 -0
- package/es/Select/style/variables.less.d.ts +6 -0
- package/es/Steps/style/index.less +10 -4
- package/es/Table/Table.js +87 -91
- package/es/Table/components/TableHead/index.d.ts +0 -1
- package/es/Table/components/TableHead/index.js +1 -2
- package/es/Table/interface.d.ts +2 -0
- package/es/Table/style/index.less +14 -5
- package/es/Table/style/variable.less +0 -5
- package/es/Table/style/variable.less.d.ts +1 -1
- package/es/Table/utils.js +16 -9
- package/es/Tabs/index.d.ts +21 -6
- package/es/Tabs/index.js +3 -5
- package/es/Tabs/style/index.less +1 -1
- package/es/Tooltip/index.d.ts +2 -2
- package/es/Tooltip/index.js +4 -4
- package/es/index.d.ts +7 -3
- package/es/index.js +3 -1
- package/es/style/themes/default/scrollBar.less +10 -7
- package/es/style/themes/default/themeColor.module.less +176 -166
- package/es/style/themes/default/themeColor.module.less.d.ts +6 -0
- package/lib/Avatar/component/Avatar/index.d.ts +84 -0
- package/lib/Avatar/component/Avatar/index.js +61 -0
- package/lib/Avatar/index.d.ts +1 -13
- package/lib/Avatar/index.js +3 -44
- package/lib/Avatar/style/index.less +1 -1
- package/lib/Breadcrumb/index.d.ts +5 -2
- package/lib/Breadcrumb/index.js +17 -8
- package/lib/Button/index.d.ts +1 -1
- package/lib/Button/index.js +3 -8
- package/lib/Button/style/index.less +6 -0
- package/lib/Button/style/variables.less +26 -26
- package/lib/Checkbox/component/CheckboxGroup/index.d.ts +4 -0
- package/lib/Checkbox/component/CheckboxGroup/index.js +42 -0
- package/lib/Checkbox/index.d.ts +4 -5
- package/lib/Checkbox/index.js +4 -13
- package/lib/Checkbox/style/index.less +36 -16
- package/lib/Checkbox/type.d.ts +94 -0
- package/lib/Checkbox/type.js +13 -0
- package/lib/Divider/index.d.ts +40 -2
- package/lib/Divider/index.js +11 -1
- package/lib/Divider/style/index.less +4 -0
- package/lib/Divider/style/index.less.d.ts +183 -0
- package/lib/Dropdown/Button.d.ts +4 -4
- package/lib/Dropdown/Button.js +5 -5
- package/lib/Dropdown/index.d.ts +5 -5
- package/lib/Dropdown/index.js +5 -5
- package/lib/Icon/icons.d.ts +9 -0
- package/lib/Icon/icons.js +1597 -0
- package/lib/Input/components/Input/index.d.ts +13 -1
- package/lib/Input/components/Input/index.js +1 -3
- package/lib/Input/components/Password/index.d.ts +6 -1
- package/lib/Input/components/Password/index.js +14 -4
- package/lib/Input/components/TextArea/index.d.ts +1 -1
- package/lib/Input/style/index.less +139 -59
- package/lib/InputNumber/index.d.ts +3 -3
- package/lib/InputNumber/style/index.less +66 -26
- package/lib/InputNumber/type.d.ts +161 -0
- package/lib/InputNumber/type.js +5 -0
- package/lib/Menu/index.d.ts +2 -0
- package/lib/Popconfirm/index.d.ts +90 -0
- package/lib/Popconfirm/index.js +127 -0
- package/lib/Popconfirm/style/index.d.ts +2 -0
- package/lib/Popconfirm/style/index.js +5 -0
- package/lib/Popconfirm/style/index.less +57 -0
- package/lib/Progress/index.d.ts +3 -0
- package/lib/Progress/index.js +13 -0
- package/lib/Progress/style/index.d.ts +2 -0
- package/lib/Progress/style/index.js +5 -0
- package/lib/Progress/style/index.less +1 -0
- package/lib/Select/style/variables.less.d.ts +6 -0
- package/lib/Steps/style/index.less +10 -4
- package/lib/Table/Table.js +90 -96
- package/lib/Table/components/TableHead/index.d.ts +0 -1
- package/lib/Table/components/TableHead/index.js +1 -2
- package/lib/Table/interface.d.ts +2 -0
- package/lib/Table/style/index.less +14 -5
- package/lib/Table/style/variable.less +0 -5
- package/lib/Table/style/variable.less.d.ts +1 -1
- package/lib/Table/utils.js +16 -9
- package/lib/Tabs/index.d.ts +21 -6
- package/lib/Tabs/index.js +3 -7
- package/lib/Tabs/style/index.less +1 -1
- package/lib/Tooltip/index.d.ts +2 -2
- package/lib/Tooltip/index.js +4 -4
- package/lib/index.d.ts +7 -3
- package/lib/index.js +16 -0
- package/lib/style/themes/default/scrollBar.less +10 -7
- package/lib/style/themes/default/themeColor.module.less +176 -166
- package/lib/style/themes/default/themeColor.module.less.d.ts +6 -0
- package/package.json +4 -3
- package/es/Icon/icons.json +0 -418
- package/es/Table/hooks/useFrame.d.ts +0 -7
- package/es/Table/hooks/useFrame.js +0 -90
- package/es/Table/hooks/useTableColumn.d.ts +0 -28
- package/es/Table/hooks/useTableColumn.js +0 -53
- package/es/Table/style/index.less.d.ts +0 -126
- package/es/Tabs/TabPane.d.ts +0 -21
- package/es/Tabs/TabPane.js +0 -6
- package/lib/Icon/icons.json +0 -418
- package/lib/Table/hooks/useFrame.d.ts +0 -7
- package/lib/Table/hooks/useFrame.js +0 -98
- package/lib/Table/hooks/useTableColumn.d.ts +0 -28
- package/lib/Table/hooks/useTableColumn.js +0 -66
- package/lib/Table/style/index.less.d.ts +0 -126
- package/lib/Tabs/TabPane.d.ts +0 -21
- package/lib/Tabs/TabPane.js +0 -18
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IColumn } from '../interface';
|
|
3
|
-
import { IWidthDetail } from '../utils';
|
|
4
|
-
import { Cell } from 'react-table';
|
|
5
|
-
import 'react-table/node_modules/@types/react';
|
|
6
|
-
interface IUseTableColumnProps<T> {
|
|
7
|
-
columnsWidthMapRef: React.MutableRefObject<Map<string, IWidthDetail> | undefined>;
|
|
8
|
-
columnsTotalWidthRef: React.MutableRefObject<number>;
|
|
9
|
-
columnsRef: React.MutableRefObject<IColumn<T>[]>;
|
|
10
|
-
tableClientWidth: number;
|
|
11
|
-
sortable?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare function useTableColumn<T extends object = {}>(props: IUseTableColumnProps<T>): {
|
|
14
|
-
width: number | undefined;
|
|
15
|
-
Header: string | (() => null);
|
|
16
|
-
disableSortBy: boolean;
|
|
17
|
-
accessor: string;
|
|
18
|
-
Cell: ({ row, value }: Cell) => any;
|
|
19
|
-
title: string | null;
|
|
20
|
-
dataIndex: string;
|
|
21
|
-
render?: ((value: any, row: T, index: number) => React.ReactNode) | undefined;
|
|
22
|
-
minWidth?: number | undefined;
|
|
23
|
-
sorter?: boolean | "string" | "number" | "basic" | "datetime" | "alphanumeric" | undefined;
|
|
24
|
-
sortOrder?: false | "ascend" | "descend" | undefined;
|
|
25
|
-
sortDirections?: ("ascend" | "descend")[] | undefined;
|
|
26
|
-
selected?: boolean | undefined;
|
|
27
|
-
}[];
|
|
28
|
-
export default useTableColumn;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
|
|
10
|
-
var _utils = require("../utils");
|
|
11
|
-
|
|
12
|
-
var _message = _interopRequireDefault(require("../../message"));
|
|
13
|
-
|
|
14
|
-
require("react-table/node_modules/@types/react");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
-
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
-
|
|
22
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
-
|
|
24
|
-
function useTableColumn(props) {
|
|
25
|
-
var columnsWidthMapRef = props.columnsWidthMapRef,
|
|
26
|
-
columnsTotalWidthRef = props.columnsTotalWidthRef,
|
|
27
|
-
columnsRef = props.columnsRef,
|
|
28
|
-
tableClientWidth = props.tableClientWidth,
|
|
29
|
-
sortable = props.sortable; // 转换外部传入的columns
|
|
30
|
-
|
|
31
|
-
var newColumns = (0, _react.useMemo)(function () {
|
|
32
|
-
var _getColumnsWidthMap = (0, _utils.getColumnsWidthMap)(columnsRef.current, tableClientWidth, columnsWidthMapRef.current),
|
|
33
|
-
columnsWidthMap = _getColumnsWidthMap.columnsWidthMap,
|
|
34
|
-
totalColumnWidth = _getColumnsWidthMap.totalColumnWidth;
|
|
35
|
-
|
|
36
|
-
columnsWidthMapRef.current = columnsWidthMap;
|
|
37
|
-
columnsTotalWidthRef.current = totalColumnWidth;
|
|
38
|
-
return columnsRef.current.map(function (column, index) {
|
|
39
|
-
var _columnsWidthMapRef$c, _columnsWidthMapRef$c2;
|
|
40
|
-
|
|
41
|
-
var key = index.toString(); // 不设置dataIndex同时进行排序 则报错
|
|
42
|
-
|
|
43
|
-
if (!column.dataIndex === undefined && sortable) {
|
|
44
|
-
_message.default.error('不支持未设置dataIndex时进行排序设置');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return _objectSpread(_objectSpread({}, column), {}, {
|
|
48
|
-
width: (_columnsWidthMapRef$c = columnsWidthMapRef.current) === null || _columnsWidthMapRef$c === void 0 ? void 0 : (_columnsWidthMapRef$c2 = _columnsWidthMapRef$c.get(key)) === null || _columnsWidthMapRef$c2 === void 0 ? void 0 : _columnsWidthMapRef$c2.width,
|
|
49
|
-
Header: column.title ? column.title : function () {
|
|
50
|
-
return null;
|
|
51
|
-
},
|
|
52
|
-
disableSortBy: !sortable || typeof column.sorter === 'boolean',
|
|
53
|
-
accessor: column.dataIndex,
|
|
54
|
-
Cell: function Cell(_ref) {
|
|
55
|
-
var row = _ref.row,
|
|
56
|
-
value = _ref.value;
|
|
57
|
-
return typeof column.render === 'function' ? column.render(value, row.original, row.index) : value;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
}, [columnsRef, columnsTotalWidthRef, columnsWidthMapRef, sortable, tableClientWidth]);
|
|
62
|
-
return newColumns;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
var _default = useTableColumn;
|
|
66
|
-
exports.default = _default;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
// This file is automatically generated.
|
|
2
|
-
// Please do not change this file!
|
|
3
|
-
interface CssExports {
|
|
4
|
-
'B10': string;
|
|
5
|
-
'B20': string;
|
|
6
|
-
'B30': string;
|
|
7
|
-
'B40': string;
|
|
8
|
-
'B50': string;
|
|
9
|
-
'B60': string;
|
|
10
|
-
'B70': string;
|
|
11
|
-
'B80': string;
|
|
12
|
-
'B90': string;
|
|
13
|
-
'B95': string;
|
|
14
|
-
'B98': string;
|
|
15
|
-
'BG0': string;
|
|
16
|
-
'BG10': string;
|
|
17
|
-
'BG100': string;
|
|
18
|
-
'BG20': string;
|
|
19
|
-
'BG30': string;
|
|
20
|
-
'BG40': string;
|
|
21
|
-
'BG50': string;
|
|
22
|
-
'BG60': string;
|
|
23
|
-
'BG70': string;
|
|
24
|
-
'BG80': string;
|
|
25
|
-
'BG90': string;
|
|
26
|
-
'BG95': string;
|
|
27
|
-
'BG97': string;
|
|
28
|
-
'BLACK': string;
|
|
29
|
-
'IMAGE_HOLDER': string;
|
|
30
|
-
'MATE': string;
|
|
31
|
-
'ND0': string;
|
|
32
|
-
'ND10': string;
|
|
33
|
-
'ND20': string;
|
|
34
|
-
'ND30': string;
|
|
35
|
-
'ND40': string;
|
|
36
|
-
'ND50': string;
|
|
37
|
-
'ND60': string;
|
|
38
|
-
'ND70': string;
|
|
39
|
-
'ND80': string;
|
|
40
|
-
'ND90': string;
|
|
41
|
-
'ND95': string;
|
|
42
|
-
'ND97': string;
|
|
43
|
-
'NL0': string;
|
|
44
|
-
'NL10': string;
|
|
45
|
-
'NL20': string;
|
|
46
|
-
'NL30': string;
|
|
47
|
-
'NL40': string;
|
|
48
|
-
'NL50': string;
|
|
49
|
-
'NL60': string;
|
|
50
|
-
'NL70': string;
|
|
51
|
-
'NL80': string;
|
|
52
|
-
'NL90': string;
|
|
53
|
-
'NL95': string;
|
|
54
|
-
'NL97': string;
|
|
55
|
-
'SA10': string;
|
|
56
|
-
'SA20': string;
|
|
57
|
-
'SA30': string;
|
|
58
|
-
'SA40': string;
|
|
59
|
-
'SA50': string;
|
|
60
|
-
'SA60': string;
|
|
61
|
-
'SA70': string;
|
|
62
|
-
'SA80': string;
|
|
63
|
-
'SA90': string;
|
|
64
|
-
'SA95': string;
|
|
65
|
-
'SA98': string;
|
|
66
|
-
'SB10': string;
|
|
67
|
-
'SB20': string;
|
|
68
|
-
'SB30': string;
|
|
69
|
-
'SB40': string;
|
|
70
|
-
'SB50': string;
|
|
71
|
-
'SB60': string;
|
|
72
|
-
'SB70': string;
|
|
73
|
-
'SB80': string;
|
|
74
|
-
'SB90': string;
|
|
75
|
-
'SB95': string;
|
|
76
|
-
'SB98': string;
|
|
77
|
-
'SC10': string;
|
|
78
|
-
'SC20': string;
|
|
79
|
-
'SC30': string;
|
|
80
|
-
'SC40': string;
|
|
81
|
-
'SC50': string;
|
|
82
|
-
'SC60': string;
|
|
83
|
-
'SC70': string;
|
|
84
|
-
'SC80': string;
|
|
85
|
-
'SC90': string;
|
|
86
|
-
'SC95': string;
|
|
87
|
-
'SC98': string;
|
|
88
|
-
'SHADOW_L': string;
|
|
89
|
-
'TableHeadRowHeight': string;
|
|
90
|
-
'WHITE': string;
|
|
91
|
-
'ald-empty': string;
|
|
92
|
-
'ald-empty-description': string;
|
|
93
|
-
'ald-empty-image': string;
|
|
94
|
-
'ald-empty-img': string;
|
|
95
|
-
'ald-empty-large': string;
|
|
96
|
-
'ald-empty-small': string;
|
|
97
|
-
'ald-empty-title': string;
|
|
98
|
-
'ald-table': string;
|
|
99
|
-
'ald-table-bar': string;
|
|
100
|
-
'ald-table-canNotInnerScroll': string;
|
|
101
|
-
'ald-table-cell': string;
|
|
102
|
-
'ald-table-cell-content': string;
|
|
103
|
-
'ald-table-column-resizable': string;
|
|
104
|
-
'ald-table-empty-icon': string;
|
|
105
|
-
'ald-table-header': string;
|
|
106
|
-
'ald-table-header-left': string;
|
|
107
|
-
'ald-table-header-right': string;
|
|
108
|
-
'ald-table-init-loading': string;
|
|
109
|
-
'ald-table-inner-wrap': string;
|
|
110
|
-
'ald-table-list': string;
|
|
111
|
-
'ald-table-loading': string;
|
|
112
|
-
'ald-table-loading-icon': string;
|
|
113
|
-
'ald-table-page-loading': string;
|
|
114
|
-
'ald-table-row': string;
|
|
115
|
-
'ald-table-row-ellipsis': string;
|
|
116
|
-
'ald-table-row-list-wrap': string;
|
|
117
|
-
'ald-table-row-selected': string;
|
|
118
|
-
'ald-table-sortIcon': string;
|
|
119
|
-
'ald-table-table-wrap': string;
|
|
120
|
-
'ald-table-tableHeadScrollWrap': string;
|
|
121
|
-
'ald-table-tbody': string;
|
|
122
|
-
'ald-table-tbody-innerScroll': string;
|
|
123
|
-
'ald-table-thead': string;
|
|
124
|
-
}
|
|
125
|
-
export const cssExports: CssExports;
|
|
126
|
-
export default cssExports;
|
package/lib/Tabs/TabPane.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface ITabPaneProps {
|
|
3
|
-
/**
|
|
4
|
-
* @description 被隐藏时是否渲染 DOM 结构
|
|
5
|
-
* @default false
|
|
6
|
-
*/
|
|
7
|
-
forceRender?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* @description 对应 activeKey
|
|
10
|
-
* @default -
|
|
11
|
-
*/
|
|
12
|
-
key?: string;
|
|
13
|
-
/**
|
|
14
|
-
* @description 选项卡头显示的内容
|
|
15
|
-
* @default -
|
|
16
|
-
*/
|
|
17
|
-
tab: ReactNode;
|
|
18
|
-
className?: string;
|
|
19
|
-
children?: ReactNode;
|
|
20
|
-
}
|
|
21
|
-
export default function TabPane(props: ITabPaneProps): JSX.Element;
|
package/lib/Tabs/TabPane.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = TabPane;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _tabs = _interopRequireDefault(require("antd/lib/tabs"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
var AntdTabPane = _tabs.default.TabPane;
|
|
15
|
-
|
|
16
|
-
function TabPane(props) {
|
|
17
|
-
return /*#__PURE__*/_react.default.createElement(AntdTabPane, Object.assign({}, props));
|
|
18
|
-
}
|