@pisell/materials 6.2.35 → 6.2.37

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 (153) 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 +148 -164
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +25 -39
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +25 -39
  11. package/es/components/batch-editor/index.d.ts +0 -1
  12. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  15. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  18. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  20. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  21. package/es/components/dataSourceComponents/fields/index.d.ts +19 -20
  22. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  23. package/es/components/drag-sort-tree/index.d.ts +1 -0
  24. package/es/components/filter/index.d.ts +0 -1
  25. package/es/components/iconfont/index.js +1 -1
  26. package/es/components/list/index.d.ts +0 -1
  27. package/es/components/page/index.d.ts +0 -1
  28. package/es/components/pisellCardList/index.d.ts +21 -1
  29. package/es/components/pisellCardList/index.js +25 -1
  30. package/es/components/pisellCheckboxGroup/index.d.ts +1 -0
  31. package/es/components/pisellCheckboxGroup/index.js +2 -2
  32. package/es/components/pisellCheckboxGroup/index.less +13 -1
  33. package/es/components/pisellLoading/index.d.ts +0 -1
  34. package/es/components/pisellWalletPassCard/index.d.ts +44 -0
  35. package/es/components/pisellWalletPassCard/index.js +233 -66
  36. package/es/components/pisellWalletPassCard/index.less +37 -7
  37. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -1
  38. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
  39. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
  40. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  41. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  42. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  43. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  44. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  45. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  46. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  47. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  48. package/es/components/productCard/cartSkuCard/index.d.ts +0 -1
  49. package/es/components/productCard/components/Action/index.d.ts +0 -1
  50. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  51. package/es/components/productCard/components/Header/index.d.ts +0 -1
  52. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  53. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  54. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  55. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  56. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  57. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  58. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  59. package/es/components/table/Actions/index.d.ts +0 -1
  60. package/es/components/table/BasicTable/index.d.ts +0 -1
  61. package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
  62. package/es/components/table/Table/AddFieldModal/index.js +13 -13
  63. package/es/components/table/Table/AddFieldModal/index.less +11 -11
  64. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  65. package/es/components/table/Table/fields/index.d.ts +0 -1
  66. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  67. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  68. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  69. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  70. package/es/components/table/Table/utils.d.ts +1 -1
  71. package/es/components/table/View/index.d.ts +0 -1
  72. package/es/components/versionSelect/index.d.ts +0 -1
  73. package/es/index.d.ts +1 -0
  74. package/es/locales/en-US.d.ts +3 -0
  75. package/es/locales/en-US.js +6 -2
  76. package/es/locales/zh-CN.d.ts +3 -0
  77. package/es/locales/zh-CN.js +6 -2
  78. package/es/locales/zh-TW.d.ts +3 -0
  79. package/es/locales/zh-TW.js +6 -2
  80. package/es/utils/platform.d.ts +1 -1
  81. package/lib/components/batch-editor/index.d.ts +0 -1
  82. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  83. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  84. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  85. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  86. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  87. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  88. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  89. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  90. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  91. package/lib/components/dataSourceComponents/fields/index.d.ts +19 -20
  92. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  93. package/lib/components/drag-sort-tree/index.d.ts +1 -0
  94. package/lib/components/filter/index.d.ts +0 -1
  95. package/lib/components/iconfont/index.js +1 -1
  96. package/lib/components/list/index.d.ts +0 -1
  97. package/lib/components/page/index.d.ts +0 -1
  98. package/lib/components/pisellCardList/index.d.ts +21 -1
  99. package/lib/components/pisellCardList/index.js +25 -1
  100. package/lib/components/pisellCheckboxGroup/index.d.ts +1 -0
  101. package/lib/components/pisellCheckboxGroup/index.js +2 -1
  102. package/lib/components/pisellCheckboxGroup/index.less +13 -1
  103. package/lib/components/pisellLoading/index.d.ts +0 -1
  104. package/lib/components/pisellWalletPassCard/index.d.ts +44 -0
  105. package/lib/components/pisellWalletPassCard/index.js +187 -48
  106. package/lib/components/pisellWalletPassCard/index.less +37 -7
  107. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -1
  108. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
  109. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
  110. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  111. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  112. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  113. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  114. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  115. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  116. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  117. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  118. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -1
  119. package/lib/components/productCard/components/Action/index.d.ts +0 -1
  120. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  121. package/lib/components/productCard/components/Header/index.d.ts +0 -1
  122. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  123. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  124. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  125. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  126. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  127. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  128. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  129. package/lib/components/table/Actions/index.d.ts +0 -1
  130. package/lib/components/table/BasicTable/index.d.ts +0 -1
  131. package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
  132. package/lib/components/table/Table/AddFieldModal/index.js +9 -9
  133. package/lib/components/table/Table/AddFieldModal/index.less +11 -11
  134. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  135. package/lib/components/table/Table/fields/index.d.ts +0 -1
  136. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  137. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  138. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  139. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  140. package/lib/components/table/Table/utils.d.ts +1 -1
  141. package/lib/components/table/View/index.d.ts +0 -1
  142. package/lib/components/versionSelect/index.d.ts +0 -1
  143. package/lib/index.d.ts +1 -0
  144. package/lib/locales/en-US.d.ts +3 -0
  145. package/lib/locales/en-US.js +6 -2
  146. package/lib/locales/zh-CN.d.ts +3 -0
  147. package/lib/locales/zh-CN.js +6 -2
  148. package/lib/locales/zh-TW.d.ts +3 -0
  149. package/lib/locales/zh-TW.js +6 -2
  150. package/lib/utils/platform.d.ts +1 -1
  151. package/lowcode/pisell-card-list/meta.ts +50 -1
  152. package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
  153. package/package.json +11 -10
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface BatchEditorProps {
4
3
  columns: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItem: (props: any) => JSX.Element;
3
2
  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?: "custom" | "default" | "api" | undefined;
46
+ optionSourceType?: "default" | "custom" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface BaseFilterItem {
4
3
  name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from '../../../filter/types';
3
2
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
4
3
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Drawer } from 'antd';
2
3
  import { OperationItem } from '../type';
3
4
  declare const useDrawerState: (operationContent?: {
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
52
52
  width: number;
53
53
  align: "center" | "left" | "right";
54
54
  fixed: false | "left" | "right";
55
- type: "button" | "link";
55
+ type: "link" | "button";
56
56
  items: OperationItem[];
57
57
  } | undefined;
58
58
  operationContent?: {
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
70
  useCustomAction: boolean;
71
71
  actionType: string;
72
72
  openMode: "modal" | "drawer";
73
- openContentSize: "small" | "large" | "middle";
73
+ openContentSize: "small" | "middle" | "large";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
2
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
3
  export default DataSourceWrapper;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
2
  options?: any;
4
- optionSourceType?: "custom" | "default" | "api" | undefined;
3
+ optionSourceType?: "default" | "custom" | "api" | undefined;
5
4
  labelField: string;
6
5
  valueField: string;
7
6
  extraParams?: Record<string, any> | undefined;
@@ -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) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const formFieldMap: {
3
2
  FormItemCheckbox: import("react").FC<{}> & {
4
3
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -35,7 +34,7 @@ declare const formFieldMap: {
35
34
  };
36
35
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
36
  options?: any;
38
- optionSourceType?: "custom" | "default" | "api" | undefined;
37
+ optionSourceType?: "default" | "custom" | "api" | undefined;
39
38
  labelField: string;
40
39
  valueField: string;
41
40
  extraParams?: Record<string, any> | undefined;
@@ -60,21 +59,11 @@ declare const formFieldMap: {
60
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
61
  };
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("./IconSelect/type").IconSelectProps & 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("./Upload/type").UploadProps & 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("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
64
- options?: any;
65
- optionSourceType?: "custom" | "default" | "api" | undefined;
66
- labelField: string;
67
- valueField: string;
68
- extraParams?: Record<string, any> | undefined;
69
- } & {
70
- dataSource?: any;
71
- }) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
72
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
63
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
73
64
  } & {
74
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
75
- }) | 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 & {
76
- onChange: (value: string) => void;
77
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
65
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
+ }) | 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> & {
78
67
  JSON: import("react").FC<any>;
79
68
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
80
69
  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>;
@@ -94,9 +83,19 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
94
83
  name?: string | undefined;
95
84
  fieldKey?: string | undefined;
96
85
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
97
- }) | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
98
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
86
+ }) | (import("react").FC<{}> & {
87
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
99
88
  } & {
100
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
101
- });
89
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
+ }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
91
+ options?: any;
92
+ optionSourceType?: "default" | "custom" | "api" | undefined;
93
+ labelField: string;
94
+ valueField: string;
95
+ extraParams?: Record<string, any> | undefined;
96
+ } & {
97
+ dataSource?: any;
98
+ }) => 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 & {
99
+ onChange: (value: string) => void;
100
+ } & 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("./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
101
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ValueProps, SortType } from '../types';
3
4
  declare type IdType = string | number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { SortType } from './types';
