@tmagic/editor 1.4.14 → 1.4.16

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 (73) hide show
  1. package/dist/tmagic-editor.js +246 -127
  2. package/dist/tmagic-editor.umd.cjs +244 -125
  3. package/package.json +12 -12
  4. package/src/Editor.vue +4 -0
  5. package/src/components/ContentMenu.vue +8 -1
  6. package/src/components/TreeNode.vue +7 -0
  7. package/src/fields/CodeSelect.vue +3 -3
  8. package/src/fields/DataSourceFieldSelect/FieldSelect.vue +12 -8
  9. package/src/fields/DataSourceFieldSelect/Index.vue +10 -9
  10. package/src/fields/DataSourceMethodSelect.vue +8 -8
  11. package/src/fields/DataSourceSelect.vue +6 -8
  12. package/src/hooks/use-float-box.ts +52 -12
  13. package/src/layouts/sidebar/ComponentListPanel.vue +30 -27
  14. package/src/layouts/sidebar/Sidebar.vue +24 -3
  15. package/src/layouts/sidebar/layer/LayerPanel.vue +1 -1
  16. package/src/layouts/sidebar/layer/use-click.ts +9 -0
  17. package/src/layouts/sidebar/layer/use-drag.ts +28 -4
  18. package/src/services/editor.ts +13 -2
  19. package/src/type.ts +5 -0
  20. package/types/Editor.vue.d.ts +2313 -0
  21. package/types/components/CodeParams.vue.d.ts +4 -4
  22. package/types/components/ContentMenu.vue.d.ts +23 -15
  23. package/types/components/FloatingBox.vue.d.ts +9 -7
  24. package/types/components/Resizer.vue.d.ts +6 -4
  25. package/types/components/ScrollBar.vue.d.ts +2 -2
  26. package/types/components/ScrollViewer.vue.d.ts +22 -20
  27. package/types/components/SplitView.vue.d.ts +26 -24
  28. package/types/components/ToolButton.vue.d.ts +5 -5
  29. package/types/components/Tree.vue.d.ts +28 -26
  30. package/types/components/TreeNode.vue.d.ts +33 -24
  31. package/types/fields/Code.vue.d.ts +8 -8
  32. package/types/fields/CodeLink.vue.d.ts +4 -4
  33. package/types/fields/CodeSelect.vue.d.ts +2 -2
  34. package/types/fields/DisplayConds.vue.d.ts +4 -4
  35. package/types/fields/KeyValue.vue.d.ts +2 -2
  36. package/types/hooks/use-code-block-edit.d.ts +91 -2
  37. package/types/hooks/use-data-source-edit.d.ts +85 -2
  38. package/types/hooks/use-data-source-method.d.ts +90 -1
  39. package/types/hooks/use-editor-content-height.d.ts +1 -1
  40. package/types/hooks/use-filter.d.ts +1 -1
  41. package/types/hooks/use-float-box.d.ts +3 -1
  42. package/types/hooks/use-getso.d.ts +2 -2
  43. package/types/hooks/use-next-float-box-position.d.ts +6 -0
  44. package/types/hooks/use-node-status.d.ts +6 -1
  45. package/types/initService.d.ts +1 -1
  46. package/types/layouts/CodeEditor.vue.d.ts +14 -14
  47. package/types/layouts/Framework.vue.d.ts +6 -4
  48. package/types/layouts/NavMenu.vue.d.ts +4 -4
  49. package/types/layouts/PropsPanel.vue.d.ts +265 -14
  50. package/types/layouts/page-bar/PageBar.vue.d.ts +10 -8
  51. package/types/layouts/page-bar/PageBarScrollContainer.vue.d.ts +9 -7
  52. package/types/layouts/page-bar/PageList.vue.d.ts +8 -6
  53. package/types/layouts/sidebar/ComponentListPanel.vue.d.ts +3 -1
  54. package/types/layouts/sidebar/Sidebar.vue.d.ts +9 -7
  55. package/types/layouts/sidebar/code-block/CodeBlockList.vue.d.ts +6 -4
  56. package/types/layouts/sidebar/code-block/CodeBlockListPanel.vue.d.ts +6 -4
  57. package/types/layouts/sidebar/data-source/DataSourceList.vue.d.ts +4 -2
  58. package/types/layouts/sidebar/data-source/DataSourceListPanel.vue.d.ts +3 -1
  59. package/types/layouts/sidebar/layer/LayerMenu.vue.d.ts +8 -8
  60. package/types/layouts/sidebar/layer/LayerPanel.vue.d.ts +9 -7
  61. package/types/layouts/sidebar/layer/use-click.d.ts +65 -10
  62. package/types/layouts/sidebar/layer/use-keybinding.d.ts +1 -1
  63. package/types/layouts/sidebar/layer/use-node-status.d.ts +6 -1
  64. package/types/layouts/workspace/Workspace.vue.d.ts +10 -8
  65. package/types/layouts/workspace/viewer/Stage.vue.d.ts +6 -6
  66. package/types/layouts/workspace/viewer/ViewerMenu.vue.d.ts +10 -10
  67. package/types/services/BaseService.d.ts +0 -1
  68. package/types/services/dataSource.d.ts +4 -4
  69. package/types/services/ui.d.ts +7 -5
  70. package/types/type.d.ts +7 -1
  71. package/types/utils/data-source/index.d.ts +1 -1
  72. package/types/utils/idle-task.d.ts +0 -1
  73. package/types/utils/scroll-viewer.d.ts +0 -1
