@qodalis/vue-cli 2.0.0-beta.8 → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +227 -19
- package/dist/index.d.mts +98 -51
- package/dist/index.d.ts +98 -51
- package/dist/index.js +354 -853
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +392 -866
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +7 -6
- package/dist/styles.css +8 -0
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { PropType, InjectionKey, Ref } from 'vue';
|
|
3
|
-
import { ICliModule,
|
|
4
|
-
import { CliEngineOptions, CliEngine } from '@qodalis/cli';
|
|
2
|
+
import { PropType, VNode, InjectionKey, Ref } from 'vue';
|
|
3
|
+
import { ICliModule, CliEngineSnapshot, CliPanelConfig, CliPanelPosition } from '@qodalis/cli-core';
|
|
4
|
+
import { CliEngineOptions, CliEngine, CreateCliEngineConfig } from '@qodalis/cli';
|
|
5
5
|
export { CliEngine, CliEngineOptions } from '@qodalis/cli';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Props accepted by the Vue `Cli` component.
|
|
9
|
+
*/
|
|
10
|
+
interface CliProps {
|
|
11
|
+
modules?: ICliModule[];
|
|
12
|
+
options?: CliEngineOptions;
|
|
13
|
+
services?: Record<string, any>;
|
|
14
|
+
snapshot?: CliEngineSnapshot;
|
|
15
|
+
style?: Record<string, string>;
|
|
16
|
+
class?: string;
|
|
17
|
+
}
|
|
7
18
|
declare const Cli: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
8
19
|
modules: {
|
|
9
20
|
type: PropType<ICliModule[]>;
|
|
10
21
|
default: undefined;
|
|
11
22
|
};
|
|
12
|
-
processors: {
|
|
13
|
-
type: PropType<ICliCommandProcessor[]>;
|
|
14
|
-
default: undefined;
|
|
15
|
-
};
|
|
16
23
|
options: {
|
|
17
24
|
type: PropType<CliEngineOptions>;
|
|
18
25
|
default: undefined;
|
|
@@ -40,10 +47,6 @@ declare const Cli: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
40
47
|
type: PropType<ICliModule[]>;
|
|
41
48
|
default: undefined;
|
|
42
49
|
};
|
|
43
|
-
processors: {
|
|
44
|
-
type: PropType<ICliCommandProcessor[]>;
|
|
45
|
-
default: undefined;
|
|
46
|
-
};
|
|
47
50
|
options: {
|
|
48
51
|
type: PropType<CliEngineOptions>;
|
|
49
52
|
default: undefined;
|
|
@@ -68,7 +71,6 @@ declare const Cli: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
68
71
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
69
72
|
}>, {
|
|
70
73
|
modules: ICliModule[];
|
|
71
|
-
processors: ICliCommandProcessor[];
|
|
72
74
|
options: CliEngineOptions;
|
|
73
75
|
services: Record<string, any>;
|
|
74
76
|
snapshot: CliEngineSnapshot;
|
|
@@ -76,7 +78,8 @@ declare const Cli: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
76
78
|
class: string;
|
|
77
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
78
80
|
|
|
79
|
-
|
|
81
|
+
interface CliPanelOptions extends CliEngineOptions, CliPanelConfig {
|
|
82
|
+
}
|
|
80
83
|
declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
81
84
|
options: {
|
|
82
85
|
type: PropType<CliPanelOptions>;
|
|
@@ -86,10 +89,6 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
86
89
|
type: PropType<ICliModule[]>;
|
|
87
90
|
default: undefined;
|
|
88
91
|
};
|
|
89
|
-
processors: {
|
|
90
|
-
type: PropType<ICliCommandProcessor[]>;
|
|
91
|
-
default: undefined;
|
|
92
|
-
};
|
|
93
92
|
services: {
|
|
94
93
|
type: PropType<Record<string, any>>;
|
|
95
94
|
default: undefined;
|
|
@@ -98,6 +97,34 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
98
97
|
type: PropType<() => void>;
|
|
99
98
|
default: undefined;
|
|
100
99
|
};
|
|
100
|
+
collapsed: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
hidden: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
108
|
+
maximized: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
activeTabId: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
default: undefined;
|
|
115
|
+
};
|
|
116
|
+
position: {
|
|
117
|
+
type: PropType<CliPanelPosition>;
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
height: {
|
|
121
|
+
type: NumberConstructor;
|
|
122
|
+
default: undefined;
|
|
123
|
+
};
|
|
124
|
+
width: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
101
128
|
style: {
|
|
102
129
|
type: PropType<Record<string, string>>;
|
|
103
130
|
default: undefined;
|
|
@@ -106,9 +133,9 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
106
133
|
type: StringConstructor;
|
|
107
134
|
default: undefined;
|
|
108
135
|
};
|
|
109
|
-
}>, () =>
|
|
136
|
+
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
110
137
|
[key: string]: any;
|
|
111
|
-
}> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin,
|
|
138
|
+
}> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("close" | "update:collapsed" | "update:hidden" | "update:maximized" | "update:activeTabId" | "update:position" | "update:height" | "update:width" | "tab-added" | "tab-closed" | "pane-split" | "pane-closed")[], "close" | "update:collapsed" | "update:hidden" | "update:maximized" | "update:activeTabId" | "update:position" | "update:height" | "update:width" | "tab-added" | "tab-closed" | "pane-split" | "pane-closed", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
112
139
|
options: {
|
|
113
140
|
type: PropType<CliPanelOptions>;
|
|
114
141
|
default: undefined;
|
|
@@ -117,10 +144,6 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
117
144
|
type: PropType<ICliModule[]>;
|
|
118
145
|
default: undefined;
|
|
119
146
|
};
|
|
120
|
-
processors: {
|
|
121
|
-
type: PropType<ICliCommandProcessor[]>;
|
|
122
|
-
default: undefined;
|
|
123
|
-
};
|
|
124
147
|
services: {
|
|
125
148
|
type: PropType<Record<string, any>>;
|
|
126
149
|
default: undefined;
|
|
@@ -129,6 +152,34 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
129
152
|
type: PropType<() => void>;
|
|
130
153
|
default: undefined;
|
|
131
154
|
};
|
|
155
|
+
collapsed: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: undefined;
|
|
158
|
+
};
|
|
159
|
+
hidden: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: undefined;
|
|
162
|
+
};
|
|
163
|
+
maximized: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
default: undefined;
|
|
166
|
+
};
|
|
167
|
+
activeTabId: {
|
|
168
|
+
type: NumberConstructor;
|
|
169
|
+
default: undefined;
|
|
170
|
+
};
|
|
171
|
+
position: {
|
|
172
|
+
type: PropType<CliPanelPosition>;
|
|
173
|
+
default: undefined;
|
|
174
|
+
};
|
|
175
|
+
height: {
|
|
176
|
+
type: NumberConstructor;
|
|
177
|
+
default: undefined;
|
|
178
|
+
};
|
|
179
|
+
width: {
|
|
180
|
+
type: NumberConstructor;
|
|
181
|
+
default: undefined;
|
|
182
|
+
};
|
|
132
183
|
style: {
|
|
133
184
|
type: PropType<Record<string, string>>;
|
|
134
185
|
default: undefined;
|
|
@@ -137,14 +188,33 @@ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
137
188
|
type: StringConstructor;
|
|
138
189
|
default: undefined;
|
|
139
190
|
};
|
|
140
|
-
}>> & Readonly<{
|
|
191
|
+
}>> & Readonly<{
|
|
192
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
193
|
+
"onUpdate:collapsed"?: ((...args: any[]) => any) | undefined;
|
|
194
|
+
"onUpdate:hidden"?: ((...args: any[]) => any) | undefined;
|
|
195
|
+
"onUpdate:maximized"?: ((...args: any[]) => any) | undefined;
|
|
196
|
+
"onUpdate:activeTabId"?: ((...args: any[]) => any) | undefined;
|
|
197
|
+
"onUpdate:position"?: ((...args: any[]) => any) | undefined;
|
|
198
|
+
"onUpdate:height"?: ((...args: any[]) => any) | undefined;
|
|
199
|
+
"onUpdate:width"?: ((...args: any[]) => any) | undefined;
|
|
200
|
+
"onTab-added"?: ((...args: any[]) => any) | undefined;
|
|
201
|
+
"onTab-closed"?: ((...args: any[]) => any) | undefined;
|
|
202
|
+
"onPane-split"?: ((...args: any[]) => any) | undefined;
|
|
203
|
+
"onPane-closed"?: ((...args: any[]) => any) | undefined;
|
|
204
|
+
}>, {
|
|
141
205
|
modules: ICliModule[];
|
|
142
|
-
processors: ICliCommandProcessor[];
|
|
143
206
|
options: CliPanelOptions;
|
|
144
207
|
services: Record<string, any>;
|
|
145
208
|
style: Record<string, string>;
|
|
146
209
|
class: string;
|
|
147
210
|
onClose: () => void;
|
|
211
|
+
collapsed: boolean;
|
|
212
|
+
hidden: boolean;
|
|
213
|
+
maximized: boolean;
|
|
214
|
+
activeTabId: number;
|
|
215
|
+
position: CliPanelPosition;
|
|
216
|
+
height: number;
|
|
217
|
+
width: number;
|
|
148
218
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
149
219
|
|
|
150
220
|
declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
@@ -152,10 +222,6 @@ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
152
222
|
type: PropType<ICliModule[]>;
|
|
153
223
|
default: undefined;
|
|
154
224
|
};
|
|
155
|
-
processors: {
|
|
156
|
-
type: PropType<ICliCommandProcessor[]>;
|
|
157
|
-
default: undefined;
|
|
158
|
-
};
|
|
159
225
|
options: {
|
|
160
226
|
type: PropType<CliEngineOptions>;
|
|
161
227
|
default: undefined;
|
|
@@ -175,10 +241,6 @@ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
175
241
|
type: PropType<ICliModule[]>;
|
|
176
242
|
default: undefined;
|
|
177
243
|
};
|
|
178
|
-
processors: {
|
|
179
|
-
type: PropType<ICliCommandProcessor[]>;
|
|
180
|
-
default: undefined;
|
|
181
|
-
};
|
|
182
244
|
options: {
|
|
183
245
|
type: PropType<CliEngineOptions>;
|
|
184
246
|
default: undefined;
|
|
@@ -195,7 +257,6 @@ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
195
257
|
onReady?: ((...args: any[]) => any) | undefined;
|
|
196
258
|
}>, {
|
|
197
259
|
modules: ICliModule[];
|
|
198
|
-
processors: ICliCommandProcessor[];
|
|
199
260
|
options: CliEngineOptions;
|
|
200
261
|
services: Record<string, any>;
|
|
201
262
|
style: Record<string, string>;
|
|
@@ -203,7 +264,6 @@ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
203
264
|
|
|
204
265
|
interface CliConfigValue {
|
|
205
266
|
modules?: ICliModule[];
|
|
206
|
-
processors?: ICliCommandProcessor[];
|
|
207
267
|
options?: CliEngineOptions;
|
|
208
268
|
services?: Record<string, any>;
|
|
209
269
|
}
|
|
@@ -213,10 +273,6 @@ declare const CliConfigProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
213
273
|
type: PropType<ICliModule[]>;
|
|
214
274
|
default: undefined;
|
|
215
275
|
};
|
|
216
|
-
processors: {
|
|
217
|
-
type: PropType<ICliCommandProcessor[]>;
|
|
218
|
-
default: undefined;
|
|
219
|
-
};
|
|
220
276
|
options: {
|
|
221
277
|
type: PropType<CliEngineOptions>;
|
|
222
278
|
default: undefined;
|
|
@@ -232,10 +288,6 @@ declare const CliConfigProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
232
288
|
type: PropType<ICliModule[]>;
|
|
233
289
|
default: undefined;
|
|
234
290
|
};
|
|
235
|
-
processors: {
|
|
236
|
-
type: PropType<ICliCommandProcessor[]>;
|
|
237
|
-
default: undefined;
|
|
238
|
-
};
|
|
239
291
|
options: {
|
|
240
292
|
type: PropType<CliEngineOptions>;
|
|
241
293
|
default: undefined;
|
|
@@ -246,7 +298,6 @@ declare const CliConfigProvider: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
246
298
|
};
|
|
247
299
|
}>> & Readonly<{}>, {
|
|
248
300
|
modules: ICliModule[];
|
|
249
|
-
processors: ICliCommandProcessor[];
|
|
250
301
|
options: CliEngineOptions;
|
|
251
302
|
services: Record<string, any>;
|
|
252
303
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -258,12 +309,8 @@ declare const CliInjectionKey: InjectionKey<CliContextValue>;
|
|
|
258
309
|
|
|
259
310
|
declare function useCli(): CliContextValue;
|
|
260
311
|
|
|
261
|
-
|
|
262
|
-
modules?: ICliModule[];
|
|
263
|
-
processors?: ICliCommandProcessor[];
|
|
264
|
-
options?: CliEngineOptions;
|
|
265
|
-
services?: Record<string, any>;
|
|
266
|
-
}
|
|
312
|
+
type UseCliEngineConfig = Omit<CreateCliEngineConfig, 'framework'>;
|
|
267
313
|
declare function useCliEngine(containerRef: Ref<HTMLElement | null>, config?: UseCliEngineConfig): Ref<CliEngine | null>;
|
|
268
314
|
|
|
269
|
-
export { Cli, CliConfigKey, CliConfigProvider,
|
|
315
|
+
export { Cli, CliConfigKey, CliConfigProvider, CliInjectionKey, CliPanel, CliProvider, useCli, useCliEngine };
|
|
316
|
+
export type { CliConfigValue, CliContextValue, CliPanelOptions, CliProps, UseCliEngineConfig };
|