@aloudata/aloudata-design 1.3.1 → 1.4.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.
Files changed (67) hide show
  1. package/dist/Avatar/component/Avatar/index.d.ts +3 -3
  2. package/dist/Avatar/component/Avatar/index.js +2 -2
  3. package/dist/Avatar/index.js +1 -1
  4. package/dist/Checkbox/index.d.ts +3 -3
  5. package/dist/Checkbox/index.js +1 -1
  6. package/dist/DataPreviewTable/components/Body/Error.d.ts +9 -0
  7. package/dist/DataPreviewTable/components/Body/Error.js +17 -0
  8. package/dist/DataPreviewTable/components/Body/SkeletonBody.d.ts +12 -0
  9. package/dist/DataPreviewTable/components/Body/SkeletonBody.js +63 -0
  10. package/dist/DataPreviewTable/components/Body/index.d.ts +12 -0
  11. package/dist/DataPreviewTable/components/Body/index.js +52 -0
  12. package/dist/DataPreviewTable/components/DragBar/index.d.ts +8 -0
  13. package/dist/DataPreviewTable/components/DragBar/index.js +93 -0
  14. package/dist/DataPreviewTable/components/Header/index.d.ts +10 -0
  15. package/dist/DataPreviewTable/components/Header/index.js +68 -0
  16. package/dist/DataPreviewTable/constant.d.ts +6 -0
  17. package/dist/DataPreviewTable/constant.js +7 -0
  18. package/dist/DataPreviewTable/hooks/useDirection.d.ts +28 -0
  19. package/dist/DataPreviewTable/hooks/useDirection.js +281 -0
  20. package/dist/DataPreviewTable/index.d.ts +4 -0
  21. package/dist/DataPreviewTable/index.js +105 -0
  22. package/dist/DataPreviewTable/interface.d.ts +26 -0
  23. package/dist/DataPreviewTable/interface.js +1 -0
  24. package/dist/DataPreviewTable/style/index.d.ts +2 -0
  25. package/dist/DataPreviewTable/style/index.js +2 -0
  26. package/dist/DataPreviewTable/style/index.less +138 -0
  27. package/dist/DataPreviewTable/utils/findRange.d.ts +13 -0
  28. package/dist/DataPreviewTable/utils/findRange.js +86 -0
  29. package/dist/DoubleCircleIcon/index.d.ts +1 -1
  30. package/dist/Dropdown/index.js +1 -1
  31. package/dist/Form/index.d.ts +27 -7
  32. package/dist/Form/index.js +46 -7
  33. package/dist/Input/components/Input/index.d.ts +3 -2
  34. package/dist/Input/components/Input/index.js +6 -4
  35. package/dist/Menu/SubMenu.d.ts +1 -1
  36. package/dist/Menu/SubMenu.js +1 -1
  37. package/dist/Progress/index.d.ts +13 -3
  38. package/dist/Progress/index.js +88 -3
  39. package/dist/Progress/style/index.less +56 -0
  40. package/dist/Radio/components/Group/index.d.ts +1 -1
  41. package/dist/ScrollArea/index.d.ts +11 -0
  42. package/dist/ScrollArea/index.js +49 -0
  43. package/dist/ScrollArea/style/index.d.ts +2 -0
  44. package/dist/ScrollArea/style/index.js +2 -0
  45. package/dist/ScrollArea/style/index.less +48 -0
  46. package/dist/Select/components/MultipleOption.d.ts +1 -1
  47. package/dist/Select/components/SingleOption.d.ts +1 -1
  48. package/dist/Select/index.d.ts +1 -0
  49. package/dist/Select/index.js +64 -26
  50. package/dist/Skeleton/index.d.ts +2 -2
  51. package/dist/Skeleton/index.js +1 -1
  52. package/dist/Space/index.d.ts +2 -2
  53. package/dist/Space/index.js +1 -1
  54. package/dist/Switch/index.d.ts +2 -2
  55. package/dist/Switch/index.js +1 -1
  56. package/dist/Tree/index.d.ts +5 -5
  57. package/dist/Upload/index.d.ts +2 -2
  58. package/dist/index.d.ts +3 -1
  59. package/dist/index.js +2 -0
  60. package/dist/locale/en_US.js +3 -3
  61. package/dist/locale/zh_CN.js +3 -3
  62. package/dist/locale-provider/LocaleReceiver.d.ts +2 -2
  63. package/dist/locale-provider/LocaleReceiver.js +1 -1
  64. package/dist/locale-provider/index.d.ts +7 -7
  65. package/dist/locale-provider/index.js +2 -2
  66. package/dist/notification/index.d.ts +1 -1
  67. package/package.json +2 -1
