@tmagic/editor 1.4.16 → 1.5.0-beta.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 (135) hide show
  1. package/dist/style.css +2 -2
  2. package/dist/tmagic-editor.js +274 -265
  3. package/dist/tmagic-editor.umd.cjs +275 -262
  4. package/package.json +11 -15
  5. package/src/components/CodeParams.vue +1 -1
  6. package/src/editorProps.ts +2 -1
  7. package/src/fields/DataSourceInput.vue +2 -2
  8. package/src/fields/UISelect.vue +20 -15
  9. package/src/hooks/use-stage.ts +13 -7
  10. package/src/initService.ts +50 -53
  11. package/src/layouts/workspace/viewer/NodeListMenu.vue +2 -1
  12. package/src/layouts/workspace/viewer/Stage.vue +4 -3
  13. package/src/services/editor.ts +2 -2
  14. package/src/services/stageOverlay.ts +3 -1
  15. package/src/theme/page-bar.scss +2 -2
  16. package/src/utils/data-source/index.ts +25 -23
  17. package/src/utils/editor.ts +4 -3
  18. package/src/utils/index.ts +4 -0
  19. package/src/utils/operator.ts +3 -2
  20. package/src/utils/props.ts +2 -1
  21. package/types/index.d.ts +6484 -49
  22. package/src/shims-vue.d.ts +0 -6
  23. package/types/Editor.vue.d.ts +0 -2313
  24. package/types/components/CodeBlockEditor.vue.d.ts +0 -33
  25. package/types/components/CodeParams.vue.d.ts +0 -28
  26. package/types/components/ContentMenu.vue.d.ts +0 -81
  27. package/types/components/FloatingBox.vue.d.ts +0 -70
  28. package/types/components/Icon.vue.d.ts +0 -15
  29. package/types/components/Resizer.vue.d.ts +0 -16
  30. package/types/components/ScrollBar.vue.d.ts +0 -25
  31. package/types/components/ScrollViewer.vue.d.ts +0 -81
  32. package/types/components/SearchInput.vue.d.ts +0 -6
  33. package/types/components/SplitView.vue.d.ts +0 -72
  34. package/types/components/ToolButton.vue.d.ts +0 -41
  35. package/types/components/Tree.vue.d.ts +0 -83
  36. package/types/components/TreeNode.vue.d.ts +0 -83
  37. package/types/editorProps.d.ts +0 -111
  38. package/types/fields/Code.vue.d.ts +0 -44
  39. package/types/fields/CodeLink.vue.d.ts +0 -24
  40. package/types/fields/CodeSelect.vue.d.ts +0 -28
  41. package/types/fields/CodeSelectCol.vue.d.ts +0 -31
  42. package/types/fields/CondOpSelect.vue.d.ts +0 -17
  43. package/types/fields/DataSourceFieldSelect/FieldSelect.vue.d.ts +0 -36
  44. package/types/fields/DataSourceFieldSelect/Index.vue.d.ts +0 -31
  45. package/types/fields/DataSourceFields.vue.d.ts +0 -44
  46. package/types/fields/DataSourceInput.vue.d.ts +0 -34
  47. package/types/fields/DataSourceMethodSelect.vue.d.ts +0 -31
  48. package/types/fields/DataSourceMethods.vue.d.ts +0 -34
  49. package/types/fields/DataSourceMocks.vue.d.ts +0 -41
  50. package/types/fields/DataSourceSelect.vue.d.ts +0 -31
  51. package/types/fields/DisplayConds.vue.d.ts +0 -37
  52. package/types/fields/EventSelect.vue.d.ts +0 -17
  53. package/types/fields/KeyValue.vue.d.ts +0 -36
  54. package/types/fields/PageFragmentSelect.vue.d.ts +0 -31
  55. package/types/fields/UISelect.vue.d.ts +0 -20
  56. package/types/hooks/index.d.ts +0 -6
  57. package/types/hooks/use-code-block-edit.d.ts +0 -189
  58. package/types/hooks/use-data-source-edit.d.ts +0 -176
  59. package/types/hooks/use-data-source-method.d.ts +0 -187
  60. package/types/hooks/use-editor-content-height.d.ts +0 -3
  61. package/types/hooks/use-filter.d.ts +0 -7
  62. package/types/hooks/use-float-box.d.ts +0 -17
  63. package/types/hooks/use-getso.d.ts +0 -5
  64. package/types/hooks/use-next-float-box-position.d.ts +0 -15
  65. package/types/hooks/use-node-status.d.ts +0 -16
  66. package/types/hooks/use-stage.d.ts +0 -3
  67. package/types/hooks/use-window-rect.d.ts +0 -6
  68. package/types/icons/AppManageIcon.vue.d.ts +0 -2
  69. package/types/icons/CenterIcon.vue.d.ts +0 -2
  70. package/types/icons/CodeIcon.vue.d.ts +0 -2
  71. package/types/icons/FolderMinusIcon.vue.d.ts +0 -2
  72. package/types/icons/PinIcon.vue.d.ts +0 -2
  73. package/types/icons/PinnedIcon.vue.d.ts +0 -2
  74. package/types/initService.d.ts +0 -9
  75. package/types/layouts/AddPageBox.vue.d.ts +0 -15
  76. package/types/layouts/CodeEditor.vue.d.ts +0 -80
  77. package/types/layouts/Framework.vue.d.ts +0 -25
  78. package/types/layouts/NavMenu.vue.d.ts +0 -35
  79. package/types/layouts/PropsPanel.vue.d.ts +0 -535
  80. package/types/layouts/page-bar/AddButton.vue.d.ts +0 -16
  81. package/types/layouts/page-bar/PageBar.vue.d.ts +0 -36
  82. package/types/layouts/page-bar/PageBarScrollContainer.vue.d.ts +0 -29
  83. package/types/layouts/page-bar/PageList.vue.d.ts +0 -27
  84. package/types/layouts/page-bar/SwitchTypeButton.vue.d.ts +0 -20
  85. package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +0 -10
  86. package/types/layouts/sidebar/Sidebar.vue.d.ts +0 -51
  87. package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +0 -32
  88. package/types/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts +0 -24
  89. package/types/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts +0 -31
  90. package/types/layouts/sidebar/data-source/DataSourceList.vue.d.ts +0 -18
  91. package/types/layouts/sidebar/data-source/DataSourceListPanel.vue.d.ts +0 -10
  92. package/types/layouts/sidebar/layer/LayerMenu.vue.d.ts +0 -41
  93. package/types/layouts/sidebar/layer/LayerNodeTool.vue.d.ts +0 -16
  94. package/types/layouts/sidebar/layer/LayerPanel.vue.d.ts +0 -25
  95. package/types/layouts/sidebar/layer/use-click.d.ts +0 -119
  96. package/types/layouts/sidebar/layer/use-drag.d.ts +0 -14
  97. package/types/layouts/sidebar/layer/use-keybinding.d.ts +0 -6
  98. package/types/layouts/sidebar/layer/use-node-status.d.ts +0 -16
  99. package/types/layouts/workspace/Breadcrumb.vue.d.ts +0 -2
  100. package/types/layouts/workspace/Workspace.vue.d.ts +0 -41
  101. package/types/layouts/workspace/viewer/NodeListMenu.vue.d.ts +0 -2
  102. package/types/layouts/workspace/viewer/Stage.vue.d.ts +0 -34
  103. package/types/layouts/workspace/viewer/StageOverlay.vue.d.ts +0 -2
  104. package/types/layouts/workspace/viewer/ViewerMenu.vue.d.ts +0 -42
  105. package/types/services/BaseService.d.ts +0 -65
  106. package/types/services/codeBlock.d.ts +0 -130
  107. package/types/services/componentList.d.ts +0 -16
  108. package/types/services/dataSource.d.ts +0 -68
  109. package/types/services/dep.d.ts +0 -33
  110. package/types/services/editor.d.ts +0 -180
  111. package/types/services/events.d.ts +0 -18
  112. package/types/services/history.d.ts +0 -26
  113. package/types/services/keybinding.d.ts +0 -40
  114. package/types/services/props.d.ts +0 -92
  115. package/types/services/stageOverlay.d.ts +0 -30
  116. package/types/services/storage.d.ts +0 -65
  117. package/types/services/ui.d.ts +0 -77
  118. package/types/type.d.ts +0 -657
  119. package/types/utils/compose.d.ts +0 -5
  120. package/types/utils/config.d.ts +0 -4
  121. package/types/utils/content-menu.d.ts +0 -7
  122. package/types/utils/data-source/formConfigs/base.d.ts +0 -2
  123. package/types/utils/data-source/formConfigs/http.d.ts +0 -3
  124. package/types/utils/data-source/index.d.ts +0 -10
  125. package/types/utils/editor.d.ts +0 -59
  126. package/types/utils/idle-task.d.ts +0 -13
  127. package/types/utils/index.d.ts +0 -6
  128. package/types/utils/keybinding-config.d.ts +0 -7
  129. package/types/utils/logger.d.ts +0 -5
  130. package/types/utils/monaco-editor.d.ts +0 -2
  131. package/types/utils/operator.d.ts +0 -21
  132. package/types/utils/props.d.ts +0 -23
  133. package/types/utils/scroll-viewer.d.ts +0 -37
  134. package/types/utils/tree.d.ts +0 -3
  135. package/types/utils/undo-redo.d.ts +0 -12
