@pisell/materials 1.0.967 → 1.0.968
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 +7 -7
- package/build/lowcode/preview.js +144 -160
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +30 -39
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +30 -39
- package/es/components/PisellProcedure/PisellProcedure.js +345 -0
- package/es/components/PisellProcedure/PisellProcedure.less +376 -0
- package/es/components/PisellProcedure/components/ProcedureAction.js +93 -0
- package/es/components/PisellProcedure/components/ProcedureContent.js +47 -0
- package/es/components/PisellProcedure/components/ProcedureHeader.js +86 -0
- package/es/components/PisellProcedure/components/ProcedureSummary.js +99 -0
- package/es/components/PisellProcedure/hooks/useResponsive.js +56 -0
- package/es/components/PisellProcedure/index.js +8 -0
- package/es/components/PisellProcedure/types.js +1 -0
- package/es/components/PisellSteps/PisellSteps.js +200 -0
- package/es/components/PisellSteps/PisellSteps.less +457 -0
- package/es/components/PisellSteps/index.js +5 -0
- package/es/components/PisellSteps/types.js +1 -0
- package/es/components/Template/[ComponentName].js +1 -0
- package/es/components/Template/[ComponentName].less +1 -0
- package/es/components/Template/index.js +1 -0
- package/es/components/Template/types.js +0 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -2
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +25 -10
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/es/components/pisellWalletPassCard/index.js +4 -3
- package/es/components/walletCard/index.js +5 -4
- package/es/index.js +2 -0
- package/lib/components/PisellProcedure/PisellProcedure.js +264 -0
- package/lib/components/PisellProcedure/PisellProcedure.less +376 -0
- package/lib/components/PisellProcedure/components/ProcedureAction.js +86 -0
- package/lib/components/PisellProcedure/components/ProcedureContent.js +60 -0
- package/lib/components/PisellProcedure/components/ProcedureHeader.js +115 -0
- package/lib/components/PisellProcedure/components/ProcedureSummary.js +96 -0
- package/lib/components/PisellProcedure/hooks/useResponsive.js +63 -0
- package/lib/components/PisellProcedure/index.js +42 -0
- package/lib/components/PisellProcedure/types.js +17 -0
- package/lib/components/PisellSteps/PisellSteps.js +169 -0
- package/lib/components/PisellSteps/PisellSteps.less +457 -0
- package/lib/components/PisellSteps/index.js +41 -0
- package/lib/components/PisellSteps/types.js +17 -0
- package/lib/components/Template/[ComponentName].js +0 -0
- package/lib/components/Template/[ComponentName].less +1 -0
- package/lib/components/Template/index.js +0 -0
- package/lib/components/Template/types.js +0 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +3 -1
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +7 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
- package/lib/components/pisellWalletPassCard/index.js +4 -3
- package/lib/components/walletCard/index.js +5 -4
- package/lib/index.js +6 -0
- package/lowcode/data-source-form/meta.ts +18 -1
- package/lowcode/pisell-procedure/meta.ts +483 -0
- package/lowcode/pisell-procedure/snippets.ts +230 -0
- package/lowcode/pisell-steps/meta.ts +307 -0
- package/lowcode/pisell-steps/snippets.ts +160 -0
- package/package.json +3 -3
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -27
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -33
- 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/fields/Upload/BaseUpload.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -38
- package/es/components/filter/types.d.ts +0 -46
- package/es/components/pisellCamera/index.d.ts +0 -4
- package/es/components/table/Actions/index.d.ts +0 -17
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +0 -15
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +0 -31
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -27
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -33
- 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/fields/Upload/BaseUpload.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -38
- package/lib/components/filter/types.d.ts +0 -46
- package/lib/components/pisellCamera/index.d.ts +0 -4
- package/lib/components/table/Actions/index.d.ts +0 -17
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModeType } from '../../type';
|
|
3
|
-
export interface FormSettingContextType {
|
|
4
|
-
onDataSourceFinish?: (values: any, result: any, form: any) => void;
|
|
5
|
-
renderMode?: ModeType;
|
|
6
|
-
groupInfoPosition?: 'top' | 'side';
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
currentValue?: 'server' | 'local';
|
|
9
|
-
size?: 'small' | 'middle' | 'large';
|
|
10
|
-
formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
|
|
11
|
-
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
12
|
-
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
13
|
-
}
|
|
14
|
-
export declare const FormSettingContext: import("react").Context<FormSettingContextType>;
|
|
15
|
-
export default FormSettingContext;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceType } from "../provider/dataSource/DataSourceContext";
|
|
3
|
-
export declare type ModeType = 'edit' | 'add' | 'view' | 'disabled' | 'hidden' | 'tableView';
|
|
4
|
-
export interface DataSourceFormProps {
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
dataSource: DataSourceType;
|
|
8
|
-
extraParams?: Record<string, any>;
|
|
9
|
-
showTitle: boolean;
|
|
10
|
-
showDescription: boolean;
|
|
11
|
-
groupInfoPosition: 'top' | 'side';
|
|
12
|
-
variables: any[];
|
|
13
|
-
renderMode?: ModeType;
|
|
14
|
-
currentValue?: 'server' | 'local';
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
className?: string;
|
|
17
|
-
size?: 'small' | 'middle' | 'large';
|
|
18
|
-
onDataSourceFinish?: (values: any, result: any) => void;
|
|
19
|
-
__designMode?: string;
|
|
20
|
-
formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
|
|
21
|
-
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
22
|
-
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
23
|
-
leaveConfirmConfig?: {
|
|
24
|
-
enable: boolean;
|
|
25
|
-
title: string;
|
|
26
|
-
content: string;
|
|
27
|
-
icon: React.ReactNode;
|
|
28
|
-
okText: string;
|
|
29
|
-
cancelText: string;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
interface BaseFilterItem {
|
|
3
|
-
name?: string;
|
|
4
|
-
value: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
isHidden: boolean;
|
|
8
|
-
isCustom?: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface FilterProps {
|
|
11
|
-
componentId: string;
|
|
12
|
-
filterBy: Record<string, any>;
|
|
13
|
-
quickFilterMaxLength?: number;
|
|
14
|
-
sortButtonShow?: boolean;
|
|
15
|
-
mode?: 'simple' | 'complex';
|
|
16
|
-
items: BaseFilterItem[];
|
|
17
|
-
handleValuesChange: (changedFields: any, allFields: any) => void;
|
|
18
|
-
show: boolean;
|
|
19
|
-
search: {
|
|
20
|
-
show: boolean;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
key: string;
|
|
23
|
-
};
|
|
24
|
-
getInitialValues?: () => Record<string, any>;
|
|
25
|
-
}
|
|
26
|
-
declare const Filter: (props: FilterProps) => JSX.Element;
|
|
27
|
-
export default Filter;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DataSourceTableProps } from '../type';
|
|
2
|
-
declare type Params = {
|
|
3
|
-
pagination?: {
|
|
4
|
-
page: number;
|
|
5
|
-
size: number;
|
|
6
|
-
};
|
|
7
|
-
order_by?: string;
|
|
8
|
-
tabs?: {
|
|
9
|
-
name: string;
|
|
10
|
-
filterBy: Record<string, any>;
|
|
11
|
-
sortBy: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
declare const useTableQuery: (props: DataSourceTableProps, currentSettingHash: string) => {
|
|
15
|
-
queryPageConfig: {
|
|
16
|
-
page: number;
|
|
17
|
-
pageSize: number;
|
|
18
|
-
filter: Record<string, any>;
|
|
19
|
-
sort: string;
|
|
20
|
-
};
|
|
21
|
-
setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
|
|
22
|
-
page: number;
|
|
23
|
-
pageSize: number;
|
|
24
|
-
filter: Record<string, any>;
|
|
25
|
-
sort: string;
|
|
26
|
-
}>>;
|
|
27
|
-
handleValuesChange: (params: Params, allParams: Params) => void;
|
|
28
|
-
refreshData: () => void;
|
|
29
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
30
|
-
refreshCurrentPage: () => void;
|
|
31
|
-
getInitialValues: () => Record<string, any>;
|
|
32
|
-
};
|
|
33
|
-
export default useTableQuery;
|
|
@@ -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,38 +0,0 @@
|
|
|
1
|
-
import { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
|
|
2
|
-
import type { UploadValue, UploadChangeHandler } from './types';
|
|
3
|
-
export interface UploadFile extends AntdUploadFile {
|
|
4
|
-
metadata?: {
|
|
5
|
-
width?: number;
|
|
6
|
-
height?: number;
|
|
7
|
-
duration?: number;
|
|
8
|
-
bitrate?: number;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface UploadProps {
|
|
12
|
-
renderMode?: string;
|
|
13
|
-
fieldKey: string;
|
|
14
|
-
maxSize?: number;
|
|
15
|
-
minCount?: number;
|
|
16
|
-
maxCount?: number;
|
|
17
|
-
multiple?: boolean;
|
|
18
|
-
presetType?: string[];
|
|
19
|
-
presetTypeString?: string[];
|
|
20
|
-
customType?: string[];
|
|
21
|
-
enablePresetType?: boolean;
|
|
22
|
-
enableCustomType?: boolean;
|
|
23
|
-
allowPreview?: boolean;
|
|
24
|
-
value?: UploadValue;
|
|
25
|
-
typeMaxSizeMap?: Record<string, number>;
|
|
26
|
-
enableMultilingual?: boolean;
|
|
27
|
-
onChange?: UploadChangeHandler;
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
mediaUploadUrl?: string;
|
|
30
|
-
getHeaders?: () => Record<string, string>;
|
|
31
|
-
mediaConfig?: {
|
|
32
|
-
data: {
|
|
33
|
-
upload_onetime_limit: number;
|
|
34
|
-
upload_maxsize: number;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
allowCamera?: boolean;
|
|
38
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ModeType } from "../table/types";
|
|
2
|
-
/**
|
|
3
|
-
* 筛选总配置
|
|
4
|
-
*/
|
|
5
|
-
export declare type FilterType = {
|
|
6
|
-
/** 筛选是否展示 */
|
|
7
|
-
show: boolean;
|
|
8
|
-
/** 筛选项排序按钮是否展示 */
|
|
9
|
-
sortButtonShow: boolean;
|
|
10
|
-
/** 筛选列表 */
|
|
11
|
-
list: FilterItemProps[];
|
|
12
|
-
items?: string[];
|
|
13
|
-
/** 快速筛选最大长度 */
|
|
14
|
-
quickFilterMaxLength: number;
|
|
15
|
-
/** 配置存储模式 */
|
|
16
|
-
storageMode: "" | "localStorage";
|
|
17
|
-
/** 筛选列表项dom */
|
|
18
|
-
dom?: any;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* 筛选列表项配置
|
|
22
|
-
*/
|
|
23
|
-
export declare type FilterItemProps = {
|
|
24
|
-
type: "single" | "input" | "datePicker" | "rangePicker" | "search";
|
|
25
|
-
name?: string | string[];
|
|
26
|
-
key: string;
|
|
27
|
-
props: object;
|
|
28
|
-
label?: string;
|
|
29
|
-
sort?: boolean;
|
|
30
|
-
localFilter?: boolean;
|
|
31
|
-
other: Record<string, any>;
|
|
32
|
-
isCustom?: boolean;
|
|
33
|
-
columnKey?: string;
|
|
34
|
-
isHidden?: boolean;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* 筛选组件属性
|
|
38
|
-
*/
|
|
39
|
-
export interface FilterProps {
|
|
40
|
-
filter: FilterType;
|
|
41
|
-
isRenderFormContent: boolean;
|
|
42
|
-
onValuesChange?: () => void;
|
|
43
|
-
tableId?: string;
|
|
44
|
-
viewMode?: ModeType;
|
|
45
|
-
isMobile?: boolean;
|
|
46
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FilterType } from "../../filter/types";
|
|
2
|
-
import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
|
|
3
|
-
import "./index.less";
|
|
4
|
-
declare type ActionsProps = {
|
|
5
|
-
filter: FilterType;
|
|
6
|
-
tableId?: string;
|
|
7
|
-
columnSetting?: ColumnSettingType;
|
|
8
|
-
dataSourceGroup?: DataSourceGroupType;
|
|
9
|
-
sort: SortType;
|
|
10
|
-
localPagination?: boolean;
|
|
11
|
-
buttons: any[];
|
|
12
|
-
view: GridViewType;
|
|
13
|
-
gallery: GallerySettingType;
|
|
14
|
-
exportImport?: ExportImportType;
|
|
15
|
-
};
|
|
16
|
-
declare const Actions: ({ filter, sort, columnSetting, dataSourceGroup, tableId, localPagination, buttons, view, gallery, exportImport, }: ActionsProps) => JSX.Element | null;
|
|
17
|
-
export default Actions;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModeType } from '../../type';
|
|
3
|
-
export interface FormSettingContextType {
|
|
4
|
-
onDataSourceFinish?: (values: any, result: any, form: any) => void;
|
|
5
|
-
renderMode?: ModeType;
|
|
6
|
-
groupInfoPosition?: 'top' | 'side';
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
currentValue?: 'server' | 'local';
|
|
9
|
-
size?: 'small' | 'middle' | 'large';
|
|
10
|
-
formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
|
|
11
|
-
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
12
|
-
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
13
|
-
}
|
|
14
|
-
export declare const FormSettingContext: import("react").Context<FormSettingContextType>;
|
|
15
|
-
export default FormSettingContext;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceType } from "../provider/dataSource/DataSourceContext";
|
|
3
|
-
export declare type ModeType = 'edit' | 'add' | 'view' | 'disabled' | 'hidden' | 'tableView';
|
|
4
|
-
export interface DataSourceFormProps {
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
dataSource: DataSourceType;
|
|
8
|
-
extraParams?: Record<string, any>;
|
|
9
|
-
showTitle: boolean;
|
|
10
|
-
showDescription: boolean;
|
|
11
|
-
groupInfoPosition: 'top' | 'side';
|
|
12
|
-
variables: any[];
|
|
13
|
-
renderMode?: ModeType;
|
|
14
|
-
currentValue?: 'server' | 'local';
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
className?: string;
|
|
17
|
-
size?: 'small' | 'middle' | 'large';
|
|
18
|
-
onDataSourceFinish?: (values: any, result: any) => void;
|
|
19
|
-
__designMode?: string;
|
|
20
|
-
formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
|
|
21
|
-
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
22
|
-
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
23
|
-
leaveConfirmConfig?: {
|
|
24
|
-
enable: boolean;
|
|
25
|
-
title: string;
|
|
26
|
-
content: string;
|
|
27
|
-
icon: React.ReactNode;
|
|
28
|
-
okText: string;
|
|
29
|
-
cancelText: string;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
interface BaseFilterItem {
|
|
3
|
-
name?: string;
|
|
4
|
-
value: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
isHidden: boolean;
|
|
8
|
-
isCustom?: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface FilterProps {
|
|
11
|
-
componentId: string;
|
|
12
|
-
filterBy: Record<string, any>;
|
|
13
|
-
quickFilterMaxLength?: number;
|
|
14
|
-
sortButtonShow?: boolean;
|
|
15
|
-
mode?: 'simple' | 'complex';
|
|
16
|
-
items: BaseFilterItem[];
|
|
17
|
-
handleValuesChange: (changedFields: any, allFields: any) => void;
|
|
18
|
-
show: boolean;
|
|
19
|
-
search: {
|
|
20
|
-
show: boolean;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
key: string;
|
|
23
|
-
};
|
|
24
|
-
getInitialValues?: () => Record<string, any>;
|
|
25
|
-
}
|
|
26
|
-
declare const Filter: (props: FilterProps) => JSX.Element;
|
|
27
|
-
export default Filter;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DataSourceTableProps } from '../type';
|
|
2
|
-
declare type Params = {
|
|
3
|
-
pagination?: {
|
|
4
|
-
page: number;
|
|
5
|
-
size: number;
|
|
6
|
-
};
|
|
7
|
-
order_by?: string;
|
|
8
|
-
tabs?: {
|
|
9
|
-
name: string;
|
|
10
|
-
filterBy: Record<string, any>;
|
|
11
|
-
sortBy: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
declare const useTableQuery: (props: DataSourceTableProps, currentSettingHash: string) => {
|
|
15
|
-
queryPageConfig: {
|
|
16
|
-
page: number;
|
|
17
|
-
pageSize: number;
|
|
18
|
-
filter: Record<string, any>;
|
|
19
|
-
sort: string;
|
|
20
|
-
};
|
|
21
|
-
setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
|
|
22
|
-
page: number;
|
|
23
|
-
pageSize: number;
|
|
24
|
-
filter: Record<string, any>;
|
|
25
|
-
sort: string;
|
|
26
|
-
}>>;
|
|
27
|
-
handleValuesChange: (params: Params, allParams: Params) => void;
|
|
28
|
-
refreshData: () => void;
|
|
29
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
30
|
-
refreshCurrentPage: () => void;
|
|
31
|
-
getInitialValues: () => Record<string, any>;
|
|
32
|
-
};
|
|
33
|
-
export default useTableQuery;
|
|
@@ -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,38 +0,0 @@
|
|
|
1
|
-
import { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
|
|
2
|
-
import type { UploadValue, UploadChangeHandler } from './types';
|
|
3
|
-
export interface UploadFile extends AntdUploadFile {
|
|
4
|
-
metadata?: {
|
|
5
|
-
width?: number;
|
|
6
|
-
height?: number;
|
|
7
|
-
duration?: number;
|
|
8
|
-
bitrate?: number;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface UploadProps {
|
|
12
|
-
renderMode?: string;
|
|
13
|
-
fieldKey: string;
|
|
14
|
-
maxSize?: number;
|
|
15
|
-
minCount?: number;
|
|
16
|
-
maxCount?: number;
|
|
17
|
-
multiple?: boolean;
|
|
18
|
-
presetType?: string[];
|
|
19
|
-
presetTypeString?: string[];
|
|
20
|
-
customType?: string[];
|
|
21
|
-
enablePresetType?: boolean;
|
|
22
|
-
enableCustomType?: boolean;
|
|
23
|
-
allowPreview?: boolean;
|
|
24
|
-
value?: UploadValue;
|
|
25
|
-
typeMaxSizeMap?: Record<string, number>;
|
|
26
|
-
enableMultilingual?: boolean;
|
|
27
|
-
onChange?: UploadChangeHandler;
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
mediaUploadUrl?: string;
|
|
30
|
-
getHeaders?: () => Record<string, string>;
|
|
31
|
-
mediaConfig?: {
|
|
32
|
-
data: {
|
|
33
|
-
upload_onetime_limit: number;
|
|
34
|
-
upload_maxsize: number;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
allowCamera?: boolean;
|
|
38
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ModeType } from "../table/types";
|
|
2
|
-
/**
|
|
3
|
-
* 筛选总配置
|
|
4
|
-
*/
|
|
5
|
-
export declare type FilterType = {
|
|
6
|
-
/** 筛选是否展示 */
|
|
7
|
-
show: boolean;
|
|
8
|
-
/** 筛选项排序按钮是否展示 */
|
|
9
|
-
sortButtonShow: boolean;
|
|
10
|
-
/** 筛选列表 */
|
|
11
|
-
list: FilterItemProps[];
|
|
12
|
-
items?: string[];
|
|
13
|
-
/** 快速筛选最大长度 */
|
|
14
|
-
quickFilterMaxLength: number;
|
|
15
|
-
/** 配置存储模式 */
|
|
16
|
-
storageMode: "" | "localStorage";
|
|
17
|
-
/** 筛选列表项dom */
|
|
18
|
-
dom?: any;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* 筛选列表项配置
|
|
22
|
-
*/
|
|
23
|
-
export declare type FilterItemProps = {
|
|
24
|
-
type: "single" | "input" | "datePicker" | "rangePicker" | "search";
|
|
25
|
-
name?: string | string[];
|
|
26
|
-
key: string;
|
|
27
|
-
props: object;
|
|
28
|
-
label?: string;
|
|
29
|
-
sort?: boolean;
|
|
30
|
-
localFilter?: boolean;
|
|
31
|
-
other: Record<string, any>;
|
|
32
|
-
isCustom?: boolean;
|
|
33
|
-
columnKey?: string;
|
|
34
|
-
isHidden?: boolean;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* 筛选组件属性
|
|
38
|
-
*/
|
|
39
|
-
export interface FilterProps {
|
|
40
|
-
filter: FilterType;
|
|
41
|
-
isRenderFormContent: boolean;
|
|
42
|
-
onValuesChange?: () => void;
|
|
43
|
-
tableId?: string;
|
|
44
|
-
viewMode?: ModeType;
|
|
45
|
-
isMobile?: boolean;
|
|
46
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FilterType } from "../../filter/types";
|
|
2
|
-
import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
|
|
3
|
-
import "./index.less";
|
|
4
|
-
declare type ActionsProps = {
|
|
5
|
-
filter: FilterType;
|
|
6
|
-
tableId?: string;
|
|
7
|
-
columnSetting?: ColumnSettingType;
|
|
8
|
-
dataSourceGroup?: DataSourceGroupType;
|
|
9
|
-
sort: SortType;
|
|
10
|
-
localPagination?: boolean;
|
|
11
|
-
buttons: any[];
|
|
12
|
-
view: GridViewType;
|
|
13
|
-
gallery: GallerySettingType;
|
|
14
|
-
exportImport?: ExportImportType;
|
|
15
|
-
};
|
|
16
|
-
declare const Actions: ({ filter, sort, columnSetting, dataSourceGroup, tableId, localPagination, buttons, view, gallery, exportImport, }: ActionsProps) => JSX.Element | null;
|
|
17
|
-
export default Actions;
|