@pisell/materials 2.2.99 → 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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +4 -4
- package/build/lowcode/preview.js +6 -6
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +21 -21
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +22 -22
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/drag-sort-tree/TreeItem/index.js +2 -1
- package/es/components/iconfont/index.js +1 -1
- package/es/components/list/index.d.ts +1 -0
- package/es/components/lowCodePage/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.js +5 -1
- package/es/components/pisellAdjustPrice/type.d.ts +2 -0
- package/es/components/pisellCardList/index.d.ts +30 -2
- package/es/components/pisellCardList/index.js +38 -3
- package/es/components/pisellCardList/index.less +9 -1
- package/es/components/pisellCheckboxGroup/index.d.ts +2 -0
- package/es/components/pisellCheckboxGroup/index.js +5 -3
- package/es/components/pisellCheckboxGroup/index.less +22 -1
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellLoading/index.d.ts +1 -0
- package/es/components/pisellWalletPassCard/index.d.ts +53 -1
- package/es/components/pisellWalletPassCard/index.js +333 -75
- package/es/components/pisellWalletPassCard/index.less +48 -11
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +5 -1
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.js +1 -1
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/index.js +0 -2
- package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/es/components/productCard/components/Header/index.d.ts +1 -0
- package/es/components/productCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
- package/es/components/qrcode/index.d.ts +1 -0
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
- package/es/components/table/Table/AddFieldModal/index.js +13 -13
- package/es/components/table/Table/AddFieldModal/index.less +11 -11
- package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/View/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Number/index.js +4 -1
- package/es/components/virtual-keyboard/Number/types.d.ts +1 -0
- package/es/index.d.ts +1 -0
- package/es/locales/en-US.d.ts +6 -0
- package/es/locales/en-US.js +9 -2
- package/es/locales/zh-CN.d.ts +6 -0
- package/es/locales/zh-CN.js +9 -2
- package/es/locales/zh-TW.d.ts +6 -0
- package/es/locales/zh-TW.js +9 -2
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/drag-sort-tree/TreeItem/index.js +2 -1
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/list/index.d.ts +1 -0
- package/lib/components/lowCodePage/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.js +4 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +2 -0
- package/lib/components/pisellCardList/index.d.ts +30 -2
- package/lib/components/pisellCardList/index.js +38 -3
- package/lib/components/pisellCardList/index.less +9 -1
- package/lib/components/pisellCheckboxGroup/index.d.ts +2 -0
- package/lib/components/pisellCheckboxGroup/index.js +4 -1
- package/lib/components/pisellCheckboxGroup/index.less +22 -1
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellLoading/index.d.ts +1 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +53 -1
- package/lib/components/pisellWalletPassCard/index.js +253 -59
- package/lib/components/pisellWalletPassCard/index.less +48 -11
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/index.js +1 -1
- package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/index.d.ts +1 -0
- package/lib/components/productCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
- package/lib/components/qrcode/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
- package/lib/components/table/Table/AddFieldModal/index.js +9 -9
- package/lib/components/table/Table/AddFieldModal/index.less +11 -11
- package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Number/index.js +3 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/locales/en-US.d.ts +6 -0
- package/lib/locales/en-US.js +9 -2
- package/lib/locales/zh-CN.d.ts +6 -0
- package/lib/locales/zh-CN.js +9 -2
- package/lib/locales/zh-TW.d.ts +6 -0
- package/lib/locales/zh-TW.js +9 -2
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/pisell-card-list/meta.ts +50 -1
- package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
- package/package.json +11 -10
package/es/locales/zh-TW.js
CHANGED
|
@@ -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
|
};
|
package/es/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => boolean;
|
|
@@ -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?: "
|
|
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,
|
|
@@ -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: "
|
|
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" | "
|
|
74
|
+
openContentSize: "small" | "middle" | "large";
|
|
75
75
|
openTitle: string;
|
|
76
76
|
key: string;
|
|
77
77
|
} | undefined;
|
|
@@ -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?: "
|
|
4
|
+
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
5
5
|
labelField: string;
|
|
6
6
|
valueField: string;
|
|
7
7
|
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) =>
|
|
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?: "
|
|
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> |
|
|
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?: "
|
|
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<
|
|
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 };
|
|
@@ -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.
|
|
38
|
+
scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.11.js"
|
|
39
39
|
// 在 iconfont.cn 上生成
|
|
40
40
|
});
|
|
41
41
|
var IconFont = (props) => {
|
|
@@ -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,
|
|
@@ -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;
|
|
@@ -63,7 +63,18 @@ var PisellCardList = (props) => {
|
|
|
63
63
|
empty,
|
|
64
64
|
showEmpty,
|
|
65
65
|
showBalanceSymbol,
|
|
66
|
-
onChangeDebounce
|
|
66
|
+
onChangeDebounce,
|
|
67
|
+
showStatus,
|
|
68
|
+
nameTitleStyle,
|
|
69
|
+
enableEditAmount,
|
|
70
|
+
useExternalDetail,
|
|
71
|
+
onDetail,
|
|
72
|
+
formatBalance,
|
|
73
|
+
formatBalanceTitle,
|
|
74
|
+
formatRedeem,
|
|
75
|
+
formatRedeemTitle,
|
|
76
|
+
onBeforeEditAmount,
|
|
77
|
+
onItemClick
|
|
67
78
|
} = props;
|
|
68
79
|
return data.length ? /* @__PURE__ */ import_react.default.createElement(
|
|
69
80
|
import_pisellCheckboxGroup.default,
|
|
@@ -78,12 +89,18 @@ var PisellCardList = (props) => {
|
|
|
78
89
|
iconPosition: "hide",
|
|
79
90
|
fullWidth,
|
|
80
91
|
onChangeDebounce,
|
|
92
|
+
onItemClick,
|
|
81
93
|
renderOption: (item, active, index) => {
|
|
82
94
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
83
95
|
import_pisellWalletPassCard.default,
|
|
84
96
|
{
|
|
85
97
|
...item,
|
|
86
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),
|
|
87
104
|
showName: showName || (item == null ? void 0 : item.showName),
|
|
88
105
|
showBalance: showBalance || (item == null ? void 0 : item.showBalance),
|
|
89
106
|
showCode: showCode || (item == null ? void 0 : item.showCode),
|
|
@@ -96,16 +113,34 @@ var PisellCardList = (props) => {
|
|
|
96
113
|
showBalanceSymbol: showBalanceSymbol || (item == null ? void 0 : item.showBalanceSymbol),
|
|
97
114
|
showActions: props.showActions || (item == null ? void 0 : item.showActions),
|
|
98
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
|
+
},
|
|
99
122
|
beforeEdit: (record) => {
|
|
100
123
|
var _a;
|
|
101
124
|
return (_a = props == null ? void 0 : props.beforeEdit) == null ? void 0 : _a.call(props, record, index);
|
|
102
125
|
},
|
|
126
|
+
onConfirmEditAmount: (value2) => {
|
|
127
|
+
var _a;
|
|
128
|
+
(_a = props.onConfirmEditAmount) == null ? void 0 : _a.call(props, value2, index, item);
|
|
129
|
+
},
|
|
103
130
|
onConfirmEdit: (newVal) => {
|
|
104
131
|
var _a;
|
|
105
|
-
(_a = props.onConfirmEdit) == null ? void 0 : _a.call(props, newVal, index);
|
|
132
|
+
(_a = props.onConfirmEdit) == null ? void 0 : _a.call(props, newVal, index, item);
|
|
106
133
|
},
|
|
134
|
+
formatBalance: formatBalance || (item == null ? void 0 : item.formatBalance),
|
|
135
|
+
formatBalanceTitle: formatBalanceTitle || (item == null ? void 0 : item.formatBalanceTitle),
|
|
107
136
|
type,
|
|
108
|
-
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
|
+
}
|
|
109
144
|
}
|
|
110
145
|
);
|
|
111
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;
|
|
@@ -24,6 +25,7 @@ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivEl
|
|
|
24
25
|
optionClassName?: string;
|
|
25
26
|
optionActiveClassName?: string;
|
|
26
27
|
onChangeDebounce?: boolean;
|
|
28
|
+
onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: PisellCheckboxGroupOption) => void;
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* @title: PisellCheckboxGroup
|
|
@@ -64,6 +64,7 @@ var PisellCheckboxGroup = (props) => {
|
|
|
64
64
|
optionClassName,
|
|
65
65
|
optionActiveClassName,
|
|
66
66
|
onChangeDebounce,
|
|
67
|
+
onItemClick,
|
|
67
68
|
...rest
|
|
68
69
|
} = props;
|
|
69
70
|
const [_value, set_value] = (0, import_react2.useState)([]);
|
|
@@ -150,13 +151,15 @@ var PisellCheckboxGroup = (props) => {
|
|
|
150
151
|
optionClassName,
|
|
151
152
|
{
|
|
152
153
|
"pisell-checkbox-group-item-active": active,
|
|
153
|
-
[optionActiveClassName]: active
|
|
154
|
+
[optionActiveClassName]: active,
|
|
155
|
+
"pisell-checkbox-group-item-error": option.error
|
|
154
156
|
}
|
|
155
157
|
),
|
|
156
158
|
key: option[rowKey],
|
|
157
159
|
gap: 10,
|
|
158
160
|
style: rowStyle,
|
|
159
161
|
onClick: (e) => {
|
|
162
|
+
onItemClick == null ? void 0 : onItemClick(e, option);
|
|
160
163
|
if (option.disabled) return;
|
|
161
164
|
if (onChangeDebounce) {
|
|
162
165
|
run(option[rowKey], option);
|
|
@@ -24,10 +24,31 @@
|
|
|
24
24
|
|
|
25
25
|
&.pisell-checkbox-group-item-active {
|
|
26
26
|
&::before {
|
|
27
|
-
border-width:
|
|
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,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;
|