@@ -1,8 +1,8 @@
1
1
  import type { CodeBlockContent } from '@tmagic/schema';
2
2
  import type { CodeBlockService } from '../services/codeBlock';
3
3
  export declare const useCodeBlockEdit: (codeBlockService?: CodeBlockService) => {
4
- codeId: import("vue").Ref<string | undefined>;
5
- codeConfig: import("vue").Ref<CodeBlockContent | undefined>;
4
+ codeId: import("vue").Ref<string | undefined, string | undefined>;
5
+ codeConfig: import("vue").Ref<CodeBlockContent | undefined, CodeBlockContent | undefined>;
6
6
  codeBlockEditor: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
7
7
  width: {
8
8
  type: import("vue").PropType<number>;
@@ -92,6 +92,95 @@ export declare const useCodeBlockEdit: (codeBlockService?: CodeBlockService) =>
92
92
  }, {
93
93
  show(): Promise<void>;
94
94
  hide(): Promise<void>;
95
+ }, {}, {}, {}, {}> | undefined, import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
96
+ width: {
97
+ type: import("vue").PropType<number>;
98
+ };
99
+ visible: {
100
+ type: import("vue").PropType<boolean>;
101
+ };
102
+ content: {
103
+ type: import("vue").PropType<CodeBlockContent>;
104
+ required: true;
105
+ };
106
+ disabled: {
107
+ type: import("vue").PropType<boolean>;
108
+ };
109
+ isDataSource: {
110
+ type: import("vue").PropType<boolean>;
111
+ };
112
+ dataSourceType: {
113
+ type: import("vue").PropType<string>;
114
+ };
115
+ }>> & {
116
+ onSubmit?: ((values: CodeBlockContent) => any) | undefined;
117
+ "onUpdate:width"?: ((width: number) => any) | undefined;
118
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
119
+ }, {
120
+ show(): Promise<void>;
121
+ hide(): Promise<void>;
122
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
123
+ "update:width": (width: number) => void;
124
+ "update:visible": (visible: boolean) => void;
125
+ submit: (values: CodeBlockContent) => void;
126
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
127
+ width: {
128
+ type: import("vue").PropType<number>;
129
+ };
130
+ visible: {
131
+ type: import("vue").PropType<boolean>;
132
+ };
133
+ content: {
134
+ type: import("vue").PropType<CodeBlockContent>;
135
+ required: true;
136
+ };
137
+ disabled: {
138
+ type: import("vue").PropType<boolean>;
139
+ };
140
+ isDataSource: {
141
+ type: import("vue").PropType<boolean>;
142
+ };
143
+ dataSourceType: {
144
+ type: import("vue").PropType<string>;
145
+ };
146
+ }>> & {
147
+ onSubmit?: ((values: CodeBlockContent) => any) | undefined;
148
+ "onUpdate:width"?: ((width: number) => any) | undefined;
149
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
150
+ }, {}, true, {}, {}, {
151
+ P: {};
152
+ B: {};
153
+ D: {};
154
+ C: {};
155
+ M: {};
156
+ Defaults: {};
157
+ }, Readonly<import("vue").ExtractPropTypes<{
158
+ width: {
159
+ type: import("vue").PropType<number>;
160
+ };
161
+ visible: {
162
+ type: import("vue").PropType<boolean>;
163
+ };
164
+ content: {
165
+ type: import("vue").PropType<CodeBlockContent>;
166
+ required: true;
167
+ };
168
+ disabled: {
169
+ type: import("vue").PropType<boolean>;
170
+ };
171
+ isDataSource: {
172
+ type: import("vue").PropType<boolean>;
173
+ };
174
+ dataSourceType: {
175
+ type: import("vue").PropType<string>;
176
+ };
177
+ }>> & {
178
+ onSubmit?: ((values: CodeBlockContent) => any) | undefined;
179
+ "onUpdate:width"?: ((width: number) => any) | undefined;
180
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
181
+ }, {
182
+ show(): Promise<void>;
183
+ hide(): Promise<void>;
95
184
  }, {}, {}, {}, {}> | undefined>;
