orion-design 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-QrvjS12n.js +401 -0
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-QrvjS12n.js.map +1 -0
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-DmAuOipe.js +313 -0
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-DmAuOipe.js.map +1 -0
- package/dist/components/Edittable/Edittable.d.ts +9 -2
- package/dist/components/Edittable/hooks/useEdittable.d.ts +2 -1
- package/dist/components/Edittable/hooks/useEdittable.js +60 -63
- package/dist/components/Edittable/hooks/useEdittable.js.map +1 -1
- package/dist/components/Edittable/index.d.ts +5 -0
- package/dist/components/Edittable/index.js +360 -324
- package/dist/components/Edittable/index.js.map +1 -1
- package/dist/components/Edittable/utils/index.d.ts +2 -0
- package/dist/components/Edittable/utils/index.js +47 -37
- package/dist/components/Edittable/utils/index.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +7 -1
- package/dist/components/Form/index.js +371 -377
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Input/DateInput/DateInput.d.ts +0 -1
- package/dist/components/Input/DateInput/DateInput.vue.d.ts +3 -0
- package/dist/components/Input/FileInput/FileInput.vue.d.ts +6 -3
- package/dist/components/Input/LovInput/LovInput.d.ts +0 -1
- package/dist/components/Input/LovInput/LovInput.js.map +1 -1
- package/dist/components/Input/LovInput/LovInput.vue.d.ts +6 -6
- package/dist/components/Input/NumberInput/NumberInput.d.ts +0 -1
- package/dist/components/Input/NumberInput/NumberInput.vue.d.ts +3 -0
- package/dist/components/Input/PasswordInput/PasswordInput.d.ts +0 -1
- package/dist/components/Input/PasswordInput/PasswordInput.vue.d.ts +3 -0
- package/dist/components/Input/StringInput/StringInput.d.ts +0 -1
- package/dist/components/Input/StringInput/StringInput.vue.d.ts +3 -0
- package/dist/components/Input/TableSelect/TableSelect.d.ts +0 -1
- package/dist/components/Input/TableSelect/TableSelect.js.map +1 -1
- package/dist/components/Input/TableSelect/TableSelect.vue.d.ts +6 -6
- package/dist/components/Input/Textarea/Textarea.d.ts +0 -1
- package/dist/components/Input/Textarea/Textarea.vue.d.ts +3 -0
- package/dist/components/Input/index.d.ts +35 -9
- package/dist/components/Input/index.js +2 -2
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js +0 -400
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js.map +0 -1
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js +0 -310
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js.map +0 -1
@@ -3,8 +3,11 @@ export declare const StringInput: import('../_util').SFCWithInstall<{
|
|
3
3
|
modelValue?: string;
|
4
4
|
} & import('./StringInput').StringInputProps> & Readonly<{
|
5
5
|
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
6
|
+
onChange?: ((value: string) => any) | undefined;
|
6
7
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
7
8
|
"update:modelValue": (modelValue: string) => any;
|
9
|
+
} & {
|
10
|
+
change: (value: string) => any;
|
8
11
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
9
12
|
P: {};
|
10
13
|
B: {};
|
@@ -16,6 +19,7 @@ export declare const StringInput: import('../_util').SFCWithInstall<{
|
|
16
19
|
modelValue?: string;
|
17
20
|
} & import('./StringInput').StringInputProps> & Readonly<{
|
18
21
|
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
22
|
+
onChange?: ((value: string) => any) | undefined;
|
19
23
|
}>, {}, {}, {}, {}, {}>;
|
20
24
|
__isFragment?: never;
|
21
25
|
__isTeleport?: never;
|
@@ -24,8 +28,11 @@ export declare const StringInput: import('../_util').SFCWithInstall<{
|
|
24
28
|
modelValue?: string;
|
25
29
|
} & import('./StringInput').StringInputProps> & Readonly<{
|
26
30
|
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
31
|
+
onChange?: ((value: string) => any) | undefined;
|
27
32
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
28
33
|
"update:modelValue": (modelValue: string) => any;
|
34
|
+
} & {
|
35
|
+
change: (value: string) => any;
|
29
36
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
30
37
|
$slots: {
|
31
38
|
prefix?(_: {}): any;
|
@@ -38,19 +45,25 @@ export declare const PasswordInput: import('../_util').SFCWithInstall<import('vu
|
|
38
45
|
modelValue?: string;
|
39
46
|
} & import('./PasswordInput').PasswordInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
40
47
|
"update:modelValue": (modelValue: string) => any;
|
48
|
+
} & {
|
49
|
+
change: (value: string) => any;
|
41
50
|
}, string, import('vue').PublicProps, Readonly<{
|
42
51
|
modelValue?: string;
|
43
52
|
} & import('./PasswordInput').PasswordInputProps> & Readonly<{
|
44
53
|
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
54
|
+
onChange?: ((value: string) => any) | undefined;
|
45
55
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>> & Record<string, any>;
|
46
56
|
export declare const Textarea: import('../_util').SFCWithInstall<import('vue').DefineComponent<{
|
47
57
|
modelValue?: string;
|
48
58
|
} & import('./Textarea').TextareaProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
49
59
|
"update:modelValue": (modelValue: string) => any;
|
60
|
+
} & {
|
61
|
+
change: (value: string) => any;
|
50
62
|
}, string, import('vue').PublicProps, Readonly<{
|
51
63
|
modelValue?: string;
|
52
64
|
} & import('./Textarea').TextareaProps> & Readonly<{
|
53
65
|
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
66
|
+
onChange?: ((value: string) => any) | undefined;
|
54
67
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>> & Record<string, any>;
|
55
68
|
export declare const SingleSelect: import('../_util').SFCWithInstall<import('vue').DefineComponent<{
|
56
69
|
modelValue?: string;
|
@@ -128,19 +141,25 @@ export declare const DateInput: import('../_util').SFCWithInstall<import('vue').
|
|
128
141
|
modelValue?: Date | string;
|
129
142
|
} & import('./DateInput').DateInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
130
143
|
"update:modelValue": (modelValue: string | Date) => any;
|
144
|
+
} & {
|
145
|
+
change: (value: string | Date) => any;
|
131
146
|
}, string, import('vue').PublicProps, Readonly<{
|
132
147
|
modelValue?: Date | string;
|
133
148
|
} & import('./DateInput').DateInputProps> & Readonly<{
|
134
149
|
"onUpdate:modelValue"?: ((modelValue: string | Date) => any) | undefined;
|
150
|
+
onChange?: ((value: string | Date) => any) | undefined;
|
135
151
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>> & Record<string, any>;
|
136
152
|
export declare const FileInput: import('../_util').SFCWithInstall<import('vue').DefineComponent<{
|
137
153
|
modelValue?: File;
|
138
154
|
} & import('./FileInput').FileInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
139
155
|
"update:modelValue": (modelValue: File) => any;
|
156
|
+
} & {
|
157
|
+
change: (value: File) => any;
|
140
158
|
}, string, import('vue').PublicProps, Readonly<{
|
141
159
|
modelValue?: File;
|
142
160
|
} & import('./FileInput').FileInputProps> & Readonly<{
|
143
161
|
"onUpdate:modelValue"?: ((modelValue: File) => any) | undefined;
|
162
|
+
onChange?: ((value: File) => any) | undefined;
|
144
163
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
145
164
|
inputRef: ({
|
146
165
|
$: import('vue').ComponentInternalInstance;
|
@@ -168,9 +187,9 @@ export declare const FileInput: import('../_util').SFCWithInstall<import('vue').
|
|
168
187
|
readonly autofocus: boolean;
|
169
188
|
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
170
189
|
readonly clearable: boolean;
|
171
|
-
readonly readonly: boolean;
|
172
190
|
readonly autosize: import('element-plus').InputAutoSize;
|
173
191
|
readonly autocomplete: string;
|
192
|
+
readonly readonly: boolean;
|
174
193
|
readonly showPassword: boolean;
|
175
194
|
readonly showWordLimit: boolean;
|
176
195
|
readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
@@ -202,7 +221,7 @@ export declare const FileInput: import('../_util').SFCWithInstall<import('vue').
|
|
202
221
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
203
222
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
204
223
|
onClear?: (() => any) | undefined;
|
205
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "
|
224
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows">;
|
206
225
|
$attrs: {
|
207
226
|
[x: string]: unknown;
|
208
227
|
};
|
@@ -490,7 +509,7 @@ export declare const FileInput: import('../_util').SFCWithInstall<import('vue').
|
|
490
509
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
491
510
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
492
511
|
onClear?: (() => any) | undefined;
|
493
|
-
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "
|
512
|
+
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "blur" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
494
513
|
input: import('vue').ShallowRef<HTMLInputElement | undefined>;
|
495
514
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
|
496
515
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
@@ -13440,9 +13459,9 @@ export declare const LovInput: import('../_util').SFCWithInstall<{
|
|
13440
13459
|
readonly autofocus: boolean;
|
13441
13460
|
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
13442
13461
|
readonly clearable: boolean;
|
13443
|
-
readonly readonly: boolean;
|
13444
13462
|
readonly autosize: import('element-plus').InputAutoSize;
|
13445
13463
|
readonly autocomplete: string;
|
13464
|
+
readonly readonly: boolean;
|
13446
13465
|
readonly showPassword: boolean;
|
13447
13466
|
readonly showWordLimit: boolean;
|
13448
13467
|
readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
@@ -13474,7 +13493,7 @@ export declare const LovInput: import('../_util').SFCWithInstall<{
|
|
13474
13493
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
13475
13494
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
13476
13495
|
onClear?: (() => any) | undefined;
|
13477
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "
|
13496
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows">;
|
13478
13497
|
$attrs: {
|
13479
13498
|
[x: string]: unknown;
|
13480
13499
|
};
|
@@ -13762,7 +13781,7 @@ export declare const LovInput: import('../_util').SFCWithInstall<{
|
|
13762
13781
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
13763
13782
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
13764
13783
|
onClear?: (() => any) | undefined;
|
13765
|
-
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "
|
13784
|
+
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "blur" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
13766
13785
|
input: import('vue').ShallowRef<HTMLInputElement | undefined>;
|
13767
13786
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
|
13768
13787
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
@@ -13820,8 +13839,11 @@ export declare const NumberInput: import('../_util').SFCWithInstall<{
|
|
13820
13839
|
modelValue?: number;
|
13821
13840
|
} & import('./NumberInput').NumberInputProps> & Readonly<{
|
13822
13841
|
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
13842
|
+
onChange?: ((value: number | undefined) => any) | undefined;
|
13823
13843
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
13824
13844
|
"update:modelValue": (modelValue: number) => any;
|
13845
|
+
} & {
|
13846
|
+
change: (value: number | undefined) => any;
|
13825
13847
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
13826
13848
|
P: {};
|
13827
13849
|
B: {};
|
@@ -13833,6 +13855,7 @@ export declare const NumberInput: import('../_util').SFCWithInstall<{
|
|
13833
13855
|
modelValue?: number;
|
13834
13856
|
} & import('./NumberInput').NumberInputProps> & Readonly<{
|
13835
13857
|
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
13858
|
+
onChange?: ((value: number | undefined) => any) | undefined;
|
13836
13859
|
}>, {}, {}, {}, {}, {}>;
|
13837
13860
|
__isFragment?: never;
|
13838
13861
|
__isTeleport?: never;
|
@@ -13841,8 +13864,11 @@ export declare const NumberInput: import('../_util').SFCWithInstall<{
|
|
13841
13864
|
modelValue?: number;
|
13842
13865
|
} & import('./NumberInput').NumberInputProps> & Readonly<{
|
13843
13866
|
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
13867
|
+
onChange?: ((value: number | undefined) => any) | undefined;
|
13844
13868
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
13845
13869
|
"update:modelValue": (modelValue: number) => any;
|
13870
|
+
} & {
|
13871
|
+
change: (value: number | undefined) => any;
|
13846
13872
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
13847
13873
|
$slots: {
|
13848
13874
|
"decrease-icon"?(_: {}): any;
|
@@ -26778,9 +26804,9 @@ export declare const TableSelect: import('../_util').SFCWithInstall<{
|
|
26778
26804
|
readonly autofocus: boolean;
|
26779
26805
|
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
26780
26806
|
readonly clearable: boolean;
|
26781
|
-
readonly readonly: boolean;
|
26782
26807
|
readonly autosize: import('element-plus').InputAutoSize;
|
26783
26808
|
readonly autocomplete: string;
|
26809
|
+
readonly readonly: boolean;
|
26784
26810
|
readonly showPassword: boolean;
|
26785
26811
|
readonly showWordLimit: boolean;
|
26786
26812
|
readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
@@ -26812,7 +26838,7 @@ export declare const TableSelect: import('../_util').SFCWithInstall<{
|
|
26812
26838
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
26813
26839
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
26814
26840
|
onClear?: (() => any) | undefined;
|
26815
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "
|
26841
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows">;
|
26816
26842
|
$attrs: {
|
26817
26843
|
[x: string]: unknown;
|
26818
26844
|
};
|
@@ -27100,7 +27126,7 @@ export declare const TableSelect: import('../_util').SFCWithInstall<{
|
|
27100
27126
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
27101
27127
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
27102
27128
|
onClear?: (() => any) | undefined;
|
27103
|
-
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "
|
27129
|
+
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "blur" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
27104
27130
|
input: import('vue').ShallowRef<HTMLInputElement | undefined>;
|
27105
27131
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
|
27106
27132
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
@@ -2,8 +2,8 @@ import "lodash-es";
|
|
2
2
|
import "vue";
|
3
3
|
import { withInstall as s } from "../_util/vue/install.js";
|
4
4
|
import "element-plus";
|
5
|
-
import { _ as t, a, b as o, c, d as n, e, f as _ } from "../../LovInput.vue_vue_type_script_setup_true_lang-
|
6
|
-
import { _ as m, a as i, b as f, c as r, d as p, e as l, f as u } from "../../TableSelect.vue_vue_type_script_setup_true_lang-
|
5
|
+
import { _ as t, a, b as o, c, d as n, e, f as _ } from "../../LovInput.vue_vue_type_script_setup_true_lang-QrvjS12n.js";
|
6
|
+
import { _ as m, a as i, b as f, c as r, d as p, e as l, f as u } from "../../TableSelect.vue_vue_type_script_setup_true_lang-DmAuOipe.js";
|
7
7
|
import { lovContextKey as R } from "./LovInput/LovInput.js";
|
8
8
|
import { default as q } from "./LovInput/hooks/useLov.js";
|
9
9
|
import { tableSelectContext as A } from "./TableSelect/TableSelect.js";
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: "1.0.
|
1
|
+
declare const _default: "1.0.4";
|
2
2
|
export default _default;
|
package/dist/version/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../src/version/version.ts"],"sourcesContent":["export default '1.0.
|
1
|
+
{"version":3,"file":"version.js","sources":["../../src/version/version.ts"],"sourcesContent":["export default '1.0.4';"],"names":["version"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/package.json
CHANGED
@@ -1,400 +0,0 @@
|
|
1
|
-
import { defineComponent as g, mergeModels as c, useSlots as $, useModel as V, openBlock as m, createBlock as p, unref as n, createSlots as A, withCtx as f, renderSlot as y, computed as b, createElementBlock as D, Fragment as T, renderList as E, ref as w, useTemplateRef as C, provide as j, reactive as N, createVNode as L } from "vue";
|
2
|
-
import { ElInput as O, ElSelect as U, ElOption as Y, dayjs as M, ElTimePicker as R, ElDatePicker as W, ElInputNumber as x, ElCheckbox as z, ElDropdown as K } from "element-plus";
|
3
|
-
import { useInputCode as I } from "./components/Input/hooks/index.js";
|
4
|
-
import { getSingleCodeContent as G, getMultiCodeContent as q } from "./components/Input/utils/index.js";
|
5
|
-
import S from "./error/OrionError.js";
|
6
|
-
import { isDate as J, isString as Q, toNumber as X } from "lodash-es";
|
7
|
-
import { lovContextKey as Z } from "./components/Input/LovInput/LovInput.js";
|
8
|
-
import { cG as _ } from "./index-CIR6wX_E.js";
|
9
|
-
const ie = /* @__PURE__ */ g({
|
10
|
-
name: "OStringInput",
|
11
|
-
inheritAttrs: !1,
|
12
|
-
__name: "StringInput",
|
13
|
-
props: /* @__PURE__ */ c({
|
14
|
-
maxlength: {},
|
15
|
-
placeholder: {},
|
16
|
-
disabled: { type: Boolean },
|
17
|
-
readonly: { type: Boolean }
|
18
|
-
}, {
|
19
|
-
modelValue: {},
|
20
|
-
modelModifiers: {}
|
21
|
-
}),
|
22
|
-
emits: ["update:modelValue"],
|
23
|
-
setup(a) {
|
24
|
-
const s = $(), u = V(a, "modelValue");
|
25
|
-
return (r, e) => (m(), p(n(O), {
|
26
|
-
modelValue: u.value,
|
27
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) => u.value = o),
|
28
|
-
maxlength: r.maxlength,
|
29
|
-
placeholder: r.placeholder,
|
30
|
-
disabled: r.disabled,
|
31
|
-
readonly: r.readonly
|
32
|
-
}, A({ _: 2 }, [
|
33
|
-
n(s).prefix ? {
|
34
|
-
name: "prefix",
|
35
|
-
fn: f(() => [
|
36
|
-
y(r.$slots, "prefix")
|
37
|
-
]),
|
38
|
-
key: "0"
|
39
|
-
} : void 0,
|
40
|
-
n(s).suffix ? {
|
41
|
-
name: "suffix",
|
42
|
-
fn: f(() => [
|
43
|
-
y(r.$slots, "suffix")
|
44
|
-
]),
|
45
|
-
key: "1"
|
46
|
-
} : void 0,
|
47
|
-
n(s).prepend ? {
|
48
|
-
name: "prepend",
|
49
|
-
fn: f(() => [
|
50
|
-
y(r.$slots, "prepend")
|
51
|
-
]),
|
52
|
-
key: "2"
|
53
|
-
} : void 0,
|
54
|
-
n(s).append ? {
|
55
|
-
name: "append",
|
56
|
-
fn: f(() => [
|
57
|
-
y(r.$slots, "append")
|
58
|
-
]),
|
59
|
-
key: "3"
|
60
|
-
} : void 0
|
61
|
-
]), 1032, ["modelValue", "maxlength", "placeholder", "disabled", "readonly"]));
|
62
|
-
}
|
63
|
-
}), ue = /* @__PURE__ */ g({
|
64
|
-
name: "OSingleSelect",
|
65
|
-
inheritAttrs: !1,
|
66
|
-
__name: "SingleSelect",
|
67
|
-
props: /* @__PURE__ */ c({
|
68
|
-
placeholder: {},
|
69
|
-
disabled: { type: Boolean },
|
70
|
-
code: {},
|
71
|
-
clearable: { type: Boolean },
|
72
|
-
filterable: { type: Boolean }
|
73
|
-
}, {
|
74
|
-
modelValue: {},
|
75
|
-
modelModifiers: {}
|
76
|
-
}),
|
77
|
-
emits: /* @__PURE__ */ c(["change"], ["update:modelValue"]),
|
78
|
-
setup(a, { emit: s }) {
|
79
|
-
const u = s, r = (d) => {
|
80
|
-
u("change", d);
|
81
|
-
}, e = V(a, "modelValue"), o = I(), l = b(() => e.value ? G(o.value, e.value) : null);
|
82
|
-
return (d, t) => d.disabled ? (m(), p(n(O), {
|
83
|
-
key: 0,
|
84
|
-
"model-value": l.value,
|
85
|
-
placeholder: d.placeholder,
|
86
|
-
disabled: !0,
|
87
|
-
readonly: !0
|
88
|
-
}, null, 8, ["model-value", "placeholder"])) : (m(), p(n(U), {
|
89
|
-
key: 1,
|
90
|
-
modelValue: e.value,
|
91
|
-
"onUpdate:modelValue": t[0] || (t[0] = (v) => e.value = v),
|
92
|
-
placeholder: d.placeholder,
|
93
|
-
clearable: d.clearable,
|
94
|
-
filterable: d.filterable,
|
95
|
-
onChange: r
|
96
|
-
}, {
|
97
|
-
default: f(() => [
|
98
|
-
(m(!0), D(T, null, E(n(o), (v) => (m(), p(n(Y), {
|
99
|
-
key: v.value,
|
100
|
-
label: v.content,
|
101
|
-
value: v.value
|
102
|
-
}, null, 8, ["label", "value"]))), 128))
|
103
|
-
]),
|
104
|
-
_: 1
|
105
|
-
}, 8, ["modelValue", "placeholder", "clearable", "filterable"]));
|
106
|
-
}
|
107
|
-
}), me = /* @__PURE__ */ g({
|
108
|
-
name: "OMultiSelect",
|
109
|
-
inheritAttrs: !1,
|
110
|
-
__name: "MultiSelect",
|
111
|
-
props: /* @__PURE__ */ c({
|
112
|
-
placeholder: {},
|
113
|
-
disabled: { type: Boolean },
|
114
|
-
code: {},
|
115
|
-
collapseTags: { type: Boolean },
|
116
|
-
collapseTagsTooltip: { type: Boolean }
|
117
|
-
}, {
|
118
|
-
modelValue: {},
|
119
|
-
modelModifiers: {}
|
120
|
-
}),
|
121
|
-
emits: /* @__PURE__ */ c(["change"], ["update:modelValue"]),
|
122
|
-
setup(a, { emit: s }) {
|
123
|
-
const u = s, r = (t) => {
|
124
|
-
u("change", t.join(","));
|
125
|
-
}, e = V(a, "modelValue"), o = b({
|
126
|
-
get: () => {
|
127
|
-
if (e.value)
|
128
|
-
return e.value.split(",");
|
129
|
-
},
|
130
|
-
set: (t) => {
|
131
|
-
t ? e.value = t.join(",") : e.value = "";
|
132
|
-
}
|
133
|
-
}), l = I(), d = b(() => e.value ? q(l.value, e.value) : null);
|
134
|
-
return (t, v) => t.disabled ? (m(), p(n(O), {
|
135
|
-
key: 0,
|
136
|
-
"model-value": d.value,
|
137
|
-
placeholder: t.placeholder,
|
138
|
-
disabled: !0,
|
139
|
-
readonly: !0
|
140
|
-
}, null, 8, ["model-value", "placeholder"])) : (m(), p(n(U), {
|
141
|
-
key: 1,
|
142
|
-
modelValue: o.value,
|
143
|
-
"onUpdate:modelValue": v[0] || (v[0] = (h) => o.value = h),
|
144
|
-
placeholder: t.placeholder,
|
145
|
-
multiple: "",
|
146
|
-
"collapse-tags": t.collapseTags,
|
147
|
-
"collapse-tags-tooltip": t.collapseTagsTooltip,
|
148
|
-
onChange: r
|
149
|
-
}, {
|
150
|
-
default: f(() => [
|
151
|
-
(m(!0), D(T, null, E(n(l), (h) => (m(), p(n(Y), {
|
152
|
-
key: h.value,
|
153
|
-
label: h.content,
|
154
|
-
value: h.value
|
155
|
-
}, null, 8, ["label", "value"]))), 128))
|
156
|
-
]),
|
157
|
-
_: 1
|
158
|
-
}, 8, ["modelValue", "placeholder", "collapse-tags", "collapse-tags-tooltip"]));
|
159
|
-
}
|
160
|
-
}), fe = /* @__PURE__ */ g({
|
161
|
-
name: "ODateInput",
|
162
|
-
inheritAttrs: !1,
|
163
|
-
__name: "DateInput",
|
164
|
-
props: /* @__PURE__ */ c({
|
165
|
-
maxlength: {},
|
166
|
-
placeholder: {},
|
167
|
-
disabled: { type: Boolean },
|
168
|
-
readonly: { type: Boolean },
|
169
|
-
editable: { type: Boolean, default: !0 },
|
170
|
-
clearable: { type: Boolean, default: !0 },
|
171
|
-
format: { default: "YYYY-MM-DD" },
|
172
|
-
sourceFormat: {}
|
173
|
-
}, {
|
174
|
-
modelValue: {},
|
175
|
-
modelModifiers: {}
|
176
|
-
}),
|
177
|
-
emits: ["update:modelValue"],
|
178
|
-
setup(a) {
|
179
|
-
const s = b(() => a.format.startsWith("H") || a.format.startsWith("h") || a.format.startsWith("m") || a.format.startsWith("s")), u = b(() => a.sourceFormat ? a.sourceFormat : s.value ? "HH:mm:ss" : "YYYY-MM-DD"), r = b(() => {
|
180
|
-
let l = "date";
|
181
|
-
return (a.format.indexOf("y") > -1 || a.format.indexOf("Y") > -1) && (l = "year"), a.format.indexOf("M") > -1 && (l = "month"), (a.format.indexOf("d") > -1 || a.format.indexOf("D") > -1) && (l = "date"), (a.format.indexOf("H") > -1 || a.format.indexOf("h") > -1 || a.format.indexOf("k") > -1 || a.format.indexOf("m") > -1 || a.format.indexOf("s") > -1 || a.format.indexOf("S") > -1) && (l = "datetime"), l;
|
182
|
-
}), e = V(a, "modelValue"), o = b({
|
183
|
-
get: () => {
|
184
|
-
if (e.value) {
|
185
|
-
if (J(e.value))
|
186
|
-
return e.value;
|
187
|
-
if (Q(e.value)) {
|
188
|
-
const l = M(e.value, u.value, !0);
|
189
|
-
if (!l.isValid())
|
190
|
-
throw new S(`日期输入框的值无效,不符合${u.value}格式`);
|
191
|
-
return l.toDate();
|
192
|
-
} else
|
193
|
-
throw new S("日期输入框的值只能为字符串或日期类型");
|
194
|
-
}
|
195
|
-
},
|
196
|
-
set: (l) => {
|
197
|
-
a.sourceFormat ? l ? e.value = M(l).format(u.value) : e.value = "" : l ? e.value = l : e.value = void 0;
|
198
|
-
}
|
199
|
-
});
|
200
|
-
return (l, d) => s.value ? (m(), p(n(R), {
|
201
|
-
key: 0,
|
202
|
-
modelValue: o.value,
|
203
|
-
"onUpdate:modelValue": d[0] || (d[0] = (t) => o.value = t),
|
204
|
-
placeholder: l.placeholder,
|
205
|
-
disabled: l.disabled,
|
206
|
-
readonly: l.readonly,
|
207
|
-
editable: l.editable,
|
208
|
-
clearable: l.clearable,
|
209
|
-
format: l.format,
|
210
|
-
"arrow-control": "",
|
211
|
-
style: { width: "100%" }
|
212
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "editable", "clearable", "format"])) : (m(), p(n(W), {
|
213
|
-
key: 1,
|
214
|
-
modelValue: o.value,
|
215
|
-
"onUpdate:modelValue": d[1] || (d[1] = (t) => o.value = t),
|
216
|
-
placeholder: l.placeholder,
|
217
|
-
disabled: l.disabled,
|
218
|
-
readonly: l.readonly,
|
219
|
-
editable: l.editable,
|
220
|
-
clearable: l.clearable,
|
221
|
-
type: r.value,
|
222
|
-
format: l.format,
|
223
|
-
style: { width: "100%" }
|
224
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "editable", "clearable", "type", "format"]));
|
225
|
-
}
|
226
|
-
}), pe = /* @__PURE__ */ g({
|
227
|
-
name: "ONumberInput",
|
228
|
-
inheritAttrs: !1,
|
229
|
-
__name: "NumberInput",
|
230
|
-
props: /* @__PURE__ */ c({
|
231
|
-
placeholder: {},
|
232
|
-
disabled: { type: Boolean },
|
233
|
-
readonly: { type: Boolean },
|
234
|
-
min: {},
|
235
|
-
max: {},
|
236
|
-
step: {},
|
237
|
-
stepStrictly: { type: Boolean },
|
238
|
-
precision: {},
|
239
|
-
controls: { type: Boolean, default: !0 },
|
240
|
-
controlsPosition: {}
|
241
|
-
}, {
|
242
|
-
modelValue: {},
|
243
|
-
modelModifiers: {}
|
244
|
-
}),
|
245
|
-
emits: ["update:modelValue"],
|
246
|
-
setup(a) {
|
247
|
-
const s = $(), u = V(a, "modelValue"), r = b({
|
248
|
-
get: () => X(u.value),
|
249
|
-
set: (e) => {
|
250
|
-
u.value = e;
|
251
|
-
}
|
252
|
-
});
|
253
|
-
return (e, o) => (m(), p(n(x), {
|
254
|
-
modelValue: r.value,
|
255
|
-
"onUpdate:modelValue": o[0] || (o[0] = (l) => r.value = l),
|
256
|
-
placeholder: e.placeholder,
|
257
|
-
disabled: e.disabled,
|
258
|
-
readonly: e.readonly,
|
259
|
-
min: e.min,
|
260
|
-
max: e.max,
|
261
|
-
step: e.step,
|
262
|
-
"step-strictly": e.stepStrictly,
|
263
|
-
precision: e.precision,
|
264
|
-
controls: e.controls,
|
265
|
-
"controls-position": e.controlsPosition,
|
266
|
-
style: { width: "100%" }
|
267
|
-
}, A({ _: 2 }, [
|
268
|
-
n(s)["decrease-icon"] ? {
|
269
|
-
name: "decrease-icon",
|
270
|
-
fn: f(() => [
|
271
|
-
y(e.$slots, "decrease-icon")
|
272
|
-
]),
|
273
|
-
key: "0"
|
274
|
-
} : void 0,
|
275
|
-
n(s)["increase-icon"] ? {
|
276
|
-
name: "increase-icon",
|
277
|
-
fn: f(() => [
|
278
|
-
y(e.$slots, "increase-icon")
|
279
|
-
]),
|
280
|
-
key: "1"
|
281
|
-
} : void 0,
|
282
|
-
n(s).prefix ? {
|
283
|
-
name: "prefix",
|
284
|
-
fn: f(() => [
|
285
|
-
y(e.$slots, "prefix")
|
286
|
-
]),
|
287
|
-
key: "2"
|
288
|
-
} : void 0,
|
289
|
-
n(s).suffix ? {
|
290
|
-
name: "suffix",
|
291
|
-
fn: f(() => [
|
292
|
-
y(e.$slots, "suffix")
|
293
|
-
]),
|
294
|
-
key: "3"
|
295
|
-
} : void 0
|
296
|
-
]), 1032, ["modelValue", "placeholder", "disabled", "readonly", "min", "max", "step", "step-strictly", "precision", "controls", "controls-position"]));
|
297
|
-
}
|
298
|
-
}), ce = /* @__PURE__ */ g({
|
299
|
-
name: "OCheckbox",
|
300
|
-
inheritAttrs: !1,
|
301
|
-
__name: "Checkbox",
|
302
|
-
props: /* @__PURE__ */ c({
|
303
|
-
disabled: { type: Boolean }
|
304
|
-
}, {
|
305
|
-
modelValue: {},
|
306
|
-
modelModifiers: {}
|
307
|
-
}),
|
308
|
-
emits: /* @__PURE__ */ c(["change"], ["update:modelValue"]),
|
309
|
-
setup(a, { emit: s }) {
|
310
|
-
const u = s, r = (l) => {
|
311
|
-
u("change", l ? "1" : "0");
|
312
|
-
}, e = V(a, "modelValue"), o = b({
|
313
|
-
get: () => e.value ? e.value == "1" : !1,
|
314
|
-
set: (l) => {
|
315
|
-
const d = e.value, t = l ? "1" : "0";
|
316
|
-
(d || l) && (e.value = t);
|
317
|
-
}
|
318
|
-
});
|
319
|
-
return (l, d) => (m(), p(n(z), {
|
320
|
-
modelValue: o.value,
|
321
|
-
"onUpdate:modelValue": d[0] || (d[0] = (t) => o.value = t),
|
322
|
-
disabled: l.disabled,
|
323
|
-
onChange: r
|
324
|
-
}, null, 8, ["modelValue", "disabled"]));
|
325
|
-
}
|
326
|
-
}), ve = /* @__PURE__ */ g({
|
327
|
-
name: "OLovInput",
|
328
|
-
inheritAttrs: !1,
|
329
|
-
__name: "LovInput",
|
330
|
-
props: /* @__PURE__ */ c({
|
331
|
-
maxlength: {},
|
332
|
-
placeholder: {},
|
333
|
-
disabled: { type: Boolean },
|
334
|
-
readonly: { type: Boolean }
|
335
|
-
}, {
|
336
|
-
modelValue: {},
|
337
|
-
modelModifiers: {}
|
338
|
-
}),
|
339
|
-
emits: /* @__PURE__ */ c(["select", "clear"], ["update:modelValue"]),
|
340
|
-
setup(a, { emit: s }) {
|
341
|
-
const u = s, r = V(a, "modelValue"), e = w(!1), o = w(!1), l = C("input"), d = C("dropdown"), t = (i) => {
|
342
|
-
e.value = i;
|
343
|
-
}, v = () => {
|
344
|
-
o.value || (o.value = !0), e.value || d.value.handleOpen();
|
345
|
-
};
|
346
|
-
let h;
|
347
|
-
const F = (i) => {
|
348
|
-
h = i;
|
349
|
-
}, H = (i) => {
|
350
|
-
["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Enter", "Space"].indexOf(i.code) > -1 && (e.value && h && h(i.code), i.stopPropagation()), ["ArrowUp", "ArrowDown"].indexOf(i.code) > -1 && !e.value && d.value.handleOpen();
|
351
|
-
}, P = async (i) => {
|
352
|
-
e.value && l.value.focus(), !(i.relatedTarget && i.relatedTarget.closest(".el-popper")) && o.value && u("clear");
|
353
|
-
};
|
354
|
-
return j(
|
355
|
-
Z,
|
356
|
-
N({
|
357
|
-
lovValue: r,
|
358
|
-
backfill: (i) => {
|
359
|
-
d.value.handleClose(), u("select", i), o.value && (o.value = !1);
|
360
|
-
},
|
361
|
-
registerKeydownHandler: F
|
362
|
-
})
|
363
|
-
), (i, k) => (m(), p(n(K), {
|
364
|
-
ref: "dropdown",
|
365
|
-
trigger: "click",
|
366
|
-
onVisibleChange: t,
|
367
|
-
style: { width: "100%" }
|
368
|
-
}, {
|
369
|
-
dropdown: f(() => [
|
370
|
-
y(i.$slots, "default")
|
371
|
-
]),
|
372
|
-
default: f(() => [
|
373
|
-
L(n(O), {
|
374
|
-
ref: "input",
|
375
|
-
modelValue: r.value,
|
376
|
-
"onUpdate:modelValue": k[0] || (k[0] = (B) => r.value = B),
|
377
|
-
maxlength: i.maxlength,
|
378
|
-
placeholder: i.placeholder,
|
379
|
-
disabled: i.disabled,
|
380
|
-
readonly: i.readonly,
|
381
|
-
onInput: v,
|
382
|
-
onKeydown: H,
|
383
|
-
onBlur: P,
|
384
|
-
"suffix-icon": n(_)
|
385
|
-
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "readonly", "suffix-icon"])
|
386
|
-
]),
|
387
|
-
_: 3
|
388
|
-
}, 512));
|
389
|
-
}
|
390
|
-
});
|
391
|
-
export {
|
392
|
-
ie as _,
|
393
|
-
ue as a,
|
394
|
-
me as b,
|
395
|
-
ce as c,
|
396
|
-
fe as d,
|
397
|
-
ve as e,
|
398
|
-
pe as f
|
399
|
-
};
|
400
|
-
//# sourceMappingURL=LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js.map
|