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