96
185
  createCodeBlock: () => Promise<void>;
97
186
  editCode: (id: string) => Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import type { DataSourceSchema } from '@tmagic/schema';
2
2
  import type { DataSourceService } from '../services/dataSource';
3
3
  export declare const useDataSourceEdit: (dataSourceService?: DataSourceService) => {
4
- dialogTitle: import("vue").Ref<string>;
4
+ dialogTitle: import("vue").Ref<string, string>;
5
5
  editDialog: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
6
6
  visible: {
7
7
  type: import("vue").PropType<boolean>;
@@ -85,8 +85,91 @@ export declare const useDataSourceEdit: (dataSourceService?: DataSourceService)
85
85
  }, {
86
86
  show(): void;
87
87
  hide(): void;
88
+ }, {}, {}, {}, {}> | undefined, import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
89
+ visible: {
90
+ type: import("vue").PropType<boolean>;
91
+ };
92
+ width: {
93
+ type: import("vue").PropType<number>;
94
+ };
95
+ title: {
96
+ type: import("vue").PropType<string>;
97
+ };
98
+ values: {
99
+ type: import("vue").PropType<any>;
100
+ required: true;
101
+ };
102
+ disabled: {
103
+ type: import("vue").PropType<boolean>;
104
+ required: true;
105
+ };
106
+ }>> & {
107
+ onSubmit?: ((...args: any[]) => any) | undefined;
108
+ "onUpdate:width"?: ((width: number) => any) | undefined;
109
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
110
+ }, {
111
+ show(): void;
112
+ hide(): void;
113
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
114
+ "update:width": (width: number) => void;
115
+ "update:visible": (visible: boolean) => void;
116
+ submit: (...args: any[]) => void;
117
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
118
+ visible: {
119
+ type: import("vue").PropType<boolean>;
120
+ };
121
+ width: {
122
+ type: import("vue").PropType<number>;
123
+ };
124
+ title: {
125
+ type: import("vue").PropType<string>;
126
+ };
127
+ values: {
128
+ type: import("vue").PropType<any>;
129
+ required: true;
130
+ };
131
+ disabled: {
132
+ type: import("vue").PropType<boolean>;
133
+ required: true;
134
+ };
135
+ }>> & {
136
+ onSubmit?: ((...args: any[]) => any) | undefined;
137
+ "onUpdate:width"?: ((width: number) => any) | undefined;
138
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
139
+ }, {}, true, {}, {}, {
140
+ P: {};
141
+ B: {};
142
+ D: {};
143
+ C: {};
144
+ M: {};
145
+ Defaults: {};
146
+ }, Readonly<import("vue").ExtractPropTypes<{
147
+ visible: {
148
+ type: import("vue").PropType<boolean>;
149
+ };
150
+ width: {
151
+ type: import("vue").PropType<number>;
152
+ };
153
+ title: {
154
+ type: import("vue").PropType<string>;
155
+ };
156
+ values: {
157
+ type: import("vue").PropType<any>;
158
+ required: true;
159
+ };
160
+ disabled: {
161
+ type: import("vue").PropType<boolean>;
162
+ required: true;
163
+ };
164
+ }>> & {
165
+ onSubmit?: ((...args: any[]) => any) | undefined;
166
+ "onUpdate:width"?: ((width: number) => any) | undefined;
167
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
168
+ }, {
169
+ show(): void;
170
+ hide(): void;
88
171
  }, {}, {}, {}, {}> | undefined>;
