@qodalis/vue-cli 2.0.0-beta.2 → 2.0.0-beta.21

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.
@@ -0,0 +1,354 @@
1
+ import * as vue from 'vue';
2
+ import { PropType, VNode, InjectionKey, Ref } from 'vue';
3
+ import { ICliModule, ICliCommandProcessor, CliEngineSnapshot, CliPanelConfig, CliPanelPosition } from '@qodalis/cli-core';
4
+ import { CliEngineOptions, CliEngine, CreateCliEngineConfig } from '@qodalis/cli';
5
+ export { CliEngine, CliEngineOptions } from '@qodalis/cli';
6
+
7
+ /**
8
+ * Props accepted by the Vue `Cli` component.
9
+ */
10
+ interface CliProps {
11
+ modules?: ICliModule[];
12
+ processors?: ICliCommandProcessor[];
13
+ options?: CliEngineOptions;
14
+ services?: Record<string, any>;
15
+ snapshot?: CliEngineSnapshot;
16
+ style?: Record<string, string>;
17
+ class?: string;
18
+ }
19
+ declare const Cli: vue.DefineComponent<vue.ExtractPropTypes<{
20
+ modules: {
21
+ type: PropType<ICliModule[]>;
22
+ default: undefined;
23
+ };
24
+ processors: {
25
+ type: PropType<ICliCommandProcessor[]>;
26
+ default: undefined;
27
+ };
28
+ options: {
29
+ type: PropType<CliEngineOptions>;
30
+ default: undefined;
31
+ };
32
+ services: {
33
+ type: PropType<Record<string, any>>;
34
+ default: undefined;
35
+ };
36
+ snapshot: {
37
+ type: PropType<CliEngineSnapshot>;
38
+ default: undefined;
39
+ };
40
+ style: {
41
+ type: PropType<Record<string, string>>;
42
+ default: undefined;
43
+ };
44
+ class: {
45
+ type: StringConstructor;
46
+ default: undefined;
47
+ };
48
+ }>, (() => null) | (() => vue.VNode<vue.RendererNode, vue.RendererElement, {
49
+ [key: string]: any;
50
+ }>), {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "ready"[], "ready", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
51
+ modules: {
52
+ type: PropType<ICliModule[]>;
53
+ default: undefined;
54
+ };
55
+ processors: {
56
+ type: PropType<ICliCommandProcessor[]>;
57
+ default: undefined;
58
+ };
59
+ options: {
60
+ type: PropType<CliEngineOptions>;
61
+ default: undefined;
62
+ };
63
+ services: {
64
+ type: PropType<Record<string, any>>;
65
+ default: undefined;
66
+ };
67
+ snapshot: {
68
+ type: PropType<CliEngineSnapshot>;
69
+ default: undefined;
70
+ };
71
+ style: {
72
+ type: PropType<Record<string, string>>;
73
+ default: undefined;
74
+ };
75
+ class: {
76
+ type: StringConstructor;
77
+ default: undefined;
78
+ };
79
+ }>> & Readonly<{
80
+ onReady?: ((...args: any[]) => any) | undefined;
81
+ }>, {
82
+ modules: ICliModule[];
83
+ processors: ICliCommandProcessor[];
84
+ options: CliEngineOptions;
85
+ services: Record<string, any>;
86
+ snapshot: CliEngineSnapshot;
87
+ style: Record<string, string>;
88
+ class: string;
89
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
90
+
91
+ interface CliPanelOptions extends CliEngineOptions, CliPanelConfig {
92
+ }
93
+ declare const CliPanel: vue.DefineComponent<vue.ExtractPropTypes<{
94
+ options: {
95
+ type: PropType<CliPanelOptions>;
96
+ default: undefined;
97
+ };
98
+ modules: {
99
+ type: PropType<ICliModule[]>;
100
+ default: undefined;
101
+ };
102
+ processors: {
103
+ type: PropType<ICliCommandProcessor[]>;
104
+ default: undefined;
105
+ };
106
+ services: {
107
+ type: PropType<Record<string, any>>;
108
+ default: undefined;
109
+ };
110
+ onClose: {
111
+ type: PropType<() => void>;
112
+ default: undefined;
113
+ };
114
+ collapsed: {
115
+ type: BooleanConstructor;
116
+ default: undefined;
117
+ };
118
+ hidden: {
119
+ type: BooleanConstructor;
120
+ default: undefined;
121
+ };
122
+ maximized: {
123
+ type: BooleanConstructor;
124
+ default: undefined;
125
+ };
126
+ activeTabId: {
127
+ type: NumberConstructor;
128
+ default: undefined;
129
+ };
130
+ position: {
131
+ type: PropType<CliPanelPosition>;
132
+ default: undefined;
133
+ };
134
+ height: {
135
+ type: NumberConstructor;
136
+ default: undefined;
137
+ };
138
+ width: {
139
+ type: NumberConstructor;
140
+ default: undefined;
141
+ };
142
+ style: {
143
+ type: PropType<Record<string, string>>;
144
+ default: undefined;
145
+ };
146
+ class: {
147
+ type: StringConstructor;
148
+ default: undefined;
149
+ };
150
+ }>, () => VNode<vue.RendererNode, vue.RendererElement, {
151
+ [key: string]: any;
152
+ }> | 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<{
153
+ options: {
154
+ type: PropType<CliPanelOptions>;
155
+ default: undefined;
156
+ };
157
+ modules: {
158
+ type: PropType<ICliModule[]>;
159
+ default: undefined;
160
+ };
161
+ processors: {
162
+ type: PropType<ICliCommandProcessor[]>;
163
+ default: undefined;
164
+ };
165
+ services: {
166
+ type: PropType<Record<string, any>>;
167
+ default: undefined;
168
+ };
169
+ onClose: {
170
+ type: PropType<() => void>;
171
+ default: undefined;
172
+ };
173
+ collapsed: {
174
+ type: BooleanConstructor;
175
+ default: undefined;
176
+ };
177
+ hidden: {
178
+ type: BooleanConstructor;
179
+ default: undefined;
180
+ };
181
+ maximized: {
182
+ type: BooleanConstructor;
183
+ default: undefined;
184
+ };
185
+ activeTabId: {
186
+ type: NumberConstructor;
187
+ default: undefined;
188
+ };
189
+ position: {
190
+ type: PropType<CliPanelPosition>;
191
+ default: undefined;
192
+ };
193
+ height: {
194
+ type: NumberConstructor;
195
+ default: undefined;
196
+ };
197
+ width: {
198
+ type: NumberConstructor;
199
+ default: undefined;
200
+ };
201
+ style: {
202
+ type: PropType<Record<string, string>>;
203
+ default: undefined;
204
+ };
205
+ class: {
206
+ type: StringConstructor;
207
+ default: undefined;
208
+ };
209
+ }>> & Readonly<{
210
+ onClose?: ((...args: any[]) => any) | undefined;
211
+ "onUpdate:collapsed"?: ((...args: any[]) => any) | undefined;
212
+ "onUpdate:hidden"?: ((...args: any[]) => any) | undefined;
213
+ "onUpdate:maximized"?: ((...args: any[]) => any) | undefined;
214
+ "onUpdate:activeTabId"?: ((...args: any[]) => any) | undefined;
215
+ "onUpdate:position"?: ((...args: any[]) => any) | undefined;
216
+ "onUpdate:height"?: ((...args: any[]) => any) | undefined;
217
+ "onUpdate:width"?: ((...args: any[]) => any) | undefined;
218
+ "onTab-added"?: ((...args: any[]) => any) | undefined;
219
+ "onTab-closed"?: ((...args: any[]) => any) | undefined;
220
+ "onPane-split"?: ((...args: any[]) => any) | undefined;
221
+ "onPane-closed"?: ((...args: any[]) => any) | undefined;
222
+ }>, {
223
+ modules: ICliModule[];
224
+ processors: ICliCommandProcessor[];
225
+ options: CliPanelOptions;
226
+ services: Record<string, any>;
227
+ style: Record<string, string>;
228
+ class: string;
229
+ onClose: () => void;
230
+ collapsed: boolean;
231
+ hidden: boolean;
232
+ maximized: boolean;
233
+ activeTabId: number;
234
+ position: CliPanelPosition;
235
+ height: number;
236
+ width: number;
237
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
238
+
239
+ declare const CliProvider: vue.DefineComponent<vue.ExtractPropTypes<{
240
+ modules: {
241
+ type: PropType<ICliModule[]>;
242
+ default: undefined;
243
+ };
244
+ processors: {
245
+ type: PropType<ICliCommandProcessor[]>;
246
+ default: undefined;
247
+ };
248
+ options: {
249
+ type: PropType<CliEngineOptions>;
250
+ default: undefined;
251
+ };
252
+ services: {
253
+ type: PropType<Record<string, any>>;
254
+ default: undefined;
255
+ };
256
+ style: {
257
+ type: PropType<Record<string, string>>;
258
+ default: undefined;
259
+ };
260
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
261
+ [key: string]: any;
262
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "ready"[], "ready", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
263
+ modules: {
264
+ type: PropType<ICliModule[]>;
265
+ default: undefined;
266
+ };
267
+ processors: {
268
+ type: PropType<ICliCommandProcessor[]>;
269
+ default: undefined;
270
+ };
271
+ options: {
272
+ type: PropType<CliEngineOptions>;
273
+ default: undefined;
274
+ };
275
+ services: {
276
+ type: PropType<Record<string, any>>;
277
+ default: undefined;
278
+ };
279
+ style: {
280
+ type: PropType<Record<string, string>>;
281
+ default: undefined;
282
+ };
283
+ }>> & Readonly<{
284
+ onReady?: ((...args: any[]) => any) | undefined;
285
+ }>, {
286
+ modules: ICliModule[];
287
+ processors: ICliCommandProcessor[];
288
+ options: CliEngineOptions;
289
+ services: Record<string, any>;
290
+ style: Record<string, string>;
291
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
292
+
293
+ interface CliConfigValue {
294
+ modules?: ICliModule[];
295
+ processors?: ICliCommandProcessor[];
296
+ options?: CliEngineOptions;
297
+ services?: Record<string, any>;
298
+ }
299
+ declare const CliConfigKey: InjectionKey<CliConfigValue>;
300
+ declare const CliConfigProvider: vue.DefineComponent<vue.ExtractPropTypes<{
301
+ modules: {
302
+ type: PropType<ICliModule[]>;
303
+ default: undefined;
304
+ };
305
+ processors: {
306
+ type: PropType<ICliCommandProcessor[]>;
307
+ default: undefined;
308
+ };
309
+ options: {
310
+ type: PropType<CliEngineOptions>;
311
+ default: undefined;
312
+ };
313
+ services: {
314
+ type: PropType<Record<string, any>>;
315
+ default: undefined;
316
+ };
317
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
318
+ [key: string]: any;
319
+ }>[] | undefined, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
320
+ modules: {
321
+ type: PropType<ICliModule[]>;
322
+ default: undefined;
323
+ };
324
+ processors: {
325
+ type: PropType<ICliCommandProcessor[]>;
326
+ default: undefined;
327
+ };
328
+ options: {
329
+ type: PropType<CliEngineOptions>;
330
+ default: undefined;
331
+ };
332
+ services: {
333
+ type: PropType<Record<string, any>>;
334
+ default: undefined;
335
+ };
336
+ }>> & Readonly<{}>, {
337
+ modules: ICliModule[];
338
+ processors: ICliCommandProcessor[];
339
+ options: CliEngineOptions;
340
+ services: Record<string, any>;
341
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
342
+
343
+ interface CliContextValue {
344
+ engine: Ref<CliEngine | null>;
345
+ }
346
+ declare const CliInjectionKey: InjectionKey<CliContextValue>;
347
+
348
+ declare function useCli(): CliContextValue;
349
+
350
+ type UseCliEngineConfig = Omit<CreateCliEngineConfig, 'framework'>;
351
+ declare function useCliEngine(containerRef: Ref<HTMLElement | null>, config?: UseCliEngineConfig): Ref<CliEngine | null>;
352
+
353
+ export { Cli, CliConfigKey, CliConfigProvider, CliInjectionKey, CliPanel, CliProvider, useCli, useCliEngine };
354
+ export type { CliConfigValue, CliContextValue, CliPanelOptions, CliProps, UseCliEngineConfig };