@pisell/materials 1.0.475 → 1.0.477

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 (39) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +4 -4
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +15 -15
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +15 -15
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +25 -12
  12. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +14 -3
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  14. package/es/components/dataSourceComponents/fields/Input.Phone/index.d.ts +1 -1
  15. package/es/components/dataSourceComponents/fields/index.d.ts +5 -5
  16. package/es/components/walletCard/index.js +7 -5
  17. package/es/components/walletCard/index.less +39 -0
  18. package/es/locales/en-US.d.ts +2 -0
  19. package/es/locales/en-US.js +4 -1
  20. package/es/locales/zh-CN.d.ts +2 -0
  21. package/es/locales/zh-CN.js +4 -1
  22. package/es/locales/zh-TW.d.ts +2 -0
  23. package/es/locales/zh-TW.js +4 -1
  24. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +25 -12
  25. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +18 -2
  26. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  27. package/lib/components/dataSourceComponents/fields/Input.Phone/index.d.ts +1 -1
  28. package/lib/components/dataSourceComponents/fields/index.d.ts +5 -5
  29. package/lib/components/walletCard/index.js +6 -4
  30. package/lib/components/walletCard/index.less +39 -0
  31. package/lib/locales/en-US.d.ts +2 -0
  32. package/lib/locales/en-US.js +4 -1
  33. package/lib/locales/zh-CN.d.ts +2 -0
  34. package/lib/locales/zh-CN.js +4 -1
  35. package/lib/locales/zh-TW.d.ts +2 -0
  36. package/lib/locales/zh-TW.js +4 -1
  37. package/lowcode/data-source-table/meta.ts +1 -2
  38. package/lowcode/data-source-table/utils.tsx +9 -0
  39. package/package.json +3 -3
@@ -9,18 +9,31 @@ declare const useDrawerState: (operationContent?: {
9
9
  openDrawer: (item: OperationItem) => void;
10
10
  closeDrawer: () => void;
11
11
  drawerContent: import("react").ReactNode;
12
- Container: typeof Drawer | (import("react").FC<import("antd").ModalProps> & import("antd/es/modal/confirm").ModalStaticFunctions & {
13
- useModal: typeof import("antd/es/modal/useModal").default;
14
- destroyAll: () => void;
15
- config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
16
- _InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd/es/modal/PurePanel").PurePanelProps>;
17
- });
18
- containerProps: {
19
- width?: undefined;
20
- title?: undefined;
21
- } | {
22
- width: number;
23
- title: string;
12
+ Container: typeof Drawer | {
13
+ (props: import("../../../pisellModal").PisellModalProps): import("react").JSX.Element;
14
+ confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
15
+ destroy: () => void;
16
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
17
+ };
18
+ info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
19
+ destroy: () => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
+ };
22
+ error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
23
+ destroy: () => void;
24
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
25
+ };
26
+ warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
27
+ warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
28
+ destroy: () => void;
29
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
30
+ };
31
+ success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
32
+ destroy: () => void;
33
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
34
+ };
35
+ Information: (props: import("../../../pisellModal/components/Information").InformationProps) => import("react").JSX.Element;
24
36
  };
37
+ containerProps: {};
25
38
  };
26
39
  export default useDrawerState;
@@ -1,11 +1,18 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ 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; }
3
+ 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; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
8
  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
9
  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
10
  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
11
  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
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import { Drawer, Modal } from 'antd';
13
+ import { Drawer } from 'antd';
8
14
  import { useState, useMemo, useRef, useEffect } from 'react';
15
+ import Modal from "../../../pisellModal";
9
16
  var sizeMap = {
10
17
  small: 400,
11
18
  middle: 600,
@@ -65,10 +72,14 @@ var useDrawerState = function useDrawerState(operationContent) {
65
72
  if (!item) {
66
73
  return {};
67
74
  }
68
- return {
75
+ var otherProps = {};
76
+ if ((item === null || item === void 0 ? void 0 : item.openMode) === 'modal') {
77
+ otherProps.footer = null;
78
+ }
79
+ return _objectSpread({
69
80
  width: sizeMap[item === null || item === void 0 ? void 0 : item.openContentSize],
70
81
  title: item === null || item === void 0 ? void 0 : item.openTitle
71
- };
82
+ }, otherProps);
72
83
  }, [item]);