89
- dataSourceValues: import("vue").Ref<Record<string, any>>;
172
+ dataSourceValues: import("vue").Ref<Record<string, any>, Record<string, any>>;
90
173
  editable: import("vue").ComputedRef<boolean>;
91
174
  editHandler: (id: string) => void;
92
175
  submitDataSourceHandler: (value: DataSourceSchema) => void;
@@ -1,6 +1,6 @@
1
1
  import type { CodeBlockContent, DataSourceSchema } from '@tmagic/schema';
2
2
  export declare const useDataSourceMethod: () => {
3
- codeConfig: import("vue").Ref<CodeBlockContent | undefined>;
3
+ codeConfig: import("vue").Ref<CodeBlockContent | undefined, CodeBlockContent | undefined>;
4
4
  codeBlockEditor: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
5
5
  width: {
6
6
  type: import("vue").PropType<number>;
@@ -90,6 +90,95 @@ export declare const useDataSourceMethod: () => {
90
90
  }, {
91
91
  show(): Promise<void>;
92
92
  hide(): Promise<void>;
93
+ }, {}, {}, {}, {}> | undefined, import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
94
+ width: {
95
+ type: import("vue").PropType<number>;
96
+ };
97
+ visible: {
98
+ type: import("vue").PropType<boolean>;
99
+ };
100
+ content: {
101
+ type: import("vue").PropType<CodeBlockContent>;
102
+ required: true;
103
+ };
104
+ disabled: {
105
+ type: import("vue").PropType<boolean>;
106
+ };
107
+ isDataSource: {
108
+ type: import("vue").PropType<boolean>;
109
+ };
110
+ dataSourceType: {
111
+ type: import("vue").PropType<string>;
112
+ };
113
+ }>> & {
114
+ onSubmit?: ((values: CodeBlockContent) => any) | undefined;
115
+ "onUpdate:width"?: ((width: number) => any) | undefined;
116
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
117
+ }, {
118
+ show(): Promise<void>;
119
+ hide(): Promise<void>;
120
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
121
+ "update:width": (width: number) => void;
122
+ "update:visible": (visible: boolean) => void;
123
+ submit: (values: CodeBlockContent) => void;
124
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
125
+ width: {
126
+ type: import("vue").PropType<number>;
127
+ };
128
+ visible: {
129
+ type: import("vue").PropType<boolean>;
130
+ };
131
+ content: {
132
+ type: import("vue").PropType<CodeBlockContent>;
133
+ required: true;
134
+ };
135
+ disabled: {
136
+ type: import("vue").PropType<boolean>;
137
+ };
138
+ isDataSource: {
139
+ type: import("vue").PropType<boolean>;
140
+ };
141
+ dataSourceType: {
142
+ type: import("vue").PropType<string>;
143
+ };
144
+ }>> & {
145
+ onSubmit?: ((values: CodeBlockContent) => any) | undefined;
146
+ "onUpdate:width"?: ((width: number) => any) | undefined;
147
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
148
+ }, {}, true, {}, {}, {
149
+ P: {};
150
+ B: {};
151
+ D: {};
152
+ C: {};
153
+ M: {};
154
+ Defaults: {};
155
+ }, Readonly<import("vue").ExtractPropTypes<{
156
+ width: {
157
+ type: import("vue").PropType<number>;
158
+ };
159
+ visible: {
160
+ type: import("vue").PropType<boolean>;
161
+ };
162
+ content: {
163
+ type: import("vue").PropType<CodeBlockContent>;
164
+ required: true;
165
+ };
166
+ disabled: {
167
+ type: import("vue").PropType<boolean>;
168
+ };
169
+ isDataSource: {
170
+ type: import("vue").PropType<boolean>;
171
+ };
172
+ dataSourceType: {
173
+ type: import("vue").PropType<string>;
174
+ };
175
+ }>> & {
176
+ onSubmit?: ((values: CodeBlockContent) => any) | undefined;
177
+ "onUpdate:width"?: ((width: number) => any) | undefined;
178
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
179
+ }, {
180
+ show(): Promise<void>;
181
+ hide(): Promise<void>;
93
182
  }, {}, {}, {}, {}> | undefined>;
94
183
  createCode: (model: DataSourceSchema) => Promise<void>;
95
184
  editCode: (model: DataSourceSchema, methodName: string) => Promise<void>;
@@ -1,3 +1,3 @@
1
1
  export declare const useEditorContentHeight: () => {
2
- height: import("vue").Ref<number>;
2
+ height: import("vue").Ref<number, number>;
3
3
  };
@@ -2,6 +2,6 @@ import { type Ref } from 'vue';
2
2
  import type { Id, MNode } from '@tmagic/schema';
3
3
  import type { LayerNodeStatus, TreeNodeData } from '../type';
4
4
  export declare const useFilter: (nodeData: Ref<TreeNodeData[]>, nodeStatusMap: Ref<Map<Id, LayerNodeStatus> | undefined>, filterNodeMethod: (value: string, data: MNode) => boolean) => {
5
- filterText: Ref<string>;
5
+ filterText: Ref<string, string>;
6
6
  filterTextChangeHandler(text: string | string[]): void;
7
7
  };
@@ -5,10 +5,12 @@ interface State {
5
5
  left: number;
6
6
  }
7
7
  export declare const useFloatBox: (slideKeys: ComputedRef<string[]>) => {
8
- dragstartHandler: () => boolean;
8
+ dragstartHandler: (e: DragEvent) => void;
9
9
  dragendHandler: (key: string, e: DragEvent) => void;
10
10
  floatBoxStates: import("vue").Ref<{
11
11
  [x: string]: State;
12
+ }, {
13
+ [x: string]: State;
12
14
  }>;
13
15
  showingBoxKeys: ComputedRef<string[]>;
14
16
  };
@@ -1,5 +1,5 @@
1
1
  import { type Ref } from 'vue';
2
2
  import Gesto, { type OnDrag } from 'gesto';
3
- export declare const useGetSo: (target: Ref<HTMLElement | undefined>, emit: (evt: 'change', e: OnDrag<Gesto>) => void) => {
4
- isDraging: Ref<boolean>;
3
+ export declare const useGetSo: (target: Ref<HTMLElement | undefined>, emit: (evt: "change", e: OnDrag<Gesto>) => void) => {
4
+ isDraging: Ref<boolean, boolean>;
5
5
  };
@@ -4,6 +4,12 @@ export declare const useNextFloatBoxPosition: (uiService?: UiService, parent?: R
4
4
  boxPosition: Ref<{
5
5
  left: number;
6
6
  top: number;
7
+ }, {
8
+ left: number;
9
+ top: number;
10
+ } | {
11
+ left: number;
12
+ top: number;
7
13
  }>;
8
14
  calcBoxPosition: () => void;
9
15
  };
@@ -7,5 +7,10 @@ export declare const useNodeStatus: (nodeData: ComputedRef<TreeNodeData[]>) => {
7
7
  expand: boolean;
8
8
  selected: boolean;
9
9
  draggable: boolean;
10
- }> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>>;
10
+ }> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>, Map<Id, LayerNodeStatus> | (Map<Id, {
11
+ visible: boolean;
12
+ expand: boolean;
13
+ selected: boolean;
14
+ draggable: boolean;
15
+ }> & Omit<Map<Id, LayerNodeStatus>, keyof Map<any, any>>)>;
11
16
  };
