@pisell/materials 3.2.26 → 3.2.28
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 +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +17 -17
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -18
- package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.js +92 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.less +10 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -2
- package/es/components/productCard/components/Time/components/SelectResource/index.js +20 -3
- package/es/components/productCard/components/Time/index.d.ts +1 -2
- package/es/components/productCard/components/Time/index.js +78 -26
- package/es/components/productCard/components/Time/index.less +12 -0
- package/es/components/productCard/index.js +7 -2
- package/es/components/productCard/utils.js +2 -2
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.js +90 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.less +10 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -2
- package/lib/components/productCard/components/Time/components/SelectResource/index.js +3 -2
- package/lib/components/productCard/components/Time/index.d.ts +1 -2
- package/lib/components/productCard/components/Time/index.js +78 -16
- package/lib/components/productCard/components/Time/index.less +12 -0
- package/lib/components/productCard/index.js +6 -1
- package/lib/components/productCard/utils.js +2 -2
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/product-card/meta.ts +25 -0
- package/lowcode/product-card/snippets.ts +14 -1
- package/package.json +1 -1
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -97
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisell-config-provider/index.d.ts +0 -12
- package/es/components/pisellCardList/index.d.ts +0 -43
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -34
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellInformationEntry/index.d.ts +0 -31
- package/es/components/pisellWalletPassCard/index.d.ts +0 -55
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -161
- package/es/components/table/hooks/useTableSetting.d.ts +0 -22
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/es/components/table/types.d.ts +0 -251
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/index.d.ts +0 -141
- package/es/locales/en-US.d.ts +0 -266
- package/es/locales/zh-CN.d.ts +0 -261
- package/es/locales/zh-TW.d.ts +0 -261
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -97
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisell-config-provider/index.d.ts +0 -12
- package/lib/components/pisellCardList/index.d.ts +0 -43
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -34
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellInformationEntry/index.d.ts +0 -31
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -55
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -161
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/lib/components/table/types.d.ts +0 -251
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/index.d.ts +0 -141
- package/lib/locales/en-US.d.ts +0 -266
- package/lib/locales/zh-CN.d.ts +0 -261
- package/lib/locales/zh-TW.d.ts +0 -261
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
4
|
-
export declare type OperationItem = {
|
|
5
|
-
label?: string;
|
|
6
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
7
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
8
|
-
openTitle: string;
|
|
9
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
10
|
-
key: string;
|
|
11
|
-
buttonProps?: any;
|
|
12
|
-
onClick?: (record: any) => void;
|
|
13
|
-
};
|
|
14
|
-
export interface DataSourceTableProps {
|
|
15
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
16
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
17
|
-
titleButtons?: {
|
|
18
|
-
show: boolean;
|
|
19
|
-
maxCount: number;
|
|
20
|
-
items: OperationItem[];
|
|
21
|
-
};
|
|
22
|
-
tableButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
buttons?: any[];
|
|
28
|
-
operation?: {
|
|
29
|
-
show: boolean;
|
|
30
|
-
title: string;
|
|
31
|
-
width: number;
|
|
32
|
-
align: 'left' | 'center' | 'right';
|
|
33
|
-
fixed: 'left' | 'right' | false;
|
|
34
|
-
type: 'link' | 'button';
|
|
35
|
-
items: OperationItem[];
|
|
36
|
-
};
|
|
37
|
-
operationContent?: {
|
|
38
|
-
[key: string]: React.ReactNode;
|
|
39
|
-
};
|
|
40
|
-
dataSource: DataSourceType;
|
|
41
|
-
columns: ColumnType<any>[];
|
|
42
|
-
filter: any;
|
|
43
|
-
search?: {
|
|
44
|
-
show: boolean;
|
|
45
|
-
placeholder: string;
|
|
46
|
-
};
|
|
47
|
-
__designMode: string;
|
|
48
|
-
componentId: string;
|
|
49
|
-
clickToDetail?: {
|
|
50
|
-
show: boolean;
|
|
51
|
-
useCustomAction: boolean;
|
|
52
|
-
actionType: string;
|
|
53
|
-
openMode: 'modal' | 'drawer';
|
|
54
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
55
|
-
openTitle: string;
|
|
56
|
-
key: string;
|
|
57
|
-
};
|
|
58
|
-
onRow?: any;
|
|
59
|
-
filterBy?: Record<string, any>;
|
|
60
|
-
sortBy: string;
|
|
61
|
-
tabs?: {
|
|
62
|
-
show: boolean;
|
|
63
|
-
type: string;
|
|
64
|
-
items: {
|
|
65
|
-
name: string;
|
|
66
|
-
filterBy: Record<string, any>;
|
|
67
|
-
sortBy: string;
|
|
68
|
-
}[];
|
|
69
|
-
};
|
|
70
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
71
|
-
extraParams?: {
|
|
72
|
-
list?: Record<string, any>;
|
|
73
|
-
get?: Record<string, any>;
|
|
74
|
-
update?: Record<string, any>;
|
|
75
|
-
create?: Record<string, any>;
|
|
76
|
-
destroy?: Record<string, any>;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
/**
|
|
4
|
-
* loginAndRegister组件的属性接口
|
|
5
|
-
*/
|
|
6
|
-
export interface loginAndRegisterProps {
|
|
7
|
-
/** Logo相关配置 */
|
|
8
|
-
showLogo?: boolean;
|
|
9
|
-
logo?: string;
|
|
10
|
-
logoPosition?: 'left' | 'center' | 'right';
|
|
11
|
-
logoSize?: {
|
|
12
|
-
width?: number;
|
|
13
|
-
height?: number;
|
|
14
|
-
};
|
|
15
|
-
/** 标题相关配置 */
|
|
16
|
-
title?: string;
|
|
17
|
-
showTitle?: boolean;
|
|
18
|
-
titleAlign?: 'left' | 'center' | 'right';
|
|
19
|
-
/** 副标题相关配置 */
|
|
20
|
-
subtitle?: string;
|
|
21
|
-
showSubtitle?: boolean;
|
|
22
|
-
subtitleAlign?: 'left' | 'center' | 'right';
|
|
23
|
-
/** 登录方式配置 */
|
|
24
|
-
loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
|
|
25
|
-
defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
|
|
26
|
-
/** 表单配置 */
|
|
27
|
-
emailLabel?: string;
|
|
28
|
-
passwordLabel?: string;
|
|
29
|
-
emailPlaceholder?: string;
|
|
30
|
-
passwordPlaceholder?: string;
|
|
31
|
-
emailRules?: any[];
|
|
32
|
-
buttonText?: string;
|
|
33
|
-
rememberMeText?: string;
|
|
34
|
-
forgotPasswordText?: string;
|
|
35
|
-
showRememberMe?: boolean;
|
|
36
|
-
showForgotPassword?: boolean;
|
|
37
|
-
/** 社交登录配置 */
|
|
38
|
-
socialLoginTexts?: {
|
|
39
|
-
google?: string;
|
|
40
|
-
facebook?: string;
|
|
41
|
-
apple?: string;
|
|
42
|
-
};
|
|
43
|
-
/** 底部配置 */
|
|
44
|
-
showFooter?: boolean;
|
|
45
|
-
showSignUp?: boolean;
|
|
46
|
-
signUpText?: string;
|
|
47
|
-
signUpLink?: string;
|
|
48
|
-
signUpPosition?: 'left' | 'center' | 'right';
|
|
49
|
-
otherLinks?: Array<{
|
|
50
|
-
text: string;
|
|
51
|
-
url: string;
|
|
52
|
-
}>;
|
|
53
|
-
otherLinksPosition?: 'left' | 'center' | 'right';
|
|
54
|
-
/** 登录/注册切换配置 */
|
|
55
|
-
showTabs?: boolean;
|
|
56
|
-
loginTabText?: string;
|
|
57
|
-
registerTabText?: string;
|
|
58
|
-
/** 注册表单配置 */
|
|
59
|
-
registerEmailPlaceholder?: string;
|
|
60
|
-
registerPasswordPlaceholder?: string;
|
|
61
|
-
registerButtonText?: string;
|
|
62
|
-
/** 事件回调 */
|
|
63
|
-
onLogin?: (values: {
|
|
64
|
-
email: string;
|
|
65
|
-
loginMethod: string;
|
|
66
|
-
}) => void;
|
|
67
|
-
onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
|
|
68
|
-
onSignUp?: () => void;
|
|
69
|
-
onRegister?: (values: {
|
|
70
|
-
email: string;
|
|
71
|
-
password: string;
|
|
72
|
-
}) => void;
|
|
73
|
-
/** 新增背景图片属性 */
|
|
74
|
-
backgroundImage?: string;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Saas登录组件
|
|
78
|
-
* @param props - 组件属性
|
|
79
|
-
* @returns React组件
|
|
80
|
-
*/
|
|
81
|
-
declare const loginAndRegister: React.FC<loginAndRegisterProps>;
|
|
82
|
-
export default loginAndRegister;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellContextType } from './context';
|
|
3
|
-
interface PisellConfigProviderType {
|
|
4
|
-
platform?: PisellContextType['platform'];
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/** 货币符号 */
|
|
7
|
-
symbol?: string;
|
|
8
|
-
/** 当前语言环境 */
|
|
9
|
-
locale?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
|
|
12
|
-
export default PisellConfigProvider;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
|
|
3
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
-
import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
|
|
5
|
-
export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
|
|
6
|
-
platform?: PisellContextType['platform'];
|
|
7
|
-
/** 当用户查看完所有记录时,底部会显示此消息 */
|
|
8
|
-
endMessage?: React.ReactNode;
|
|
9
|
-
/** 加载下次数据时的加载站位 */
|
|
10
|
-
loader?: React.ReactNode;
|
|
11
|
-
/** 是否有更多数据 */
|
|
12
|
-
hasMore: boolean;
|
|
13
|
-
/** 加载更多数据回调 */
|
|
14
|
-
loadMoreData?: () => Promise<void>;
|
|
15
|
-
/** 当前list数据 */
|
|
16
|
-
data: PisellWalletPassCardProps[];
|
|
17
|
-
/** list空数据时展示内容 */
|
|
18
|
-
empty?: React.ReactNode;
|
|
19
|
-
/** 是否展示空状态 */
|
|
20
|
-
showEmpty?: boolean;
|
|
21
|
-
/** 是否展示卡片名称 */
|
|
22
|
-
showName?: boolean;
|
|
23
|
-
/** 是否展示店铺名称 */
|
|
24
|
-
showStoreName?: boolean;
|
|
25
|
-
/** 是否展示核销金额 */
|
|
26
|
-
showRedeem?: boolean;
|
|
27
|
-
/** 是否展示余额 */
|
|
28
|
-
showBalance?: boolean;
|
|
29
|
-
/** 是否展示编码 */
|
|
30
|
-
showCode?: boolean;
|
|
31
|
-
/** 是否展示到期时间 */
|
|
32
|
-
showValidDate?: boolean;
|
|
33
|
-
/** 是否展示详情按钮 */
|
|
34
|
-
showDetail?: boolean;
|
|
35
|
-
/** 是否展示二维码 */
|
|
36
|
-
showQrCode?: boolean;
|
|
37
|
-
/** 是否展示封面图 */
|
|
38
|
-
showCover?: boolean;
|
|
39
|
-
/** 是否余额货币单位 */
|
|
40
|
-
showBalanceSymbol?: boolean;
|
|
41
|
-
}
|
|
42
|
-
declare const _default: React.MemoExoticComponent<(props: PisellCardListProps) => JSX.Element>;
|
|
43
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
gap?: number;
|
|
14
|
-
padding?: number;
|
|
15
|
-
options: PisellCheckboxGroupOption[];
|
|
16
|
-
onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
|
|
17
|
-
value?: PisellCheckboxGroupValue;
|
|
18
|
-
renderOption?: (option: PisellCheckboxGroupOption, active: boolean) => React.ReactNode;
|
|
19
|
-
rowKey?: string;
|
|
20
|
-
mode?: 'multiple' | 'single';
|
|
21
|
-
iconPosition?: 'left' | 'right' | 'hide';
|
|
22
|
-
optionClassName?: string;
|
|
23
|
-
optionActiveClassName?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @title: PisellCheckboxGroup
|
|
27
|
-
* @description: 选中组件
|
|
28
|
-
* @param {PisellCheckboxGroupProps} props
|
|
29
|
-
* @return {*}
|
|
30
|
-
* @Author: zhiwei.Wang
|
|
31
|
-
* @Date: 2024-08-16 10:34
|
|
32
|
-
*/
|
|
33
|
-
declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
|
|
34
|
-
export default PisellCheckboxGroup;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EmptyProps } from 'antd';
|
|
3
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
-
import './index.less';
|
|
5
|
-
export interface PisellEmptyProps extends EmptyProps {
|
|
6
|
-
/** 平台 */
|
|
7
|
-
platform?: PisellContextType['platform'];
|
|
8
|
-
/** 额外内容描述 */
|
|
9
|
-
extraDescription?: React.ReactNode;
|
|
10
|
-
/** 额外内容描述 */
|
|
11
|
-
icon?: React.ReactNode;
|
|
12
|
-
/** 自定义底部额外操作区域 */
|
|
13
|
-
footer?: React.ReactNode;
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
/** 最大宽度 */
|
|
16
|
-
maxWidth?: number;
|
|
17
|
-
}
|
|
18
|
-
declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
|
|
19
|
-
export default PisellEmpty;
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
|
|
31
|
-
export default PisellInformationEntry;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
export interface PisellWalletPassCardProps {
|
|
3
|
-
id?: number;
|
|
4
|
-
/** 商品名称 */
|
|
5
|
-
name: string;
|
|
6
|
-
/** 二维码 */
|
|
7
|
-
qrCode: string;
|
|
8
|
-
/** 共享店铺名称 */
|
|
9
|
-
storeName: string;
|
|
10
|
-
/** 余额 */
|
|
11
|
-
balance?: number;
|
|
12
|
-
/** 识别码编号 */
|
|
13
|
-
code: string;
|
|
14
|
-
/** 有效期 */
|
|
15
|
-
validDate: string;
|
|
16
|
-
/** 使用金额 */
|
|
17
|
-
redeem?: number;
|
|
18
|
-
/** 是否禁用 */
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
/** 禁用原因 */
|
|
21
|
-
disabledReason?: string;
|
|
22
|
-
/** 是否展示禁用原因 */
|
|
23
|
-
showDisabledReason?: boolean;
|
|
24
|
-
/** 封面图 */
|
|
25
|
-
cover?: string;
|
|
26
|
-
/** 余额标题文案 */
|
|
27
|
-
balanceTitle?: string;
|
|
28
|
-
/** 使用金额标题文案 */
|
|
29
|
-
redeemTitle?: string;
|
|
30
|
-
/** 是否选中 */
|
|
31
|
-
active?: boolean;
|
|
32
|
-
/** 是否展示商品名称 */
|
|
33
|
-
showName?: boolean;
|
|
34
|
-
/** 是否展示共享店铺名称 */
|
|
35
|
-
showStoreName?: boolean;
|
|
36
|
-
/** 是否展示使用金额 */
|
|
37
|
-
showRedeem?: boolean;
|
|
38
|
-
/** 是否展示余额 */
|
|
39
|
-
showBalance?: boolean;
|
|
40
|
-
/** 是否展示识别码编号 */
|
|
41
|
-
showCode?: boolean;
|
|
42
|
-
/** 是否展示有效期 */
|
|
43
|
-
showValidDate?: boolean;
|
|
44
|
-
/** 是否展示右上角详情按钮 */
|
|
45
|
-
showDetail?: boolean;
|
|
46
|
-
/** 是否展示qrCode */
|
|
47
|
-
showQrCode?: boolean;
|
|
48
|
-
/** 是否展示封面 */
|
|
49
|
-
showCover?: boolean;
|
|
50
|
-
/** 是否展示余额货币符号 */
|
|
51
|
-
showBalanceSymbol?: boolean;
|
|
52
|
-
[key: string]: any;
|
|
53
|
-
}
|
|
54
|
-
declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
|
|
55
|
-
export default PisellWalletPassCard;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { GallerySettingType, GallerySettingValueType } from "../../../types";
|
|
3
|
-
import "./index.less";
|
|
4
|
-
declare type GalleryItemProps = {
|
|
5
|
-
record: Record<string, any>;
|
|
6
|
-
gallery: GallerySettingType;
|
|
7
|
-
columnsMap: Map<string, Record<string, any>>;
|
|
8
|
-
index: number;
|
|
9
|
-
gallerySetting: GallerySettingValueType;
|
|
10
|
-
columns: Record<string, any>[];
|
|
11
|
-
onClick: React.MouseEventHandler<HTMLDivElement>;
|
|
12
|
-
};
|
|
13
|
-
declare const GalleryItem: (props: GalleryItemProps) => JSX.Element;
|
|
14
|
-
export default GalleryItem;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { GroupValue } from "../Actions/component/Group/PopoverContent";
|
|
2
|
-
import { FilterItemProps, FilterType } from "../../filter/types";
|
|
3
|
-
import { ColumnSettingType, DataSourceGroupType, GallerySettingValueType, ModeType, SortType } from "../types";
|
|
4
|
-
export declare const getHash: (obj: any) => any;
|
|
5
|
-
export declare const calcFilterSort: ({ dataSource, filter, sort, columns }: any) => any;
|
|
6
|
-
/**
|
|
7
|
-
* 合并列设置
|
|
8
|
-
* @param defaultColumns 默认列设置
|
|
9
|
-
* @param tableId 表ID
|
|
10
|
-
* @returns 合并后的列设置
|
|
11
|
-
*/
|
|
12
|
-
export declare const mergeColumnSetting: ({ columns, tableId, currentViewMode, }: {
|
|
13
|
-
columns: Record<string, any>[];
|
|
14
|
-
tableId?: string | undefined;
|
|
15
|
-
currentViewMode: ModeType;
|
|
16
|
-
}) => {
|
|
17
|
-
isShow: boolean;
|
|
18
|
-
}[] | ({
|
|
19
|
-
width: any;
|
|
20
|
-
isShow: any;
|
|
21
|
-
sortIndex: number;
|
|
22
|
-
} | {
|
|
23
|
-
isShow: boolean;
|
|
24
|
-
sortIndex: number;
|
|
25
|
-
})[];
|
|
26
|
-
/**
|
|
27
|
-
* 对数据源进行排序
|
|
28
|
-
* @param dataSource 数据源数组
|
|
29
|
-
* @param sortObj 排序对象,包含排序的键、值和类型
|
|
30
|
-
* @returns 排序后的数据源数组
|
|
31
|
-
*/
|
|
32
|
-
export declare const sortDataSource: (dataSource: Record<string, any>[], sortObj: {
|
|
33
|
-
sortKey: string;
|
|
34
|
-
sortValue: "asc" | "desc";
|
|
35
|
-
sortType: "date" | "string" | "number";
|
|
36
|
-
}) => Record<string, any>[];
|
|
37
|
-
/**
|
|
38
|
-
* 根据行键获取 ID
|
|
39
|
-
* @param item 记录对象
|
|
40
|
-
* @param rowKey 行键,可以是字符串或函数
|
|
41
|
-
* @returns 返回 ID
|
|
42
|
-
*/
|
|
43
|
-
export declare const getIdByRowKey: (item: Record<string, any>, rowKey: string | ((params: any) => string)) => any;
|
|
44
|
-
/**
|
|
45
|
-
* 根据分组条件对数据源进行分组
|
|
46
|
-
* @param dataSource 数据源
|
|
47
|
-
* @param group 分组条件
|
|
48
|
-
* @param rowKey 行键生成函数或字符串
|
|
49
|
-
* @returns 返回分组后的数据源
|
|
50
|
-
*/
|
|
51
|
-
export declare const groupDataSource: (dataSource: Record<string, any>[], group: GroupValue, rowKey: string | ((params: any) => string)) => Record<string, any>[];
|
|
52
|
-
declare type ViewSetting = {
|
|
53
|
-
order_by: string;
|
|
54
|
-
group_by: GroupValue;
|
|
55
|
-
column_setting: Record<string, any>[];
|
|
56
|
-
gallery_setting: GallerySettingValueType;
|
|
57
|
-
filters: any;
|
|
58
|
-
filter_setting: {
|
|
59
|
-
quickFilter: FilterItemProps[];
|
|
60
|
-
otherFilter: FilterItemProps[];
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* 本地存储的表格设置对象
|
|
65
|
-
*/
|
|
66
|
-
declare type TableSettingObjType = {
|
|
67
|
-
view_mode: ModeType;
|
|
68
|
-
currentSettingHash: string;
|
|
69
|
-
} & {
|
|
70
|
-
[K in ModeType]: ViewSetting;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* 将表格设置保存到本地存储
|
|
74
|
-
* @param tableId 表格id
|
|
75
|
-
* @param tableSettingObj 表格设置对象
|
|
76
|
-
*/
|
|
77
|
-
export declare const setTableSettingToLocalStorage: ({ tableId, tableSettingObj, currentViewMode, currentSettingHash, }: {
|
|
78
|
-
tableId: string;
|
|
79
|
-
tableSettingObj: Partial<ViewSetting & {
|
|
80
|
-
view_mode: ModeType;
|
|
81
|
-
}>;
|
|
82
|
-
currentViewMode: ModeType;
|
|
83
|
-
currentSettingHash: string;
|
|
84
|
-
}) => void;
|
|
85
|
-
export declare const clearTableSettingToLocalStorage: (tableId?: string) => void;
|
|
86
|
-
/**
|
|
87
|
-
* 从本地存储中获取表格设置, 全部配置
|
|
88
|
-
* @param tableId 表格ID
|
|
89
|
-
* @returns 表格设置对象
|
|
90
|
-
*/
|
|
91
|
-
export declare const getTableSettingFromLocalStorage: (tableId?: string) => Partial<TableSettingObjType>;
|
|
92
|
-
/**
|
|
93
|
-
* 从LocalStorage读取表当前视图模式
|
|
94
|
-
* @param tableId
|
|
95
|
-
*/
|
|
96
|
-
export declare const getCurrentViewModeFromLocalStorage: (tableId?: string) => ModeType | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* 根据视图模式获取配置
|
|
99
|
-
* @param tableId
|
|
100
|
-
* @param currentViewMode
|
|
101
|
-
*/
|
|
102
|
-
export declare const getTableSettingByCurrentViewMode: (tableId: string, currentViewMode: ModeType) => ViewSetting | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* 将表单值保存到本地存储中
|
|
105
|
-
* @param tableId 表单ID
|
|
106
|
-
* @param allValues 表单所有值
|
|
107
|
-
* @param keys 存储的键名
|
|
108
|
-
*/
|
|
109
|
-
export declare const setFormValuesToLocalStorage: ({ tableId, allValues, keys, currentViewMode, currentSettingHash, }: {
|
|
110
|
-
tableId?: string | undefined;
|
|
111
|
-
allValues?: Record<string, any> | undefined;
|
|
112
|
-
keys?: string[] | undefined;
|
|
113
|
-
currentViewMode: ModeType;
|
|
114
|
-
currentSettingHash: string;
|
|
115
|
-
}) => void;
|
|
116
|
-
/**
|
|
117
|
-
* 合并筛选设置
|
|
118
|
-
* @param list 列表数据
|
|
119
|
-
* @param quickFilterMaxLength 快速筛选最大长度
|
|
120
|
-
* @param tableId 表ID
|
|
121
|
-
* @returns 返回合并后的筛选设置
|
|
122
|
-
*/
|
|
123
|
-
export declare const mergeFilterSetting: ({ list, quickFilterMaxLength, tableId, sortButtonShow, currentViewMode, }: {
|
|
124
|
-
list: FilterItemProps[];
|
|
125
|
-
quickFilterMaxLength: number;
|
|
126
|
-
tableId?: string | undefined;
|
|
127
|
-
sortButtonShow: boolean;
|
|
128
|
-
currentViewMode: ModeType;
|
|
129
|
-
}) => {
|
|
130
|
-
quickFilter: FilterItemProps[];
|
|
131
|
-
otherFilter: FilterItemProps[];
|
|
132
|
-
notSortFilter: FilterItemProps[];
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* 过滤数据源
|
|
136
|
-
* @param dataSource 数据源
|
|
137
|
-
* @param filters 过滤条件
|
|
138
|
-
* @param filterLocalArr 本地过滤项
|
|
139
|
-
* @returns 过滤后的数据源
|
|
140
|
-
*/
|
|
141
|
-
export declare const filterDataSource: (dataSource: Record<string, any>[], filters: Record<string, any>, filterLocalArr: FilterItemProps[]) => Record<string, any>[];
|
|
142
|
-
/**
|
|
143
|
-
* 根据模式获取设置键数组
|
|
144
|
-
* @param filter 筛选器
|
|
145
|
-
* @param columnSetting 列设置
|
|
146
|
-
* @param dataSourceGroup 数据源分组
|
|
147
|
-
* @param sort 排序
|
|
148
|
-
* @param mode 模式,可选值为 "localStorage" 或 "remote"
|
|
149
|
-
* @returns 返回设置键数组
|
|
150
|
-
*/
|
|
151
|
-
export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourceGroup, sort, mode, currentViewMode, }: {
|
|
152
|
-
filter?: FilterType | undefined;
|
|
153
|
-
columnSetting?: ColumnSettingType | undefined;
|
|
154
|
-
dataSourceGroup?: DataSourceGroupType | undefined;
|
|
155
|
-
sort?: SortType | undefined;
|
|
156
|
-
mode: "" | "localStorage" | "remote";
|
|
157
|
-
currentViewMode: ModeType;
|
|
158
|
-
}) => ("filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "gallery_setting")[];
|
|
159
|
-
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
|
-
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FilterType } from "../../filter/types";
|
|
2
|
-
import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType, ExportImportModeType } from "../types";
|
|
3
|
-
declare type UseTableSettingProps = {
|
|
4
|
-
tableId?: string;
|
|
5
|
-
filter: FilterType;
|
|
6
|
-
columns: Record<string, any>[];
|
|
7
|
-
columnSetting?: ColumnSettingType;
|
|
8
|
-
dataSourceGroup?: DataSourceGroupType;
|
|
9
|
-
sort?: SortType;
|
|
10
|
-
view: GridViewType;
|
|
11
|
-
currentViewMode: ModeType;
|
|
12
|
-
gallery?: GallerySettingType;
|
|
13
|
-
currentSettingHash: string;
|
|
14
|
-
exportImport?: ExportImportModeType;
|
|
15
|
-
};
|
|
16
|
-
declare const useTableSetting: (params: UseTableSettingProps) => {
|
|
17
|
-
setTableSetting: (values: Record<string, any>) => void;
|
|
18
|
-
tableSetting: {
|
|
19
|
-
[x: string]: any;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default useTableSetting;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FormInstance } from "antd/es/form";
|
|
2
|
-
import { FilterType } from "../../filter/types";
|
|
3
|
-
declare type UseTransDataSourceParams = {
|
|
4
|
-
form: FormInstance;
|
|
5
|
-
localPagination: boolean;
|
|
6
|
-
dataSource: Record<string, any>[];
|
|
7
|
-
rowKey: string | ((params: any) => string);
|
|
8
|
-
filter: FilterType;
|
|
9
|
-
};
|
|
10
|
-
declare const useTransDataSource: (params: UseTransDataSourceParams) => Record<string, any>[];
|
|
11
|
-
export default useTransDataSource;
|