yuyeon 0.0.26 → 0.0.27
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 +5840 -5496
- package/dist/yuyeon.umd.cjs +3 -3
- package/lib/components/alert/YAlert.mjs +41 -6
- package/lib/components/alert/YAlert.mjs.map +1 -1
- package/lib/components/alert/YAlert.scss +25 -23
- package/lib/components/button/YButton.mjs +79 -74
- package/lib/components/button/YButton.mjs.map +1 -1
- package/lib/components/checkbox/YCheckbox.mjs.map +1 -1
- package/lib/components/checkbox/YCheckbox.scss +48 -48
- package/lib/components/index.mjs +1 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/components/tab/YTab.mjs +57 -7
- package/lib/components/tab/YTab.mjs.map +1 -1
- package/lib/components/tab/YTab.scss +59 -0
- package/lib/components/tab/YTabs.mjs +50 -8
- package/lib/components/tab/YTabs.mjs.map +1 -1
- package/lib/components/tab/YTabs.scss +10 -0
- package/lib/components/tab/index.mjs +1 -0
- package/lib/components/tab/index.mjs.map +1 -1
- package/lib/components/tab/shared.mjs +2 -0
- package/lib/components/tab/shared.mjs.map +1 -0
- package/lib/components/tab/types.mjs +2 -0
- package/lib/components/tab/types.mjs.map +1 -0
- package/lib/components/table/YTable.scss +2 -1
- package/lib/components/toggle-button/YToggleButton.mjs +2 -0
- package/lib/components/toggle-button/YToggleButton.mjs.map +1 -0
- package/lib/components/toggle-button/index.mjs +2 -0
- package/lib/components/toggle-button/index.mjs.map +1 -0
- package/lib/components/tooltip/YTooltip.mjs +3 -3
- package/lib/components/tooltip/YTooltip.mjs.map +1 -1
- package/lib/components/tree-view/YTreeView.mjs +1 -1
- package/lib/components/tree-view/YTreeView.mjs.map +1 -1
- package/lib/components/tree-view/YTreeViewNode.mjs.map +1 -1
- package/lib/composables/choice.mjs +1 -1
- package/lib/composables/choice.mjs.map +1 -1
- package/lib/composables/communication.mjs +1 -1
- package/lib/composables/communication.mjs.map +1 -1
- package/lib/composables/index.mjs +2 -0
- package/lib/composables/index.mjs.map +1 -0
- package/lib/composables/theme/setting.mjs.map +1 -1
- package/lib/composables/vue-router.mjs +32 -0
- package/lib/composables/vue-router.mjs.map +1 -0
- package/lib/styles/_variables.scss +2 -0
- package/lib/styles/theme/dark.scss +11 -11
- package/lib/styles/theme/light.scss +11 -11
- package/lib/util/index.mjs +16 -0
- package/lib/util/index.mjs.map +1 -0
- package/lib/util/reactivity.mjs +5 -0
- package/lib/util/reactivity.mjs.map +1 -1
- package/lib/util/vue-component.mjs +24 -0
- package/lib/util/vue-component.mjs.map +1 -1
- package/package.json +11 -1
- package/types/components/button/YButton.d.ts +96 -42
- package/types/components/checkbox/YInputCheckbox.d.ts +1 -1
- package/types/components/dropdown/YDropdown.d.ts +3 -3
- package/types/components/field-input/YFieldInput.d.ts +26 -44
- package/types/components/index.d.ts +1 -0
- package/types/components/input/YInput.d.ts +16 -16
- package/types/components/layer/YLayer.d.ts +8 -8
- package/types/components/list/YList.d.ts +2 -2
- package/types/components/list/YListItem.d.ts +3 -3
- package/types/components/pagination/YPagination.d.ts +6 -6
- package/types/components/select/YSelect.d.ts +35 -53
- package/types/components/tab/YTab.d.ts +282 -7
- package/types/components/tab/YTabs.d.ts +111 -3
- package/types/components/tab/index.d.ts +1 -0
- package/types/components/tab/shared.d.ts +3 -0
- package/types/components/tab/types.d.ts +4 -0
- package/types/components/table/YDataTable.d.ts +7 -7
- package/types/components/table/YDataTableHead.d.ts +3 -3
- package/types/components/table/YDataTableRow.d.ts +3 -3
- package/types/components/table/YDataTableServer.d.ts +7 -7
- package/types/components/table/composibles/items.d.ts +1 -1
- package/types/components/table/composibles/selection.d.ts +1 -1
- package/types/components/table/composibles/sorting.d.ts +1 -1
- package/types/components/toggle-button/YToggleButton.d.ts +3 -0
- package/types/components/toggle-button/index.d.ts +1 -0
- package/types/components/tree-view/YTreeViewNode.d.ts +6 -6
- package/types/composables/choice.d.ts +107 -0
- package/types/composables/dimension.d.ts +6 -6
- package/types/composables/focus.d.ts +2 -2
- package/types/composables/list-items.d.ts +1 -1
- package/types/composables/theme/index.d.ts +1 -1
- package/types/composables/vue-router.d.ts +43 -0
- package/types/shims.d.ts +81 -77
- package/types/util/collection.d.ts +1 -0
- package/types/util/frame-scheduler.d.ts +7 -0
- package/types/util/index.d.ts +15 -0
- package/types/util/reactivity.d.ts +4 -0
- package/types/util/validation.d.ts +3 -0
- package/types/util/vue-component.d.ts +8 -4
package/types/shims.d.ts
CHANGED
|
@@ -1,77 +1,81 @@
|
|
|
1
|
-
import * as vue from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import {
|
|
3
|
+
YAlert,
|
|
4
|
+
YApp,
|
|
5
|
+
YButton,
|
|
6
|
+
YCard,
|
|
7
|
+
YCardBody,
|
|
8
|
+
YCardFooter,
|
|
9
|
+
YCardHeader,
|
|
10
|
+
YCheckbox,
|
|
11
|
+
YChip,
|
|
12
|
+
YDataTable,
|
|
13
|
+
YDataTableServer,
|
|
14
|
+
YDialog,
|
|
15
|
+
YDividePanel,
|
|
16
|
+
YDropdown,
|
|
17
|
+
YExpandHTransition,
|
|
18
|
+
YExpandVTransition,
|
|
19
|
+
YFieldInput,
|
|
20
|
+
YForm,
|
|
21
|
+
YInput,
|
|
22
|
+
YInputCheckbox,
|
|
23
|
+
YLayer,
|
|
24
|
+
YList,
|
|
25
|
+
YListItem,
|
|
26
|
+
YMenu,
|
|
27
|
+
YPagination,
|
|
28
|
+
YProgressBar,
|
|
29
|
+
YSelect,
|
|
30
|
+
YSnackbar,
|
|
31
|
+
YSpinnerRing,
|
|
32
|
+
YSwitch,
|
|
33
|
+
YTab,
|
|
34
|
+
YTable,
|
|
35
|
+
YTabs,
|
|
36
|
+
YTooltip,
|
|
37
|
+
YTreeView,
|
|
38
|
+
YTreeViewNode,
|
|
39
|
+
} from 'yuyeon/types/components';
|
|
40
|
+
|
|
41
|
+
declare module '@vue/runtime-core' {
|
|
42
|
+
export interface GlobalComponents {
|
|
43
|
+
// @define-components
|
|
44
|
+
YApp: typeof YApp;
|
|
45
|
+
YButton: typeof YButton;
|
|
46
|
+
YChip: typeof YChip;
|
|
47
|
+
YInput: typeof YInput;
|
|
48
|
+
YFieldInput: typeof YFieldInput;
|
|
49
|
+
YForm: typeof YForm;
|
|
50
|
+
YCard: typeof YCard;
|
|
51
|
+
YCardBody: typeof YCardBody;
|
|
52
|
+
YCardHeader: typeof YCardHeader;
|
|
53
|
+
YCardFooter: typeof YCardFooter;
|
|
54
|
+
YDialog: typeof YDialog;
|
|
55
|
+
YLayer: typeof YLayer;
|
|
56
|
+
YSnackbar: typeof YSnackbar;
|
|
57
|
+
YProgressBar: typeof YProgressBar;
|
|
58
|
+
YSpinnerRing: typeof YSpinnerRing;
|
|
59
|
+
YTooltip: typeof YTooltip;
|
|
60
|
+
YExpandVTransition: typeof YExpandVTransition;
|
|
61
|
+
YExpandHTransition: typeof YExpandHTransition;
|
|
62
|
+
YDividePanel: typeof YDividePanel;
|
|
63
|
+
YList: typeof YList;
|
|
64
|
+
YListItem: typeof YListItem;
|
|
65
|
+
YTreeView: typeof YTreeView;
|
|
66
|
+
YTreeViewNode: typeof YTreeViewNode;
|
|
67
|
+
YDataTable: typeof YDataTable;
|
|
68
|
+
YTable: typeof YTable;
|
|
69
|
+
YDataTableServer: typeof YDataTableServer;
|
|
70
|
+
YMenu: typeof YMenu;
|
|
71
|
+
YPagination: typeof YPagination;
|
|
72
|
+
YInputCheckbox: typeof YInputCheckbox;
|
|
73
|
+
YCheckbox: typeof YCheckbox;
|
|
74
|
+
YSwitch: typeof YSwitch;
|
|
75
|
+
YDropdown: typeof YDropdown;
|
|
76
|
+
YSelect: typeof YSelect;
|
|
77
|
+
YAlert: typeof YAlert;
|
|
78
|
+
YTabs: typeof YTabs;
|
|
79
|
+
YTab: typeof YTab;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getFlatChildren(children: any[], childrenKey?: string): any[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './common';
|
|
2
|
+
export * from './collection';
|
|
3
|
+
export * from './array';
|
|
4
|
+
export * from './string';
|
|
5
|
+
export * from './validation';
|
|
6
|
+
export * from './debounce';
|
|
7
|
+
export * from './dom';
|
|
8
|
+
export * from './ui';
|
|
9
|
+
export * from './rect';
|
|
10
|
+
export * from './anchor';
|
|
11
|
+
export * from './scroll';
|
|
12
|
+
export * from './frame-scheduler';
|
|
13
|
+
export * from './vue-component';
|
|
14
|
+
export * from './reactivity';
|
|
15
|
+
export * from './color';
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
+
import { ComponentInternalInstance } from '@vue/runtime-core';
|
|
1
2
|
import type { IfAny } from '@vue/shared';
|
|
2
|
-
import type { ComponentObjectPropsOptions, ComponentPublicInstance, ExtractPropTypes, Prop, PropType, VNode } from 'vue';
|
|
3
|
+
import type { ComponentObjectPropsOptions, ComponentPublicInstance, ExtractPropTypes, InjectionKey, Prop, PropType, VNode, VNodeChild } from 'vue';
|
|
3
4
|
export declare function getSlot(vm: ComponentPublicInstance | any, name?: string, data?: any | (() => any), optional?: boolean): VNode[] | undefined;
|
|
4
5
|
export declare function getUid(): number | undefined;
|
|
5
6
|
export declare function chooseProps<PropsOptions extends ComponentObjectPropsOptions>(props: any, target: PropsOptions): ExtractPropTypes<PropsOptions>;
|
|
6
7
|
export declare function bindClasses(classes: string | string[] | Record<string, any> | undefined): Record<string, boolean>;
|
|
7
8
|
export declare function getHtmlElement<N extends object | undefined>(node: N): Exclude<N, ComponentPublicInstance> | HTMLElement;
|
|
9
|
+
export declare function findChildrenWithProvide(key: InjectionKey<any> | symbol, vnode?: VNodeChild): ComponentInternalInstance[];
|
|
8
10
|
export declare function propsFactory<PropsOptions extends ComponentObjectPropsOptions>(props: PropsOptions, source: string): <Defaults extends PartialKeys<PropsOptions> = {}>(defaults?: Defaults | undefined) => OverwrittenPropOptions<PropsOptions, Defaults>;
|
|
11
|
+
export declare function hasEventProp(props: Record<string, any>, type: string): boolean;
|
|
9
12
|
type OverwrittenPropOptions<T extends ComponentObjectPropsOptions, D extends PartialKeys<T>> = {
|
|
10
13
|
[P in keyof T]-?: unknown extends D[P] ? T[P] : T[P] extends Record<string, unknown> ? Omit<T[P], 'type' | 'default'> & {
|
|
11
|
-
type:
|
|
14
|
+
type: PropType<MergeDefault<T[P], D[P]>>;
|
|
12
15
|
default: MergeDefault<T[P], D[P]>;
|
|
13
16
|
} : {
|
|
14
|
-
type: PropType<MergeDefault<P, D>>;
|
|
17
|
+
type: PropType<MergeDefault<T[P], D[P]>>;
|
|
15
18
|
default: MergeDefault<T[P], D[P]>;
|
|
16
19
|
};
|
|
17
20
|
};
|
|
18
21
|
type MergeDefault<T, D> = unknown extends D ? InferPropType<T> : NonNullable<InferPropType<T>> | D;
|
|
19
|
-
type FollowPropType<T, P, D> = [T] extends [PropType<unknown>] ? T : PropType<MergeDefault<P, D>>;
|
|
20
22
|
type PartialKeys<T> = {
|
|
21
23
|
[P in keyof T]?: unknown;
|
|
22
24
|
};
|
|
@@ -31,4 +33,6 @@ type InferPropType<T> = [T] extends [null] ? any : [T] extends [{
|
|
|
31
33
|
}] ? Date : [T] extends [(infer U)[] | {
|
|
32
34
|
type: (infer U)[];
|
|
33
35
|
}] ? U extends DateConstructor ? Date | InferPropType<U> : InferPropType<U> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? IfAny<V, V, D> : V : T;
|
|
36
|
+
export type EventProp<T extends any[] = any[], F = (...args: T) => any> = F | F[];
|
|
37
|
+
export declare const EventPropOption: <T extends any[] = any[]>() => PropType<EventProp<T, (...args: T) => any>>;
|
|
34
38
|
export {};
|