@pisell/materials 1.0.852 → 1.0.854
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 +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- 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/useTableQuery.d.ts +33 -0
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- 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/Input.Subdomain/index.d.ts +1 -1
- 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 +10 -10
- package/es/components/dataSourceComponents/fields/utils.d.ts +3 -0
- package/es/components/date-picker/datePickerCpt.d.ts +9 -0
- package/es/components/filter/index.d.ts +1 -0
- package/es/components/list/index.d.ts +1 -0
- package/es/components/lowCodePage/index.d.ts +1 -0
- package/es/components/media/index.js +340 -0
- package/es/components/media/index.less +100 -0
- package/es/components/pisellAvatar/index.d.ts +19 -0
- package/es/components/pisellCardList/index.d.ts +73 -0
- package/es/components/pisellCheckboxGroup/index.d.ts +36 -0
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/es/components/pisellGoodPassCard/index.d.ts +49 -0
- package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
- package/es/components/pisellInformationEntry/index.d.ts +33 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellLoading/index.d.ts +1 -0
- package/es/components/pisellText/components/Amount/index.d.ts +20 -0
- package/es/components/pisellWalletPassCard/index.d.ts +85 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +4 -0
- package/es/components/productCard/components/Header/index.d.ts +4 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +4 -0
- package/es/components/productCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/options/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 +4 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +10 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +14 -0
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +3 -0
- package/es/components/productCard/components/Warning/index.js +4 -4
- package/es/components/productCard/index.js +3 -3
- package/es/components/productCard/status.js +1 -1
- package/es/components/productCard/utils.d.ts +31 -0
- package/es/components/qrcode/index.d.ts +1 -0
- 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/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/View/index.d.ts +1 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +2 -2
- package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
- package/es/components/walletCard/Guide/index.d.ts +4 -0
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- 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/useTableQuery.d.ts +33 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- 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/Input.Subdomain/index.d.ts +1 -1
- 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 +10 -10
- package/lib/components/dataSourceComponents/fields/utils.d.ts +3 -0
- package/lib/components/date-picker/datePickerCpt.d.ts +9 -0
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/list/index.d.ts +1 -0
- package/lib/components/lowCodePage/index.d.ts +1 -0
- package/lib/components/media/index.js +265 -0
- package/lib/components/media/index.less +100 -0
- package/lib/components/pisellAvatar/index.d.ts +19 -0
- package/lib/components/pisellCardList/index.d.ts +73 -0
- package/lib/components/pisellCheckboxGroup/index.d.ts +36 -0
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/lib/components/pisellGoodPassCard/index.d.ts +49 -0
- package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
- package/lib/components/pisellInformationEntry/index.d.ts +33 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellLoading/index.d.ts +1 -0
- package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +85 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/index.d.ts +4 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +4 -0
- package/lib/components/productCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/options/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 +4 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +10 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +14 -0
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +3 -0
- package/lib/components/productCard/components/Warning/index.js +4 -4
- package/lib/components/productCard/index.js +2 -2
- package/lib/components/productCard/status.js +1 -1
- package/lib/components/productCard/utils.d.ts +31 -0
- package/lib/components/qrcode/index.d.ts +1 -0
- 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/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/View/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +2 -2
- package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
- package/lib/components/walletCard/Guide/index.d.ts +4 -0
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +1 -1
- package/es/components/record-view/index.d.ts +0 -37
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/record-view/index.d.ts +0 -37
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AvatarProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
5
|
+
export interface PisellAvatarProps extends Omit<AvatarProps, 'size' | 'shape'> {
|
|
6
|
+
shape?: 'circle' | 'square';
|
|
7
|
+
size?: AvatarSize;
|
|
8
|
+
src?: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
useTextAvatar?: boolean;
|
|
15
|
+
borderRadius?: number;
|
|
16
|
+
onError?: () => boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const PisellAvatar: React.FC<PisellAvatarProps>;
|
|
19
|
+
export default PisellAvatar;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
|
|
3
|
+
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
+
import { PisellWalletPassCardProps } 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
|
+
showDetail?: boolean;
|
|
36
|
+
/** 是否展示二维码 */
|
|
37
|
+
showQrCode?: boolean;
|
|
38
|
+
/** 是否展示封面图 */
|
|
39
|
+
showCover?: boolean;
|
|
40
|
+
/** 是否余额货币单位 */
|
|
41
|
+
showBalanceSymbol?: boolean;
|
|
42
|
+
/** 卡片大小 */
|
|
43
|
+
type?: 'default' | 'mini';
|
|
44
|
+
/** 展示操作按钮 */
|
|
45
|
+
showActions?: boolean;
|
|
46
|
+
/** 操作按钮配置 */
|
|
47
|
+
actions?: {
|
|
48
|
+
/** 按钮展示方式 */
|
|
49
|
+
layout: 'expanded' | 'collapsed';
|
|
50
|
+
/** detail 按钮配置 */
|
|
51
|
+
detail?: {
|
|
52
|
+
visible: boolean;
|
|
53
|
+
iconColor: string;
|
|
54
|
+
};
|
|
55
|
+
/** edit按钮配置 */
|
|
56
|
+
edit?: {
|
|
57
|
+
visible: boolean;
|
|
58
|
+
iconColor: string;
|
|
59
|
+
dialogTitle: string;
|
|
60
|
+
enableDialog: boolean;
|
|
61
|
+
fields: {
|
|
62
|
+
name: string;
|
|
63
|
+
label: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
68
|
+
beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
|
|
69
|
+
/** 编辑弹窗点击提交 */
|
|
70
|
+
onConfirmEdit?: (value: any, index: number) => void;
|
|
71
|
+
}
|
|
72
|
+
declare const _default: React.NamedExoticComponent<PisellCardListProps>;
|
|
73
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellContextType } from '../pisell-config-provider/context';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface PisellCheckboxGroupOption {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
declare type PisellCheckboxGroupValue = string | string[] | any;
|
|
11
|
+
export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
platform?: PisellContextType['platform'];
|
|
13
|
+
direction?: 'horizontal' | 'vertical';
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
gap?: number;
|
|
16
|
+
padding?: number;
|
|
17
|
+
options: PisellCheckboxGroupOption[];
|
|
18
|
+
onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
|
|
19
|
+
value?: PisellCheckboxGroupValue;
|
|
20
|
+
renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
|
|
21
|
+
rowKey?: string;
|
|
22
|
+
mode?: 'multiple' | 'single';
|
|
23
|
+
iconPosition?: 'left' | 'right' | 'hide';
|
|
24
|
+
optionClassName?: string;
|
|
25
|
+
optionActiveClassName?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @title: PisellCheckboxGroup
|
|
29
|
+
* @description: 选中组件
|
|
30
|
+
* @param {PisellCheckboxGroupProps} props
|
|
31
|
+
* @return {*}
|
|
32
|
+
* @Author: zhiwei.Wang
|
|
33
|
+
* @Date: 2024-08-16 10:34
|
|
34
|
+
*/
|
|
35
|
+
declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
|
|
36
|
+
export default PisellCheckboxGroup;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellCustomCheckboxGroupProps {
|
|
4
|
+
dataSource?: any[];
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
allowAdd?: boolean;
|
|
7
|
+
isMultiple?: boolean;
|
|
8
|
+
id?: string | string[];
|
|
9
|
+
onClick?: (value: any) => void;
|
|
10
|
+
onAdd?: () => void;
|
|
11
|
+
renderAddItem?: (item: any) => React.ReactNode;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const PisellCustomCheckboxGroup: React.FC<PisellCustomCheckboxGroupProps>;
|
|
16
|
+
export default PisellCustomCheckboxGroup;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
}
|
|
48
|
+
declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
|
|
49
|
+
export default index;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellContextType } from '../pisell-config-provider/context';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export declare type EntryModeType = {
|
|
5
|
+
/**
|
|
6
|
+
* 录入模式名称
|
|
7
|
+
* scanCode: 扫码录入
|
|
8
|
+
* input: 手动录入
|
|
9
|
+
* scanner: 扫码枪录入
|
|
10
|
+
* nfc: NFC录入
|
|
11
|
+
*/
|
|
12
|
+
type: 'scanCode' | 'input' | 'scanner' | 'nfc';
|
|
13
|
+
/**
|
|
14
|
+
* 录入模式文案 没有使用默认文案
|
|
15
|
+
*/
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
18
|
+
export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
|
|
19
|
+
/** 平台 */
|
|
20
|
+
platform?: PisellContextType['platform'];
|
|
21
|
+
/** 录入模式 */
|
|
22
|
+
entryModes: EntryModeType[];
|
|
23
|
+
/** 标题文案 */
|
|
24
|
+
title?: React.ReactNode;
|
|
25
|
+
/** 搜索框描述文案 */
|
|
26
|
+
searchDescribe?: React.ReactNode;
|
|
27
|
+
/** 录入信息值改变 */
|
|
28
|
+
onChange?: (val: string) => void;
|
|
29
|
+
/** 录入类型切换时候触发的 */
|
|
30
|
+
onChangeType?: (val: null | EntryModeType['type']) => void;
|
|
31
|
+
}
|
|
32
|
+
declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
|
|
33
|
+
export default PisellInformationEntry;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellContextType } from '../../../pisell-config-provider/context';
|
|
3
|
+
export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** 平台 */
|
|
5
|
+
platform?: PisellContextType['platform'];
|
|
6
|
+
/** 当前数值 */
|
|
7
|
+
value?: number | string;
|
|
8
|
+
/** 小数点后位数 默认是小数点后2位 */
|
|
9
|
+
precision?: number;
|
|
10
|
+
/** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
|
|
11
|
+
showCurrencySymbol?: boolean;
|
|
12
|
+
/** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
|
|
13
|
+
useThousandsSeparator?: boolean;
|
|
14
|
+
/** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
|
|
15
|
+
hideDecimalForWholeNumbers?: boolean;
|
|
16
|
+
/** 货币符号 */
|
|
17
|
+
symbol?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const Amount: (props: AmountProps) => JSX.Element;
|
|
20
|
+
export default Amount;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellWalletPassCardProps {
|
|
4
|
+
id: number;
|
|
5
|
+
/** 卡片样式 */
|
|
6
|
+
type: 'default' | 'mini';
|
|
7
|
+
/** 商品名称 */
|
|
8
|
+
name: string;
|
|
9
|
+
/** 二维码 */
|
|
10
|
+
qrCode: string;
|
|
11
|
+
/** 共享店铺名称 */
|
|
12
|
+
storeName: string;
|
|
13
|
+
/** 余额 */
|
|
14
|
+
balance?: number;
|
|
15
|
+
/** 识别码编号 */
|
|
16
|
+
code: string;
|
|
17
|
+
/** 有效期 */
|
|
18
|
+
validDate: string;
|
|
19
|
+
/** 使用金额 */
|
|
20
|
+
redeem?: number;
|
|
21
|
+
/** 是否禁用 */
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/** 禁用原因 */
|
|
24
|
+
disabledReason?: string;
|
|
25
|
+
/** 是否展示禁用原因 */
|
|
26
|
+
showDisabledReason?: boolean;
|
|
27
|
+
/** 封面图 */
|
|
28
|
+
cover?: string;
|
|
29
|
+
/** 余额标题文案 */
|
|
30
|
+
balanceTitle?: string;
|
|
31
|
+
/** 使用金额标题文案 */
|
|
32
|
+
redeemTitle?: string;
|
|
33
|
+
/** 是否选中 */
|
|
34
|
+
active?: boolean;
|
|
35
|
+
/** 是否展示商品名称 */
|
|
36
|
+
showName?: boolean;
|
|
37
|
+
/** 是否展示共享店铺名称 */
|
|
38
|
+
showStoreName?: boolean;
|
|
39
|
+
/** 是否展示使用金额 */
|
|
40
|
+
showRedeem?: boolean;
|
|
41
|
+
/** 是否展示余额 */
|
|
42
|
+
showBalance?: boolean;
|
|
43
|
+
/** 是否展示识别码编号 */
|
|
44
|
+
showCode?: boolean;
|
|
45
|
+
/** 是否展示有效期 */
|
|
46
|
+
showValidDate?: boolean;
|
|
47
|
+
/** 是否展示右上角详情按钮 */
|
|
48
|
+
showDetail?: boolean;
|
|
49
|
+
/** 是否展示qrCode */
|
|
50
|
+
showQrCode?: boolean;
|
|
51
|
+
/** 是否展示封面 */
|
|
52
|
+
showCover?: boolean;
|
|
53
|
+
/** 是否展示余额货币符号 */
|
|
54
|
+
showBalanceSymbol?: boolean;
|
|
55
|
+
/** 展示操作按钮 */
|
|
56
|
+
showActions?: boolean;
|
|
57
|
+
/** 操作按钮配置 */
|
|
58
|
+
actions?: {
|
|
59
|
+
/** 按钮展示方式 */
|
|
60
|
+
layout: 'expanded' | 'collapsed';
|
|
61
|
+
/** detail 按钮配置 */
|
|
62
|
+
detail?: {
|
|
63
|
+
visible: boolean;
|
|
64
|
+
iconColor: string;
|
|
65
|
+
};
|
|
66
|
+
/** edit按钮配置 */
|
|
67
|
+
edit?: {
|
|
68
|
+
visible: boolean;
|
|
69
|
+
iconColor: string;
|
|
70
|
+
dialogTitle: string;
|
|
71
|
+
enableDialog: boolean;
|
|
72
|
+
fields: {
|
|
73
|
+
name: string;
|
|
74
|
+
label: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
/** 编辑编辑按钮后,弹窗展示之前 */
|
|
79
|
+
beforeEdit?: (value: any) => Promise<any> | boolean | void;
|
|
80
|
+
/** 编辑弹窗点击提交 */
|
|
81
|
+
onConfirmEdit?: (value: any) => void;
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}
|
|
84
|
+
declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
|
|
85
|
+
export default PisellWalletPassCard;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
|
|
4
|
+
style?: any;
|
|
5
|
+
status: string;
|
|
6
|
+
onLike?: any;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
isShowChangeResource?: boolean | undefined;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default Like;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface SelectHolderModalProps {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onConfirm: (value: any) => void;
|
|
7
|
+
lists: any[];
|
|
8
|
+
value: any[];
|
|
9
|
+
holderMaxCount: number;
|
|
10
|
+
addHolderButtonText: string;
|
|
11
|
+
onAdd: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
|
|
14
|
+
export default SelectHolderModal;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SelectHolderMultiple: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
|
|
3
|
+
export default SelectHolderMultiple;
|
|
@@ -36,7 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_utils = require("@pisell/utils");
|
|
37
37
|
var import_antd = require("antd");
|
|
38
38
|
var import__ = require("../../index.less");
|
|
39
|
-
var Warning = ({ errorMessage,
|
|
39
|
+
var Warning = ({ errorMessage, osWarnTips }) => {
|
|
40
40
|
const errorLists = (0, import_react.useMemo)(() => {
|
|
41
41
|
if (errorMessage) {
|
|
42
42
|
if (Array.isArray(errorMessage)) {
|
|
@@ -46,11 +46,11 @@ var Warning = ({ errorMessage, osWainTips }) => {
|
|
|
46
46
|
return [errorMessage];
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
if ((
|
|
50
|
-
return
|
|
49
|
+
if ((osWarnTips == null ? void 0 : osWarnTips.length) > 0) {
|
|
50
|
+
return osWarnTips.map((item) => import_utils.locales.getText(item));
|
|
51
51
|
}
|
|
52
52
|
return [];
|
|
53
|
-
}, [errorMessage,
|
|
53
|
+
}, [errorMessage, osWarnTips]);
|
|
54
54
|
if ((errorLists == null ? void 0 : errorLists.length) === 0) {
|
|
55
55
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null);
|
|
56
56
|
}
|
|
@@ -85,7 +85,7 @@ var ProductCard = (props) => {
|
|
|
85
85
|
actionText,
|
|
86
86
|
errorMessage,
|
|
87
87
|
isNormalProduct,
|
|
88
|
-
|
|
88
|
+
osWarnTips = []
|
|
89
89
|
} = dataSource;
|
|
90
90
|
const showImage = (0, import_react.useMemo)(() => {
|
|
91
91
|
return isShowImage && image;
|
|
@@ -181,7 +181,7 @@ var ProductCard = (props) => {
|
|
|
181
181
|
onAction: () => onAction == null ? void 0 : onAction(dataSource)
|
|
182
182
|
}
|
|
183
183
|
) : null,
|
|
184
|
-
/* @__PURE__ */ import_react.default.createElement(import_Warning.default, { errorMessage,
|
|
184
|
+
/* @__PURE__ */ import_react.default.createElement(import_Warning.default, { errorMessage, osWarnTips })
|
|
185
185
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
186
186
|
import_useOpenNote.default,
|
|
187
187
|
{
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import 'dayjs/locale/zh-cn';
|
|
2
|
+
import 'dayjs/locale/en';
|
|
3
|
+
import 'dayjs/locale/zh-tw';
|
|
4
|
+
/**
|
|
5
|
+
* @title: 是否英文
|
|
6
|
+
* @description:
|
|
7
|
+
* @param {any} item
|
|
8
|
+
* @return {*}
|
|
9
|
+
* @Author: WangHan
|
|
10
|
+
* @Date: 2024-12-28 22:49
|
|
11
|
+
*/
|
|
12
|
+
export declare const isEn: (item: any) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @title: 跨日预约时间
|
|
15
|
+
* @description:
|
|
16
|
+
* @param {any} item
|
|
17
|
+
* @return {*}
|
|
18
|
+
* @Author: WangHan
|
|
19
|
+
* @Date: 2024-12-28 22:50
|
|
20
|
+
*/
|
|
21
|
+
export declare const formatMultiDayDate: (item: any) => string;
|
|
22
|
+
/**
|
|
23
|
+
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
24
|
+
* @description:
|
|
25
|
+
* @param {any} item
|
|
26
|
+
* @param {any} currentDate
|
|
27
|
+
* @return {*}
|
|
28
|
+
* @Author: zhiwei.Wang
|
|
29
|
+
* @Date: 2024-04-26 14:04
|
|
30
|
+
*/
|
|
31
|
+
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
@@ -169,11 +169,11 @@ var BaseNumberKeyboard = (props) => {
|
|
|
169
169
|
style: {
|
|
170
170
|
fontSize: "18px",
|
|
171
171
|
background: (rightItemsStyle == null ? void 0 : rightItemsStyle.isDoneButtonFollowTheme) ? "var(--theme-color)" : (rightItemsStyle == null ? void 0 : rightItemsStyle.doneButtonBackgroundColor) || "#5d3f9f",
|
|
172
|
-
color: (rightItemsStyle == null ? void 0 : rightItemsStyle.doneButtonTextColor) || "#ffffff"
|
|
172
|
+
color: (rightItemsStyle == null ? void 0 : rightItemsStyle.isDoneButtonFollowTheme) ? "#ffffff" : (rightItemsStyle == null ? void 0 : rightItemsStyle.doneButtonTextColor) || "#ffffff"
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
];
|
|
176
|
-
}, [doneText, resetText]);
|
|
176
|
+
}, [doneText, resetText, rightItemsStyle]);
|
|
177
177
|
const itemsWithStyle = (0, import_react.useMemo)(() => {
|
|
178
178
|
return items.map((item) => ({
|
|
179
179
|
...item,
|
|
@@ -124,7 +124,8 @@ var Keyboard = (props) => {
|
|
|
124
124
|
className: "virtual-keyboard-item-button",
|
|
125
125
|
style: {
|
|
126
126
|
fontSize: ((_a = item.style) == null ? void 0 : _a.fontSize) || 25,
|
|
127
|
-
color: item.type === "primary" ? "#fff" : ((_b = item.style) == null ? void 0 : _b.color) || void 0
|
|
127
|
+
color: item.type === "primary" ? "#fff" : ((_b = item.style) == null ? void 0 : _b.color) || void 0,
|
|
128
|
+
...item.type === "primary" ? item.style || {} : {}
|
|
128
129
|
},
|
|
129
130
|
disabled: item.disabled,
|
|
130
131
|
onClick: (e) => {
|
package/lib/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => any;
|