UNPKG

@tachybase/plugin-workflow-approval

Version:

Approval base in Workflow

767 lines (766 loc) 46.3 kB
import React from 'react'; import { ISchema } from '@tachybase/schema'; export declare const approvalFieldset: Record<string, ISchema>; export declare const schemaApprovalPanne: { type: string; properties: { approvalProvider: { type: string; 'x-decorator': string; 'x-component': string; 'x-decorator-props': { collection: { name: string; fields: ({ type: string; name: string; interface: string; uiSchema: ISchema; target?: undefined; sourceKey?: undefined; foreignKey?: undefined; otherKey?: undefined; targetKey?: undefined; sortBy?: undefined; through?: undefined; collectionName?: undefined; } | { type: string; name: string; target: string; sourceKey: string; foreignKey: string; otherKey: string; targetKey: string; sortBy: string; through: string; collectionName: string; interface: string; uiSchema: ISchema; } | { type: string; name: string; interface?: undefined; uiSchema?: undefined; target?: undefined; sourceKey?: undefined; foreignKey?: undefined; otherKey?: undefined; targetKey?: undefined; sortBy?: undefined; through?: undefined; collectionName?: undefined; } | { name: string; type: string; interface: string; target: string; targetKey: string; foreignKey: string; collectionName: string; uiSchema: { type: string; title: string; "x-component": string; "x-component-props": { multiple: boolean; fieldNames: { value: string; label: string; }; }; }; sourceKey?: undefined; otherKey?: undefined; sortBy?: undefined; through?: undefined; })[]; }; action: string; params: { filter: { current: boolean; type: string; }; sort: string[]; except: string[]; }; rowKey: string; }; properties: { actions: { type: string; 'x-component': string; 'x-component-props': { style: { marginBottom: number; }; }; properties: { filter: { type: string; title: string; default: { $and: { title: { $includes: string; }; }[]; }; 'x-action': string; 'x-component': string; 'x-use-component-props': string; 'x-component-props': { icon: string; }; 'x-align': string; }; fuzzySearch: { type: string; 'x-component': string; 'x-align': string; }; refresh: { type: string; title: string; 'x-action': string; 'x-component': string; 'x-settings': string; 'x-component-props': { icon: string; }; 'x-use-component-props': string; }; delete: { type: string; title: string; 'x-action': string; 'x-decorator': string; 'x-component': string; 'x-use-component-props': string; 'x-component-props': { icon: string; confirm: { title: string; content: string; }; }; }; load: { type: string; title: string; 'x-component': string; 'x-component-props': { icon: string; openSize: string; }; properties: { modal: { type: string; title: string; 'x-decorator': string; 'x-component': string; properties: { title: { type: string; title: string; 'x-decorator': string; 'x-component': string; }; file: { type: string; title: string; required: boolean; 'x-decorator': string; 'x-component': string; 'x-component-props': { action: string; multiple: boolean; }; }; footer: { type: string; 'x-component': string; properties: { submit: { type: string; title: string; 'x-component': string; 'x-component-props': { type: string; useAction(): { run(): Promise<void>; }; }; }; cancel: { type: string; title: string; 'x-component': string; 'x-use-component-props': string; }; }; }; }; }; }; }; create: import("@tachybase/schema").Stringify<{ [key: symbol]: any; [key: `x-${string}`]: any; [key: `x-${number}`]: any; version?: string; name?: import("@tachybase/schema").SchemaKey; title?: any; description?: any; default?: any; readOnly?: boolean; writeOnly?: boolean; type?: import("@tachybase/schema").SchemaTypes; enum?: import("@tachybase/schema").SchemaEnum<any>; const?: any; multipleOf?: number; maximum?: number; exclusiveMaximum?: number; minimum?: number; exclusiveMinimum?: number; maxLength?: number; minLength?: number; pattern?: string | RegExp; maxItems?: number; minItems?: number; uniqueItems?: boolean; maxProperties?: number; minProperties?: number; required?: string[] | boolean | string; format?: string; $ref?: string; $namespace?: string; definitions?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>; properties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>; items?: import("@tachybase/schema").SchemaItems<any, any, any, any, any, any, any, any>; additionalItems?: import("@tachybase/schema").Stringify</*elided*/ any>; patternProperties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>; additionalProperties?: import("@tachybase/schema").Stringify</*elided*/ any>; "x-value"?: any; "x-index"?: number; "x-pattern"?: any; "x-display"?: any; "x-validator"?: any; "x-decorator"?: any; "x-decorator-props"?: any; "x-component"?: any; "x-component-props"?: any; "x-reactions"?: import("@tachybase/schema").SchemaReactions<any>; "x-content"?: any; "x-data"?: any; "x-visible"?: boolean; "x-hidden"?: boolean; "x-disabled"?: boolean; "x-editable"?: boolean; "x-read-only"?: boolean; "x-read-pretty"?: boolean; "x-compile-omitted"?: string[]; }>; }; }; table: { type: string; 'x-component': string; 'x-use-component-props': string; 'x-component-props': { rowKey: string; rowSelection: { type: string; }; }; properties: { title: { type: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { sorter: boolean; }; properties: { title: { type: string; 'x-component': string; 'x-read-pretty': boolean; }; }; }; description: { type: string; 'x-decorator': string; 'x-component': string; properties: { description: { type: string; 'x-component': string; 'x-read-pretty': boolean; }; }; }; enabled: { type: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { sorter: boolean; width: number; }; properties: { enabled: { type: string; 'x-component': string; 'x-read-pretty': boolean; default: boolean; }; }; }; allExecuted: { type: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { sorter: boolean; width: number; }; properties: { allExecuted: { type: string; 'x-decorator': string; 'x-decorator-props': { component: (props: any) => React.DetailedReactHTMLElement<any, HTMLElement>; }; 'x-component': string; 'x-read-pretty': boolean; properties: { drawer: { type: string; name: string; title: string; 'x-component': string; properties: { content: { type: string; 'x-decorator': string; 'x-decorator-props': { collection: { name: string; fields: { interface: string; type: string; name: string; uiSchema: ISchema; }[]; }; dataSource: string; action: string; params: { appends: string[]; pageSize: number; sort: string[]; }; }; properties: { actions: { type: string; 'x-component': string; 'x-component-props': { style: { marginBottom: number; }; }; properties: { filter: { type: string; title: string; 'x-action': string; 'x-designer': string; 'x-component': string; 'x-use-component-props': string; 'x-component-props': { icon: string; }; 'x-align': string; }; refresher: { type: string; title: string; 'x-action': string; 'x-component': string; 'x-use-component-props': string; 'x-designer': string; 'x-component-props': { icon: string; }; 'x-align': string; }; clear: { type: string; title: string; 'x-component': string; 'x-component-props': { isShow: boolean; useAction(): { run(): Promise<void>; }; confirm: { title: string; content: string; }; }; }; }; }; table: { type: string; 'x-component': string; 'x-use-component-props': string; 'x-component-props': { rowKey: string; }; properties: { actions: { type: string; title: string; 'x-component': string; 'x-component-props': { width: number; align: string; }; properties: { actions: { type: string; 'x-component': string; 'x-component-props': { split: string; }; properties: { link: { type: string; 'x-component': string; }; retry: { type: string; title: string; 'x-component': string; 'x-use-component-props': string; }; }; }; }; }; id: { type: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { width: number; align: string; }; properties: { id: { type: string; 'x-component': string; 'x-read-pretty': boolean; }; }; }; approvalId: { type: string; title: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { width: number; align: string; }; properties: { approvalId: { type: string; 'x-component': string; 'x-read-pretty': boolean; }; }; }; createdAt: { type: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { width: number; }; properties: { createdAt: { type: string; 'x-component': string; 'x-component-props': { showTime: boolean; }; 'x-read-pretty': boolean; }; }; }; executionCost: { type: string; title: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { width: number; }; properties: { executionCost: { type: string; 'x-component': string; 'x-read-pretty': boolean; }; }; }; workflowId: { type: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { width: number; align: string; }; properties: { workflowId: { type: string; 'x-component': string; 'x-read-pretty': boolean; }; }; }; status: { type: string; title: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { width: number; }; properties: { status: { type: string; 'x-decorator': string; 'x-component': string; 'x-read-pretty': boolean; }; }; }; }; }; }; }; }; }; }; }; }; }; updatedAt: { type: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { sorter: boolean; width: number; align: string; style: { display: string; placeItems: string; }; }; properties: { updatedAt: { type: string; 'x-component': string; 'x-read-pretty': boolean; }; }; }; updatedBy: { type: string; 'x-decorator': string; 'x-component': string; 'x-component-props': { sorter: boolean; width: number; align: string; style: { display: string; placeItems: string; }; }; properties: { updatedBy: { type: string; 'x-collection-field': string; 'x-component': string; 'x-read-pretty': boolean; }; }; }; actions: { type: string; title: string; 'x-component': string; 'x-component-props': { fixed: string; }; properties: { actions: { type: string; 'x-component': string; 'x-component-props': { split: string; }; properties: { configure: { type: string; 'x-component': string; }; update: import("@tachybase/schema").Stringify<{ [key: symbol]: any; [key: `x-${string}`]: any; [key: `x-${number}`]: any; version?: string; name?: import("@tachybase/schema").SchemaKey; title?: any; description?: any; default?: any; readOnly?: boolean; writeOnly?: boolean; type?: import("@tachybase/schema").SchemaTypes; enum?: import("@tachybase/schema").SchemaEnum<any>; const?: any; multipleOf?: number; maximum?: number; exclusiveMaximum?: number; minimum?: number; exclusiveMinimum?: number; maxLength?: number; minLength?: number; pattern?: string | RegExp; maxItems?: number; minItems?: number; uniqueItems?: boolean; maxProperties?: number; minProperties?: number; required?: string[] | boolean | string; format?: string; $ref?: string; $namespace?: string; definitions?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>; properties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>; items?: import("@tachybase/schema").SchemaItems<any, any, any, any, any, any, any, any>; additionalItems?: import("@tachybase/schema").Stringify</*elided*/ any>; patternProperties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>; additionalProperties?: import("@tachybase/schema").Stringify</*elided*/ any>; "x-value"?: any; "x-index"?: number; "x-pattern"?: any; "x-display"?: any; "x-validator"?: any; "x-decorator"?: any; "x-decorator-props"?: any; "x-component"?: any; "x-component-props"?: any; "x-reactions"?: import("@tachybase/schema").SchemaReactions<any>; "x-content"?: any; "x-data"?: any; "x-visible"?: boolean; "x-hidden"?: boolean; "x-disabled"?: boolean; "x-editable"?: boolean; "x-read-only"?: boolean; "x-read-pretty"?: boolean; "x-compile-omitted"?: string[]; }>; revision: { type: string; title: string; 'x-component': string; 'x-component-props': { openSize: string; }; properties: { modal: { type: string; title: string; 'x-decorator': string; 'x-component': string; properties: { title: { type: string; title: string; 'x-decorator': string; 'x-component': string; }; footer: { type: string; 'x-component': string; properties: { submit: { type: string; title: string; 'x-component': string; 'x-component-props': { type: string; useAction(): { run(): Promise<void>; }; }; }; cancel: { type: string; title: string; 'x-component': string; 'x-component-props': { useAction: string; }; }; }; }; }; }; }; }; delete: { type: string; title: string; 'x-action': string; 'x-component': string; 'x-use-component-props': string; 'x-component-props': { confirm: { title: string; content: string; }; }; }; dump: { type: string; title: string; 'x-component': string; 'x-component-props': { useAction(): { run(): Promise<void>; }; }; }; }; }; }; }; }; }; }; }; }; };