@pisell/materials 1.0.975 → 1.0.976
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.js +3 -3
- package/es/components/dataSourceComponents/dataSourceForm/serve.js +2 -2
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/urlUtils.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/serve.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.js +1 -1
- package/package.json +3 -3
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -5
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -101
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -17
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/es/components/hardwareErrorTip/demo.d.ts +0 -3
- package/es/components/hardwareErrorTip/errorCard/index.d.ts +0 -28
- package/es/components/hardwareErrorTip/index.d.ts +0 -19
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/page/index.d.ts +0 -8
- package/es/components/pisellCardList/index.d.ts +0 -107
- package/es/components/pisellGoodPassCard/index.d.ts +0 -50
- package/es/components/pisellQRScanner/index.d.ts +0 -24
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/pisellWalletPassCard/index.d.ts +0 -146
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/productCard/index.d.ts +0 -7
- package/es/components/select/index.d.ts +0 -9
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/es/components/walletCard/index.d.ts +0 -77
- package/es/index.d.ts +0 -150
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -5
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -101
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -17
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/lib/components/hardwareErrorTip/demo.d.ts +0 -3
- package/lib/components/hardwareErrorTip/errorCard/index.d.ts +0 -28
- package/lib/components/hardwareErrorTip/index.d.ts +0 -19
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/page/index.d.ts +0 -8
- package/lib/components/pisellCardList/index.d.ts +0 -107
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
- package/lib/components/pisellQRScanner/index.d.ts +0 -24
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -146
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/productCard/index.d.ts +0 -7
- package/lib/components/select/index.d.ts +0 -9
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/lib/components/walletCard/index.d.ts +0 -77
- package/lib/index.d.ts +0 -150
|
@@ -301,9 +301,9 @@ export var getFormSettingMetaData = /*#__PURE__*/function () {
|
|
|
301
301
|
queryParams.append('channel_code', channelCode);
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
// 当需要包含board_code时,格式为 business_code
|
|
304
|
+
// 当需要包含board_code时,格式为 business_code+channel_code
|
|
305
305
|
if (isBoard && businessCode && channelCode) {
|
|
306
|
-
queryParams.append('board_code', "".concat(businessCode, "
|
|
306
|
+
queryParams.append('board_code', "".concat(businessCode, "+").concat(channelCode));
|
|
307
307
|
}
|
|
308
308
|
url = "/tenant/setting?".concat(queryParams.toString());
|
|
309
309
|
return _context10.abrupt("return", request.getRequest().get(url, {}, {
|
|
@@ -71,7 +71,7 @@ var SubmitButton = function SubmitButton(props) {
|
|
|
71
71
|
urlParams = getUrlParams();
|
|
72
72
|
business_code = urlParams.business_code;
|
|
73
73
|
channel_code = urlParams.channel_code; // 只有当isBoard参数为1时才设置boardCode
|
|
74
|
-
board_code = urlParams.isBoard === '1' && channel_code && channel_code ? "".concat(business_code, "
|
|
74
|
+
board_code = urlParams.isBoard === '1' && channel_code && channel_code ? "".concat(business_code, "+").concat(channel_code) : undefined;
|
|
75
75
|
_context.next = 9;
|
|
76
76
|
return updateTenantSetting({
|
|
77
77
|
business_code: business_code,
|
|
@@ -31,7 +31,7 @@ export var getFormSettingParams = function getFormSettingParams(urlParams) {
|
|
|
31
31
|
return {
|
|
32
32
|
businessCode: params.businessCode || params.business_code,
|
|
33
33
|
channelCode: params.channelCode || params.channel_code,
|
|
34
|
-
isBoard: params.
|
|
34
|
+
isBoard: params.is_board === '1'
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -153,7 +153,7 @@ var getFormSettingMetaData = async (params) => {
|
|
|
153
153
|
queryParams.append("channel_code", channelCode);
|
|
154
154
|
}
|
|
155
155
|
if (isBoard && businessCode && channelCode) {
|
|
156
|
-
queryParams.append("board_code", `${businessCode}
|
|
156
|
+
queryParams.append("board_code", `${businessCode}+${channelCode}`);
|
|
157
157
|
}
|
|
158
158
|
const url = `/tenant/setting?${queryParams.toString()}`;
|
|
159
159
|
return import_utils.request.getRequest().get(url, {}, {
|
|
@@ -71,7 +71,7 @@ var SubmitButton = (props) => {
|
|
|
71
71
|
const urlParams = (0, import_urlUtils.getUrlParams)();
|
|
72
72
|
const business_code = urlParams.business_code;
|
|
73
73
|
const channel_code = urlParams.channel_code;
|
|
74
|
-
const board_code = urlParams.isBoard === "1" && channel_code && channel_code ? `${business_code}
|
|
74
|
+
const board_code = urlParams.isBoard === "1" && channel_code && channel_code ? `${business_code}+${channel_code}` : void 0;
|
|
75
75
|
return await (0, import_serve.updateTenantSetting)({
|
|
76
76
|
business_code,
|
|
77
77
|
channel_code,
|
|
@@ -39,7 +39,7 @@ var getFormSettingParams = (urlParams) => {
|
|
|
39
39
|
return {
|
|
40
40
|
businessCode: params.businessCode || params.business_code,
|
|
41
41
|
channelCode: params.channelCode || params.channel_code,
|
|
42
|
-
isBoard: params.
|
|
42
|
+
isBoard: params.is_board === "1"
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
var saveFormSettingMeta = async (sectionCodes, data, businessCode, channelCode, isBoard) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.976",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"antd-mobile": "^5.38.1",
|
|
76
76
|
"vod-js-sdk-v6": "^1.4.11",
|
|
77
77
|
"react-camera-pro": "1.4.0",
|
|
78
|
-
"@pisell/
|
|
78
|
+
"@pisell/utils": "1.0.55",
|
|
79
79
|
"@pisell/date-picker": "1.0.127",
|
|
80
|
-
"@pisell/
|
|
80
|
+
"@pisell/icon": "0.0.10"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"react": "^18.0.0",
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import { ModeType } from './type';
|
|
4
|
-
import './style.less';
|
|
5
|
-
export interface WithModeProps {
|
|
6
|
-
renderMode?: ModeType;
|
|
7
|
-
value?: any;
|
|
8
|
-
onChange?: (value: any) => void;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @title: 增加renderMode属性
|
|
13
|
-
* @description: 基于renderMode属性控制渲染模式
|
|
14
|
-
* @return: *
|
|
15
|
-
* @Author: shengjie.zuo
|
|
16
|
-
* @Date: 2024-11-23 17:13:18
|
|
17
|
-
*/
|
|
18
|
-
export declare const withMode: <P extends object>(FieldComponent: React.ComponentType<P>, ReadPrettyComponent?: React.ComponentType<P & {
|
|
19
|
-
renderMode: ModeType;
|
|
20
|
-
}> | undefined, transformProps?: ((props: P, renderMode: ModeType) => P) | undefined) => React.FC<P & WithModeProps>;
|
|
21
|
-
export interface WithFormItemProps {
|
|
22
|
-
name: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
mode?: ModeType;
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
export declare const formItemNameReplace: (name: string) => string;
|
|
28
|
-
export declare const formItemNameReverse: (name: string) => string;
|
|
29
|
-
export declare const isValidDomain: (value: string) => boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @title: 追加formItem层
|
|
32
|
-
* @description:
|
|
33
|
-
* @return: *
|
|
34
|
-
* @Author: shengjie.zuo
|
|
35
|
-
* @Date: 2024-11-23 17:14:25
|
|
36
|
-
*/
|
|
37
|
-
export declare const withFormItem: <P extends object>(WrappedComponent: React.ComponentType<P>, overlayProps?: {
|
|
38
|
-
otherFormItemProps?: Record<string, any> | ((props: Record<string, any>, others?: Record<string, any>) => Record<string, any>) | undefined;
|
|
39
|
-
innerProps?: Record<string, any> | undefined;
|
|
40
|
-
} | undefined) => React.FC<P & WithFormItemProps>;
|
|
41
|
-
export declare const withDataSource: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
42
|
-
dataSource?: any;
|
|
43
|
-
}) => JSX.Element;
|
|
44
|
-
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
45
|
-
options?: any;
|
|
46
|
-
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
47
|
-
labelField: string;
|
|
48
|
-
valueField: string;
|
|
49
|
-
extraParams?: Record<string, any> | undefined;
|
|
50
|
-
}) => JSX.Element;
|
|
51
|
-
export declare const getNestedValue: (obj: Record<string, any>, path: string) => Record<string, any>;
|
|
52
|
-
export declare const renderValueWithMap: (value: any, valueMap?: Record<string, string>, renderMode?: ModeType) => JSX.Element | null;
|
|
53
|
-
export declare function toArr(str: string | number | (string | number)[]): (string | number)[];
|
|
54
|
-
export declare const filterSystemFields: (params: Record<string, any>) => Record<string, any>;
|
|
55
|
-
export declare const transformFormObjToArrayWithUntouched: (obj: Record<string, any>) => any[];
|
|
56
|
-
export declare const setFormFieldsUntouched: (form: FormInstance) => void;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceTableProps } from '../type';
|
|
3
|
-
import { OperationItem } from '../type';
|
|
4
|
-
interface UseTablePropsProps {
|
|
5
|
-
data: any;
|
|
6
|
-
originProps: DataSourceTableProps;
|
|
7
|
-
openDrawer: (type: OperationItem) => void;
|
|
8
|
-
closeDrawer: () => void;
|
|
9
|
-
refreshData: () => void;
|
|
10
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
11
|
-
tableRef: any;
|
|
12
|
-
getInitialValues: () => Record<string, any>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 处理table的props
|
|
16
|
-
* 转换title
|
|
17
|
-
* @param props
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
|
-
currentComponentId: any;
|
|
22
|
-
title: string | number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
23
|
-
pagination: {
|
|
24
|
-
total: number;
|
|
25
|
-
current: number;
|
|
26
|
-
pageSize: number;
|
|
27
|
-
size: string;
|
|
28
|
-
showSizeChanger: boolean;
|
|
29
|
-
};
|
|
30
|
-
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle: string | number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
32
|
-
buttons: any[] | null;
|
|
33
|
-
filter: {
|
|
34
|
-
dom: any;
|
|
35
|
-
items: any;
|
|
36
|
-
} | null;
|
|
37
|
-
onRow: (record: any) => any;
|
|
38
|
-
actionButtons: any[] | null;
|
|
39
|
-
__id?: string | undefined;
|
|
40
|
-
currentSettingKey?: string | undefined;
|
|
41
|
-
titleButtons?: {
|
|
42
|
-
show: boolean;
|
|
43
|
-
maxCount: number;
|
|
44
|
-
items: OperationItem[];
|
|
45
|
-
} | undefined;
|
|
46
|
-
tableButtons?: {
|
|
47
|
-
show: boolean;
|
|
48
|
-
maxCount: number;
|
|
49
|
-
items: OperationItem[];
|
|
50
|
-
} | undefined;
|
|
51
|
-
operation?: {
|
|
52
|
-
show: boolean;
|
|
53
|
-
title: string;
|
|
54
|
-
width: number;
|
|
55
|
-
align: "center" | "left" | "right";
|
|
56
|
-
fixed: false | "left" | "right";
|
|
57
|
-
type: "link" | "button";
|
|
58
|
-
items: OperationItem[];
|
|
59
|
-
} | undefined;
|
|
60
|
-
operationContent?: {
|
|
61
|
-
[key: string]: React.ReactNode;
|
|
62
|
-
} | undefined;
|
|
63
|
-
dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
|
|
64
|
-
search?: {
|
|
65
|
-
show: boolean;
|
|
66
|
-
placeholder: string;
|
|
67
|
-
} | undefined;
|
|
68
|
-
__designMode: string;
|
|
69
|
-
componentId: string;
|
|
70
|
-
clickToDetail?: {
|
|
71
|
-
show: boolean;
|
|
72
|
-
useCustomAction: boolean;
|
|
73
|
-
actionType: string;
|
|
74
|
-
openMode: "modal" | "drawer";
|
|
75
|
-
openContentSize: "small" | "middle" | "large";
|
|
76
|
-
openTitle: string;
|
|
77
|
-
key: string;
|
|
78
|
-
} | undefined;
|
|
79
|
-
filterBy?: Record<string, any> | undefined;
|
|
80
|
-
sortBy: string;
|
|
81
|
-
tabs?: {
|
|
82
|
-
show: boolean;
|
|
83
|
-
type: string;
|
|
84
|
-
items: {
|
|
85
|
-
name: string;
|
|
86
|
-
filterBy: Record<string, any>;
|
|
87
|
-
sortBy: string;
|
|
88
|
-
}[];
|
|
89
|
-
} | undefined;
|
|
90
|
-
onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
|
|
91
|
-
onDeleteFinish?: ((record: Record<string, any>) => void) | undefined;
|
|
92
|
-
extraParams?: {
|
|
93
|
-
list?: Record<string, any> | undefined;
|
|
94
|
-
get?: Record<string, any> | undefined;
|
|
95
|
-
update?: Record<string, any> | undefined;
|
|
96
|
-
create?: Record<string, any> | undefined;
|
|
97
|
-
destroy?: Record<string, any> | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
localSettings?: import("../../../table/types").LocalSettingsType | undefined;
|
|
100
|
-
};
|
|
101
|
-
export default useTableProps;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { LocalSettingsType } from '../../table/types';
|
|
4
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
5
|
-
export declare type OperationItem = {
|
|
6
|
-
label?: string;
|
|
7
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
8
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
9
|
-
openTitle: string;
|
|
10
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
11
|
-
key: string;
|
|
12
|
-
buttonProps?: any;
|
|
13
|
-
onClick?: (record: any) => void;
|
|
14
|
-
afterClose?: () => void;
|
|
15
|
-
};
|
|
16
|
-
export interface DataSourceTableProps {
|
|
17
|
-
__id?: string;
|
|
18
|
-
currentComponentId?: string;
|
|
19
|
-
currentSettingKey?: string;
|
|
20
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
21
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
22
|
-
titleButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
tableButtons?: {
|
|
28
|
-
show: boolean;
|
|
29
|
-
maxCount: number;
|
|
30
|
-
items: OperationItem[];
|
|
31
|
-
};
|
|
32
|
-
buttons?: any[];
|
|
33
|
-
operation?: {
|
|
34
|
-
show: boolean;
|
|
35
|
-
title: string;
|
|
36
|
-
width: number;
|
|
37
|
-
align: 'left' | 'center' | 'right';
|
|
38
|
-
fixed: 'left' | 'right' | false;
|
|
39
|
-
type: 'link' | 'button';
|
|
40
|
-
items: OperationItem[];
|
|
41
|
-
};
|
|
42
|
-
operationContent?: {
|
|
43
|
-
[key: string]: React.ReactNode;
|
|
44
|
-
};
|
|
45
|
-
dataSource: DataSourceType;
|
|
46
|
-
columns: ColumnType<any>[];
|
|
47
|
-
filter: any;
|
|
48
|
-
search?: {
|
|
49
|
-
show: boolean;
|
|
50
|
-
placeholder: string;
|
|
51
|
-
};
|
|
52
|
-
__designMode: string;
|
|
53
|
-
componentId: string;
|
|
54
|
-
clickToDetail?: {
|
|
55
|
-
show: boolean;
|
|
56
|
-
useCustomAction: boolean;
|
|
57
|
-
actionType: string;
|
|
58
|
-
openMode: 'modal' | 'drawer';
|
|
59
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
60
|
-
openTitle: string;
|
|
61
|
-
key: string;
|
|
62
|
-
};
|
|
63
|
-
onRow?: any;
|
|
64
|
-
filterBy?: Record<string, any>;
|
|
65
|
-
sortBy: string;
|
|
66
|
-
tabs?: {
|
|
67
|
-
show: boolean;
|
|
68
|
-
type: string;
|
|
69
|
-
items: {
|
|
70
|
-
name: string;
|
|
71
|
-
filterBy: Record<string, any>;
|
|
72
|
-
sortBy: string;
|
|
73
|
-
}[];
|
|
74
|
-
};
|
|
75
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
76
|
-
onDeleteFinish?: (record: Record<string, any>) => void;
|
|
77
|
-
extraParams?: {
|
|
78
|
-
list?: Record<string, any>;
|
|
79
|
-
get?: Record<string, any>;
|
|
80
|
-
update?: Record<string, any>;
|
|
81
|
-
create?: Record<string, any>;
|
|
82
|
-
destroy?: Record<string, any>;
|
|
83
|
-
};
|
|
84
|
-
localSettings?: LocalSettingsType;
|
|
85
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import { ModeType } from '../../dataSourceForm/type';
|
|
4
|
-
declare type PhoneValue = string | {
|
|
5
|
-
phone: string;
|
|
6
|
-
countryCallingCode: string;
|
|
7
|
-
countryCode?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
10
|
-
renderMode: ModeType;
|
|
11
|
-
value?: PhoneValue;
|
|
12
|
-
onChange?: (value: PhoneValue) => void;
|
|
13
|
-
returnFormat?: 'string' | 'object';
|
|
14
|
-
inputRef?: any;
|
|
15
|
-
}
|
|
16
|
-
declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
17
|
-
export default MobileNumberInputWithMode;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
-
declare type PhoneValue = string | {
|
|
5
|
-
phone: string;
|
|
6
|
-
countryCallingCode: string;
|
|
7
|
-
};
|
|
8
|
-
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
9
|
-
renderMode: ModeType;
|
|
10
|
-
value?: PhoneValue;
|
|
11
|
-
onChange?: (value: PhoneValue) => void;
|
|
12
|
-
returnFormat?: 'string' | 'object';
|
|
13
|
-
inputRef?: any;
|
|
14
|
-
}
|
|
15
|
-
declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
16
|
-
export default PhoneNumberInputWithMode;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
declare const DEVICE_TYPE_MAP: {
|
|
3
|
-
readonly printer: any;
|
|
4
|
-
readonly barcode_scanner: any;
|
|
5
|
-
readonly cds: any;
|
|
6
|
-
readonly kds: any;
|
|
7
|
-
readonly display: any;
|
|
8
|
-
readonly card_reader: any;
|
|
9
|
-
readonly till: any;
|
|
10
|
-
readonly scale: any;
|
|
11
|
-
};
|
|
12
|
-
export interface ErrorCardData {
|
|
13
|
-
error_level: 0 | 1 | 2 | 3;
|
|
14
|
-
error_message: string;
|
|
15
|
-
error_code: string;
|
|
16
|
-
time: string;
|
|
17
|
-
device: {
|
|
18
|
-
device_type: keyof typeof DEVICE_TYPE_MAP;
|
|
19
|
-
device_name: string;
|
|
20
|
-
device_idfa: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
interface IErrorCardProps {
|
|
24
|
-
data: ErrorCardData;
|
|
25
|
-
onClose?: () => void;
|
|
26
|
-
}
|
|
27
|
-
declare const ErrorCard: (props: IErrorCardProps) => JSX.Element | null;
|
|
28
|
-
export default ErrorCard;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type StatisticsData } from './errorTipStatistics';
|
|
3
|
-
import { type ErrorCardData } from './errorCard';
|
|
4
|
-
import { type LogCardData } from './logCard';
|
|
5
|
-
import './index.less';
|
|
6
|
-
interface HardwareErrorTipProps {
|
|
7
|
-
statistics: StatisticsData;
|
|
8
|
-
errors?: ErrorCardData[];
|
|
9
|
-
logs?: LogCardData[];
|
|
10
|
-
onExportLogs?: (logs: any) => void;
|
|
11
|
-
onCloseError?: (error: ErrorCardData, index?: number) => void;
|
|
12
|
-
onTabChange?: (activeTab: string) => void;
|
|
13
|
-
activeTab?: string;
|
|
14
|
-
isLoadingErrors?: boolean;
|
|
15
|
-
isLoadingLogs?: boolean;
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
}
|
|
18
|
-
declare const HardwareErrorTip: React.FC<HardwareErrorTipProps>;
|
|
19
|
-
export default HardwareErrorTip;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface IconFontProps extends IconComponentProps {
|
|
4
|
-
type: string;
|
|
5
|
-
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
6
|
-
}
|
|
7
|
-
declare const IconFont: React.FC<IconFontProps>;
|
|
8
|
-
export default IconFont;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
|
|
3
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
-
import { PisellWalletPassCardProps, FormatOption } from '../pisellWalletPassCard';
|
|
5
|
-
import './index.less';
|
|
6
|
-
export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
|
|
7
|
-
platform?: PisellContextType['platform'];
|
|
8
|
-
/** 当用户查看完所有记录时,底部会显示此消息 */
|
|
9
|
-
endMessage?: React.ReactNode;
|
|
10
|
-
/** 加载下次数据时的加载站位 */
|
|
11
|
-
loader?: React.ReactNode;
|
|
12
|
-
/** 是否有更多数据 */
|
|
13
|
-
hasMore: boolean;
|
|
14
|
-
/** 加载更多数据回调 */
|
|
15
|
-
loadMoreData?: () => Promise<void>;
|
|
16
|
-
/** 当前list数据 */
|
|
17
|
-
data: PisellWalletPassCardProps[];
|
|
18
|
-
/** list空数据时展示内容 */
|
|
19
|
-
empty?: React.ReactNode;
|
|
20
|
-
/** 是否展示空状态 */
|
|
21
|
-
showEmpty?: boolean;
|
|
22
|
-
/** 是否展示卡片名称 */
|
|
23
|
-
showName?: boolean;
|
|
24
|
-
/** 是否展示店铺名称 */
|
|
25
|
-
showStoreName?: boolean;
|
|
26
|
-
/** 是否展示核销金额 */
|
|
27
|
-
showRedeem?: boolean;
|
|
28
|
-
/** 是否展示余额 */
|
|
29
|
-
showBalance?: boolean;
|
|
30
|
-
/** 是否展示编码 */
|
|
31
|
-
showCode?: boolean;
|
|
32
|
-
/** 是否展示到期时间 */
|
|
33
|
-
showValidDate?: boolean;
|
|
34
|
-
/** 使用日程信息计算有效期 */
|
|
35
|
-
validDateBySchedule?: boolean;
|
|
36
|
-
/** 日程列表 */
|
|
37
|
-
scheduleList?: any[];
|
|
38
|
-
/** 是否展示详情按钮 */
|
|
39
|
-
showDetail?: boolean;
|
|
40
|
-
/** 是否展示二维码 */
|
|
41
|
-
showQrCode?: boolean;
|
|
42
|
-
/** 是否展示封面图 */
|
|
43
|
-
showCover?: boolean;
|
|
44
|
-
/** 是否余额货币单位 */
|
|
45
|
-
showBalanceSymbol?: boolean;
|
|
46
|
-
/** 卡片大小 */
|
|
47
|
-
type?: 'default' | 'mini';
|
|
48
|
-
/** 展示操作按钮 */
|
|
49
|
-
showActions?: boolean;
|
|
50
|
-
/** 操作按钮配置 */
|
|
51
|
-
actions?: {
|
|
52
|
-
/** 按钮展示方式 */
|
|
53
|
-
layout: 'expanded' | 'collapsed';
|
|
54
|
-
/** detail 按钮配置 */
|
|
55
|
-
detail?: {
|
|
56
|
-
visible: boolean;
|
|
57
|
-
iconColor: string;
|
|
58
|
-
};
|
|
59
|
-
/** edit按钮配置 */
|
|
60
|
-
edit?: {
|
|
61
|
-
visible: boolean;
|
|
62
|
-
iconColor: string;
|
|
63
|
-
dialogTitle: string;
|
|
64
|
-
enableDialog: boolean;
|
|
65
|
-
fields: {
|
|
66
|
-
name: string;
|
|
67
|
-
label: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
72
|
-
beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
|
|
73
|
-
/** 编辑弹窗点击提交 */
|
|
74
|
-
onConfirmEdit?: (value: any, index: number, data: any) => void;
|
|
75
|
-
/** 是否展示状态标识 */
|
|
76
|
-
showStatus?: boolean;
|
|
77
|
-
/** 名称标题字号字重颜色配置 */
|
|
78
|
-
nameTitleStyle?: {
|
|
79
|
-
fontSize: number;
|
|
80
|
-
fontWeight: number;
|
|
81
|
-
color: string;
|
|
82
|
-
};
|
|
83
|
-
/** 开启编辑金额 */
|
|
84
|
-
enableEditAmount?: boolean;
|
|
85
|
-
/** 编辑金额事件 */
|
|
86
|
-
onConfirmEditAmount?: (value: number, index: number, data: any) => void;
|
|
87
|
-
/** 是否使用外部详情处理 */
|
|
88
|
-
useExternalDetail?: boolean;
|
|
89
|
-
/** 详情事件 */
|
|
90
|
-
onDetail?: (value: any, index: number) => void;
|
|
91
|
-
/** 自定义余额格式化函数,如果提供则优先使用 */
|
|
92
|
-
formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
|
|
93
|
-
/** 自定义余额标题格式化函数,如果提供则优先使用 */
|
|
94
|
-
formatBalanceTitle?: (balanceTitle?: string, option?: FormatOption) => React.ReactNode;
|
|
95
|
-
/** 自定义使用金额格式化函数,如果提供则优先使用 */
|
|
96
|
-
formatRedeem?: (redeem?: number, option?: FormatOption) => React.ReactNode;
|
|
97
|
-
/** 自定义使用金额标题格式化函数,如果提供则优先使用 */
|
|
98
|
-
formatRedeemTitle?: (redeemTitle?: string, option?: FormatOption) => React.ReactNode;
|
|
99
|
-
/** 编辑金额前事件 */
|
|
100
|
-
onBeforeEditAmount?: (value: any, index: number, data: any) => Promise<any> | boolean | void;
|
|
101
|
-
/** 选项点击事件 */
|
|
102
|
-
onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: any) => void;
|
|
103
|
-
/** 是否展示选中状态的背景色 */
|
|
104
|
-
showActiveBackground?: boolean;
|
|
105
|
-
}
|
|
106
|
-
declare const _default: React.NamedExoticComponent<PisellCardListProps>;
|
|
107
|
-
export default _default;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface ApplicableProductDetails {
|
|
4
|
-
amount: string;
|
|
5
|
-
type: string;
|
|
6
|
-
resource_id: number;
|
|
7
|
-
title: string;
|
|
8
|
-
original_amount: string;
|
|
9
|
-
}
|
|
10
|
-
interface Discount {
|
|
11
|
-
id: number;
|
|
12
|
-
product_name: string;
|
|
13
|
-
encoded: string;
|
|
14
|
-
code: string;
|
|
15
|
-
tag: string;
|
|
16
|
-
expire_time?: string;
|
|
17
|
-
product_id: number;
|
|
18
|
-
relation_type: string;
|
|
19
|
-
par_value: string;
|
|
20
|
-
used_par_value: string;
|
|
21
|
-
limit_status: string;
|
|
22
|
-
limited_relation_product_data: any;
|
|
23
|
-
balance: string;
|
|
24
|
-
format_title: any;
|
|
25
|
-
product: any;
|
|
26
|
-
savedAmount: number;
|
|
27
|
-
isDisabled: boolean;
|
|
28
|
-
isSelected?: boolean;
|
|
29
|
-
isAvailable?: boolean;
|
|
30
|
-
isUsed?: boolean;
|
|
31
|
-
applicableProductIds?: number[];
|
|
32
|
-
applicableProductDetails: ApplicableProductDetails[];
|
|
33
|
-
appliedProductDetails: any[];
|
|
34
|
-
}
|
|
35
|
-
export interface PisellGoodPassCardProps {
|
|
36
|
-
/**数据源 */
|
|
37
|
-
dataSource: Array<Discount>;
|
|
38
|
-
/**事件 */
|
|
39
|
-
onChange?: (current: {
|
|
40
|
-
id: string | number;
|
|
41
|
-
isSelected: boolean;
|
|
42
|
-
}) => void;
|
|
43
|
-
/**样式 */
|
|
44
|
-
style: React.CSSProperties;
|
|
45
|
-
/**快捷展示排序 */
|
|
46
|
-
mixedSort?: (val: Discount[]) => Discount[];
|
|
47
|
-
isInModal: boolean;
|
|
48
|
-
}
|
|
49
|
-
declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
|
|
50
|
-
export default index;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellQRScannerProps {
|
|
4
|
-
/** 是否可见 */
|
|
5
|
-
visible: boolean;
|
|
6
|
-
/** 是否显示上传图片按钮 */
|
|
7
|
-
showUpload?: boolean;
|
|
8
|
-
/** 关闭回调 */
|
|
9
|
-
onClose: () => void;
|
|
10
|
-
/** 扫码成功回调 */
|
|
11
|
-
onScan: (value: string) => void;
|
|
12
|
-
/**
|
|
13
|
-
* 样式属性,可选
|
|
14
|
-
* 注意: 不应传入renderMode等不必要属性
|
|
15
|
-
*/
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
/** 类名,可选 */
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* 二维码扫描组件
|
|
22
|
-
*/
|
|
23
|
-
declare const PisellQRScanner: React.FC<PisellQRScannerProps>;
|
|
24
|
-
export default PisellQRScanner;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellToastProps {
|
|
4
|
-
/** 提示内容 */
|
|
5
|
-
content: React.ReactNode;
|
|
6
|
-
/** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
|
|
7
|
-
duration?: number;
|
|
8
|
-
/** 是否展示action */
|
|
9
|
-
showAction?: boolean;
|
|
10
|
-
/** action文案 */
|
|
11
|
-
actionText?: string;
|
|
12
|
-
/** 关闭时触发的回调函数 */
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare const PisellToast: (props: PisellToastProps) => void;
|
|
16
|
-
export { useToast } from './squareToast';
|
|
17
|
-
export default PisellToast;
|