73
84
  var Container = useMemo(function () {
74
85
  if ((item === null || item === void 0 ? void 0 : item.openMode) === 'drawer') {
@@ -16,7 +16,7 @@ interface UseTablePropsProps {
16
16
  * @returns
17
17
  */
18
18
  declare const useTableProps: (props: UseTablePropsProps) => {
19
- title: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
19
+ title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
20
20
  pagination: {
21
21
  total: number;
22
22
  current: number;
@@ -25,7 +25,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
25
25
  showSizeChanger: boolean;
26
26
  };
27
27
  columns: import("./useColumns").Column[];
28
- subTitle: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
28
+ subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
29
29
  buttons: any[] | null;
30
30
  filter: React.JSX.Element | null;
31
31
  onRow: (record: any) => any;
@@ -40,7 +40,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
40
40
  width: number;
41
41
  align: "center" | "left" | "right";
42
42
  fixed: false | "left" | "right";
43
- type: "button" | "link";
43
+ type: "link" | "button";
44
44
  items: OperationItem[];
45
45
  } | undefined;
46
46
  operationContent?: {
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const Phone: React.FC<import("antd").InputProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
2
+ declare const Phone: React.FC<import("./WithMode").PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
3
3
  export default Phone;
@@ -5,7 +5,7 @@ declare const formFieldMap: {
5
5
  } & {
6
6
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
7
7
  };
8
- ColorPicker: import("react").FC<import("antd").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
8
+ ColorPicker: import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
9
9
  DatePicker: import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps>;
10
10
  Input: import("react").FC<import("./Input/type").InputProps> & {
11
11
  JSON: import("react").FC<any>;
@@ -13,7 +13,7 @@ declare const formFieldMap: {
13
13
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
14
14
  URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
15
15
  Email: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
16
- Phone: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
16
+ Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
17
17
  };
18
18
  Radio: import("react").FC<{}> & {
19
19
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -38,17 +38,17 @@ declare const formFieldMap: {
38
38
  'Checkbox.Group': import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
39
39
  DateRangePicker: import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
40
40
  };
41
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
41
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
42
42
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
43
43
  } & {
44
44
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
45
- }) | import("react").FC<import("antd").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
45
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
46
46
  JSON: import("react").FC<any>;
47
47
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
48
48
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
49
49
  URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
50
50
  Email: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
51
- Phone: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
51
+ Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
52
52
  }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
53
53
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
54
54
  } & {
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5
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
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useEffect, useState } from 'react';
8
- import { Card, Flex, QRCode } from 'antd';
8
+ import { Card, Flex, QRCode, Divider, Button } from 'antd';
9
9
  import cfg from "./../../../../../application/admin/src/configs";
10
10
  import Iconfont from "./../iconfont";
11
11
  import useEngineContext from "../../hooks/useEngineContext";
@@ -13,7 +13,9 @@ import Barcode from 'react-barcode';
13
13
  import { image } from '@pisell/utils';
14
14
  import Amount from "./../pisellText/components/Amount";
15
15
  import "./index.less";
16
+ import PisellModal from "./../pisellModal";
16
17
  import classNames from 'classnames';
18
+ import { getText } from "../../locales/index";
17
19
  var WalletCard = function WalletCard(props) {
18
20
  var _context$appHelper;
19
21
  var _props$mode = props.mode,
@@ -83,7 +85,7 @@ var WalletCard = function WalletCard(props) {
83
85
  }));
84
86
  };
85
87
  var modalProps = {
86
- title: 'QR code',
88
+ title: getText('walletCard-qrcode'),
87
89
  platform: platform,
88
90
  onCancel: function onCancel() {
89
91
  return setIsModalOpen(false);
@@ -164,17 +166,17 @@ var WalletCard = function WalletCard(props) {
164
166
  className: classNames('pisell-wallet-card-showCode')
165
167
  }, codeRender()))), /*#__PURE__*/React.createElement(PisellModal, modalProps, /*#__PURE__*/React.createElement(QRCode, {
166
168
  size: 200,
167
- value: value,
169
+ value: cardNo,
168
170
  style: {
169
171
  marginTop: 24
170
172
  }
171
173
  }), /*#__PURE__*/React.createElement("p", {
172
174
  className: classNames('pisell-qrcode-modal-value')
173
- }, value), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Button, {
175
+ }, cardNo), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Button, {
174
176
  onClick: function onClick() {
175
177
  return setIsModalOpen(false);
176
178
  },
177
179
  className: classNames('pisell-qrcode-modal-button')
178
- }, "Done")));
180
+ }, getText('walletCard-done'))));
179
181
  };
180
182
  export default WalletCard;
@@ -93,4 +93,43 @@
93
93
  background-color: #fff;
94
94
  }
95
95
  }
