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.
Files changed (105) hide show
  1. package/dist/DocumentWhiteList/___demo___/base/index.d.ts +2 -0
  2. package/dist/DocumentWhiteList/___demo___/setService/index.d.ts +2 -0
  3. package/dist/DocumentWhiteList/control/actions/addblack/index.d.ts +4 -0
  4. package/dist/DocumentWhiteList/control/actions/addwhite/index.d.ts +4 -0
  5. package/dist/DocumentWhiteList/control/actions/blacklist/index.d.ts +4 -0
  6. package/dist/DocumentWhiteList/control/actions/checkclient/index.d.ts +3 -0
  7. package/dist/DocumentWhiteList/control/actions/demo/index.d.ts +3 -0
  8. package/dist/DocumentWhiteList/control/actions/didilist/index.d.ts +4 -0
  9. package/dist/DocumentWhiteList/control/actions/enableblacklist/index.d.ts +7 -0
  10. package/dist/DocumentWhiteList/control/actions/enablelist/index.d.ts +7 -0
  11. package/dist/DocumentWhiteList/control/actions/enablewhitelist/index.d.ts +7 -0
  12. package/dist/DocumentWhiteList/control/actions/getmode/index.d.ts +4 -0
  13. package/dist/DocumentWhiteList/control/actions/setmode/index.d.ts +3 -0
  14. package/dist/DocumentWhiteList/control/actions/synclist/index.d.ts +10 -0
  15. package/dist/DocumentWhiteList/control/actions/whitelist/index.d.ts +4 -0
  16. package/dist/DocumentWhiteList/control/index.d.ts +22 -0
  17. package/dist/DocumentWhiteList/control/state/index.d.ts +47 -0
  18. package/dist/DocumentWhiteList/index.d.ts +10 -0
  19. package/dist/DocumentWhiteList/interface/index.d.ts +29 -0
  20. package/dist/DocumentWhiteList/ui/clientmodal/index.d.ts +1 -0
  21. package/dist/DocumentWhiteList/ui/main/black.d.ts +1 -0
  22. package/dist/DocumentWhiteList/ui/main/index.d.ts +1 -0
  23. package/dist/DocumentWhiteList/ui/main/switchmode.d.ts +1 -0
  24. package/dist/DocumentWhiteList/ui/main/white.d.ts +1 -0
  25. package/dist/DocumentWhiteList/ui/pageheader/BlackHeader.d.ts +2 -0
  26. package/dist/DocumentWhiteList/ui/pageheader/WhiteHeader.d.ts +2 -0
  27. package/dist/DocumentWhiteList/ui/pageui/index.d.ts +9 -0
  28. package/dist/DocumentWhiteList/ui/whitemodal/index.d.ts +6 -0
  29. package/dist/DocumentWhiteList/util/ConfigEnum.d.ts +7 -0
  30. package/dist/DocumentsCont/___demo___/base/index.d.ts +2 -0
  31. package/dist/DocumentsCont/___demo___/setService/index.d.ts +2 -0
  32. package/dist/DocumentsCont/index.d.ts +4 -0
  33. package/dist/DocumentsDemo/Controller/index.d.ts +7 -0
  34. package/dist/DocumentsDemo/Controller/whitelist.d.ts +2 -0
  35. package/dist/DocumentsDemo/Text.d.ts +2 -0
  36. package/dist/DocumentsDemo/___demo___/base/index.d.ts +2 -0
  37. package/dist/DocumentsDemo/index.d.ts +6 -0
  38. package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/IProperties/index.d.ts +47 -0
  39. package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/IRules/index.d.ts +14 -0
  40. package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/ISchema/index.d.ts +10 -0
  41. package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/PropertyTableState/index.d.ts +8 -0
  42. package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/RuleState/index.d.ts +32 -0
  43. package/dist/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/index.d.ts +24 -0
  44. package/dist/DocumentsEdit/DocumentsEditController/actions/addProperties/index.d.ts +13 -0
  45. package/dist/DocumentsEdit/DocumentsEditController/actions/delProperties/index.d.ts +3 -0
  46. package/dist/DocumentsEdit/DocumentsEditController/actions/editProperties/index.d.ts +3 -0
  47. package/dist/DocumentsEdit/DocumentsEditController/index.d.ts +20 -0
  48. package/dist/DocumentsEdit/___demo___/conventional/index.d.ts +2 -0
  49. package/dist/DocumentsEdit/___demo___/monitor/index.d.ts +2 -0
  50. package/dist/DocumentsEdit/___demo___/readOnly/index.d.ts +2 -0
  51. package/dist/DocumentsEdit/constant/propertyColumns/index.d.ts +3 -0
  52. package/dist/DocumentsEdit/index.d.ts +29 -0
  53. package/dist/DocumentsEdit/tools/index.d.ts +28 -0
  54. package/dist/DocumentsEdit/ui/AddPropertyButton/index.d.ts +2 -0
  55. package/dist/DocumentsEdit/ui/Breadcrumb/index.d.ts +2 -0
  56. package/dist/DocumentsEdit/ui/EditProperty/index.d.ts +2 -0
  57. package/dist/DocumentsEdit/ui/EditRule/index.d.ts +2 -0
  58. package/dist/DocumentsEdit/ui/EditRule/ui/AddRuleButton/index.d.ts +2 -0
  59. package/dist/DocumentsEdit/ui/EditRule/ui/DelRuleButton/index.d.ts +4 -0
  60. package/dist/DocumentsEdit/ui/EditRule/ui/RuleForm/fn/algorithmFormComponent/index.d.ts +4 -0
  61. package/dist/DocumentsEdit/ui/EditRule/ui/RuleForm/index.d.ts +4 -0
  62. package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/index.d.ts +19 -0
  63. package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/AddChildPropertyButton/index.d.ts +5 -0
  64. package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/AddRuleButton/index.d.ts +5 -0
  65. package/dist/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/EditPropertyButton/index.d.ts +5 -0
  66. package/dist/DocumentsEdit/ui/PropertyTable/index.d.ts +3 -0
  67. package/dist/DocumentsEdit/ui/RefPropertyButton/index.d.ts +2 -0
  68. package/dist/DocumentsList/DocumentsListController/DocumentsListControllerState/index.d.ts +54 -0
  69. package/dist/DocumentsList/DocumentsListController/actions/demo/index.d.ts +3 -0
  70. package/dist/DocumentsList/DocumentsListController/actions/typelist/index.d.ts +3 -0
  71. package/dist/DocumentsList/DocumentsListController/index.d.ts +7 -0
  72. package/dist/DocumentsList/___demo___/list/index.d.ts +2 -0
  73. package/dist/DocumentsList/index.d.ts +10 -0
  74. package/dist/DocumentsList/ui/ModalComfirm/index.d.ts +1 -0
  75. package/dist/DocumentsList/ui/PageHeader/SendHeader.d.ts +2 -0
  76. package/dist/DocumentsList/ui/PageHeader/index.d.ts +2 -0
  77. package/dist/DocumentsList/ui/PageUI/index.d.ts +9 -0
  78. package/dist/DocumentsList/ui/RuleTable/index.d.ts +2 -0
  79. package/dist/DocumentsList/ui/sendlist/index.d.ts +1 -0
  80. package/dist/DocumentsList/util/ConfigEnum.d.ts +4 -0
  81. package/dist/DocumentsRule/control/actions/batchsend/index.d.ts +3 -0
  82. package/dist/DocumentsRule/control/actions/configsave/index.d.ts +3 -0
  83. package/dist/DocumentsRule/control/actions/configupdate/index.d.ts +3 -0
  84. package/dist/DocumentsRule/control/actions/getconfigbyid/index.d.ts +3 -0
  85. package/dist/DocumentsRule/control/actions/getrecordbyid/index.d.ts +3 -0
  86. package/dist/DocumentsRule/control/actions/gettemplate/index.d.ts +6 -0
  87. package/dist/DocumentsRule/control/actions/listbysubjectid/index.d.ts +3 -0
  88. package/dist/DocumentsRule/control/actions/typelist/index.d.ts +3 -0
  89. package/dist/DocumentsRule/control/index.d.ts +16 -0
  90. package/dist/DocumentsRule/control/state/index.d.ts +42 -0
  91. package/dist/DocumentsRule/index.d.ts +10 -0
  92. package/dist/DocumentsRule/interface/index.d.ts +29 -0
  93. package/dist/DocumentsRule/ui/main/index.d.ts +1 -0
  94. package/dist/DocumentsService/index.d.ts +8 -0
  95. package/dist/index.d.ts +7 -0
  96. package/dist/index.esm.js +8165 -0
  97. package/dist/index.js +8185 -0
  98. package/package.json +2 -3
  99. package/src/DocumentWhiteList/___demo___/setService/index.tsx +11 -6
  100. package/src/DocumentsCont/___demo___/base/index.tsx +1 -1
  101. package/src/DocumentsCont/___demo___/setService/index.tsx +10 -6
  102. package/src/DocumentsDemo/index.tsx +10 -7
  103. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/RuleState/index.ts +13 -13
  104. package/src/DocumentsList/ui/PageHeader/index.tsx +10 -10
  105. package/src/DocumentsRule/ui/main/index.tsx +2 -2
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import ControllerState from '../../state';
2
+ import { IFilter } from '../../../interface';
3
+ declare const _default: (s: ControllerState, params?: IFilter[] | undefined) => Promise<any>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import ControllerState from '../../state';
2
+ import { IFilter } from '../../../interface';
3
+ declare const _default: (s: ControllerState, params?: IFilter[] | undefined) => Promise<any>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import ControllerState from '../../state';
2
+ import { IParams } from '../../../interface';
3
+ declare const _default: (s: ControllerState, params?: IParams | undefined) => Promise<any>;
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import ControllerState from '../../state';
2
+ declare const _default: (s: ControllerState) => Promise<false | undefined>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import ControllerState from '../../state';
2
+ declare const _default: (s: ControllerState, value?: string | undefined) => Promise<void>;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import ControllerState from '../../state';
2
+ import { IParams } from '../../../interface';
3
+ declare const _default: (s: ControllerState, params?: IParams | undefined) => Promise<any>;
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import ControllerState from '../../state';
2
+ export interface IParams {
3
+ flag: number;
4
+ didList: any[];
5
+ }
6
+ declare const _default: (s: ControllerState, params?: IParams | undefined) => Promise<any>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import ControllerState from '../../state';
2
+ export interface IParams {
3
+ status: number;
4
+ didList: any[];
5
+ }
6
+ declare const _default: (s: ControllerState, params?: IParams | undefined) => Promise<any>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import ControllerState from '../../state';
2
+ export interface IParams {
3
+ flag: number;
4
+ didList: any[];
5
+ }
6
+ declare const _default: (s: ControllerState, params?: IParams | undefined) => Promise<any>;
7
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import ControllerState from '../../state';
2
+ import { IParams } from '../../../interface';
3
+ declare const _default: (s: ControllerState, params?: IParams | undefined) => Promise<false | undefined>;
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import ControllerState from '../../state';
2
+ declare const _default: (s: ControllerState, params: any) => Promise<false | undefined>;
3
+ export default _default;
@@ -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,4 @@
1
+ import ControllerState from '../../state';
2
+ import { IParams } from '../../../interface';
3
+ declare const _default: (s: ControllerState, params?: IParams | undefined) => Promise<any>;
4
+ 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,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -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,6 @@
1
+ /**
2
+ * 手动添加黑白名单弹窗
3
+ * @param
4
+ * @returns
5
+ */
6
+ export default function modalcomfirm(props: any): JSX.Element;
@@ -0,0 +1,7 @@
1
+ declare const dataStatusEnum: {
2
+ [key: string]: string;
3
+ };
4
+ declare const listNatureEnum: {
5
+ [key: string]: string;
6
+ };
7
+ export { dataStatusEnum, listNatureEnum };
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export default class DocumentsCont extends React.Component<any> {
3
+ render: () => JSX.Element;
4
+ }
@@ -0,0 +1,7 @@
1
+ import GreyReactBox from "grey-react-box";
2
+ export declare class ControllerState {
3
+ }
4
+ export default class Controller extends GreyReactBox<ControllerState> {
5
+ constructor();
6
+ getWhitelist: (option?: undefined) => Promise<any>;
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (s: any) => Promise<any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: any) => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const DocumentsEditContext: React.Context<any>;
3
+ export default class DocumentsCont extends React.Component<any> {
4
+ static useController: () => any;
5
+ render: () => JSX.Element;
6
+ }
@@ -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
+ }
@@ -0,0 +1,14 @@
1
+ /** 规则 */
2
+ export default interface IRules {
3
+ [key: string]: any;
4
+ /** 索引 */
5
+ _index: number;
6
+ /** 校验规则名称 */
7
+ name: string;
8
+ /** 阻断流程性质 */
9
+ checkType: string;
10
+ /** 校验不通过提示 */
11
+ message: string;
12
+ /** 规则算法 */
13
+ algorithm: string;
14
+ }
@@ -0,0 +1,10 @@
1
+ import IProperties from '../IProperties';
2
+ /** 属性 */
3
+ export default interface ISchema extends IProperties {
4
+ /** 文档地址 */
5
+ $schema: string;
6
+ /** 定义的字段 */
7
+ definitions: {
8
+ [key: string]: IProperties;
9
+ };
10
+ }
@@ -0,0 +1,8 @@
1
+ import { IDataSource } from '..';
2
+ import IProperties from '../../DocumentsEditControllerState/IProperties';
3
+ export default class PropertyTableState {
4
+ /** 编辑中的字段 */
5
+ editProperties?: IDataSource;
6
+ /** 当前正在处理的属性 */
7
+ current?: IProperties;
8
+ }
@@ -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,3 @@
1
+ import DocumentsEditControllerState, { IDataSource } from '../../DocumentsEditControllerState';
2
+ declare const _default: (s: DocumentsEditControllerState, options?: IDataSource | undefined) => Promise<void>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import DocumentsEditControllerState from '../../DocumentsEditControllerState';
2
+ declare const _default: (s: DocumentsEditControllerState, options: any) => Promise<void>;
3
+ 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,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ColumnType } from "kts-components-antd-x4/lib/table";
2
+ declare const _default: ColumnType<any>[];
3
+ export default _default;
@@ -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,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: (props: {
2
+ index: number;
3
+ }) => JSX.Element;
4
+ export default _default;
@@ -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,4 @@
1
+ declare const _default: (props: {
2
+ index: number;
3
+ }) => JSX.Element;
4
+ export default _default;
@@ -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;