@blueking/bkflow-canvas-editor 1.1.0-beta.40 → 1.1.0-beta.41
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/README.md +40 -0
- package/dist/advanced.cjs.js +1 -1
- package/dist/advanced.esm.js +1 -1
- package/dist/context-C3QIuIf6.cjs +5 -0
- package/dist/context-De9a4Qek.js +1507 -0
- package/dist/index-9BCO-loN.js +533 -0
- package/dist/index-A1xVRjtJ.cjs +1 -0
- package/dist/{index-BnAo53k0.js → index-B1ybORjU.js} +26555 -25908
- package/dist/index-BwF4LXst.cjs +1 -0
- package/dist/index-CjCy-0c0.js +236 -0
- package/dist/index-RacKW0MR.js +168 -0
- package/dist/index-bzXGuf5c.cjs +1 -0
- package/dist/index-iB9uV7YQ.cjs +85 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +26 -2
- package/dist/index.esm.js +43 -34
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/context-DbBT1PuL.cjs +0 -1
- package/dist/context-DrPMCAhz.js +0 -684
- package/dist/index-BAwNyTbZ.cjs +0 -1
- package/dist/index-BN1Fu6Er.js +0 -234
- package/dist/index-BpgC28FM.cjs +0 -1
- package/dist/index-DCaQimLZ.cjs +0 -1
- package/dist/index-DXXTWPQw.js +0 -512
- package/dist/index-DvcBKeRr.cjs +0 -85
- package/dist/index-hrMxFPn6.js +0 -162
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-iB9uV7YQ.cjs"),i=require("./context-C3QIuIf6.cjs"),o=require("@blueking/flow-canvas");exports.BkFlowCanvas=e.BkFlowCanvas;exports.BkFlowModelAccessor=e.BkFlowModelAccessor;exports.BkFlowNodeAccessor=e.BkFlowNodeAccessor;exports.FlowCreateTask=e.FlowCreateTask;exports.FlowDebug=e.FlowDebug;exports.FlowDetail=e.index;exports.FlowEdit=e.edit;exports.FlowExecute=e.execute;exports.FlowMockDebug=e.mock;exports.FlowView=e.view;exports.applyBkuiLocale=e.applyBkuiLocale;exports.applyBkuiLocaleToTree=e.applyBkuiLocaleToTree;exports.bkflowConnectionValidator=e.bkflowConnectionValidator;exports.createBkflowPlugin=e.createBkflowPlugin;exports.createBkflowSchema=e.createBkflowSchema;exports.createExecutionStatusPlugin=e.createExecutionStatusPlugin;exports.default=e.index$1;exports.exportToPipelineTree=e.exportToPipelineTree;exports.getUniformApiPluginFormValue=e.getUniformApiPluginFormValue;exports.getVariableDefaultConfig=e.getVariableDefaultConfig;exports.importFromPipelineTree=e.importFromPipelineTree;exports.isMockableNode=e.isMockableNode;exports.mergeOutputs=e.mergeOutputs;exports.normalizePluginOutputItems=e.normalizePluginOutputItems;exports.provideFilterVariableConfig=e.provideFilterVariableConfig;exports.provideFlowApiConfig=e.provideFlowApiConfig;exports.provideMemberSelectorConfig=e.provideMemberSelectorConfig;exports.provideSelectPanelConfig=e.provideSelectPanelConfig;exports.provideSelectRelatedOptionConfig=e.provideSelectRelatedOptionConfig;exports.resolveBkuiLocale=e.resolveBkuiLocale;exports.resolveExecutionActions=e.resolveExecutionActions;exports.resolveMockFormControl=e.resolveMockFormControl;exports.useFlowApiConfig=e.useFlowApiConfig;exports.useFlowEditApiConfig=e.useFlowEditApiConfig;exports.useFlowViewApiConfig=e.useFlowViewApiConfig;exports.useMemberSelectorConfig=e.useMemberSelectorConfig;exports.useSelectPanelConfig=e.useSelectPanelConfig;exports.validatePipelineTree=e.validatePipelineTree;exports.generateId=i.generateId;exports.random4=i.random4;Object.defineProperty(exports,"getLocale",{enumerable:!0,get:()=>o.getLocale});Object.defineProperty(exports,"registerMessages",{enumerable:!0,get:()=>o.registerMessages});Object.defineProperty(exports,"setLocale",{enumerable:!0,get:()=>o.setLocale});Object.defineProperty(exports,"setTranslator",{enumerable:!0,get:()=>o.setTranslator});Object.defineProperty(exports,"t",{enumerable:!0,get:()=>o.t});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { Component, ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { Component, ComputedRef, Ref, App } from 'vue';
|
|
3
3
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
4
4
|
import * as _blueking_flow_canvas from '@blueking/flow-canvas';
|
|
5
5
|
import { ZoomToFitOptions, CanvasUiEvent, QuickAddConfig, CanvasSchema, FlowModel, FlowNodeModel, NodeActionsConfig, ConnectionValidator, CanvasPlugin, CanvasToolbarItem, CommandEnvelope } from '@blueking/flow-canvas';
|
|
6
|
+
export { Locale, MessageTree, Translator, getLocale, registerMessages, setLocale, setTranslator, t } from '@blueking/flow-canvas';
|
|
7
|
+
import { defaultRootConfig } from 'bkui-vue/lib/config-provider';
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Flow API 配置接口
|
|
@@ -2469,6 +2471,28 @@ declare function createExecutionStatusPlugin(stateRef: Ref<TaskExecutionStates>)
|
|
|
2469
2471
|
*/
|
|
2470
2472
|
declare function resolveExecutionActions(state: NodeExecutionState | undefined, nodeType: string): ExecutionNodeAction[];
|
|
2471
2473
|
|
|
2474
|
+
type BkuiLocale = typeof defaultRootConfig.locale;
|
|
2475
|
+
/** 取当前语言对应的 bkui-vue 语言包;消费方注册的第三语言从 registry 取。 */
|
|
2476
|
+
declare function resolveBkuiLocale(locale: string): BkuiLocale | undefined;
|
|
2477
|
+
/**
|
|
2478
|
+
* 顶层 Flow 组件 setup 内调用:在本组件子树内应用语言(含 Teleport 弹层),
|
|
2479
|
+
* 并改写 defaultRootConfig 覆盖脱离组件树的命令式 Message / InfoBox。
|
|
2480
|
+
*
|
|
2481
|
+
* 约束 1:必须先读 useGlobalConfig() 再合并。provideGlobalConfig 内部是
|
|
2482
|
+
* merge(defaultRootConfig, config),直接传 { locale } 会拿 defaultRootConfig.prefix
|
|
2483
|
+
* 覆盖宿主自定义的 prefix。
|
|
2484
|
+
* 约束 2:zh-cn 时整段跳过,保证现有消费方零行为变化,也不会把已设为英文的宿主拽回中文。
|
|
2485
|
+
* 代价是不会把 defaultRootConfig 改回中文——语言切换本就要求宿主刷新页面。
|
|
2486
|
+
*
|
|
2487
|
+
* 注意 defaultRootConfig 是 bkui-vue 的模块级单例,这一行的**影响范围是整个宿主应用**,
|
|
2488
|
+
* 不限于本组件子树:宿主在别处调用的 bkui-vue 命令式弹窗语言也会随之变化。
|
|
2489
|
+
* 这是覆盖命令式组件的唯一手段(它们没有组件上下文可供 inject),已在
|
|
2490
|
+
* docs/usage.md「对宿主 bkui-vue 全局配置的影响」中对消费方说明。
|
|
2491
|
+
*/
|
|
2492
|
+
declare function applyBkuiLocaleToTree(): void;
|
|
2493
|
+
/** 自建 createApp 调用:该 app 脱离宿主 provide 链,从 defaultRootConfig 起步合并。 */
|
|
2494
|
+
declare function applyBkuiLocale(app: App): void;
|
|
2495
|
+
|
|
2472
2496
|
declare const _default: {
|
|
2473
2497
|
FlowView: () => Promise<typeof __view_vue>;
|
|
2474
2498
|
FlowEdit: () => Promise<typeof __edit_vue>;
|
|
@@ -2482,5 +2506,5 @@ declare const _default: {
|
|
|
2482
2506
|
FlowMockDebug: () => Promise<typeof __mock_vue>;
|
|
2483
2507
|
};
|
|
2484
2508
|
|
|
2485
|
-
export { _default$1 as BkFlowCanvas, BkFlowModelAccessor, BkFlowNodeAccessor, _default$5 as FlowCreateTask, _default$7 as FlowDebug, _default$2 as FlowDetail, _default$4 as FlowEdit, _default$6 as FlowExecute, _default$8 as FlowMockDebug, _default$3 as FlowView, bkflowConnectionValidator, createBkflowPlugin, createBkflowSchema, createExecutionStatusPlugin, _default as default, exportToPipelineTree, generateId, getUniformApiPluginFormValue, getVariableDefaultConfig, importFromPipelineTree, isMockableNode, mergeOutputs, normalizePluginOutputItems, provideFilterVariableConfig, provideFlowApiConfig, provideMemberSelectorConfig, provideSelectPanelConfig, provideSelectRelatedOptionConfig, random4, resolveExecutionActions, resolveMockFormControl, useFlowApiConfig, useFlowEditApiConfig, useFlowViewApiConfig, useMemberSelectorConfig, useSelectPanelConfig, validatePipelineTree };
|
|
2509
|
+
export { _default$1 as BkFlowCanvas, BkFlowModelAccessor, BkFlowNodeAccessor, _default$5 as FlowCreateTask, _default$7 as FlowDebug, _default$2 as FlowDetail, _default$4 as FlowEdit, _default$6 as FlowExecute, _default$8 as FlowMockDebug, _default$3 as FlowView, applyBkuiLocale, applyBkuiLocaleToTree, bkflowConnectionValidator, createBkflowPlugin, createBkflowSchema, createExecutionStatusPlugin, _default as default, exportToPipelineTree, generateId, getUniformApiPluginFormValue, getVariableDefaultConfig, importFromPipelineTree, isMockableNode, mergeOutputs, normalizePluginOutputItems, provideFilterVariableConfig, provideFlowApiConfig, provideMemberSelectorConfig, provideSelectPanelConfig, provideSelectRelatedOptionConfig, random4, resolveBkuiLocale, resolveExecutionActions, resolveMockFormControl, useFlowApiConfig, useFlowEditApiConfig, useFlowViewApiConfig, useMemberSelectorConfig, useSelectPanelConfig, validatePipelineTree };
|
|
2486
2510
|
export type { Activity, CanvasViewportExpose, CreateFlowTaskResult, DndNodeItem, ExecuteFlowTaskResult, ExecutionNodeAction, FilterCandidateQuery, FilterConditionOptions, FilterConditionValue, FilterVariableConfig, FilterVariableSourceContext, FilterVariableSourceNodeComponent, FilterWhereItem, FilterWhereValue, FlowApiConfig, FlowDetailExpose, FlowDetailPermissions, FlowEditExpose, FlowTaskExecuteSuccessResult, FlowTemplate, FlowViewExpose, Gateway, GatewayCondition, GlobalVariableCreateExpose, MemberSelectorConfig, MockOutputField, NodeExecutionState, NodeExecutionStatus, NodeMockConfig, NotifyConfig, OpenFilterVariableCreateRequest, OpenGlobalVariableCreateRequest, OpenStandardVariableCreateRequest, PipelineTree, PluginDetailCommon, PluginInputDataItem, RetrievalFilterField, SelectPanelConfig, SelectRelatedOptionConfig, SelectRelatedOptionItem, SelectRelatedOptionSource, SelectRelatedOptionSourceRef, SelectRelatedSourceContext, SimulateDebugCanvasContext, SimulateDebugStage, SimulateDebugState, SpaceFlowConfig, TaskExecutionStates, TemplateConfigs, TriggerCron, TriggerItem, UniformApiPluginInputsItem, UpdateFlowParams, Variable, VariableReference };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,41 +1,50 @@
|
|
|
1
|
-
import { v as o, w as s, x as
|
|
2
|
-
import { g as
|
|
1
|
+
import { v as o, w as s, x as l, F as i, y as r, z as t, A as n, G as c, H as u, I as g, J as p, K as f, N as w, O as F, P as d, Q as m, T as C, U as k, V as v, W as P, X as A, Y as T, m as b, Z as x, $ as B, a0 as M, a1 as S, a2 as V, a3 as E, a4 as L, a5 as D, r as O, u as y, a6 as I, a7 as N, a8 as z, a9 as U, aa as h } from "./index-B1ybORjU.js";
|
|
2
|
+
import { g as H, d as J } from "./context-De9a4Qek.js";
|
|
3
|
+
import { getLocale as Q, registerMessages as R, setLocale as W, setTranslator as X, t as Y } from "@blueking/flow-canvas";
|
|
3
4
|
export {
|
|
4
5
|
o as BkFlowCanvas,
|
|
5
6
|
s as BkFlowModelAccessor,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
l as BkFlowNodeAccessor,
|
|
8
|
+
i as FlowCreateTask,
|
|
8
9
|
r as FlowDebug,
|
|
9
10
|
t as FlowDetail,
|
|
10
11
|
n as FlowEdit,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
p as
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
F as
|
|
18
|
-
d as
|
|
19
|
-
m as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
E as
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
12
|
+
c as FlowExecute,
|
|
13
|
+
u as FlowMockDebug,
|
|
14
|
+
g as FlowView,
|
|
15
|
+
p as applyBkuiLocale,
|
|
16
|
+
f as applyBkuiLocaleToTree,
|
|
17
|
+
w as bkflowConnectionValidator,
|
|
18
|
+
F as createBkflowPlugin,
|
|
19
|
+
d as createBkflowSchema,
|
|
20
|
+
m as createExecutionStatusPlugin,
|
|
21
|
+
C as default,
|
|
22
|
+
k as exportToPipelineTree,
|
|
23
|
+
H as generateId,
|
|
24
|
+
Q as getLocale,
|
|
25
|
+
v as getUniformApiPluginFormValue,
|
|
26
|
+
P as getVariableDefaultConfig,
|
|
27
|
+
A as importFromPipelineTree,
|
|
28
|
+
T as isMockableNode,
|
|
29
|
+
b as mergeOutputs,
|
|
30
|
+
x as normalizePluginOutputItems,
|
|
31
|
+
B as provideFilterVariableConfig,
|
|
32
|
+
M as provideFlowApiConfig,
|
|
33
|
+
S as provideMemberSelectorConfig,
|
|
34
|
+
V as provideSelectPanelConfig,
|
|
35
|
+
E as provideSelectRelatedOptionConfig,
|
|
36
|
+
J as random4,
|
|
37
|
+
R as registerMessages,
|
|
38
|
+
L as resolveBkuiLocale,
|
|
39
|
+
D as resolveExecutionActions,
|
|
40
|
+
O as resolveMockFormControl,
|
|
41
|
+
W as setLocale,
|
|
42
|
+
X as setTranslator,
|
|
43
|
+
Y as t,
|
|
44
|
+
y as useFlowApiConfig,
|
|
45
|
+
I as useFlowEditApiConfig,
|
|
46
|
+
N as useFlowViewApiConfig,
|
|
47
|
+
z as useMemberSelectorConfig,
|
|
48
|
+
U as useSelectPanelConfig,
|
|
49
|
+
h as validatePipelineTree
|
|
41
50
|
};
|