@simonbackx/vue-app-navigation 1.25.0 → 1.27.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.
- package/dist/main.css +2 -2
- package/dist/main.css.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/src/ModalStackComponent.vue.d.ts +4 -3
- package/dist/src/NavigationMixin.d.ts +2 -0
- package/dist/src/Popup.vue.d.ts +3 -3
- package/dist/src/Sheet.vue.d.ts +3 -3
- package/dist/src/SideView.vue.d.ts +3 -3
- package/package.json +1 -1
- package/dist/src/ModalMixin.d.ts +0 -15
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Vue } from "vue-property-decorator";
|
|
2
1
|
import { ComponentWithProperties } from "./ComponentWithProperties";
|
|
3
|
-
import
|
|
2
|
+
import { NavigationMixin } from "./NavigationMixin";
|
|
4
3
|
import { PushOptions } from "./PushOptions";
|
|
5
|
-
|
|
4
|
+
import StackComponent from "./StackComponent.vue";
|
|
5
|
+
export default class ModalStackComponent extends NavigationMixin {
|
|
6
6
|
readonly root: ComponentWithProperties;
|
|
7
|
+
readonly initialComponents: ComponentWithProperties[] | null;
|
|
7
8
|
stackComponent: StackComponent;
|
|
8
9
|
present(options: PushOptions): void;
|
|
9
10
|
/**
|
|
@@ -7,6 +7,7 @@ import { PushOptions } from "./PushOptions";
|
|
|
7
7
|
import Sheet from "./Sheet.vue";
|
|
8
8
|
import SideView from "./SideView.vue";
|
|
9
9
|
import SplitViewController from "./SplitViewController.vue";
|
|
10
|
+
import ModalStackComponent from "./ModalStackComponent.vue";
|
|
10
11
|
export declare class NavigationMixin extends Vue {
|
|
11
12
|
emitParents(event: string, data: any): void;
|
|
12
13
|
show(options: PushOptions | ComponentWithProperties): void;
|
|
@@ -26,6 +27,7 @@ export declare class NavigationMixin extends Vue {
|
|
|
26
27
|
get modalOrPopup(): NavigationController | Popup | Sheet | SideView | null;
|
|
27
28
|
get modalNavigationController(): NavigationController | null;
|
|
28
29
|
get splitViewController(): SplitViewController | null;
|
|
30
|
+
get modalStackComponent(): ModalStackComponent | null;
|
|
29
31
|
/**
|
|
30
32
|
* Return the first child of a parent that listens for the pop event
|
|
31
33
|
*/
|
package/dist/src/Popup.vue.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ComponentWithProperties } from "./ComponentWithProperties";
|
|
2
2
|
import { PopOptions } from './PopOptions';
|
|
3
|
-
import {
|
|
4
|
-
export default class Popup extends
|
|
3
|
+
import { NavigationMixin } from "./NavigationMixin";
|
|
4
|
+
export default class Popup extends NavigationMixin {
|
|
5
5
|
root: ComponentWithProperties;
|
|
6
6
|
className: string;
|
|
7
7
|
get buildClass(): string;
|
|
8
8
|
get shouldAppear(): boolean;
|
|
9
9
|
get pushDown(): 1 | 0 | 2;
|
|
10
|
-
|
|
10
|
+
isFocused(): boolean;
|
|
11
11
|
onClick(event: any): void;
|
|
12
12
|
activated(): void;
|
|
13
13
|
deactivated(): void;
|
package/dist/src/Sheet.vue.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ComponentWithProperties } from "./ComponentWithProperties";
|
|
2
2
|
import { PopOptions } from './PopOptions';
|
|
3
|
-
import {
|
|
4
|
-
export default class Sheet extends
|
|
3
|
+
import { NavigationMixin } from "./NavigationMixin";
|
|
4
|
+
export default class Sheet extends NavigationMixin {
|
|
5
5
|
root: ComponentWithProperties;
|
|
6
6
|
get shouldAppear(): boolean;
|
|
7
7
|
onClick(event: any): void;
|
|
8
8
|
activated(): void;
|
|
9
9
|
deactivated(): void;
|
|
10
|
-
|
|
10
|
+
isFocused(): boolean;
|
|
11
11
|
dismiss(options?: PopOptions): Promise<false | undefined>;
|
|
12
12
|
onKey(event: any): void;
|
|
13
13
|
shouldNavigateAway(): Promise<boolean>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ComponentWithProperties } from "./ComponentWithProperties";
|
|
2
|
+
import { NavigationMixin } from "./NavigationMixin";
|
|
2
3
|
import { PopOptions } from './PopOptions';
|
|
3
|
-
|
|
4
|
-
export default class SideView extends ModalMixin {
|
|
4
|
+
export default class SideView extends NavigationMixin {
|
|
5
5
|
root: ComponentWithProperties;
|
|
6
6
|
get shouldAppear(): boolean;
|
|
7
7
|
get pushDown(): 1 | 0 | 2;
|
|
8
|
-
|
|
8
|
+
isFocused(): boolean;
|
|
9
9
|
activated(): void;
|
|
10
10
|
deactivated(): void;
|
|
11
11
|
dismiss(options?: PopOptions): Promise<false | undefined>;
|
package/package.json
CHANGED
package/dist/src/ModalMixin.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Vue } from "vue-property-decorator";
|
|
2
|
-
import ModalStackComponent from "./ModalStackComponent.vue";
|
|
3
|
-
import { PopOptions } from "./PopOptions";
|
|
4
|
-
export declare class ModalMixin extends Vue {
|
|
5
|
-
get modalStackComponent(): ModalStackComponent | null;
|
|
6
|
-
/**
|
|
7
|
-
* Call one of the pop listeners of a parent or grandparent. E.g. to go back in a navigation controller.
|
|
8
|
-
* @param options Options that should get applied to the pop of the first parent that listens for the pop event
|
|
9
|
-
*/
|
|
10
|
-
pop(options?: PopOptions): void;
|
|
11
|
-
/**
|
|
12
|
-
* Return the first child of a parent that listens for the pop event
|
|
13
|
-
*/
|
|
14
|
-
getPoppableParent(): any | null;
|
|
15
|
-
}
|