@simonbackx/vue-app-navigation 1.28.0 → 2.0.0-alpha.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.
@@ -1,15 +1,436 @@
1
- import { ComponentWithProperties } from "./ComponentWithProperties";
2
1
  import { PopOptions } from './PopOptions';
3
- import { ModalMixin } from './ModalMixin';
4
- export default class SideView extends ModalMixin {
5
- root: ComponentWithProperties;
6
- get shouldAppear(): boolean;
7
- get pushDown(): 1 | 0 | 2;
8
- get isFocused(): boolean;
9
- activated(): void;
10
- deactivated(): void;
2
+ import { ComponentWithProperties } from './ComponentWithProperties';
3
+ import { PropType } from 'vue';
4
+
5
+ declare const SideView: import('vue').DefineComponent<{
6
+ root: {
7
+ required: true;
8
+ type: PropType<ComponentWithProperties>;
9
+ };
10
+ }, unknown, unknown, {
11
+ shouldAppear(): boolean;
12
+ pushDown(): 0 | 1 | 2;
13
+ isFocused(): boolean;
14
+ }, {
11
15
  dismiss(options?: PopOptions): Promise<false | undefined>;
12
16
  resize(): void;
13
- onKey(event: any): void;
17
+ onKey(event: KeyboardEvent): void;
14
18
  shouldNavigateAway(): Promise<boolean>;
15
- }
19
+ }, import('vue').ComponentOptionsMixin, import('vue').DefineComponent<{}, {}, {}, {}, {
20
+ pop(options?: PopOptions): void;
21
+ getPoppableParent(): import('vue').ComponentInternalInstance | null;
22
+ }, import('vue').ComponentOptionsMixin, import('vue').DefineComponent<{}, {}, {}, {
23
+ modalStackComponent(): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
24
+ root: {
25
+ required: true;
26
+ type: PropType<ComponentWithProperties>;
27
+ };
28
+ initialComponents: {
29
+ default: null;
30
+ type: PropType<ComponentWithProperties[] | null>;
31
+ };
32
+ }>>, unknown, unknown, {
33
+ stackComponent(): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{}>> & {
34
+ onPresent?: ((...args: any[]) => any) | undefined;
35
+ }, {}, {
36
+ components: ComponentWithProperties[];
37
+ }, {}, {
38
+ getCustomProvide(index: number, key: number): {
39
+ reactive_navigation_pop: () => void;
40
+ reactive_navigation_dismiss: () => void;
41
+ };
42
+ show(component: ComponentWithProperties): void;
43
+ removeAt(index: number, key: number): void;
44
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "present"[], import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
45
+ onPresent?: ((...args: any[]) => any) | undefined;
46
+ }, {}, true, {}, {}, {
47
+ P: {};
48
+ B: {};
49
+ D: {};
50
+ C: {};
51
+ M: {};
52
+ Defaults: {};
53
+ }, Readonly<import('vue').ExtractPropTypes<{}>> & {
54
+ onPresent?: ((...args: any[]) => any) | undefined;
55
+ }, {}, {
56
+ components: ComponentWithProperties[];
57
+ }, {}, {
58
+ getCustomProvide(index: number, key: number): {
59
+ reactive_navigation_pop: () => void;
60
+ reactive_navigation_dismiss: () => void;
61
+ };
62
+ show(component: ComponentWithProperties): void;
63
+ removeAt(index: number, key: number): void;
64
+ }, {}>;
65
+ navigationController(): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
66
+ root: {
67
+ required: true;
68
+ type: typeof ComponentWithProperties;
69
+ };
70
+ initialComponents: {
71
+ default: null;
72
+ type: PropType<ComponentWithProperties[] | null>;
73
+ };
74
+ animationType: {
75
+ default: string;
76
+ type: StringConstructor;
77
+ };
78
+ customProvide: {
79
+ type: ObjectConstructor;
80
+ default: null;
81
+ };
82
+ }>> & {
83
+ onDidPush?: ((...args: any[]) => any) | undefined;
84
+ onDidPop?: ((...args: any[]) => any) | undefined;
85
+ onShowDetail?: ((...args: any[]) => any) | undefined;
86
+ onPresent?: ((...args: any[]) => any) | undefined;
87
+ }, {
88
+ originalPop: (options?: PopOptions | undefined) => void;
89
+ }, {
90
+ components: ComponentWithProperties[];
91
+ mainComponent: ComponentWithProperties | null;
92
+ transitionName: string;
93
+ savedScrollPositions: number[];
94
+ nextScrollPosition: number;
95
+ previousScrollPosition: number;
96
+ nextInternalScrollPosition: number;
97
+ savedInternalScrollPositions: number[];
98
+ }, {}, {
99
+ freezeSize(): void;
100
+ growSize(width: number, height: number): void;
101
+ unfreezeSize(): void;
102
+ getInternalScrollElement(element?: Element | null): HTMLElement | null;
103
+ getScrollElement(element?: HTMLElement | null): HTMLElement;
104
+ shouldAnimate(): boolean;
105
+ push(options: import('./PushOptions').PushOptions): Promise<void>;
106
+ shouldNavigateAway(): Promise<boolean>;
107
+ popToRoot(options?: PopOptions): Promise<ComponentWithProperties[] | undefined>;
108
+ getPoppableParent(): import('vue').ComponentInternalInstance | null;
109
+ pop(options?: PopOptions): Promise<ComponentWithProperties[] | undefined>;
110
+ beforeEnter(insertedElement: Element): void;
111
+ beforeLeave(_element: Element): void;
112
+ beforeBeforeEnterAnimation(): void;
113
+ finishedEnterAnimation(): void;
114
+ enter(element: any, done: () => void): void;
115
+ getScrollOuterHeight(scrollElement: HTMLElement): number;
116
+ leave(element: any, done: () => void): void;
117
+ afterLeave(element: any): void;
118
+ afterEnter(element: any): void;
119
+ enterCancelled(_element: any): void;
120
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("didPush" | "didPop" | "showDetail" | "present")[], import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
121
+ root: {
122
+ required: true;
123
+ type: typeof ComponentWithProperties;
124
+ };
125
+ initialComponents: {
126
+ default: null;
127
+ type: PropType<ComponentWithProperties[] | null>;
128
+ };
129
+ animationType: {
130
+ default: string;
131
+ type: StringConstructor;
132
+ };
133
+ customProvide: {
134
+ type: ObjectConstructor;
135
+ default: null;
136
+ };
137
+ }>> & {
138
+ onDidPush?: ((...args: any[]) => any) | undefined;
139
+ onDidPop?: ((...args: any[]) => any) | undefined;
140
+ onShowDetail?: ((...args: any[]) => any) | undefined;
141
+ onPresent?: ((...args: any[]) => any) | undefined;
142
+ }, {
143
+ customProvide: Record<string, any>;
144
+ initialComponents: ComponentWithProperties[] | null;
145
+ animationType: string;
146
+ }, true, {}, {}, {
147
+ P: {};
148
+ B: {};
149
+ D: {};
150
+ C: {};
151
+ M: {};
152
+ Defaults: {};
153
+ }, Readonly<import('vue').ExtractPropTypes<{
154
+ root: {
155
+ required: true;
156
+ type: typeof ComponentWithProperties;
157
+ };
158
+ initialComponents: {
159
+ default: null;
160
+ type: PropType<ComponentWithProperties[] | null>;
161
+ };
162
+ animationType: {
163
+ default: string;
164
+ type: StringConstructor;
165
+ };
166
+ customProvide: {
167
+ type: ObjectConstructor;
168
+ default: null;
169
+ };
170
+ }>> & {
171
+ onDidPush?: ((...args: any[]) => any) | undefined;
172
+ onDidPop?: ((...args: any[]) => any) | undefined;
173
+ onShowDetail?: ((...args: any[]) => any) | undefined;
174
+ onPresent?: ((...args: any[]) => any) | undefined;
175
+ }, {
176
+ originalPop: (options?: PopOptions | undefined) => void;
177
+ }, {
178
+ components: ComponentWithProperties[];
179
+ mainComponent: ComponentWithProperties | null;
180
+ transitionName: string;
181
+ savedScrollPositions: number[];
182
+ nextScrollPosition: number;
183
+ previousScrollPosition: number;
184
+ nextInternalScrollPosition: number;
185
+ savedInternalScrollPositions: number[];
186
+ }, {}, {
187
+ freezeSize(): void;
188
+ growSize(width: number, height: number): void;
189
+ unfreezeSize(): void;
190
+ getInternalScrollElement(element?: Element | null): HTMLElement | null;
191
+ getScrollElement(element?: HTMLElement | null): HTMLElement;
192
+ shouldAnimate(): boolean;
193
+ push(options: import('./PushOptions').PushOptions): Promise<void>;
194
+ shouldNavigateAway(): Promise<boolean>;
195
+ popToRoot(options?: PopOptions): Promise<ComponentWithProperties[] | undefined>;
196
+ getPoppableParent(): import('vue').ComponentInternalInstance | null;
197
+ pop(options?: PopOptions): Promise<ComponentWithProperties[] | undefined>;
198
+ beforeEnter(insertedElement: Element): void;
199
+ beforeLeave(_element: Element): void;
200
+ beforeBeforeEnterAnimation(): void;
201
+ finishedEnterAnimation(): void;
202
+ enter(element: any, done: () => void): void;
203
+ getScrollOuterHeight(scrollElement: HTMLElement): number;
204
+ leave(element: any, done: () => void): void;
205
+ afterLeave(element: any): void;
206
+ afterEnter(element: any): void;
207
+ enterCancelled(_element: any): void;
208
+ }, {
209
+ customProvide: Record<string, any>;
210
+ initialComponents: ComponentWithProperties[] | null;
211
+ animationType: string;
212
+ }>;
213
+ }, {
214
+ present(options: import('./PushOptions').PushOptions): void;
215
+ replace(component: ComponentWithProperties, animated?: boolean): void;
216
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
217
+ root: {
218
+ required: true;
219
+ type: PropType<ComponentWithProperties>;
220
+ };
221
+ initialComponents: {
222
+ default: null;
223
+ type: PropType<ComponentWithProperties[] | null>;
224
+ };
225
+ }>>, {
226
+ initialComponents: ComponentWithProperties[] | null;
227
+ }, true, {}, {}, {
228
+ P: {};
229
+ B: {};
230
+ D: {};
231
+ C: {};
232
+ M: {};
233
+ Defaults: {};
234
+ }, Readonly<import('vue').ExtractPropTypes<{
235
+ root: {
236
+ required: true;
237
+ type: PropType<ComponentWithProperties>;
238
+ };
239
+ initialComponents: {
240
+ default: null;
241
+ type: PropType<ComponentWithProperties[] | null>;
242
+ };
243
+ }>>, {}, {}, {
244
+ stackComponent(): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{}>> & {
245
+ onPresent?: ((...args: any[]) => any) | undefined;
246
+ }, {}, {
247
+ components: ComponentWithProperties[];
248
+ }, {}, {
249
+ getCustomProvide(index: number, key: number): {
250
+ reactive_navigation_pop: () => void;
251
+ reactive_navigation_dismiss: () => void;
252
+ };
253
+ show(component: ComponentWithProperties): void;
254
+ removeAt(index: number, key: number): void;
255
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "present"[], import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
256
+ onPresent?: ((...args: any[]) => any) | undefined;
257
+ }, {}, true, {}, {}, {
258
+ P: {};
259
+ B: {};
260
+ D: {};
261
+ C: {};
262
+ M: {};
263
+ Defaults: {};
264
+ }, Readonly<import('vue').ExtractPropTypes<{}>> & {
265
+ onPresent?: ((...args: any[]) => any) | undefined;
266
+ }, {}, {
267
+ components: ComponentWithProperties[];
268
+ }, {}, {
269
+ getCustomProvide(index: number, key: number): {
270
+ reactive_navigation_pop: () => void;
271
+ reactive_navigation_dismiss: () => void;
272
+ };
273
+ show(component: ComponentWithProperties): void;
274
+ removeAt(index: number, key: number): void;
275
+ }, {}>;
276
+ navigationController(): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
277
+ root: {
278
+ required: true;
279
+ type: typeof ComponentWithProperties;
280
+ };
281
+ initialComponents: {
282
+ default: null;
283
+ type: PropType<ComponentWithProperties[] | null>;
284
+ };
285
+ animationType: {
286
+ default: string;
287
+ type: StringConstructor;
288
+ };
289
+ customProvide: {
290
+ type: ObjectConstructor;
291
+ default: null;
292
+ };
293
+ }>> & {
294
+ onDidPush?: ((...args: any[]) => any) | undefined;
295
+ onDidPop?: ((...args: any[]) => any) | undefined;
296
+ onShowDetail?: ((...args: any[]) => any) | undefined;
297
+ onPresent?: ((...args: any[]) => any) | undefined;
298
+ }, {
299
+ originalPop: (options?: PopOptions | undefined) => void;
300
+ }, {
301
+ components: ComponentWithProperties[];
302
+ mainComponent: ComponentWithProperties | null;
303
+ transitionName: string;
304
+ savedScrollPositions: number[];
305
+ nextScrollPosition: number;
306
+ previousScrollPosition: number;
307
+ nextInternalScrollPosition: number;
308
+ savedInternalScrollPositions: number[];
309
+ }, {}, {
310
+ freezeSize(): void;
311
+ growSize(width: number, height: number): void;
312
+ unfreezeSize(): void;
313
+ getInternalScrollElement(element?: Element | null): HTMLElement | null;
314
+ getScrollElement(element?: HTMLElement | null): HTMLElement;
315
+ shouldAnimate(): boolean;
316
+ push(options: import('./PushOptions').PushOptions): Promise<void>;
317
+ shouldNavigateAway(): Promise<boolean>;
318
+ popToRoot(options?: PopOptions): Promise<ComponentWithProperties[] | undefined>;
319
+ getPoppableParent(): import('vue').ComponentInternalInstance | null;
320
+ pop(options?: PopOptions): Promise<ComponentWithProperties[] | undefined>;
321
+ beforeEnter(insertedElement: Element): void;
322
+ beforeLeave(_element: Element): void;
323
+ beforeBeforeEnterAnimation(): void;
324
+ finishedEnterAnimation(): void;
325
+ enter(element: any, done: () => void): void;
326
+ getScrollOuterHeight(scrollElement: HTMLElement): number;
327
+ leave(element: any, done: () => void): void;
328
+ afterLeave(element: any): void;
329
+ afterEnter(element: any): void;
330
+ enterCancelled(_element: any): void;
331
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("didPush" | "didPop" | "showDetail" | "present")[], import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
332
+ root: {
333
+ required: true;
334
+ type: typeof ComponentWithProperties;
335
+ };
336
+ initialComponents: {
337
+ default: null;
338
+ type: PropType<ComponentWithProperties[] | null>;
339
+ };
340
+ animationType: {
341
+ default: string;
342
+ type: StringConstructor;
343
+ };
344
+ customProvide: {
345
+ type: ObjectConstructor;
346
+ default: null;
347
+ };
348
+ }>> & {
349
+ onDidPush?: ((...args: any[]) => any) | undefined;
350
+ onDidPop?: ((...args: any[]) => any) | undefined;
351
+ onShowDetail?: ((...args: any[]) => any) | undefined;
352
+ onPresent?: ((...args: any[]) => any) | undefined;
353
+ }, {
354
+ customProvide: Record<string, any>;
355
+ initialComponents: ComponentWithProperties[] | null;
356
+ animationType: string;
357
+ }, true, {}, {}, {
358
+ P: {};
359
+ B: {};
360
+ D: {};
361
+ C: {};
362
+ M: {};
363
+ Defaults: {};
364
+ }, Readonly<import('vue').ExtractPropTypes<{
365
+ root: {
366
+ required: true;
367
+ type: typeof ComponentWithProperties;
368
+ };
369
+ initialComponents: {
370
+ default: null;
371
+ type: PropType<ComponentWithProperties[] | null>;
372
+ };
373
+ animationType: {
374
+ default: string;
375
+ type: StringConstructor;
376
+ };
377
+ customProvide: {
378
+ type: ObjectConstructor;
379
+ default: null;
380
+ };
381
+ }>> & {
382
+ onDidPush?: ((...args: any[]) => any) | undefined;
383
+ onDidPop?: ((...args: any[]) => any) | undefined;
384
+ onShowDetail?: ((...args: any[]) => any) | undefined;
385
+ onPresent?: ((...args: any[]) => any) | undefined;
386
+ }, {
387
+ originalPop: (options?: PopOptions | undefined) => void;
388
+ }, {
389
+ components: ComponentWithProperties[];
390
+ mainComponent: ComponentWithProperties | null;
391
+ transitionName: string;
392
+ savedScrollPositions: number[];
393
+ nextScrollPosition: number;
394
+ previousScrollPosition: number;
395
+ nextInternalScrollPosition: number;
396
+ savedInternalScrollPositions: number[];
397
+ }, {}, {
398
+ freezeSize(): void;
399
+ growSize(width: number, height: number): void;
400
+ unfreezeSize(): void;
401
+ getInternalScrollElement(element?: Element | null): HTMLElement | null;
402
+ getScrollElement(element?: HTMLElement | null): HTMLElement;
403
+ shouldAnimate(): boolean;
404
+ push(options: import('./PushOptions').PushOptions): Promise<void>;
405
+ shouldNavigateAway(): Promise<boolean>;
406
+ popToRoot(options?: PopOptions): Promise<ComponentWithProperties[] | undefined>;
407
+ getPoppableParent(): import('vue').ComponentInternalInstance | null;
408
+ pop(options?: PopOptions): Promise<ComponentWithProperties[] | undefined>;
409
+ beforeEnter(insertedElement: Element): void;
410
+ beforeLeave(_element: Element): void;
411
+ beforeBeforeEnterAnimation(): void;
412
+ finishedEnterAnimation(): void;
413
+ enter(element: any, done: () => void): void;
414
+ getScrollOuterHeight(scrollElement: HTMLElement): number;
415
+ leave(element: any, done: () => void): void;
416
+ afterLeave(element: any): void;
417
+ afterEnter(element: any): void;
418
+ enterCancelled(_element: any): void;
419
+ }, {
420
+ customProvide: Record<string, any>;
421
+ initialComponents: ComponentWithProperties[] | null;
422
+ animationType: string;
423
+ }>;
424
+ }, {
425
+ present(options: import('./PushOptions').PushOptions): void;
426
+ replace(component: ComponentWithProperties, animated?: boolean): void;
427
+ }, {
428
+ initialComponents: ComponentWithProperties[] | null;
429
+ }> | null;
430
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
431
+ root: {
432
+ required: true;
433
+ type: PropType<ComponentWithProperties>;
434
+ };
435
+ }>>, {}, {}>;
436
+ export default SideView;
@@ -1,24 +1,198 @@
1
- import { Vue } from "vue-property-decorator";
2
- import { ComponentWithProperties } from "./ComponentWithProperties";
3
- import NavigationController from "./NavigationController.vue";
4
- import { PushOptions } from "./PushOptions";
5
- export default class SplitViewController extends Vue {
6
- root: ComponentWithProperties;
1
+ import { PushOptions } from './PushOptions';
2
+ import { ComponentWithProperties } from './ComponentWithProperties';
3
+ import { PropType } from 'vue';
4
+
5
+ declare const _default: import('vue').DefineComponent<{
6
+ root: {
7
+ required: true;
8
+ type: PropType<ComponentWithProperties>;
9
+ };
10
+ rootDetail: {
11
+ default: ComponentWithProperties | null;
12
+ type: PropType<ComponentWithProperties>;
13
+ };
14
+ detailWidth: {
15
+ default: null;
16
+ type: StringConstructor;
17
+ };
18
+ }, unknown, {
7
19
  detail: ComponentWithProperties | null;
8
- detailWidth?: string;
9
- navigationController: NavigationController;
10
- masterElement: HTMLElement;
11
- detailKey: number | null;
12
- activated(): void;
13
- mounted(): void;
14
- deactivated(): void;
15
- beforeDestroy(): void;
20
+ detailKey: number;
21
+ }, {
22
+ lastIsDetail(): boolean;
23
+ navigationController(): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
24
+ root: {
25
+ required: true;
26
+ type: typeof ComponentWithProperties;
27
+ };
28
+ initialComponents: {
29
+ default: null;
30
+ type: PropType<ComponentWithProperties[] | null>;
31
+ };
32
+ animationType: {
33
+ default: string;
34
+ type: StringConstructor;
35
+ };
36
+ customProvide: {
37
+ type: ObjectConstructor;
38
+ default: null;
39
+ };
40
+ }>> & {
41
+ onDidPush?: ((...args: any[]) => any) | undefined;
42
+ onDidPop?: ((...args: any[]) => any) | undefined;
43
+ onShowDetail?: ((...args: any[]) => any) | undefined;
44
+ onPresent?: ((...args: any[]) => any) | undefined;
45
+ }, {
46
+ originalPop: (options?: import('./PopOptions').PopOptions | undefined) => void;
47
+ }, {
48
+ components: ComponentWithProperties[];
49
+ mainComponent: ComponentWithProperties | null;
50
+ transitionName: string;
51
+ savedScrollPositions: number[];
52
+ nextScrollPosition: number;
53
+ previousScrollPosition: number;
54
+ nextInternalScrollPosition: number;
55
+ savedInternalScrollPositions: number[];
56
+ }, {}, {
57
+ freezeSize(): void;
58
+ growSize(width: number, height: number): void;
59
+ unfreezeSize(): void;
60
+ getInternalScrollElement(element?: Element | null): HTMLElement | null;
61
+ getScrollElement(element?: HTMLElement | null): HTMLElement;
62
+ shouldAnimate(): boolean;
63
+ push(options: PushOptions): Promise<void>;
64
+ shouldNavigateAway(): Promise<boolean>;
65
+ popToRoot(options?: import('./PopOptions').PopOptions): Promise<ComponentWithProperties[] | undefined>;
66
+ getPoppableParent(): import('vue').ComponentInternalInstance | null;
67
+ pop(options?: import('./PopOptions').PopOptions): Promise<ComponentWithProperties[] | undefined>;
68
+ beforeEnter(insertedElement: Element): void;
69
+ beforeLeave(_element: Element): void;
70
+ beforeBeforeEnterAnimation(): void;
71
+ finishedEnterAnimation(): void;
72
+ enter(element: any, done: () => void): void;
73
+ getScrollOuterHeight(scrollElement: HTMLElement): number;
74
+ leave(element: any, done: () => void): void;
75
+ afterLeave(element: any): void;
76
+ afterEnter(element: any): void;
77
+ enterCancelled(_element: any): void;
78
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("didPush" | "didPop" | "showDetail" | "present")[], import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
79
+ root: {
80
+ required: true;
81
+ type: typeof ComponentWithProperties;
82
+ };
83
+ initialComponents: {
84
+ default: null;
85
+ type: PropType<ComponentWithProperties[] | null>;
86
+ };
87
+ animationType: {
88
+ default: string;
89
+ type: StringConstructor;
90
+ };
91
+ customProvide: {
92
+ type: ObjectConstructor;
93
+ default: null;
94
+ };
95
+ }>> & {
96
+ onDidPush?: ((...args: any[]) => any) | undefined;
97
+ onDidPop?: ((...args: any[]) => any) | undefined;
98
+ onShowDetail?: ((...args: any[]) => any) | undefined;
99
+ onPresent?: ((...args: any[]) => any) | undefined;
100
+ }, {
101
+ customProvide: Record<string, any>;
102
+ initialComponents: ComponentWithProperties[] | null;
103
+ animationType: string;
104
+ }, true, {}, {}, {
105
+ P: {};
106
+ B: {};
107
+ D: {};
108
+ C: {};
109
+ M: {};
110
+ Defaults: {};
111
+ }, Readonly<import('vue').ExtractPropTypes<{
112
+ root: {
113
+ required: true;
114
+ type: typeof ComponentWithProperties;
115
+ };
116
+ initialComponents: {
117
+ default: null;
118
+ type: PropType<ComponentWithProperties[] | null>;
119
+ };
120
+ animationType: {
121
+ default: string;
122
+ type: StringConstructor;
123
+ };
124
+ customProvide: {
125
+ type: ObjectConstructor;
126
+ default: null;
127
+ };
128
+ }>> & {
129
+ onDidPush?: ((...args: any[]) => any) | undefined;
130
+ onDidPop?: ((...args: any[]) => any) | undefined;
131
+ onShowDetail?: ((...args: any[]) => any) | undefined;
132
+ onPresent?: ((...args: any[]) => any) | undefined;
133
+ }, {
134
+ originalPop: (options?: import('./PopOptions').PopOptions | undefined) => void;
135
+ }, {
136
+ components: ComponentWithProperties[];
137
+ mainComponent: ComponentWithProperties | null;
138
+ transitionName: string;
139
+ savedScrollPositions: number[];
140
+ nextScrollPosition: number;
141
+ previousScrollPosition: number;
142
+ nextInternalScrollPosition: number;
143
+ savedInternalScrollPositions: number[];
144
+ }, {}, {
145
+ freezeSize(): void;
146
+ growSize(width: number, height: number): void;
147
+ unfreezeSize(): void;
148
+ getInternalScrollElement(element?: Element | null): HTMLElement | null;
149
+ getScrollElement(element?: HTMLElement | null): HTMLElement;
150
+ shouldAnimate(): boolean;
151
+ push(options: PushOptions): Promise<void>;
152
+ shouldNavigateAway(): Promise<boolean>;
153
+ popToRoot(options?: import('./PopOptions').PopOptions): Promise<ComponentWithProperties[] | undefined>;
154
+ getPoppableParent(): import('vue').ComponentInternalInstance | null;
155
+ pop(options?: import('./PopOptions').PopOptions): Promise<ComponentWithProperties[] | undefined>;
156
+ beforeEnter(insertedElement: Element): void;
157
+ beforeLeave(_element: Element): void;
158
+ beforeBeforeEnterAnimation(): void;
159
+ finishedEnterAnimation(): void;
160
+ enter(element: any, done: () => void): void;
161
+ getScrollOuterHeight(scrollElement: HTMLElement): number;
162
+ leave(element: any, done: () => void): void;
163
+ afterLeave(element: any): void;
164
+ afterEnter(element: any): void;
165
+ enterCancelled(_element: any): void;
166
+ }, {
167
+ customProvide: Record<string, any>;
168
+ initialComponents: ComponentWithProperties[] | null;
169
+ animationType: string;
170
+ }>;
171
+ masterElement(): HTMLElement;
172
+ }, {
16
173
  onResize(): void;
17
- get lastIsDetail(): boolean;
18
174
  getScrollElement(element?: HTMLElement | null): HTMLElement;
19
175
  shouldNavigateAway(): Promise<boolean>;
20
176
  showDetail(options: PushOptions): Promise<boolean>;
21
177
  shouldCollapse(): boolean;
22
178
  collapse(): void;
179
+ canExpand(): boolean;
23
180
  expand(): Promise<void>;
24
- }
181
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
182
+ root: {
183
+ required: true;
184
+ type: PropType<ComponentWithProperties>;
185
+ };
186
+ rootDetail: {
187
+ default: ComponentWithProperties | null;
188
+ type: PropType<ComponentWithProperties>;
189
+ };
190
+ detailWidth: {
191
+ default: null;
192
+ type: StringConstructor;
193
+ };
194
+ }>>, {
195
+ rootDetail: ComponentWithProperties;
196
+ detailWidth: string;
197
+ }, {}>;
198
+ export default _default;
@@ -1,8 +1,15 @@
1
- import { Vue } from "vue-property-decorator";
2
- import { ComponentWithProperties } from "./ComponentWithProperties";
3
- export default class StackComponent extends Vue {
1
+ import { ComponentWithProperties } from './ComponentWithProperties';
2
+
3
+ declare const StackComponent: import('vue').DefineComponent<{}, {}, {
4
4
  components: ComponentWithProperties[];
5
+ }, {}, {
6
+ getCustomProvide(index: number, key: number): {
7
+ reactive_navigation_pop: () => void;
8
+ reactive_navigation_dismiss: () => void;
9
+ };
5
10
  show(component: ComponentWithProperties): void;
6
- removeAt(index: any, key: any): void;
7
- beforeDestroy(): void;
8
- }
11
+ removeAt(index: number, key: number): void;
12
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "present"[], "present", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
13
+ onPresent?: ((...args: any[]) => any) | undefined;
14
+ }, {}, {}>;
15
+ export default StackComponent;
@@ -0,0 +1 @@
1
+ export {};