kts-components-document-access-point 1.3.3 → 1.3.7
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/dist/DocumentWhiteList/___demo___/base/index.d.ts +2 -0
- package/dist/DocumentWhiteList/___demo___/setService/index.d.ts +2 -0
- package/dist/DocumentWhiteList/control/actions/addblack/index.d.ts +4 -0
- package/dist/DocumentWhiteList/control/actions/addwhite/index.d.ts +4 -0
- package/dist/DocumentWhiteList/control/actions/blacklist/index.d.ts +4 -0
- package/dist/DocumentWhiteList/control/actions/checkclient/index.d.ts +3 -0
- package/dist/DocumentWhiteList/control/actions/demo/index.d.ts +3 -0
- package/dist/DocumentWhiteList/control/actions/didilist/index.d.ts +4 -0
- package/dist/DocumentWhiteList/control/actions/enableblacklist/index.d.ts +7 -0
- package/dist/DocumentWhiteList/control/actions/enablelist/index.d.ts +7 -0
- package/dist/DocumentWhiteList/control/actions/enablewhitelist/index.d.ts +7 -0
- package/dist/DocumentWhiteList/control/actions/getmode/index.d.ts +4 -0
- package/dist/DocumentWhiteList/control/actions/setmode/index.d.ts +3 -0
- package/dist/DocumentWhiteList/control/actions/synclist/index.d.ts +10 -0
- package/dist/DocumentWhiteList/control/actions/whitelist/index.d.ts +4 -0
- package/dist/DocumentWhiteList/control/index.d.ts +22 -0
- package/dist/DocumentWhiteList/control/state/index.d.ts +47 -0
- package/dist/DocumentWhiteList/index.d.ts +10 -0
- package/dist/DocumentWhiteList/interface/index.d.ts +29 -0
- package/dist/DocumentWhiteList/ui/clientmodal/index.d.ts +1 -0
- package/dist/DocumentWhiteList/ui/main/black.d.ts +1 -0
- package/dist/DocumentWhiteList/ui/main/index.d.ts +1 -0
- package/dist/DocumentWhiteList/ui/main/switchmode.d.ts +1 -0
- package/dist/DocumentWhiteList/ui/main/white.d.ts +1 -0
- package/dist/DocumentWhiteList/ui/pageheader/BlackHeader.d.ts +2 -0
- package/dist/DocumentWhiteList/ui/pageheader/WhiteHeader.d.ts +2 -0
- package/dist/DocumentWhiteList/ui/pageui/index.d.ts +9 -0
- package/dist/DocumentWhiteList/ui/whitemodal/index.d.ts +6 -0
- package/dist/DocumentWhiteList/util/ConfigEnum.d.ts +7 -0
- package/dist/DocumentsCont/___demo___/base/index.d.ts +2 -0
- package/dist/DocumentsCont/___demo___/setService/index.d.ts +2 -0
- package/dist/DocumentsCont/index.d.ts +4 -0
- package/dist/DocumentsDemo/Controller/index.d.ts +7 -0
- package/dist/DocumentsDemo/Controller/whitelist.d.ts +2 -0
- package/dist/DocumentsDemo/Text.d.ts +2 -0
- package/dist/DocumentsDemo/___demo___/base/index.d.ts +2 -0
- package/dist/DocumentsDemo/index.d.ts +6 -0
- package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/IProperties/index.d.ts +47 -0
- package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/IRules/index.d.ts +14 -0
- package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/ISchema/index.d.ts +10 -0
- package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/PropertyTableState/index.d.ts +8 -0
- package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/RuleState/index.d.ts +32 -0
- package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/index.d.ts +24 -0
- package/dist/DocumentsEdit/DocumentsEditController/actions/addProperties/index.d.ts +13 -0
- package/dist/DocumentsEdit/DocumentsEditController/actions/delProperties/index.d.ts +3 -0
- package/dist/DocumentsEdit/DocumentsEditController/actions/editProperties/index.d.ts +3 -0
- package/dist/DocumentsEdit/DocumentsEditController/index.d.ts +20 -0
- package/dist/DocumentsEdit/___demo___/conventional/index.d.ts +2 -0
- package/dist/DocumentsEdit/___demo___/monitor/index.d.ts +2 -0
- package/dist/DocumentsEdit/___demo___/readOnly/index.d.ts +2 -0
- package/dist/DocumentsEdit/constant/propertyColumns/index.d.ts +3 -0
- package/dist/DocumentsEdit/index.d.ts +29 -0
- package/dist/DocumentsEdit/tools/index.d.ts +28 -0
- package/dist/DocumentsEdit/ui/AddPropertyButton/index.d.ts +2 -0
- package/dist/DocumentsEdit/ui/Breadcrumb/index.d.ts +2 -0
- package/dist/DocumentsEdit/ui/EditProperty/index.d.ts +2 -0
- package/dist/DocumentsEdit/ui/EditRule/index.d.ts +2 -0
- package/dist/DocumentsEdit/ui/EditRule/ui/AddRuleButton/index.d.ts +2 -0
- package/dist/DocumentsEdit/ui/EditRule/ui/DelRuleButton/index.d.ts +4 -0
- package/dist/DocumentsEdit/ui/EditRule/ui/RuleForm/fn/algorithmFormComponent/index.d.ts +4 -0
- package/dist/DocumentsEdit/ui/EditRule/ui/RuleForm/index.d.ts +4 -0
- package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/index.d.ts +19 -0
- package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/AddChildPropertyButton/index.d.ts +5 -0
- package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/AddRuleButton/index.d.ts +5 -0
- package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/EditPropertyButton/index.d.ts +5 -0
- package/dist/DocumentsEdit/ui/PropertyTable/index.d.ts +3 -0
- package/dist/DocumentsEdit/ui/RefPropertyButton/index.d.ts +2 -0
- package/dist/DocumentsList/DocumentsListController/DocumentsListControllerState/index.d.ts +54 -0
- package/dist/DocumentsList/DocumentsListController/actions/demo/index.d.ts +3 -0
- package/dist/DocumentsList/DocumentsListController/actions/typelist/index.d.ts +3 -0
- package/dist/DocumentsList/DocumentsListController/index.d.ts +7 -0
- package/dist/DocumentsList/___demo___/list/index.d.ts +2 -0
- package/dist/DocumentsList/index.d.ts +10 -0
- package/dist/DocumentsList/ui/ModalComfirm/index.d.ts +1 -0
- package/dist/DocumentsList/ui/PageHeader/SendHeader.d.ts +2 -0
- package/dist/DocumentsList/ui/PageHeader/index.d.ts +2 -0
- package/dist/DocumentsList/ui/PageUI/index.d.ts +9 -0
- package/dist/DocumentsList/ui/RuleTable/index.d.ts +2 -0
- package/dist/DocumentsList/ui/sendlist/index.d.ts +1 -0
- package/dist/DocumentsList/util/ConfigEnum.d.ts +4 -0
- package/dist/DocumentsRule/control/actions/batchsend/index.d.ts +3 -0
- package/dist/DocumentsRule/control/actions/configsave/index.d.ts +3 -0
- package/dist/DocumentsRule/control/actions/configupdate/index.d.ts +3 -0
- package/dist/DocumentsRule/control/actions/getconfigbyid/index.d.ts +3 -0
- package/dist/DocumentsRule/control/actions/getrecordbyid/index.d.ts +3 -0
- package/dist/DocumentsRule/control/actions/gettemplate/index.d.ts +6 -0
- package/dist/DocumentsRule/control/actions/listbysubjectid/index.d.ts +3 -0
- package/dist/DocumentsRule/control/actions/typelist/index.d.ts +3 -0
- package/dist/DocumentsRule/control/index.d.ts +16 -0
- package/dist/DocumentsRule/control/state/index.d.ts +42 -0
- package/dist/DocumentsRule/index.d.ts +10 -0
- package/dist/DocumentsRule/interface/index.d.ts +29 -0
- package/dist/DocumentsRule/ui/main/index.d.ts +1 -0
- package/dist/DocumentsService/index.d.ts +8 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.esm.js +8165 -0
- package/dist/index.js +8185 -0
- package/package.json +2 -3
- package/src/DocumentWhiteList/___demo___/setService/index.tsx +11 -6
- package/src/DocumentsCont/___demo___/base/index.tsx +1 -1
- package/src/DocumentsCont/___demo___/setService/index.tsx +10 -6
- package/src/DocumentsDemo/index.tsx +10 -7
- package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/RuleState/index.ts +13 -13
- package/src/DocumentsList/ui/PageHeader/index.tsx +10 -10
- package/src/DocumentsRule/ui/main/index.tsx +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ControllerState from '../../state';
|
|
2
|
+
export interface IParams {
|
|
3
|
+
customerDidNote?: string;
|
|
4
|
+
pageNum: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
customerDid?: string;
|
|
7
|
+
type: number | string;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: (s: ControllerState, params?: IParams | undefined) => Promise<any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import GreyReactBox from 'grey-react-box';
|
|
2
|
+
import ControllerState from './state';
|
|
3
|
+
export default class Controller extends GreyReactBox<ControllerState> {
|
|
4
|
+
constructor(state?: ControllerState);
|
|
5
|
+
/** 例子-看了可以删掉 */
|
|
6
|
+
demo: (option?: string | undefined) => Promise<any>;
|
|
7
|
+
/** 获取列表 */
|
|
8
|
+
getWhitelist: (option?: import("../interface").IParams | undefined) => Promise<any>;
|
|
9
|
+
getBlacklist: (option?: import("../interface").IParams | undefined) => Promise<any>;
|
|
10
|
+
/** 新增 */
|
|
11
|
+
addWhite: (option?: import("../interface").IFilter[] | undefined) => Promise<any>;
|
|
12
|
+
marklist: (option?: import("./actions/enablewhitelist").IParams | undefined) => Promise<any>;
|
|
13
|
+
enablelist: (option?: import("./actions/enablelist").IParams | undefined) => Promise<any>;
|
|
14
|
+
checkclient: (option?: undefined) => Promise<any>;
|
|
15
|
+
synclist: (option?: import("./actions/synclist").IParams | undefined) => Promise<any>;
|
|
16
|
+
getmode: (option?: import("../interface").IParams | undefined) => Promise<any>;
|
|
17
|
+
setmode: (option?: any) => Promise<any>;
|
|
18
|
+
addBlack: (option?: import("../interface").IFilter[] | undefined) => Promise<any>;
|
|
19
|
+
enableblacklist: (option?: import("./actions/enableblacklist").IParams | undefined) => Promise<any>;
|
|
20
|
+
enablewhitelist: (option?: import("./actions/enablewhitelist").IParams | undefined) => Promise<any>;
|
|
21
|
+
didList: (option?: import("../interface").IParams | undefined) => Promise<any>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IPageMeta, IFilter } from '../../interface';
|
|
2
|
+
export interface IBillEnum {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IBillType {
|
|
7
|
+
lable: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IWhitelist {
|
|
11
|
+
customerDidNote: string;
|
|
12
|
+
createTime: number;
|
|
13
|
+
dataStatus: number;
|
|
14
|
+
listNature?: number;
|
|
15
|
+
customerDid: string;
|
|
16
|
+
updateTime: number;
|
|
17
|
+
companyDid: string;
|
|
18
|
+
companyDidNote: string | null;
|
|
19
|
+
customerName: string;
|
|
20
|
+
id: string;
|
|
21
|
+
subId: string;
|
|
22
|
+
}
|
|
23
|
+
interface IClient {
|
|
24
|
+
buttonName?: string;
|
|
25
|
+
noticeMessage?: string;
|
|
26
|
+
showButton: boolean;
|
|
27
|
+
}
|
|
28
|
+
export default class ControllerState {
|
|
29
|
+
didlist: any[];
|
|
30
|
+
selectedRowKey: string[];
|
|
31
|
+
selectedBlackRowKey: string[];
|
|
32
|
+
billEnum: IBillEnum[];
|
|
33
|
+
pageMeta: IPageMeta;
|
|
34
|
+
params: IFilter;
|
|
35
|
+
whiteParams: IFilter;
|
|
36
|
+
visible: boolean;
|
|
37
|
+
schema: any;
|
|
38
|
+
targetId: string;
|
|
39
|
+
billTypes: IBillType[];
|
|
40
|
+
whiteblacklist: IWhitelist[];
|
|
41
|
+
blacklist: IWhitelist[];
|
|
42
|
+
clientInfo: IClient;
|
|
43
|
+
clientModal: boolean;
|
|
44
|
+
listNature: string;
|
|
45
|
+
mode: number;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Controller from './control';
|
|
3
|
+
/**
|
|
4
|
+
* 黑白名单
|
|
5
|
+
*/
|
|
6
|
+
export default class WhiteList extends React.Component<{}> {
|
|
7
|
+
static Controller: typeof Controller;
|
|
8
|
+
static useController: () => Controller;
|
|
9
|
+
render: () => JSX.Element;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface IFilter {
|
|
2
|
+
customerDidNote?: string;
|
|
3
|
+
customerDid?: string;
|
|
4
|
+
/**
|
|
5
|
+
* 创建时间
|
|
6
|
+
*/
|
|
7
|
+
createTime?: number;
|
|
8
|
+
/**
|
|
9
|
+
* 更新时间
|
|
10
|
+
*/
|
|
11
|
+
updateAt?: number;
|
|
12
|
+
dataStatus?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 主键
|
|
15
|
+
*/
|
|
16
|
+
subId?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 名单性质
|
|
19
|
+
*/
|
|
20
|
+
listNature?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IPageMeta {
|
|
23
|
+
pageNum?: number;
|
|
24
|
+
pageSize?: number;
|
|
25
|
+
total?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface IParams extends IFilter, IPageMeta {
|
|
28
|
+
type?: number | string;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function modalcomfirm(props: any): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Rule(props: any): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Rule(props: any): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Rule(props: any): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Rule(props: any): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare class CustomerPage extends React.Component<any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
onPageChange: (page: any, pageSize: any) => void;
|
|
5
|
+
onShowSizeChange: (current: any, pageSize: any) => void;
|
|
6
|
+
componentWillReceiveProps(nextProps: any): void;
|
|
7
|
+
render(): JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
export default CustomerPage;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import IRules from '../IRules';
|
|
2
|
+
/** 属性类型 */
|
|
3
|
+
export declare type PropertiesType = 'string' | 'object' | 'array' | 'boolean' | 'integer' | 'number';
|
|
4
|
+
/** 格式 类型 */
|
|
5
|
+
export declare type FormatType = 'date-time' | 'time' | 'date';
|
|
6
|
+
export declare type IPropertiesItem = {
|
|
7
|
+
/** 别名 */
|
|
8
|
+
alias: string;
|
|
9
|
+
/** 描述 */
|
|
10
|
+
detailed: string;
|
|
11
|
+
/** 字段 */
|
|
12
|
+
$ref: string;
|
|
13
|
+
/** */
|
|
14
|
+
$refName: string;
|
|
15
|
+
$name: string;
|
|
16
|
+
/** 能被删除 */
|
|
17
|
+
$canDel?: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** 属性 */
|
|
20
|
+
export default interface IProperties {
|
|
21
|
+
/** 对象地址 */
|
|
22
|
+
$id: string;
|
|
23
|
+
/** 字段名 */
|
|
24
|
+
$name: string;
|
|
25
|
+
/** 被引用的次数 */
|
|
26
|
+
$count: number;
|
|
27
|
+
/** 创建时间戳 */
|
|
28
|
+
$createTime: number;
|
|
29
|
+
/** 标题 */
|
|
30
|
+
title: string;
|
|
31
|
+
/** 类型 */
|
|
32
|
+
type: PropertiesType;
|
|
33
|
+
/** 描述 */
|
|
34
|
+
description?: string;
|
|
35
|
+
/** 格式 */
|
|
36
|
+
format?: FormatType;
|
|
37
|
+
/** 规则 */
|
|
38
|
+
rules?: IRules[];
|
|
39
|
+
/** 是否必填 */
|
|
40
|
+
required?: string[];
|
|
41
|
+
/** 数组类型 */
|
|
42
|
+
items?: IProperties;
|
|
43
|
+
/** 字段列表 */
|
|
44
|
+
properties?: {
|
|
45
|
+
[key: string]: IPropertiesItem;
|
|
46
|
+
};
|
|
47
|
+
}
|
package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/RuleState/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FormInstance, FormItemProps } from "kts-components-antd-x4";
|
|
2
|
+
import { IDataSource } from "..";
|
|
3
|
+
export declare type IAlgorithmType = 'string' | 'integer' | 'number' | 'boolean' | 'string|date-time' | 'string|date' | 'array';
|
|
4
|
+
export interface IAlgorithm {
|
|
5
|
+
/** 算法适用类型 */
|
|
6
|
+
type: IAlgorithmType;
|
|
7
|
+
/** 算法名称(英文) */
|
|
8
|
+
name: string;
|
|
9
|
+
/** 标题 */
|
|
10
|
+
label: string;
|
|
11
|
+
/** 算子 */
|
|
12
|
+
operator: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface IOperator extends FormItemProps {
|
|
15
|
+
type: IAlgorithmType;
|
|
16
|
+
enum?: {
|
|
17
|
+
value: any;
|
|
18
|
+
label: string;
|
|
19
|
+
}[];
|
|
20
|
+
}
|
|
21
|
+
export default class RuleState {
|
|
22
|
+
/** 正在编辑的规则的form */
|
|
23
|
+
formList: FormInstance[];
|
|
24
|
+
/** 正在编辑规则的字段 */
|
|
25
|
+
ruleProperties?: IDataSource;
|
|
26
|
+
/** 可以用的算法 */
|
|
27
|
+
algorithm: IAlgorithm[];
|
|
28
|
+
/** 算子字典 ------------------------------------------------------------------------------------------------------------------------------------- */
|
|
29
|
+
operatorMap: {
|
|
30
|
+
[key: string]: IOperator;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import PropertyTableState from './PropertyTableState';
|
|
2
|
+
import IProperties, { IPropertiesItem } from './IProperties';
|
|
3
|
+
import ISchema from './ISchema';
|
|
4
|
+
import RuleState from './RuleState';
|
|
5
|
+
export interface IDataSource {
|
|
6
|
+
ref: IProperties;
|
|
7
|
+
required: string[];
|
|
8
|
+
value: IPropertiesItem;
|
|
9
|
+
}
|
|
10
|
+
export default class DocumentsEditControllerState {
|
|
11
|
+
constructor(schema?: ISchema);
|
|
12
|
+
/** 文档数据 */
|
|
13
|
+
schema: ISchema;
|
|
14
|
+
/** 只读模式 */
|
|
15
|
+
readOnly: boolean;
|
|
16
|
+
/** 属性列表状态 */
|
|
17
|
+
propertyTableState: PropertyTableState;
|
|
18
|
+
/** 定义的字段 */
|
|
19
|
+
definitions: Map<string, IProperties>;
|
|
20
|
+
/** 面包屑数据 */
|
|
21
|
+
breadcrumbState: IDataSource[];
|
|
22
|
+
/** 规则管理数据 */
|
|
23
|
+
ruleState: RuleState;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import IProperties from '../../DocumentsEditControllerState/IProperties';
|
|
2
|
+
import DocumentsEditControllerState from '../../DocumentsEditControllerState';
|
|
3
|
+
declare const _default: (s: DocumentsEditControllerState, options?: {
|
|
4
|
+
current?: IProperties | undefined;
|
|
5
|
+
properties?: IProperties | undefined;
|
|
6
|
+
values: {
|
|
7
|
+
$name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
title: string;
|
|
10
|
+
required: boolean;
|
|
11
|
+
};
|
|
12
|
+
} | undefined) => Promise<void>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import GreyReactBox from 'grey-react-box';
|
|
2
|
+
import DocumentsEditControllerState from './DocumentsEditControllerState';
|
|
3
|
+
export default class DocumentsEditController extends GreyReactBox<DocumentsEditControllerState> {
|
|
4
|
+
constructor(state?: DocumentsEditControllerState);
|
|
5
|
+
/** 添加属性字段 */
|
|
6
|
+
addProperties: (option?: {
|
|
7
|
+
current?: import("./DocumentsEditControllerState/IProperties").default | undefined;
|
|
8
|
+
properties?: import("./DocumentsEditControllerState/IProperties").default | undefined;
|
|
9
|
+
values: {
|
|
10
|
+
$name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
title: string;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
} | undefined) => Promise<any>;
|
|
16
|
+
/** 编辑属性字段 */
|
|
17
|
+
editProperties: (option?: any) => Promise<any>;
|
|
18
|
+
/** 删除属性字段 */
|
|
19
|
+
delProperties: (option?: import("./DocumentsEditControllerState").IDataSource | undefined) => Promise<any>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import DocumentsEditController from './DocumentsEditController';
|
|
3
|
+
import ISchema from './DocumentsEditController/DocumentsEditControllerState/ISchema';
|
|
4
|
+
import DocumentsEditControllerState from './DocumentsEditController/DocumentsEditControllerState';
|
|
5
|
+
import './index.less';
|
|
6
|
+
export { default as DocumentsEditControllerState } from './DocumentsEditController/DocumentsEditControllerState';
|
|
7
|
+
/** 发票组件的上下文 */
|
|
8
|
+
export declare const DocumentsEditContext: React.Context<DocumentsEditController>;
|
|
9
|
+
export interface IDocumentsEdit {
|
|
10
|
+
/** 默认文档数据,第一次渲染生效 */
|
|
11
|
+
schema?: ISchema;
|
|
12
|
+
/** 控制器 */
|
|
13
|
+
controller?: DocumentsEditController;
|
|
14
|
+
/** 文档改变时候 */
|
|
15
|
+
onChange?: (schema: ISchema) => void;
|
|
16
|
+
/** 只读 */
|
|
17
|
+
readOnly?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export default class DocumentsEdit extends React.Component<IDocumentsEdit> {
|
|
20
|
+
/** 控制器 */
|
|
21
|
+
static DocumentsEditController: typeof DocumentsEditController;
|
|
22
|
+
/** 控制器 */
|
|
23
|
+
static DocumentsEditControllerState: typeof DocumentsEditControllerState;
|
|
24
|
+
/** 创建文档对象 */
|
|
25
|
+
static createSchema: (title: string) => ISchema;
|
|
26
|
+
/** 获取控制器钩子 */
|
|
27
|
+
static useDocumentsEditController: () => DocumentsEditController;
|
|
28
|
+
render: () => JSX.Element;
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import IProperties, { FormatType, PropertiesType } from "../DocumentsEditController/DocumentsEditControllerState/IProperties";
|
|
2
|
+
/** 初始化 form type */
|
|
3
|
+
export declare function initType(editProperties: IProperties): "string|date" | "string|date-time" | "string|time" | PropertiesType;
|
|
4
|
+
/** form type => 属性的 type */
|
|
5
|
+
export declare function getType(v: string): PropertiesType;
|
|
6
|
+
/** form type => 属性的 type 的中文 */
|
|
7
|
+
export declare function getTypeName(v: string): "日期(YYYY-MM-DD)" | "日期-时间(YYYY-MM-DD hh:mm:ss)" | "时间(hh:mm:ss)" | "文本" | "复合类型" | "数字(整数)" | "数字(小数)" | "布尔(是/否)" | "未知";
|
|
8
|
+
/** form type => 属性的 type */
|
|
9
|
+
export declare function getFormat(v: string): FormatType | undefined;
|
|
10
|
+
/** form => 属性的 Items */
|
|
11
|
+
export declare function getItems(values: any): {
|
|
12
|
+
$id: string;
|
|
13
|
+
$count: number;
|
|
14
|
+
$name: any;
|
|
15
|
+
$createTime: number;
|
|
16
|
+
title: any;
|
|
17
|
+
type: PropertiesType;
|
|
18
|
+
format: FormatType | undefined;
|
|
19
|
+
properties: any;
|
|
20
|
+
} | undefined;
|
|
21
|
+
/** 删除 属性的 properties */
|
|
22
|
+
export declare function delProperties(editProperties: IProperties, definitions: {
|
|
23
|
+
[key: string]: IProperties;
|
|
24
|
+
}): void;
|
|
25
|
+
/** 删除 属性 自己 */
|
|
26
|
+
export declare function delPropertiesOneself($name: string, definitions: {
|
|
27
|
+
[key: string]: IProperties;
|
|
28
|
+
}): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IOperator } from "../../../../../../DocumentsEditController/DocumentsEditControllerState/RuleState";
|
|
2
|
+
import IProperties from "../../../../../../DocumentsEditController/DocumentsEditControllerState/IProperties";
|
|
3
|
+
/** 生成规则表单 */
|
|
4
|
+
export default function algorithmFormComponent(operator: IOperator, ruleProperties?: IProperties, readOnly?: boolean): JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ColumnType } from 'kts-components-antd-x4/lib/table';
|
|
2
|
+
import { IDataSource } from '../../../../../DocumentsEdit/DocumentsEditController/DocumentsEditControllerState';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare const _default: () => {
|
|
5
|
+
dataSource: {
|
|
6
|
+
value: {
|
|
7
|
+
$name: string;
|
|
8
|
+
alias: string;
|
|
9
|
+
detailed: string;
|
|
10
|
+
$ref: string;
|
|
11
|
+
$refName: string;
|
|
12
|
+
$canDel?: boolean | undefined;
|
|
13
|
+
};
|
|
14
|
+
ref: import("../../../../DocumentsEditController/DocumentsEditControllerState/IProperties").default;
|
|
15
|
+
required: string[];
|
|
16
|
+
}[];
|
|
17
|
+
columns: ColumnType<IDataSource>[];
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|