@nocobase/plugin-workflow
Version:
A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.
112 lines (111 loc) • 3.7 kB
TypeScript
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
import React from 'react';
import { SchemaInitializerItemType, useCollectionDataSource } from '@nocobase/client';
import { AssignedFieldsFormSchemaConfig } from '../components/AssignedFieldsFormSchemaConfig';
import { Instruction, useNodeSavedConfig } from '.';
declare function useVariables({ key: name, title, config }: {
key: any;
title: any;
config: any;
}, options: any): import("../variable").VariableOption;
export default class extends Instruction {
title: string;
type: string;
group: string;
description: string;
icon: React.JSX.Element;
fieldset: {
collection: {
'x-disabled': string;
'x-reactions': any[];
type: string;
title: string;
required: boolean;
'x-decorator': string;
'x-component': string;
};
usingAssignFormSchema: {
type: string;
};
assignFormSchema: {
type: string;
title: string;
'x-decorator': string;
'x-component': string;
'x-reactions': {
dependencies: string[];
fulfill: {
state: {
display: string;
};
};
}[];
};
params: {
type: string;
properties: {
values: {
'x-reactions': {
dependencies: string[];
fulfill: {
state: {
display: string;
};
};
}[];
type: string;
title: string;
description: string;
'x-decorator': string;
'x-decorator-props': {
labelAlign: string;
className: string;
};
'x-component': string;
};
appends: {
type: string;
title: string;
description: string;
'x-decorator': string;
'x-component': string;
'x-component-props': {
title: string;
multiple: boolean;
useCollection(): any;
};
'x-reactions': {
dependencies: string[];
fulfill: {
state: {
visible: string;
};
};
}[];
};
};
};
};
createDefaultConfig(): {
usingAssignFormSchema: boolean;
assignFormSchema: {};
};
scope: {
useCollectionDataSource: typeof useCollectionDataSource;
useNodeSavedConfig: typeof useNodeSavedConfig;
};
components: {
CollectionFieldset: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
AssignedFieldsFormSchemaConfig: typeof AssignedFieldsFormSchemaConfig;
};
useVariables: typeof useVariables;
useInitializers(node: any): SchemaInitializerItemType | null;
}
export {};