96
+
97
+ .pisell-qrcode-modal {
98
+ .pisell-lowcode-modal-content {
99
+ padding: 0;
100
+ .pisell-lowcode-modal-body {
101
+ display: flex;
102
+ width: 100%;
103
+ align-items: center;
104
+ flex-direction: column;
105
+ .pisell-qrcode-modal-value {
106
+ color: var(--Gray-500, #667085);
107
+ font-family: Inter;
108
+ font-size: 14px;
109
+ font-style: normal;
110
+ font-weight: 400;
111
+ line-height: 20px;
112
+ margin: 20px 0 24px;
113
+ }
114
+ .pisell-lowcode-divider {
115
+ margin: 0;
116
+ }
117
+ .pisell-qrcode-modal-button {
118
+ margin: 24px;
119
+
120
+ color: var(--Base-White, #fff);
121
+
122
+ font-family: Inter;
123
+ font-size: 16px;
124
+ font-style: normal;
125
+ font-weight: 600;
126
+ line-height: 24px;
127
+
128
+ width: calc(100% - 48px);
129
+ box-sizing: border-box;
130
+ background-color: var(--theme-color, #7f56d9);
131
+ }
132
+ }
133
+ }
134
+ }
96
135
  }
@@ -144,5 +144,7 @@ declare const _default: {
144
144
  'pisell-number-format-thousand': string;
145
145
  'pisell-number-format-million': string;
146
146
  'pisell-number-format-billion': string;
147
+ 'walletCard-done': string;
148
+ 'walletCard-qrcode': string;
147
149
  };
148
150
  export default _default;
@@ -181,5 +181,8 @@ export default {
181
181
  // Number formatting
182
182
  'pisell-number-format-thousand': 'K',
183
183
  'pisell-number-format-million': 'M',
184
- 'pisell-number-format-billion': 'B'
184
+ 'pisell-number-format-billion': 'B',
185
+ //walletCard 组件
186
+ 'walletCard-done': 'Done',
187
+ 'walletCard-qrcode': 'QR code'
185
188
  };
@@ -144,5 +144,7 @@ declare const _default: {
144
144
  'pisell-number-format-thousand': string;
145
145
  'pisell-number-format-million': string;
146
146
  'pisell-number-format-billion': string;
147
+ 'walletCard-done': string;
148
+ 'walletCard-qrcode': string;
147
149
  };
148
150
  export default _default;
@@ -180,5 +180,8 @@ export default {
180
180
  // 数字格式化
181
181
  'pisell-number-format-thousand': '千',
182
182
  'pisell-number-format-million': '百万',
183
- 'pisell-number-format-billion': '十亿'
183
+ 'pisell-number-format-billion': '十亿',
184
+ //walletCard 组件
185
+ 'walletCard-done': '完成',
186
+ 'walletCard-qrcode': '二维码'
184
187
  };
@@ -144,5 +144,7 @@ declare const _default: {
144
144
  'pisell-number-format-thousand': string;
145
145
  'pisell-number-format-million': string;
146
146
  'pisell-number-format-billion': string;
147
+ 'walletCard-done': string;
148
+ 'walletCard-qrcode': string;
147
149
  };
148
150
  export default _default;
@@ -181,5 +181,8 @@ export default {
181
181
  // 數字格式化
182
182
  'pisell-number-format-thousand': '千',
183
183
  'pisell-number-format-million': '百萬',
184
- 'pisell-number-format-billion': '十億'
184
+ 'pisell-number-format-billion': '十億',
185
+ //walletCard 组件
186
+ 'walletCard-done': '完成',
187
+ 'walletCard-qrcode': '二維碼'
185
188
  };
@@ -9,18 +9,31 @@ declare const useDrawerState: (operationContent?: {
9
9
  openDrawer: (item: OperationItem) => void;
10
10
  closeDrawer: () => void;
11
11
  drawerContent: import("react").ReactNode;
12
- Container: typeof Drawer | (import("react").FC<import("antd").ModalProps> & import("antd/es/modal/confirm").ModalStaticFunctions & {
13
- useModal: typeof import("antd/es/modal/useModal").default;
14
- destroyAll: () => void;
15
- config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
16
- _InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd/es/modal/PurePanel").PurePanelProps>;
17
- });
18
- containerProps: {
19
- width?: undefined;
20
- title?: undefined;
21
- } | {
22
- width: number;
23
- title: string;
12
+ Container: typeof Drawer | {
13
+ (props: import("../../../pisellModal").PisellModalProps): import("react").JSX.Element;
14
+ confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
15
+ destroy: () => void;
16
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
17
+ };
18
+ info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
19
+ destroy: () => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
+ };
22
+ error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
23
+ destroy: () => void;
24
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
25
+ };
26
+ warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
27
+ warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
28
+ destroy: () => void;
29
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
30
+ };
31
+ success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
32
+ destroy: () => void;
33
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
34
+ };
35
+ Information: (props: import("../../../pisellModal/components/Information").InformationProps) => import("react").JSX.Element;
24
36
  };
