@aloudata/aloudata-design 2.0.4 → 2.1.0
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/Checkbox/type.d.ts +1 -0
- package/dist/DataPreviewTable/components/Body/index.js +1 -0
- package/dist/DataPreviewTable/index.js +4 -8
- package/dist/DataPreviewTable/style/index.less +13 -1
- package/dist/IconButton/index.js +1 -2
- package/dist/InputSearch/index.d.ts +12 -0
- package/dist/InputSearch/index.js +67 -0
- package/dist/InputSearch/style/index.d.ts +2 -0
- package/dist/InputSearch/style/index.js +2 -0
- package/dist/InputSearch/style/index.less +60 -0
- package/dist/Menu/style/index.less +1 -1
- package/dist/RenameInput/index.d.ts +15 -0
- package/dist/RenameInput/index.js +98 -0
- package/dist/RenameInput/style/index.d.ts +2 -0
- package/dist/RenameInput/style/index.js +2 -0
- package/dist/RenameInput/style/index.less +54 -0
- package/dist/User/index.d.ts +9 -0
- package/dist/User/index.js +26 -0
- package/dist/User/style/index.d.ts +2 -0
- package/dist/User/style/index.js +2 -0
- package/dist/User/style/index.less +37 -0
- package/dist/ald.min.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.less +3 -0
- package/dist/notification/index.d.ts +8 -4
- package/package.json +1 -1
- package/dist/DataPreviewTable/components/Body/SkeletonBody.d.ts +0 -12
- package/dist/DataPreviewTable/components/Body/SkeletonBody.js +0 -54
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export { default as Input } from './Input';
|
|
|
44
44
|
export type { IInputProps as InputProps, InputRef, TSize, TextAreaRef, } from './Input';
|
|
45
45
|
export { default as InputNumber } from './InputNumber';
|
|
46
46
|
export type { IInputNumberProps as InputNumberProps } from './InputNumber';
|
|
47
|
+
export { default as InputSearch } from './InputSearch';
|
|
47
48
|
export { default as Layout } from './Layout';
|
|
48
49
|
export type { LayoutProps } from './Layout';
|
|
49
50
|
export { default as MemberPicker } from './MemberPicker';
|
|
@@ -61,6 +62,7 @@ export { default as Progress } from './Progress';
|
|
|
61
62
|
export type { IProgressRef, IProps as ProgressProps } from './Progress';
|
|
62
63
|
export { default as Radio } from './Radio';
|
|
63
64
|
export type { RadioGroupProps, RadioProps } from './Radio';
|
|
65
|
+
export { default as RenameInput } from './RenameInput';
|
|
64
66
|
export { default as Result } from './Result';
|
|
65
67
|
export { default as Row } from './Row';
|
|
66
68
|
export type { RowProps } from './Row';
|
|
@@ -92,6 +94,7 @@ export { default as Typography } from './Typography';
|
|
|
92
94
|
export type { TypographyProps } from './Typography';
|
|
93
95
|
export { default as Upload } from './Upload';
|
|
94
96
|
export type { UploadFile, UploadProps } from './Upload';
|
|
97
|
+
export { default as User } from './User';
|
|
95
98
|
export { default as message } from './message';
|
|
96
99
|
export type { MessageArgsProps } from './message';
|
|
97
100
|
export { default as notification } from './notification';
|
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ export { default as HighlightText } from "./HighlightText";
|
|
|
24
24
|
export { default as IconButton } from "./IconButton";
|
|
25
25
|
export { default as Input } from "./Input";
|
|
26
26
|
export { default as InputNumber } from "./InputNumber";
|
|
27
|
+
export { default as InputSearch } from "./InputSearch";
|
|
27
28
|
export { default as Layout } from "./Layout";
|
|
28
29
|
export { default as MemberPicker } from "./MemberPicker";
|
|
29
30
|
export { default as Menu } from "./Menu";
|
|
@@ -33,6 +34,7 @@ export { default as Popconfirm } from "./Popconfirm";
|
|
|
33
34
|
export { default as Popover } from "./Popover";
|
|
34
35
|
export { default as Progress } from "./Progress";
|
|
35
36
|
export { default as Radio } from "./Radio";
|
|
37
|
+
export { default as RenameInput } from "./RenameInput";
|
|
36
38
|
export { default as Result } from "./Result";
|
|
37
39
|
export { default as Row } from "./Row";
|
|
38
40
|
export { default as ScrollArea } from "./ScrollArea";
|
|
@@ -50,6 +52,7 @@ export { default as Tooltip } from "./Tooltip";
|
|
|
50
52
|
export { default as Tree } from "./Tree";
|
|
51
53
|
export { default as Typography } from "./Typography";
|
|
52
54
|
export { default as Upload } from "./Upload";
|
|
55
|
+
export { default as User } from "./User";
|
|
53
56
|
export { default as message } from "./message";
|
|
54
57
|
// alias, keep API the same as antd
|
|
55
58
|
|
package/dist/index.less
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { ArgsProps } from 'antd/lib/notification/interface';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface IAldArgsProps extends ArgsProps {
|
|
4
|
+
footer?: React.ReactNode;
|
|
5
|
+
}
|
|
2
6
|
declare const notification: {
|
|
3
7
|
open: (config: ArgsProps) => void;
|
|
4
|
-
success: (config:
|
|
5
|
-
error: (config:
|
|
6
|
-
warning: (config:
|
|
7
|
-
info: (config:
|
|
8
|
+
success: (config: IAldArgsProps) => void;
|
|
9
|
+
error: (config: IAldArgsProps) => void;
|
|
10
|
+
warning: (config: IAldArgsProps) => void;
|
|
11
|
+
info: (config: IAldArgsProps) => void;
|
|
8
12
|
destroy: (key?: string) => void;
|
|
9
13
|
};
|
|
10
14
|
export default notification;
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IColumnLayout, PreviewColumn } from '../../interface';
|
|
3
|
-
interface IHeader {
|
|
4
|
-
columns: PreviewColumn[];
|
|
5
|
-
columnLayout: IColumnLayout;
|
|
6
|
-
columnRange: [number, number];
|
|
7
|
-
rowRange: [number, number];
|
|
8
|
-
rows: number;
|
|
9
|
-
}
|
|
10
|
-
declare function SkeletonBody(props: IHeader): React.JSX.Element;
|
|
11
|
-
declare const _default: React.MemoExoticComponent<typeof SkeletonBody>;
|
|
12
|
-
export default _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { memo, useMemo } from 'react';
|
|
8
|
-
import Skeleton from "../../../Skeleton";
|
|
9
|
-
import { CELL_HEIGHT, HEADER_HEIGHT } from "../../constant";
|
|
10
|
-
function SkeletonBody(props) {
|
|
11
|
-
var columns = props.columns,
|
|
12
|
-
columnLayout = props.columnLayout,
|
|
13
|
-
_props$columnRange = _slicedToArray(props.columnRange, 2),
|
|
14
|
-
startIndex = _props$columnRange[0],
|
|
15
|
-
endIndex = _props$columnRange[1],
|
|
16
|
-
_props$rowRange = _slicedToArray(props.rowRange, 2),
|
|
17
|
-
startRowIndex = _props$rowRange[0],
|
|
18
|
-
endRowIndex = _props$rowRange[1],
|
|
19
|
-
rows = props.rows;
|
|
20
|
-
var row = useMemo(function () {
|
|
21
|
-
var newArray = new Array(columns.length).fill(0);
|
|
22
|
-
return newArray;
|
|
23
|
-
}, [columns]);
|
|
24
|
-
var datasource = useMemo(function () {
|
|
25
|
-
var newArray = new Array(rows).fill(row);
|
|
26
|
-
return newArray;
|
|
27
|
-
}, [rows, row]);
|
|
28
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
-
className: "ald-data-preview-table-body"
|
|
30
|
-
}, datasource.slice(startRowIndex, endRowIndex + 1).map(function (x, rowIndex) {
|
|
31
|
-
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
32
|
-
key: rowIndex
|
|
33
|
-
}, row.slice(startIndex, endIndex + 1).map(function (cell, index) {
|
|
34
|
-
var columnIndex = startIndex + index;
|
|
35
|
-
var style = {
|
|
36
|
-
height: CELL_HEIGHT,
|
|
37
|
-
width: columnLayout[columns[columnIndex].id].width,
|
|
38
|
-
top: rowIndex * CELL_HEIGHT + HEADER_HEIGHT,
|
|
39
|
-
left: columnLayout[columns[columnIndex].id].left,
|
|
40
|
-
position: 'absolute',
|
|
41
|
-
textAlign: columns[columnIndex].align || 'left'
|
|
42
|
-
};
|
|
43
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
44
|
-
key: columnIndex,
|
|
45
|
-
style: style,
|
|
46
|
-
className: "ald-data-preview-body-skeleton-cell"
|
|
47
|
-
}, /*#__PURE__*/React.createElement(Skeleton, {
|
|
48
|
-
active: true,
|
|
49
|
-
paragraph: false
|
|
50
|
-
}));
|
|
51
|
-
}));
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
54
|
-
export default /*#__PURE__*/memo(SkeletonBody);
|