@sheinx/base 3.8.0-beta.21 → 3.8.0-beta.23

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 (71) hide show
  1. package/cjs/config/index.d.ts +23 -0
  2. package/cjs/config/index.d.ts.map +1 -1
  3. package/cjs/config/index.js +7 -0
  4. package/cjs/empty/empty.d.ts.map +1 -1
  5. package/cjs/empty/empty.js +10 -5
  6. package/cjs/empty/empty.type.d.ts +4 -4
  7. package/cjs/icons/config.d.ts +3 -0
  8. package/cjs/icons/config.d.ts.map +1 -1
  9. package/cjs/icons/config.js +3 -0
  10. package/cjs/icons/icons.d.ts +1 -0
  11. package/cjs/icons/icons.d.ts.map +1 -1
  12. package/cjs/icons/icons.js +150 -1
  13. package/cjs/modal/modal-content.js +2 -1
  14. package/cjs/popover/popover.d.ts.map +1 -1
  15. package/cjs/popover/popover.js +11 -2
  16. package/cjs/radio/group-context.d.ts.map +1 -1
  17. package/cjs/radio/group-context.js +1 -0
  18. package/cjs/radio/radio-group.d.ts.map +1 -1
  19. package/cjs/radio/radio-group.js +5 -1
  20. package/cjs/radio/simple-radio.d.ts.map +1 -1
  21. package/cjs/radio/simple-radio.js +2 -1
  22. package/cjs/select/select.type.d.ts +190 -127
  23. package/cjs/select/select.type.d.ts.map +1 -1
  24. package/cjs/table/table.d.ts.map +1 -1
  25. package/cjs/table/table.js +3 -1
  26. package/cjs/table/tbody.d.ts.map +1 -1
  27. package/cjs/table/tbody.js +13 -1
  28. package/cjs/table/tbody.type.d.ts +5 -0
  29. package/cjs/table/tbody.type.d.ts.map +1 -1
  30. package/cjs/table/tr.d.ts +1 -0
  31. package/cjs/table/tr.d.ts.map +1 -1
  32. package/cjs/table/tr.js +5 -4
  33. package/esm/config/index.d.ts +23 -0
  34. package/esm/config/index.d.ts.map +1 -1
  35. package/esm/config/index.js +8 -0
  36. package/esm/empty/empty.d.ts.map +1 -1
  37. package/esm/empty/empty.js +10 -5
  38. package/esm/empty/empty.type.d.ts +4 -4
  39. package/esm/icons/config.d.ts +3 -0
  40. package/esm/icons/config.d.ts.map +1 -1
  41. package/esm/icons/config.js +3 -0
  42. package/esm/icons/icons.d.ts +1 -0
  43. package/esm/icons/icons.d.ts.map +1 -1
  44. package/esm/icons/icons.js +150 -1
  45. package/esm/modal/modal-content.js +2 -1
  46. package/esm/popover/popover.d.ts.map +1 -1
  47. package/esm/popover/popover.js +11 -2
  48. package/esm/radio/group-context.d.ts.map +1 -1
  49. package/esm/radio/group-context.js +1 -0
  50. package/esm/radio/radio-group.d.ts.map +1 -1
  51. package/esm/radio/radio-group.js +5 -2
  52. package/esm/radio/simple-radio.d.ts.map +1 -1
  53. package/esm/radio/simple-radio.js +2 -1
  54. package/esm/select/select.type.d.ts +190 -127
  55. package/esm/select/select.type.d.ts.map +1 -1
  56. package/esm/table/table.d.ts.map +1 -1
  57. package/esm/table/table.js +3 -1
  58. package/esm/table/tbody.d.ts.map +1 -1
  59. package/esm/table/tbody.js +13 -1
  60. package/esm/table/tbody.type.d.ts +5 -0
  61. package/esm/table/tbody.type.d.ts.map +1 -1
  62. package/esm/table/tr.d.ts +1 -0
  63. package/esm/table/tr.d.ts.map +1 -1
  64. package/esm/table/tr.js +5 -4
  65. package/package.json +2 -2
  66. package/cjs/empty/empty-image.d.ts +0 -2
  67. package/cjs/empty/empty-image.d.ts.map +0 -1
  68. package/cjs/empty/empty-image.js +0 -157
  69. package/esm/empty/empty-image.d.ts +0 -2
  70. package/esm/empty/empty-image.d.ts.map +0 -1
  71. package/esm/empty/empty-image.js +0 -152
