@tmagic/editor 1.4.15 → 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 (134) 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 +13 -17
  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/components/CodeBlockEditor.vue.d.ts +0 -33
  24. package/types/components/CodeParams.vue.d.ts +0 -28
  25. package/types/components/ContentMenu.vue.d.ts +0 -73
  26. package/types/components/FloatingBox.vue.d.ts +0 -68
  27. package/types/components/Icon.vue.d.ts +0 -15
  28. package/types/components/Resizer.vue.d.ts +0 -14
  29. package/types/components/ScrollBar.vue.d.ts +0 -25
  30. package/types/components/ScrollViewer.vue.d.ts +0 -79
  31. package/types/components/SearchInput.vue.d.ts +0 -6
  32. package/types/components/SplitView.vue.d.ts +0 -70
  33. package/types/components/ToolButton.vue.d.ts +0 -41
  34. package/types/components/Tree.vue.d.ts +0 -81
  35. package/types/components/TreeNode.vue.d.ts +0 -81
  36. package/types/editorProps.d.ts +0 -111
  37. package/types/fields/Code.vue.d.ts +0 -44
  38. package/types/fields/CodeLink.vue.d.ts +0 -24
  39. package/types/fields/CodeSelect.vue.d.ts +0 -28
  40. package/types/fields/CodeSelectCol.vue.d.ts +0 -31
  41. package/types/fields/CondOpSelect.vue.d.ts +0 -17
  42. package/types/fields/DataSourceFieldSelect/FieldSelect.vue.d.ts +0 -36
  43. package/types/fields/DataSourceFieldSelect/Index.vue.d.ts +0 -31
  44. package/types/fields/DataSourceFields.vue.d.ts +0 -44
  45. package/types/fields/DataSourceInput.vue.d.ts +0 -34
  46. package/types/fields/DataSourceMethodSelect.vue.d.ts +0 -31
  47. package/types/fields/DataSourceMethods.vue.d.ts +0 -34
  48. package/types/fields/DataSourceMocks.vue.d.ts +0 -41
  49. package/types/fields/DataSourceSelect.vue.d.ts +0 -31
  50. package/types/fields/DisplayConds.vue.d.ts +0 -37
  51. package/types/fields/EventSelect.vue.d.ts +0 -17
  52. package/types/fields/KeyValue.vue.d.ts +0 -36
  53. package/types/fields/PageFragmentSelect.vue.d.ts +0 -31
  54. package/types/fields/UISelect.vue.d.ts +0 -20
  55. package/types/hooks/index.d.ts +0 -6
  56. package/types/hooks/use-code-block-edit.d.ts +0 -100
  57. package/types/hooks/use-data-source-edit.d.ts +0 -93
  58. package/types/hooks/use-data-source-method.d.ts +0 -98
  59. package/types/hooks/use-editor-content-height.d.ts +0 -3
  60. package/types/hooks/use-filter.d.ts +0 -7
  61. package/types/hooks/use-float-box.d.ts +0 -15
  62. package/types/hooks/use-getso.d.ts +0 -5
  63. package/types/hooks/use-next-float-box-position.d.ts +0 -9
  64. package/types/hooks/use-node-status.d.ts +0 -11
  65. package/types/hooks/use-stage.d.ts +0 -3
  66. package/types/hooks/use-window-rect.d.ts +0 -6
  67. package/types/icons/AppManageIcon.vue.d.ts +0 -2
  68. package/types/icons/CenterIcon.vue.d.ts +0 -2
  69. package/types/icons/CodeIcon.vue.d.ts +0 -2
  70. package/types/icons/FolderMinusIcon.vue.d.ts +0 -2
  71. package/types/icons/PinIcon.vue.d.ts +0 -2
  72. package/types/icons/PinnedIcon.vue.d.ts +0 -2
  73. package/types/initService.d.ts +0 -9
  74. package/types/layouts/AddPageBox.vue.d.ts +0 -15
  75. package/types/layouts/CodeEditor.vue.d.ts +0 -80
  76. package/types/layouts/Framework.vue.d.ts +0 -23
  77. package/types/layouts/NavMenu.vue.d.ts +0 -35
  78. package/types/layouts/PropsPanel.vue.d.ts +0 -284
  79. package/types/layouts/page-bar/AddButton.vue.d.ts +0 -16
  80. package/types/layouts/page-bar/PageBar.vue.d.ts +0 -34
  81. package/types/layouts/page-bar/PageBarScrollContainer.vue.d.ts +0 -27
  82. package/types/layouts/page-bar/PageList.vue.d.ts +0 -25
  83. package/types/layouts/page-bar/SwitchTypeButton.vue.d.ts +0 -20
  84. package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +0 -8
  85. package/types/layouts/sidebar/Sidebar.vue.d.ts +0 -49
  86. package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +0 -30
  87. package/types/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts +0 -22
  88. package/types/layouts/sidebar/data-source/DataSourceConfigPanel.vue.d.ts +0 -31
  89. package/types/layouts/sidebar/data-source/DataSourceList.vue.d.ts +0 -16
  90. package/types/layouts/sidebar/data-source/DataSourceListPanel.vue.d.ts +0 -8
  91. package/types/layouts/sidebar/layer/LayerMenu.vue.d.ts +0 -41
  92. package/types/layouts/sidebar/layer/LayerNodeTool.vue.d.ts +0 -16
  93. package/types/layouts/sidebar/layer/LayerPanel.vue.d.ts +0 -23
  94. package/types/layouts/sidebar/layer/use-click.d.ts +0 -64
  95. package/types/layouts/sidebar/layer/use-drag.d.ts +0 -14
  96. package/types/layouts/sidebar/layer/use-keybinding.d.ts +0 -6
  97. package/types/layouts/sidebar/layer/use-node-status.d.ts +0 -11
  98. package/types/layouts/workspace/Breadcrumb.vue.d.ts +0 -2
  99. package/types/layouts/workspace/Workspace.vue.d.ts +0 -39
  100. package/types/layouts/workspace/viewer/NodeListMenu.vue.d.ts +0 -2
  101. package/types/layouts/workspace/viewer/Stage.vue.d.ts +0 -34
  102. package/types/layouts/workspace/viewer/StageOverlay.vue.d.ts +0 -2
  103. package/types/layouts/workspace/viewer/ViewerMenu.vue.d.ts +0 -42
  104. package/types/services/BaseService.d.ts +0 -66
  105. package/types/services/codeBlock.d.ts +0 -130
  106. package/types/services/componentList.d.ts +0 -16
  107. package/types/services/dataSource.d.ts +0 -68
  108. package/types/services/dep.d.ts +0 -33
  109. package/types/services/editor.d.ts +0 -180
  110. package/types/services/events.d.ts +0 -18
  111. package/types/services/history.d.ts +0 -26
  112. package/types/services/keybinding.d.ts +0 -40
  113. package/types/services/props.d.ts +0 -92
  114. package/types/services/stageOverlay.d.ts +0 -30
  115. package/types/services/storage.d.ts +0 -65
  116. package/types/services/ui.d.ts +0 -77
  117. package/types/type.d.ts +0 -658
  118. package/types/utils/compose.d.ts +0 -5
  119. package/types/utils/config.d.ts +0 -4
  120. package/types/utils/content-menu.d.ts +0 -7
  121. package/types/utils/data-source/formConfigs/base.d.ts +0 -2
  122. package/types/utils/data-source/formConfigs/http.d.ts +0 -3
  123. package/types/utils/data-source/index.d.ts +0 -10
  124. package/types/utils/editor.d.ts +0 -59
  125. package/types/utils/idle-task.d.ts +0 -14
  126. package/types/utils/index.d.ts +0 -6
  127. package/types/utils/keybinding-config.d.ts +0 -7
  128. package/types/utils/logger.d.ts +0 -5
  129. package/types/utils/monaco-editor.d.ts +0 -2
  130. package/types/utils/operator.d.ts +0 -21
  131. package/types/utils/props.d.ts +0 -23
  132. package/types/utils/scroll-viewer.d.ts +0 -38
  133. package/types/utils/tree.d.ts +0 -3
  134. package/types/utils/undo-redo.d.ts +0 -12
