@razaman2/reactive-view 0.0.34 → 0.1.0-beta.10
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 +32 -3
- package/dist/index.d.ts +32 -3
- package/dist/index.js +562 -160
- package/dist/index.mjs +558 -160
- 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;
|
|
@@ -16,6 +16,12 @@ type SubscriptionItem = {
|
|
|
16
16
|
handler: Function;
|
|
17
17
|
data?: any;
|
|
18
18
|
};
|
|
19
|
+
type PropType = {
|
|
20
|
+
default: any;
|
|
21
|
+
required: boolean;
|
|
22
|
+
validator: ((value: any) => boolean);
|
|
23
|
+
type: any | Array<any>;
|
|
24
|
+
};
|
|
19
25
|
type PropExclusions = Array<string> | string;
|
|
20
26
|
|
|
21
27
|
declare class Subscription {
|
|
@@ -43,6 +49,7 @@ declare const setup: {
|
|
|
43
49
|
declare const _default: {
|
|
44
50
|
props: {
|
|
45
51
|
setup: {};
|
|
52
|
+
beta: (BooleanConstructor | StringConstructor)[];
|
|
46
53
|
ReactiveView: {
|
|
47
54
|
type: BooleanConstructor;
|
|
48
55
|
default: boolean;
|
|
@@ -53,7 +60,9 @@ declare const _default: {
|
|
|
53
60
|
notifications: ObjectConstructor;
|
|
54
61
|
subscriptions: ObjectConstructor;
|
|
55
62
|
beforeSetData: FunctionConstructor;
|
|
56
|
-
data: {
|
|
63
|
+
data: {
|
|
64
|
+
default: {};
|
|
65
|
+
};
|
|
57
66
|
defaultData: {};
|
|
58
67
|
getDefaultData: {
|
|
59
68
|
type: FunctionConstructor;
|
|
@@ -72,6 +81,9 @@ declare const _default: {
|
|
|
72
81
|
type: BooleanConstructor;
|
|
73
82
|
default: boolean;
|
|
74
83
|
};
|
|
84
|
+
state: {
|
|
85
|
+
default: {};
|
|
86
|
+
};
|
|
75
87
|
};
|
|
76
88
|
setup(props: Record<string, any>, context: SetupContext): (vue: ComponentPublicInstance) => any;
|
|
77
89
|
};
|
|
@@ -112,8 +124,25 @@ declare function useSubscription(): {
|
|
|
112
124
|
subscriptions: any[];
|
|
113
125
|
subscription: Subscription;
|
|
114
126
|
};
|
|
127
|
+
declare const Prop: ({ default: value, type, validator, required }?: Partial<PropType>) => {
|
|
128
|
+
required: boolean | undefined;
|
|
129
|
+
validator: (value: any) => boolean;
|
|
130
|
+
default?: vue.Ref<any, any> | undefined;
|
|
131
|
+
};
|
|
115
132
|
declare function StyleParser(styles?: Array<string> | Record<string, boolean> | string): {};
|
|
116
133
|
declare function MergeStyles(...params: any): any;
|
|
117
134
|
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>;
|
|
135
|
+
declare function defineReactiveView(): ReturnType<typeof defineComponent>;
|
|
136
|
+
declare function defineReactiveView(options: Record<string, any>): ReturnType<typeof defineComponent>;
|
|
137
|
+
declare function defineReactiveView(options: Record<string, any>, component: typeof _default): ReturnType<typeof defineComponent>;
|
|
138
|
+
declare function showComponent(component: any, options?: {
|
|
139
|
+
container?: string;
|
|
140
|
+
key?: string;
|
|
141
|
+
router?: any;
|
|
142
|
+
plugins?: Array<any>;
|
|
143
|
+
}): any;
|
|
144
|
+
declare const getData: (component: any, path: number | string, alternative: any) => any;
|
|
145
|
+
declare const setData: (component: any, data: any, path?: string) => any;
|
|
146
|
+
declare const dataPath: (component: any, path: string | number) => any;
|
|
118
147
|
|
|
119
|
-
export { MergeStyles, StyleParser, access, _default as default, extendVnode, getDate, getProps, getReactiveViewComponent, safeRequest, setup, useSubscription };
|
|
148
|
+
export { MergeStyles, Prop, 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;
|
|
@@ -16,6 +16,12 @@ type SubscriptionItem = {
|
|
|
16
16
|
handler: Function;
|
|
17
17
|
data?: any;
|
|
18
18
|
};
|
|
19
|
+
type PropType = {
|
|
20
|
+
default: any;
|
|
21
|
+
required: boolean;
|
|
22
|
+
validator: ((value: any) => boolean);
|
|
23
|
+
type: any | Array<any>;
|
|
24
|
+
};
|
|
19
25
|
type PropExclusions = Array<string> | string;
|
|
20
26
|
|
|
21
27
|
declare class Subscription {
|
|
@@ -43,6 +49,7 @@ declare const setup: {
|
|
|
43
49
|
declare const _default: {
|
|
44
50
|
props: {
|
|
45
51
|
setup: {};
|
|
52
|
+
beta: (BooleanConstructor | StringConstructor)[];
|
|
46
53
|
ReactiveView: {
|
|
47
54
|
type: BooleanConstructor;
|
|
48
55
|
default: boolean;
|
|
@@ -53,7 +60,9 @@ declare const _default: {
|
|
|
53
60
|
notifications: ObjectConstructor;
|
|
54
61
|
subscriptions: ObjectConstructor;
|
|
55
62
|
beforeSetData: FunctionConstructor;
|
|
56
|
-
data: {
|
|
63
|
+
data: {
|
|
64
|
+
default: {};
|
|
65
|
+
};
|
|
57
66
|
defaultData: {};
|
|
58
67
|
getDefaultData: {
|
|
59
68
|
type: FunctionConstructor;
|
|
@@ -72,6 +81,9 @@ declare const _default: {
|
|
|
72
81
|
type: BooleanConstructor;
|
|
73
82
|
default: boolean;
|
|
74
83
|
};
|
|
84
|
+
state: {
|
|
85
|
+
default: {};
|
|
86
|
+
};
|
|
75
87
|
};
|
|
76
88
|
setup(props: Record<string, any>, context: SetupContext): (vue: ComponentPublicInstance) => any;
|
|
77
89
|
};
|
|
@@ -112,8 +124,25 @@ declare function useSubscription(): {
|
|
|
112
124
|
subscriptions: any[];
|
|
113
125
|
subscription: Subscription;
|
|
114
126
|
};
|
|
127
|
+
declare const Prop: ({ default: value, type, validator, required }?: Partial<PropType>) => {
|
|
128
|
+
required: boolean | undefined;
|
|
129
|
+
validator: (value: any) => boolean;
|
|
130
|
+
default?: vue.Ref<any, any> | undefined;
|
|
131
|
+
};
|
|
115
132
|
declare function StyleParser(styles?: Array<string> | Record<string, boolean> | string): {};
|
|
116
133
|
declare function MergeStyles(...params: any): any;
|
|
117
134
|
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>;
|
|
135
|
+
declare function defineReactiveView(): ReturnType<typeof defineComponent>;
|
|
136
|
+
declare function defineReactiveView(options: Record<string, any>): ReturnType<typeof defineComponent>;
|
|
137
|
+
declare function defineReactiveView(options: Record<string, any>, component: typeof _default): ReturnType<typeof defineComponent>;
|
|
138
|
+
declare function showComponent(component: any, options?: {
|
|
139
|
+
container?: string;
|
|
140
|
+
key?: string;
|
|
141
|
+
router?: any;
|
|
142
|
+
plugins?: Array<any>;
|
|
143
|
+
}): any;
|
|
144
|
+
declare const getData: (component: any, path: number | string, alternative: any) => any;
|
|
145
|
+
declare const setData: (component: any, data: any, path?: string) => any;
|
|
146
|
+
declare const dataPath: (component: any, path: string | number) => any;
|
|
118
147
|
|
|
119
|
-
export { MergeStyles, StyleParser, access, _default as default, extendVnode, getDate, getProps, getReactiveViewComponent, safeRequest, setup, useSubscription };
|
|
148
|
+
export { MergeStyles, Prop, StyleParser, access, dataPath, _default as default, defineReactiveView, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, showComponent, useSubscription };
|