@pisell/materials 2.2.98 → 2.2.100

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 (169) 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 +4 -4
  6. package/build/lowcode/preview.js +6 -6
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +21 -21
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +22 -22
  11. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  17. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  20. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  22. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  23. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  24. package/es/components/drag-sort-tree/TreeItem/index.js +2 -1
  25. package/es/components/iconfont/index.js +1 -1
  26. package/es/components/list/index.d.ts +1 -0
  27. package/es/components/lowCodePage/index.d.ts +1 -0
  28. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  29. package/es/components/pisellAdjustPrice/index.js +5 -1
  30. package/es/components/pisellAdjustPrice/type.d.ts +2 -0
  31. package/es/components/pisellCardList/index.d.ts +30 -2
  32. package/es/components/pisellCardList/index.js +40 -3
  33. package/es/components/pisellCardList/index.less +9 -1
  34. package/es/components/pisellCheckboxGroup/index.d.ts +3 -0
  35. package/es/components/pisellCheckboxGroup/index.js +19 -3
  36. package/es/components/pisellCheckboxGroup/index.less +22 -1
  37. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  38. package/es/components/pisellLoading/index.d.ts +1 -0
  39. package/es/components/pisellWalletPassCard/index.d.ts +53 -1
  40. package/es/components/pisellWalletPassCard/index.js +333 -75
  41. package/es/components/pisellWalletPassCard/index.less +48 -11
  42. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
  43. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +5 -1
  44. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
  45. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  46. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +1 -1
  47. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  48. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  49. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  50. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  51. package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
  52. package/es/components/productCard/cartSkuCard/index.js +0 -2
  53. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  54. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  55. package/es/components/productCard/components/Header/index.d.ts +1 -0
  56. package/es/components/productCard/components/Note/index.d.ts +1 -0
  57. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  58. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  59. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  60. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  61. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  62. package/es/components/qrcode/index.d.ts +1 -0
  63. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  64. package/es/components/table/BasicTable/index.d.ts +1 -0
  65. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  66. package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
  67. package/es/components/table/Table/AddFieldModal/index.js +13 -13
  68. package/es/components/table/Table/AddFieldModal/index.less +11 -11
  69. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  70. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  71. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  72. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  73. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  74. package/es/components/table/Table/utils.d.ts +1 -1
  75. package/es/components/table/View/index.d.ts +1 -0
  76. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
  77. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  78. package/es/components/virtual-keyboard/Number/index.js +4 -1
  79. package/es/components/virtual-keyboard/Number/types.d.ts +1 -0
  80. package/es/components/walletCard/Guide/index.js +12 -1
  81. package/es/index.d.ts +1 -0
  82. package/es/locales/en-US.d.ts +6 -0
  83. package/es/locales/en-US.js +9 -2
  84. package/es/locales/zh-CN.d.ts +6 -0
  85. package/es/locales/zh-CN.js +9 -2
  86. package/es/locales/zh-TW.d.ts +6 -0
  87. package/es/locales/zh-TW.js +9 -2
  88. package/es/utils/platform.d.ts +1 -1
  89. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  90. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  91. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  92. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  93. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  94. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  95. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  96. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  97. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  98. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  99. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  100. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  101. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  102. package/lib/components/drag-sort-tree/TreeItem/index.js +2 -1
  103. package/lib/components/iconfont/index.js +1 -1
  104. package/lib/components/list/index.d.ts +1 -0
  105. package/lib/components/lowCodePage/index.d.ts +1 -0
  106. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  107. package/lib/components/pisellAdjustPrice/index.js +4 -0
  108. package/lib/components/pisellAdjustPrice/type.d.ts +2 -0
  109. package/lib/components/pisellCardList/index.d.ts +30 -2
  110. package/lib/components/pisellCardList/index.js +40 -3
  111. package/lib/components/pisellCardList/index.less +9 -1
  112. package/lib/components/pisellCheckboxGroup/index.d.ts +3 -0
  113. package/lib/components/pisellCheckboxGroup/index.js +20 -1
  114. package/lib/components/pisellCheckboxGroup/index.less +22 -1
  115. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  116. package/lib/components/pisellLoading/index.d.ts +1 -0
  117. package/lib/components/pisellWalletPassCard/index.d.ts +53 -1
  118. package/lib/components/pisellWalletPassCard/index.js +253 -59
  119. package/lib/components/pisellWalletPassCard/index.less +48 -11
  120. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
  121. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +1 -1
  122. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
  123. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  124. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +1 -1
  125. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  126. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  127. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  128. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  129. package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
  130. package/lib/components/productCard/cartSkuCard/index.js +1 -1
  131. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  132. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  133. package/lib/components/productCard/components/Header/index.d.ts +1 -0
  134. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  135. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  136. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  137. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  138. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  139. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  140. package/lib/components/qrcode/index.d.ts +1 -0
  141. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  142. package/lib/components/table/BasicTable/index.d.ts +1 -0
  143. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  144. package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
  145. package/lib/components/table/Table/AddFieldModal/index.js +9 -9
  146. package/lib/components/table/Table/AddFieldModal/index.less +11 -11
  147. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  148. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  149. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  150. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  151. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  152. package/lib/components/table/Table/utils.d.ts +1 -1
  153. package/lib/components/table/View/index.d.ts +1 -0
  154. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
  155. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  156. package/lib/components/virtual-keyboard/Number/index.js +3 -0
  157. package/lib/components/virtual-keyboard/Number/types.d.ts +1 -0
  158. package/lib/components/walletCard/Guide/index.js +11 -1
  159. package/lib/index.d.ts +1 -0
  160. package/lib/locales/en-US.d.ts +6 -0
  161. package/lib/locales/en-US.js +9 -2
  162. package/lib/locales/zh-CN.d.ts +6 -0
  163. package/lib/locales/zh-CN.js +9 -2
  164. package/lib/locales/zh-TW.d.ts +6 -0
  165. package/lib/locales/zh-TW.js +9 -2
  166. package/lib/utils/platform.d.ts +1 -1
  167. package/lowcode/pisell-card-list/meta.ts +50 -1
  168. package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
  169. package/package.json +11 -10
