@huanban/rulego-editor-vue 1.4.2 → 2.0.0

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.
Files changed (41) hide show
  1. package/README.md +18 -10
  2. package/dist/components/AIAssistant.vue.d.ts +4 -38
  3. package/dist/components/AIChat.vue.d.ts +17 -0
  4. package/dist/components/ComponentSidebar.vue.d.ts +20 -26
  5. package/dist/components/ContextMenu.vue.d.ts +2 -26
  6. package/dist/components/CopilotChat.vue.d.ts +5 -31
  7. package/dist/components/DataViewDialog.vue.d.ts +6 -28
  8. package/dist/components/DebugPanel.vue.d.ts +6 -14
  9. package/dist/components/DynamicForm.vue.d.ts +4 -12
  10. package/dist/components/EdgePropertyDrawer.vue.d.ts +5 -13
  11. package/dist/components/EditorConnectionStatus.vue.d.ts +5 -29
  12. package/dist/components/EditorEdgeHoverTools.vue.d.ts +5 -31
  13. package/dist/components/EditorNodeHoverTools.vue.d.ts +5 -33
  14. package/dist/components/EditorPanelDock.vue.d.ts +7 -31
  15. package/dist/components/EditorStatusBar.vue.d.ts +4 -30
  16. package/dist/components/EditorToolbar.vue.d.ts +4 -38
  17. package/dist/components/ImportExportDialog.vue.d.ts +7 -31
  18. package/dist/components/LogViewer.vue.d.ts +2 -24
  19. package/dist/components/MiniMap.vue.d.ts +6 -34
  20. package/dist/components/NodePropertyDrawer.vue.d.ts +6 -14
  21. package/dist/components/ProblemsPanel.vue.d.ts +7 -31
  22. package/dist/components/RuleChainSettings.vue.d.ts +5 -29
  23. package/dist/components/RuleGoEditor.d.ts +602 -11
  24. package/dist/components/RuleMaintenancePanel.vue.d.ts +1 -9
  25. package/dist/components/SearchPanel.vue.d.ts +5 -27
  26. package/dist/components/SearchableSelect.vue.d.ts +8 -62
  27. package/dist/components/SharedNodeManager.vue.d.ts +21 -0
  28. package/dist/components/ToolSchemaEditor.vue.d.ts +7 -29
  29. package/dist/components/ValidationPanel.vue.d.ts +7 -31
  30. package/dist/components/WorkflowExplorer.vue.d.ts +3 -3
  31. package/dist/components/WorkflowInfoPanel.vue.d.ts +6 -34
  32. package/dist/components/WorkflowList.vue.d.ts +3 -41
  33. package/dist/components/WorkspaceTabs.vue.d.ts +15 -33
  34. package/dist/components/properties/AgentOrchestrationProperties.vue.d.ts +3 -11
  35. package/dist/composables/useClipboard.d.ts +4 -2
  36. package/dist/composables/useDialogConfirmation.d.ts +4 -0
  37. package/dist/index.cjs +10 -11
  38. package/dist/index.d.ts +7 -2
  39. package/dist/index.esm.js +6691 -6065
  40. package/dist/style.css +1 -1
  41. package/package.json +9 -9