@@ -1,28 +1,28 @@
1
- var _excluded = ["mode", "options", "dropdownRender", "onDropdownVisibleChange", "defaultValue", "onChange", "open", "defaultOpen", "prefix", "className", "popupClassName", "listHeight", "listItemHeight", "notFoundContent", "value", "tagRender", "style", "autoFocus"];
1
+ var _excluded = ["mode", "options", "dropdownRender", "onDropdownVisibleChange", "defaultValue", "onChange", "open", "defaultOpen", "prefix", "className", "popupClassName", "listHeight", "listItemHeight", "notFoundContent", "value", "tagRender", "style", "autoFocus", "showSearch", "showAllOption"];
2
2
 
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
5
  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; }
6
6
 
7
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
8
 
9
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ 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."); }
10
10
 
11
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12
12
 
13
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
14
 
15
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
16
16
 
17
- 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."); }
17
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
18
 
19
19
  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); }
20
20
 
21
- 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; }
21
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
22
22
 
23
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
23
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
24
24
 
25
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
+ 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; }
26
26
 
27
27
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
28
28
 
@@ -37,6 +37,7 @@ import Empty from "../Empty";
37
37
  import theme from "../style/themes/default/themeColor.module.less";
38
38
  import MultipleOption from "./components/MultipleOption";
39
39
  import SingleOption from "./components/SingleOption";
40
+ var DEFAULT_ALL_OPTION_VALUE = 'default_all_option_value';
40
41
  var suffixIconSizeMap = {
41
42
  large: 20,
42
43
  middle: 16,
@@ -112,11 +113,25 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
112
113
  _props$style = props.style,
113
114
  style = _props$style === void 0 ? {} : _props$style,
114
115
  autoFocus = props.autoFocus,
116
+ _props$showSearch = props.showSearch,
117
+ showSearch = _props$showSearch === void 0 ? false : _props$showSearch,
118
+ showAllOption = props.showAllOption,
115
119
  restProps = _objectWithoutProperties(props, _excluded);
116
120
 
117
121
  var isMultiple = mode === 'multiple';
122
+ var innerOptions = useMemo(function () {
123
+ if (showAllOption && isMultiple && options) {
124
+ return [{
125
+ label: '全部',
126
+ value: DEFAULT_ALL_OPTION_VALUE,
127
+ __IS_INNER_ALL_OPTION: true
128
+ }].concat(_toConsumableArray(options || []));
129
+ }
130
+
131
+ return options;
132
+ }, [options, showAllOption, isMultiple]);
118
133
 
119
- var _React$useState = React.useState(getSelectedOptionsFromValue(isMultiple, options, value, defaultValue)),
134
+ var _React$useState = React.useState(getSelectedOptionsFromValue(isMultiple, innerOptions, value, defaultValue)),
120
135
  _React$useState2 = _slicedToArray(_React$useState, 2),
121
136
  selectedOptions = _React$useState2[0],
122
137
  setSelectedOptions = _React$useState2[1];
@@ -183,18 +198,31 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
183
198
  if (selected) {
184
199
  var _props$onSelect;
185
200
 
186
- newOptions = [].concat(_toConsumableArray(selectedOptions), [option]);
201
+ if (option.__IS_INNER_ALL_OPTION) {
202
+ newOptions = (innerOptions === null || innerOptions === void 0 ? void 0 : innerOptions.filter(function (item) {
203
+ return !item.__IS_INNER_ALL_OPTION && !item.disabled;
204
+ })) || [];
205
+ } else {
206
+ newOptions = [].concat(_toConsumableArray(selectedOptions), [option]);
207
+ }
208
+
187
209
  (_props$onSelect = props.onSelect) === null || _props$onSelect === void 0 ? void 0 : _props$onSelect.call(props, option.value, option);
188
210
  } else {
189
211
  var _props$onDeselect;
190
212
 
191
213
  (_props$onDeselect = props.onDeselect) === null || _props$onDeselect === void 0 ? void 0 : _props$onDeselect.call(props, option.value, option);
192
- newOptions = selectedOptions.filter(function (item) {
193
- return item.value !== option.value;
194
- });
214
+
215
+ if (option.__IS_INNER_ALL_OPTION) {
216
+ newOptions = [];
217
+ } else {
218
+ newOptions = selectedOptions.filter(function (item) {
219
+ return item.value !== option.value;
220
+ });
221
+ }
195
222
  }
196
223
 
197
224
  if (typeof value === 'undefined') {
225
+ console.log(newOptions, 'newOptions');
198
226
  setSelectedOptions(newOptions);
199
227
  }
200
228
 
@@ -204,8 +232,8 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
204
232
  };