@@ -147,7 +147,7 @@ export default {
147
147
  'pisell-wallet-pass-card-name': '商品名称',
148
148
  'pisell-wallet-pass-card-store-name': '共享店铺名称',
149
149
  'pisell-wallet-pass-card-balance': '余额',
150
- 'pisell-wallet-pass-card-redeem': '兑换',
150
+ 'pisell-wallet-pass-card-redeem': '使用',
151
151
  'pisell-wallet-pass-card-code': '识别码编号',
152
152
  'pisell-wallet-pass-card-valid-to': '有效期至',
153
153
  'pisell-wallet-pass-card-confirm': '确认',
@@ -329,5 +329,12 @@ export default {
329
329
  'pisell2.text.goodpass.product-vouchers': "优惠促销",
330
330
  'pisell2.text.goodpass.last-settlement': "(上次结算)",
331
331
  'pisell2.text.goodpass.view-more': "查看更多",
332
- 'pisell2.text.goodpass.save': "节省"
332
+ 'pisell2.text.goodpass.save': "节省",
333
+ // 钱包卡片组件
334
+ 'pisell-wallet-pass-card-status-used': '已使用',
335
+ 'pisell-wallet-pass-card-status-expired': '已过期',
336
+ 'pisell-wallet-pass-card-status-disabled': '已禁用',
337
+ 'pisell-wallet-pass-card-status-conflict': '冲突',
338
+ 'pisell-wallet-pass-card-reset': '清空',
339
+ 'pisell-wallet-pass-card-done': '保存'
333
340
  };
@@ -269,5 +269,11 @@ declare const _default: {
269
269
  'pisell2.text.goodpass.last-settlement': string;
270
270
  'pisell2.text.goodpass.view-more': string;
271
271
  'pisell2.text.goodpass.save': string;
272
+ 'pisell-wallet-pass-card-status-used': string;
273
+ 'pisell-wallet-pass-card-status-expired': string;
274
+ 'pisell-wallet-pass-card-status-disabled': string;
275
+ 'pisell-wallet-pass-card-status-conflict': string;
276
+ 'pisell-wallet-pass-card-reset': string;
277
+ 'pisell-wallet-pass-card-done': string;
272
278
  };
273
279
  export default _default;
@@ -147,7 +147,7 @@ export default {
147
147
  'pisell-wallet-pass-card-name': '商品名稱',
148
148
  'pisell-wallet-pass-card-store-name': '共享店鋪名稱',
149
149
  'pisell-wallet-pass-card-balance': '餘額',
150
- 'pisell-wallet-pass-card-redeem': '兌換',
150
+ 'pisell-wallet-pass-card-redeem': '使用',
151
151
  'pisell-wallet-pass-card-code': '識別碼編號',
152
152
  'pisell-wallet-pass-card-valid-to': '有效期至',
153
153
  'pisell-wallet-pass-card-confirm': '確認',
@@ -330,5 +330,12 @@ export default {
330
330
  'pisell2.text.goodpass.product-vouchers': "優惠促銷",
331
331
  'pisell2.text.goodpass.last-settlement': "(上次結算)",
332
332
  'pisell2.text.goodpass.view-more': "查看更多",
333
- 'pisell2.text.goodpass.save': "節省"
333
+ 'pisell2.text.goodpass.save': "節省",
334
+ // 钱包卡片组件
335
+ 'pisell-wallet-pass-card-status-used': '已使用',
336
+ 'pisell-wallet-pass-card-status-expired': '已過期',
337
+ 'pisell-wallet-pass-card-status-disabled': '已禁用',
338
+ 'pisell-wallet-pass-card-status-conflict': '衝突',
339
+ 'pisell-wallet-pass-card-reset': '清空',
340
+ 'pisell-wallet-pass-card-done': '保存'
334
341
  };
@@ -1 +1 @@
1
- export declare const isMobile: () => any;
1
+ export declare const isMobile: () => boolean;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -422,7 +422,7 @@ var withFormItem = (WrappedComponent, overlayProps) => {
422
422
  rules
423
423
  });
424
424
  }
