@simonbackx/vue-app-navigation 2.5.2 → 2.6.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/classes.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +122844 -693
- package/dist/src/ComponentWithProperties.d.ts +7 -4
- package/dist/src/FramedComponent.vue.d.ts +9 -5
- package/dist/src/HistoryManager.d.ts +0 -1
- package/dist/src/ModalMixin.d.ts +2 -742
- package/dist/src/ModalStackComponent.vue.d.ts +58 -375
- package/dist/src/ModalStackComponentFinderMixin.d.ts +1 -1
- package/dist/src/NavigationController.vue.d.ts +213 -10
- package/dist/src/NavigationMixin.d.ts +1 -1
- package/dist/src/Popup.vue.d.ts +7 -7
- package/dist/src/SplitViewController.vue.d.ts +648 -100
- package/dist/src/StackComponent.vue.d.ts +14 -63
- package/dist/src/class-components/VueComponent.d.ts +1 -1
- package/dist/src/utils/navigationHooks.d.ts +2 -2
- package/dist/src/utils/useModalStackComponent.d.ts +4 -0
- package/package.json +6 -6
- package/dist/test/EditWebshopMixin.d.ts +0 -1561
- package/dist/test/index.d.ts +0 -1
- package/dist/test/vite.config.d.ts +0 -2
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { HistoryUrl } from './HistoryManager';
|
|
2
|
-
import { ComponentPublicInstance, VNode } from 'vue';
|
|
2
|
+
import { ComponentInternalInstance, ComponentPublicInstance, Raw, VNode } from 'vue';
|
|
3
3
|
|
|
4
4
|
export type ModalDisplayStyle = "cover" | "popup" | "overlay" | "sheet" | "side-view";
|
|
5
|
-
export declare function useCurrentComponent():
|
|
6
|
-
export declare function
|
|
5
|
+
export declare function useCurrentComponent(): ComponentWithPropertiesType | null;
|
|
6
|
+
export declare function getExposeProxy(instance: ComponentInternalInstance | null | undefined): ComponentPublicInstance | undefined;
|
|
7
|
+
export declare function forAllRoots(root: ComponentWithProperties, handler: (root: ComponentWithPropertiesType) => void, alreadyProcessed?: Set<ComponentWithPropertiesType>): void;
|
|
8
|
+
/** Sadly we cannot really tell TypeScript that ComponentWithProperties is always Raw */
|
|
9
|
+
export type ComponentWithPropertiesType = Raw<ComponentWithProperties>;
|
|
7
10
|
export declare class ComponentWithProperties {
|
|
8
11
|
component: any;
|
|
9
12
|
properties: Record<string, any>;
|
|
@@ -22,7 +25,7 @@ export declare class ComponentWithProperties {
|
|
|
22
25
|
modalDisplayStyle: ModalDisplayStyle;
|
|
23
26
|
animated: boolean;
|
|
24
27
|
checkRoutes: boolean;
|
|
25
|
-
isDismissing: import('vue').Ref<boolean>;
|
|
28
|
+
isDismissing: import('vue').Ref<boolean, boolean>;
|
|
26
29
|
historyIndex: number | null;
|
|
27
30
|
static historyIndexOwners: Map<number, ComponentWithProperties>;
|
|
28
31
|
setCheckRoutes(): this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentWithProperties } from './ComponentWithProperties';
|
|
2
2
|
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
root: {
|
|
5
5
|
type: typeof ComponentWithProperties;
|
|
6
6
|
required: true;
|
|
@@ -9,7 +9,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
9
9
|
type: ObjectConstructor;
|
|
10
10
|
default: null;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("pop" | "push" | "show")[], "pop" | "push" | "show", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
13
|
root: {
|
|
14
14
|
type: typeof ComponentWithProperties;
|
|
15
15
|
required: true;
|
|
@@ -18,11 +18,15 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
18
18
|
type: ObjectConstructor;
|
|
19
19
|
default: null;
|
|
20
20
|
};
|
|
21
|
-
}>> & {
|
|
21
|
+
}>> & Readonly<{
|
|
22
22
|
onPop?: ((...args: any[]) => any) | undefined;
|
|
23
23
|
onPush?: ((...args: any[]) => any) | undefined;
|
|
24
24
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
}
|
|
25
|
+
}>, {
|
|
26
26
|
customProvide: Record<string, any>;
|
|
27
|
-
}, {}
|
|
27
|
+
}, {}, {
|
|
28
|
+
ComponentWithPropertiesInstance: import('vue').ComponentOptions;
|
|
29
|
+
}, {}, string, () => {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
}, true, {}, any>;
|
|
28
32
|
export default _default;
|