@@ -1,111 +0,0 @@
1
- import type { EventOption } from '@tmagic/core';
2
- import type { FormConfig, FormState } from '@tmagic/form';
3
- import type { DataSourceSchema, Id, MApp, MNode } from '@tmagic/schema';
4
- import StageCore, { ContainerHighlightType, type CustomizeMoveableOptionsCallbackConfig, type GuidesOptions, type MoveableOptions, RenderType, type UpdateDragEl } from '@tmagic/stage';
5
- import type { ComponentGroup, DatasourceTypeOption, MenuBarData, MenuButton, MenuComponent, PageBarSortOptions, SideBarData, StageRect } from './type';
6
- export interface EditorProps {
7
- /** 页面初始值 */
8
- modelValue?: MApp;
9
- /** 左侧面板中的组件类型列表 */
10
- componentGroupList?: ComponentGroup[];
11
- /** 左侧面板中的数据源类型列表 */
12
- datasourceList?: DatasourceTypeOption[];
13
- /** 左侧面板配置 */
14
- sidebar?: SideBarData;
15
- /** 顶部工具栏配置 */
16
- menu?: MenuBarData;
17
- /** 组件树右键菜单 */
18
- layerContentMenu?: (MenuButton | MenuComponent)[];
19
- /** 画布右键菜单 */
20
- stageContentMenu?: (MenuButton | MenuComponent)[];
21
- /** 中间工作区域中画布通过iframe渲染时的页面url */
22
- runtimeUrl?: string;
23
- /** 是用iframe渲染还是直接渲染 */
24
- renderType?: RenderType;
25
- /** 选中时是否自动滚动到可视区域 */
26
- autoScrollIntoView?: boolean;
27
- /** 组件的属性配置表单的dsl */
28
- propsConfigs?: Record<string, FormConfig>;
29
- /** 添加组件时的默认值 */
30
- propsValues?: Record<string, Partial<MNode>>;
31
- /** 组件联动事件选项列表 */
32
- eventMethodList?: Record<string, {
33
- events: EventOption[];
34
- methods: EventOption[];
35
- }>;
36
- /** 添加数据源时的默认值 */
37
- datasourceValues?: Record<string, Partial<DataSourceSchema>>;
38
- /** 数据源的属性配置表单的dsl */
39
- datasourceConfigs?: Record<string, FormConfig>;
40
- datasourceEventMethodList?: Record<string, {
41
- events: EventOption[];
42
- methods: EventOption[];
43
- }>;
44
- /** 画布中组件选中框的移动范围 */
45
- moveableOptions?: MoveableOptions | ((config?: CustomizeMoveableOptionsCallbackConfig) => MoveableOptions);
46
- /** 编辑器初始化时默认选中的组件ID */
47
- defaultSelected?: Id;
48
- /** 拖入画布中容器时,识别到容器后给容器根dom加上的class */
49
- containerHighlightClassName?: string;
50
- /** 拖入画布中容器时,悬停识别容器的时间 */
51
- containerHighlightDuration?: number;
52
- /** 拖入画布中容器时,识别容器的操作类型 */
53
- containerHighlightType?: ContainerHighlightType;
54
- /** 画布大小 */
55
- stageRect?: StageRect;
56
- /** monaco editor 的配置 */
57
- codeOptions?: {
58
- [key: string]: any;
59
- };
60
- /** 禁用鼠标左键按下时就开始拖拽,需要先选中再可以拖拽 */
61
- disabledDragStart?: boolean;
62
- /** 标尺配置 */
63
- guidesOptions?: Partial<GuidesOptions>;
64
- /** 禁止多选 */
65
- disabledMultiSelect?: boolean;
66
- /** 禁用页面片 */
67
- disabledPageFragment?: boolean;
68
- /** 禁用双击在浮层中单独编辑选中组件 */
69
- disabledStageOverlay?: boolean;
70
- /** 禁用属性配置面板右下角显示源码的按钮 */
71
- disabledShowSrc?: boolean;
72
- /** 中间工作区域中画布渲染的内容 */
73
- render?: (stage: StageCore) => HTMLDivElement | Promise<HTMLDivElement>;
74
- /** 选中时会在画布上复制出一个大小相同的dom,实际拖拽的是这个dom,此方法用于干预这个dom的生成方式 */
75
- updateDragEl?: UpdateDragEl;
76
- /** 用于设置画布上的dom是否可以被选中 */
77
- canSelect?: (el: HTMLElement) => boolean | Promise<boolean>;
78
- /** 用于设置画布上的dom是否可以被拖入其中 */
79
- isContainer?: (el: HTMLElement) => boolean | Promise<boolean>;
80
- /** 用于自定义组件树与画布的右键菜单 */
81
- customContentMenu?: (menus: (MenuButton | MenuComponent)[], type: string) => (MenuButton | MenuComponent)[];
82
- extendFormState?: (state: FormState) => Record<string, any> | Promise<Record<string, any>>;
83
- /** 页面顺序拖拽配置参数 */
84
- pageBarSortOptions?: PageBarSortOptions;
85
- }
86
- export declare const defaultEditorProps: {
87
- renderType: RenderType;
88
- disabledMultiSelect: boolean;
89
- disabledPageFragment: boolean;
90
- disabledStageOverlay: boolean;
91
- containerHighlightClassName: string;
92
- containerHighlightDuration: number;
93
- containerHighlightType: ContainerHighlightType;
94
- disabledShowSrc: boolean;
95
- componentGroupList: () => never[];
96
- datasourceList: () => never[];
97
- menu: () => {
98
- left: never[];
99
- right: never[];
100
- };
101
- layerContentMenu: () => never[];
102
- stageContentMenu: () => never[];
103
- propsConfigs: () => {};
104
- propsValues: () => {};
105
- eventMethodList: () => {};
106
- datasourceValues: () => {};
107
- datasourceConfigs: () => {};
108
- canSelect: (el: HTMLElement) => boolean;
109
- isContainer: (el: HTMLElement) => boolean;
110
- codeOptions: () => {};
111
- };
@@ -1,44 +0,0 @@
1
- import type { FieldProps, FormItem } from '@tmagic/form';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
3
- language?: string;
4
- options?: {
5
- [key: string]: any;
6
- };
7
- height?: string;
8
- parse?: boolean;
9
- } & FormItem>>, {
10
- disabled: boolean;
11
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
- change: (value: any) => void;
13
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
14
- language?: string;
15
- options?: {
16
- [key: string]: any;
17
- };
18
- height?: string;
19
- parse?: boolean;
20
- } & FormItem>>, {
21
- disabled: boolean;
22
- }>>> & {
23
- onChange?: ((value: any) => any) | undefined;
24
- }, {
25
- disabled: boolean;
26
- }, {}>;
27
- export default _default;
28
- type __VLS_WithDefaults<P, D> = {
29
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
- default: D[K];
31
- }> : P[K];
32
- };
33
- type __VLS_Prettify<T> = {
34
- [K in keyof T]: T[K];
35
- } & {};
36
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
- type __VLS_TypePropsToOption<T> = {
38
- [K in keyof T]-?: {} extends Pick<T, K> ? {
39
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
- } : {
41
- type: import('vue').PropType<T[K]>;
42
- required: true;
43
- };
44
- };
@@ -1,24 +0,0 @@
1
- import type { FieldProps, FormItem } from '@tmagic/form';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<FieldProps<{
3
- type: "code-link";
4
- formTitle?: string;
5
- codeOptions?: Object;
6
- } & FormItem>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- change: (...args: any[]) => void;
8
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FieldProps<{
9
- type: "code-link";
10
- formTitle?: string;
11
- codeOptions?: Object;
12
- } & FormItem>>>> & {
13
- onChange?: ((...args: any[]) => any) | undefined;
14
- }, {}, {}>;
15
- export default _default;
16
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
- type __VLS_TypePropsToOption<T> = {
18
- [K in keyof T]-?: {} extends Pick<T, K> ? {
19
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
- } : {
21
- type: import('vue').PropType<T[K]>;
22
- required: true;
23
- };
24
- };
@@ -1,28 +0,0 @@
1
- import type { FieldProps, FormItem } from '@tmagic/form';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
3
- className?: string;
4
- } & FormItem>>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- change: (...args: any[]) => void;
6
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
7
- className?: string;
8
- } & FormItem>>, {}>>> & {
9
- onChange?: ((...args: any[]) => any) | undefined;
10
- }, {}, {}>;
11
- export default _default;
12
- type __VLS_WithDefaults<P, D> = {
13
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
14
- default: D[K];
15
- }> : P[K];
16
- };
17
- type __VLS_Prettify<T> = {
18
- [K in keyof T]: T[K];
19
- } & {};
20
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
- type __VLS_TypePropsToOption<T> = {
22
- [K in keyof T]-?: {} extends Pick<T, K> ? {
23
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
- } : {
25
- type: import('vue').PropType<T[K]>;
26
- required: true;
27
- };
28
- };
@@ -1,31 +0,0 @@
1
- import { type FieldProps } from '@tmagic/form';
2
- import type { CodeSelectColConfig } from '../type';
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<CodeSelectColConfig>>, {
4
- disabled: boolean;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- change: (...args: any[]) => void;
7
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<CodeSelectColConfig>>, {
8
- disabled: boolean;
9
- }>>> & {
10
- onChange?: ((...args: any[]) => any) | undefined;
11
- }, {
12
- disabled: boolean;
13
- }, {}>;
14
- export default _default;
15
- type __VLS_WithDefaults<P, D> = {
16
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
17
- default: D[K];
18
- }> : P[K];
19
- };
20
- type __VLS_Prettify<T> = {
21
- [K in keyof T]: T[K];
22
- } & {};
23
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
- type __VLS_TypePropsToOption<T> = {
25
- [K in keyof T]-?: {} extends Pick<T, K> ? {
26
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
- } : {
28
- type: import('vue').PropType<T[K]>;
29
- required: true;
30
- };
31
- };
@@ -1,17 +0,0 @@
1
- import type { FieldProps } from '@tmagic/form';
2
- import type { CondOpSelectConfig } from '../type';
3
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<FieldProps<CondOpSelectConfig>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
- change: (...args: any[]) => void;
5
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FieldProps<CondOpSelectConfig>>>> & {
6
- onChange?: ((...args: any[]) => any) | undefined;
7
- }, {}, {}>;
8
- export default _default;
9
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
- type __VLS_TypePropsToOption<T> = {
11
- [K in keyof T]-?: {} extends Pick<T, K> ? {
12
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
- } : {
14
- type: import('vue').PropType<T[K]>;
15
- required: true;
16
- };
17
- };
@@ -1,36 +0,0 @@
1
- import { type FilterFunction } from '@tmagic/form';
2
- import { DataSourceFieldType } from '@tmagic/schema';
3
- declare let __VLS_typeProps: {
4
- /**
5
- * 是否要编译成数据源的data。
6
- * key: 不编译,就是要数据源id和field name;
7
- * value: 要编译(数据源data[`${filed}`])
8
- * */
9
- value?: 'key' | 'value';
10
- disabled?: boolean;
11
- checkStrictly?: boolean;
12
- size?: 'large' | 'default' | 'small';
13
- dataSourceFieldType?: DataSourceFieldType[];
14
- /** 是否可以编辑数据源,disable表示的是是否可以选择数据源 */
15
- notEditable?: boolean | FilterFunction;
16
- };
17
- type __VLS_PublicProps = {
18
- 'modelValue'?: string[] | any;
19
- } & typeof __VLS_typeProps;
20
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
- "update:modelValue": (modelValue: any) => void;
22
- change: (v: string[]) => void;
23
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
24
- onChange?: ((v: string[]) => any) | undefined;
25
- "onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
26
- }, {}, {}>;
27
- export default _default;
28
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
- type __VLS_TypePropsToOption<T> = {
30
- [K in keyof T]-?: {} extends Pick<T, K> ? {
31
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
- } : {
33
- type: import('vue').PropType<T[K]>;
34
- required: true;
35
- };
36
- };
@@ -1,31 +0,0 @@
1
- import type { FieldProps } from '@tmagic/form';
2
- import type { DataSourceFieldSelectConfig } from '../../type';
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<DataSourceFieldSelectConfig>>, {
4
- disabled: boolean;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- change: (...args: any[]) => void;
7
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<DataSourceFieldSelectConfig>>, {
8
- disabled: boolean;
9
- }>>> & {
10
- onChange?: ((...args: any[]) => any) | undefined;
11
- }, {
12
- disabled: boolean;
13
- }, {}>;
14
- export default _default;
15
- type __VLS_WithDefaults<P, D> = {
16
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
17
- default: D[K];
18
- }> : P[K];
19
- };
20
- type __VLS_Prettify<T> = {
21
- [K in keyof T]: T[K];
22
- } & {};
23
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
- type __VLS_TypePropsToOption<T> = {
25
- [K in keyof T]-?: {} extends Pick<T, K> ? {
26
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
- } : {
28
- type: import('vue').PropType<T[K]>;
29
- required: true;
30
- };
31
- };
@@ -1,44 +0,0 @@
1
- import { type FieldProps } from '@tmagic/form';
2
- declare let __VLS_typeProps: FieldProps<{
3
- type: 'data-source-fields';
4
- }>;
5
- type __VLS_PublicProps = {
6
- 'width'?: number;
7
- 'visible'?: boolean;
8
- 'visible1'?: boolean;
9
- } & typeof __VLS_typeProps;
10
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
11
- disabled: boolean;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- "update:width": (width: number) => void;
14
- "update:visible": (visible: boolean) => void;
15
- "update:visible1": (visible1: boolean) => void;
16
- change: (...args: any[]) => void;
17
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
18
- disabled: boolean;
19
- }>>> & {
20
- onChange?: ((...args: any[]) => any) | undefined;
21
- "onUpdate:width"?: ((width: number) => any) | undefined;
22
- "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
23
- "onUpdate:visible1"?: ((visible1: boolean) => any) | undefined;
24
- }, {
25
- disabled: boolean;
26
- }, {}>;
27
- export default _default;
28
- type __VLS_WithDefaults<P, D> = {
29
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
- default: D[K];
31
- }> : P[K];
32
- };
33
- type __VLS_Prettify<T> = {
34
- [K in keyof T]: T[K];
35
- } & {};
36
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
- type __VLS_TypePropsToOption<T> = {
38
- [K in keyof T]-?: {} extends Pick<T, K> ? {
39
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
- } : {
41
- type: import('vue').PropType<T[K]>;
42
- required: true;
43
- };
44
- };
@@ -1,34 +0,0 @@
1
- import type { FieldProps, FormItem } from '@tmagic/form';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
3
- type: "data-source-input";
4
- } & FormItem>>, {
5
- disabled: boolean;
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- change: (value: string) => void;
8
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
9
- type: "data-source-input";
10
- } & FormItem>>, {
11
- disabled: boolean;
12
- }>>> & {
13
- onChange?: ((value: string) => any) | undefined;
14
- }, {
15
- disabled: boolean;
16
- }, {}>;
17
- export default _default;
18
- type __VLS_WithDefaults<P, D> = {
19
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
20
- default: D[K];
21
- }> : P[K];
22
- };
23
- type __VLS_Prettify<T> = {
24
- [K in keyof T]: T[K];
25
- } & {};
26
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
- type __VLS_TypePropsToOption<T> = {
28
- [K in keyof T]-?: {} extends Pick<T, K> ? {
29
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
- } : {
31
- type: import('vue').PropType<T[K]>;
32
- required: true;
33
- };
34
- };
@@ -1,31 +0,0 @@
1
- import { type FieldProps } from '@tmagic/form';
2
- import type { DataSourceMethodSelectConfig } from '../type';
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<DataSourceMethodSelectConfig>>, {
4
- disabled: boolean;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- change: (...args: any[]) => void;
7
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<DataSourceMethodSelectConfig>>, {
8
- disabled: boolean;
9
- }>>> & {
10
- onChange?: ((...args: any[]) => any) | undefined;
11
- }, {
12
- disabled: boolean;
13
- }, {}>;
14
- export default _default;
15
- type __VLS_WithDefaults<P, D> = {
16
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
17
- default: D[K];
18
- }> : P[K];
19
- };
20
- type __VLS_Prettify<T> = {
21
- [K in keyof T]: T[K];
22
- } & {};
23
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
- type __VLS_TypePropsToOption<T> = {
25
- [K in keyof T]-?: {} extends Pick<T, K> ? {
26
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
- } : {
28
- type: import('vue').PropType<T[K]>;
29
- required: true;
30
- };
31
- };
@@ -1,34 +0,0 @@
1
- import type { FieldProps } from '@tmagic/form';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
3
- type: "data-source-methods";
4
- }>>, {
5
- disabled: boolean;
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- change: (...args: any[]) => void;
8
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
9
- type: "data-source-methods";
10
- }>>, {
11
- disabled: boolean;
12
- }>>> & {
13
- onChange?: ((...args: any[]) => any) | undefined;
14
- }, {
15
- disabled: boolean;
16
- }, {}>;
17
- export default _default;
18
- type __VLS_WithDefaults<P, D> = {
19
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
20
- default: D[K];
21
- }> : P[K];
22
- };
23
- type __VLS_Prettify<T> = {
24
- [K in keyof T]: T[K];
25
- } & {};
26
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
- type __VLS_TypePropsToOption<T> = {
28
- [K in keyof T]-?: {} extends Pick<T, K> ? {
29
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
- } : {
31
- type: import('vue').PropType<T[K]>;
32
- required: true;
33
- };
34
- };
@@ -1,41 +0,0 @@
1
- import { type FieldProps } from '@tmagic/form';
2
- declare let __VLS_typeProps: FieldProps<{
3
- type: 'data-source-mocks';
4
- }>;
5
- type __VLS_PublicProps = {
6
- 'width'?: number;
7
- 'visible'?: boolean;
8
- } & typeof __VLS_typeProps;
9
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
10
- disabled: boolean;
11
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
- "update:width": (width: number) => void;
13
- "update:visible": (visible: boolean) => void;
14
- change: (...args: any[]) => void;
15
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
16
- disabled: boolean;
17
- }>>> & {
18
- onChange?: ((...args: any[]) => any) | undefined;
19
- "onUpdate:width"?: ((width: number) => any) | undefined;
20
- "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
21
- }, {
22
- disabled: boolean;
23
- }, {}>;
24
- export default _default;
25
- type __VLS_WithDefaults<P, D> = {
26
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
- default: D[K];
28
- }> : P[K];
29
- };
30
- type __VLS_Prettify<T> = {
31
- [K in keyof T]: T[K];
32
- } & {};
33
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
- type __VLS_TypePropsToOption<T> = {
35
- [K in keyof T]-?: {} extends Pick<T, K> ? {
36
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
- } : {
38
- type: import('vue').PropType<T[K]>;
39
- required: true;
40
- };
41
- };
@@ -1,31 +0,0 @@
1
- import { type FieldProps } from '@tmagic/form';
2
- import type { DataSourceSelect } from '../type';
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<DataSourceSelect>>, {
4
- disabled: boolean;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- change: (...args: any[]) => void;
7
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<DataSourceSelect>>, {
8
- disabled: boolean;
9
- }>>> & {
10
- onChange?: ((...args: any[]) => any) | undefined;
11
- }, {
12
- disabled: boolean;
13
- }, {}>;
14
- export default _default;
15
- type __VLS_WithDefaults<P, D> = {
16
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
17
- default: D[K];
18
- }> : P[K];
19
- };
20
- type __VLS_Prettify<T> = {
21
- [K in keyof T]: T[K];
22
- } & {};
23
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
- type __VLS_TypePropsToOption<T> = {
25
- [K in keyof T]-?: {} extends Pick<T, K> ? {
26
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
- } : {
28
- type: import('vue').PropType<T[K]>;
29
- required: true;
30
- };
31
- };
@@ -1,37 +0,0 @@
1
- import { type FieldProps, type FilterFunction } from '@tmagic/form';
2
- import type { DisplayCond } from '@tmagic/schema';
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
4
- titlePrefix?: string;
5
- parentFields?: string[] | FilterFunction<string[]>;
6
- }>>, {
7
- disabled: boolean;
8
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- change: (value: DisplayCond[]) => void;
10
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
11
- titlePrefix?: string;
12
- parentFields?: string[] | FilterFunction<string[]>;
13
- }>>, {
14
- disabled: boolean;
15
- }>>> & {
16
- onChange?: ((value: DisplayCond[]) => any) | undefined;
17
- }, {
18
- disabled: boolean;
19
- }, {}>;
20
- export default _default;
21
- type __VLS_WithDefaults<P, D> = {
22
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
23
- default: D[K];
24
- }> : P[K];
25
- };
26
- type __VLS_Prettify<T> = {
27
- [K in keyof T]: T[K];
28
- } & {};
29
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- type __VLS_TypePropsToOption<T> = {
31
- [K in keyof T]-?: {} extends Pick<T, K> ? {
32
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
- } : {
34
- type: import('vue').PropType<T[K]>;
35
- required: true;
36
- };
37
- };
@@ -1,17 +0,0 @@
1
- import type { FieldProps } from '@tmagic/form';
2
- import type { EventSelectConfig } from '../type';
3
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<FieldProps<EventSelectConfig>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
- change: (...args: any[]) => void;
5
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FieldProps<EventSelectConfig>>>> & {
6
- onChange?: ((...args: any[]) => any) | undefined;
7
- }, {}, {}>;
8
- export default _default;
9
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
- type __VLS_TypePropsToOption<T> = {
11
- [K in keyof T]-?: {} extends Pick<T, K> ? {
12
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
- } : {
14
- type: import('vue').PropType<T[K]>;
15
- required: true;
16
- };
17
- };
@@ -1,36 +0,0 @@
1
- import type { FieldProps, FormItem } from '@tmagic/form';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
3
- type: "key-value";
4
- advanced?: boolean;
5
- } & FormItem>>, {
6
- disabled: boolean;
7
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- change: (value: Record<string, any>) => void;
9
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FieldProps<{
10
- type: "key-value";
11
- advanced?: boolean;
12
- } & FormItem>>, {
13
- disabled: boolean;
14
- }>>> & {
15
- onChange?: ((value: Record<string, any>) => any) | undefined;
16
- }, {
17
- disabled: boolean;
18
- }, {}>;
19
- export default _default;
20
- type __VLS_WithDefaults<P, D> = {
21
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
22
- default: D[K];
23
- }> : P[K];
24
- };
25
- type __VLS_Prettify<T> = {
26
- [K in keyof T]: T[K];
27
- } & {};
28
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
- type __VLS_TypePropsToOption<T> = {
30
- [K in keyof T]-?: {} extends Pick<T, K> ? {
31
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
- } : {
33
- type: import('vue').PropType<T[K]>;
34
- required: true;
35
- };
36
- };