package/README.md CHANGED
@@ -132,7 +132,7 @@ watch(isReady, (ready) => {
132
132
 
133
133
  | 事件 | 参数 | 说明 |
134
134
  |------|------|------|
135
- | `@save` | `SaveEventData` | 兼容事件;默认保存不依赖它,接管保存请使用 `options.onSave` |
135
+ | `@save` | `SaveEventData` | 保存观察事件;接管保存请使用 `options.saveMode: 'host'` 与 `saveHandler` |
136
136
  | `@node-click` | `NodeData` | 节点点击时触发 |
137
137
  | `@ready` | — | 编辑器就绪时触发 |
138
138
  | `@change` | — | 画布数据变化 |
@@ -231,27 +231,35 @@ editorRef.value?.openComponentManager('shared')
231
231
  默认不要传 `options.onSave`。只要在 `options.apiBase` 配置后台地址,保存按钮会直接调用:
232
232
 
233
233
  ```text
234
- POST {apiBase}/rules/:id
234
+ POST {apiBase}/rules/:id?versionMark=1
235
235
  GET {apiBase}/rules/:id
236
236
  ```
237
237
 
238
- 第二次 `GET` 用于回读校验,只有后端返回的数据与当前画布一致时才会显示已保存。
238
+ 第二次 `GET` 用于回读校验,只有后端返回的数据与本次提交快照一致时才会显示已保存,
239
+ 保存期间的新编辑仍保持未保存。草稿使用 `save({ draft: true })`,不带 `versionMark`。
240
+ 正式保存会部署规则链,停止状态会先确认;保存全部和保存并关闭保留运行状态。
239
241
 
240
242
  只有宿主确实要完全接管保存时才在 `options` 中设置 `saveMode: 'host'` 并传
241
243
  `saveHandler`。执行器必须返回明确结果:
242
244
 
243
245
  ```ts
246
+ import { RuleChainAPI, createRuleChainSaveFingerprint } from '@huanban/rulego-editor-core'
247
+
244
248
  const editorOptions = computed(() => ({
245
249
  apiBase: apiBase.value,
246
250
  saveMode: 'host' as const,
247
- saveHandler: async (data: any) => {
251
+ saveHandler: async (data: any, options?: { draft?: boolean }) => {
248
252
  const id = data?.ruleChain?.id
249
- const response = await fetch(`${apiBase.value}/rules/${encodeURIComponent(id)}`, {
250
- method: 'POST',
251
- headers: { 'Content-Type': 'application/json', ...fetchHeaders() },
252
- body: JSON.stringify(data),
253
- })
254
- return response.ok ? { success: true } : { success: false, message: `HTTP ${response.status}` }
253
+ const api = new RuleChainAPI({ apiBase: apiBase.value, headers: fetchHeaders() })
254
+ const result = await api.create(data, options)
255
+ if (!result.success) return { success: false, message: result.msg }
256
+ // 不把 HTTP 200 当成完整持久化确认,保留字段和生命周期回读检查。
257
+ const persisted: any = await api.getContent(id)
258
+ const verified = persisted.ruleChain?.id === id
259
+ && Array.isArray(persisted.metadata?.nodes) && Array.isArray(persisted.metadata?.connections)
260
+ && createRuleChainSaveFingerprint(persisted) === createRuleChainSaveFingerprint(data)
261
+ && (persisted.ruleChain.disabled === true) === (data.ruleChain.disabled === true)
262
+ return { success: verified, message: verified ? undefined : '服务端回读内容与提交内容不一致' }
255
263
  },
256
264
  }))
257
265
  ```
@@ -8,25 +8,9 @@ export interface AIAssistantProps {
8
8
  customStyle?: Record<string, string | number>;
9
9
  disabled?: boolean;
10
10
  }
11
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AIAssistantProps>, {
12
- editor: null;
13
- options: () => {};
14
- iconOnly: boolean;
15
- label: string;
16
- className: string;
17
- customStyle: () => {};
18
- disabled: boolean;
19
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
- open: () => void;
21
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AIAssistantProps>, {
22
- editor: null;
23
- options: () => {};
24
- iconOnly: boolean;
25
- label: string;
26
- className: string;
27
- customStyle: () => {};
28
- disabled: boolean;
29
- }>>> & Readonly<{
11
+ declare const __VLS_export: import("vue").DefineComponent<AIAssistantProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
+ open: () => any;
13
+ }, string, import("vue").PublicProps, Readonly<AIAssistantProps> & Readonly<{
30
14
  onOpen?: (() => any) | undefined;
31
15
  }>, {
32
16
  disabled: boolean;
@@ -36,24 +20,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
36
20
  customStyle: Record<string, string | number>;
37
21
  label: string;
38
22
  iconOnly: boolean;
39
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
24
  declare const _default: typeof __VLS_export;
41
25
  export default _default;
42
- type __VLS_TypePropsToOption<T> = {
43
- [K in keyof T]-?: {} extends Pick<T, K> ? {
44
- type: import('vue').PropType<Required<T>[K]>;
45
- } : {
46
- type: import('vue').PropType<T[K]>;
47
- required: true;
48
- };
49
- };
50
- type __VLS_WithDefaults<P, D> = {
51
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
52
- default: D[K];
53
- }> : P[K];
54
- };
55
- type __VLS_PrettifyLocal<T> = (T extends any ? {
56
- [K in keyof T]: T[K];
57
- } : {
58
- [K in keyof T as K]: T[K];
59
- }) & {};
@@ -0,0 +1,17 @@
1
+ import type { CopilotChatProps } from './CopilotChat.vue';
2
+ export interface AIChatProps extends Omit<CopilotChatProps, 'ruleChainId' | 'apiBase' | 'endpoint' | 'fetchHeaders'> {
3
+ chainId?: string;
4
+ baseUrl?: string | (() => string);
5
+ apiPrefix?: string | (() => string);
6
+ getToken?: (() => string | null | undefined) | null;
7
+ }
8
+ declare const __VLS_export: import("vue").DefineComponent<AIChatProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AIChatProps> & Readonly<{}>, {
9
+ disabled: boolean;
10
+ apiPrefix: string | (() => string);
11
+ chainId: string;
12
+ baseUrl: string | (() => string);
13
+ stream: boolean;
14
+ getToken: (() => string | null | undefined) | null;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -12,13 +12,16 @@ export interface RuleGoComponent {
12
12
  type: string;
13
13
  category: string;
14
14
  categoryPath?: string;
15
+ categoryLabel?: string;
15
16
  subgroup?: string;
16
17
  categorySubgroups?: Array<Record<string, unknown>>;
17
18
  label?: string;
18
19
  desc?: string;
20
+ keywords?: string | string[];
19
21
  fields?: ComponentField[];
20
22
  icon?: string;
21
23
  background?: string;
24
+ color?: string;
22
25
  order?: number;
23
26
  disabled?: boolean;
24
27
  notInput?: boolean;
@@ -29,8 +32,15 @@ export interface ComponentSidebarProps {
29
32
  components: RuleGoComponent[];
30
33
  onDragStart?: (component: RuleGoComponent) => void;
31
34
  recentComponentTypes?: string[];
35
+ showRecent?: boolean;
32
36
  collapsed?: boolean;
37
+ defaultCollapsed?: boolean;
38
+ showSearch?: boolean;
39
+ search?: string;
40
+ onSearchChange?: (search: string) => void;
33
41
  searchPlaceholder?: string;
42
+ showNodeMgt?: boolean;
43
+ onOpenNodeMgt?: () => void;
34
44
  locale?: string;
35
45
  messages?: LocaleMessages;
36
46
  t?: EditorTranslate;
@@ -43,33 +53,17 @@ export interface ComponentSidebarProps {
43
53
  overscan?: number;
44
54
  };
45
55
  }
46
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ComponentSidebarProps>, {
47
- collapsed: boolean;
48
- recentComponentTypes: () => never[];
49
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ComponentSidebarProps>, {
50
- collapsed: boolean;
51
- recentComponentTypes: () => never[];
52
- }>>> & Readonly<{}>, {
56
+ declare const __VLS_export: import("vue").DefineComponent<ComponentSidebarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
57
+ "update:search": (search: string) => any;
58
+ }, string, import("vue").PublicProps, Readonly<ComponentSidebarProps> & Readonly<{
59
+ "onUpdate:search"?: ((search: string) => any) | undefined;
60
+ }>, {
61
+ showSearch: boolean;
62
+ showNodeMgt: boolean;
53
63
  recentComponentTypes: string[];
64
+ showRecent: boolean;
54
65
  collapsed: boolean;
55
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
66
+ defaultCollapsed: boolean;
67
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
56
68
  declare const _default: typeof __VLS_export;
57
69
  export default _default;
58
- type __VLS_TypePropsToOption<T> = {
59
- [K in keyof T]-?: {} extends Pick<T, K> ? {
60
- type: import('vue').PropType<Required<T>[K]>;
61
- } : {
62
- type: import('vue').PropType<T[K]>;
63
- required: true;
64
- };
65
- };
66
- type __VLS_WithDefaults<P, D> = {
67
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
68
- default: D[K];
69
- }> : P[K];
70
- };
71
- type __VLS_PrettifyLocal<T> = (T extends any ? {
72
- [K in keyof T]: T[K];
73
- } : {
74
- [K in keyof T as K]: T[K];
75
- }) & {};
@@ -45,31 +45,7 @@ export declare function getCanvasContextMenuItems(handlers: {
45
45
  }, i18n?: ContextMenuI18nOptions): ContextMenuItem[];
46
46
  declare const _default: typeof __VLS_export;
47
47
  export default _default;
48
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ContextMenuProps>, {
49
- targetType: string;
50
- targetId: string;
51
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ContextMenuProps>, {
52
- targetType: string;
53
- targetId: string;
54
- }>>> & Readonly<{}>, {
48
+ declare const __VLS_export: import("vue").DefineComponent<ContextMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContextMenuProps> & Readonly<{}>, {
55
49
  targetId: string;
56
50
  targetType: ContextMenuTarget;
57
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
- type __VLS_TypePropsToOption<T> = {
59
- [K in keyof T]-?: {} extends Pick<T, K> ? {
60
- type: import('vue').PropType<Required<T>[K]>;
61
- } : {
62
- type: import('vue').PropType<T[K]>;
63
- required: true;
64
- };
65
- };
66
- type __VLS_WithDefaults<P, D> = {
67
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
68
- default: D[K];
69
- }> : P[K];
70
- };
71
- type __VLS_PrettifyLocal<T> = (T extends any ? {
72
- [K in keyof T]: T[K];
73
- } : {
74
- [K in keyof T as K]: T[K];
75
- }) & {};
51
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -31,42 +31,16 @@ export interface CopilotChatProps {
31
31
  style?: Record<string, string | number>;
32
32
  disabled?: boolean;
33
33
  }
34
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CopilotChatProps>, {
35
- stream: boolean;
36
- initialMessages: () => never[];
37
- disabled: boolean;
38
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
- "messages-change": (messages: CopilotChatViewMessage[]) => void;
40
- error: (error: Error) => void;
41
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CopilotChatProps>, {
42
- stream: boolean;
43
- initialMessages: () => never[];
44
- disabled: boolean;
45
- }>>> & Readonly<{
34
+ declare const __VLS_export: import("vue").DefineComponent<CopilotChatProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
35
+ error: (error: Error) => any;
36
+ "messages-change": (messages: CopilotChatViewMessage[]) => any;
37
+ }, string, import("vue").PublicProps, Readonly<CopilotChatProps> & Readonly<{
46
38
  onError?: ((error: Error) => any) | undefined;
47
39
  "onMessages-change"?: ((messages: CopilotChatViewMessage[]) => any) | undefined;
48
40
  }>, {
49
41
  disabled: boolean;
50
42
  stream: boolean;
51
43
  initialMessages: CopilotChatMessage[];
52
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
45
  declare const _default: typeof __VLS_export;
54
46
  export default _default;
55
- type __VLS_TypePropsToOption<T> = {
56
- [K in keyof T]-?: {} extends Pick<T, K> ? {
57
- type: import('vue').PropType<Required<T>[K]>;
58
- } : {
59
- type: import('vue').PropType<T[K]>;
60
- required: true;
61
- };
62
- };
63
- type __VLS_WithDefaults<P, D> = {
64
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
65
- default: D[K];
66
- }> : P[K];
67
- };
68
- type __VLS_PrettifyLocal<T> = (T extends any ? {
69
- [K in keyof T]: T[K];
70
- } : {
71
- [K in keyof T as K]: T[K];
72
- }) & {};
@@ -11,36 +11,14 @@ export interface DataViewDialogProps {
11
11
  messages?: LocaleMessages;
12
12
  t?: EditorTranslate;
13
13
  }
14
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<DataViewDialogProps>, {
15
- fileNamePrefix: string;
16
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
- close: () => void;
18
- notify: (type: "error" | "success" | "info", content: string) => void;
19
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<DataViewDialogProps>, {
20
- fileNamePrefix: string;
21
- }>>> & Readonly<{
14
+ declare const __VLS_export: import("vue").DefineComponent<DataViewDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ close: () => any;
16
+ notify: (type: "error" | "info" | "success", content: string) => any;
17
+ }, string, import("vue").PublicProps, Readonly<DataViewDialogProps> & Readonly<{
22
18
  onClose?: (() => any) | undefined;
23
- onNotify?: ((type: "error" | "success" | "info", content: string) => any) | undefined;
19
+ onNotify?: ((type: "error" | "info" | "success", content: string) => any) | undefined;
24
20
  }>, {
25
21
  fileNamePrefix: string;
26
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
23
  declare const _default: typeof __VLS_export;
28
24
  export default _default;
29
- type __VLS_TypePropsToOption<T> = {
30
- [K in keyof T]-?: {} extends Pick<T, K> ? {
31
- type: import('vue').PropType<Required<T>[K]>;
32
- } : {
33
- type: import('vue').PropType<T[K]>;
34
- required: true;
35
- };
36
- };
37
- type __VLS_WithDefaults<P, D> = {
38
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
39
- default: D[K];
40
- }> : P[K];
41
- };
42
- type __VLS_PrettifyLocal<T> = (T extends any ? {
43
- [K in keyof T]: T[K];
44
- } : {
45
- [K in keyof T as K]: T[K];
46
- }) & {};
@@ -35,20 +35,12 @@ export interface DebugPanelProps {
35
35
  messages?: LocaleMessages;
36
36
  t?: EditorTranslate;
37
37
  }
38
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<DebugPanelProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
- close: () => void;
40
- notify: (type: "error" | "success" | "warning" | "info", content: string) => void;
41
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<DebugPanelProps>>> & Readonly<{
38
+ declare const __VLS_export: import("vue").DefineComponent<DebugPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
39
+ close: () => any;
40
+ notify: (type: "error" | "warning" | "info" | "success", content: string) => any;
41
+ }, string, import("vue").PublicProps, Readonly<DebugPanelProps> & Readonly<{
42
42
  onClose?: (() => any) | undefined;
43
- onNotify?: ((type: "error" | "success" | "warning" | "info", content: string) => any) | undefined;
44
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
43
+ onNotify?: ((type: "error" | "warning" | "info" | "success", content: string) => any) | undefined;
44
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
45
  declare const _default: typeof __VLS_export;
46
46
  export default _default;
47
- type __VLS_TypePropsToOption<T> = {
48
- [K in keyof T]-?: {} extends Pick<T, K> ? {
49
- type: import('vue').PropType<Required<T>[K]>;
50
- } : {
51
- type: import('vue').PropType<T[K]>;
52
- required: true;
53
- };
54
- };
@@ -20,18 +20,10 @@ export interface DynamicFormProps {
20
20
  messages?: LocaleMessages;
21
21
  t?: EditorTranslate;
22
22
  }
23
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<DynamicFormProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
- change: (key: string, value: any) => void;
25
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<DynamicFormProps>>> & Readonly<{
23
+ declare const __VLS_export: import("vue").DefineComponent<DynamicFormProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
24
+ change: (key: string, value: any) => any;
25
+ }, string, import("vue").PublicProps, Readonly<DynamicFormProps> & Readonly<{
26
26
  onChange?: ((key: string, value: any) => any) | undefined;
27
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
27
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  export default _default;
30
- type __VLS_TypePropsToOption<T> = {
31
- [K in keyof T]-?: {} extends Pick<T, K> ? {
32
- type: import('vue').PropType<Required<T>[K]>;
33
- } : {
34
- type: import('vue').PropType<T[K]>;
35
- required: true;
36
- };
37
- };
@@ -22,20 +22,12 @@ export interface EdgePropertyDrawerProps {
22
22
  messages?: LocaleMessages;
23
23
  t?: EditorTranslate;
24
24
  }
25
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<EdgePropertyDrawerProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
- submit: (model: EdgeModel) => void;
27
- close: () => void;
28
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<EdgePropertyDrawerProps>>> & Readonly<{
25
+ declare const __VLS_export: import("vue").DefineComponent<EdgePropertyDrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
26
+ close: () => any;
27
+ submit: (model: EdgeModel) => any;
28
+ }, string, import("vue").PublicProps, Readonly<EdgePropertyDrawerProps> & Readonly<{
29
29
  onClose?: (() => any) | undefined;
30
30
  onSubmit?: ((model: EdgeModel) => any) | undefined;
31
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
33
33
  export default _default;
34
- type __VLS_TypePropsToOption<T> = {
35
- [K in keyof T]-?: {} extends Pick<T, K> ? {
36
- type: import('vue').PropType<Required<T>[K]>;
37
- } : {
38
- type: import('vue').PropType<T[K]>;
39
- required: true;
40
- };
41
- };
@@ -7,39 +7,15 @@ export interface EditorConnectionStatusProps extends FrameworkI18nProps {
7
7
  onLogin?: () => void;
8
8
  className?: string;
9
9
  }
10
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EditorConnectionStatusProps>, {
11
- compact: boolean;
12
- className: string;
13
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- retry: () => void;
15
- login: () => void;
16
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EditorConnectionStatusProps>, {
17
- compact: boolean;
18
- className: string;
19
- }>>> & Readonly<{
10
+ declare const __VLS_export: import("vue").DefineComponent<EditorConnectionStatusProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ retry: () => any;
12
+ login: () => any;
13
+ }, string, import("vue").PublicProps, Readonly<EditorConnectionStatusProps> & Readonly<{
20
14
  onRetry?: (() => any) | undefined;
21
15
  onLogin?: (() => any) | undefined;
22
16
  }>, {
23
17
  className: string;
24
18
  compact: boolean;
25
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
20
  declare const _default: typeof __VLS_export;
27
21
  export default _default;
28
- type __VLS_TypePropsToOption<T> = {
29
- [K in keyof T]-?: {} extends Pick<T, K> ? {
30
- type: import('vue').PropType<Required<T>[K]>;
31
- } : {
32
- type: import('vue').PropType<T[K]>;
33
- required: true;
34
- };
35
- };
36
- type __VLS_WithDefaults<P, D> = {
37
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
38
- default: D[K];
39
- }> : P[K];
40
- };
41
- type __VLS_PrettifyLocal<T> = (T extends any ? {
42
- [K in keyof T]: T[K];
43
- } : {
44
- [K in keyof T as K]: T[K];
45
- }) & {};
@@ -11,40 +11,14 @@ export interface EditorEdgeHoverToolsProps extends FrameworkI18nProps {
11
11
  onInsertNode?: (targetId: string) => void;
12
12
  onDelete?: (targetId: string) => void;
13
13
  }
14
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EditorEdgeHoverToolsProps>, {
15
- visible: boolean;
16
- flipDown: boolean;
17
- className: string;
18
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- action: (action: EditorEdgeHoverAction, targetId: string) => void;
20
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EditorEdgeHoverToolsProps>, {
21
- visible: boolean;
22
- flipDown: boolean;
23
- className: string;
24
- }>>> & Readonly<{
14
+ declare const __VLS_export: import("vue").DefineComponent<EditorEdgeHoverToolsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ action: (action: EditorEdgeHoverAction, targetId: string) => any;
16
+ }, string, import("vue").PublicProps, Readonly<EditorEdgeHoverToolsProps> & Readonly<{
25
17
  onAction?: ((action: EditorEdgeHoverAction, targetId: string) => any) | undefined;
26
18
  }>, {
27
- className: string;
28
19
  visible: boolean;
20
+ className: string;
29
21
  flipDown: boolean;
30
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
23
  declare const _default: typeof __VLS_export;
32
24
  export default _default;
33
- type __VLS_TypePropsToOption<T> = {
34
- [K in keyof T]-?: {} extends Pick<T, K> ? {
35
- type: import('vue').PropType<Required<T>[K]>;
36
- } : {
37
- type: import('vue').PropType<T[K]>;
38
- required: true;
39
- };
40
- };
41
- type __VLS_WithDefaults<P, D> = {
42
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
43
- default: D[K];
44
- }> : P[K];
45
- };
46
- type __VLS_PrettifyLocal<T> = (T extends any ? {
47
- [K in keyof T]: T[K];
48
- } : {
49
- [K in keyof T as K]: T[K];
50
- }) & {};
@@ -16,43 +16,15 @@ export interface EditorNodeHoverToolsProps extends FrameworkI18nProps {
16
16
  onRunFrom?: (targetId: string) => void;
17
17
  onRunOnly?: (targetId: string) => void;
18
18
  }
19
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EditorNodeHoverToolsProps>, {
20
- visible: boolean;
21
- flipDown: boolean;
22
- showRun: boolean;
23
- className: string;
24
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
- action: (action: EditorNodeHoverAction, targetId: string) => void;
26
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EditorNodeHoverToolsProps>, {
27
- visible: boolean;
28
- flipDown: boolean;
29
- showRun: boolean;
30
- className: string;
31
- }>>> & Readonly<{
19
+ declare const __VLS_export: import("vue").DefineComponent<EditorNodeHoverToolsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ action: (action: EditorNodeHoverAction, targetId: string) => any;
21
+ }, string, import("vue").PublicProps, Readonly<EditorNodeHoverToolsProps> & Readonly<{
32
22
  onAction?: ((action: EditorNodeHoverAction, targetId: string) => any) | undefined;
33
23
  }>, {
34
- className: string;
35
24
  visible: boolean;
25
+ className: string;
36
26
  flipDown: boolean;
37
27
  showRun: boolean;
38
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
29
  declare const _default: typeof __VLS_export;
40
30
  export default _default;
41
- type __VLS_TypePropsToOption<T> = {
42
- [K in keyof T]-?: {} extends Pick<T, K> ? {
43
- type: import('vue').PropType<Required<T>[K]>;
44
- } : {
45
- type: import('vue').PropType<T[K]>;
46
- required: true;
47
- };
48
- };
49
- type __VLS_WithDefaults<P, D> = {
50
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
51
- default: D[K];
52
- }> : P[K];
53
- };
54
- type __VLS_PrettifyLocal<T> = (T extends any ? {
55
- [K in keyof T]: T[K];
56
- } : {
57
- [K in keyof T as K]: T[K];
58
- }) & {};
@@ -17,18 +17,12 @@ type __VLS_Slots = {} & {
17
17
  } & {
18
18
  [K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
19
19
  };
20
- declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EditorPanelDockProps>, {
21
- title: string;
22
- className: string;
23
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
- "toggle-dock": (dock: EditorDockId, visible: boolean) => void;
25
- "activate-panel": (panelId: string) => void;
26
- "close-panel": (panelId: string) => void;
27
- "toggle-panel": (panelId: string, expanded: boolean) => void;
28
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EditorPanelDockProps>, {
29
- title: string;
30
- className: string;
31
- }>>> & Readonly<{
20
+ declare const __VLS_base: import("vue").DefineComponent<EditorPanelDockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "toggle-dock": (dock: EditorDockId, visible: boolean) => any;
22
+ "activate-panel": (panelId: string) => any;
23
+ "close-panel": (panelId: string) => any;
24
+ "toggle-panel": (panelId: string, expanded: boolean) => any;
25
+ }, string, import("vue").PublicProps, Readonly<EditorPanelDockProps> & Readonly<{
32
26
  "onToggle-dock"?: ((dock: EditorDockId, visible: boolean) => any) | undefined;
33
27
  "onActivate-panel"?: ((panelId: string) => any) | undefined;
34
28
  "onClose-panel"?: ((panelId: string) => any) | undefined;
@@ -36,30 +30,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
36
30
  }>, {
37
31
  className: string;
38
32
  title: string;
39
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
34
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
35
  declare const _default: typeof __VLS_export;
42
36
  export default _default;
43
- type __VLS_TypePropsToOption<T> = {
44
- [K in keyof T]-?: {} extends Pick<T, K> ? {
45
- type: import('vue').PropType<Required<T>[K]>;
46
- } : {
47
- type: import('vue').PropType<T[K]>;
48
- required: true;
49
- };
50
- };
51
- type __VLS_WithDefaults<P, D> = {
52
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
53
- default: D[K];
54
- }> : P[K];
55
- };
56
37
  type __VLS_WithSlots<T, S> = T & {
57
38
  new (): {
58
39
  $slots: S;
59
40
  };
60
41
  };
61
- type __VLS_PrettifyLocal<T> = (T extends any ? {
62
- [K in keyof T]: T[K];
63
- } : {
64
- [K in keyof T as K]: T[K];
65
- }) & {};