205
233
 
206
234
  var getListHeight = function getListHeight() {
207
- if (typeof listHeight === 'number' && options !== null && options !== void 0 && options.length) {
208
- if (listHeight <= options.length * listItemHeight) {
235
+ if (typeof listHeight === 'number' && innerOptions !== null && innerOptions !== void 0 && innerOptions.length) {
236
+ if (listHeight <= innerOptions.length * listItemHeight) {
209
237
  return listHeight;
210
238
  }
211
239
  }
@@ -217,15 +245,24 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
217
245
  return /*#__PURE__*/React.createElement("div", {
218
246
  className: "ald-multiple-option-list"
219
247
  }, /*#__PURE__*/React.createElement(List, {
220
- data: options || [],
248
+ data: innerOptions || [],
221
249
  "data-id": "list",
222
250
  height: getListHeight(),
223
251
  itemHeight: listItemHeight,
224
252
  itemKey: "value"
225
253
  }, function (option) {
226
- var isSelected = selectedOptions.some(function (selectedOption) {
227
- return selectedOption.value === option.value;
228
- });
254
+ var isSelected = false;
255
+
256
+ if (option.__IS_INNER_ALL_OPTION) {
257
+ isSelected = selectedOptions.length === (innerOptions === null || innerOptions === void 0 ? void 0 : innerOptions.filter(function (option) {
258
+ return !option.__IS_INNER_ALL_OPTION && !option.disabled;
259
+ }).length);
260
+ } else {
261
+ isSelected = selectedOptions.some(function (selectedOption) {
262
+ return selectedOption.value === option.value;
263
+ });
264
+ }
265
+
229
266
  return /*#__PURE__*/React.createElement(MultipleOption, {
230
267
  key: option.value,
231
268
  selected: isSelected,
@@ -255,7 +292,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
255
292
  return /*#__PURE__*/React.createElement("div", {
256
293
  className: "ald-single-option-list"
257
294
  }, /*#__PURE__*/React.createElement(List, {
258
- data: options || [],
295
+ data: innerOptions || [],
259
296
  "data-id": "list",
260
297
  height: getListHeight(),
261
298
  itemHeight: listItemHeight,
@@ -291,7 +328,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
291
328
  return dropdownRender(_menu);
292
329
  };
293
330
  }
294
- } else if (Array.isArray(options) && options.length > 0) {
331
+ } else if (Array.isArray(innerOptions) && innerOptions.length > 0) {
295
332
  if (!isMultiple) {
296
333
  return singleRender;
297
334
  } else {
@@ -341,11 +378,11 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
341
378
 
342
379
  useEffect(function () {
343
380
  if (updatedRef.current) {
344
- setSelectedOptions(getSelectedOptionsFromValue(isMultiple, options, value));
381
+ setSelectedOptions(getSelectedOptionsFromValue(isMultiple, innerOptions, value));
345
382
  } else {
346
383
  updatedRef.current = true;
347
384
  }
348
- }, [value]);
385
+ }, [value, innerOptions, isMultiple]);
349
386
  return /*#__PURE__*/React.createElement("div", {
350
387
  className: classNames('ald-select', className, {
351
388
  'ald-select-multiple': isMultiple,
@@ -368,7 +405,8 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
368
405
  }
369
406
  }
370
407
  }, prefix), /*#__PURE__*/React.createElement(AntdSelect, _extends({}, restProps, {
371
- options: options,
408
+ showSearch: showSearch,
409
+ options: innerOptions,
372
410
  mode: isMultiple ? 'multiple' : undefined,
373
411
  bordered: false,
374
412
  open: typeof _open === 'boolean' ? _open : isOpen,
@@ -1,3 +1,3 @@
1
- import Skeleton from 'antd/es/skeleton/Skeleton';
2
- export type { SkeletonProps } from 'antd/es/skeleton/Skeleton';
1
+ import Skeleton from 'antd/lib/skeleton/Skeleton';
2
+ export type { SkeletonProps } from 'antd/lib/skeleton/Skeleton';
3
3
  export default Skeleton;
@@ -1,2 +1,2 @@
1
- import Skeleton from 'antd/es/skeleton/Skeleton';
1
+ import Skeleton from 'antd/lib/skeleton/Skeleton';
2
2
  export default Skeleton;
@@ -1,4 +1,4 @@
1
- import Space, { SpaceProps, SpaceContext } from 'antd/es/space';
2
- export type { SpaceSize } from 'antd/es/space';
1
+ import Space, { SpaceContext, SpaceProps } from 'antd/lib/space';
2
+ export type { SpaceSize } from 'antd/lib/space';
3
3
  export type { SpaceProps, SpaceContext };
4
4
  export default Space;
@@ -1,2 +1,2 @@
1
- import Space from 'antd/es/space';
1
+ import Space from 'antd/lib/space';
2
2
  export default Space;
@@ -1,6 +1,6 @@
1
- import { SwitchChangeEventHandler } from 'antd/es/switch';
1
+ import { SwitchChangeEventHandler } from 'antd/lib/switch';
2
2
  import React from 'react';
3
- export type { SwitchSize, SwitchChangeEventHandler, SwitchClickEventHandler } from 'antd/es/switch';
3
+ export type { SwitchChangeEventHandler, SwitchClickEventHandler, SwitchSize, } from 'antd/lib/switch';
4
4
  export interface ISwitchProps {
5
5
  /**
6
6
  * @description class类名
@@ -11,8 +11,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
11
11
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
12
 
13
13
  import { Switch as AntdSwitch } from 'antd';
14
- import React, { useState, useEffect } from 'react';
15
14
  import classnames from 'classnames';
15
+ import React, { useEffect, useState } from 'react';
16
16
 
17
17
  var Switch = function Switch(_ref) {
18
18
  var _ref$className = _ref.className,
@@ -1,12 +1,12 @@
1
- import { DataNode } from 'antd/es/tree';
1
+ import { DataNode } from 'antd/lib/tree';
2
+ import { AntdTreeNodeAttribute, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, TreeProps as AntdTreeProps } from 'antd/lib/tree/Tree';
2
3
  import RcTree from 'rc-tree';
3
- import { AntdTreeNodeAttribute, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, TreeProps as AntdTreeProps } from 'antd/es/tree/Tree';
4
4
  import { BasicDataNode } from 'rc-tree/lib/interface';
5
5
  import React, { ForwardedRef } from 'react';
6
- export type { DataNode, EventDataNode } from 'antd/es/tree';
7
- export type { DirectoryTreeProps, ExpandAction as DirectoryTreeExpandAction, } from 'antd/es/tree/DirectoryTree';
8
- declare type TreeProps<T extends BasicDataNode = DataNode> = Omit<AntdTreeProps<T>, 'switcherIcon'>;
6
+ export type { DataNode, EventDataNode } from 'antd/lib/tree';
7
+ export type { DirectoryTreeProps, ExpandAction as DirectoryTreeExpandAction, } from 'antd/lib/tree/DirectoryTree';
9
8
  export type { TreeProps, AntTreeNode, AntTreeNodeMouseEvent, AntTreeNodeExpandedEvent, AntTreeNodeCheckedEvent, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, AntTreeNodeProps, };
9
+ declare type TreeProps<T extends BasicDataNode = DataNode> = Omit<AntdTreeProps<T>, 'switcherIcon'>;
10
10
  declare const _default: <T extends BasicDataNode = DataNode>(props: TreeProps<T> & {
11
11
  ref?: React.ForwardedRef<RcTree<DataNode>> | undefined;
12
12
  }) => React.ReactElement;
@@ -1,4 +1,4 @@
1
1
  import { Upload } from 'antd';
2
- export type { UploadProps, UploadListProps, UploadChangeParam, UploadFile, RcFile, } from 'antd/es/upload/interface';
3
- export type { DraggerProps } from 'antd/es/upload/Dragger';
2
+ export type { DraggerProps } from 'antd/lib/upload/Dragger';
3
+ export type { RcFile, UploadChangeParam, UploadFile, UploadListProps, UploadProps, } from 'antd/lib/upload/interface';
4
4
  export default Upload;
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export type { CollapsePanelProps, CollapseProps } from './Collapse';
19
19
  export { default as ColorPicker } from './ColorPicker';
20
20
  export type { IColorPickerProps } from './ColorPicker';
21
21
  export { default as ConfigProvider } from './ConfigProvider';
22
+ export { default as DataPreviewTable } from './DataPreviewTable';
22
23
  export { default as DatePicker } from './DatePicker';
23
24
  export type { DatePickerProps } from './DatePicker';
24
25
  export { default as Divider } from './Divider';
@@ -53,11 +54,12 @@ export type { PopconfirmProps } from './Popconfirm';
53
54
  export { default as Popover } from './Popover';
54
55
  export type { PopoverProps } from './Popover';
55
56
  export { default as Progress } from './Progress';
56
- export type { ProgressProps } from './Progress';
57
+ export type { IProgressRef, IProps as ProgressProps } from './Progress';
57
58
  export { default as Radio } from './Radio';
58
59
  export type { RadioGroupProps, RadioProps } from './Radio';
59
60
  export { default as Row } from './Row';
60
61
  export type { RowProps } from './Row';
62
+ export { default as ScrollArea } from './ScrollArea';
61
63
  export { default as Select } from './Select';
62
64
  export type { IRefSelectProps as RefSelectProps, ISelectProps as SelectProps, } from './Select';
63
65
  export { default as Skeleton } from './Skeleton';
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ export { default as Col } from "./Col";
11
11
  export { default as Collapse } from "./Collapse";
12
12
  export { default as ColorPicker } from "./ColorPicker";
13
13
  export { default as ConfigProvider } from "./ConfigProvider";
14
+ export { default as DataPreviewTable } from "./DataPreviewTable";
14
15
  export { default as DatePicker } from "./DatePicker";
15
16
  export { default as Divider } from "./Divider";
16
17
  export { default as Drawer } from "./Drawer";
@@ -33,6 +34,7 @@ export { default as Popover } from "./Popover";
33
34
  export { default as Progress } from "./Progress";
34
35
  export { default as Radio } from "./Radio";
35
36
  export { default as Row } from "./Row";
37
+ export { default as ScrollArea } from "./ScrollArea";
36
38
  export { default as Select } from "./Select";
37
39
  export { default as Skeleton } from "./Skeleton";
38
40
  export { default as Space } from "./Space";
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable no-template-curly-in-string */
2
+ import Calendar from 'antd/lib/calendar/locale/en_US';
3
+ import DatePicker from 'antd/lib/date-picker/locale/en_US';
4
+ import TimePicker from 'antd/lib/time-picker/locale/en_US';
2
5
  import Pagination from 'rc-pagination/lib/locale/en_US';
3
- import Calendar from 'antd/es/calendar/locale/en_US';
4
- import DatePicker from 'antd/es/date-picker/locale/en_US';
5
- import TimePicker from 'antd/es/time-picker/locale/en_US';
6
6
  var typeTemplate = '${label} is not a valid ${type}';
7
7
  var localeValues = {
8
8
  locale: 'en',
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable no-template-curly-in-string */
2
+ import Calendar from 'antd/lib/calendar/locale/zh_CN';
3
+ import DatePicker from 'antd/lib/date-picker/locale/zh_CN';
4
+ import TimePicker from 'antd/lib/time-picker/locale/zh_CN';
2
5
  import Pagination from 'rc-pagination/lib/locale/zh_CN';
3
- import Calendar from 'antd/es/calendar/locale/zh_CN';
4
- import DatePicker from 'antd/es/date-picker/locale/zh_CN';
5
- import TimePicker from 'antd/es/time-picker/locale/zh_CN';
6
6
  var typeTemplate = '${label}不是一个有效的${type}';
7
7
  var localeValues = {
8
8
  locale: 'zh-cn',
@@ -1,4 +1,4 @@
1
- import LocaleReceiver, { useLocaleReceiver } from 'antd/es/locale-provider/LocaleReceiver';
1
+ import LocaleReceiver, { useLocaleReceiver } from 'antd/lib/locale-provider/LocaleReceiver';
2
2
  export default LocaleReceiver;
3
- export type { LocaleComponentName, LocaleReceiverProps, } from 'antd/es/locale-provider/LocaleReceiver';
3
+ export type { LocaleComponentName, LocaleReceiverProps, } from 'antd/lib/locale-provider/LocaleReceiver';
4
4
  export { useLocaleReceiver };
@@ -1,3 +1,3 @@
1
- import LocaleReceiver, { useLocaleReceiver } from 'antd/es/locale-provider/LocaleReceiver';
1
+ import LocaleReceiver, { useLocaleReceiver } from 'antd/lib/locale-provider/LocaleReceiver';
2
2
  export default LocaleReceiver;
3
3
  export { useLocaleReceiver };
@@ -1,12 +1,12 @@
1
1
  import type { ValidateMessages } from 'rc-field-form/lib/interface';
2
2
  import * as React from 'react';
3
- import type { PickerLocale as DatePickerLocale } from 'antd/es/date-picker/generatePicker';
4
- import type { TransferLocale as TransferLocaleForEmpty } from 'antd/es/empty';
5
- import type { ModalLocale } from 'antd/es/modal/locale';
6
- import type { PaginationLocale } from 'antd/es/pagination/Pagination';
7
- import type { TableLocale } from 'antd/es/table/interface';
8
- import type { TransferLocale } from 'antd/es/transfer';
9
- import type { UploadLocale } from 'antd/es/upload/interface';
3
+ import type { PickerLocale as DatePickerLocale } from 'antd/lib/date-picker/generatePicker';
4
+ import type { TransferLocale as TransferLocaleForEmpty } from 'antd/lib/empty';
5
+ import type { ModalLocale } from 'antd/lib/modal/locale';
6
+ import type { PaginationLocale } from 'antd/lib/pagination/Pagination';
7
+ import type { TableLocale } from 'antd/lib/table/interface';
8
+ import type { TransferLocale } from 'antd/lib/transfer';
9
+ import type { UploadLocale } from 'antd/lib/upload/interface';
10
10
  interface PopconfirmLocale {
11
11
  okText: string;
12
12
  cancelText: string;
@@ -31,10 +31,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
31
31
  /* eslint-disable @typescript-eslint/no-explicit-any */
32
32
 
33
33
  /* eslint-disable @typescript-eslint/naming-convention */
34
+ import warning from 'antd/lib/_util/warning';
34
35
  import memoizeOne from 'memoize-one';
35
36
  import * as React from 'react';
36
- import warning from 'antd/es/_util/warning';
37
- import { changeConfirmLocale } from 'antd/es/modal/locale';
37
+ import { changeConfirmLocale } from 'antd/lib/modal/locale';
38
38
  import LocaleContext from "./context";
39
39
  export var ANT_MARK = 'internalMark';
40
40
 
@@ -1,4 +1,4 @@
1
- import type { ArgsProps } from 'antd/es/notification/interface';
1
+ import type { ArgsProps } from 'antd/lib/notification/interface';
2
2
  declare const notification: {
3
3
  open: (config: ArgsProps) => void;
4
4
  success: (config: ArgsProps) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -54,6 +54,7 @@
54
54
  "@aloudata/icons-react": "^0.2.2",
55
55
  "@aloudata/icons-svg": "0.1.7",
56
56
  "@ant-design/cssinjs": "^1.9.1",
57
+ "@radix-ui/react-scroll-area": "^1.0.4",
57
58
  "antd": "5.4.3",
58
59
  "compare-func": "^2.0.0",
59
60
  "conventional-changelog": "^3.1.25",