@@ -6,4 +6,4 @@ export declare type LooseRequired<T> = {
6
6
  [P in string & keyof T]: T[P];
7
7
  };
8
8
  export declare const initServiceState: (props: EditorProps, { editorService, historyService, componentListService, propsService, eventsService, uiService, codeBlockService, keybindingService, dataSourceService, }: Services) => void;
9
- export declare const initServiceEvents: (props: EditorProps, emit: ((event: 'props-panel-mounted', instance: InstanceType<typeof PropsPanel>) => void) & ((event: 'update:modelValue', value: MApp | null) => void), { editorService, codeBlockService, dataSourceService, depService }: Services) => void;
9
+ export declare const initServiceEvents: (props: EditorProps, emit: ((event: "props-panel-mounted", instance: InstanceType<typeof PropsPanel>) => void) & ((event: "update:modelValue", value: MApp | null) => void), { editorService, codeBlockService, dataSourceService, depService }: Services) => void;
@@ -2,14 +2,14 @@ import monaco from '../utils/monaco-editor';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
3
  initValues?: any;
4
4
  modifiedValues?: any;
5
- type?: "diff" | undefined;
6
- language?: string | undefined;
5
+ type?: "diff";
6
+ language?: string;
7
7
  options?: {
8
8
  [key: string]: any;
9
- } | undefined;
10
- height?: string | undefined;
11
- autoSave?: boolean | undefined;
12
- parse?: boolean | undefined;
9
+ };
10
+ height?: string;
11
+ autoSave?: boolean;
12
+ parse?: boolean;
13
13
  }>, {
14
14
  initValues: string;
15
15
  autoSave: boolean;
@@ -19,11 +19,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
19
19
  };
