yuyeon 0.0.42-rc2 → 0.0.42-rc24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/yuyeon.js +3762 -3475
- package/dist/yuyeon.umd.cjs +6 -6
- package/lib/components/date-picker/YDateCalendar.scss +82 -82
- package/lib/components/date-picker/YDatePickerControl.mjs.map +1 -1
- package/lib/components/dialog/YDialog.mjs +4 -1
- package/lib/components/dialog/YDialog.mjs.map +1 -1
- package/lib/components/dialog/YDialog.scss +2 -0
- package/lib/components/divider/YDivider.mjs.map +1 -1
- package/lib/components/dropdown/YDropdown.mjs +11 -5
- package/lib/components/dropdown/YDropdown.mjs.map +1 -1
- package/lib/components/dropdown/YDropdown.scss +3 -8
- package/lib/components/field-input/YFieldInput.mjs +22 -15
- package/lib/components/field-input/YFieldInput.mjs.map +1 -1
- package/lib/components/icon/YIcon.mjs +62 -0
- package/lib/components/icon/YIcon.mjs.map +1 -0
- package/lib/components/icon/YIcon.scss +18 -0
- package/lib/components/icon/index.mjs +2 -0
- package/lib/components/icon/index.mjs.map +1 -0
- package/lib/components/icon/poly.mjs +57 -0
- package/lib/components/icon/poly.mjs.map +1 -0
- package/lib/components/icons/index.mjs +14 -0
- package/lib/components/icons/index.mjs.map +1 -1
- package/lib/components/index.mjs +2 -1
- package/lib/components/index.mjs.map +1 -1
- package/lib/components/input/YInput.mjs +173 -308
- package/lib/components/input/YInput.mjs.map +1 -1
- package/lib/components/input/index.mjs.map +1 -1
- package/lib/components/layer/YLayer.mjs +3 -1
- package/lib/components/layer/YLayer.mjs.map +1 -1
- package/lib/components/layer/active-stack.mjs.map +1 -1
- package/lib/components/menu/YMenu.mjs +16 -4
- package/lib/components/menu/YMenu.mjs.map +1 -1
- package/lib/components/select/YSelect.mjs +27 -12
- package/lib/components/select/YSelect.mjs.map +1 -1
- package/lib/components/select/YSelect.scss +3 -8
- package/lib/components/tab/types.mjs.map +1 -1
- package/lib/components/textarea/YTextarea.mjs +159 -0
- package/lib/components/textarea/YTextarea.mjs.map +1 -0
- package/lib/components/textarea/YTextarea.scss +25 -0
- package/lib/components/textarea/index.mjs +2 -0
- package/lib/components/textarea/index.mjs.map +1 -0
- package/lib/components/tree-view/YTreeView.mjs.map +1 -1
- package/lib/components/tree-view/YTreeViewNode.mjs.map +1 -1
- package/lib/composables/communication.mjs.map +1 -1
- package/lib/composables/icon.mjs +161 -0
- package/lib/composables/icon.mjs.map +1 -1
- package/lib/composables/theme/index.mjs.map +1 -1
- package/lib/composables/validation.mjs +101 -0
- package/lib/composables/validation.mjs.map +1 -0
- package/lib/index.mjs +3 -0
- package/lib/index.mjs.map +1 -1
- package/lib/styles/util/_mixin.scss +34 -34
- package/lib/types/index.mjs.map +1 -1
- package/lib/util/date/adapters/yuyeon-date-adapter.mjs +1 -1
- package/lib/util/date/adapters/yuyeon-date-adapter.mjs.map +1 -1
- package/lib/util/date/built-in.mjs +6 -2
- package/lib/util/date/built-in.mjs.map +1 -1
- package/package.json +2 -2
- package/types/abstract/items.d.ts +4 -4
- package/types/components/button/YButton.d.ts +10 -10
- package/types/components/checkbox/YInputCheckbox.d.ts +2 -2
- package/types/components/date-picker/YDateCalendar.d.ts +10 -4
- package/types/components/dialog/YDialog.d.ts +4 -1
- package/types/components/dropdown/YDropdown.d.ts +34 -13
- package/types/components/field-input/YFieldInput.d.ts +121 -53
- package/types/components/form/YForm.d.ts +1 -1
- package/types/components/icon/YIcon.d.ts +81 -0
- package/types/components/icon/index.d.ts +1 -0
- package/types/components/icons/YIconCheckbox.d.ts +2 -2
- package/types/components/icons/YIconSort.d.ts +2 -2
- package/types/components/icons/index.d.ts +48 -0
- package/types/components/index.d.ts +2 -1
- package/types/components/input/YInput.d.ts +120 -91
- package/types/components/layer/YLayer.d.ts +20 -19
- package/types/components/layer/active-stack.d.ts +1 -2
- package/types/components/list/YListItem.d.ts +2 -2
- package/types/components/menu/YMenu.d.ts +8 -3
- package/types/components/pagination/YPagination.d.ts +8 -6
- package/types/components/progress-bar/YProgressBar.d.ts +1 -1
- package/types/components/select/YSelect.d.ts +1483 -272
- package/types/components/snackbar/YSnackbar.d.ts +3 -1
- package/types/components/switch/YSwitch.d.ts +1 -1
- package/types/components/tab/YTab.d.ts +15 -15
- package/types/components/tab/YTabs.d.ts +5 -5
- package/types/components/tab/types.d.ts +1 -0
- package/types/components/table/YDataTable.d.ts +18 -18
- package/types/components/table/YDataTableBody.d.ts +5 -5
- package/types/components/table/YDataTableControl.d.ts +2 -2
- package/types/components/table/YDataTableHead.d.ts +2 -2
- package/types/components/table/YDataTableServer.d.ts +21 -21
- package/types/components/table/YTable.d.ts +4 -4
- package/types/components/table/composibles/header.d.ts +1 -1
- package/types/components/table/composibles/items.d.ts +3 -3
- package/types/components/table/composibles/pagination.d.ts +8 -4
- package/types/components/table/composibles/selection.d.ts +2 -2
- package/types/components/table/composibles/sorting.d.ts +4 -2
- package/types/components/textarea/YTextarea.d.ts +664 -0
- package/types/components/textarea/index.d.ts +1 -0
- package/types/components/tooltip/YTooltip.d.ts +9 -8
- package/types/components/tree-view/YTreeView.d.ts +4 -4
- package/types/components/tree-view/YTreeViewNode.d.ts +9 -9
- package/types/composables/choice.d.ts +1 -1
- package/types/composables/communication.d.ts +7 -2
- package/types/composables/coordinate/index.d.ts +6 -6
- package/types/composables/focus.d.ts +3 -1
- package/types/composables/icon.d.ts +96 -0
- package/types/composables/list-items.d.ts +10 -10
- package/types/composables/theme/index.d.ts +2 -2
- package/types/composables/validation.d.ts +75 -0
- package/types/globals.d.ts +12 -7
- package/types/shims.d.ts +88 -85
- package/types/types/index.d.ts +5 -0
- package/types/util/date/built-in.d.ts +2 -2
|
@@ -18,7 +18,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
18
18
|
coordinateStrategy: Omit<{
|
|
19
19
|
type: PropType<"levitation" | "arrangement" | import("../../composables/coordinate").CoordinateStrategyFn>;
|
|
20
20
|
default: string;
|
|
21
|
-
}, "
|
|
21
|
+
}, "type" | "default"> & {
|
|
22
22
|
type: PropType<string | import("../../composables/coordinate").CoordinateStrategyFn>;
|
|
23
23
|
default: string | import("../../composables/coordinate").CoordinateStrategyFn;
|
|
24
24
|
};
|
|
@@ -29,7 +29,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
29
29
|
align: Omit<{
|
|
30
30
|
type: PropType<"end" | "start" | "center">;
|
|
31
31
|
default: string;
|
|
32
|
-
}, "
|
|
32
|
+
}, "type" | "default"> & {
|
|
33
33
|
type: PropType<string>;
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
@@ -39,7 +39,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
39
39
|
};
|
|
40
40
|
offset: Omit<{
|
|
41
41
|
type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
42
|
-
}, "
|
|
42
|
+
}, "type" | "default"> & {
|
|
43
43
|
type: PropType<NonNullable<string | number | unknown[]>>;
|
|
44
44
|
default: NonNullable<string | number | unknown[]>;
|
|
45
45
|
};
|
|
@@ -80,7 +80,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
80
80
|
openOnHover: Omit<{
|
|
81
81
|
type: PropType<boolean>;
|
|
82
82
|
default: boolean;
|
|
83
|
-
}, "
|
|
83
|
+
}, "type" | "default"> & {
|
|
84
84
|
type: PropType<boolean>;
|
|
85
85
|
default: boolean;
|
|
86
86
|
};
|
|
@@ -188,6 +188,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
188
188
|
};
|
|
189
189
|
layerGroup: import("vue").ComputedRef<HTMLElement>;
|
|
190
190
|
active: import("vue").WritableComputedRef<boolean>;
|
|
191
|
+
finish: import("vue").ShallowRef<boolean>;
|
|
191
192
|
rendered: import("vue").ComputedRef<boolean>;
|
|
192
193
|
lazyValue: import("vue").ComputedRef<any>;
|
|
193
194
|
onAfterUpdate: () => void;
|
|
@@ -1886,7 +1887,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
1886
1887
|
coordinateStrategy: Omit<{
|
|
1887
1888
|
type: PropType<"levitation" | "arrangement" | import("../../composables/coordinate").CoordinateStrategyFn>;
|
|
1888
1889
|
default: string;
|
|
1889
|
-
}, "
|
|
1890
|
+
}, "type" | "default"> & {
|
|
1890
1891
|
type: PropType<string | import("../../composables/coordinate").CoordinateStrategyFn>;
|
|
1891
1892
|
default: string | import("../../composables/coordinate").CoordinateStrategyFn;
|
|
1892
1893
|
};
|
|
@@ -1897,7 +1898,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
1897
1898
|
align: Omit<{
|
|
1898
1899
|
type: PropType<"end" | "start" | "center">;
|
|
1899
1900
|
default: string;
|
|
1900
|
-
}, "
|
|
1901
|
+
}, "type" | "default"> & {
|
|
1901
1902
|
type: PropType<string>;
|
|
1902
1903
|
default: string;
|
|
1903
1904
|
};
|
|
@@ -1907,7 +1908,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
1907
1908
|
};
|
|
1908
1909
|
offset: Omit<{
|
|
1909
1910
|
type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
1910
|
-
}, "
|
|
1911
|
+
}, "type" | "default"> & {
|
|
1911
1912
|
type: PropType<NonNullable<string | number | unknown[]>>;
|
|
1912
1913
|
default: NonNullable<string | number | unknown[]>;
|
|
1913
1914
|
};
|
|
@@ -1948,7 +1949,7 @@ export declare const YTooltip: import("vue").DefineComponent<{
|
|
|
1948
1949
|
openOnHover: Omit<{
|
|
1949
1950
|
type: PropType<boolean>;
|
|
1950
1951
|
default: boolean;
|
|
1951
|
-
}, "
|
|
1952
|
+
}, "type" | "default"> & {
|
|
1952
1953
|
type: PropType<boolean>;
|
|
1953
1954
|
default: boolean;
|
|
1954
1955
|
};
|
|
@@ -9,7 +9,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
9
9
|
itemKey: Omit<{
|
|
10
10
|
type: PropType<string>;
|
|
11
11
|
default: string;
|
|
12
|
-
}, "
|
|
12
|
+
}, "type" | "default"> & {
|
|
13
13
|
type: PropType<string>;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
@@ -54,7 +54,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
54
54
|
default: string;
|
|
55
55
|
};
|
|
56
56
|
returnItem: BooleanConstructor;
|
|
57
|
-
defaultExpand: (
|
|
57
|
+
defaultExpand: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
58
58
|
filter: PropType<TreeviewFilterFn>;
|
|
59
59
|
searchDebounceWait: {
|
|
60
60
|
type: PropType<number>;
|
|
@@ -76,7 +76,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
76
76
|
itemKey: Omit<{
|
|
77
77
|
type: PropType<string>;
|
|
78
78
|
default: string;
|
|
79
|
-
}, "
|
|
79
|
+
}, "type" | "default"> & {
|
|
80
80
|
type: PropType<string>;
|
|
81
81
|
default: string;
|
|
82
82
|
};
|
|
@@ -121,7 +121,7 @@ export declare const YTreeView: import("vue").DefineComponent<{
|
|
|
121
121
|
default: string;
|
|
122
122
|
};
|
|
123
123
|
returnItem: BooleanConstructor;
|
|
124
|
-
defaultExpand: (
|
|
124
|
+
defaultExpand: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
125
125
|
filter: PropType<TreeviewFilterFn>;
|
|
126
126
|
searchDebounceWait: {
|
|
127
127
|
type: PropType<number>;
|
|
@@ -19,23 +19,23 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
19
19
|
} : Omit<{
|
|
20
20
|
type: PropType<any[]>;
|
|
21
21
|
default: () => never[];
|
|
22
|
-
}, "
|
|
22
|
+
}, "type" | "default"> & {
|
|
23
23
|
type: PropType<unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"]>;
|
|
24
24
|
default: unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"];
|
|
25
25
|
};
|
|
26
26
|
itemKey: unknown extends Defaults["itemKey"] ? Omit<{
|
|
27
27
|
type: PropType<string>;
|
|
28
28
|
default: string;
|
|
29
|
-
}, "
|
|
29
|
+
}, "type" | "default"> & {
|
|
30
30
|
type: PropType<string>;
|
|
31
31
|
default: string;
|
|
32
32
|
} : Omit<Omit<{
|
|
33
33
|
type: PropType<string>;
|
|
34
34
|
default: string;
|
|
35
|
-
}, "
|
|
35
|
+
}, "type" | "default"> & {
|
|
36
36
|
type: PropType<string>;
|
|
37
37
|
default: string;
|
|
38
|
-
}, "
|
|
38
|
+
}, "type" | "default"> & {
|
|
39
39
|
type: PropType<unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"]>;
|
|
40
40
|
default: unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"];
|
|
41
41
|
};
|
|
@@ -45,7 +45,7 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
45
45
|
} : Omit<{
|
|
46
46
|
type: PropType<string>;
|
|
47
47
|
default: string;
|
|
48
|
-
}, "
|
|
48
|
+
}, "type" | "default"> & {
|
|
49
49
|
type: PropType<unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"]>;
|
|
50
50
|
default: unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"];
|
|
51
51
|
};
|
|
@@ -55,7 +55,7 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
55
55
|
} : Omit<{
|
|
56
56
|
type: PropType<string | boolean>;
|
|
57
57
|
default: string;
|
|
58
|
-
}, "
|
|
58
|
+
}, "type" | "default"> & {
|
|
59
59
|
type: PropType<unknown extends Defaults["itemChildren"] ? string | boolean : NonNullable<string | boolean> | Defaults["itemChildren"]>;
|
|
60
60
|
default: unknown extends Defaults["itemChildren"] ? string | boolean : NonNullable<string | boolean> | Defaults["itemChildren"];
|
|
61
61
|
};
|
|
@@ -89,7 +89,7 @@ export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
|
89
89
|
} : Omit<{
|
|
90
90
|
type: StringConstructor;
|
|
91
91
|
default: string;
|
|
92
|
-
}, "
|
|
92
|
+
}, "type" | "default"> & {
|
|
93
93
|
type: PropType<unknown extends Defaults["activeColor"] ? string : string | Defaults["activeColor"]>;
|
|
94
94
|
default: unknown extends Defaults["activeColor"] ? string : string | Defaults["activeColor"];
|
|
95
95
|
};
|
|
@@ -106,7 +106,7 @@ export declare const YTreeViewNode: import("vue").DefineComponent<{
|
|
|
106
106
|
itemKey: Omit<{
|
|
107
107
|
type: PropType<string>;
|
|
108
108
|
default: string;
|
|
109
|
-
}, "
|
|
109
|
+
}, "type" | "default"> & {
|
|
110
110
|
type: PropType<string>;
|
|
111
111
|
default: string;
|
|
112
112
|
};
|
|
@@ -151,7 +151,7 @@ export declare const YTreeViewNode: import("vue").DefineComponent<{
|
|
|
151
151
|
itemKey: Omit<{
|
|
152
152
|
type: PropType<string>;
|
|
153
153
|
default: string;
|
|
154
|
-
}, "
|
|
154
|
+
}, "type" | "default"> & {
|
|
155
155
|
type: PropType<string>;
|
|
156
156
|
default: string;
|
|
157
157
|
};
|
|
@@ -54,7 +54,7 @@ export declare const pressChoicePropsOptions: <Defaults extends {
|
|
|
54
54
|
} : Omit<{
|
|
55
55
|
type: null;
|
|
56
56
|
default: undefined;
|
|
57
|
-
}, "
|
|
57
|
+
}, "type" | "default"> & {
|
|
58
58
|
type: PropType<unknown extends Defaults["modelValue"] ? any : any>;
|
|
59
59
|
default: unknown extends Defaults["modelValue"] ? any : any;
|
|
60
60
|
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
2
|
+
import { WritableComputedRef } from "@vue/runtime-core";
|
|
3
|
+
export declare function useModelDuplex(props: any, prop?: string, defaultValue?: any, getIn?: (value?: any) => any, setOut?: (value: any) => any): WritableComputedRef<any> & {
|
|
4
|
+
readonly rxValue: any;
|
|
5
|
+
};
|
|
6
|
+
export declare function useProvided<T>(props: any, prop: string, provided: Ref<T>): WritableComputedRef<any> & {
|
|
7
|
+
readonly rxValue: any;
|
|
8
|
+
};
|
|
@@ -18,7 +18,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
18
18
|
} : Omit<{
|
|
19
19
|
type: PropType<"levitation" | "arrangement" | CoordinateStrategyFn>;
|
|
20
20
|
default: string;
|
|
21
|
-
}, "
|
|
21
|
+
}, "type" | "default"> & {
|
|
22
22
|
type: PropType<unknown extends Defaults["coordinateStrategy"] ? "levitation" | "arrangement" | CoordinateStrategyFn : NonNullable<"levitation" | "arrangement" | CoordinateStrategyFn> | Defaults["coordinateStrategy"]>;
|
|
23
23
|
default: unknown extends Defaults["coordinateStrategy"] ? "levitation" | "arrangement" | CoordinateStrategyFn : NonNullable<"levitation" | "arrangement" | CoordinateStrategyFn> | Defaults["coordinateStrategy"];
|
|
24
24
|
};
|
|
@@ -28,7 +28,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
28
28
|
} : Omit<{
|
|
29
29
|
type: PropType<"default" | "top" | "end" | "right" | "bottom" | "left" | "start">;
|
|
30
30
|
default: string;
|
|
31
|
-
}, "
|
|
31
|
+
}, "type" | "default"> & {
|
|
32
32
|
type: PropType<unknown extends Defaults["position"] ? "default" | "top" | "end" | "right" | "bottom" | "left" | "start" : NonNullable<"default" | "top" | "end" | "right" | "bottom" | "left" | "start"> | Defaults["position"]>;
|
|
33
33
|
default: unknown extends Defaults["position"] ? "default" | "top" | "end" | "right" | "bottom" | "left" | "start" : NonNullable<"default" | "top" | "end" | "right" | "bottom" | "left" | "start"> | Defaults["position"];
|
|
34
34
|
};
|
|
@@ -38,7 +38,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
38
38
|
} : Omit<{
|
|
39
39
|
type: PropType<"end" | "start" | "center">;
|
|
40
40
|
default: string;
|
|
41
|
-
}, "
|
|
41
|
+
}, "type" | "default"> & {
|
|
42
42
|
type: PropType<unknown extends Defaults["align"] ? "end" | "start" | "center" : NonNullable<"end" | "start" | "center"> | Defaults["align"]>;
|
|
43
43
|
default: unknown extends Defaults["align"] ? "end" | "start" | "center" : NonNullable<"end" | "start" | "center"> | Defaults["align"];
|
|
44
44
|
};
|
|
@@ -48,7 +48,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
48
48
|
} : Omit<{
|
|
49
49
|
type: StringConstructor;
|
|
50
50
|
default: string;
|
|
51
|
-
}, "
|
|
51
|
+
}, "type" | "default"> & {
|
|
52
52
|
type: PropType<unknown extends Defaults["origin"] ? string : string | Defaults["origin"]>;
|
|
53
53
|
default: unknown extends Defaults["origin"] ? string : string | Defaults["origin"];
|
|
54
54
|
};
|
|
@@ -56,7 +56,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
56
56
|
type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
57
57
|
} : Omit<{
|
|
58
58
|
type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
59
|
-
}, "
|
|
59
|
+
}, "type" | "default"> & {
|
|
60
60
|
type: PropType<unknown extends Defaults["offset"] ? string | number | unknown[] : NonNullable<string | number | unknown[]> | Defaults["offset"]>;
|
|
61
61
|
default: unknown extends Defaults["offset"] ? string | number | unknown[] : NonNullable<string | number | unknown[]> | Defaults["offset"];
|
|
62
62
|
};
|
|
@@ -66,7 +66,7 @@ export declare const pressCoordinateProps: <Defaults extends {
|
|
|
66
66
|
} : Omit<{
|
|
67
67
|
type: NumberConstructor;
|
|
68
68
|
default: number;
|
|
69
|
-
}, "
|
|
69
|
+
}, "type" | "default"> & {
|
|
70
70
|
type: PropType<unknown extends Defaults["viewportMargin"] ? number : number | Defaults["viewportMargin"]>;
|
|
71
71
|
default: unknown extends Defaults["viewportMargin"] ? number : number | Defaults["viewportMargin"];
|
|
72
72
|
};
|
|
@@ -17,7 +17,9 @@ export declare const pressFocusPropsOptions: <Defaults extends {
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
export declare function useFocus(props: ExtractPropTypes<typeof focusPropsOptions>, className: string): {
|
|
20
|
-
focused: import("vue").WritableComputedRef<any
|
|
20
|
+
focused: import("vue").WritableComputedRef<any> & {
|
|
21
|
+
readonly rxValue: any;
|
|
22
|
+
};
|
|
21
23
|
whenFocus: () => void;
|
|
22
24
|
whenBlur: () => void;
|
|
23
25
|
focusedClasses: import("vue").ComputedRef<{
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { InjectionKey, PropType, Ref } from 'vue';
|
|
2
|
+
import { JSXComponent } from '../types';
|
|
3
|
+
type IconComponent = JSXComponent<IconProps>;
|
|
4
|
+
export type IconValue = string | (string | [path: string, opacity: number])[] | IconComponent | {
|
|
5
|
+
component: JSXComponent;
|
|
6
|
+
props?: any;
|
|
7
|
+
} | {
|
|
8
|
+
alias: string;
|
|
9
|
+
iconProps?: any;
|
|
10
|
+
};
|
|
11
|
+
export declare const IconPropOption: PropType<IconValue>;
|
|
12
|
+
type IconProps = {
|
|
13
|
+
tag: string;
|
|
14
|
+
icon?: IconValue;
|
|
15
|
+
disabled?: Boolean;
|
|
16
|
+
};
|
|
17
|
+
export interface IconSet {
|
|
18
|
+
component: IconComponent;
|
|
19
|
+
}
|
|
20
|
+
export declare const IconValue: PropType<IconValue>;
|
|
21
|
+
export type IconModuleOptions = {
|
|
22
|
+
defaultSet?: string;
|
|
23
|
+
sets?: Record<string, IconSet>;
|
|
24
|
+
aliases?: Partial<Record<string, any>>;
|
|
25
|
+
};
|
|
26
|
+
export declare const pressIconPropsOptions: <Defaults extends {
|
|
27
|
+
icon?: unknown;
|
|
28
|
+
tag?: unknown;
|
|
29
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
30
|
+
icon: unknown extends Defaults["icon"] ? {
|
|
31
|
+
type: PropType<IconValue>;
|
|
32
|
+
} : Omit<{
|
|
33
|
+
type: PropType<IconValue>;
|
|
34
|
+
}, "type" | "default"> & {
|
|
35
|
+
type: PropType<unknown extends Defaults["icon"] ? IconValue : Defaults["icon"] | NonNullable<IconValue>>;
|
|
36
|
+
default: unknown extends Defaults["icon"] ? IconValue : Defaults["icon"] | NonNullable<IconValue>;
|
|
37
|
+
};
|
|
38
|
+
tag: unknown extends Defaults["tag"] ? {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
required: true;
|
|
41
|
+
} : Omit<{
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
required: true;
|
|
44
|
+
}, "type" | "default"> & {
|
|
45
|
+
type: PropType<unknown extends Defaults["tag"] ? string : string | Defaults["tag"]>;
|
|
46
|
+
default: unknown extends Defaults["tag"] ? string : string | Defaults["tag"];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare const YComponentIcon: import("vue").DefineComponent<{
|
|
50
|
+
icon: {
|
|
51
|
+
type: PropType<IconValue>;
|
|
52
|
+
};
|
|
53
|
+
tag: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
icon: {
|
|
59
|
+
type: PropType<IconValue>;
|
|
60
|
+
};
|
|
61
|
+
tag: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
}>>, {}, {}>;
|
|
66
|
+
export type YComponentIcon = InstanceType<typeof YComponentIcon>;
|
|
67
|
+
export declare const YSvgIcon: import("vue").DefineComponent<{
|
|
68
|
+
icon: {
|
|
69
|
+
type: PropType<IconValue>;
|
|
70
|
+
};
|
|
71
|
+
tag: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
|
+
icon: {
|
|
77
|
+
type: PropType<IconValue>;
|
|
78
|
+
};
|
|
79
|
+
tag: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
}>>, {}, {}>;
|
|
84
|
+
export type YSvgIcon = InstanceType<typeof YSvgIcon>;
|
|
85
|
+
export declare const YUYEON_ICON_KEY: InjectionKey<Required<IconModuleOptions>>;
|
|
86
|
+
export declare function createIconModule(options?: IconModuleOptions): {
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
};
|
|
89
|
+
type IconInstance = {
|
|
90
|
+
component: IconComponent;
|
|
91
|
+
icon?: IconValue;
|
|
92
|
+
};
|
|
93
|
+
export declare function useIcon(iconProp: Ref<IconValue | undefined>): {
|
|
94
|
+
iconData: import("vue").ComputedRef<IconInstance>;
|
|
95
|
+
};
|
|
96
|
+
export {};
|
|
@@ -19,7 +19,7 @@ declare const listItemsPropsOptions: {
|
|
|
19
19
|
itemKey: Omit<{
|
|
20
20
|
type: import("vue").PropType<string>;
|
|
21
21
|
default: string;
|
|
22
|
-
}, "
|
|
22
|
+
}, "type" | "default"> & {
|
|
23
23
|
type: import("vue").PropType<string>;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
@@ -30,7 +30,7 @@ declare const listItemsPropsOptions: {
|
|
|
30
30
|
itemChildren: Omit<{
|
|
31
31
|
type: import("vue").PropType<string | boolean>;
|
|
32
32
|
default: string;
|
|
33
|
-
}, "
|
|
33
|
+
}, "type" | "default"> & {
|
|
34
34
|
type: import("vue").PropType<NonNullable<string | boolean>>;
|
|
35
35
|
default: NonNullable<string | boolean>;
|
|
36
36
|
};
|
|
@@ -53,23 +53,23 @@ export declare const pressListItemsPropsOptions: <Defaults extends {
|
|
|
53
53
|
} : Omit<{
|
|
54
54
|
type: import("vue").PropType<any[]>;
|
|
55
55
|
default: () => never[];
|
|
56
|
-
}, "
|
|
56
|
+
}, "type" | "default"> & {
|
|
57
57
|
type: import("vue").PropType<unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"]>;
|
|
58
58
|
default: unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"];
|
|
59
59
|
};
|
|
60
60
|
itemKey: unknown extends Defaults["itemKey"] ? Omit<{
|
|
61
61
|
type: import("vue").PropType<string>;
|
|
62
62
|
default: string;
|
|
63
|
-
}, "
|
|
63
|
+
}, "type" | "default"> & {
|
|
64
64
|
type: import("vue").PropType<string>;
|
|
65
65
|
default: string;
|
|
66
66
|
} : Omit<Omit<{
|
|
67
67
|
type: import("vue").PropType<string>;
|
|
68
68
|
default: string;
|
|
69
|
-
}, "
|
|
69
|
+
}, "type" | "default"> & {
|
|
70
70
|
type: import("vue").PropType<string>;
|
|
71
71
|
default: string;
|
|
72
|
-
}, "
|
|
72
|
+
}, "type" | "default"> & {
|
|
73
73
|
type: import("vue").PropType<unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"]>;
|
|
74
74
|
default: unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"];
|
|
75
75
|
};
|
|
@@ -79,23 +79,23 @@ export declare const pressListItemsPropsOptions: <Defaults extends {
|
|
|
79
79
|
} : Omit<{
|
|
80
80
|
type: import("vue").PropType<string>;
|
|
81
81
|
default: string;
|
|
82
|
-
}, "
|
|
82
|
+
}, "type" | "default"> & {
|
|
83
83
|
type: import("vue").PropType<unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"]>;
|
|
84
84
|
default: unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"];
|
|
85
85
|
};
|
|
86
86
|
itemChildren: unknown extends Defaults["itemChildren"] ? Omit<{
|
|
87
87
|
type: import("vue").PropType<string | boolean>;
|
|
88
88
|
default: string;
|
|
89
|
-
}, "
|
|
89
|
+
}, "type" | "default"> & {
|
|
90
90
|
type: import("vue").PropType<NonNullable<string | boolean>>;
|
|
91
91
|
default: NonNullable<string | boolean>;
|
|
92
92
|
} : Omit<Omit<{
|
|
93
93
|
type: import("vue").PropType<string | boolean>;
|
|
94
94
|
default: string;
|
|
95
|
-
}, "
|
|
95
|
+
}, "type" | "default"> & {
|
|
96
96
|
type: import("vue").PropType<NonNullable<string | boolean>>;
|
|
97
97
|
default: NonNullable<string | boolean>;
|
|
98
|
-
}, "
|
|
98
|
+
}, "type" | "default"> & {
|
|
99
99
|
type: import("vue").PropType<unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>>;
|
|
100
100
|
default: unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>;
|
|
101
101
|
};
|
|
@@ -4,11 +4,11 @@ import type { ThemeOptions } from './types';
|
|
|
4
4
|
export type { ThemeOptions };
|
|
5
5
|
export declare const Y_THEME_PREFIX = "y-theme";
|
|
6
6
|
export interface ThemeModuleInstance {
|
|
7
|
-
scheme: keyof typeof ThemeScheme | 'auto'
|
|
7
|
+
scheme: Ref<keyof typeof ThemeScheme | 'auto'>;
|
|
8
8
|
theme: Ref<[string, string?]>;
|
|
9
9
|
readonly themes: any;
|
|
10
10
|
readonly global: {
|
|
11
|
-
scheme: keyof typeof ThemeScheme | 'auto'
|
|
11
|
+
scheme: Ref<keyof typeof ThemeScheme | 'auto'>;
|
|
12
12
|
theme: Ref<[string, string?]>;
|
|
13
13
|
};
|
|
14
14
|
readonly currentThemeKey: Readonly<ComputedRef<string>>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const pressValidationPropsOptions: <Defaults extends {
|
|
3
|
+
readonly?: unknown;
|
|
4
|
+
disabled?: unknown;
|
|
5
|
+
status?: unknown;
|
|
6
|
+
helperText?: unknown;
|
|
7
|
+
validators?: unknown;
|
|
8
|
+
validateOn?: unknown;
|
|
9
|
+
validationValue?: unknown;
|
|
10
|
+
maxErrors?: unknown;
|
|
11
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
12
|
+
readonly: unknown extends Defaults["readonly"] ? PropType<boolean> : {
|
|
13
|
+
type: PropType<unknown extends Defaults["readonly"] ? boolean : boolean | Defaults["readonly"]>;
|
|
14
|
+
default: unknown extends Defaults["readonly"] ? boolean : boolean | Defaults["readonly"];
|
|
15
|
+
};
|
|
16
|
+
disabled: unknown extends Defaults["disabled"] ? PropType<boolean> : {
|
|
17
|
+
type: PropType<unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"]>;
|
|
18
|
+
default: unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"];
|
|
19
|
+
};
|
|
20
|
+
status: unknown extends Defaults["status"] ? {
|
|
21
|
+
type: PropType<"success" | "warning" | "error" | undefined>;
|
|
22
|
+
validator(value: string): boolean;
|
|
23
|
+
} : Omit<{
|
|
24
|
+
type: PropType<"success" | "warning" | "error" | undefined>;
|
|
25
|
+
validator(value: string): boolean;
|
|
26
|
+
}, "type" | "default"> & {
|
|
27
|
+
type: PropType<unknown extends Defaults["status"] ? "success" | "warning" | "error" | undefined : Defaults["status"] | NonNullable<"success" | "warning" | "error" | undefined>>;
|
|
28
|
+
default: unknown extends Defaults["status"] ? "success" | "warning" | "error" | undefined : Defaults["status"] | NonNullable<"success" | "warning" | "error" | undefined>;
|
|
29
|
+
};
|
|
30
|
+
helperText: unknown extends Defaults["helperText"] ? StringConstructor : {
|
|
31
|
+
type: PropType<unknown extends Defaults["helperText"] ? string : string | Defaults["helperText"]>;
|
|
32
|
+
default: unknown extends Defaults["helperText"] ? string : string | Defaults["helperText"];
|
|
33
|
+
};
|
|
34
|
+
validators: unknown extends Defaults["validators"] ? PropType<string[] | ((v: any) => boolean | string)[]> : {
|
|
35
|
+
type: PropType<unknown extends Defaults["validators"] ? string[] | ((v: any) => boolean | string)[] : Defaults["validators"] | NonNullable<string[] | ((v: any) => boolean | string)[]>>;
|
|
36
|
+
default: unknown extends Defaults["validators"] ? string[] | ((v: any) => boolean | string)[] : Defaults["validators"] | NonNullable<string[] | ((v: any) => boolean | string)[]>;
|
|
37
|
+
};
|
|
38
|
+
validateOn: unknown extends Defaults["validateOn"] ? {
|
|
39
|
+
type: PropType<string>;
|
|
40
|
+
} : Omit<{
|
|
41
|
+
type: PropType<string>;
|
|
42
|
+
}, "type" | "default"> & {
|
|
43
|
+
type: PropType<unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"]>;
|
|
44
|
+
default: unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"];
|
|
45
|
+
};
|
|
46
|
+
validationValue: unknown extends Defaults["validationValue"] ? null : {
|
|
47
|
+
type: PropType<unknown extends Defaults["validationValue"] ? any : any>;
|
|
48
|
+
default: unknown extends Defaults["validationValue"] ? any : any;
|
|
49
|
+
};
|
|
50
|
+
maxErrors: unknown extends Defaults["maxErrors"] ? {
|
|
51
|
+
type: PropType<string | number>;
|
|
52
|
+
default: number;
|
|
53
|
+
} : Omit<{
|
|
54
|
+
type: PropType<string | number>;
|
|
55
|
+
default: number;
|
|
56
|
+
}, "type" | "default"> & {
|
|
57
|
+
type: PropType<unknown extends Defaults["maxErrors"] ? string | number : NonNullable<string | number> | Defaults["maxErrors"]>;
|
|
58
|
+
default: unknown extends Defaults["maxErrors"] ? string | number : NonNullable<string | number> | Defaults["maxErrors"];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare function useValidation(props: any, name: string, uid?: number | undefined): {
|
|
62
|
+
invokeValidators: () => Promise<any[]>;
|
|
63
|
+
resetError: () => void;
|
|
64
|
+
validating: import("vue").Ref<boolean>;
|
|
65
|
+
validateOn: import("vue").ComputedRef<{
|
|
66
|
+
blur: boolean;
|
|
67
|
+
input: boolean;
|
|
68
|
+
lazy: boolean;
|
|
69
|
+
submit: boolean;
|
|
70
|
+
}>;
|
|
71
|
+
errorResult: import("vue").Ref<any>;
|
|
72
|
+
errors: import("vue").Ref<any[]>;
|
|
73
|
+
isError: import("vue").ComputedRef<boolean>;
|
|
74
|
+
isSuccess: import("vue").ComputedRef<boolean>;
|
|
75
|
+
};
|
package/types/globals.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { VNode } from "vue";
|
|
2
|
+
import type {NativeElements, ReservedProps} from "@vue/runtime-dom";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
4
|
+
export namespace JSX {
|
|
5
|
+
export interface Element extends VNode {}
|
|
6
|
+
export interface ElementClass {
|
|
7
|
+
$props: {}
|
|
8
|
+
}
|
|
9
|
+
export interface ElementAttributesProperty {
|
|
10
|
+
$props: {}
|
|
11
|
+
}
|
|
12
|
+
export interface IntrinsicElements extends NativeElements {
|
|
13
|
+
[name: string]: any
|
|
10
14
|
}
|
|
15
|
+
export interface IntrinsicAttributes extends ReservedProps {}
|
|
11
16
|
}
|