giime 0.0.0-dev.10 → 0.0.0-dev.13
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/README.md +11 -10
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +1 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/src/message/index.d.ts +2 -0
- package/es/components/src/message/index.mjs +7 -0
- package/es/components/src/message/index.mjs.map +1 -0
- package/es/components/src/message/method.d.ts +4 -0
- package/es/components/src/message/method.mjs +23 -0
- package/es/components/src/message/method.mjs.map +1 -0
- package/es/components/src/test/index.d.ts +37 -37
- package/es/components/src/test/index.mjs +2 -1
- package/es/components/src/test/index.mjs.map +1 -1
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +2 -0
- package/es/constants/index.mjs.map +1 -0
- package/es/constants/key.d.ts +1 -0
- package/es/constants/key.mjs +4 -0
- package/es/constants/key.mjs.map +1 -0
- package/es/giime/component.d.ts +2 -242
- package/es/giime/component.mjs +2 -2
- package/es/giime/component.mjs.map +1 -1
- package/es/giime/defaults.d.ts +5 -0
- package/es/giime/defaults.mjs +8 -0
- package/es/giime/defaults.mjs.map +1 -0
- package/es/giime/index.d.ts +4 -0
- package/es/giime/index.mjs +7 -0
- package/es/giime/index.mjs.map +1 -1
- package/es/giime/makeInstaller.d.ts +5 -0
- package/es/giime/makeInstaller.mjs +19 -0
- package/es/giime/makeInstaller.mjs.map +1 -0
- package/es/giime/plugin.d.ts +3 -0
- package/es/giime/plugin.mjs +7 -0
- package/es/giime/plugin.mjs.map +1 -0
- package/es/giime/version.d.ts +1 -0
- package/es/giime/version.mjs +4 -0
- package/es/giime/version.mjs.map +1 -0
- package/es/utils/src/vue/install.d.ts +6 -0
- package/es/utils/src/vue/install.mjs +35 -0
- package/es/utils/src/vue/install.mjs.map +1 -0
- package/es/utils/src/vue/typescript.d.ts +5 -0
- package/es/utils/src/vue/typescript.mjs +2 -0
- package/es/utils/src/vue/typescript.mjs.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/src/message/index.d.ts +2 -0
- package/lib/components/src/message/index.js +12 -0
- package/lib/components/src/message/index.js.map +1 -0
- package/lib/components/src/message/method.d.ts +4 -0
- package/lib/components/src/message/method.js +28 -0
- package/lib/components/src/message/method.js.map +1 -0
- package/lib/components/src/test/index.d.ts +37 -37
- package/lib/components/src/test/index.js +2 -1
- package/lib/components/src/test/index.js.map +1 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +8 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/constants/key.d.ts +1 -0
- package/lib/constants/key.js +6 -0
- package/lib/constants/key.js.map +1 -0
- package/lib/giime/component.d.ts +2 -242
- package/lib/giime/component.js +2 -2
- package/lib/giime/component.js.map +1 -1
- package/lib/giime/defaults.d.ts +5 -0
- package/lib/giime/defaults.js +12 -0
- package/lib/giime/defaults.js.map +1 -0
- package/lib/giime/index.d.ts +4 -0
- package/lib/giime/index.js +10 -1
- package/lib/giime/index.js.map +1 -1
- package/lib/giime/makeInstaller.d.ts +5 -0
- package/lib/giime/makeInstaller.js +21 -0
- package/lib/giime/makeInstaller.js.map +1 -0
- package/lib/giime/plugin.d.ts +3 -0
- package/lib/giime/plugin.js +11 -0
- package/lib/giime/plugin.js.map +1 -0
- package/lib/giime/version.d.ts +1 -0
- package/lib/giime/version.js +6 -0
- package/lib/giime/version.js.map +1 -0
- package/lib/utils/src/vue/install.d.ts +6 -0
- package/lib/utils/src/vue/install.js +40 -0
- package/lib/utils/src/vue/install.js.map +1 -0
- package/lib/utils/src/vue/typescript.d.ts +5 -0
- package/lib/utils/src/vue/typescript.js +3 -0
- package/lib/utils/src/vue/typescript.js.map +1 -0
- package/package.json +9 -1
package/lib/giime/component.d.ts
CHANGED
|
@@ -1,243 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
elBtnProps: {
|
|
7
|
-
type: () => import("@vue/runtime-core").ExtractPropTypes<{
|
|
8
|
-
readonly size: {
|
|
9
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
10
|
-
readonly required: false;
|
|
11
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
12
|
-
__epPropKey: true;
|
|
13
|
-
};
|
|
14
|
-
readonly disabled: BooleanConstructor;
|
|
15
|
-
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown, "", boolean>;
|
|
16
|
-
readonly icon: {
|
|
17
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown>>;
|
|
18
|
-
readonly required: false;
|
|
19
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
|
-
__epPropKey: true;
|
|
21
|
-
};
|
|
22
|
-
readonly nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
|
|
23
|
-
readonly loading: BooleanConstructor;
|
|
24
|
-
readonly loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
25
|
-
readonly plain: BooleanConstructor;
|
|
26
|
-
readonly text: BooleanConstructor;
|
|
27
|
-
readonly link: BooleanConstructor;
|
|
28
|
-
readonly bg: BooleanConstructor;
|
|
29
|
-
readonly autofocus: BooleanConstructor;
|
|
30
|
-
readonly round: BooleanConstructor;
|
|
31
|
-
readonly circle: BooleanConstructor;
|
|
32
|
-
readonly color: StringConstructor;
|
|
33
|
-
readonly dark: BooleanConstructor;
|
|
34
|
-
readonly autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
35
|
-
readonly tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
36
|
-
}>;
|
|
37
|
-
default: () => {
|
|
38
|
-
size: {
|
|
39
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
40
|
-
readonly required: false;
|
|
41
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
42
|
-
__epPropKey: true;
|
|
43
|
-
};
|
|
44
|
-
disabled: BooleanConstructor;
|
|
45
|
-
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown, "", boolean>;
|
|
46
|
-
icon: {
|
|
47
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown>>;
|
|
48
|
-
readonly required: false;
|
|
49
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
|
-
__epPropKey: true;
|
|
51
|
-
};
|
|
52
|
-
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
|
|
53
|
-
loading: BooleanConstructor;
|
|
54
|
-
loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
55
|
-
plain: BooleanConstructor;
|
|
56
|
-
text: BooleanConstructor;
|
|
57
|
-
link: BooleanConstructor;
|
|
58
|
-
bg: BooleanConstructor;
|
|
59
|
-
autofocus: BooleanConstructor;
|
|
60
|
-
round: BooleanConstructor;
|
|
61
|
-
circle: BooleanConstructor;
|
|
62
|
-
color: StringConstructor;
|
|
63
|
-
dark: BooleanConstructor;
|
|
64
|
-
autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
65
|
-
tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
size: {
|
|
69
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
70
|
-
readonly required: false;
|
|
71
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
72
|
-
__epPropKey: true;
|
|
73
|
-
};
|
|
74
|
-
disabled: BooleanConstructor;
|
|
75
|
-
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown, "", boolean>;
|
|
76
|
-
icon: {
|
|
77
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown>>;
|
|
78
|
-
readonly required: false;
|
|
79
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
80
|
-
__epPropKey: true;
|
|
81
|
-
};
|
|
82
|
-
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
|
|
83
|
-
loading: BooleanConstructor;
|
|
84
|
-
loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
85
|
-
plain: BooleanConstructor;
|
|
86
|
-
text: BooleanConstructor;
|
|
87
|
-
link: BooleanConstructor;
|
|
88
|
-
bg: BooleanConstructor;
|
|
89
|
-
autofocus: BooleanConstructor;
|
|
90
|
-
round: BooleanConstructor;
|
|
91
|
-
circle: BooleanConstructor;
|
|
92
|
-
color: StringConstructor;
|
|
93
|
-
dark: BooleanConstructor;
|
|
94
|
-
autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
95
|
-
tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
96
|
-
}, {}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
97
|
-
finishSubmit: () => void;
|
|
98
|
-
}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
99
|
-
title: {
|
|
100
|
-
type: StringConstructor;
|
|
101
|
-
default: string;
|
|
102
|
-
};
|
|
103
|
-
elBtnProps: {
|
|
104
|
-
type: () => import("@vue/runtime-core").ExtractPropTypes<{
|
|
105
|
-
readonly size: {
|
|
106
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
107
|
-
readonly required: false;
|
|
108
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
109
|
-
__epPropKey: true;
|
|
110
|
-
};
|
|
111
|
-
readonly disabled: BooleanConstructor;
|
|
112
|
-
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown, "", boolean>;
|
|
113
|
-
readonly icon: {
|
|
114
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown>>;
|
|
115
|
-
readonly required: false;
|
|
116
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
117
|
-
__epPropKey: true;
|
|
118
|
-
};
|
|
119
|
-
readonly nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
|
|
120
|
-
readonly loading: BooleanConstructor;
|
|
121
|
-
readonly loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
122
|
-
readonly plain: BooleanConstructor;
|
|
123
|
-
readonly text: BooleanConstructor;
|
|
124
|
-
readonly link: BooleanConstructor;
|
|
125
|
-
readonly bg: BooleanConstructor;
|
|
126
|
-
readonly autofocus: BooleanConstructor;
|
|
127
|
-
readonly round: BooleanConstructor;
|
|
128
|
-
readonly circle: BooleanConstructor;
|
|
129
|
-
readonly color: StringConstructor;
|
|
130
|
-
readonly dark: BooleanConstructor;
|
|
131
|
-
readonly autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
132
|
-
readonly tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
133
|
-
}>;
|
|
134
|
-
default: () => {
|
|
135
|
-
size: {
|
|
136
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
137
|
-
readonly required: false;
|
|
138
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
139
|
-
__epPropKey: true;
|
|
140
|
-
};
|
|
141
|
-
disabled: BooleanConstructor;
|
|
142
|
-
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown, "", boolean>;
|
|
143
|
-
icon: {
|
|
144
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown>>;
|
|
145
|
-
readonly required: false;
|
|
146
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
147
|
-
__epPropKey: true;
|
|
148
|
-
};
|
|
149
|
-
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
|
|
150
|
-
loading: BooleanConstructor;
|
|
151
|
-
loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
152
|
-
plain: BooleanConstructor;
|
|
153
|
-
text: BooleanConstructor;
|
|
154
|
-
link: BooleanConstructor;
|
|
155
|
-
bg: BooleanConstructor;
|
|
156
|
-
autofocus: BooleanConstructor;
|
|
157
|
-
round: BooleanConstructor;
|
|
158
|
-
circle: BooleanConstructor;
|
|
159
|
-
color: StringConstructor;
|
|
160
|
-
dark: BooleanConstructor;
|
|
161
|
-
autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
162
|
-
tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
size: {
|
|
166
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
167
|
-
readonly required: false;
|
|
168
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
169
|
-
__epPropKey: true;
|
|
170
|
-
};
|
|
171
|
-
disabled: BooleanConstructor;
|
|
172
|
-
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown, "", boolean>;
|
|
173
|
-
icon: {
|
|
174
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown>>;
|
|
175
|
-
readonly required: false;
|
|
176
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
177
|
-
__epPropKey: true;
|
|
178
|
-
};
|
|
179
|
-
nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
|
|
180
|
-
loading: BooleanConstructor;
|
|
181
|
-
loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
182
|
-
plain: BooleanConstructor;
|
|
183
|
-
text: BooleanConstructor;
|
|
184
|
-
link: BooleanConstructor;
|
|
185
|
-
bg: BooleanConstructor;
|
|
186
|
-
autofocus: BooleanConstructor;
|
|
187
|
-
round: BooleanConstructor;
|
|
188
|
-
circle: BooleanConstructor;
|
|
189
|
-
color: StringConstructor;
|
|
190
|
-
dark: BooleanConstructor;
|
|
191
|
-
autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
192
|
-
tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
193
|
-
}>> & {
|
|
194
|
-
onFinishSubmit?: (() => any) | undefined;
|
|
195
|
-
}, {
|
|
196
|
-
text: boolean;
|
|
197
|
-
type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown>;
|
|
198
|
-
disabled: boolean;
|
|
199
|
-
nativeType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "reset" | "submit" | "button", unknown>;
|
|
200
|
-
loading: boolean;
|
|
201
|
-
loadingIcon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown>;
|
|
202
|
-
plain: boolean;
|
|
203
|
-
link: boolean;
|
|
204
|
-
bg: boolean;
|
|
205
|
-
autofocus: boolean;
|
|
206
|
-
round: boolean;
|
|
207
|
-
circle: boolean;
|
|
208
|
-
dark: boolean;
|
|
209
|
-
autoInsertSpace: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
210
|
-
tag: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown>;
|
|
211
|
-
title: string;
|
|
212
|
-
elBtnProps: import("@vue/runtime-core").ExtractPropTypes<{
|
|
213
|
-
readonly size: {
|
|
214
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
215
|
-
readonly required: false;
|
|
216
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
217
|
-
__epPropKey: true;
|
|
218
|
-
};
|
|
219
|
-
readonly disabled: BooleanConstructor;
|
|
220
|
-
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger", unknown, "", boolean>;
|
|
221
|
-
readonly icon: {
|
|
222
|
-
readonly type: import("@vue/runtime-core").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown>>;
|
|
223
|
-
readonly required: false;
|
|
224
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
225
|
-
__epPropKey: true;
|
|
226
|
-
};
|
|
227
|
-
readonly nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "reset" | "submit" | "button", unknown, "button", boolean>;
|
|
228
|
-
readonly loading: BooleanConstructor;
|
|
229
|
-
readonly loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, () => any, boolean>;
|
|
230
|
-
readonly plain: BooleanConstructor;
|
|
231
|
-
readonly text: BooleanConstructor;
|
|
232
|
-
readonly link: BooleanConstructor;
|
|
233
|
-
readonly bg: BooleanConstructor;
|
|
234
|
-
readonly autofocus: BooleanConstructor;
|
|
235
|
-
readonly round: BooleanConstructor;
|
|
236
|
-
readonly circle: BooleanConstructor;
|
|
237
|
-
readonly color: StringConstructor;
|
|
238
|
-
readonly dark: BooleanConstructor;
|
|
239
|
-
readonly autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
240
|
-
readonly tag: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) | ((new (...args: any[]) => (string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>) & {}) | (() => string | import("@vue/runtime-core").Component<any, any, any, import("@vue/runtime-core").ComputedOptions, import("@vue/runtime-core").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
241
|
-
}>;
|
|
242
|
-
}, {}>[];
|
|
1
|
+
import type { Plugin } from 'vue';
|
|
2
|
+
declare const _default: Plugin[];
|
|
243
3
|
export default _default;
|
package/lib/giime/component.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var index = require('../components/src/test/index.js');
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var Components = [index.GmTest];
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = Components;
|
|
10
10
|
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../../../packages/giime/component.ts"],"sourcesContent":["import { GmTest } from '@giime/components/src/test';\n\
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../../../packages/giime/component.ts"],"sourcesContent":["import { GmTest } from '@giime/components/src/test';\n\nimport type { Plugin } from 'vue';\n\nexport default [GmTest] as Plugin[];\n"],"names":["GmTest"],"mappings":";;;;;;AAIA,iBAAe,CAACA,YAAM,CAAA;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var makeInstaller = require('./makeInstaller.js');
|
|
6
|
+
var component = require('./component.js');
|
|
7
|
+
var plugin = require('./plugin.js');
|
|
8
|
+
|
|
9
|
+
var installer = makeInstaller.makeInstaller([...component.default, ...plugin.default]);
|
|
10
|
+
|
|
11
|
+
exports.default = installer;
|
|
12
|
+
//# sourceMappingURL=defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.js","sources":["../../../../packages/giime/defaults.ts"],"sourcesContent":["import { makeInstaller } from './makeInstaller';\nimport Components from './component';\nimport Plugins from './plugin';\n\nexport default makeInstaller([...Components, ...Plugins]);\n"],"names":["makeInstaller","Components","Plugins"],"mappings":";;;;;;;;AAIA,gBAAeA,4BAAc,CAAC,GAAGC,iBAAY,EAAA,GAAGC,cAAO,CAAC,CAAA;;;;"}
|
package/lib/giime/index.d.ts
CHANGED
package/lib/giime/index.js
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var defaults = require('./defaults.js');
|
|
3
6
|
require('./tailwind.css.js');
|
|
4
7
|
require('../components/index.js');
|
|
5
8
|
require('../utils/index.js');
|
|
6
9
|
var test = require('../components/src/test/test.js');
|
|
7
10
|
var index = require('../components/src/test/index.js');
|
|
11
|
+
var index$1 = require('../components/src/message/index.js');
|
|
8
12
|
var is = require('../utils/src/is.js');
|
|
9
13
|
|
|
14
|
+
const install = defaults.default.install;
|
|
15
|
+
const version = defaults.default.version;
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
exports.default = defaults.default;
|
|
12
18
|
exports.testProps = test.testProps;
|
|
13
19
|
exports.GmTest = index.GmTest;
|
|
20
|
+
exports.GmMessage = index$1.GmMessage;
|
|
14
21
|
exports.getTag = is.getTag;
|
|
15
22
|
exports.isBoolean = is.isBoolean;
|
|
16
23
|
exports.isDate = is.isDate;
|
|
@@ -29,4 +36,6 @@ exports.isPositive = is.isPositive;
|
|
|
29
36
|
exports.isString = is.isString;
|
|
30
37
|
exports.isSymbol = is.isSymbol;
|
|
31
38
|
exports.isUndefined = is.isUndefined;
|
|
39
|
+
exports.install = install;
|
|
40
|
+
exports.version = version;
|
|
32
41
|
//# sourceMappingURL=index.js.map
|
package/lib/giime/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../packages/giime/index.ts"],"sourcesContent":["import installer from './defaults';\r\nimport './tailwind.css';\r\nexport * from '@giime/components';\r\nexport * from '@giime/utils';\r\nexport const install = installer.install;\r\nexport const version = installer.version;\r\nexport default installer;\r\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;AAIO,MAAM,UAAUA,gBAAU,CAAA,QAAA;AAC1B,MAAM,UAAUA,gBAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../constants/index.js');
|
|
4
|
+
var version = require('./version.js');
|
|
5
|
+
var key = require('../constants/key.js');
|
|
6
|
+
|
|
7
|
+
const makeInstaller = (components = []) => {
|
|
8
|
+
const install = (app) => {
|
|
9
|
+
if (app[key.INSTALLED_KEY])
|
|
10
|
+
return;
|
|
11
|
+
app[key.INSTALLED_KEY] = true;
|
|
12
|
+
components.forEach((c) => app.use(c));
|
|
13
|
+
};
|
|
14
|
+
return {
|
|
15
|
+
version: version.version,
|
|
16
|
+
install
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports.makeInstaller = makeInstaller;
|
|
21
|
+
//# sourceMappingURL=makeInstaller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeInstaller.js","sources":["../../../../packages/giime/makeInstaller.ts"],"sourcesContent":["import { INSTALLED_KEY } from '@giime/constants';\nimport { version } from './version';\nimport type { Plugin } from '@vue/runtime-core';\n\nexport const makeInstaller = (components: Plugin[] = []) => {\n const install = (app: any) => {\n if (app[INSTALLED_KEY]) return;\n\n app[INSTALLED_KEY] = true;\n components.forEach(c => app.use(c));\n };\n\n return {\n version,\n install,\n };\n};\n"],"names":["INSTALLED_KEY","version"],"mappings":";;;;;;AAIO,MAAM,aAAgB,GAAA,CAAC,UAAuB,GAAA,EAAO,KAAA;AAC1D,EAAM,MAAA,OAAA,GAAU,CAAC,GAAa,KAAA;AAC5B,IAAA,IAAI,IAAIA,iBAAa,CAAA;AAAG,MAAA,OAAA;AAExB,IAAA,GAAA,CAAIA,iBAAa,CAAI,GAAA,IAAA,CAAA;AACrB,IAAA,UAAA,CAAW,OAAQ,CAAA,CAAA,CAAA,KAAK,GAAI,CAAA,GAAA,CAAI,CAAC,CAAC,CAAA,CAAA;AAAA,GACpC,CAAA;AAEA,EAAO,OAAA;AAAA,aACLC,eAAA;AAAA,IACA,OAAA;AAAA,GACF,CAAA;AACF;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../components/index.js');
|
|
6
|
+
var index = require('../components/src/message/index.js');
|
|
7
|
+
|
|
8
|
+
var Plugins = [index.GmMessage];
|
|
9
|
+
|
|
10
|
+
exports.default = Plugins;
|
|
11
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["../../../../packages/giime/plugin.ts"],"sourcesContent":["import { GmMessage } from '@giime/components';\n\nimport type { Plugin } from 'vue';\n\nexport default [GmMessage] as Plugin[];\n"],"names":["GmMessage"],"mappings":";;;;;;;AAIA,cAAe,CAACA,eAAS,CAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "0.0.0-dev.13";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.0-dev.13'\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Directive } from 'vue';
|
|
2
|
+
import type { SFCInstallWithContext, SFCWithInstall } from './typescript';
|
|
3
|
+
export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E | undefined) => SFCWithInstall<T> & E;
|
|
4
|
+
export declare const withInstallFunction: <T>(fn: T, name: string) => SFCInstallWithContext<T>;
|
|
5
|
+
export declare const withInstallDirective: <T extends Directive>(directive: T, name: string) => SFCWithInstall<T>;
|
|
6
|
+
export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var shared = require('@vue/shared');
|
|
4
|
+
|
|
5
|
+
const withInstall = (main, extra) => {
|
|
6
|
+
main.install = (app) => {
|
|
7
|
+
for (const comp of [main, ...Object.values(extra ?? {})]) {
|
|
8
|
+
app.component(comp.name, comp);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
if (extra) {
|
|
12
|
+
for (const [key, comp] of Object.entries(extra)) {
|
|
13
|
+
main[key] = comp;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return main;
|
|
17
|
+
};
|
|
18
|
+
const withInstallFunction = (fn, name) => {
|
|
19
|
+
fn.install = (app) => {
|
|
20
|
+
fn._context = app._context;
|
|
21
|
+
app.config.globalProperties[name] = fn;
|
|
22
|
+
};
|
|
23
|
+
return fn;
|
|
24
|
+
};
|
|
25
|
+
const withInstallDirective = (directive, name) => {
|
|
26
|
+
directive.install = (app) => {
|
|
27
|
+
app.directive(name, directive);
|
|
28
|
+
};
|
|
29
|
+
return directive;
|
|
30
|
+
};
|
|
31
|
+
const withNoopInstall = (component) => {
|
|
32
|
+
component.install = shared.NOOP;
|
|
33
|
+
return component;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.withInstall = withInstall;
|
|
37
|
+
exports.withInstallDirective = withInstallDirective;
|
|
38
|
+
exports.withInstallFunction = withInstallFunction;
|
|
39
|
+
exports.withNoopInstall = withNoopInstall;
|
|
40
|
+
//# sourceMappingURL=install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.js","sources":["../../../../../../packages/utils/src/vue/install.ts"],"sourcesContent":["import { NOOP } from '@vue/shared';\r\n\r\nimport type { App, Directive } from 'vue';\r\nimport type { SFCInstallWithContext, SFCWithInstall } from './typescript';\r\n\r\nexport const withInstall = <T, E extends Record<string, any>>(main: T, extra?: E) => {\r\n (main as SFCWithInstall<T>).install = (app: App<any>): void => {\r\n for (const comp of [main, ...Object.values(extra ?? {})]) {\r\n app.component(comp.name, comp);\r\n }\r\n };\r\n\r\n if (extra) {\r\n for (const [key, comp] of Object.entries(extra)) {\r\n (main as any)[key] = comp;\r\n }\r\n }\r\n return main as SFCWithInstall<T> & E;\r\n};\r\n\r\nexport const withInstallFunction = <T>(fn: T, name: string) => {\r\n (fn as SFCWithInstall<T>).install = (app: App) => {\r\n (fn as SFCInstallWithContext<T>)._context = app._context;\r\n app.config.globalProperties[name] = fn;\r\n };\r\n\r\n return fn as SFCInstallWithContext<T>;\r\n};\r\n\r\nexport const withInstallDirective = <T extends Directive>(directive: T, name: string) => {\r\n (directive as SFCWithInstall<T>).install = (app: App): void => {\r\n app.directive(name, directive);\r\n };\r\n\r\n return directive as SFCWithInstall<T>;\r\n};\r\n\r\nexport const withNoopInstall = <T>(component: T) => {\r\n (component as SFCWithInstall<T>).install = NOOP;\r\n\r\n return component as SFCWithInstall<T>;\r\n};\r\n"],"names":["NOOP"],"mappings":";;;;AAKa,MAAA,WAAA,GAAc,CAAmC,IAAA,EAAS,KAAc,KAAA;AACnF,EAAC,IAAA,CAA2B,OAAU,GAAA,CAAC,GAAwB,KAAA;AAC7D,IAAW,KAAA,MAAA,IAAA,IAAQ,CAAC,IAAA,EAAM,GAAG,MAAA,CAAO,OAAO,KAAS,IAAA,EAAE,CAAC,CAAG,EAAA;AACxD,MAAI,GAAA,CAAA,SAAA,CAAU,IAAK,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AAAA,KAC/B;AAAA,GACF,CAAA;AAEA,EAAA,IAAI,KAAO,EAAA;AACT,IAAA,KAAA,MAAW,CAAC,GAAK,EAAA,IAAI,KAAK,MAAO,CAAA,OAAA,CAAQ,KAAK,CAAG,EAAA;AAC/C,MAAC,IAAA,CAAa,GAAG,CAAI,GAAA,IAAA,CAAA;AAAA,KACvB;AAAA,GACF;AACA,EAAO,OAAA,IAAA,CAAA;AACT,EAAA;AAEa,MAAA,mBAAA,GAAsB,CAAI,EAAA,EAAO,IAAiB,KAAA;AAC7D,EAAC,EAAA,CAAyB,OAAU,GAAA,CAAC,GAAa,KAAA;AAChD,IAAC,EAAA,CAAgC,WAAW,GAAI,CAAA,QAAA,CAAA;AAChD,IAAI,GAAA,CAAA,MAAA,CAAO,gBAAiB,CAAA,IAAI,CAAI,GAAA,EAAA,CAAA;AAAA,GACtC,CAAA;AAEA,EAAO,OAAA,EAAA,CAAA;AACT,EAAA;AAEa,MAAA,oBAAA,GAAuB,CAAsB,SAAA,EAAc,IAAiB,KAAA;AACvF,EAAC,SAAA,CAAgC,OAAU,GAAA,CAAC,GAAmB,KAAA;AAC7D,IAAI,GAAA,CAAA,SAAA,CAAU,MAAM,SAAS,CAAA,CAAA;AAAA,GAC/B,CAAA;AAEA,EAAO,OAAA,SAAA,CAAA;AACT,EAAA;AAEa,MAAA,eAAA,GAAkB,CAAI,SAAiB,KAAA;AAClD,EAAC,UAAgC,OAAU,GAAAA,WAAA,CAAA;AAE3C,EAAO,OAAA,SAAA,CAAA;AACT;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "giime",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.13",
|
|
4
4
|
"description": "A Component Library for Vue 3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"giime",
|
|
@@ -26,6 +26,14 @@
|
|
|
26
26
|
"./global": {
|
|
27
27
|
"types": "./global.d.ts"
|
|
28
28
|
},
|
|
29
|
+
"./es": {
|
|
30
|
+
"types": "./es/giime/index.d.ts",
|
|
31
|
+
"import": "./es/giime/index.mjs"
|
|
32
|
+
},
|
|
33
|
+
"./lib": {
|
|
34
|
+
"types": "./lib/giime/index.d.ts",
|
|
35
|
+
"require": "./lib/giime/index.js"
|
|
36
|
+
},
|
|
29
37
|
"./*": "./*"
|
|
30
38
|
},
|
|
31
39
|
"unpkg": "dist/index.full.js",
|