3
4
  declare const DragSortTree: (props: SortType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import { createFromIconfontCN } from '@ant-design/icons';
3
3
  import React from 'react';
4
4
  var MyIcon = createFromIconfontCN({
5
- scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.8.js' // 在 iconfont.cn 上生成
5
+ scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont1.9.js' // 在 iconfont.cn 上生成
6
6
  });
7
7
  var IconFont = function IconFont(props) {
8
8
  return /*#__PURE__*/React.createElement(MyIcon, _extends({}, props, {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const List: {
4
3
  (props: any): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  }
@@ -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'];
@@ -68,6 +68,26 @@ export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'opt
68
68
  beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
69
69
  /** 编辑弹窗点击提交 */
70
70
  onConfirmEdit?: (value: any, index: number) => 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: string, index: number) => 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;
71
91
  }
72
92
  declare const _default: React.NamedExoticComponent<PisellCardListProps>;
73
93
  export default _default;
@@ -37,7 +37,14 @@ var PisellCardList = function PisellCardList(props) {
37
37
  showValidDate = props.showValidDate,
38
38
  empty = props.empty,
39
39
  showEmpty = props.showEmpty,
40
- showBalanceSymbol = props.showBalanceSymbol;
40
+ showBalanceSymbol = props.showBalanceSymbol,
41
+ showStatus = props.showStatus,
42
+ nameTitleStyle = props.nameTitleStyle,
43
+ enableEditAmount = props.enableEditAmount,
44
+ useExternalDetail = props.useExternalDetail,
45
+ onDetail = props.onDetail,
46
+ formatBalance = props.formatBalance,
47
+ formatBalanceTitle = props.formatBalanceTitle;
41
48
  return data.length ? /*#__PURE__*/React.createElement(PisellCheckboxGroup, {
42
49
  options: data,
43
50
  value: value,
@@ -51,6 +58,11 @@ var PisellCardList = function PisellCardList(props) {
51
58
  renderOption: function renderOption(item, active, index) {
52
59
  return /*#__PURE__*/React.createElement(PisellWalletPassCard, _extends({}, item, {
53
60
  active: active,
61
+ mode: mode,
62
+ showActiveIcon: true,
63
+ showStatus: showStatus || (item === null || item === void 0 ? void 0 : item.showStatus),
64
+ cardStatus: item === null || item === void 0 ? void 0 : item.cardStatus,
65
+ nameTitleStyle: nameTitleStyle || (item === null || item === void 0 ? void 0 : item.nameTitleStyle),
54
66
  showName: showName || (item === null || item === void 0 ? void 0 : item.showName),
55
67
  showBalance: showBalance || (item === null || item === void 0 ? void 0 : item.showBalance),
56
68
  showCode: showCode || (item === null || item === void 0 ? void 0 : item.showCode),
@@ -63,14 +75,26 @@ var PisellCardList = function PisellCardList(props) {
63
75
  showBalanceSymbol: showBalanceSymbol || (item === null || item === void 0 ? void 0 : item.showBalanceSymbol),
64
76
  showActions: props.showActions || (item === null || item === void 0 ? void 0 : item.showActions),
65
77
  actions: props.actions || (item === null || item === void 0 ? void 0 : item.actions),
78
+ enableEditAmount: enableEditAmount || (item === null || item === void 0 ? void 0 : item.enableEditAmount),
79
+ useExternalDetail: useExternalDetail || (item === null || item === void 0 ? void 0 : item.useExternalDetail),
80
+ onDetail: function onDetail(record) {
81
+ var _props$onDetail;
82
+ return props === null || props === void 0 || (_props$onDetail = props.onDetail) === null || _props$onDetail === void 0 ? void 0 : _props$onDetail.call(props, record, index);
83
+ },
66
84
  beforeEdit: function beforeEdit(record) {
67
85
  var _props$beforeEdit;
68
86
  return props === null || props === void 0 || (_props$beforeEdit = props.beforeEdit) === null || _props$beforeEdit === void 0 ? void 0 : _props$beforeEdit.call(props, record, index);
69
87
  },
88
+ onConfirmEditAmount: function onConfirmEditAmount(value) {
89
+ var _props$onConfirmEditA;
90
+ (_props$onConfirmEditA = props.onConfirmEditAmount) === null || _props$onConfirmEditA === void 0 || _props$onConfirmEditA.call(props, value, index);
91
+ },
70
92
  onConfirmEdit: function onConfirmEdit(newVal) {
71
93
  var _props$onConfirmEdit;
72
94
  (_props$onConfirmEdit = props.onConfirmEdit) === null || _props$onConfirmEdit === void 0 || _props$onConfirmEdit.call(props, newVal, index);
73
95
  },
96
+ formatBalance: formatBalance || (item === null || item === void 0 ? void 0 : item.formatBalance),
97
+ formatBalanceTitle: formatBalanceTitle || (item === null || item === void 0 ? void 0 : item.formatBalanceTitle),
74
98
  type: type,
75
99
  style: direction === 'vertical' || direction === 'horizontal' && fullWidth ? {
76
100
  width: '100%'
@@ -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;
@@ -173,9 +173,9 @@ var PisellCheckboxGroup = function PisellCheckboxGroup(props) {
173
173
  }), options.map(function (option, index) {
174
174
  var active = _value.includes(option[rowKey]);
175
175
  return /*#__PURE__*/React.createElement(PisellRow, {
176
- className: classNames('pisell-checkbox-group-item', optionClassName, _defineProperty({
176
+ className: classNames('pisell-checkbox-group-item', optionClassName, _defineProperty(_defineProperty({
177
177
  'pisell-checkbox-group-item-active': active
178
- }, optionActiveClassName, active)),
178
+ }, optionActiveClassName, active), 'pisell-checkbox-group-item-error', option.error)),
179
179
  key: option[rowKey],
180
180
  gap: 10,
181
181
  style: rowStyle,
@@ -24,11 +24,23 @@
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;
29
32
  }
30
33
 
31
34
  }
35
+
36
+ &.pisell-checkbox-group-item-error {
37
+ &::before {
38
+ border-color: var(--Error-500, #F04438);
39
+ border-width: 2px;
40
+ background: var(--Error-50, #FEF3F2);
41
+ z-index: 1;
42
+ }
43
+ }
32
44
  }
33
45
  }
34
46
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SpinProps } from 'antd';
3
2
  import './index.less';
4
3
  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
  /** 卡片样式 */
@@ -78,6 +87,41 @@ export interface PisellWalletPassCardProps {
78
87
  beforeEdit?: (value: any) => Promise<any> | boolean | void;
79
88
  /** 编辑弹窗点击提交 */
80
89
  onConfirmEdit?: (value: any) => void;
90
+ /** 编辑金额事件 */
91
+ onConfirmEditAmount?: (value: string) => 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';
121
+ /** 自定义余额格式化函数,如果提供则优先使用 */
122
+ formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
123
+ /** 自定义余额标题格式化函数,如果提供则优先使用 */
124
+ formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
81
125
  [key: string]: any;
82
126
  }
83
127
  declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;