20
20
  parse: boolean;
21
21
  }>, {
22
- values: import("vue").Ref<string>;
22
+ values: import("vue").Ref<string, string>;
23
23
  getEditor(): monaco.editor.IStandaloneCodeEditor | monaco.editor.IStandaloneDiffEditor | null;
24
24
  getVsEditor(): monaco.editor.IStandaloneCodeEditor | null;
25
25
  getVsDiffEditor(): monaco.editor.IStandaloneDiffEditor | null;
26
- setEditorValue: (v: any, m: any) => void | undefined;
26
+ setEditorValue: (v: string | any, m: string | any) => void | undefined;
27
27
  getEditorValue: () => string;
28
28
  focus(): void;
29
29
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -32,14 +32,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
32
32
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
33
33
  initValues?: any;
34
34
  modifiedValues?: any;
35
- type?: "diff" | undefined;
36
- language?: string | undefined;
35
+ type?: "diff";
36
+ language?: string;
37
37
  options?: {
38
38
  [key: string]: any;
39
- } | undefined;
40
- height?: string | undefined;
41
- autoSave?: boolean | undefined;
42
- parse?: boolean | undefined;
39
+ };
40
+ height?: string;
41
+ autoSave?: boolean;
42
+ parse?: boolean;
43
43
  }>, {
44
44
  initValues: string;
45
45
  autoSave: boolean;
@@ -1,11 +1,13 @@
1
1
  import type { FrameworkSlots, PageBarSortOptions } from '../type';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ declare function __VLS_template(): Readonly<FrameworkSlots> & FrameworkSlots;
3
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
4
  disabledPageFragment: boolean;
4
- pageBarSortOptions?: PageBarSortOptions | undefined;
5
+ pageBarSortOptions?: PageBarSortOptions;
5
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
7
  disabledPageFragment: boolean;
7
- pageBarSortOptions?: PageBarSortOptions | undefined;
8
- }>>>, {}, {}>, Readonly<FrameworkSlots> & FrameworkSlots>;
8
+ pageBarSortOptions?: PageBarSortOptions;
9
+ }>>>, {}, {}>;
10
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
9
11
  export default _default;
10
12
  type __VLS_WithTemplateSlots<T, S> = T & {
11
13
  new (): {
@@ -1,13 +1,13 @@
1
1
  import { MenuBarData } from '../type';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
- data?: MenuBarData | undefined;
4
- height?: number | undefined;
3
+ data?: MenuBarData;
4
+ height?: number;
5
5
  }>, {
6
6
  data: () => {};
7
7
  height: number;
8
8
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
9
- data?: MenuBarData | undefined;
10
- height?: number | undefined;
9
+ data?: MenuBarData;
10
+ height?: number;
11
11
  }>, {
12
12
  data: () => {};
13
13
  height: number;