UNPKG

@nocobase/flow-engine

Version:

A standalone flow engine for NocoBase, managing workflows, models, and actions.

118 lines (116 loc) 5.29 kB
/** * 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. */ var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var utils_exports = {}; __export(utils_exports, { BLOCK_GROUP_CONFIGS: () => import_constants.BLOCK_GROUP_CONFIGS, BLOCK_TYPES: () => import_constants.BLOCK_TYPES, FLOW_ENGINE_NAMESPACE: () => import_constants.FLOW_ENGINE_NAMESPACE, FlowExitException: () => import_exceptions.FlowExitException, MENU_KEYS: () => import_constants.MENU_KEYS, buildRecordMeta: () => import_variablesParams.buildRecordMeta, clearAutoFlowError: () => import_autoFlowError.clearAutoFlowError, collectContextParamsForTemplate: () => import_variablesParams.collectContextParamsForTemplate, compileUiSchema: () => import_schema_utils.compileUiSchema, createCollectionContextMeta: () => import_createCollectionContextMeta.createCollectionContextMeta, createCurrentRecordMetaFactory: () => import_variablesParams.createCurrentRecordMetaFactory, createRecordMetaFactory: () => import_variablesParams.createRecordMetaFactory, createSafeDocument: () => import_safeGlobals.createSafeDocument, createSafeWindow: () => import_safeGlobals.createSafeWindow, defineAction: () => import_flow_definitions.defineAction, escapeT: () => import_translation.escapeT, extractPropertyPath: () => import_context.extractPropertyPath, extractUsedVariableNames: () => import_variablesParams.extractUsedVariableNames, extractUsedVariablePaths: () => import_variablesParams.extractUsedVariablePaths, formatPathToVariable: () => import_context.formatPathToVariable, getAutoFlowError: () => import_autoFlowError.getAutoFlowError, getT: () => import_translation.getT, inferParentRecordRef: () => import_variablesParams.inferParentRecordRef, inferRecordRef: () => import_variablesParams.inferRecordRef, isInheritedFrom: () => import_inheritance.isInheritedFrom, isVariableExpression: () => import_context.isVariableExpression, parsePathnameToViewParams: () => import_parsePathnameToViewParams.parsePathnameToViewParams, resolveCreateModelOptions: () => import_params_resolvers.resolveCreateModelOptions, resolveDefaultParams: () => import_params_resolvers.resolveDefaultParams, resolveExpressions: () => import_params_resolvers.resolveExpressions, resolveStepUiSchema: () => import_schema_utils.resolveStepUiSchema, resolveUiMode: () => import_schema_utils.resolveUiMode, setAutoFlowError: () => import_autoFlowError.setAutoFlowError, setupRuntimeContextSteps: () => import_setupRuntimeContextSteps.setupRuntimeContextSteps, tExpr: () => import_translation.tExpr }); module.exports = __toCommonJS(utils_exports); var import_constants = require("./constants"); var import_translation = require("./translation"); var import_exceptions = require("./exceptions"); var import_flow_definitions = require("./flow-definitions"); var import_inheritance = require("./inheritance"); var import_params_resolvers = require("./params-resolvers"); var import_schema_utils = require("./schema-utils"); var import_setupRuntimeContextSteps = require("./setupRuntimeContextSteps"); var import_createCollectionContextMeta = require("./createCollectionContextMeta"); var import_variablesParams = require("./variablesParams"); var import_context = require("./context"); var import_autoFlowError = require("./autoFlowError"); var import_parsePathnameToViewParams = require("./parsePathnameToViewParams"); var import_safeGlobals = require("./safeGlobals"); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { BLOCK_GROUP_CONFIGS, BLOCK_TYPES, FLOW_ENGINE_NAMESPACE, FlowExitException, MENU_KEYS, buildRecordMeta, clearAutoFlowError, collectContextParamsForTemplate, compileUiSchema, createCollectionContextMeta, createCurrentRecordMetaFactory, createRecordMetaFactory, createSafeDocument, createSafeWindow, defineAction, escapeT, extractPropertyPath, extractUsedVariableNames, extractUsedVariablePaths, formatPathToVariable, getAutoFlowError, getT, inferParentRecordRef, inferRecordRef, isInheritedFrom, isVariableExpression, parsePathnameToViewParams, resolveCreateModelOptions, resolveDefaultParams, resolveExpressions, resolveStepUiSchema, resolveUiMode, setAutoFlowError, setupRuntimeContextSteps, tExpr });