37
+ containerProps: {};
25
38
  };
26
39
  export default useDrawerState;
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
17
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
28
 
19
29
  // src/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.ts
@@ -24,6 +34,7 @@ __export(useDrawerState_exports, {
24
34
  module.exports = __toCommonJS(useDrawerState_exports);
25
35
  var import_antd = require("antd");
26
36
  var import_react = require("react");
37
+ var import_pisellModal = __toESM(require("../../../pisellModal"));
27
38
  var sizeMap = {
28
39
  small: 400,
29
40
  middle: 600,
@@ -67,16 +78,21 @@ var useDrawerState = (operationContent) => {
67
78
  if (!item) {
68
79
  return {};
69
80
  }
81
+ const otherProps = {};
82
+ if ((item == null ? void 0 : item.openMode) === "modal") {
83
+ otherProps.footer = null;
84
+ }
70
85
  return {
71
86
  width: sizeMap[item == null ? void 0 : item.openContentSize],
72
- title: item == null ? void 0 : item.openTitle
87
+ title: item == null ? void 0 : item.openTitle,
88
+ ...otherProps
73
89
  };
74
90
  }, [item]);
75
91
  const Container = (0, import_react.useMemo)(() => {
76
92
  if ((item == null ? void 0 : item.openMode) === "drawer") {
77
93
  return import_antd.Drawer;
78
94
  }
79
- return import_antd.Modal;
95
+ return import_pisellModal.default;
80
96
  }, [item == null ? void 0 : item.openMode]);
81
97
  return {
82
98
  drawerVisible,
@@ -16,7 +16,7 @@ interface UseTablePropsProps {
16
16
  * @returns
17
17
  */
18
18
  declare const useTableProps: (props: UseTablePropsProps) => {
19
- title: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
19
+ title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
20
20
  pagination: {
21
21
  total: number;
22
22
  current: number;
@@ -25,7 +25,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
25
25
  showSizeChanger: boolean;
26
26
  };
27
27
  columns: import("./useColumns").Column[];
28
- subTitle: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
28
+ subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
29
29
  buttons: any[] | null;
30
30
  filter: React.JSX.Element | null;
31
31
  onRow: (record: any) => any;
@@ -40,7 +40,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
40
40
  width: number;
41
41
  align: "center" | "left" | "right";
42
42
  fixed: false | "left" | "right";
43
- type: "button" | "link";
43
+ type: "link" | "button";
44
44
  items: OperationItem[];
45
45
  } | undefined;
46
46
  operationContent?: {
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const Phone: React.FC<import("antd").InputProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
2
+ declare const Phone: React.FC<import("./WithMode").PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
3
3
  export default Phone;
@@ -5,7 +5,7 @@ declare const formFieldMap: {
5
5
  } & {
6
6
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
7
7
  };
8
- ColorPicker: import("react").FC<import("antd").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
8
+ ColorPicker: import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
9
9
  DatePicker: import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps>;
10
10
  Input: import("react").FC<import("./Input/type").InputProps> & {
11
11
  JSON: import("react").FC<any>;
@@ -13,7 +13,7 @@ declare const formFieldMap: {
13
13
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
14
14
  URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
15
15
  Email: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
16
- Phone: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
16
+ Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
17
17
  };
18
18
  Radio: import("react").FC<{}> & {
19
19
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -38,17 +38,17 @@ declare const formFieldMap: {
38
38
  'Checkbox.Group': import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
39
39
  DateRangePicker: import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
40
40
  };
41
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
41
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
42
42
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
43
43
  } & {
44
44
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
45
- }) | import("react").FC<import("antd").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
45
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
46
46
  JSON: import("react").FC<any>;
47
47
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
48
48
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
49
49
  URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
50
50
  Email: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
51
- Phone: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
51
+ Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
52
52
  }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
53
53
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
54
54
  } & {
@@ -41,7 +41,9 @@ var import_react_barcode = __toESM(require("react-barcode"));
41
41
  var import_utils = require("@pisell/utils");
42
42
  var import_Amount = __toESM(require("./../pisellText/components/Amount"));
43
43
  var import_index = require("./index.less");
44
+ var import_pisellModal = __toESM(require("./../pisellModal"));
44
45
  var import_classnames = __toESM(require("classnames"));
46
+ var import_locales = require("../../locales/index");
45
47
  var WalletCard = (props) => {
46
48
  var _a;
47
49
  const {
@@ -78,7 +80,7 @@ var WalletCard = (props) => {
78
80
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Flex, { justify: "center" }, codeType === "one" ? /* @__PURE__ */ import_react.default.createElement(import_react_barcode.default, { value: cardNo, height: 114, width: 3 }) : /* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { size: 250, value: cardNo, bordered: false }));
79
81
  };
80
82
  const modalProps = {
81
- title: "QR code",
83
+ title: (0, import_locales.getText)("walletCard-qrcode"),
82
84
  platform,
83
85
  onCancel: () => setIsModalOpen(false),
84
86
  open: isModalOpen,
@@ -207,13 +209,13 @@ var WalletCard = (props) => {
207
209
  )
208
210
  ),
209
211
  showCode && cardStyle === "full" && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-wallet-card-showCode") }, codeRender())
210
- )), /* @__PURE__ */ import_react.default.createElement(PisellModal, { ...modalProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { size: 200, value, style: { marginTop: 24 } }), /* @__PURE__ */ import_react.default.createElement("p", { className: (0, import_classnames.default)("pisell-qrcode-modal-value") }, value), /* @__PURE__ */ import_react.default.createElement(Divider, null), /* @__PURE__ */ import_react.default.createElement(
211
- Button,
212
+ )), /* @__PURE__ */ import_react.default.createElement(import_pisellModal.default, { ...modalProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { size: 200, value: cardNo, style: { marginTop: 24 } }), /* @__PURE__ */ import_react.default.createElement("p", { className: (0, import_classnames.default)("pisell-qrcode-modal-value") }, cardNo), /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, null), /* @__PURE__ */ import_react.default.createElement(
213
+ import_antd.Button,
212
214
  {
213
215
  onClick: () => setIsModalOpen(false),
214
216
  className: (0, import_classnames.default)("pisell-qrcode-modal-button")
215
217
  },
216
- "Done"
218
+ (0, import_locales.getText)("walletCard-done")
217
219
  )));
218
220
  };
219
221
  var walletCard_default = WalletCard;
@@ -93,4 +93,43 @@
93
93
  background-color: #fff;
94
94
  }
95
95
  }
96
+
97
+ .pisell-qrcode-modal {
98
+ .pisell-lowcode-modal-content {
99
+ padding: 0;
100
+ .pisell-lowcode-modal-body {
101
+ display: flex;
102
+ width: 100%;
103
+ align-items: center;
104
+ flex-direction: column;
105
+ .pisell-qrcode-modal-value {
106
+ color: var(--Gray-500, #667085);
107
+ font-family: Inter;
108
+ font-size: 14px;
109
+ font-style: normal;
110
+ font-weight: 400;
111
+ line-height: 20px;
112
+ margin: 20px 0 24px;
113
+ }
114
+ .pisell-lowcode-divider {
115
+ margin: 0;
116
+ }
117
+ .pisell-qrcode-modal-button {
118
+ margin: 24px;
119
+
120
+ color: var(--Base-White, #fff);
121
+
122
+ font-family: Inter;
123
+ font-size: 16px;
124
+ font-style: normal;
125
+ font-weight: 600;
126
+ line-height: 24px;
127
+
128
+ width: calc(100% - 48px);
129
+ box-sizing: border-box;
130
+ background-color: var(--theme-color, #7f56d9);
131
+ }
132
+ }
133
+ }
134
+ }
96
135
  }
@@ -144,5 +144,7 @@ declare const _default: {
144
144
  'pisell-number-format-thousand': string;
145
145
  'pisell-number-format-million': string;
146
146
  'pisell-number-format-billion': string;
147
+ 'walletCard-done': string;
148
+ 'walletCard-qrcode': string;
147
149
  };
148
150
  export default _default;
@@ -179,5 +179,8 @@ var en_US_default = {
179
179
  // Number formatting
180
180
  "pisell-number-format-thousand": "K",
181
181
  "pisell-number-format-million": "M",
182
- "pisell-number-format-billion": "B"
182
+ "pisell-number-format-billion": "B",
183
+ //walletCard 组件
184
+ "walletCard-done": "Done",
185
+ "walletCard-qrcode": "QR code"
183
186
  };
@@ -144,5 +144,7 @@ declare const _default: {
144
144
  'pisell-number-format-thousand': string;
145
145
  'pisell-number-format-million': string;
146
146
  'pisell-number-format-billion': string;
147
+ 'walletCard-done': string;
148
+ 'walletCard-qrcode': string;
147
149
  };
148
150
  export default _default;