425
- return (overlayProps == null ? void 0 : overlayProps.otherFormItemProps) || {};
425
+ return { ...otherProps || {}, ...(overlayProps == null ? void 0 : overlayProps.otherFormItemProps) || {} };
426
426
  }, [overlayProps == null ? void 0 : overlayProps.otherFormItemProps, otherProps]);
427
427
  return /* @__PURE__ */ import_react.default.createElement(
428
428
  import_form.default.Item,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
3
  dataSourceKey: string | undefined;
3
4
  dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
@@ -53,7 +53,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
53
53
  width: number;
54
54
  align: "center" | "left" | "right";
55
55
  fixed: false | "left" | "right";
56
- type: "link" | "button";
56
+ type: "button" | "link";
57
57
  items: OperationItem[];
58
58
  } | undefined;
59
59
  operationContent?: {
@@ -71,7 +71,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
71
71
  useCustomAction: boolean;
72
72
  actionType: string;
73
73
  openMode: "modal" | "drawer";
74
- openContentSize: "small" | "large" | "middle";
74
+ openContentSize: "small" | "middle" | "large";
75
75
  openTitle: string;
76
76
  key: string;
77
77
  } | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { JsonProps } from "./type";
2
3
  import "./ReadPretty.less";
3
4
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PasswordProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
3
  options?: any;
4
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
5
5
  labelField: string;
6
6
  valueField: string;
7
7
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UploadProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
@@ -35,7 +35,7 @@ declare const formFieldMap: {
35
35
  };
36
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
37
  options?: any;
38
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
41
  extraParams?: Record<string, any> | undefined;