@@ -559,7 +559,9 @@ var _default = exports.default = function _default(props) {
559
559
  currentIndex: virtualInfo.startIndex,
560
560
  data: virtualInfo.data,
561
561
  setRowHeight: virtualInfo.setRowHeight,
562
- scrolling: scrolling
562
+ scrolling: scrolling,
563
+ virtualRowSpanInfo: virtualInfo.rowSpanInfo,
564
+ fullData: treeData
563
565
  }))]
564
566
  }), showFoot ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
565
567
  className: footWrapperClass,
@@ -1 +1 @@
1
- {"version":3,"file":"tbody.d.ts","sourceRoot":"","sources":["tbody.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;gCAEnB,UAAU;AAAjC,wBAsFE"}
1
+ {"version":3,"file":"tbody.d.ts","sourceRoot":"","sources":["tbody.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;gCAEnB,UAAU;AAAjC,wBAmGE"}
@@ -41,6 +41,17 @@ var _default = exports.default = function _default(props) {
41
41
  var rowIndex = index + currentIndex;
42
42
  var originKey = _hooks.util.getKey(props.keygen, item, rowIndex);
43
43
  var trRenderKey = props.loader || (_props$rowEvents = props.rowEvents) !== null && _props$rowEvents !== void 0 && _props$rowEvents.draggable ? originKey : "".concat(originKey, "-").concat(rowIndex);
44
+
45
+ // 在虚拟列表模式下,使用 virtualRowSpanInfo 来获取正确的选择数据
46
+ var selectData = item;
47
+ if (props.virtualRowSpanInfo && props.fullData) {
48
+ // rowSpanIndexArray[rowIndex] 表示第 rowIndex 行所属合并组的起始行索引
49
+ var selectIndex = props.virtualRowSpanInfo.rowSpanIndexArray[rowIndex];
50
+ selectData = props.fullData[selectIndex];
51
+ } else {
52
+ // 非虚拟列表模式使用原有逻辑
53
+ selectData = rowSelectMergeStartData[index];
54
+ }
44
55
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tr.default, {
45
56
  originKey: originKey,
46
57
  row: rowData[index],
@@ -68,7 +79,8 @@ var _default = exports.default = function _default(props) {
68
79
  striped: props.striped,
69
80
  radio: props.radio,
70
81
  hover: hover,
71
- isSelect: props.datum.check(rowSelectMergeStartData[index]),
82
+ isSelect: props.datum.check(selectData),
83
+ selectData: selectData,
72
84
  handleCellHover: handleCellHover
73
85
  // to update
74
86
  ,
@@ -19,5 +19,10 @@ export interface TbodyProps extends Pick<OptionalToRequired<TableProps<any, any>
19
19
  bodyScrollWidth?: number;
20
20
  resizeFlag?: number;
21
21
  scrolling?: boolean;
22
+ virtualRowSpanInfo?: {
23
+ rowSpanIndexArray: number[];
24
+ maxRowSpan: number;
25
+ } | null;
26
+ fullData?: any[];
22
27
  }
23
28
  //# sourceMappingURL=tbody.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tbody.type.d.ts","sourceRoot":"","sources":["tbody.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAClE,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAE/D,MAAM,WAAW,UACf,SAAQ,IAAI,CACV,kBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EACtC,MAAM,GACN,UAAU,GACV,cAAc,GACd,YAAY,GACZ,QAAQ,GACR,iBAAiB,GACjB,YAAY,GACZ,gBAAgB,GAChB,QAAQ,GACR,SAAS,GACT,OAAO,GACP,YAAY,GACZ,cAAc,GACd,WAAW,GACX,UAAU,GACV,OAAO,GACP,cAAc,GACd,aAAa,GACb,SAAS,CACZ;IACD,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;IAClC,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC1C,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC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E,GAAG,EAAE,CAAC;IACZ,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC1C,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;IACjD,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAChC,eAAe,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAClD,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,EAAE;QACnB,iBAAiB,EAAE,MAAM,EAAE,CAAC;QAC5B,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,IAAI,CAAC;IACT,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;CAClB"}
package/cjs/table/tr.d.ts CHANGED
@@ -23,6 +23,7 @@ interface TrProps extends Pick<TbodyProps, 'jssStyle' | 'rowClassName' | 'datum'
23
23
  isSelect: boolean;
24
24
  disabled?: boolean;
25
25
  scrolling?: boolean;
26
+ selectData?: any;
26
27
  }
27
28
  declare const Tr: (props: TrProps) => import("react/jsx-runtime").JSX.Element;
28
29
  export default Tr;
@@ -1 +1 @@
1
- {"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["tr.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAQvD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;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AC;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACtD,UAAU,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB;AAED,QAAA,MAAM,EAAE,UAAW,OAAO,4CAsazB,CAAC;AAEF,eAAe,EAAE,CAAC"}
package/cjs/table/tr.js CHANGED
@@ -211,6 +211,7 @@ var Tr = function Tr(props) {
211
211
  return expandInstance;
212
212
  }
213
213
  if (col.type === 'checkbox') {
214
+ var selectData = props.selectData || data;
214
215
  var instance = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
215
216
  className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.iconWrapper,
216
217
  children: props.radio ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_radio.default, {
@@ -222,9 +223,9 @@ var Tr = function Tr(props) {
222
223
  disabled: props.disabled,
223
224
  onChange: function onChange(value) {
224
225
  if (value) {
225
- props.datum.add(data);
226
+ props.datum.add(selectData);
226
227
  } else {
227
- props.datum.remove(data);
228
+ props.datum.remove(selectData);
228
229
  }
229
230
  }
230
231
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.default, {
@@ -236,11 +237,11 @@ var Tr = function Tr(props) {
236
237
  checked: props.isSelect,
237
238
  onChange: function onChange(_value, check) {
238
239
  if (check) {
239
- props.datum.add(data, props.treeCheckAll ? {
240
+ props.datum.add(selectData, props.treeCheckAll ? {
240
241
  childrenKey: props.treeColumnsName
241
242
  } : undefined);
242
243
  } else {
243
- props.datum.remove(data, props.treeCheckAll ? {
244
+ props.datum.remove(selectData, props.treeCheckAll ? {
244
245
  childrenKey: props.treeColumnsName
245
246
  } : undefined);
246
247
  }
@@ -11,6 +11,23 @@ export type SpinConfig = SpinNameType | {
11
11
  type TooltipConfig = {
12
12
  persistent?: boolean;
13
13
  };
14
+ /**
15
+ * @en Global configuration for Empty component
16
+ * @cn Empty组件的全局配置
17
+ * @version 3.8.0
18
+ */
19
+ type EmptyConfig = {
20
+ /**
21
+ * @en Global default icon for Empty component
22
+ * @cn Empty组件的全局默认图标
23
+ */
24
+ icon?: React.ReactNode;
25
+ /**
26
+ * @en Global default description for Empty component
27
+ * @cn Empty组件的全局默认描述
28
+ */
29
+ description?: React.ReactNode | boolean;
30
+ };
14
31
  export interface ConfigOption {
15
32
  prefix: string;
16
33
  locale: LanType;
@@ -18,6 +35,12 @@ export interface ConfigOption {
18
35
  trim?: boolean;
19
36
  spin?: SpinConfig;
20
37
  tooltip?: TooltipConfig;
38
+ /**
39
+ * @en Global configuration for Empty component
40
+ * @cn Empty组件的全局配置
41
+ * @version 3.8.0
42
+ */
43
+ empty?: EmptyConfig;
21
44
  direction: Direction;
22
45
  popupContainer?: HTMLElement | null | (() => HTMLElement | null);
23
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,KAAK,aAAa,GAAG;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EA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MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,CAAC;CAClE;AAGD,eAAO,IAAI,MAAM,EAAE,YAUlB,CAAC;AAQF,wBAAgB,mBAAmB,uBAWlC;AAED,eAAO,MAAM,SAAS,oBAErB,CAAC;AAEF,eAAO,MAAM,SAAS,WAAY,QAAQ,YAAY,CAAC,SAQtD,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
@@ -9,6 +9,13 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  import { util } from '@sheinx/hooks';
10
10
  import { create } from '@shined/reactive';
11
11
  import { getSnapshot } from '@shined/reactive/vanilla';
12
+
13
+ /**
14
+ * @en Global configuration for Empty component
15
+ * @cn Empty组件的全局配置
16
+ * @version 3.8.0
17
+ */
18
+
12
19
  var processEnv = typeof process !== 'undefined' ? (_process = process) === null || _process === void 0 ? void 0 : _process.env : {};
13
20
  export var config = {
14
21
  prefix: 'soui',
@@ -17,6 +24,7 @@ export var config = {
17
24
  trim: undefined,
18
25
  spin: 'ring',
19
26
  tooltip: undefined,
27
+ empty: undefined,
20
28
  direction: 'ltr',
21
29
  popupContainer: null
22
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["empty.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,QAAA,MAAM,KAAK,UAAW,UAAU,4CA4C/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["empty.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,QAAA,MAAM,KAAK,UAAW,UAAU,4CAiD/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -9,7 +9,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
9
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
10
  import React from 'react';
11
11
  import classNames from 'classnames';
12
- import { renderNoData } from "./empty-image";
12
+ import Icons from "../icons";
13
13
  import { getLocale, useConfig } from "../config";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -23,7 +23,8 @@ var Empty = function Empty(props) {
23
23
  description = props.description,
24
24
  rest = _objectWithoutProperties(props, _excluded);
25
25
  var _useConfig = useConfig(),
26
- locale = _useConfig.locale;
26
+ locale = _useConfig.locale,
27
+ empty = _useConfig.empty;
27
28
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$empty = jssStyle.empty) === null || _jssStyle$empty === void 0 ? void 0 : _jssStyle$empty.call(jssStyle);
28
29
  var rootClass = classNames(styles === null || styles === void 0 ? void 0 : styles.rootClass, styles === null || styles === void 0 ? void 0 : styles.empty, className);
29
30
  var wrapperClass = classNames(styles === null || styles === void 0 ? void 0 : styles.wrapper);
@@ -46,16 +47,20 @@ var Empty = function Empty(props) {
46
47
  }
47
48
  return /*#__PURE__*/_jsx("div", {
48
49
  className: styles === null || styles === void 0 ? void 0 : styles.image,
49
- children: icon || renderNoData()
50
+ children: icon || (empty === null || empty === void 0 ? void 0 : empty.icon) || Icons.empty.NoData
50
51
  });
51
52
  };
52
53
  var renderDescription = function renderDescription() {
53
- if (description === false) {
54
+ // 确定最终使用的description值,优先级:props.description > 全局配置description > 默认locale文本
55
+ var finalDescription = description !== undefined ? description : (empty === null || empty === void 0 ? void 0 : empty.description) !== undefined ? empty === null || empty === void 0 ? void 0 : empty.description : getLocale(locale, 'noData');
56
+
57
+ // 如果最终确定的description值为false,则不显示描述
58
+ if (finalDescription === false) {
54
59
  return null;
55
60
  }
56
61
  return /*#__PURE__*/_jsx("div", {
57
62
  className: styles === null || styles === void 0 ? void 0 : styles.description,
58
- children: description || getLocale(locale, 'noData')
63
+ children: finalDescription
59
64
  });
60
65
  };
61
66
  return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
@@ -17,13 +17,13 @@ export interface EmptyProps extends Pick<CommonType, 'className' | 'style'>, Rea
17
17
  */
18
18
  imgSrc?: string;
19
19
  /**
20
- * @en Empty state icon
21
- * @cn 空状态图标
20
+ * @en Empty state icon. Enhanced in v3.8.0 to support global configuration via setConfig
21
+ * @cn 空状态图标。3.8.0版本增强,支持通过setConfig进行全局配置
22
22
  */
23
23
  icon?: React.ReactNode;
24
24
  /**
25
- * @en Description, if false, the description will not be displayed
26
- * @cn 描述,若为false则不显示描述
25
+ * @en Description, if false, the description will not be displayed. Enhanced in v3.8.0 to support global configuration via setConfig
26
+ * @cn 描述,若为false则不显示描述。3.8.0版本增强,支持通过setConfig进行全局配置
27
27
  */
28
28
  description?: React.ReactNode | boolean;
29
29
  }
@@ -43,6 +43,9 @@ declare const config: {
43
43
  dropdown: {
44
44
  DropdownArrow: import("react/jsx-runtime").JSX.Element;
45
45
  };
46
+ empty: {
47
+ NoData: import("react/jsx-runtime").JSX.Element;
48
+ };
46
49
  editableArea: {
47
50
  Close: import("react/jsx-runtime").JSX.Element;
48
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.tsx"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0JX,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/B,CAAC;AACF,KAAK,cAAc,GAAG,WAAW,CAAC,OAAO,MAAM,CAAC,CAAC;AAGjD,eAAO,MAAM,QAAQ,cAAe,cAAc,SAYjD,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.tsx"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6JX,CAAC;AAEF,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/B,CAAC;AACF,KAAK,cAAc,GAAG,WAAW,CAAC,OAAO,MAAM,CAAC,CAAC;AAGjD,eAAO,MAAM,QAAQ,cAAe,cAAc,SAYjD,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -50,6 +50,9 @@ var config = {
50
50
  dropdown: {
51
51
  DropdownArrow: icons.ArrowDown
52
52
  },
53
+ empty: {
54
+ NoData: icons.EmptyNoData
55
+ },
53
56
  editableArea: {
54
57
  Close: icons.CloseFill
55
58
  },
@@ -39,6 +39,7 @@ declare const Icons: {
39
39
  StarFill: import("react/jsx-runtime").JSX.Element;
40
40
  Link: import("react/jsx-runtime").JSX.Element;
41
41
  Loading: import("react/jsx-runtime").JSX.Element;
42
+ EmptyNoData: import("react/jsx-runtime").JSX.Element;
42
43
  };
43
44
  export default Icons;
44
45
  //# sourceMappingURL=icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"AAgSA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDV,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"AAyaA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDV,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -218,6 +218,154 @@ var link = ['M8.83231 20.7322C7.27024 22.2943 4.73759 22.2943 3.17546 20.7322C1.
218
218
  var filter = /*#__PURE__*/_jsx("path", {
219
219
  d: "M19.9653 2.10633C20.5175 2.10633 20.9652 2.55404 20.9652 3.10633C20.9652 3.65861 20.5175 4.10633 19.9653 4.10633H19.6834L14.9666 11.3709V19.8936C14.9666 20.9981 14.0712 21.8936 12.9666 21.8936H10.9666C9.86204 21.8936 8.96662 20.9981 8.96662 19.8936V11.3709L4.35408 4.10632L4.03906 4.10632C3.48677 4.10632 3.03906 3.65861 3.03906 3.10632C3.03906 2.55404 3.48677 2.10632 4.03906 2.10632L19.9653 2.10633ZM6.75776 4.10632L10.8119 10.5206C10.913 10.6804 10.9666 10.8657 10.9666 11.0548V18.8312C10.9666 19.3835 11.4143 19.8312 11.9666 19.8312C12.5189 19.8312 12.9666 19.3835 12.9666 18.8312V11.0609C12.9666 10.868 13.0224 10.6792 13.1273 10.5172L17.2797 4.10633L6.75776 4.10632Z"
220
220
  });
221
+ var emptyNoData = /*#__PURE__*/_jsxs("svg", {
222
+ width: "100",
223
+ height: "75",
224
+ viewBox: "0 0 100 75",
225
+ fill: "none",
226
+ xmlns: "http://www.w3.org/2000/svg",
227
+ children: [/*#__PURE__*/_jsxs("g", {
228
+ clipPath: "url(#clip0_4044_10434)",
229
+ children: [/*#__PURE__*/_jsx("path", {
230
+ d: "M100 75C100 63.3607 77.6144 53.9257 50 53.9257C22.3857 53.9257 0 63.3607 0 75H100Z",
231
+ fill: "url(#paint0_linear_4044_10434)"
232
+ }), /*#__PURE__*/_jsx("g", {
233
+ opacity: "0.3",
234
+ filter: "url(#filter0_f_4044_10434)",
235
+ children: /*#__PURE__*/_jsx("path", {
236
+ d: "M50.3087 70.0413C69.5706 70.0413 85.185 68.2375 85.185 66.0125C85.185 63.7875 69.5706 61.9835 50.3087 61.9835C31.0469 61.9835 15.4321 63.7875 15.4321 66.0125C15.4321 68.2375 31.0469 70.0413 50.3087 70.0413Z",
237
+ fill: "#979EB0"
238
+ })
239
+ }), /*#__PURE__*/_jsx("path", {
240
+ d: "M22.6082 23.6395C22.782 23.2127 23.1957 22.9338 23.6548 22.9338H75.7168C76.1718 22.9338 76.5818 23.2071 76.7593 23.6275L82.9493 38.3482H16.6184L22.6082 23.6395Z",
241
+ fill: "#CCCFD7"
242
+ }), /*#__PURE__*/_jsx("path", {
243
+ d: "M75.9819 23.9172V37.2382H81.2882L75.9819 23.9172Z",
244
+ fill: "#999DA8"
245
+ }), /*#__PURE__*/_jsx("path", {
246
+ d: "M18.877 37.0161H81.0701C82.6314 37.0161 83.897 38.2871 83.897 39.8547V61.7805C83.897 64.2888 81.872 66.3225 79.3739 66.3225H20.5732C18.0752 66.3225 16.05 64.2888 16.05 61.7805V39.8547C16.05 38.2871 17.3157 37.0161 18.877 37.0161Z",
247
+ fill: "#E8EBF0"
248
+ }), /*#__PURE__*/_jsx("g", {
249
+ filter: "url(#filter1_d_4044_10434)",
250
+ children: /*#__PURE__*/_jsx("path", {
251
+ d: "M16.0493 42.3192C16.0493 39.8108 16.0019 37.715 20.573 37.7774H79.3737C83.5612 37.7774 83.8968 39.8108 83.8968 42.3192V61.3998C83.8968 63.9087 81.8718 65.9419 79.3737 65.9419H20.573C18.075 65.9419 16.0493 63.9087 16.0493 61.3998V42.3192Z",
252
+ fill: "black"
253
+ })
254
+ }), /*#__PURE__*/_jsx("path", {
255
+ d: "M16.0493 42.3192C16.0493 39.8108 16.0019 37.715 20.573 37.7774H79.3737C83.5612 37.7774 83.8968 39.8108 83.8968 42.3192V61.3998C83.8968 63.9087 81.8718 65.9419 79.3737 65.9419H20.573C18.075 65.9419 16.0493 63.9087 16.0493 61.3998V42.3192Z",
256
+ fill: "#F4F5F8"
257
+ }), /*#__PURE__*/_jsx("path", {
258
+ d: "M23.4412 23.8855V37.0162H18.3242L23.4412 23.8855Z",
259
+ fill: "#999DA8"
260
+ }), /*#__PURE__*/_jsx("path", {
261
+ d: "M60.3971 50.7178H39.5502C38.0849 50.7178 36.897 51.9106 36.897 53.382C36.897 54.8534 38.0849 56.0462 39.5502 56.0462H60.3971C61.8625 56.0462 63.0501 54.8534 63.0501 53.382C63.0501 51.9106 61.8625 50.7178 60.3971 50.7178Z",
262
+ fill: "#666C7C"
263
+ }), /*#__PURE__*/_jsx("path", {
264
+ d: "M60.3971 49.9565H39.5502C38.0849 49.9565 36.897 51.1494 36.897 52.6208C36.897 54.0922 38.0849 55.285 39.5502 55.285H60.3971C61.8625 55.285 63.0501 54.0922 63.0501 52.6208C63.0501 51.1494 61.8625 49.9565 60.3971 49.9565Z",
265
+ fill: "#999DA8"
266
+ }), /*#__PURE__*/_jsx("path", {
267
+ fillRule: "evenodd",
268
+ clipRule: "evenodd",
269
+ d: "M46.041 3.14062C42.6319 3.14062 39.8682 5.91575 39.8682 9.33899V11.4859C39.8682 14.9092 42.6319 17.6842 46.041 17.6842H54.8002C58.2093 17.6842 60.9731 14.9092 60.9731 11.4859V9.33899C60.9731 5.91575 58.2093 3.14062 54.8002 3.14062H46.041ZM47.3169 21.0086L49.386 17.6842H45.2478L47.3169 21.0086Z",
270
+ fill: "#E8EBF0"
271
+ }), /*#__PURE__*/_jsx("path", {
272
+ d: "M45.6834 8.54285L47.4941 11.6922H43.8726L45.6834 8.54285Z",
273
+ fill: "#999DA8"
274
+ }), /*#__PURE__*/_jsx("path", {
275
+ d: "M52.304 8.54285H49.1677V11.6921H52.304V8.54285Z",
276
+ fill: "#999DA8"
277
+ }), /*#__PURE__*/_jsx("path", {
278
+ d: "M55.6802 11.6919C56.5463 11.6919 57.2484 10.9869 57.2484 10.1172C57.2484 9.2476 56.5463 8.5426 55.6802 8.5426C54.8142 8.5426 54.1121 9.2476 54.1121 10.1172C54.1121 10.9869 54.8142 11.6919 55.6802 11.6919Z",
279
+ fill: "#999DA8"
280
+ }), /*#__PURE__*/_jsx("path", {
281
+ d: "M67.7256 5.8507C66.5081 6.69694 63.5181 6.751 62.3457 7.09731L63.5875 5.64293C64.415 4.6041 64.6631 4.10547 65.6562 2.11091C66.6493 0.116362 69.3118 -0.105256 70.415 0.0332553C69.7943 1.27985 70.415 3.98081 67.7256 5.8507Z",
282
+ fill: "#E8EBF0"
283
+ }), /*#__PURE__*/_jsx("path", {
284
+ d: "M46.257 34.8904C45.3444 35.1307 43.5421 34.5087 42.7649 34.4595L43.824 33.8603C44.5451 33.4193 44.802 33.175 45.8298 32.198C46.8574 31.221 48.4998 31.6709 49.1305 31.9953C48.4883 32.606 48.2737 34.3593 46.257 34.8904Z",
285
+ fill: "#E8EBF0"
286
+ }), /*#__PURE__*/_jsx("path", {
287
+ d: "M37.262 32.7723C37.13 32.5427 37.2462 32.2485 37.4982 32.1696C39.7646 31.4593 49.3015 28.2658 55.6537 22.9713C62.0347 17.653 67.6725 11.576 69.1256 9.9791C69.3069 9.77991 69.6263 9.81841 69.76 10.0521C69.845 10.1989 69.8294 10.3803 69.7169 10.507C68.6225 11.7406 62.8044 18.1953 56.0675 23.6911C48.7371 29.6708 39.4667 32.4671 37.7105 32.9602C37.5349 33.0096 37.3532 32.9308 37.262 32.7723Z",
288
+ fill: "#E8EBF0"
289
+ }), /*#__PURE__*/_jsx("path", {
290
+ d: "M26.0283 27.1925C25.977 26.9505 26.1514 26.7154 26.396 26.6852C27.3291 26.5701 29.6586 26.1971 33.309 25.0577C37.011 23.9021 40.6908 21.2137 41.9723 20.2199C42.1914 20.05 42.5167 20.1675 42.5743 20.4394C42.6023 20.572 42.5585 20.7071 42.454 20.793C41.598 21.497 37.5626 24.6932 33.4811 25.8705C29.5763 26.9969 27.2876 27.3842 26.4592 27.5011C26.2561 27.5298 26.0709 27.394 26.0283 27.1925Z",
291
+ fill: "#E8EBF0"
292
+ })]
293
+ }), /*#__PURE__*/_jsxs("defs", {
294
+ children: [/*#__PURE__*/_jsxs("filter", {
295
+ id: "filter0_f_4044_10434",
296
+ x: "9.43213",
297
+ y: "55.9835",
298
+ width: "81.7529",
299
+ height: "20.0577",
300
+ filterUnits: "userSpaceOnUse",
301
+ colorInterpolationFilters: "sRGB",
302
+ children: [/*#__PURE__*/_jsx("feFlood", {
303
+ floodOpacity: "0",
304
+ result: "BackgroundImageFix"
305
+ }), /*#__PURE__*/_jsx("feBlend", {
306
+ mode: "normal",
307
+ in: "SourceGraphic",
308
+ in2: "BackgroundImageFix",
309
+ result: "shape"
310
+ }), /*#__PURE__*/_jsx("feGaussianBlur", {
311
+ stdDeviation: "3",
312
+ result: "effect1_foregroundBlur_4044_10434"
313
+ })]
314
+ }), /*#__PURE__*/_jsxs("filter", {
315
+ id: "filter1_d_4044_10434",
316
+ x: "16.0493",
317
+ y: "37.776",
318
+ width: "67.8474",
319
+ height: "30.1659",
320
+ filterUnits: "userSpaceOnUse",
321
+ colorInterpolationFilters: "sRGB",
322
+ children: [/*#__PURE__*/_jsx("feFlood", {
323
+ floodOpacity: "0",
324
+ result: "BackgroundImageFix"
325
+ }), /*#__PURE__*/_jsx("feColorMatrix", {
326
+ in: "SourceAlpha",
327
+ type: "matrix",
328
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
329
+ result: "hardAlpha"
330
+ }), /*#__PURE__*/_jsx("feOffset", {
331
+ dy: "2"
332
+ }), /*#__PURE__*/_jsx("feColorMatrix", {
333
+ type: "matrix",
334
+ values: "0 0 0 0 0.803922 0 0 0 0 0.811765 0 0 0 0 0.843137 0 0 0 1 0"
335
+ }), /*#__PURE__*/_jsx("feBlend", {
336
+ mode: "normal",
337
+ in2: "BackgroundImageFix",
338
+ result: "effect1_dropShadow_4044_10434"
339
+ }), /*#__PURE__*/_jsx("feBlend", {
340
+ mode: "normal",
341
+ in: "SourceGraphic",
342
+ in2: "effect1_dropShadow_4044_10434",
343
+ result: "shape"
344
+ })]
345
+ }), /*#__PURE__*/_jsxs("linearGradient", {
346
+ id: "paint0_linear_4044_10434",
347
+ x1: "50",
348
+ y1: "53.9257",
349
+ x2: "50",
350
+ y2: "75",
351
+ gradientUnits: "userSpaceOnUse",
352
+ children: [/*#__PURE__*/_jsx("stop", {
353
+ stopColor: "#E9EBEF"
354
+ }), /*#__PURE__*/_jsx("stop", {
355
+ offset: "1",
356
+ stopColor: "#E9EBEF",
357
+ stopOpacity: "0"
358
+ })]
359
+ }), /*#__PURE__*/_jsx("clipPath", {
360
+ id: "clip0_4044_10434",
361
+ children: /*#__PURE__*/_jsx("rect", {
362
+ width: "100",
363
+ height: "75",
364
+ fill: "white"
365
+ })
366
+ })]
367
+ })]
368
+ });
221
369
  var Icons = {
222
370
  SortAsc: SortAsc,
223
371
  SortDesc: SortDesc,
@@ -258,6 +406,7 @@ var Icons = {
258
406
  RecoverCircle: icon(recoverCircle),
259
407
  StarFill: icon(pcStarFill),
260
408
  Link: icon(link),
261
- Loading: icon(loading)
409
+ Loading: icon(loading),
410
+ EmptyNoData: emptyNoData
262
411
  };
263
412
  export default Icons;
@@ -336,7 +336,8 @@ var Modal = function Modal(props) {
336
336
  onAnimationEnd: handleAnimationEnd,
337
337
  style: {
338
338
  background: props.maskBackground,
339
- zIndex: props.zIndex
339
+ zIndex: props.zIndex,
340
+ display: !visible && !animation ? 'none' : undefined
340
341
  },
341
342
  children: /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
342
343
  className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.mask
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,QAAA,MAAM,OAAO,UAAW,YAAY,wDA+LnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,QAAA,MAAM,OAAO,UAAW,YAAY,wDAsMnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -39,7 +39,8 @@ var Popover = function Popover(props) {
39
39
  _props$zIndex = props.zIndex,
40
40
  zIndex = _props$zIndex === void 0 ? 1060 : _props$zIndex;
41
41
  var _React$useRef = React.useRef({
42
- rendered: false
42
+ rendered: false,
43
+ hasOpened: false
43
44
  }),
44
45
  context = _React$useRef.current;
45
46
  var config = useConfig();
@@ -153,8 +154,16 @@ var Popover = function Popover(props) {
153
154
  });
154
155
  }
155
156
  context.rendered = true;
156
- var childrened = util.isFunc(children) ? children(closePop) : children;
157
+
158
+ // Track if popover has ever been opened
159
+ if (open && !context.hasOpened) {
160
+ context.hasOpened = true;
161
+ }
162
+
163
+ // Only execute functional children after popover has been opened at least once
164
+ var childrened = util.isFunc(children) ? context.hasOpened ? children(closePop) : null : children;
157
165
  var containerStyle = {
166
+ display: open ? undefined : 'none',
158
167
  borderColor: props.border,
159
168
  backgroundColor: props.background
160
169
  };
@@ -1 +1 @@
1
- {"version":3,"file":"group-context.d.ts","sourceRoot":"","sources":["group-context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,YAAY,qCAAgC,CAAC;AAEnD,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"group-context.d.ts","sourceRoot":"","sources":["group-context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,YAAY,qCAAgC,CAAC;AAInD,eAAe,YAAY,CAAC"}
@@ -2,4 +2,5 @@
2
2
 
3
3
  import { createContext } from 'react';
4
4
  var groupContext = /*#__PURE__*/createContext({});
5
+ groupContext.displayName = 'RadioGroupContext';
5
6
  export default groupContext;
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAarD,QAAA,MAAM,KAAK,wGA+HV,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAarD,QAAA,MAAM,KAAK,wGAgIV,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -14,7 +14,6 @@ import Button from "../button/button";
14
14
  import { FormFieldContext } from "../form/form-field-context";
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
16
  import { jsxs as _jsxs } from "react/jsx-runtime";
17
- import { Fragment as _Fragment } from "react/jsx-runtime";
18
17
  var defaultFormat = function defaultFormat(d) {
19
18
  return d;
20
19
  };
@@ -116,7 +115,11 @@ var Group = function Group(props0) {
116
115
  var Radios = props.data === undefined ? /*#__PURE__*/_jsx(GroupContext.Provider, {
117
116
  value: providerValue,
118
117
  children: children
119
- }) : /*#__PURE__*/_jsxs(_Fragment, {
118
+ }) :
119
+ /*#__PURE__*/
120
+ // 传一个空的providerValue目的是为了避免父级Radio向下传递的GroupContext.Consumer影响
121
+ _jsxs(GroupContext.Provider, {
122
+ value: {},
120
123
  children: [props.data.map(function (d, i) {
121
124
  return /*#__PURE__*/_jsx(Radio, {
122
125
  jssStyle: jssStyle,
@@ -1 +1 @@
1
- {"version":3,"file":"simple-radio.d.ts","sourceRoot":"","sources":["simple-radio.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhD,QAAA,MAAM,KAAK,UAAW,gBAAgB,4CAoDrC,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"simple-radio.d.ts","sourceRoot":"","sources":["simple-radio.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhD,QAAA,MAAM,KAAK,UAAW,gBAAgB,4CAqDrC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -37,7 +37,8 @@ var Radio = function Radio(props) {
37
37
  var inputProps = getInputProps();
38
38
  var rootProps = getRootProps({
39
39
  className: rootClass,
40
- style: style
40
+ style: style,
41
+ needStopPropagation: true
41
42
  });
42
43
  var indicatorProps = getIndicatorProps();
43
44
  var simpleRadio = /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({