@razaman2/reactive-view 0.1.0-beta.9 → 0.2.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/LICENSE +21 -21
- package/README.md +1 -1
- package/dist/Editor-BX8prqWt.mjs +364 -0
- package/dist/Editor-DKILsiST.js +1 -0
- package/dist/Label-B63BpiJm.mjs +49 -0
- package/dist/Label-ClklvtMk.js +1 -0
- package/dist/ReactiveView.d.mts +20 -0
- package/dist/ReactiveView.d.ts +20 -0
- package/dist/Select-CSA5Sk_b.mjs +238 -0
- package/dist/Select-CqG647qR.js +1 -0
- package/dist/Subscription.d.mts +17 -0
- package/dist/Subscription.d.ts +17 -0
- package/dist/Subscriptions.d.mts +5 -0
- package/dist/Subscriptions.d.ts +5 -0
- package/dist/Types.d.mts +28 -0
- package/dist/Types.d.ts +28 -0
- package/dist/components/Button.vue.d.mts +3 -0
- package/dist/components/Button.vue.d.ts +3 -0
- package/dist/components/ConfirmationModal.vue.d.mts +3 -0
- package/dist/components/ConfirmationModal.vue.d.ts +3 -0
- package/dist/components/CustomAlert.vue.d.mts +69 -0
- package/dist/components/CustomAlert.vue.d.ts +69 -0
- package/dist/components/CustomButton.vue.d.mts +3 -0
- package/dist/components/CustomButton.vue.d.ts +3 -0
- package/dist/components/CustomModal.vue.d.mts +3 -0
- package/dist/components/CustomModal.vue.d.ts +3 -0
- package/dist/components/CustomTable.vue.d.mts +3 -0
- package/dist/components/CustomTable.vue.d.ts +3 -0
- package/dist/components/CustomTableRow.vue.d.mts +3 -0
- package/dist/components/CustomTableRow.vue.d.ts +3 -0
- package/dist/components/Datetime.vue.d.mts +3 -0
- package/dist/components/Datetime.vue.d.ts +3 -0
- package/dist/components/DraggableList.vue.d.mts +3 -0
- package/dist/components/DraggableList.vue.d.ts +3 -0
- package/dist/components/Editor.vue.d.mts +3 -0
- package/dist/components/Editor.vue.d.ts +3 -0
- package/dist/components/Input.vue.d.mts +3 -0
- package/dist/components/Input.vue.d.ts +3 -0
- package/dist/components/ItemsList.vue.d.mts +3 -0
- package/dist/components/ItemsList.vue.d.ts +3 -0
- package/dist/components/Label.vue.d.mts +3 -0
- package/dist/components/Label.vue.d.ts +3 -0
- package/dist/components/ListPagination.vue.d.mts +3 -0
- package/dist/components/ListPagination.vue.d.ts +3 -0
- package/dist/components/Popover.vue.d.mts +3 -0
- package/dist/components/Popover.vue.d.ts +3 -0
- package/dist/components/Select.vue.d.mts +3 -0
- package/dist/components/Select.vue.d.ts +3 -0
- package/dist/components/drag.d.mts +1 -0
- package/dist/components/drag.d.ts +1 -0
- package/dist/components/index.d.mts +17 -0
- package/dist/components/index.d.ts +17 -0
- package/dist/components/masks.d.mts +22 -0
- package/dist/components/masks.d.ts +22 -0
- package/dist/components.js +1 -0
- package/dist/components.mjs +1660 -0
- package/dist/index.d.mts +42 -121
- package/dist/index.d.ts +42 -121
- package/dist/index.js +1 -963
- package/dist/index.mjs +2 -916
- package/dist/reactive-view.css +2 -0
- package/dist/rolldown-runtime-C-QNzSnW.mjs +11 -0
- package/dist/src-CB2Ym95H.js +1 -0
- package/dist/src-DgPt5VTg.mjs +523 -0
- package/package.json +126 -48
package/dist/index.d.mts
CHANGED
|
@@ -1,94 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
access?: () => ComponentExtension;
|
|
8
|
-
value?: ComponentExtension;
|
|
9
|
-
};
|
|
10
|
-
type PropOptions = {
|
|
11
|
-
exclude: string | Array<string>;
|
|
12
|
-
include: Record<string, any>;
|
|
13
|
-
};
|
|
14
|
-
type SubscriptionItem = {
|
|
15
|
-
name: string;
|
|
16
|
-
handler: Function;
|
|
17
|
-
data?: any;
|
|
18
|
-
};
|
|
19
|
-
type PropType = {
|
|
20
|
-
default: any;
|
|
21
|
-
required: boolean;
|
|
22
|
-
validator: ((value: any) => boolean);
|
|
23
|
-
type: any | Array<any>;
|
|
24
|
-
};
|
|
25
|
-
type PropExclusions = Array<string> | string;
|
|
26
|
-
|
|
27
|
-
declare class Subscription {
|
|
28
|
-
private subscriptions;
|
|
29
|
-
private data;
|
|
30
|
-
static create(): Subscription;
|
|
31
|
-
subscribe(name: string, handler: Function, data?: any): Subscription;
|
|
32
|
-
replace(name: string, handler: Function, data?: any): Subscription;
|
|
33
|
-
unsubscribe(subscription?: string): Subscription;
|
|
34
|
-
unsubscribe(subscriptions?: Array<string>): Subscription;
|
|
35
|
-
size(): number;
|
|
36
|
-
hasSubscription(name: string): boolean;
|
|
37
|
-
private remove;
|
|
38
|
-
private find;
|
|
39
|
-
private isNameAvailable;
|
|
40
|
-
registrations(): Array<SubscriptionItem>;
|
|
41
|
-
get(name: string): SubscriptionItem;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare const setup: {
|
|
45
|
-
type: FunctionConstructor;
|
|
46
|
-
default: (parent?: {}, self?: {}) => {};
|
|
47
|
-
ReactiveView: boolean;
|
|
48
|
-
};
|
|
49
|
-
declare const _default: {
|
|
50
|
-
props: {
|
|
51
|
-
setup: {};
|
|
52
|
-
beta: (BooleanConstructor | StringConstructor)[];
|
|
53
|
-
ReactiveView: {
|
|
54
|
-
type: BooleanConstructor;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
|
-
instance: {
|
|
58
|
-
default: vue.Ref<any, any>;
|
|
59
|
-
};
|
|
60
|
-
notifications: ObjectConstructor;
|
|
61
|
-
subscriptions: ObjectConstructor;
|
|
62
|
-
beforeSetData: FunctionConstructor;
|
|
63
|
-
data: {
|
|
64
|
-
default: {};
|
|
65
|
-
};
|
|
66
|
-
defaultData: {};
|
|
67
|
-
getDefaultData: {
|
|
68
|
-
type: FunctionConstructor;
|
|
69
|
-
default: (data: any) => any;
|
|
70
|
-
};
|
|
71
|
-
model: {};
|
|
72
|
-
defer: {};
|
|
73
|
-
logging: {
|
|
74
|
-
validator: (logging: boolean) => boolean;
|
|
75
|
-
};
|
|
76
|
-
modelName: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
debug: {
|
|
81
|
-
type: BooleanConstructor;
|
|
82
|
-
default: boolean;
|
|
83
|
-
};
|
|
84
|
-
state: {
|
|
85
|
-
default: {};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
setup(props: Record<string, any>, context: SetupContext): (vue: ComponentPublicInstance) => any;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
declare function safeRequest(request: {
|
|
1
|
+
import type { PropExclusions, PropOptions, ComponentExtension } from "./Types.mjs";
|
|
2
|
+
import ReactiveView, { setup } from "./ReactiveView.mjs";
|
|
3
|
+
import { defineComponent, type UnwrapRef } from "vue";
|
|
4
|
+
export default ReactiveView;
|
|
5
|
+
export { setup };
|
|
6
|
+
export declare function safeRequest(request: {
|
|
92
7
|
try: () => Promise<any> | any;
|
|
93
8
|
catch?: ((error: any) => Promise<any> | any) | false;
|
|
94
9
|
finally?: () => Promise<any> | any;
|
|
@@ -100,49 +15,55 @@ declare function safeRequest(request: {
|
|
|
100
15
|
message?: string;
|
|
101
16
|
alternative?: boolean;
|
|
102
17
|
}): Promise<any>;
|
|
103
|
-
declare function
|
|
104
|
-
|
|
105
|
-
|
|
18
|
+
export declare function showComponent(component: never, options?: Partial<{
|
|
19
|
+
id: string;
|
|
20
|
+
app: HTMLElement;
|
|
21
|
+
container: string;
|
|
22
|
+
placement: "appendChild" | "replaceChildren" | "prepend";
|
|
23
|
+
}>): void;
|
|
24
|
+
export declare function getProps(props: Record<string, any>, exclude: PropExclusions): Record<string, any>;
|
|
25
|
+
export declare function getProps(props: Record<string, any>, options: PropOptions): Record<string, any>;
|
|
26
|
+
export declare function getReactiveViewComponent(component: any, options?: Record<string, any>): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
106
27
|
[key: string]: any;
|
|
107
28
|
}>;
|
|
108
|
-
declare function getDate(timestamp: {
|
|
29
|
+
export declare function getDate(timestamp: {
|
|
109
30
|
toDate: () => Date;
|
|
110
31
|
} | Date, format?: string): string;
|
|
111
|
-
declare function getDate(timestamp: {
|
|
32
|
+
export declare function getDate(timestamp: {
|
|
112
33
|
toDate: () => Date;
|
|
113
34
|
} | Date, options?: {
|
|
114
35
|
format?: string;
|
|
115
36
|
timezone?: string;
|
|
116
37
|
}): string;
|
|
117
|
-
declare
|
|
118
|
-
declare function
|
|
119
|
-
|
|
120
|
-
|
|
38
|
+
export declare const copy: <T>(value: T, copies?: Map<unknown, unknown>) => T;
|
|
39
|
+
export declare function access(view?: ComponentExtension | UnwrapRef<any> | (() => ComponentExtension), alternative?: any): any;
|
|
40
|
+
export declare function useSubscription(): {
|
|
41
|
+
addSubscription(name: string, handler: () => void, data?: any): void;
|
|
42
|
+
replaceSubscription(name: string, handler: () => void, data?: any): void;
|
|
121
43
|
removeSubscriptions(): void;
|
|
122
44
|
removeSubscription(name: string): void;
|
|
123
45
|
hasSubscription(name: string): boolean;
|
|
124
46
|
subscriptions: any[];
|
|
125
|
-
subscription: Subscription;
|
|
47
|
+
subscription: import("./Subscription.mjs").default;
|
|
126
48
|
};
|
|
127
|
-
declare const Prop: (
|
|
128
|
-
|
|
49
|
+
export declare const Prop: (prop?: Partial<{
|
|
50
|
+
type: Array<any> | any;
|
|
51
|
+
required: boolean;
|
|
52
|
+
default: any;
|
|
53
|
+
validator: (value: any) => boolean;
|
|
54
|
+
}>) => {
|
|
55
|
+
default: any;
|
|
129
56
|
validator: (value: any) => boolean;
|
|
130
|
-
|
|
57
|
+
required?: boolean | undefined;
|
|
58
|
+
type?: any[] | undefined;
|
|
131
59
|
};
|
|
132
|
-
declare function StyleParser(styles?: Array<string> | Record<string, boolean> | string): {};
|
|
133
|
-
declare function MergeStyles(...params: any): any;
|
|
134
|
-
declare const extendVnode: (
|
|
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
|
|
138
|
-
declare
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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;
|
|
147
|
-
|
|
148
|
-
export { MergeStyles, Prop, StyleParser, access, dataPath, _default as default, defineReactiveView, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, showComponent, useSubscription };
|
|
60
|
+
export declare function StyleParser(styles?: Array<string> | Record<string, boolean> | string): {};
|
|
61
|
+
export declare function MergeStyles(...params: any): any;
|
|
62
|
+
export declare const extendVnode: (...params: [Record<string, any>, any]) => any;
|
|
63
|
+
export declare function defineReactiveView(): ReturnType<typeof defineComponent>;
|
|
64
|
+
export declare function defineReactiveView(options: Record<string, any>): ReturnType<typeof defineComponent>;
|
|
65
|
+
export declare function defineReactiveView(options: Record<string, any>, component: typeof ReactiveView): ReturnType<typeof defineComponent>;
|
|
66
|
+
export declare const setData: (component: any, data: any, path?: string) => any;
|
|
67
|
+
export declare const getData: (component: any, path: number | string, alternative: any) => any;
|
|
68
|
+
export declare const dataPath: (component: any, path: string | number) => any;
|
|
69
|
+
export declare function throwError(e: any): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,94 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
access?: () => ComponentExtension;
|
|
8
|
-
value?: ComponentExtension;
|
|
9
|
-
};
|
|
10
|
-
type PropOptions = {
|
|
11
|
-
exclude: string | Array<string>;
|
|
12
|
-
include: Record<string, any>;
|
|
13
|
-
};
|
|
14
|
-
type SubscriptionItem = {
|
|
15
|
-
name: string;
|
|
16
|
-
handler: Function;
|
|
17
|
-
data?: any;
|
|
18
|
-
};
|
|
19
|
-
type PropType = {
|
|
20
|
-
default: any;
|
|
21
|
-
required: boolean;
|
|
22
|
-
validator: ((value: any) => boolean);
|
|
23
|
-
type: any | Array<any>;
|
|
24
|
-
};
|
|
25
|
-
type PropExclusions = Array<string> | string;
|
|
26
|
-
|
|
27
|
-
declare class Subscription {
|
|
28
|
-
private subscriptions;
|
|
29
|
-
private data;
|
|
30
|
-
static create(): Subscription;
|
|
31
|
-
subscribe(name: string, handler: Function, data?: any): Subscription;
|
|
32
|
-
replace(name: string, handler: Function, data?: any): Subscription;
|
|
33
|
-
unsubscribe(subscription?: string): Subscription;
|
|
34
|
-
unsubscribe(subscriptions?: Array<string>): Subscription;
|
|
35
|
-
size(): number;
|
|
36
|
-
hasSubscription(name: string): boolean;
|
|
37
|
-
private remove;
|
|
38
|
-
private find;
|
|
39
|
-
private isNameAvailable;
|
|
40
|
-
registrations(): Array<SubscriptionItem>;
|
|
41
|
-
get(name: string): SubscriptionItem;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare const setup: {
|
|
45
|
-
type: FunctionConstructor;
|
|
46
|
-
default: (parent?: {}, self?: {}) => {};
|
|
47
|
-
ReactiveView: boolean;
|
|
48
|
-
};
|
|
49
|
-
declare const _default: {
|
|
50
|
-
props: {
|
|
51
|
-
setup: {};
|
|
52
|
-
beta: (BooleanConstructor | StringConstructor)[];
|
|
53
|
-
ReactiveView: {
|
|
54
|
-
type: BooleanConstructor;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
|
-
instance: {
|
|
58
|
-
default: vue.Ref<any, any>;
|
|
59
|
-
};
|
|
60
|
-
notifications: ObjectConstructor;
|
|
61
|
-
subscriptions: ObjectConstructor;
|
|
62
|
-
beforeSetData: FunctionConstructor;
|
|
63
|
-
data: {
|
|
64
|
-
default: {};
|
|
65
|
-
};
|
|
66
|
-
defaultData: {};
|
|
67
|
-
getDefaultData: {
|
|
68
|
-
type: FunctionConstructor;
|
|
69
|
-
default: (data: any) => any;
|
|
70
|
-
};
|
|
71
|
-
model: {};
|
|
72
|
-
defer: {};
|
|
73
|
-
logging: {
|
|
74
|
-
validator: (logging: boolean) => boolean;
|
|
75
|
-
};
|
|
76
|
-
modelName: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
debug: {
|
|
81
|
-
type: BooleanConstructor;
|
|
82
|
-
default: boolean;
|
|
83
|
-
};
|
|
84
|
-
state: {
|
|
85
|
-
default: {};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
setup(props: Record<string, any>, context: SetupContext): (vue: ComponentPublicInstance) => any;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
declare function safeRequest(request: {
|
|
1
|
+
import type { PropExclusions, PropOptions, ComponentExtension } from "./Types";
|
|
2
|
+
import ReactiveView, { setup } from "./ReactiveView";
|
|
3
|
+
import { defineComponent, type UnwrapRef } from "vue";
|
|
4
|
+
export default ReactiveView;
|
|
5
|
+
export { setup };
|
|
6
|
+
export declare function safeRequest(request: {
|
|
92
7
|
try: () => Promise<any> | any;
|
|
93
8
|
catch?: ((error: any) => Promise<any> | any) | false;
|
|
94
9
|
finally?: () => Promise<any> | any;
|
|
@@ -100,49 +15,55 @@ declare function safeRequest(request: {
|
|
|
100
15
|
message?: string;
|
|
101
16
|
alternative?: boolean;
|
|
102
17
|
}): Promise<any>;
|
|
103
|
-
declare function
|
|
104
|
-
|
|
105
|
-
|
|
18
|
+
export declare function showComponent(component: never, options?: Partial<{
|
|
19
|
+
id: string;
|
|
20
|
+
app: HTMLElement;
|
|
21
|
+
container: string;
|
|
22
|
+
placement: "appendChild" | "replaceChildren" | "prepend";
|
|
23
|
+
}>): void;
|
|
24
|
+
export declare function getProps(props: Record<string, any>, exclude: PropExclusions): Record<string, any>;
|
|
25
|
+
export declare function getProps(props: Record<string, any>, options: PropOptions): Record<string, any>;
|
|
26
|
+
export declare function getReactiveViewComponent(component: any, options?: Record<string, any>): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
106
27
|
[key: string]: any;
|
|
107
28
|
}>;
|
|
108
|
-
declare function getDate(timestamp: {
|
|
29
|
+
export declare function getDate(timestamp: {
|
|
109
30
|
toDate: () => Date;
|
|
110
31
|
} | Date, format?: string): string;
|
|
111
|
-
declare function getDate(timestamp: {
|
|
32
|
+
export declare function getDate(timestamp: {
|
|
112
33
|
toDate: () => Date;
|
|
113
34
|
} | Date, options?: {
|
|
114
35
|
format?: string;
|
|
115
36
|
timezone?: string;
|
|
116
37
|
}): string;
|
|
117
|
-
declare
|
|
118
|
-
declare function
|
|
119
|
-
|
|
120
|
-
|
|
38
|
+
export declare const copy: <T>(value: T, copies?: Map<unknown, unknown>) => T;
|
|
39
|
+
export declare function access(view?: ComponentExtension | UnwrapRef<any> | (() => ComponentExtension), alternative?: any): any;
|
|
40
|
+
export declare function useSubscription(): {
|
|
41
|
+
addSubscription(name: string, handler: () => void, data?: any): void;
|
|
42
|
+
replaceSubscription(name: string, handler: () => void, data?: any): void;
|
|
121
43
|
removeSubscriptions(): void;
|
|
122
44
|
removeSubscription(name: string): void;
|
|
123
45
|
hasSubscription(name: string): boolean;
|
|
124
46
|
subscriptions: any[];
|
|
125
|
-
subscription: Subscription;
|
|
47
|
+
subscription: import("./Subscription").default;
|
|
126
48
|
};
|
|
127
|
-
declare const Prop: (
|
|
128
|
-
|
|
49
|
+
export declare const Prop: (prop?: Partial<{
|
|
50
|
+
type: Array<any> | any;
|
|
51
|
+
required: boolean;
|
|
52
|
+
default: any;
|
|
53
|
+
validator: (value: any) => boolean;
|
|
54
|
+
}>) => {
|
|
55
|
+
default: any;
|
|
129
56
|
validator: (value: any) => boolean;
|
|
130
|
-
|
|
57
|
+
required?: boolean | undefined;
|
|
58
|
+
type?: any[] | undefined;
|
|
131
59
|
};
|
|
132
|
-
declare function StyleParser(styles?: Array<string> | Record<string, boolean> | string): {};
|
|
133
|
-
declare function MergeStyles(...params: any): any;
|
|
134
|
-
declare const extendVnode: (
|
|
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
|
|
138
|
-
declare
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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;
|
|
147
|
-
|
|
148
|
-
export { MergeStyles, Prop, StyleParser, access, dataPath, _default as default, defineReactiveView, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, showComponent, useSubscription };
|
|
60
|
+
export declare function StyleParser(styles?: Array<string> | Record<string, boolean> | string): {};
|
|
61
|
+
export declare function MergeStyles(...params: any): any;
|
|
62
|
+
export declare const extendVnode: (...params: [Record<string, any>, any]) => any;
|
|
63
|
+
export declare function defineReactiveView(): ReturnType<typeof defineComponent>;
|
|
64
|
+
export declare function defineReactiveView(options: Record<string, any>): ReturnType<typeof defineComponent>;
|
|
65
|
+
export declare function defineReactiveView(options: Record<string, any>, component: typeof ReactiveView): ReturnType<typeof defineComponent>;
|
|
66
|
+
export declare const setData: (component: any, data: any, path?: string) => any;
|
|
67
|
+
export declare const getData: (component: any, path: number | string, alternative: any) => any;
|
|
68
|
+
export declare const dataPath: (component: any, path: string | number) => any;
|
|
69
|
+
export declare function throwError(e: any): void;
|