@nocobase/flow-engine
Version:
A standalone flow engine for NocoBase, managing workflows, models, and actions.
23 lines (22 loc) • 1.42 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 type { MetaTreeNode } from '../../flowContext';
import type { ContextSelectorItem, Converters } from './types';
export declare const parseValueToPath: (value: string) => string[] | undefined;
export declare const formatPathToValue: (item: MetaTreeNode) => string;
export declare const loadMetaTreeChildren: (metaNode: MetaTreeNode) => Promise<MetaTreeNode[]>;
export declare const searchInLoadedNodes: (options: ContextSelectorItem[], searchText: string, parentPaths?: string[]) => ContextSelectorItem[];
export declare const buildContextSelectorItems: (metaTree: MetaTreeNode[]) => ContextSelectorItem[];
/**
* 预加载:根据路径逐级加载 ContextSelectorItem 的 children,保证打开时已展开对应层级。
*/
export declare const preloadContextSelectorPath: (options: ContextSelectorItem[] | undefined, pathSegments: (string | number)[], triggerUpdate?: () => void) => Promise<void>;
export declare const isVariableValue: (value: any) => boolean;
export declare const createDefaultConverters: () => Converters;
export declare const createFinalConverters: (propConverters?: Converters) => Converters;