@@ -60,11 +60,13 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
64
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
65
  } & {
66
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
- }) | 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("./Input/type").InputProps> & {
67
+ }) | 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("antd").InputProps & {
68
+ onChange: (value: string) => void;
69
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
68
70
  JSON: import("react").FC<any>;
69
71
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
70
72
  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>;
@@ -84,19 +86,17 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
84
86
  name?: string | undefined;
85
87
  fieldKey?: string | undefined;
86
88
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
87
- }) | (import("react").FC<{}> & {
89
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
88
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
89
91
  } & {
90
92
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
93
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
92
94
  options?: any;
93
- optionSourceType?: "default" | "custom" | "api" | undefined;
95
+ optionSourceType?: "custom" | "default" | "api" | undefined;
94
96
  labelField: string;
95
97
  valueField: string;
96
98
  extraParams?: Record<string, any> | undefined;
97
99
  } & {
98
100
  dataSource?: any;
99
- }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
- onChange: (value: string) => void;
101
- } & 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("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './index.less';
@@ -67,7 +67,8 @@ var TreeItem = (props) => {
67
67
  const [isMobile, setIsMobile] = (0, import_react.useState)(window.innerWidth < 600);
68
68
  const style = {
69
69
  transform: import_utilities.CSS.Transform.toString(transform && { ...transform, scaleY: 1 }),
70
- transition
70
+ transition,
71
+ display: item.domHidden ? "none" : "block"
71
72
  };
72
73
  const rowKey = (0, import_react.useMemo)(() => {
73
74
  return (childrenProps == null ? void 0 : childrenProps.rowKey) || "id";
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
35
35
  var import_icons = require("@ant-design/icons");
36
36
  var import_react = __toESM(require("react"));
37
37
  var MyIcon = (0, import_icons.createFromIconfontCN)({
38
- scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.8.js"
38
+ scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.11.js"
39
39
  // 在 iconfont.cn 上生成
40
40
  });
41
41
  var IconFont = (props) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type LowCodePageProps = {
2
3
  id: number;
3
4
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { PisellAdjustPriceProps } from './type';
3
4
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
@@ -49,6 +49,8 @@ var PisellAdjustPrice = (props) => {
49
49
  defaultValue,
50
50
  originValue,
51
51
  selectType = "light",
52
+ resetText,
53
+ doneText,
52
54
  ...others
53
55
  } = props;
54
56
  const config = (0, import_usePisellConfig.default)();
@@ -180,6 +182,8 @@ var PisellAdjustPrice = (props) => {
180
182
  onChange: handleChange,
181
183
  onEnter: handleEnter,
182
184
  placeholder: discountMode === "amount" ? "0" : "%",
185
+ resetText,
186
+ doneText,
183
187
  rightItemsStyle: {
184
188
  buttonBackgroundColor: configColor.buttonBackgroundColor,
185
189
  textColor: configColor.textColor,
@@ -17,4 +17,6 @@ export interface PisellAdjustPriceProps {
17
17
  mainTextColor?: string;
18
18
  isShowSubText?: boolean;
19
19
  subTextColor?: string;
20
+ resetText?: string;
21
+ doneText?: string;
20
22
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
3
3
  import { PisellContextType } from '../pisell-config-provider/context';
4
- import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
4
+ import { PisellWalletPassCardProps, FormatOption } from '../pisellWalletPassCard';
5
5
  import './index.less';
6
6
  export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
7
7
  platform?: PisellContextType['platform'];
@@ -67,7 +67,35 @@ export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'opt
67
67
  /** 编辑编辑按钮后,弹窗展示之前 */
68
68
  beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
69
69
  /** 编辑弹窗点击提交 */
70
- onConfirmEdit?: (value: any, index: number) => void;
70
+ onConfirmEdit?: (value: any, index: number, data: any) => void;
71
+ /** 是否展示状态标识 */
72
+ showStatus?: boolean;
73
+ /** 名称标题字号字重颜色配置 */
74
+ nameTitleStyle?: {
75
+ fontSize: number;
76
+ fontWeight: number;
77
+ color: string;
78
+ };
79
+ /** 开启编辑金额 */
80
+ enableEditAmount?: boolean;
81
+ /** 编辑金额事件 */
82
+ onConfirmEditAmount?: (value: number, index: number, data: any) => void;
83
+ /** 是否使用外部详情处理 */
84
+ useExternalDetail?: boolean;
85
+ /** 详情事件 */
86
+ onDetail?: (value: any, index: number) => void;
87
+ /** 自定义余额格式化函数,如果提供则优先使用 */
88
+ formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
89
+ /** 自定义余额标题格式化函数,如果提供则优先使用 */
90
+ formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
91
+ /** 自定义使用金额格式化函数,如果提供则优先使用 */
92
+ formatRedeem?: (redeem?: number, option?: FormatOption) => React.ReactNode;
93
+ /** 自定义使用金额标题格式化函数,如果提供则优先使用 */
94
+ formatRedeemTitle?: (redeemTitle?: string, option?: FormatOption) => React.ReactNode;
95
+ /** 编辑金额前事件 */
96
+ onBeforeEditAmount?: (value: any, index: number, data: any) => Promise<any> | boolean | void;
97
+ /** 选项点击事件 */
98
+ onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: any) => void;
71
99
  }
72
100
  declare const _default: React.NamedExoticComponent<PisellCardListProps>;
73
101
  export default _default;
@@ -62,7 +62,19 @@ var PisellCardList = (props) => {
62
62
  showValidDate,
63
63
  empty,
64
64
  showEmpty,
65
- showBalanceSymbol
65
+ showBalanceSymbol,
66
+ onChangeDebounce,
67
+ showStatus,
68
+ nameTitleStyle,
69
+ enableEditAmount,
70
+ useExternalDetail,
71
+ onDetail,
72
+ formatBalance,
73
+ formatBalanceTitle,
74
+ formatRedeem,
75
+ formatRedeemTitle,
76
+ onBeforeEditAmount,
77
+ onItemClick
66
78
  } = props;
67
79
  return data.length ? /* @__PURE__ */ import_react.default.createElement(
68
80
  import_pisellCheckboxGroup.default,
@@ -76,12 +88,19 @@ var PisellCardList = (props) => {
76
88
  onChange,
77
89
  iconPosition: "hide",
78
90
  fullWidth,
91
+ onChangeDebounce,
92
+ onItemClick,
79
93
  renderOption: (item, active, index) => {
80
94
  return /* @__PURE__ */ import_react.default.createElement(
81
95
  import_pisellWalletPassCard.default,
82
96
  {
83
97
  ...item,
84
98
  active,
99
+ mode,
100
+ showActiveIcon: true,
101
+ showStatus: showStatus || (item == null ? void 0 : item.showStatus),
102
+ cardStatus: item == null ? void 0 : item.cardStatus,
103
+ nameTitleStyle: nameTitleStyle || (item == null ? void 0 : item.nameTitleStyle),
85
104
  showName: showName || (item == null ? void 0 : item.showName),
86
105
  showBalance: showBalance || (item == null ? void 0 : item.showBalance),
87
106
  showCode: showCode || (item == null ? void 0 : item.showCode),
@@ -94,16 +113,34 @@ var PisellCardList = (props) => {
94
113
  showBalanceSymbol: showBalanceSymbol || (item == null ? void 0 : item.showBalanceSymbol),
95
114
  showActions: props.showActions || (item == null ? void 0 : item.showActions),
96
115
  actions: props.actions || (item == null ? void 0 : item.actions),
116
+ enableEditAmount: enableEditAmount || (item == null ? void 0 : item.enableEditAmount),
117
+ useExternalDetail: useExternalDetail || (item == null ? void 0 : item.useExternalDetail),
118
+ onDetail: (record) => {
119
+ var _a;
120
+ return (_a = props == null ? void 0 : props.onDetail) == null ? void 0 : _a.call(props, record, index);
121
+ },
97
122
  beforeEdit: (record) => {
98
123
  var _a;
99
124
  return (_a = props == null ? void 0 : props.beforeEdit) == null ? void 0 : _a.call(props, record, index);
100
125
  },
126
+ onConfirmEditAmount: (value2) => {
127
+ var _a;
128
+ (_a = props.onConfirmEditAmount) == null ? void 0 : _a.call(props, value2, index, item);
129
+ },
101
130
  onConfirmEdit: (newVal) => {
102
131
  var _a;
103
- (_a = props.onConfirmEdit) == null ? void 0 : _a.call(props, newVal, index);
132
+ (_a = props.onConfirmEdit) == null ? void 0 : _a.call(props, newVal, index, item);
104
133
  },
134
+ formatBalance: formatBalance || (item == null ? void 0 : item.formatBalance),
135
+ formatBalanceTitle: formatBalanceTitle || (item == null ? void 0 : item.formatBalanceTitle),
105
136
  type,
106
- style: direction === "vertical" || direction === "horizontal" && fullWidth ? { width: "100%" } : {}
137
+ style: direction === "vertical" || direction === "horizontal" && fullWidth ? { width: "100%" } : {},
138
+ formatRedeem: formatRedeem || (item == null ? void 0 : item.formatRedeem),
139
+ formatRedeemTitle: formatRedeemTitle || (item == null ? void 0 : item.formatRedeemTitle),
140
+ onBeforeEditAmount: (record) => {
141
+ var _a;
142
+ return (_a = props == null ? void 0 : props.onBeforeEditAmount) == null ? void 0 : _a.call(props, record, index, item);
143
+ }
107
144
  }
108
145
  );
109
146
  }
@@ -72,4 +72,12 @@
72
72
  // .pisell-card-disabled {
73
73
  // color: var(--Gray-500, #667085);
74
74
  // padding-bottom: 36px;
75
- // }
75
+ // }
76
+
77
+ .keyboard-modal-wrapper {
78
+ .pisell-amount-keyboard-wrap {
79
+ padding: 10px;
80
+ background: rgba(29, 41, 57, .8) !important;
81
+ border-radius: 10px;
82
+ }
83
+ }
@@ -5,6 +5,7 @@ export interface PisellCheckboxGroupOption {
5
5
  label: string;
6
6
  value: string;
7
7
  disabled?: boolean;
8
+ error?: boolean;
8
9
  [key: string]: any;
9
10
  }
10
11
  declare type PisellCheckboxGroupValue = string | string[] | any;
@@ -23,6 +24,8 @@ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivEl
23
24
  iconPosition?: 'left' | 'right' | 'hide';
24
25
  optionClassName?: string;
25
26
  optionActiveClassName?: string;
27
+ onChangeDebounce?: boolean;
28
+ onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: PisellCheckboxGroupOption) => void;
26
29
  }
27
30
  /**
28
31
  * @title: PisellCheckboxGroup
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
36
36
  var import_usePisellConfig = __toESM(require("../pisell-config-provider/hooks/usePisellConfig"));
37
37
  var import_classnames = __toESM(require("classnames"));
38
38
  var import_antd = require("antd");
39
+ var import_ahooks = require("ahooks");
39
40
  var import_utils = require("@pisell/utils");
40
41
  var import_utils2 = require("@pisell/utils");
41
42
  var import_index = require("./index.less");
@@ -62,6 +63,8 @@ var PisellCheckboxGroup = (props) => {
62
63
  iconPosition = "left",
63
64
  optionClassName,
64
65
  optionActiveClassName,
66
+ onChangeDebounce,
67
+ onItemClick,
65
68
  ...rest
66
69
  } = props;
67
70
  const [_value, set_value] = (0, import_react2.useState)([]);
@@ -112,6 +115,16 @@ var PisellCheckboxGroup = (props) => {
112
115
  const _onChange = (val, item) => {
113
116
  onChange == null ? void 0 : onChange(mode === "single" ? val[0] : val, item);
114
117
  };
118
+ const { run } = (0, import_ahooks.useDebounceFn)(
119
+ (key, item) => {
120
+ handleSelectItem(key, item);
121
+ },
122
+ {
123
+ wait: 400,
124
+ leading: true,
125
+ trailing: false
126
+ }
127
+ );
115
128
  const handleSelectItem = (key, item) => {
116
129
  let newVal = [key];
117
130
  if (mode === "multiple") {
@@ -138,14 +151,20 @@ var PisellCheckboxGroup = (props) => {
138
151
  optionClassName,
139
152
  {
140
153
  "pisell-checkbox-group-item-active": active,
141
- [optionActiveClassName]: active
154
+ [optionActiveClassName]: active,
155
+ "pisell-checkbox-group-item-error": option.error
142
156
  }
143
157
  ),
144
158
  key: option[rowKey],
145
159
  gap: 10,
146
160
  style: rowStyle,
147
161
  onClick: (e) => {
162
+ onItemClick == null ? void 0 : onItemClick(e, option);
148
163
  if (option.disabled) return;
164
+ if (onChangeDebounce) {
165
+ run(option[rowKey], option);
166
+ return;
167
+ }
149
168
  handleSelectItem(option[rowKey], option);
150
169
  },
151
170
  leftContent: iconPosition === "left" && /* @__PURE__ */ import_react.default.createElement(
@@ -24,10 +24,31 @@
24
24
 
25
25
  &.pisell-checkbox-group-item-active {
26
26
  &::before {
27
- border-width: 2px;
27
+ border-width: 4px;
28
28
  border-color: var(--theme-color);
29
+ background: var(--Primary-50, #F9F5FF);
30
+ z-index: 1;
31
+ box-sizing: border-box;
32
+ }
33
+ .pisell-row-center {
34
+ .pisell-row {
35
+ position: relative;
36
+ z-index: 1;
37
+ }
29
38
  }
39
+ .pisell-row-right {
40
+ position: relative;
41
+ z-index: 1;
42
+ }
43
+ }
30
44
 
45
+ &.pisell-checkbox-group-item-error {
46
+ &::before {
47
+ border-color: var(--Error-500, #F04438);
48
+ border-width: 2px;
49
+ background: var(--Error-50, #FEF3F2);
50
+ z-index: 1;
51
+ }
31
52
  }
32
53
  }
33
54
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SpinProps } from 'antd';
2
3
  import './index.less';
3
4
  declare type MaskType = {
@@ -1,4 +1,13 @@
1
+ import React from 'react';
1
2
  import './index.less';
3
+ export interface FormatOption {
4
+ /** 原始 DOM 元素 */
5
+ originDom: React.ReactNode;
6
+ /** 是否选中状态 */
7
+ active: boolean;
8
+ /** 完整的组件数据 */
9
+ data: PisellWalletPassCardProps;
10
+ }
2
11
  export interface PisellWalletPassCardProps {
3
12
  id: number;
4
13
  /** 卡片样式 */
@@ -34,7 +43,7 @@ export interface PisellWalletPassCardProps {
34
43
  /** 是否展示商品名称 */
35
44
  showName?: boolean;
36
45
  /** 是否展示共享店铺名称 */
37
- showStoreName?: boolean;
46
+ showStoreName?: boolean | ((data: any) => boolean);
38
47
  /** 是否展示使用金额 */
39
48
  showRedeem?: boolean;
40
49
  /** 是否展示余额 */
@@ -78,6 +87,49 @@ export interface PisellWalletPassCardProps {
78
87
  beforeEdit?: (value: any) => Promise<any> | boolean | void;
79
88
  /** 编辑弹窗点击提交 */
80
89
  onConfirmEdit?: (value: any) => void;
90
+ /** 编辑金额事件 */
91
+ onConfirmEditAmount?: (value: number) => void;
92
+ /** 详情按钮点击事件 */
93
+ onDetail?: (data: {
94
+ id: number;
95
+ name: string;
96
+ storeName: string;
97
+ balance?: number;
98
+ redeem?: number;
99
+ code: string;
100
+ validDate: string;
101
+ originData?: any;
102
+ }) => void;
103
+ /** 是否使用外部详情处理(当为 true 且提供了 onDetail 时,不显示内部模态框) */
104
+ useExternalDetail?: boolean;
105
+ /** 单选或者多选 */
106
+ mode?: 'multiple' | 'single';
107
+ /** 是否展示选中图标 */
108
+ showActiveIcon?: boolean;
109
+ /** 开启编辑金额 */
110
+ enableEditAmount?: boolean;
111
+ /** 显示状态标识 */
112
+ showStatus?: boolean;
113
+ /** 名称标题字号字重颜色配置 */
114
+ nameTitleStyle?: {
115
+ fontSize: number;
116
+ fontWeight: number;
117
+ color: string;
118
+ };
119
+ /** 卡片状态 */
120
+ cardStatus?: 'used' | 'expired' | 'disabled' | 'conflict';
121
+ /** 自定义余额格式化函数,如果提供则优先使用 */
122
+ formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
123
+ /** 自定义余额标题格式化函数,如果提供则优先使用 */
124
+ formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
125
+ /** 自定义使用金额格式化函数,如果提供则优先使用 */
126
+ formatRedeem?: (redeem?: number, option?: FormatOption) => React.ReactNode;
127
+ /** 自定义使用金额标题格式化函数,如果提供则优先使用 */
128
+ formatRedeemTitle?: (redeemTitle?: string, option?: FormatOption) => React.ReactNode;
129
+ /** 最大使用金额 */
130
+ maxRedeem?: number;
131
+ /** 编辑金额前事件 */
132
+ onBeforeEditAmount?: (value: any) => Promise<any> | boolean | void;
81
133
  [key: string]: any;
82
134
  }
83
135
  declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;