@@ -1,284 +0,0 @@
1
- import type { FormState, FormValue } from '@tmagic/form';
2
- import type { PropsPanelSlots } from '../type';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
- disabledShowSrc?: boolean | undefined;
5
- extendState?: ((state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
6
- }>, {
7
- configForm: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
8
- popperClass: {
9
- type: import("vue").PropType<string>;
10
- };
11
- disabled: {
12
- type: import("vue").PropType<boolean>;
13
- default: boolean;
14
- };
15
- height: {
16
- type: import("vue").PropType<string>;
17
- default: string;
18
- };
19
- config: {
20
- type: import("vue").PropType<import("@tmagic/form").FormConfig>;
21
- required: true;
22
- default: () => never[];
23
- };
24
- size: {
25
- type: import("vue").PropType<"default" | "small" | "large">;
26
- };
27
- labelWidth: {
28
- type: import("vue").PropType<string>;
29
- default: string;
30
- };
31
- initValues: {
32
- type: import("vue").PropType<Record<string, any>>;
33
- required: true;
34
- default: () => {};
35
- };
36
- extendState: {
37
- type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
38
- };
39
- lastValues: {
40
- type: import("vue").PropType<Record<string, any>>;
41
- default: () => {};
42
- };
43
- isCompare: {
44
- type: import("vue").PropType<boolean>;
45
- default: boolean;
46
- };
47
- parentValues: {
48
- type: import("vue").PropType<Record<string, any>>;
49
- default: () => {};
50
- };
51
- stepActive: {
52
- type: import("vue").PropType<string | number>;
53
- default: number;
54
- };
55
- inline: {
56
- type: import("vue").PropType<boolean>;
57
- default: boolean;
58
- };
59
- labelPosition: {
60
- type: import("vue").PropType<string>;
61
- default: string;
62
- };
63
- keyProp: {
64
- type: import("vue").PropType<string>;
65
- default: string;
66
- };
67
- }>> & {
68
- onChange?: ((...args: any[]) => any) | undefined;
69
- onError?: ((...args: any[]) => any) | undefined;
70
- "onField-input"?: ((...args: any[]) => any) | undefined;
71
- "onField-change"?: ((...args: any[]) => any) | undefined;
72
- }, {
73
- values: import("vue").Ref<FormValue>;
74
- lastValuesProcessed: import("vue").Ref<FormValue>;
75
- formState: FormState;
76
- initialized: import("vue").Ref<boolean>;
77
- changeHandler: () => void;
78
- resetForm: () => any;
79
- submitForm: (native?: boolean | undefined) => Promise<any>;
80
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
- change: (...args: any[]) => void;
82
- error: (...args: any[]) => void;
83
- "field-input": (...args: any[]) => void;
84
- "field-change": (...args: any[]) => void;
85
- }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
86
- popperClass: {
87
- type: import("vue").PropType<string>;
88
- };
89
- disabled: {
90
- type: import("vue").PropType<boolean>;
91
- default: boolean;
92
- };
93
- height: {
94
- type: import("vue").PropType<string>;
95
- default: string;
96
- };
97
- config: {
98
- type: import("vue").PropType<import("@tmagic/form").FormConfig>;
99
- required: true;
100
- default: () => never[];
101
- };
102
- size: {
103
- type: import("vue").PropType<"default" | "small" | "large">;
104
- };
105
- labelWidth: {
106
- type: import("vue").PropType<string>;
107
- default: string;
108
- };
109
- initValues: {
110
- type: import("vue").PropType<Record<string, any>>;
111
- required: true;
112
- default: () => {};
113
- };
114
- extendState: {
115
- type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
116
- };
117
- lastValues: {
118
- type: import("vue").PropType<Record<string, any>>;
119
- default: () => {};
120
- };
121
- isCompare: {
122
- type: import("vue").PropType<boolean>;
123
- default: boolean;
124
- };
125
- parentValues: {
126
- type: import("vue").PropType<Record<string, any>>;
127
- default: () => {};
128
- };
129
- stepActive: {
130
- type: import("vue").PropType<string | number>;
131
- default: number;
132
- };
133
- inline: {
134
- type: import("vue").PropType<boolean>;
135
- default: boolean;
136
- };
137
- labelPosition: {
138
- type: import("vue").PropType<string>;
139
- default: string;
140
- };
141
- keyProp: {
142
- type: import("vue").PropType<string>;
143
- default: string;
144
- };
145
- }>> & {
146
- onChange?: ((...args: any[]) => any) | undefined;
147
- onError?: ((...args: any[]) => any) | undefined;
148
- "onField-input"?: ((...args: any[]) => any) | undefined;
149
- "onField-change"?: ((...args: any[]) => any) | undefined;
150
- }, {
151
- config: import("@tmagic/form").FormConfig;
152
- initValues: Record<string, any>;
153
- lastValues: Record<string, any>;
154
- isCompare: boolean;
155
- keyProp: string;
156
- parentValues: Record<string, any>;
157
- labelWidth: string;
158
- disabled: boolean;
159
- stepActive: string | number;
160
- height: string;
161
- inline: boolean;
162
- labelPosition: string;
163
- }, true, {}, {}, {
164
- P: {};
165
- B: {};
166
- D: {};
167
- C: {};
168
- M: {};
169
- Defaults: {};
170
- }, Readonly<import("vue").ExtractPropTypes<{
171
- popperClass: {
172
- type: import("vue").PropType<string>;
173
- };
174
- disabled: {
175
- type: import("vue").PropType<boolean>;
176
- default: boolean;
177
- };
178
- height: {
179
- type: import("vue").PropType<string>;
180
- default: string;
181
- };
182
- config: {
183
- type: import("vue").PropType<import("@tmagic/form").FormConfig>;
184
- required: true;
185
- default: () => never[];
186
- };
187
- size: {
188
- type: import("vue").PropType<"default" | "small" | "large">;
189
- };
190
- labelWidth: {
191
- type: import("vue").PropType<string>;
192
- default: string;
193
- };
194
- initValues: {
195
- type: import("vue").PropType<Record<string, any>>;
196
- required: true;
197
- default: () => {};
198
- };
199
- extendState: {
200
- type: import("vue").PropType<(state: FormState) => Record<string, any> | Promise<Record<string, any>>>;
201
- };
202
- lastValues: {
203
- type: import("vue").PropType<Record<string, any>>;
204
- default: () => {};
205
- };
206
- isCompare: {
207
- type: import("vue").PropType<boolean>;
208
- default: boolean;
209
- };
210
- parentValues: {
211
- type: import("vue").PropType<Record<string, any>>;
212
- default: () => {};
213
- };
214
- stepActive: {
215
- type: import("vue").PropType<string | number>;
216
- default: number;
217
- };
218
- inline: {
219
- type: import("vue").PropType<boolean>;
220
- default: boolean;
221
- };
222
- labelPosition: {
223
- type: import("vue").PropType<string>;
224
- default: string;
225
- };
226
- keyProp: {
227
- type: import("vue").PropType<string>;
228
- default: string;
229
- };
230
- }>> & {
231
- onChange?: ((...args: any[]) => any) | undefined;
232
- onError?: ((...args: any[]) => any) | undefined;
233
- "onField-input"?: ((...args: any[]) => any) | undefined;
234
- "onField-change"?: ((...args: any[]) => any) | undefined;
235
- }, {
236
- values: import("vue").Ref<FormValue>;
237
- lastValuesProcessed: import("vue").Ref<FormValue>;
238
- formState: FormState;
239
- initialized: import("vue").Ref<boolean>;
240
- changeHandler: () => void;
241
- resetForm: () => any;
242
- submitForm: (native?: boolean | undefined) => Promise<any>;
243
- }, {}, {}, {}, {
244
- config: import("@tmagic/form").FormConfig;
245
- initValues: Record<string, any>;
246
- lastValues: Record<string, any>;
247
- isCompare: boolean;
248
- keyProp: string;
249
- parentValues: Record<string, any>;
250
- labelWidth: string;
251
- disabled: boolean;
252
- stepActive: string | number;
253
- height: string;
254
- inline: boolean;
255
- labelPosition: string;
256
- }> | undefined>;
257
- submit: () => Promise<void>;
258
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
259
- mounted: (...args: any[]) => void;
260
- "submit-error": (...args: any[]) => void;
261
- "form-error": (...args: any[]) => void;
262
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
263
- disabledShowSrc?: boolean | undefined;
264
- extendState?: ((state: FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
265
- }>>> & {
266
- onMounted?: ((...args: any[]) => any) | undefined;
267
- "onSubmit-error"?: ((...args: any[]) => any) | undefined;
268
- "onForm-error"?: ((...args: any[]) => any) | undefined;
269
- }, {}, {}>, Readonly<PropsPanelSlots> & PropsPanelSlots>;
270
- export default _default;
271
- type __VLS_WithTemplateSlots<T, S> = T & {
272
- new (): {
273
- $slots: S;
274
- };
275
- };
276
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
277
- type __VLS_TypePropsToOption<T> = {
278
- [K in keyof T]-?: {} extends Pick<T, K> ? {
279
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
280
- } : {
281
- type: import('vue').PropType<T[K]>;
282
- required: true;
283
- };
284
- };
@@ -1,16 +0,0 @@
1
- import { NodeType } from '@tmagic/schema';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
- type: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
- type: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
6
- }>>>, {}, {}>;
7
- export default _default;
8
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
- type __VLS_TypePropsToOption<T> = {
10
- [K in keyof T]-?: {} extends Pick<T, K> ? {
11
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
- } : {
13
- type: import('vue').PropType<T[K]>;
14
- required: true;
15
- };
16
- };
@@ -1,34 +0,0 @@
1
- import { type MPage, type MPageFragment } from '@tmagic/schema';
2
- import type { PageBarSortOptions } from '../../type';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
- disabledPageFragment: boolean;
5
- pageBarSortOptions?: PageBarSortOptions | undefined;
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
- disabledPageFragment: boolean;
8
- pageBarSortOptions?: PageBarSortOptions | undefined;
9
- }>>>, {}, {}>, {
10
- "page-list-popover"?(_: {
11
- list: MPage[] | MPageFragment[];
12
- }): any;
13
- "page-bar-title"?(_: {
14
- page: MPage | MPageFragment;
15
- }): any;
16
- "page-bar-popover"?(_: {
17
- page: MPage | MPageFragment;
18
- }): any;
19
- }>;
20
- export default _default;
21
- type __VLS_WithTemplateSlots<T, S> = T & {
22
- new (): {
23
- $slots: S;
24
- };
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,27 +0,0 @@
1
- import { NodeType } from '@tmagic/schema';
2
- import type { PageBarSortOptions } from '../../type';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
- type: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
5
- pageBarSortOptions?: PageBarSortOptions | undefined;
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
- type: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
8
- pageBarSortOptions?: PageBarSortOptions | undefined;
9
- }>>>, {}, {}>, {
10
- prepend?(_: {}): any;
11
- default?(_: {}): any;
12
- }>;
13
- export default _default;
14
- type __VLS_WithTemplateSlots<T, S> = T & {
15
- new (): {
16
- $slots: S;
17
- };
18
- };
19
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
- type __VLS_TypePropsToOption<T> = {
21
- [K in keyof T]-?: {} extends Pick<T, K> ? {
22
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
- } : {
24
- type: import('vue').PropType<T[K]>;
25
- required: true;
26
- };
27
- };
@@ -1,25 +0,0 @@
1
- import { MPage, MPageFragment } from '@tmagic/schema';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
- list: MPage[] | MPageFragment[];
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
- list: MPage[] | MPageFragment[];
6
- }>>>, {}, {}>, {
7
- "page-list-popover"?(_: {
8
- list: MPage[] | MPageFragment[];
9
- }): any;
10
- }>;
11
- export default _default;
12
- type __VLS_WithTemplateSlots<T, S> = T & {
13
- new (): {
14
- $slots: S;
15
- };
16
- };
17
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
- type __VLS_TypePropsToOption<T> = {
19
- [K in keyof T]-?: {} extends Pick<T, K> ? {
20
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
- } : {
22
- type: import('vue').PropType<T[K]>;
23
- required: true;
24
- };
25
- };
@@ -1,20 +0,0 @@
1
- import { NodeType } from '@tmagic/schema';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
- modelValue: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- "update:modelValue": (value: NodeType.PAGE | NodeType.PAGE_FRAGMENT) => void;
6
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
- modelValue: NodeType.PAGE | NodeType.PAGE_FRAGMENT;
8
- }>>> & {
9
- "onUpdate:modelValue"?: ((value: NodeType.PAGE | NodeType.PAGE_FRAGMENT) => any) | undefined;
10
- }, {}, {}>;
11
- export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToOption<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,8 +0,0 @@
1
- import { ComponentListPanelSlots } from '../../type';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Readonly<ComponentListPanelSlots> & ComponentListPanelSlots>;
3
- export default _default;
4
- type __VLS_WithTemplateSlots<T, S> = T & {
5
- new (): {
6
- $slots: S;
7
- };
8
- };
@@ -1,49 +0,0 @@
1
- import { type MenuButton, type MenuComponent, type SideBarData, SideItemKey } from '../../type';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
- data: SideBarData;
4
- layerContentMenu: (MenuComponent | MenuButton)[];
5
- customContentMenu?: ((menus: (MenuComponent | MenuButton)[], type: string) => (MenuComponent | MenuButton)[]) | undefined;
6
- }>, {
7
- data: () => {
8
- type: string;
9
- status: string;
10
- items: SideItemKey[];
11
- };
12
- }>, {
13
- activeTabName: import("vue").Ref<string>;
14
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
15
- data: SideBarData;
16
- layerContentMenu: (MenuComponent | MenuButton)[];
17
- customContentMenu?: ((menus: (MenuComponent | MenuButton)[], type: string) => (MenuComponent | MenuButton)[]) | undefined;
18
- }>, {
19
- data: () => {
20
- type: string;
21
- status: string;
22
- items: SideItemKey[];
23
- };
24
- }>>>, {
25
- data: SideBarData;
26
- }, {}>, Readonly<import("../../type").LayerPanelSlots & import("../../type").CodeBlockListPanelSlots & import("../../type").ComponentListPanelSlots & import("../../type").DataSourceListSlots> & import("../../type").LayerPanelSlots & import("../../type").CodeBlockListPanelSlots & import("../../type").ComponentListPanelSlots & import("../../type").DataSourceListSlots>;
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_WithTemplateSlots<T, S> = T & {
37
- new (): {
38
- $slots: S;
39
- };
40
- };
41
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
- type __VLS_TypePropsToOption<T> = {
43
- [K in keyof T]-?: {} extends Pick<T, K> ? {
44
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
- } : {
46
- type: import('vue').PropType<T[K]>;
47
- required: true;
48
- };
49
- };
@@ -1,30 +0,0 @@
1
- import type { Id } from '@tmagic/schema';
2
- import { type CodeBlockListSlots, CodeDeleteErrorType } from '../../../type';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
- customError?: ((id: Id, errorType: CodeDeleteErrorType) => any) | undefined;
5
- }>, {
6
- filter: (text: string | string[]) => void;
7
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- remove: (id: string) => void;
9
- edit: (id: string) => void;
10
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
11
- customError?: ((id: Id, errorType: CodeDeleteErrorType) => any) | undefined;
12
- }>>> & {
13
- onRemove?: ((id: string) => any) | undefined;
14
- onEdit?: ((id: string) => any) | undefined;
15
- }, {}, {}>, Readonly<CodeBlockListSlots> & CodeBlockListSlots>;
16
- export default _default;
17
- type __VLS_WithTemplateSlots<T, S> = T & {
18
- new (): {
19
- $slots: S;
20
- };
21
- };
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToOption<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
28
- required: true;
29
- };
30
- };
@@ -1,22 +0,0 @@
1
- import type { Id } from '@tmagic/schema';
2
- import type { CodeBlockListPanelSlots, CodeDeleteErrorType } from '../../../type';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
- customError?: ((id: Id, errorType: CodeDeleteErrorType) => any) | undefined;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
- customError?: ((id: Id, errorType: CodeDeleteErrorType) => any) | undefined;
7
- }>>>, {}, {}>, Readonly<CodeBlockListPanelSlots> & CodeBlockListPanelSlots>;
8
- export default _default;
9
- type __VLS_WithTemplateSlots<T, S> = T & {
10
- new (): {
11
- $slots: S;
12
- };
13
- };
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToOption<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,31 +0,0 @@
1
- declare let __VLS_typeProps: {
2
- title?: string;
3
- values: any;
4
- disabled: boolean;
5
- };
6
- type __VLS_PublicProps = {
7
- 'visible'?: boolean;
8
- 'width'?: number;
9
- } & typeof __VLS_typeProps;
10
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {
11
- show(): void;
12
- hide(): void;
13
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- "update:width": (width: number) => void;
15
- "update:visible": (visible: boolean) => void;
16
- submit: (...args: any[]) => void;
17
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
18
- onSubmit?: ((...args: any[]) => any) | undefined;
19
- "onUpdate:width"?: ((width: number) => any) | undefined;
20
- "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
21
- }, {}, {}>;
22
- export default _default;
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,16 +0,0 @@
1
- import type { DataSourceListSlots } from '../../../type';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {
3
- filter: (text: string | string[]) => void;
4
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- remove: (id: string) => void;
6
- edit: (id: string) => void;
7
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
8
- onRemove?: ((id: string) => any) | undefined;
9
- onEdit?: ((id: string) => any) | undefined;
10
- }, {}, {}>, Readonly<DataSourceListSlots> & DataSourceListSlots>;
11
- export default _default;
12
- type __VLS_WithTemplateSlots<T, S> = T & {
13
- new (): {
14
- $slots: S;
15
- };
16
- };
@@ -1,8 +0,0 @@
1
- import type { DataSourceListSlots } from '../../../type';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Readonly<DataSourceListSlots> & DataSourceListSlots>;
3
- export default _default;
4
- type __VLS_WithTemplateSlots<T, S> = T & {
5
- new (): {
6
- $slots: S;
7
- };
8
- };
@@ -1,41 +0,0 @@
1
- import type { MenuButton, MenuComponent } from '../../../type';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
- layerContentMenu: (MenuComponent | MenuButton)[];
4
- customContentMenu?: ((menus: (MenuComponent | MenuButton)[], type: string) => (MenuComponent | MenuButton)[]) | undefined;
5
- }>, {
6
- layerContentMenu: () => never[];
7
- customContentMenu: (menus: (MenuComponent | MenuButton)[]) => (MenuComponent | MenuButton)[];
8
- }>, {
9
- show: (e: MouseEvent) => void;
10
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- "collapse-all": () => void;
12
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
13
- layerContentMenu: (MenuComponent | MenuButton)[];
14
- customContentMenu?: ((menus: (MenuComponent | MenuButton)[], type: string) => (MenuComponent | MenuButton)[]) | undefined;
15
- }>, {
16
- layerContentMenu: () => never[];
17
- customContentMenu: (menus: (MenuComponent | MenuButton)[]) => (MenuComponent | MenuButton)[];
18
- }>>> & {
19
- "onCollapse-all"?: (() => any) | undefined;
20
- }, {
21
- layerContentMenu: (MenuComponent | MenuButton)[];
22
- customContentMenu: (menus: (MenuComponent | MenuButton)[], type: string) => (MenuComponent | MenuButton)[];
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,16 +0,0 @@
1
- import type { MNode } from '@tmagic/schema';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
- data: MNode;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
- data: MNode;
6
- }>>>, {}, {}>;
7
- export default _default;
8
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
- type __VLS_TypePropsToOption<T> = {
10
- [K in keyof T]-?: {} extends Pick<T, K> ? {
11
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
- } : {
13
- type: import('vue').PropType<T[K]>;
14
- required: true;
15
- };
16
- };
@@ -1,23 +0,0 @@
1
- import type { LayerPanelSlots, MenuButton, MenuComponent } from '../../../type';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
- layerContentMenu: (MenuComponent | MenuButton)[];
4
- customContentMenu?: ((menus: (MenuComponent | MenuButton)[], type: string) => (MenuComponent | MenuButton)[]) | undefined;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
- layerContentMenu: (MenuComponent | MenuButton)[];
7
- customContentMenu?: ((menus: (MenuComponent | MenuButton)[], type: string) => (MenuComponent | MenuButton)[]) | undefined;
8
- }>>>, {}, {}>, Readonly<LayerPanelSlots> & LayerPanelSlots>;
9
- export default _default;
10
- type __VLS_WithTemplateSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
15
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
- type __VLS_TypePropsToOption<T> = {
17
- [K in keyof T]-?: {} extends Pick<T, K> ? {
18
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
- } : {
20
- type: import('vue').PropType<T[K]>;
21
- required: true;
22
- };
23
- };