yuyeon 0.1.0-rc.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/yuyeon.js +4606 -4024
- package/dist/yuyeon.umd.cjs +17 -13
- package/lib/components/badge/YBadge.scss +0 -1
- package/lib/components/card/YCard.mjs +16 -9
- package/lib/components/card/YCard.mjs.map +1 -1
- package/lib/components/dialog/YDialog.mjs +4 -1
- package/lib/components/dialog/YDialog.mjs.map +1 -1
- package/lib/components/dropdown/YDropdown.mjs +10 -4
- package/lib/components/dropdown/YDropdown.mjs.map +1 -1
- package/lib/components/field-input/YFieldInput.mjs.map +1 -1
- package/lib/components/field-input/YFieldInput.scss +1 -1
- package/lib/components/hover/YHover.mjs +11 -4
- package/lib/components/hover/YHover.mjs.map +1 -1
- package/lib/components/hover/index.mjs +2 -0
- package/lib/components/hover/index.mjs.map +1 -0
- package/lib/components/index.mjs +3 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/components/input/YInput.scss +1 -1
- package/lib/components/ip-field/YIpField.scss +74 -0
- package/lib/components/ip-field/YIpv4Field.mjs +297 -0
- package/lib/components/ip-field/YIpv4Field.mjs.map +1 -0
- package/lib/components/ip-field/index.mjs +2 -0
- package/lib/components/ip-field/index.mjs.map +1 -0
- package/lib/components/layer/YLayer.mjs +32 -12
- package/lib/components/layer/YLayer.mjs.map +1 -1
- package/lib/components/layer/base.mjs +1 -1
- package/lib/components/layer/base.mjs.map +1 -1
- package/lib/components/layer/content.mjs +22 -0
- package/lib/components/layer/content.mjs.map +1 -0
- package/lib/components/layer/scroll-strategies.mjs +1 -1
- package/lib/components/layer/scroll-strategies.mjs.map +1 -1
- package/lib/components/list/YListItem.mjs +1 -0
- package/lib/components/list/YListItem.mjs.map +1 -1
- package/lib/components/menu/YMenu.mjs +6 -11
- package/lib/components/menu/YMenu.mjs.map +1 -1
- package/lib/components/panel/YDividePanel.scss +1 -1
- package/lib/components/select/YSelect.mjs +8 -5
- package/lib/components/select/YSelect.mjs.map +1 -1
- package/lib/components/snackbar/YSnackbar.mjs +42 -37
- package/lib/components/snackbar/YSnackbar.mjs.map +1 -1
- package/lib/components/tab/YTab.scss +3 -3
- package/lib/components/tab/types.mjs.map +1 -1
- package/lib/components/table/YDataTableBody.mjs +1 -1
- package/lib/components/table/YDataTableBody.mjs.map +1 -1
- package/lib/components/table/YDataTableRow.mjs +30 -3
- package/lib/components/table/YDataTableRow.mjs.map +1 -1
- package/lib/components/table/composibles/header.mjs +1 -1
- package/lib/components/table/composibles/header.mjs.map +1 -1
- package/lib/components/table/composibles/items.mjs +3 -1
- package/lib/components/table/composibles/items.mjs.map +1 -1
- package/lib/components/table/composibles/selection.mjs.map +1 -1
- package/lib/components/table/composibles/sorting.mjs.map +1 -1
- package/lib/components/table/types/common.mjs.map +1 -1
- package/lib/components/table/types/header.mjs.map +1 -1
- package/lib/components/text-interpolation/YTi.mjs +46 -0
- package/lib/components/text-interpolation/YTi.mjs.map +1 -0
- package/lib/components/text-interpolation/index.mjs +2 -0
- package/lib/components/text-interpolation/index.mjs.map +1 -0
- package/lib/components/textarea/YTextarea.mjs +3 -1
- package/lib/components/textarea/YTextarea.mjs.map +1 -1
- package/lib/components/tooltip/YTooltip.mjs +1 -0
- package/lib/components/tooltip/YTooltip.mjs.map +1 -1
- package/lib/components/tree-view/YTreeViewNode.mjs +47 -21
- package/lib/components/tree-view/YTreeViewNode.mjs.map +1 -1
- package/lib/composables/coordinate/index.mjs.map +1 -1
- package/lib/composables/coordinate/levitation.mjs.map +1 -1
- package/lib/composables/icon.mjs.map +1 -1
- package/lib/composables/index.mjs +1 -0
- package/lib/composables/index.mjs.map +1 -1
- package/lib/composables/theme/index.mjs +6 -3
- package/lib/composables/theme/index.mjs.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/util/parser.mjs +31 -0
- package/lib/util/parser.mjs.map +1 -0
- package/lib/util/string.mjs +30 -0
- package/lib/util/string.mjs.map +1 -1
- package/package.json +12 -11
- package/types/abstract/items.d.ts +5 -4
- package/types/components/alert/YAlert.d.ts +3 -2
- package/types/components/app/YApp.d.ts +3 -2
- package/types/components/badge/YBadge.d.ts +9 -8
- package/types/components/bench/YBench.d.ts +4 -0
- package/types/components/bench/index.d.ts +1 -0
- package/types/components/button/YButton.d.ts +27 -29
- package/types/components/card/YCard.d.ts +6 -3
- package/types/components/card/YCardBody.d.ts +1 -1
- package/types/components/card/YCardFooter.d.ts +1 -1
- package/types/components/card/YCardHeader.d.ts +1 -1
- package/types/components/checkbox/YCheckbox.d.ts +4 -3
- package/types/components/checkbox/YInputCheckbox.d.ts +7 -6
- package/types/components/checkbox/index.d.ts +1 -1
- package/types/components/chip/YChip.d.ts +3 -2
- package/types/components/date-picker/YDateCalendar.d.ts +16 -15
- package/types/components/date-picker/YDatePicker.d.ts +41 -40
- package/types/components/date-picker/YDatePickerControl.d.ts +29 -28
- package/types/components/date-picker/YMonthPicker.d.ts +6 -5
- package/types/components/date-picker/YYearPicker.d.ts +3 -2
- package/types/components/default-provider/YDefaultProvider.d.ts +0 -0
- package/types/components/default-provider/index.d.ts +0 -0
- package/types/components/dialog/YDialog.d.ts +416 -335
- package/types/components/divider/YDivider.d.ts +4 -3
- package/types/components/dropdown/YDropdown.d.ts +507 -61
- package/types/components/field-input/YFieldInput.d.ts +27 -26
- package/types/components/form/YForm.d.ts +9 -8
- package/types/components/hover/YHover.d.ts +79 -0
- package/types/components/hover/index.d.ts +1 -0
- package/types/components/icon/YIcon.d.ts +5 -4
- package/types/components/icons/YIconCheckbox.d.ts +5 -4
- package/types/components/icons/YIconClear.d.ts +1 -1
- package/types/components/icons/YIconDropdown.d.ts +1 -1
- package/types/components/icons/YIconExpand.d.ts +1 -1
- package/types/components/icons/YIconPageControl.d.ts +6 -5
- package/types/components/icons/YIconSort.d.ts +5 -4
- package/types/components/icons/index.d.ts +26 -26
- package/types/components/index.d.ts +3 -0
- package/types/components/input/YInput.d.ts +21 -20
- package/types/components/ip-field/YIpv4Field.d.ts +133 -0
- package/types/components/ip-field/index.d.ts +1 -0
- package/types/components/layer/YLayer.d.ts +154 -106
- package/types/components/layer/active-stack.d.ts +3 -2
- package/types/components/layer/base.d.ts +8 -7
- package/types/components/layer/content.d.ts +21 -0
- package/types/components/layer/scroll-strategies.d.ts +41 -0
- package/types/components/list/YList.d.ts +8 -7
- package/types/components/list/YListItem.d.ts +19 -13
- package/types/components/loading/YSpinnerRing.d.ts +2 -1
- package/types/components/menu/YMenu.d.ts +175 -125
- package/types/components/navigation/YNavigation.d.ts +1 -0
- package/types/components/navigation/index.d.ts +1 -0
- package/types/components/pagination/YPagination.d.ts +20 -19
- package/types/components/panel/YDividePanel.d.ts +4 -3
- package/types/components/plate/YPlate.d.ts +3 -2
- package/types/components/progress-bar/YProgressBar.d.ts +5 -4
- package/types/components/select/YSelect.d.ts +1304 -944
- package/types/components/snackbar/YSnackbar.d.ts +494 -30
- package/types/components/switch/YSwitch.d.ts +4 -3
- package/types/components/tab/YTab.d.ts +30 -29
- package/types/components/tab/YTabs.d.ts +12 -11
- package/types/components/tab/index.d.ts +1 -1
- package/types/components/tab/shared.d.ts +1 -0
- package/types/components/tab/types.d.ts +1 -1
- package/types/components/table/YDataTable.d.ts +225 -62
- package/types/components/table/YDataTableBody.d.ts +10 -9
- package/types/components/table/YDataTableCell.d.ts +6 -5
- package/types/components/table/YDataTableControl.d.ts +5 -4
- package/types/components/table/YDataTableHead.d.ts +10 -10
- package/types/components/table/YDataTableLayer.d.ts +4 -3
- package/types/components/table/YDataTableRow.d.ts +3 -2
- package/types/components/table/YDataTableServer.d.ts +225 -62
- package/types/components/table/YTable.d.ts +7 -6
- package/types/components/table/composibles/header.d.ts +103 -12
- package/types/components/table/composibles/items.d.ts +5 -4
- package/types/components/table/composibles/options.d.ts +2 -1
- package/types/components/table/composibles/pagination.d.ts +6 -5
- package/types/components/table/composibles/selection.d.ts +7 -5
- package/types/components/table/composibles/sorting.d.ts +26 -7
- package/types/components/table/types/common.d.ts +1 -0
- package/types/components/table/types/header.d.ts +3 -2
- package/types/components/table/types/index.d.ts +5 -4
- package/types/components/table/types/item.d.ts +1 -0
- package/types/components/table/types/row.d.ts +1 -0
- package/types/components/text-ellipsis/YTextEllipsis.d.ts +3 -2
- package/types/components/text-highlighter/YTextHighlighter.d.ts +3 -2
- package/types/components/text-highlighter/index.d.ts +1 -0
- package/types/components/text-interpolation/YTi.d.ts +20 -0
- package/types/components/text-interpolation/index.d.ts +1 -0
- package/types/components/textarea/YTextarea.d.ts +39 -39
- package/types/components/toggle-button/YToggleButton.d.ts +1 -0
- package/types/components/tooltip/YTooltip.d.ts +217 -150
- package/types/components/transitions/expand-transition.d.ts +4 -3
- package/types/components/transitions/index.d.ts +10 -10
- package/types/components/tree-view/YTreeView.d.ts +20 -13
- package/types/components/tree-view/YTreeViewNode.d.ts +42 -20
- package/types/components/tree-view/types.d.ts +2 -1
- package/types/components/tree-view/util.d.ts +1 -0
- package/types/composables/choice-link.d.ts +2 -1
- package/types/composables/choice.d.ts +3 -2
- package/types/composables/communication.d.ts +2 -1
- package/types/composables/component.d.ts +1 -0
- package/types/composables/coordinate/arrangement.d.ts +2 -1
- package/types/composables/coordinate/index.d.ts +23 -22
- package/types/composables/coordinate/levitation.d.ts +2 -1
- package/types/composables/coordinate/types.d.ts +2 -1
- package/types/composables/coordinate/utils/point.d.ts +1 -0
- package/types/composables/date/factory.d.ts +1 -0
- package/types/composables/date/index.d.ts +1 -0
- package/types/composables/date/setting.d.ts +2 -1
- package/types/composables/date/types.d.ts +2 -1
- package/types/composables/dimension.d.ts +4 -3
- package/types/composables/focus.d.ts +4 -3
- package/types/composables/form.d.ts +7 -6
- package/types/composables/i18n/index.d.ts +1 -0
- package/types/composables/i18n/locale.d.ts +2 -1
- package/types/composables/i18n/rtl.d.ts +2 -1
- package/types/composables/icon.d.ts +9 -10
- package/types/composables/index.d.ts +1 -0
- package/types/composables/layer-group.d.ts +3 -2
- package/types/composables/layout.d.ts +10 -0
- package/types/composables/list-items.d.ts +36 -35
- package/types/composables/progress.d.ts +1 -1
- package/types/composables/ref.d.ts +2 -1
- package/types/composables/resize-observer.d.ts +2 -2
- package/types/composables/scope.d.ts +2 -1
- package/types/composables/theme/factory.d.ts +1 -0
- package/types/composables/theme/index.d.ts +5 -4
- package/types/composables/theme/setting.d.ts +1 -0
- package/types/composables/timing.d.ts +2 -1
- package/types/composables/transition.d.ts +2 -1
- package/types/composables/validation.d.ts +19 -18
- package/types/composables/vue-router.d.ts +3 -3
- package/types/directives/complement-click/index.d.ts +1 -0
- package/types/directives/plate-wave/index.d.ts +2 -1
- package/types/directives/theme-class.d.ts +1 -0
- package/types/globals.d.ts +1 -1
- package/types/i18n/built-in.d.ts +2 -1
- package/types/i18n/types.d.ts +2 -1
- package/types/index.d.ts +2 -1
- package/types/locales/index.d.ts +2 -0
- package/types/locales/ko.d.ts +6 -0
- package/types/mixins/di.d.ts +1 -1
- package/types/mixins/rebind-attrs.d.ts +2 -2
- package/types/shims.d.ts +5 -45
- package/types/types/index.d.ts +2 -1
- package/types/util/anchor.d.ts +1 -1
- package/types/util/color/contrast/contrast.d.ts +74 -0
- package/types/util/color/conversion.d.ts +1 -0
- package/types/util/color/hct/cam16.d.ts +2 -17
- package/types/util/color/hct/hct-solver.d.ts +131 -0
- package/types/util/color/hct/hct.d.ts +2 -17
- package/types/util/color/hct/viewing-conditions.d.ts +58 -0
- package/types/util/color/index.d.ts +1 -1
- package/types/util/color/palettes/core-palette.d.ts +44 -0
- package/types/util/color/palettes/tonal-palette.d.ts +40 -0
- package/types/util/date/adapters/yuyeon-date-adapter.d.ts +1 -0
- package/types/util/date/built-in.d.ts +2 -1
- package/types/util/date/index.d.ts +1 -1
- package/types/util/parser.d.ts +4 -0
- package/types/util/reactivity.d.ts +3 -2
- package/types/util/string.d.ts +4 -0
- package/types/util/vue-component.d.ts +4 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue';
|
|
2
2
|
import { EventProp } from '../util/vue-component';
|
|
3
3
|
import { ValidationProps } from './validation';
|
|
4
|
+
|
|
4
5
|
export interface FormInput {
|
|
5
6
|
id: number | string;
|
|
6
7
|
vnode: VNode;
|
|
@@ -71,7 +72,7 @@ export declare const pressFormPropsOptions: <Defaults extends {
|
|
|
71
72
|
} : Omit<{
|
|
72
73
|
type: PropType<boolean | null>;
|
|
73
74
|
default: null;
|
|
74
|
-
}, "
|
|
75
|
+
}, "default" | "type"> & {
|
|
75
76
|
type: PropType<unknown extends Defaults["modelValue"] ? boolean | null : Defaults["modelValue"] | NonNullable<boolean | null>>;
|
|
76
77
|
default: unknown extends Defaults["modelValue"] ? boolean | null : Defaults["modelValue"] | NonNullable<boolean | null>;
|
|
77
78
|
};
|
|
@@ -81,7 +82,7 @@ export declare const pressFormPropsOptions: <Defaults extends {
|
|
|
81
82
|
} : Omit<{
|
|
82
83
|
type: PropType<string>;
|
|
83
84
|
default: string;
|
|
84
|
-
}, "
|
|
85
|
+
}, "default" | "type"> & {
|
|
85
86
|
type: PropType<unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"]>;
|
|
86
87
|
default: unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"];
|
|
87
88
|
};
|
|
@@ -89,7 +90,7 @@ export declare const pressFormPropsOptions: <Defaults extends {
|
|
|
89
90
|
export declare function createForm(props: FormProps): {
|
|
90
91
|
inputs: Ref<{
|
|
91
92
|
id: string | number;
|
|
92
|
-
vnode: VNode<import(
|
|
93
|
+
vnode: VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
93
94
|
[key: string]: any;
|
|
94
95
|
}>;
|
|
95
96
|
validate: () => Promise<any[]>;
|
|
@@ -98,7 +99,7 @@ export declare function createForm(props: FormProps): {
|
|
|
98
99
|
}[]>;
|
|
99
100
|
errors: Ref<{
|
|
100
101
|
id: string | number;
|
|
101
|
-
vnode: VNode<import(
|
|
102
|
+
vnode: VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
102
103
|
[key: string]: any;
|
|
103
104
|
}>;
|
|
104
105
|
exposed: any;
|
|
@@ -110,12 +111,12 @@ export declare function createForm(props: FormProps): {
|
|
|
110
111
|
isDisabled: ComputedRef<boolean>;
|
|
111
112
|
isReadonly: ComputedRef<boolean>;
|
|
112
113
|
isLoading: ComputedRef<boolean>;
|
|
113
|
-
isValidating: import(
|
|
114
|
+
isValidating: import('vue').ShallowRef<boolean>;
|
|
114
115
|
validate: () => Promise<{
|
|
115
116
|
valid: boolean;
|
|
116
117
|
errors: {
|
|
117
118
|
id: string | number;
|
|
118
|
-
vnode: VNode<import(
|
|
119
|
+
vnode: VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
119
120
|
[key: string]: any;
|
|
120
121
|
}>;
|
|
121
122
|
exposed: any;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { LocaleOptions } from '../../i18n/types';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
export declare function createLocaleModule(options?: LocaleOptions): import('../../i18n/types').LocaleModule;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InjectionKey, PropType, Ref } from 'vue';
|
|
2
2
|
import { JSXComponent } from '../types';
|
|
3
|
+
|
|
3
4
|
type IconComponent = JSXComponent<IconProps>;
|
|
4
5
|
export type IconValue = string | (string | [path: string, opacity: number])[] | IconComponent | {
|
|
5
6
|
component: JSXComponent;
|
|
@@ -31,7 +32,7 @@ export declare const pressIconPropsOptions: <Defaults extends {
|
|
|
31
32
|
type: PropType<IconValue>;
|
|
32
33
|
} : Omit<{
|
|
33
34
|
type: PropType<IconValue>;
|
|
34
|
-
}, "
|
|
35
|
+
}, "default" | "type"> & {
|
|
35
36
|
type: PropType<unknown extends Defaults["icon"] ? IconValue : Defaults["icon"] | NonNullable<IconValue>>;
|
|
36
37
|
default: unknown extends Defaults["icon"] ? IconValue : Defaults["icon"] | NonNullable<IconValue>;
|
|
37
38
|
};
|
|
@@ -41,12 +42,12 @@ export declare const pressIconPropsOptions: <Defaults extends {
|
|
|
41
42
|
} : Omit<{
|
|
42
43
|
type: StringConstructor;
|
|
43
44
|
required: true;
|
|
44
|
-
}, "
|
|
45
|
+
}, "default" | "type"> & {
|
|
45
46
|
type: PropType<unknown extends Defaults["tag"] ? string : string | Defaults["tag"]>;
|
|
46
47
|
default: unknown extends Defaults["tag"] ? string : string | Defaults["tag"];
|
|
47
48
|
};
|
|
48
49
|
};
|
|
49
|
-
export declare const YComponentIcon: import(
|
|
50
|
+
export declare const YComponentIcon: import('vue').DefineComponent<{
|
|
50
51
|
icon: {
|
|
51
52
|
type: PropType<IconValue>;
|
|
52
53
|
};
|
|
@@ -54,7 +55,7 @@ export declare const YComponentIcon: import("vue").DefineComponent<{
|
|
|
54
55
|
type: StringConstructor;
|
|
55
56
|
required: true;
|
|
56
57
|
};
|
|
57
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
58
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
58
59
|
icon: {
|
|
59
60
|
type: PropType<IconValue>;
|
|
60
61
|
};
|
|
@@ -64,7 +65,7 @@ export declare const YComponentIcon: import("vue").DefineComponent<{
|
|
|
64
65
|
};
|
|
65
66
|
}>>, {}, {}>;
|
|
66
67
|
export type YComponentIcon = InstanceType<typeof YComponentIcon>;
|
|
67
|
-
export declare const YSvgIcon: import(
|
|
68
|
+
export declare const YSvgIcon: import('vue').DefineComponent<{
|
|
68
69
|
icon: {
|
|
69
70
|
type: PropType<IconValue>;
|
|
70
71
|
};
|
|
@@ -72,7 +73,7 @@ export declare const YSvgIcon: import("vue").DefineComponent<{
|
|
|
72
73
|
type: StringConstructor;
|
|
73
74
|
required: true;
|
|
74
75
|
};
|
|
75
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
76
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
76
77
|
icon: {
|
|
77
78
|
type: PropType<IconValue>;
|
|
78
79
|
};
|
|
@@ -83,14 +84,12 @@ export declare const YSvgIcon: import("vue").DefineComponent<{
|
|
|
83
84
|
}>>, {}, {}>;
|
|
84
85
|
export type YSvgIcon = InstanceType<typeof YSvgIcon>;
|
|
85
86
|
export declare const YUYEON_ICON_KEY: InjectionKey<Required<IconModuleOptions>>;
|
|
86
|
-
export declare function createIconModule(options?: IconModuleOptions):
|
|
87
|
-
[x: string]: any;
|
|
88
|
-
};
|
|
87
|
+
export declare function createIconModule(options?: IconModuleOptions): Required<IconModuleOptions>;
|
|
89
88
|
type IconInstance = {
|
|
90
89
|
component: IconComponent;
|
|
91
90
|
icon?: IconValue;
|
|
92
91
|
};
|
|
93
92
|
export declare function useIcon(iconProp: Ref<IconValue | undefined>): {
|
|
94
|
-
iconData: import(
|
|
93
|
+
iconData: import('vue').ComputedRef<IconInstance>;
|
|
95
94
|
};
|
|
96
95
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Ref, ComponentInternalInstance } from 'vue';
|
|
2
|
+
|
|
2
3
|
export declare const Y_LAYER_GROUP_CLASS_NAME = "y-layer-group";
|
|
3
4
|
export declare function useLayerGroup(target?: Ref<string | Element>): {
|
|
4
|
-
layerGroup: import(
|
|
5
|
+
layerGroup: import('vue').ComputedRef<HTMLElement>;
|
|
5
6
|
layerGroupState: WeakMap<HTMLElement, Set<any>>;
|
|
6
7
|
getActiveLayers: () => ComponentInternalInstance[];
|
|
7
8
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare function register(): void;
|
|
4
|
+
interface LayoutProvide {
|
|
5
|
+
register: typeof register;
|
|
6
|
+
unregister: (id: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const YUYEON_LAYOUT_KEY: InjectionKey<LayoutProvide>;
|
|
9
|
+
export declare function initLayoutSystem(): void;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
2
3
|
export interface ListItem<T = any> {
|
|
3
4
|
value: any;
|
|
4
5
|
text: string;
|
|
@@ -13,25 +14,25 @@ export interface ListItem<T = any> {
|
|
|
13
14
|
declare const listItemsPropsOptions: {
|
|
14
15
|
returnItem: BooleanConstructor;
|
|
15
16
|
items: {
|
|
16
|
-
type: import(
|
|
17
|
+
type: import('vue').PropType<any[]>;
|
|
17
18
|
default: () => never[];
|
|
18
19
|
};
|
|
19
20
|
itemKey: Omit<{
|
|
20
|
-
type: import(
|
|
21
|
+
type: import('vue').PropType<string>;
|
|
21
22
|
default: string;
|
|
22
|
-
}, "
|
|
23
|
-
type: import(
|
|
23
|
+
}, "default" | "type"> & {
|
|
24
|
+
type: import('vue').PropType<string>;
|
|
24
25
|
default: string;
|
|
25
26
|
};
|
|
26
27
|
itemText: {
|
|
27
|
-
type: import(
|
|
28
|
+
type: import('vue').PropType<string>;
|
|
28
29
|
default: string;
|
|
29
30
|
};
|
|
30
31
|
itemChildren: Omit<{
|
|
31
|
-
type: import(
|
|
32
|
+
type: import('vue').PropType<string | boolean>;
|
|
32
33
|
default: string;
|
|
33
|
-
}, "
|
|
34
|
-
type: import(
|
|
34
|
+
}, "default" | "type"> & {
|
|
35
|
+
type: import('vue').PropType<NonNullable<string | boolean>>;
|
|
35
36
|
default: NonNullable<string | boolean>;
|
|
36
37
|
};
|
|
37
38
|
};
|
|
@@ -44,66 +45,66 @@ export declare const pressListItemsPropsOptions: <Defaults extends {
|
|
|
44
45
|
itemChildren?: unknown;
|
|
45
46
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
46
47
|
returnItem: unknown extends Defaults["returnItem"] ? BooleanConstructor : {
|
|
47
|
-
type: import(
|
|
48
|
+
type: import('vue').PropType<unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"]>;
|
|
48
49
|
default: unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"];
|
|
49
50
|
};
|
|
50
51
|
items: unknown extends Defaults["items"] ? {
|
|
51
|
-
type: import(
|
|
52
|
+
type: import('vue').PropType<any[]>;
|
|
52
53
|
default: () => never[];
|
|
53
54
|
} : Omit<{
|
|
54
|
-
type: import(
|
|
55
|
+
type: import('vue').PropType<any[]>;
|
|
55
56
|
default: () => never[];
|
|
56
|
-
}, "
|
|
57
|
-
type: import(
|
|
57
|
+
}, "default" | "type"> & {
|
|
58
|
+
type: import('vue').PropType<unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"]>;
|
|
58
59
|
default: unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"];
|
|
59
60
|
};
|
|
60
61
|
itemKey: unknown extends Defaults["itemKey"] ? Omit<{
|
|
61
|
-
type: import(
|
|
62
|
+
type: import('vue').PropType<string>;
|
|
62
63
|
default: string;
|
|
63
|
-
}, "
|
|
64
|
-
type: import(
|
|
64
|
+
}, "default" | "type"> & {
|
|
65
|
+
type: import('vue').PropType<string>;
|
|
65
66
|
default: string;
|
|
66
67
|
} : Omit<Omit<{
|
|
67
|
-
type: import(
|
|
68
|
+
type: import('vue').PropType<string>;
|
|
68
69
|
default: string;
|
|
69
|
-
}, "
|
|
70
|
-
type: import(
|
|
70
|
+
}, "default" | "type"> & {
|
|
71
|
+
type: import('vue').PropType<string>;
|
|
71
72
|
default: string;
|
|
72
|
-
}, "
|
|
73
|
-
type: import(
|
|
73
|
+
}, "default" | "type"> & {
|
|
74
|
+
type: import('vue').PropType<unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"]>;
|
|
74
75
|
default: unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"];
|
|
75
76
|
};
|
|
76
77
|
itemText: unknown extends Defaults["itemText"] ? {
|
|
77
|
-
type: import(
|
|
78
|
+
type: import('vue').PropType<string>;
|
|
78
79
|
default: string;
|
|
79
80
|
} : Omit<{
|
|
80
|
-
type: import(
|
|
81
|
+
type: import('vue').PropType<string>;
|
|
81
82
|
default: string;
|
|
82
|
-
}, "
|
|
83
|
-
type: import(
|
|
83
|
+
}, "default" | "type"> & {
|
|
84
|
+
type: import('vue').PropType<unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"]>;
|
|
84
85
|
default: unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"];
|
|
85
86
|
};
|
|
86
87
|
itemChildren: unknown extends Defaults["itemChildren"] ? Omit<{
|
|
87
|
-
type: import(
|
|
88
|
+
type: import('vue').PropType<string | boolean>;
|
|
88
89
|
default: string;
|
|
89
|
-
}, "
|
|
90
|
-
type: import(
|
|
90
|
+
}, "default" | "type"> & {
|
|
91
|
+
type: import('vue').PropType<NonNullable<string | boolean>>;
|
|
91
92
|
default: NonNullable<string | boolean>;
|
|
92
93
|
} : Omit<Omit<{
|
|
93
|
-
type: import(
|
|
94
|
+
type: import('vue').PropType<string | boolean>;
|
|
94
95
|
default: string;
|
|
95
|
-
}, "
|
|
96
|
-
type: import(
|
|
96
|
+
}, "default" | "type"> & {
|
|
97
|
+
type: import('vue').PropType<NonNullable<string | boolean>>;
|
|
97
98
|
default: NonNullable<string | boolean>;
|
|
98
|
-
}, "
|
|
99
|
-
type: import(
|
|
99
|
+
}, "default" | "type"> & {
|
|
100
|
+
type: import('vue').PropType<unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>>;
|
|
100
101
|
default: unknown extends Defaults["itemChildren"] ? NonNullable<string | boolean> : Defaults["itemChildren"] | NonNullable<NonNullable<string | boolean>>;
|
|
101
102
|
};
|
|
102
103
|
};
|
|
103
104
|
export declare function refineListItems(props: Omit<ListItemProps, 'items'>, items: any[]): ListItem<any>[];
|
|
104
105
|
export declare function refineListItem(props: Omit<ListItemProps, 'items'>, item: any): ListItem;
|
|
105
106
|
export declare function useItems(props: ListItemProps): {
|
|
106
|
-
items: import(
|
|
107
|
+
items: import('vue').ComputedRef<ListItem<any>[]>;
|
|
107
108
|
toEmitItems: (items: any[]) => any[];
|
|
108
109
|
toRefineItems: (values: any[]) => ListItem<any>[];
|
|
109
110
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare function useResizeObserver(callback?: ResizeObserverCallback): {
|
|
2
|
-
resizeObservedRef: import(
|
|
3
|
-
contentRect: Readonly<import(
|
|
2
|
+
resizeObservedRef: import('vue').Ref<HTMLElement | undefined>;
|
|
3
|
+
contentRect: Readonly<import('vue').Ref<{
|
|
4
4
|
readonly bottom: number;
|
|
5
5
|
readonly height: number;
|
|
6
6
|
readonly left: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { App, ComputedRef, PropType, Ref } from 'vue';
|
|
2
2
|
import { ThemeScheme } from './setting';
|
|
3
|
-
import
|
|
3
|
+
import { ThemeOptions } from './types';
|
|
4
|
+
|
|
4
5
|
export type { ThemeOptions };
|
|
5
6
|
export declare const Y_THEME_PREFIX = "y-theme";
|
|
6
7
|
export interface ThemeModuleInstance {
|
|
@@ -32,7 +33,7 @@ export declare function isSupportAutoScheme(): boolean;
|
|
|
32
33
|
export declare function createThemeModule(options: ThemeOptions): {
|
|
33
34
|
install: (app: App) => void;
|
|
34
35
|
init: (yuyeon: any) => void;
|
|
35
|
-
scope: import(
|
|
36
|
+
scope: import('vue').EffectScope;
|
|
36
37
|
instance: {
|
|
37
38
|
global: {
|
|
38
39
|
scheme: Ref<string>;
|
|
@@ -43,7 +44,7 @@ export declare function createThemeModule(options: ThemeOptions): {
|
|
|
43
44
|
theme: Ref<[string, string]>;
|
|
44
45
|
currentThemeKey: ComputedRef<string>;
|
|
45
46
|
themeClasses: ComputedRef<string>;
|
|
46
|
-
computedThemes: ComputedRef<Record<string, import(
|
|
47
|
+
computedThemes: ComputedRef<Record<string, import('./types').ThemeDefinition>>;
|
|
47
48
|
computedPalette: ComputedRef<Record<string, string>>;
|
|
48
49
|
supportedAutoMode: Readonly<Ref<boolean>>;
|
|
49
50
|
preferColorScheme: Readonly<Ref<string>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Ref, MaybeRef } from 'vue';
|
|
2
|
+
|
|
2
3
|
export declare function useLazy(eager: Ref<boolean | undefined>, updated: Ref<any>): {
|
|
3
4
|
entered: Ref<boolean>;
|
|
4
|
-
lazyValue: import(
|
|
5
|
+
lazyValue: import('vue').ComputedRef<any>;
|
|
5
6
|
onAfterUpdate: () => void;
|
|
6
7
|
};
|
|
7
8
|
export declare function useTimer(cb: () => void, duration: MaybeRef<number>, options?: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Component, FunctionalComponent, PropType, TransitionProps } from 'vue';
|
|
2
|
+
|
|
2
3
|
export declare const polyTransitionPropOptions: {
|
|
3
4
|
transition: {
|
|
4
5
|
type: PropType<string | (TransitionProps & {
|
|
@@ -10,7 +11,7 @@ export declare const polyTransitionPropOptions: {
|
|
|
10
11
|
export declare function usePolyTransition(props: {
|
|
11
12
|
transition: any;
|
|
12
13
|
}): {
|
|
13
|
-
polyTransitionBindProps: import(
|
|
14
|
+
polyTransitionBindProps: import('vue').ComputedRef<{
|
|
14
15
|
is: any;
|
|
15
16
|
transitionProps: any;
|
|
16
17
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
|
|
2
3
|
export interface ValidationProps {
|
|
3
4
|
validateOn: 'input' | 'blur' | 'lazy' | 'submit' | string;
|
|
4
5
|
}
|
|
@@ -21,14 +22,14 @@ export declare const pressValidationPropsOptions: <Defaults extends {
|
|
|
21
22
|
default: unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"];
|
|
22
23
|
};
|
|
23
24
|
status: unknown extends Defaults["status"] ? {
|
|
24
|
-
type: PropType<"error" | "
|
|
25
|
+
type: PropType<"error" | "warning" | "success" | undefined>;
|
|
25
26
|
validator(value: string): boolean;
|
|
26
27
|
} : Omit<{
|
|
27
|
-
type: PropType<"error" | "
|
|
28
|
+
type: PropType<"error" | "warning" | "success" | undefined>;
|
|
28
29
|
validator(value: string): boolean;
|
|
29
|
-
}, "
|
|
30
|
-
type: PropType<unknown extends Defaults["status"] ? "error" | "
|
|
31
|
-
default: unknown extends Defaults["status"] ? "error" | "
|
|
30
|
+
}, "default" | "type"> & {
|
|
31
|
+
type: PropType<unknown extends Defaults["status"] ? "error" | "warning" | "success" | undefined : Defaults["status"] | NonNullable<"error" | "warning" | "success" | undefined>>;
|
|
32
|
+
default: unknown extends Defaults["status"] ? "error" | "warning" | "success" | undefined : Defaults["status"] | NonNullable<"error" | "warning" | "success" | undefined>;
|
|
32
33
|
};
|
|
33
34
|
helperText: unknown extends Defaults["helperText"] ? StringConstructor : {
|
|
34
35
|
type: PropType<unknown extends Defaults["helperText"] ? string : string | Defaults["helperText"]>;
|
|
@@ -42,7 +43,7 @@ export declare const pressValidationPropsOptions: <Defaults extends {
|
|
|
42
43
|
type: PropType<string>;
|
|
43
44
|
} : Omit<{
|
|
44
45
|
type: PropType<string>;
|
|
45
|
-
}, "
|
|
46
|
+
}, "default" | "type"> & {
|
|
46
47
|
type: PropType<unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"]>;
|
|
47
48
|
default: unknown extends Defaults["validateOn"] ? string : string | Defaults["validateOn"];
|
|
48
49
|
};
|
|
@@ -56,26 +57,26 @@ export declare const pressValidationPropsOptions: <Defaults extends {
|
|
|
56
57
|
} : Omit<{
|
|
57
58
|
type: PropType<string | number>;
|
|
58
59
|
default: number;
|
|
59
|
-
}, "
|
|
60
|
-
type: PropType<unknown extends Defaults["maxErrors"] ? string | number : NonNullable<string | number
|
|
61
|
-
default: unknown extends Defaults["maxErrors"] ? string | number : NonNullable<string | number
|
|
60
|
+
}, "default" | "type"> & {
|
|
61
|
+
type: PropType<unknown extends Defaults["maxErrors"] ? string | number : Defaults["maxErrors"] | NonNullable<string | number>>;
|
|
62
|
+
default: unknown extends Defaults["maxErrors"] ? string | number : Defaults["maxErrors"] | NonNullable<string | number>;
|
|
62
63
|
};
|
|
63
64
|
};
|
|
64
65
|
export declare function useValidation(props: any, name: string, uid?: number | undefined): {
|
|
65
66
|
invokeValidators: () => Promise<any[]>;
|
|
66
67
|
resetError: () => void;
|
|
67
|
-
validating: import(
|
|
68
|
-
validateOn: import(
|
|
68
|
+
validating: import('vue').Ref<boolean>;
|
|
69
|
+
validateOn: import('vue').ComputedRef<{
|
|
69
70
|
blur: boolean;
|
|
70
71
|
input: boolean;
|
|
71
72
|
lazy: boolean;
|
|
72
73
|
submit: boolean;
|
|
73
74
|
}>;
|
|
74
|
-
errorResult: import(
|
|
75
|
-
errors: import(
|
|
76
|
-
isReadonly: import(
|
|
77
|
-
isDisabled: import(
|
|
78
|
-
isLoading: import(
|
|
79
|
-
isError: import(
|
|
80
|
-
isSuccess: import(
|
|
75
|
+
errorResult: import('vue').Ref<any>;
|
|
76
|
+
errors: import('vue').Ref<any[]>;
|
|
77
|
+
isReadonly: import('vue').ComputedRef<any>;
|
|
78
|
+
isDisabled: import('vue').ComputedRef<any>;
|
|
79
|
+
isLoading: import('vue').ComputedRef<any>;
|
|
80
|
+
isError: import('vue').ComputedRef<boolean>;
|
|
81
|
+
isSuccess: import('vue').ComputedRef<boolean>;
|
|
81
82
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { useLink as _useLink } from 'vue-router';
|
|
1
|
+
import { ComputedRef, PropType, Ref, SetupContext } from 'vue';
|
|
2
|
+
import { RouteLocationRaw, useLink as _useLink } from 'vue-router';
|
|
4
3
|
import { EventProp } from '../util';
|
|
4
|
+
|
|
5
5
|
export interface LinkProps {
|
|
6
6
|
href: string | undefined;
|
|
7
7
|
replace: boolean | undefined;
|
package/types/globals.d.ts
CHANGED
package/types/i18n/built-in.d.ts
CHANGED
package/types/i18n/types.d.ts
CHANGED
package/types/index.d.ts
CHANGED
package/types/mixins/di.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {
|
|
2
2
|
attrs_$: any;
|
|
3
3
|
listeners_$: any;
|
|
4
|
-
}, {}, {}, import(
|
|
4
|
+
}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
5
5
|
export default _default;
|