@nocobase/plugin-flow-engine 2.0.0-alpha.2
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.
- package/LICENSE +661 -0
- package/README.md +29 -0
- package/build.config.ts +22 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.js +10 -0
- package/dist/externalVersion.js +21 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.json +61 -0
- package/dist/locale/index.d.ts +141 -0
- package/dist/locale/index.js +79 -0
- package/dist/locale/zh-CN.json +61 -0
- package/dist/node_modules/ses/LICENSE +201 -0
- package/dist/node_modules/ses/LICENSE-aura +16 -0
- package/dist/node_modules/ses/LICENSE-caja +13 -0
- package/dist/node_modules/ses/LICENSE-corejs +19 -0
- package/dist/node_modules/ses/LICENSE-v8 +9 -0
- package/dist/node_modules/ses/assert-shim.js +1 -0
- package/dist/node_modules/ses/compartment-shim.js +1 -0
- package/dist/node_modules/ses/console-shim.js +1 -0
- package/dist/node_modules/ses/dist/lockdown.cjs +13912 -0
- package/dist/node_modules/ses/dist/lockdown.umd.js +13912 -0
- package/dist/node_modules/ses/dist/lockdown.umd.min.js +1 -0
- package/dist/node_modules/ses/dist/ses-hermes.cjs +13912 -0
- package/dist/node_modules/ses/dist/ses.cjs +1 -0
- package/dist/node_modules/ses/dist/ses.umd.js +13912 -0
- package/dist/node_modules/ses/dist/ses.umd.min.js +1 -0
- package/dist/node_modules/ses/dist/types.d.cts +606 -0
- package/dist/node_modules/ses/index.js +18 -0
- package/dist/node_modules/ses/lockdown-shim.js +1 -0
- package/dist/node_modules/ses/lockdown.js +1 -0
- package/dist/node_modules/ses/package.json +1 -0
- package/dist/node_modules/ses/src/assert-shim.js +4 -0
- package/dist/node_modules/ses/src/assert-sloppy-mode.js +11 -0
- package/dist/node_modules/ses/src/cauterize-property.js +69 -0
- package/dist/node_modules/ses/src/commons.js +425 -0
- package/dist/node_modules/ses/src/compartment-evaluate.js +93 -0
- package/dist/node_modules/ses/src/compartment-shim.js +22 -0
- package/dist/node_modules/ses/src/compartment.js +477 -0
- package/dist/node_modules/ses/src/console-shim.js +50 -0
- package/dist/node_modules/ses/src/enable-property-overrides.js +211 -0
- package/dist/node_modules/ses/src/enablements.js +244 -0
- package/dist/node_modules/ses/src/error/assert.js +584 -0
- package/dist/node_modules/ses/src/error/console.js +541 -0
- package/dist/node_modules/ses/src/error/fatal-assert.js +54 -0
- package/dist/node_modules/ses/src/error/internal-types.js +98 -0
- package/dist/node_modules/ses/src/error/note-log-args.js +77 -0
- package/dist/node_modules/ses/src/error/stringify-utils.js +195 -0
- package/dist/node_modules/ses/src/error/tame-console.js +197 -0
- package/dist/node_modules/ses/src/error/tame-error-constructor.js +284 -0
- package/dist/node_modules/ses/src/error/tame-v8-error-constructor.js +386 -0
- package/dist/node_modules/ses/src/error/types.js +59 -0
- package/dist/node_modules/ses/src/error/unhandled-rejection.js +122 -0
- package/dist/node_modules/ses/src/eval-scope.js +89 -0
- package/dist/node_modules/ses/src/get-anonymous-intrinsics.js +181 -0
- package/dist/node_modules/ses/src/get-source-url.js +50 -0
- package/dist/node_modules/ses/src/global-object.js +175 -0
- package/dist/node_modules/ses/src/intrinsics.js +192 -0
- package/dist/node_modules/ses/src/lockdown-shim.js +37 -0
- package/dist/node_modules/ses/src/lockdown.js +558 -0
- package/dist/node_modules/ses/src/make-eval-function.js +28 -0
- package/dist/node_modules/ses/src/make-evaluate.js +110 -0
- package/dist/node_modules/ses/src/make-function-constructor.js +79 -0
- package/dist/node_modules/ses/src/make-hardener.js +275 -0
- package/dist/node_modules/ses/src/make-safe-evaluator.js +112 -0
- package/dist/node_modules/ses/src/module-instance.js +497 -0
- package/dist/node_modules/ses/src/module-link.js +159 -0
- package/dist/node_modules/ses/src/module-load.js +719 -0
- package/dist/node_modules/ses/src/module-proxy.js +200 -0
- package/dist/node_modules/ses/src/permits-intrinsics.js +291 -0
- package/dist/node_modules/ses/src/permits.js +1761 -0
- package/dist/node_modules/ses/src/reporting-types.d.ts +13 -0
- package/dist/node_modules/ses/src/reporting.js +105 -0
- package/dist/node_modules/ses/src/scope-constants.js +180 -0
- package/dist/node_modules/ses/src/shim-arraybuffer-transfer.js +85 -0
- package/dist/node_modules/ses/src/sloppy-globals-scope-terminator.js +61 -0
- package/dist/node_modules/ses/src/strict-scope-terminator.js +99 -0
- package/dist/node_modules/ses/src/tame-date-constructor.js +127 -0
- package/dist/node_modules/ses/src/tame-domains.js +41 -0
- package/dist/node_modules/ses/src/tame-faux-data-properties.js +210 -0
- package/dist/node_modules/ses/src/tame-function-constructors.js +140 -0
- package/dist/node_modules/ses/src/tame-function-tostring.js +50 -0
- package/dist/node_modules/ses/src/tame-harden.js +29 -0
- package/dist/node_modules/ses/src/tame-locale-methods.js +78 -0
- package/dist/node_modules/ses/src/tame-math-object.js +41 -0
- package/dist/node_modules/ses/src/tame-module-source.js +51 -0
- package/dist/node_modules/ses/src/tame-regenerator-runtime.js +29 -0
- package/dist/node_modules/ses/src/tame-regexp-constructor.js +65 -0
- package/dist/node_modules/ses/src/tame-symbol-constructor.js +64 -0
- package/dist/node_modules/ses/src/transforms.js +267 -0
- package/dist/node_modules/ses/tools.js +25 -0
- package/dist/node_modules/ses/types.d.ts +606 -0
- package/dist/server/actions/ui-schema-action.d.ts +27 -0
- package/dist/server/actions/ui-schema-action.js +118 -0
- package/dist/server/collections/flowModelTreePath.d.ts +11 -0
- package/dist/server/collections/flowModelTreePath.js +74 -0
- package/dist/server/collections/flowModels.d.ts +11 -0
- package/dist/server/collections/flowModels.js +57 -0
- package/dist/server/collections/flowsql.d.ts +10 -0
- package/dist/server/collections/flowsql.js +51 -0
- package/dist/server/dao/ui_schema_node_dao.d.ts +26 -0
- package/dist/server/dao/ui_schema_node_dao.js +24 -0
- package/dist/server/helper.d.ts +8 -0
- package/dist/server/helper.js +9 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +42 -0
- package/dist/server/model.d.ts +12 -0
- package/dist/server/model.js +38 -0
- package/dist/server/plugin.d.ts +26 -0
- package/dist/server/plugin.js +270 -0
- package/dist/server/repository.d.ts +116 -0
- package/dist/server/repository.js +1209 -0
- package/dist/server/server.d.ts +16 -0
- package/dist/server/server.js +198 -0
- package/dist/server/template/contexts.d.ts +73 -0
- package/dist/server/template/contexts.js +233 -0
- package/dist/server/template/resolver.d.ts +30 -0
- package/dist/server/template/resolver.js +225 -0
- package/dist/server/variables/registry.d.ts +42 -0
- package/dist/server/variables/registry.js +299 -0
- package/package.json +28 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# NocoBase
|
|
2
|
+
|
|
3
|
+
<video width="100%" controls>
|
|
4
|
+
<source src="https://static-docs.nocobase.com/NocoBase0510.mp4" type="video/mp4">
|
|
5
|
+
</video>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## What is NocoBase
|
|
9
|
+
|
|
10
|
+
NocoBase is a scalability-first, open-source no-code development platform.
|
|
11
|
+
Instead of investing years of time and millions of dollars in research and development, deploy NocoBase in a few minutes and you'll have a private, controllable, and extremely scalable no-code development platform!
|
|
12
|
+
|
|
13
|
+
Homepage:
|
|
14
|
+
https://www.nocobase.com/
|
|
15
|
+
|
|
16
|
+
Online Demo:
|
|
17
|
+
https://demo.nocobase.com/new
|
|
18
|
+
|
|
19
|
+
Documents:
|
|
20
|
+
https://docs.nocobase.com/
|
|
21
|
+
|
|
22
|
+
Commericial license & plugins:
|
|
23
|
+
https://www.nocobase.com/en/commercial
|
|
24
|
+
|
|
25
|
+
License agreement:
|
|
26
|
+
https://www.nocobase.com/en/agreement
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## Contact Us:
|
package/build.config.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineConfig } from '@nocobase/build';
|
|
2
|
+
import fs from 'fs/promises';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
|
|
5
|
+
const existsSync = require('fs').existsSync;
|
|
6
|
+
|
|
7
|
+
const client = path.dirname(require.resolve('@nocobase/flow-engine/package.json'));
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
afterBuild: async (log) => {
|
|
11
|
+
const localeDir = path.resolve(__dirname, './dist/locale');
|
|
12
|
+
if (existsSync(localeDir)) {
|
|
13
|
+
await fs.rm(localeDir, { recursive: true });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
log('coping flow-engine locale');
|
|
17
|
+
await fs.cp(path.resolve(client, 'lib', 'locale'), localeDir, {
|
|
18
|
+
recursive: true,
|
|
19
|
+
force: true,
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
});
|
package/client.d.ts
ADDED
package/client.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/client/index.js');
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from '@nocobase/client';
|
|
10
|
+
export declare class PluginFlowEngineClient extends Plugin {
|
|
11
|
+
afterAdd(): Promise<void>;
|
|
12
|
+
beforeLoad(): Promise<void>;
|
|
13
|
+
load(): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export default PluginFlowEngineClient;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-flow-engine",["@nocobase/client"],t):"object"==typeof exports?exports["@nocobase/plugin-flow-engine"]=t(require("@nocobase/client")):e["@nocobase/plugin-flow-engine"]=t(e["@nocobase/client"])}(self,function(e){return function(){"use strict";var t={772:function(t){t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var u=n[e]={exports:{}};return t[e](u,u.exports,r),u.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return!function(){r.r(o),r.d(o,{PluginFlowEngineClient:function(){return p}});var e=r(772);function t(e,t,n,r,o,u,i){try{var c=e[u](i),f=c.value}catch(e){n(e);return}c.done?t(f):Promise.resolve(f).then(r,o)}function n(e){return function(){var n=this,r=arguments;return new Promise(function(o,u){var i=e.apply(n,r);function c(e){t(i,o,u,c,f,"next",e)}function f(e){t(i,o,u,c,f,"throw",e)}c(void 0)})}}function u(e,t,n){return(u=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&c(o,n.prototype),o}).apply(null,arguments)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function l(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(u){return function(c){var f=[u,c];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&f[0]?r.return:f[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,f[1])).done)return o;switch(r=0,o&&(f=[2&f[0],o.value]),f[0]){case 0:case 1:o=f;break;case 4:return i.label++,{value:f[1],done:!1};case 5:i.label++,r=f[1],f=[0];continue;case 7:f=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===f[0]||2===f[0])){i=0;continue}if(3===f[0]&&(!o||f[1]>o[0]&&f[1]<o[3])){i.label=f[1];break}if(6===f[0]&&i.label<o[1]){i.label=o[1],o=f;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(f);break}o[2]&&i.ops.pop(),i.trys.pop();continue}f=t.call(e,i)}catch(e){f=[6,e],r=0}finally{n=o=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}}var p=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,t;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return e=r,t=arguments,e=i(e),function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,a()?Reflect.construct(e,t||[],i(this).constructor):e.apply(this,t))}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&c(r,e),t=[{key:"afterAdd",value:function(){return n(function(){return l(this,function(e){return[2]})})()}},{key:"beforeLoad",value:function(){return n(function(){return l(this,function(e){return[2]})})()}},{key:"load",value:function(){return n(function(){return l(this,function(e){return[2]})})()}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,t),r}(f(e.Plugin));o.default=p}(),o}()});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
"@nocobase/client": "2.0.0-alpha.2",
|
|
12
|
+
"lodash": "4.17.21",
|
|
13
|
+
"@nocobase/database": "2.0.0-alpha.2",
|
|
14
|
+
"@nocobase/data-source-manager": "2.0.0-alpha.2",
|
|
15
|
+
"@nocobase/resourcer": "2.0.0-alpha.2",
|
|
16
|
+
"@nocobase/server": "2.0.0-alpha.2",
|
|
17
|
+
"@nocobase/cache": "2.0.0-alpha.2",
|
|
18
|
+
"@nocobase/utils": "2.0.0-alpha.2",
|
|
19
|
+
"@nocobase/plugin-localization": "2.0.0-alpha.2",
|
|
20
|
+
"@nocobase/actions": "2.0.0-alpha.2"
|
|
21
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export * from './server';
|
|
10
|
+
export { default } from './server';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
|
+
var src_exports = {};
|
|
39
|
+
__export(src_exports, {
|
|
40
|
+
default: () => import_server.default
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(src_exports);
|
|
43
|
+
__reExport(src_exports, require("./server"), module.exports);
|
|
44
|
+
var import_server = __toESM(require("./server"));
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
...require("./server")
|
|
48
|
+
});
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Invalid model provided": "Invalid model provided",
|
|
3
|
+
"Flow with key {{flowKey}} not found": "Flow with key {{flowKey}} not found",
|
|
4
|
+
"Step with key {{stepKey}} not found": "Step with key {{stepKey}} not found",
|
|
5
|
+
"Configuration": "Configuration",
|
|
6
|
+
"Step configuration": "Step configuration",
|
|
7
|
+
"This step has no configurable parameters": "This step has no configurable parameters",
|
|
8
|
+
"Failed to import Formily components": "Failed to import Formily components",
|
|
9
|
+
"Drawer API is not available, please ensure it is used within FlowEngineGlobalsContextProvider": "Drawer API is not available, please ensure it is used within FlowEngineGlobalsContextProvider",
|
|
10
|
+
"Configuration saved": "Configuration saved",
|
|
11
|
+
"Error saving configuration": "Error saving configuration",
|
|
12
|
+
"Error saving configuration, please check console": "Error saving configuration, please check console",
|
|
13
|
+
"Failed to import FormDialog": "Failed to import FormDialog",
|
|
14
|
+
"OK": "OK",
|
|
15
|
+
"Cancel": "Cancel",
|
|
16
|
+
"Step parameter configuration": "Step parameter configuration",
|
|
17
|
+
"Error submitting form": "Error submitting form",
|
|
18
|
+
"Complete configuration": "Complete configuration",
|
|
19
|
+
"Previous step": "Previous step",
|
|
20
|
+
"Form validation failed": "Form validation failed",
|
|
21
|
+
"Next step": "Next step",
|
|
22
|
+
"Failed to import FormDialog or FormStep": "Failed to import FormDialog or FormStep",
|
|
23
|
+
"UID copied to clipboard": "UID copied to clipboard",
|
|
24
|
+
"Copy failed": "Copy failed",
|
|
25
|
+
"Copy failed, please copy [{{uid}}] manually.": "Copy failed, please copy [{{uid}}] manually.",
|
|
26
|
+
"Confirm delete": "Confirm delete",
|
|
27
|
+
"Are you sure you want to delete this item? This action cannot be undone.": "Are you sure you want to delete this item? This action cannot be undone.",
|
|
28
|
+
"Delete operation failed": "Delete operation failed",
|
|
29
|
+
"Delete failed": "Delete failed",
|
|
30
|
+
"Delete operation failed, please check the console for details.": "Delete operation failed, please check the console for details.",
|
|
31
|
+
"Configuration popup cancelled or error": "Configuration popup cancelled or error",
|
|
32
|
+
"Failed to get action {{action}}": "Failed to get action {{action}}",
|
|
33
|
+
"Failed to get configurable flows for model {{model}}": "Failed to get configurable flows for model {{model}}",
|
|
34
|
+
"Copy UID": "Copy UID",
|
|
35
|
+
"Delete": "Delete",
|
|
36
|
+
"This is likely a NocoBase internals bug. Please open an issue at": "This is likely a NocoBase internals bug. Please open an issue at",
|
|
37
|
+
"here": "here",
|
|
38
|
+
"Render failed": "Render failed",
|
|
39
|
+
"Feedback": "Feedback",
|
|
40
|
+
"Download logs": "Download logs",
|
|
41
|
+
"Copy error info": "Copy error info",
|
|
42
|
+
"Try again": "Try again",
|
|
43
|
+
"Data blocks": "Data blocks",
|
|
44
|
+
"Filter blocks": "Filter blocks",
|
|
45
|
+
"Other blocks": "Other blocks",
|
|
46
|
+
"Invalid input parameters": "Invalid input parameters",
|
|
47
|
+
"Invalid subModelKey format": "Invalid subModelKey format: {{subModelKey}}",
|
|
48
|
+
"Submodel not found": "Submodel '{{subKey}}' not found",
|
|
49
|
+
"Expected array for subModel": "Expected array for '{{subKey}}', got {{type}}",
|
|
50
|
+
"Array index out of bounds": "Array index {{index}} out of bounds for '{{subKey}}'",
|
|
51
|
+
"Expected object for subModel": "Expected object for '{{subKey}}', got array",
|
|
52
|
+
"No createModelOptions found for item": "No createModelOptions found for item",
|
|
53
|
+
"createModelOptions must specify use property": "createModelOptions must specify \"use\" property",
|
|
54
|
+
"Failed to add sub model": "Failed to add sub model",
|
|
55
|
+
"Failed to destroy model after creation error": "Failed to destroy model after creation error",
|
|
56
|
+
"Add": "Add",
|
|
57
|
+
"Name": "Name",
|
|
58
|
+
"Model with ID {{uid}} not found": "Model with ID {{uid}} not found",
|
|
59
|
+
"Common actions": "Common actions",
|
|
60
|
+
"This variable is not available": "This variable is not available"
|
|
61
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const locales: {
|
|
10
|
+
'en-US': {
|
|
11
|
+
"Invalid model provided": string;
|
|
12
|
+
"Flow with key {{flowKey}} not found": string;
|
|
13
|
+
"Step with key {{stepKey}} not found": string;
|
|
14
|
+
Configuration: string;
|
|
15
|
+
"Step configuration": string;
|
|
16
|
+
"This step has no configurable parameters": string;
|
|
17
|
+
"Failed to import Formily components": string;
|
|
18
|
+
"Drawer API is not available, please ensure it is used within FlowEngineGlobalsContextProvider": string;
|
|
19
|
+
"Configuration saved": string;
|
|
20
|
+
"Error saving configuration": string;
|
|
21
|
+
"Error saving configuration, please check console": string;
|
|
22
|
+
"Failed to import FormDialog": string;
|
|
23
|
+
OK: string;
|
|
24
|
+
Cancel: string;
|
|
25
|
+
"Step parameter configuration": string;
|
|
26
|
+
"Error submitting form": string;
|
|
27
|
+
"Complete configuration": string;
|
|
28
|
+
"Previous step": string;
|
|
29
|
+
"Form validation failed": string;
|
|
30
|
+
"Next step": string;
|
|
31
|
+
"Failed to import FormDialog or FormStep": string;
|
|
32
|
+
"UID copied to clipboard": string;
|
|
33
|
+
"Copy failed": string;
|
|
34
|
+
"Copy failed, please copy [{{uid}}] manually.": string;
|
|
35
|
+
"Confirm delete": string;
|
|
36
|
+
"Are you sure you want to delete this item? This action cannot be undone.": string;
|
|
37
|
+
"Delete operation failed": string;
|
|
38
|
+
"Delete failed": string;
|
|
39
|
+
"Delete operation failed, please check the console for details.": string;
|
|
40
|
+
"Configuration popup cancelled or error": string;
|
|
41
|
+
"Failed to get action {{action}}": string;
|
|
42
|
+
"Failed to get configurable flows for model {{model}}": string;
|
|
43
|
+
"Copy UID": string;
|
|
44
|
+
Delete: string;
|
|
45
|
+
"This is likely a NocoBase internals bug. Please open an issue at": string;
|
|
46
|
+
here: string;
|
|
47
|
+
"Render failed": string;
|
|
48
|
+
Feedback: string;
|
|
49
|
+
"Download logs": string;
|
|
50
|
+
"Copy error info": string;
|
|
51
|
+
"Try again": string;
|
|
52
|
+
"Data blocks": string;
|
|
53
|
+
"Filter blocks": string;
|
|
54
|
+
"Other blocks": string;
|
|
55
|
+
"Invalid input parameters": string;
|
|
56
|
+
"Invalid subModelKey format": string;
|
|
57
|
+
"Submodel not found": string;
|
|
58
|
+
"Expected array for subModel": string;
|
|
59
|
+
"Array index out of bounds": string;
|
|
60
|
+
"Expected object for subModel": string;
|
|
61
|
+
"No createModelOptions found for item": string;
|
|
62
|
+
"createModelOptions must specify use property": string;
|
|
63
|
+
"Failed to add sub model": string;
|
|
64
|
+
"Failed to destroy model after creation error": string;
|
|
65
|
+
Add: string;
|
|
66
|
+
Name: string;
|
|
67
|
+
"Model with ID {{uid}} not found": string;
|
|
68
|
+
"Common actions": string;
|
|
69
|
+
"This variable is not available": string;
|
|
70
|
+
};
|
|
71
|
+
'zh-CN': {
|
|
72
|
+
"Invalid model provided": string;
|
|
73
|
+
"Flow with key {{flowKey}} not found": string;
|
|
74
|
+
"Step with key {{stepKey}} not found": string;
|
|
75
|
+
Configuration: string;
|
|
76
|
+
"Step configuration": string;
|
|
77
|
+
"This step has no configurable parameters": string;
|
|
78
|
+
"Failed to import Formily components": string;
|
|
79
|
+
"Drawer API is not available, please ensure it is used within FlowEngineGlobalsContextProvider": string;
|
|
80
|
+
"Configuration saved": string;
|
|
81
|
+
"Error saving configuration": string;
|
|
82
|
+
"Error saving configuration, please check console": string;
|
|
83
|
+
"Failed to import FormDialog": string;
|
|
84
|
+
OK: string;
|
|
85
|
+
Cancel: string;
|
|
86
|
+
"Step parameter configuration": string;
|
|
87
|
+
"Error submitting form": string;
|
|
88
|
+
"Complete configuration": string;
|
|
89
|
+
"Previous step": string;
|
|
90
|
+
"Form validation failed": string;
|
|
91
|
+
"Next step": string;
|
|
92
|
+
"Failed to import FormDialog or FormStep": string;
|
|
93
|
+
"UID copied to clipboard": string;
|
|
94
|
+
"Copy failed": string;
|
|
95
|
+
"Copy failed, please copy [{{uid}}] manually.": string;
|
|
96
|
+
"Confirm delete": string;
|
|
97
|
+
"Are you sure you want to delete this item? This action cannot be undone.": string;
|
|
98
|
+
"Delete operation failed": string;
|
|
99
|
+
"Delete failed": string;
|
|
100
|
+
"Delete operation failed, please check the console for details.": string;
|
|
101
|
+
"Configuration popup cancelled or error": string;
|
|
102
|
+
"Failed to get action {{action}}": string;
|
|
103
|
+
"Failed to get configurable flows for model {{model}}": string;
|
|
104
|
+
"Copy UID": string;
|
|
105
|
+
Delete: string;
|
|
106
|
+
"This is likely a NocoBase internals bug. Please open an issue at": string;
|
|
107
|
+
here: string;
|
|
108
|
+
"Render failed": string;
|
|
109
|
+
Feedback: string;
|
|
110
|
+
"Download logs": string;
|
|
111
|
+
"Copy error info": string;
|
|
112
|
+
"Try again": string;
|
|
113
|
+
"Data blocks": string;
|
|
114
|
+
"Filter blocks": string;
|
|
115
|
+
"Other blocks": string;
|
|
116
|
+
"Invalid input parameters": string;
|
|
117
|
+
"Invalid subModelKey format": string;
|
|
118
|
+
"Submodel not found": string;
|
|
119
|
+
"Expected array for subModel": string;
|
|
120
|
+
"Array index out of bounds": string;
|
|
121
|
+
"Expected object for subModel": string;
|
|
122
|
+
"No createModelOptions found for item": string;
|
|
123
|
+
"createModelOptions must specify use property": string;
|
|
124
|
+
"Failed to add sub model": string;
|
|
125
|
+
"Failed to destroy model after creation error": string;
|
|
126
|
+
Add: string;
|
|
127
|
+
Name: string;
|
|
128
|
+
"Model with ID {{uid}} not found": string;
|
|
129
|
+
"Common actions": string;
|
|
130
|
+
"This variable is not available": string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Get translation for a key with fallback
|
|
135
|
+
*/
|
|
136
|
+
export declare function getFlowEngineTranslation(key: string, locale?: string): string;
|
|
137
|
+
/**
|
|
138
|
+
* Initialize flow-engine locale resources
|
|
139
|
+
* This should be called when the flow-engine is initialized
|
|
140
|
+
*/
|
|
141
|
+
export declare function initFlowEngineLocale(i18nInstance?: any): void;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* This file is part of the NocoBase (R) project.
|
|
12
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
13
|
+
* Authors: NocoBase Team.
|
|
14
|
+
*
|
|
15
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
16
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
var __create = Object.create;
|
|
20
|
+
var __defProp = Object.defineProperty;
|
|
21
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
22
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
23
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
24
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
25
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
26
|
+
var __export = (target, all) => {
|
|
27
|
+
for (var name in all)
|
|
28
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
29
|
+
};
|
|
30
|
+
var __copyProps = (to, from, except, desc) => {
|
|
31
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
32
|
+
for (let key of __getOwnPropNames(from))
|
|
33
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
34
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
35
|
+
}
|
|
36
|
+
return to;
|
|
37
|
+
};
|
|
38
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
39
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
40
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
41
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
42
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
43
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
44
|
+
mod
|
|
45
|
+
));
|
|
46
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
47
|
+
var locale_exports = {};
|
|
48
|
+
__export(locale_exports, {
|
|
49
|
+
getFlowEngineTranslation: () => getFlowEngineTranslation,
|
|
50
|
+
initFlowEngineLocale: () => initFlowEngineLocale,
|
|
51
|
+
locales: () => locales
|
|
52
|
+
});
|
|
53
|
+
module.exports = __toCommonJS(locale_exports);
|
|
54
|
+
var import_en_US = __toESM(require("./en-US.json"));
|
|
55
|
+
var import_zh_CN = __toESM(require("./zh-CN.json"));
|
|
56
|
+
var import_utils = require("../utils");
|
|
57
|
+
const locales = {
|
|
58
|
+
"en-US": import_en_US.default,
|
|
59
|
+
"zh-CN": import_zh_CN.default
|
|
60
|
+
};
|
|
61
|
+
function getFlowEngineTranslation(key, locale = "en-US") {
|
|
62
|
+
const translations = locales[locale] || locales["en-US"];
|
|
63
|
+
return translations[key] || key;
|
|
64
|
+
}
|
|
65
|
+
__name(getFlowEngineTranslation, "getFlowEngineTranslation");
|
|
66
|
+
function initFlowEngineLocale(i18nInstance) {
|
|
67
|
+
if (i18nInstance && typeof i18nInstance.addResourceBundle === "function") {
|
|
68
|
+
Object.entries(locales).forEach(([locale, resources]) => {
|
|
69
|
+
i18nInstance.addResourceBundle(locale, import_utils.FLOW_ENGINE_NAMESPACE, resources, true, false);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
__name(initFlowEngineLocale, "initFlowEngineLocale");
|
|
74
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
75
|
+
0 && (module.exports = {
|
|
76
|
+
getFlowEngineTranslation,
|
|
77
|
+
initFlowEngineLocale,
|
|
78
|
+
locales
|
|
79
|
+
});
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Invalid model provided": "提供的模型无效",
|
|
3
|
+
"Flow with key {{flowKey}} not found": "未找到key为 {{flowKey}} 的流程",
|
|
4
|
+
"Step with key {{stepKey}} not found": "未找到key为 {{stepKey}} 的步骤",
|
|
5
|
+
"Configuration": "配置",
|
|
6
|
+
"Step configuration": "步骤配置",
|
|
7
|
+
"This step has no configurable parameters": "此步骤没有可配置的参数",
|
|
8
|
+
"Failed to import Formily components": "导入 Formily 组件失败",
|
|
9
|
+
"Drawer API is not available, please ensure it is used within FlowEngineGlobalsContextProvider": "抽屉 API 不可用,请确保在 FlowEngineGlobalsContextProvider 中使用",
|
|
10
|
+
"Configuration saved": "配置已保存",
|
|
11
|
+
"Error saving configuration": "保存配置时出错",
|
|
12
|
+
"Error saving configuration, please check console": "保存配置时出错,请检查控制台",
|
|
13
|
+
"Failed to import FormDialog": "导入 FormDialog 失败",
|
|
14
|
+
"OK": "确定",
|
|
15
|
+
"Cancel": "取消",
|
|
16
|
+
"Step parameter configuration": "步骤参数配置",
|
|
17
|
+
"Error submitting form": "提交表单时出错",
|
|
18
|
+
"Complete configuration": "完成配置",
|
|
19
|
+
"Previous step": "上一步",
|
|
20
|
+
"Form validation failed": "表单验证失败",
|
|
21
|
+
"Next step": "下一步",
|
|
22
|
+
"Failed to import FormDialog or FormStep": "导入 FormDialog 或 FormStep 失败",
|
|
23
|
+
"UID copied to clipboard": "UID 已复制到剪贴板",
|
|
24
|
+
"Copy failed": "复制失败",
|
|
25
|
+
"Copy failed, please copy [{{uid}}] manually.": "复制失败,请手动复制 [{{uid}}]。",
|
|
26
|
+
"Confirm delete": "确认删除",
|
|
27
|
+
"Are you sure you want to delete this item? This action cannot be undone.": "确定要删除此项吗?此操作不可撤销。",
|
|
28
|
+
"Delete operation failed": "删除操作失败",
|
|
29
|
+
"Delete failed": "删除失败",
|
|
30
|
+
"Delete operation failed, please check the console for details.": "删除操作失败,请检查控制台获取详细信息。",
|
|
31
|
+
"Configuration popup cancelled or error": "配置弹窗已取消或出错",
|
|
32
|
+
"Failed to get action {{action}}": "获取 action '{{action}}' 失败",
|
|
33
|
+
"Failed to get configurable flows for model {{model}}": "获取模型 '{{model}}' 的可配置 flows 失败",
|
|
34
|
+
"Copy UID": "复制 UID",
|
|
35
|
+
"Delete": "删除",
|
|
36
|
+
"This is likely a NocoBase internals bug. Please open an issue at": "这可能是 NocoBase 内部错误。请在以下地址提交问题",
|
|
37
|
+
"here": "这里",
|
|
38
|
+
"Render failed": "渲染失败",
|
|
39
|
+
"Feedback": "反馈",
|
|
40
|
+
"Download logs": "下载日志",
|
|
41
|
+
"Copy error info": "复制错误信息",
|
|
42
|
+
"Try again": "重试",
|
|
43
|
+
"Data blocks": "数据区块",
|
|
44
|
+
"Filter blocks": "筛选区块",
|
|
45
|
+
"Other blocks": "其他区块",
|
|
46
|
+
"Invalid input parameters": "输入参数无效",
|
|
47
|
+
"Invalid subModelKey format": "无效的 subModelKey 格式: {{subModelKey}}",
|
|
48
|
+
"Submodel not found": "未找到 Submodel '{{subKey}}'",
|
|
49
|
+
"Expected array for subModel": "期望 '{{subKey}}' 为数组,实际为 {{type}}",
|
|
50
|
+
"Array index out of bounds": "数组索引 {{index}} 超出 '{{subKey}}' 的边界",
|
|
51
|
+
"Expected object for subModel": "期望 '{{subKey}}' 为对象,实际为数组",
|
|
52
|
+
"No createModelOptions found for item": "未找到该项的 createModelOptions",
|
|
53
|
+
"createModelOptions must specify use property": "createModelOptions 必须指定 \"use\" 属性",
|
|
54
|
+
"Failed to add sub model": "添加子模型失败",
|
|
55
|
+
"Failed to destroy model after creation error": "创建错误后销毁模型失败",
|
|
56
|
+
"Add": "添加",
|
|
57
|
+
"Name": "名称",
|
|
58
|
+
"Model with ID {{uid}} not found": "未找到 ID 为 {{uid}} 的模型",
|
|
59
|
+
"Common actions": "通用操作",
|
|
60
|
+
"This variable is not available": "此变量不可用"
|
|
61
|
+
}
|