yuyeon 0.2.3-rc.7 → 0.2.3-rc.9
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/yuyeon.js +2432 -2396
- package/dist/yuyeon.umd.cjs +3 -3
- package/lib/components/field-input/YFieldInput.mjs +3 -2
- package/lib/components/field-input/YFieldInput.mjs.map +1 -1
- package/lib/components/index.mjs +1 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/components/input/YInput.mjs +6 -2
- package/lib/components/input/YInput.mjs.map +1 -1
- package/lib/components/layer/YLayer.mjs +21 -17
- package/lib/components/layer/YLayer.mjs.map +1 -1
- package/lib/components/layer/base.mjs +2 -1
- package/lib/components/layer/base.mjs.map +1 -1
- package/lib/components/select/YSelect.mjs +20 -8
- package/lib/components/select/YSelect.mjs.map +1 -1
- package/lib/components/table/YDataTableBody.mjs +12 -3
- package/lib/components/table/YDataTableBody.mjs.map +1 -1
- package/lib/components/table/YDataTableRow.mjs +7 -2
- package/lib/components/table/YDataTableRow.mjs.map +1 -1
- package/lib/components/tooltip/YTooltip.mjs +4 -4
- package/lib/components/tooltip/YTooltip.mjs.map +1 -1
- package/lib/composables/layer-group.mjs +10 -4
- package/lib/composables/layer-group.mjs.map +1 -1
- package/lib/i18n/built-in.mjs +2 -2
- package/lib/i18n/built-in.mjs.map +1 -1
- package/lib/util/component/component.mjs +4 -0
- package/lib/util/component/component.mjs.map +1 -1
- package/package.json +120 -117
- package/types/components/checkbox/YCheckbox.d.ts +1 -1
- package/types/components/date-picker/YDateCalendar.d.ts +5 -5
- package/types/components/dialog/YDialog.d.ts +4937 -28
- package/types/components/draggable/YDraggable.d.ts +8 -8
- package/types/components/dropdown/YDropdown.d.ts +17 -11
- package/types/components/field-input/YFieldInput.d.ts +3 -3
- package/types/components/index.d.ts +1 -0
- package/types/components/input/YInput.d.ts +1 -1
- package/types/components/layer/YLayer.d.ts +1610 -11
- package/types/components/layer/active-stack.d.ts +1 -1
- package/types/components/layer/base.d.ts +9 -3
- package/types/components/menu/YMenu.d.ts +4916 -11
- package/types/components/pagination/YPagination.d.ts +3 -3
- package/types/components/panel/YDividePanel.d.ts +2 -2
- package/types/components/progress-bar/YProgressBar.d.ts +1 -1
- package/types/components/select/YSelect.d.ts +129 -98
- package/types/components/snackbar/YSnackbar.d.ts +11 -5
- package/types/components/tab/YTabs.d.ts +1 -1
- package/types/components/table/YDataTable.d.ts +6 -0
- package/types/components/table/YDataTableBody.d.ts +6 -0
- package/types/components/table/YDataTableRow.d.ts +6 -0
- package/types/components/table/YDataTableServer.d.ts +6 -0
- package/types/components/table/composibles/header.d.ts +38 -2
- package/types/components/table/composibles/measure.d.ts +6 -6
- package/types/components/table/composibles/pagination.d.ts +8 -8
- package/types/components/table/composibles/sorting.d.ts +3 -3
- package/types/components/textarea/YTextarea.d.ts +95 -5
- package/types/components/tooltip/YTooltip.d.ts +10 -6
- package/types/components/transitions/expand-transition.d.ts +5 -5
- package/types/components/transitions/index.d.ts +10 -10
- package/types/components/tree-view/YTreeView.d.ts +13 -13
- package/types/components/tree-view/YTreeViewNode.d.ts +4 -4
- package/types/composables/communication.d.ts +2 -2
- package/types/composables/coordinate/index.d.ts +1599 -6
- package/types/composables/defaults/index.d.ts +3 -3
- package/types/composables/focus.d.ts +1 -1
- package/types/composables/form.d.ts +17 -2
- package/types/composables/layer-group.d.ts +4 -2
- package/types/composables/progress.d.ts +1 -1
- package/types/composables/ref.d.ts +1 -1
- package/types/composables/resize-observer.d.ts +11 -1
- package/types/composables/theme/index.d.ts +7 -7
- package/types/composables/timing.d.ts +3 -3
- package/types/composables/validation.d.ts +3 -3
- package/types/mixins/di.d.ts +1 -1
- package/types/mixins/rebind-attrs.d.ts +1 -1
- package/types/shims.d.ts +2 -1
- package/types/util/anchor.d.ts +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MaybeRef } from 'vue';
|
|
2
2
|
import { DefaultsModuleInstance, ProvideDefaultsOptions } from './types';
|
|
3
3
|
|
|
4
|
-
export declare function createDefaultsModule(options?: DefaultsModuleInstance): import('vue').Ref<DefaultsModuleInstance>;
|
|
5
|
-
export declare function useDefaultsModule(): import('vue').Ref<DefaultsModuleInstance>;
|
|
4
|
+
export declare function createDefaultsModule(options?: DefaultsModuleInstance): import('vue').Ref<DefaultsModuleInstance, DefaultsModuleInstance>;
|
|
5
|
+
export declare function useDefaultsModule(): import('vue').Ref<DefaultsModuleInstance, DefaultsModuleInstance>;
|
|
6
6
|
export declare function provideDefaults(defaults?: MaybeRef<DefaultsModuleInstance | undefined>, options?: ProvideDefaultsOptions): import('vue').ComputedRef<DefaultsModuleInstance>;
|
|
7
|
-
export declare function useSuperDefaults(props?: Record<string, any>, name?: string, defaults?: import('vue').Ref<DefaultsModuleInstance>): {
|
|
7
|
+
export declare function useSuperDefaults(props?: Record<string, any>, name?: string, defaults?: import('vue').Ref<DefaultsModuleInstance, DefaultsModuleInstance>): {
|
|
8
8
|
props: Record<string, any>;
|
|
9
9
|
provideSubDefaults: () => void;
|
|
10
10
|
};
|
|
@@ -18,7 +18,7 @@ export declare const pressFocusPropsOptions: <Defaults extends {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
export declare function useFocus(props: ExtractPropTypes<typeof focusPropsOptions>, className: string): {
|
|
21
|
-
focused: import('vue').Ref<any> & {
|
|
21
|
+
focused: import('vue').Ref<any, any> & {
|
|
22
22
|
readonly rxValue: any;
|
|
23
23
|
};
|
|
24
24
|
whenFocus: () => void;
|
|
@@ -96,6 +96,14 @@ export declare function createForm(props: FormProps): {
|
|
|
96
96
|
validate: () => Promise<any[]>;
|
|
97
97
|
isError: boolean | null | undefined;
|
|
98
98
|
errors: any[];
|
|
99
|
+
}[], FormInput[] | {
|
|
100
|
+
id: string | number;
|
|
101
|
+
vnode: VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}>;
|
|
104
|
+
validate: () => Promise<any[]>;
|
|
105
|
+
isError: boolean | null | undefined;
|
|
106
|
+
errors: any[];
|
|
99
107
|
}[]>;
|
|
100
108
|
errors: Ref<{
|
|
101
109
|
id: string | number;
|
|
@@ -104,14 +112,21 @@ export declare function createForm(props: FormProps): {
|
|
|
104
112
|
}>;
|
|
105
113
|
exposed: any;
|
|
106
114
|
errors: any[];
|
|
115
|
+
}[], InputValidationResult[] | {
|
|
116
|
+
id: string | number;
|
|
117
|
+
vnode: VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
118
|
+
[key: string]: any;
|
|
119
|
+
}>;
|
|
120
|
+
exposed: any;
|
|
121
|
+
errors: any[];
|
|
107
122
|
}[]>;
|
|
108
|
-
isValid: Ref<any> & {
|
|
123
|
+
isValid: Ref<any, any> & {
|
|
109
124
|
readonly rxValue: any;
|
|
110
125
|
};
|
|
111
126
|
isDisabled: ComputedRef<boolean>;
|
|
112
127
|
isReadonly: ComputedRef<boolean>;
|
|
113
128
|
isLoading: ComputedRef<boolean>;
|
|
114
|
-
isValidating: import('vue').ShallowRef<boolean>;
|
|
129
|
+
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
115
130
|
validate: () => Promise<{
|
|
116
131
|
valid: boolean;
|
|
117
132
|
errors: {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MaybeRef, ComponentInternalInstance } from 'vue';
|
|
2
2
|
|
|
3
3
|
export declare const Y_LAYER_GROUP_CLASS_NAME = "y-layer-group";
|
|
4
|
-
export declare function useLayerGroup(
|
|
4
|
+
export declare function useLayerGroup(props: {
|
|
5
|
+
layerGroup?: MaybeRef<string | Element | undefined>;
|
|
6
|
+
}): {
|
|
5
7
|
layerGroup: import('vue').ComputedRef<HTMLElement>;
|
|
6
8
|
layerGroupState: WeakMap<HTMLElement, Set<any>>;
|
|
7
9
|
getActiveLayers: () => ComponentInternalInstance[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function useResizeObserver(callback?: ResizeObserverCallback): {
|
|
2
|
-
resizeObservedRef: import('vue').Ref<HTMLElement | undefined>;
|
|
2
|
+
resizeObservedRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
3
3
|
contentRect: Readonly<import('vue').Ref<{
|
|
4
4
|
readonly bottom: number;
|
|
5
5
|
readonly height: number;
|
|
@@ -10,5 +10,15 @@ export declare function useResizeObserver(callback?: ResizeObserverCallback): {
|
|
|
10
10
|
readonly x: number;
|
|
11
11
|
readonly y: number;
|
|
12
12
|
readonly toJSON: () => any;
|
|
13
|
+
} | undefined, {
|
|
14
|
+
readonly bottom: number;
|
|
15
|
+
readonly height: number;
|
|
16
|
+
readonly left: number;
|
|
17
|
+
readonly right: number;
|
|
18
|
+
readonly top: number;
|
|
19
|
+
readonly width: number;
|
|
20
|
+
readonly x: number;
|
|
21
|
+
readonly y: number;
|
|
22
|
+
readonly toJSON: () => any;
|
|
13
23
|
} | undefined>>;
|
|
14
24
|
};
|
|
@@ -36,18 +36,18 @@ export declare function createThemeModule(options: ThemeOptions): {
|
|
|
36
36
|
scope: import('vue').EffectScope;
|
|
37
37
|
instance: {
|
|
38
38
|
global: {
|
|
39
|
-
scheme: Ref<string>;
|
|
40
|
-
theme: Ref<[string, string]>;
|
|
39
|
+
scheme: Ref<string, string>;
|
|
40
|
+
theme: Ref<[string, string], [string, string]>;
|
|
41
41
|
};
|
|
42
|
-
themes: Ref<any>;
|
|
43
|
-
scheme: Ref<string>;
|
|
44
|
-
theme: Ref<[string, string]>;
|
|
42
|
+
themes: Ref<any, any>;
|
|
43
|
+
scheme: Ref<string, string>;
|
|
44
|
+
theme: Ref<[string, string], [string, string]>;
|
|
45
45
|
currentThemeKey: ComputedRef<string>;
|
|
46
46
|
themeClasses: ComputedRef<string>;
|
|
47
47
|
computedThemes: ComputedRef<Record<string, import('./types').ThemeDefinition>>;
|
|
48
48
|
computedPalette: ComputedRef<Record<string, string>>;
|
|
49
|
-
supportedAutoMode: Readonly<Ref<boolean>>;
|
|
50
|
-
preferColorScheme: Readonly<Ref<string>>;
|
|
49
|
+
supportedAutoMode: Readonly<Ref<boolean, boolean>>;
|
|
50
|
+
preferColorScheme: Readonly<Ref<string, string>>;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
export declare function useLocalTheme(props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MaybeRef, Ref } from 'vue';
|
|
2
2
|
|
|
3
3
|
export declare function useLazy(eager: Ref<boolean | undefined>, updated: Ref<any>): {
|
|
4
|
-
entered: Ref<boolean>;
|
|
4
|
+
entered: Ref<boolean, boolean>;
|
|
5
5
|
lazyValue: import('vue').ComputedRef<any>;
|
|
6
6
|
onAfterUpdate: () => void;
|
|
7
7
|
};
|
|
@@ -11,8 +11,8 @@ export declare function useTimer(cb: () => void, duration: MaybeRef<number>, opt
|
|
|
11
11
|
start: () => void;
|
|
12
12
|
stop: () => void;
|
|
13
13
|
reset: () => void;
|
|
14
|
-
drift: Ref<number>;
|
|
15
|
-
isWork: Ref<boolean>;
|
|
14
|
+
drift: Ref<number, number>;
|
|
15
|
+
isWork: Ref<boolean, boolean>;
|
|
16
16
|
};
|
|
17
17
|
export declare function useDelay(props: any, callback?: (active: boolean) => void): {
|
|
18
18
|
startOpenDelay: () => Promise<boolean>;
|
|
@@ -65,15 +65,15 @@ export declare const pressValidationPropsOptions: <Defaults extends {
|
|
|
65
65
|
export declare function useValidation(props: any, name: string, uid?: number | undefined): {
|
|
66
66
|
invokeValidators: () => Promise<any[]>;
|
|
67
67
|
resetError: () => void;
|
|
68
|
-
validating: import('vue').Ref<boolean>;
|
|
68
|
+
validating: import('vue').Ref<boolean, boolean>;
|
|
69
69
|
validateOn: import('vue').ComputedRef<{
|
|
70
70
|
blur: boolean;
|
|
71
71
|
input: boolean;
|
|
72
72
|
lazy: boolean;
|
|
73
73
|
submit: boolean;
|
|
74
74
|
}>;
|
|
75
|
-
errorResult: import('vue').Ref<any>;
|
|
76
|
-
errors: import('vue').Ref<any[]>;
|
|
75
|
+
errorResult: import('vue').Ref<any, any>;
|
|
76
|
+
errors: import('vue').Ref<any[], any[]>;
|
|
77
77
|
isReadonly: import('vue').ComputedRef<any>;
|
|
78
78
|
isDisabled: import('vue').ComputedRef<any>;
|
|
79
79
|
isLoading: import('vue').ComputedRef<any>;
|
package/types/mixins/di.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {}, {
|
|
2
2
|
attrs_$: any;
|
|
3
3
|
listeners_$: any;
|
|
4
|
-
}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').
|
|
4
|
+
}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
5
|
export default _default;
|
package/types/shims.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { YAlert, YApp, YBadge, YButton, YCard, YCardBody, YCardFooter, YCardHeader, YCheckbox, YChip, YDataTable, YDataTableServer, YDateCalendar, YDatePicker, YDialog, YDividePanel, YDivider, YDropdown, YExpandHTransition, YExpandVTransition, YFieldInput, YForm, YHover, YIcon, YInput, YInputCheckbox, YIpv4Field, YLayer, YList, YListItem, YMenu, YMonthPicker, YPagination, YProgressBar, YSelect, YSnackbar, YSpinnerRing, YSwitch, YTab, YTable, YTabs, YTextarea, YTooltip, YTreeView, YTreeViewNode
|
|
1
|
+
import { YAlert, YApp, YBadge, YButton, YCard, YCardBody, YCardFooter, YCardHeader, YCheckbox, YChip, YDataTable, YDataTableServer, YDateCalendar, YDatePicker, YDialog, YDividePanel, YDivider, YDropdown, YExpandHTransition, YExpandVTransition, YFieldInput, YForm, YHover, YIcon, YInput, YInputCheckbox, YIpv4Field, YLayer, YList, YListItem, YMenu, YMonthPicker, YPagination, YProgressBar, YSelect, YSnackbar, YSpinnerRing, YSwitch, YTab, YTable, YTabs, YTextHighlighter, YTextarea, YTi, YTooltip, YTreeView, YTreeViewNode } from 'yuyeon/components';
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
declare module '@vue/runtime-core' {
|
|
@@ -50,5 +50,6 @@ declare module '@vue/runtime-core' {
|
|
|
50
50
|
YIpv4Field: typeof YIpv4Field;
|
|
51
51
|
YHover: typeof YHover;
|
|
52
52
|
YTi: typeof YTi;
|
|
53
|
+
YTextHighlighter: typeof YTextHighlighter;
|
|
53
54
|
}
|
|
54
55
|
}
|
package/types/util/anchor.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type ParsedAnchor = {
|
|
|
15
15
|
};
|
|
16
16
|
/** Parse a raw anchor string into an object */
|
|
17
17
|
export declare function parseAnchor(anchor: Anchor, isRtl: boolean): ParsedAnchor;
|
|
18
|
-
export declare function toPhysical(str: 'center' | Tblock | Tinline, isRtl: boolean): "
|
|
18
|
+
export declare function toPhysical(str: 'center' | Tblock | Tinline, isRtl: boolean): "left" | "right" | "top" | "bottom" | "center";
|
|
19
19
|
export declare function flipSide(anchor: ParsedAnchor): ParsedAnchor;
|
|
20
20
|
export declare function flipAlign(anchor: ParsedAnchor): ParsedAnchor;
|
|
21
21
|
export declare function flipCorner(anchor: ParsedAnchor): ParsedAnchor;
|