@razaman2/reactive-view 0.0.34 → 0.1.0-beta.2
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/index.d.mts +21 -3
- package/dist/index.d.ts +21 -3
- package/dist/index.js +459 -125
- package/dist/index.mjs +458 -127
- package/package.json +48 -46
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { SetupContext, ComponentPublicInstance, UnwrapRef } from 'vue';
|
|
2
|
+
import { SetupContext, ComponentPublicInstance, UnwrapRef, defineComponent } from 'vue';
|
|
3
3
|
|
|
4
4
|
type ComponentExtension = {
|
|
5
5
|
parent?: ComponentExtension;
|
|
@@ -43,6 +43,7 @@ declare const setup: {
|
|
|
43
43
|
declare const _default: {
|
|
44
44
|
props: {
|
|
45
45
|
setup: {};
|
|
46
|
+
beta: (BooleanConstructor | StringConstructor)[];
|
|
46
47
|
ReactiveView: {
|
|
47
48
|
type: BooleanConstructor;
|
|
48
49
|
default: boolean;
|
|
@@ -53,7 +54,9 @@ declare const _default: {
|
|
|
53
54
|
notifications: ObjectConstructor;
|
|
54
55
|
subscriptions: ObjectConstructor;
|
|
55
56
|
beforeSetData: FunctionConstructor;
|
|
56
|
-
data: {
|
|
57
|
+
data: {
|
|
58
|
+
default: {};
|
|
59
|
+
};
|
|
57
60
|
defaultData: {};
|
|
58
61
|
getDefaultData: {
|
|
59
62
|
type: FunctionConstructor;
|
|
@@ -72,6 +75,9 @@ declare const _default: {
|
|
|
72
75
|
type: BooleanConstructor;
|
|
73
76
|
default: boolean;
|
|
74
77
|
};
|
|
78
|
+
state: {
|
|
79
|
+
default: {};
|
|
80
|
+
};
|
|
75
81
|
};
|
|
76
82
|
setup(props: Record<string, any>, context: SetupContext): (vue: ComponentPublicInstance) => any;
|
|
77
83
|
};
|
|
@@ -115,5 +121,17 @@ declare function useSubscription(): {
|
|
|
115
121
|
declare function StyleParser(styles?: Array<string> | Record<string, boolean> | string): {};
|
|
116
122
|
declare function MergeStyles(...params: any): any;
|
|
117
123
|
declare const extendVnode: (component: Record<string, any>, element: any) => Record<string, (props?: Record<string, any>, slots?: Record<string, any> | ((slots: Record<string, any>) => Record<string, any>)) => any>;
|
|
124
|
+
declare function defineReactiveView(): ReturnType<typeof defineComponent>;
|
|
125
|
+
declare function defineReactiveView(options: Record<string, any>): ReturnType<typeof defineComponent>;
|
|
126
|
+
declare function defineReactiveView(options: Record<string, any>, component: typeof _default): ReturnType<typeof defineComponent>;
|
|
127
|
+
declare function showComponent(component: any, options?: {
|
|
128
|
+
container?: string;
|
|
129
|
+
key?: string;
|
|
130
|
+
router?: any;
|
|
131
|
+
plugins?: Array<any>;
|
|
132
|
+
}): any;
|
|
133
|
+
declare const getData: (component: any, path: number | string, alternative: any) => any;
|
|
134
|
+
declare const setData: (component: any, data: any, path?: string) => any;
|
|
135
|
+
declare const dataPath: (component: any, path: string | number) => any;
|
|
118
136
|
|
|
119
|
-
export { MergeStyles, StyleParser, access, _default as default, extendVnode, getDate, getProps, getReactiveViewComponent, safeRequest, setup, useSubscription };
|
|
137
|
+
export { MergeStyles, StyleParser, access, dataPath, _default as default, defineReactiveView, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, showComponent, useSubscription };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { SetupContext, ComponentPublicInstance, UnwrapRef } from 'vue';
|
|
2
|
+
import { SetupContext, ComponentPublicInstance, UnwrapRef, defineComponent } from 'vue';
|
|
3
3
|
|
|
4
4
|
type ComponentExtension = {
|
|
5
5
|
parent?: ComponentExtension;
|
|
@@ -43,6 +43,7 @@ declare const setup: {
|
|
|
43
43
|
declare const _default: {
|
|
44
44
|
props: {
|
|
45
45
|
setup: {};
|
|
46
|
+
beta: (BooleanConstructor | StringConstructor)[];
|
|
46
47
|
ReactiveView: {
|
|
47
48
|
type: BooleanConstructor;
|
|
48
49
|
default: boolean;
|
|
@@ -53,7 +54,9 @@ declare const _default: {
|
|
|
53
54
|
notifications: ObjectConstructor;
|
|
54
55
|
subscriptions: ObjectConstructor;
|
|
55
56
|
beforeSetData: FunctionConstructor;
|
|
56
|
-
data: {
|
|
57
|
+
data: {
|
|
58
|
+
default: {};
|
|
59
|
+
};
|
|
57
60
|
defaultData: {};
|
|
58
61
|
getDefaultData: {
|
|
59
62
|
type: FunctionConstructor;
|
|
@@ -72,6 +75,9 @@ declare const _default: {
|
|
|
72
75
|
type: BooleanConstructor;
|
|
73
76
|
default: boolean;
|
|
74
77
|
};
|
|
78
|
+
state: {
|
|
79
|
+
default: {};
|
|
80
|
+
};
|
|
75
81
|
};
|
|
76
82
|
setup(props: Record<string, any>, context: SetupContext): (vue: ComponentPublicInstance) => any;
|
|
77
83
|
};
|
|
@@ -115,5 +121,17 @@ declare function useSubscription(): {
|
|
|
115
121
|
declare function StyleParser(styles?: Array<string> | Record<string, boolean> | string): {};
|
|
116
122
|
declare function MergeStyles(...params: any): any;
|
|
117
123
|
declare const extendVnode: (component: Record<string, any>, element: any) => Record<string, (props?: Record<string, any>, slots?: Record<string, any> | ((slots: Record<string, any>) => Record<string, any>)) => any>;
|
|
124
|
+
declare function defineReactiveView(): ReturnType<typeof defineComponent>;
|
|
125
|
+
declare function defineReactiveView(options: Record<string, any>): ReturnType<typeof defineComponent>;
|
|
126
|
+
declare function defineReactiveView(options: Record<string, any>, component: typeof _default): ReturnType<typeof defineComponent>;
|
|
127
|
+
declare function showComponent(component: any, options?: {
|
|
128
|
+
container?: string;
|
|
129
|
+
key?: string;
|
|
130
|
+
router?: any;
|
|
131
|
+
plugins?: Array<any>;
|
|
132
|
+
}): any;
|
|
133
|
+
declare const getData: (component: any, path: number | string, alternative: any) => any;
|
|
134
|
+
declare const setData: (component: any, data: any, path?: string) => any;
|
|
135
|
+
declare const dataPath: (component: any, path: string | number) => any;
|
|
118
136
|
|
|
119
|
-
export { MergeStyles, StyleParser, access, _default as default, extendVnode, getDate, getProps, getReactiveViewComponent, safeRequest, setup, useSubscription };
|
|
137
|
+
export { MergeStyles, StyleParser, access, dataPath, _default as default, defineReactiveView, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, showComponent, useSubscription };
|