yuyeon 0.1.1-rc.9 → 0.1.2-rc.1
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 +2532 -2497
- package/dist/yuyeon.umd.cjs +11 -11
- package/lib/components/divider/YDivider.mjs +1 -0
- package/lib/components/divider/YDivider.mjs.map +1 -1
- package/lib/components/dropdown/YDropdown.mjs +4 -5
- package/lib/components/dropdown/YDropdown.mjs.map +1 -1
- package/lib/components/field-input/YFieldInput.mjs +1 -0
- package/lib/components/field-input/YFieldInput.mjs.map +1 -1
- package/lib/components/img/YImg.mjs +174 -0
- package/lib/components/img/YImg.mjs.map +1 -0
- package/lib/components/img/YImg.scss +31 -0
- package/lib/components/img/index.mjs +2 -0
- package/lib/components/img/index.mjs.map +1 -0
- package/lib/components/layer/YLayer.mjs +2 -2
- package/lib/components/layer/YLayer.mjs.map +1 -1
- package/lib/components/menu/YMenu.mjs +4 -5
- package/lib/components/menu/YMenu.mjs.map +1 -1
- package/lib/components/panel/YDividePanel.mjs +1 -0
- package/lib/components/panel/YDividePanel.mjs.map +1 -1
- package/lib/components/table/YDataTable.mjs +5 -1
- package/lib/components/table/YDataTable.mjs.map +1 -1
- package/lib/components/table/composibles/sorted-items.mjs +50 -0
- package/lib/components/table/composibles/sorted-items.mjs.map +1 -0
- package/lib/components/table/composibles/sorting.mjs.map +1 -1
- package/lib/components/text-ellipsis/YTextEllipsis.mjs +1 -1
- package/lib/components/text-ellipsis/YTextEllipsis.mjs.map +1 -1
- package/lib/components/tooltip/YTooltip.mjs +4 -5
- package/lib/components/tooltip/YTooltip.mjs.map +1 -1
- package/lib/composables/icon.mjs.map +1 -1
- package/lib/composables/layer-group.mjs +3 -1
- package/lib/composables/layer-group.mjs.map +1 -1
- package/lib/composables/list-items.mjs +2 -2
- package/lib/composables/list-items.mjs.map +1 -1
- package/lib/composables/resize-observer.mjs +2 -1
- package/lib/composables/resize-observer.mjs.map +1 -1
- package/lib/composables/transition.mjs +3 -2
- package/lib/composables/transition.mjs.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/types/index.mjs.map +1 -1
- package/lib/util/common.mjs +3 -0
- package/lib/util/common.mjs.map +1 -1
- package/lib/util/environments.mjs +8 -0
- package/lib/util/environments.mjs.map +1 -0
- package/package.json +1 -1
- package/types/components/dropdown/YDropdown.d.ts +43 -15
- package/types/components/img/YImg.d.ts +173 -0
- package/types/components/img/index.d.ts +0 -0
- package/types/components/layer/YLayer.d.ts +4 -4
- package/types/components/menu/YMenu.d.ts +20 -6
- package/types/components/select/YSelect.d.ts +213 -94
- package/types/components/table/YDataTable.d.ts +1 -1
- package/types/components/table/composibles/sorted-items.d.ts +7 -0
- package/types/components/tooltip/YTooltip.d.ts +20 -6
- package/types/composables/icon.d.ts +2 -1
- package/types/composables/transition.d.ts +20 -2
- package/types/types/index.d.ts +2 -3
- package/types/util/common.d.ts +1 -0
- package/types/util/environments.d.ts +6 -0
|
@@ -451,7 +451,7 @@ export declare const YDataTable: import('vue').DefineComponent<{
|
|
|
451
451
|
default: number;
|
|
452
452
|
};
|
|
453
453
|
}, {
|
|
454
|
-
paginatedItems: import('vue').ComputedRef<readonly
|
|
454
|
+
paginatedItems: import('vue').ComputedRef<readonly any[]>;
|
|
455
455
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
456
456
|
'update:modelValue': (value: any[]) => true;
|
|
457
457
|
'update:page': (page: number) => true;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { SortOption } from '../types';
|
|
3
|
+
|
|
4
|
+
export declare function useSortedItems(props: any, items: Ref<any[]>, sortBy: Ref<readonly SortOption[]>, options?: {}): {
|
|
5
|
+
sortedItems: import('vue').ComputedRef<any[]>;
|
|
6
|
+
};
|
|
7
|
+
export declare function sortItems(items: any[], sortOptions: readonly SortOption[], locale: string): any[];
|
|
@@ -4,11 +4,18 @@ import { PropType } from 'vue';
|
|
|
4
4
|
* # Component
|
|
5
5
|
*/
|
|
6
6
|
export declare const YTooltip: import('vue').DefineComponent<{
|
|
7
|
-
transition: {
|
|
8
|
-
default: string;
|
|
7
|
+
transition: Omit<{
|
|
9
8
|
type: PropType<string | (import('vue').TransitionProps & {
|
|
10
9
|
is?: import('vue').Component | undefined;
|
|
11
10
|
})>;
|
|
11
|
+
default: string;
|
|
12
|
+
}, "default" | "type"> & {
|
|
13
|
+
type: PropType<NonNullable<string | (import('vue').TransitionProps & {
|
|
14
|
+
is?: import('vue').Component | undefined;
|
|
15
|
+
})>>;
|
|
16
|
+
default: NonNullable<string | (import('vue').TransitionProps & {
|
|
17
|
+
is?: import('vue').Component | undefined;
|
|
18
|
+
})>;
|
|
12
19
|
};
|
|
13
20
|
minWidth: PropType<string | number>;
|
|
14
21
|
width: PropType<string | number>;
|
|
@@ -3785,11 +3792,18 @@ export declare const YTooltip: import('vue').DefineComponent<{
|
|
|
3785
3792
|
baseEl: import('vue').ComputedRef<any>;
|
|
3786
3793
|
active: import('vue').WritableComputedRef<boolean>;
|
|
3787
3794
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
3788
|
-
transition: {
|
|
3789
|
-
default: string;
|
|
3795
|
+
transition: Omit<{
|
|
3790
3796
|
type: PropType<string | (import('vue').TransitionProps & {
|
|
3791
3797
|
is?: import('vue').Component | undefined;
|
|
3792
3798
|
})>;
|
|
3799
|
+
default: string;
|
|
3800
|
+
}, "default" | "type"> & {
|
|
3801
|
+
type: PropType<NonNullable<string | (import('vue').TransitionProps & {
|
|
3802
|
+
is?: import('vue').Component | undefined;
|
|
3803
|
+
})>>;
|
|
3804
|
+
default: NonNullable<string | (import('vue').TransitionProps & {
|
|
3805
|
+
is?: import('vue').Component | undefined;
|
|
3806
|
+
})>;
|
|
3793
3807
|
};
|
|
3794
3808
|
minWidth: PropType<string | number>;
|
|
3795
3809
|
width: PropType<string | number>;
|
|
@@ -3905,9 +3919,9 @@ export declare const YTooltip: import('vue').DefineComponent<{
|
|
|
3905
3919
|
align: string;
|
|
3906
3920
|
closeDelay: number;
|
|
3907
3921
|
openDelay: number;
|
|
3908
|
-
transition: string | (import('vue').TransitionProps & {
|
|
3922
|
+
transition: NonNullable<string | (import('vue').TransitionProps & {
|
|
3909
3923
|
is?: import('vue').Component | undefined;
|
|
3910
|
-
})
|
|
3924
|
+
})>;
|
|
3911
3925
|
offset: NonNullable<string | number | number[]>;
|
|
3912
3926
|
coordinateStrategy: NonNullable<"levitation" | "arrangement" | import('../../composables/coordinate').CoordinateStrategyFn>;
|
|
3913
3927
|
position: "default" | "top" | "bottom" | "start" | "end" | "left" | "right";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes, SVGAttributes } from '@vue/runtime-dom';
|
|
1
2
|
import { InjectionKey, PropType, Ref } from 'vue';
|
|
2
3
|
import { JSXComponent } from '../types';
|
|
3
4
|
|
|
4
|
-
type IconComponent = JSXComponent<IconProps>;
|
|
5
|
+
type IconComponent = JSXComponent<IconProps> | JSXComponent<SVGAttributes | HTMLAttributes>;
|
|
5
6
|
export type IconValue = string | (string | [path: string, opacity: number])[] | IconComponent | {
|
|
6
7
|
component: JSXComponent;
|
|
7
8
|
props?: any;
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
import { Component, FunctionalComponent, PropType, TransitionProps } from 'vue';
|
|
2
2
|
|
|
3
|
-
export declare const
|
|
4
|
-
transition
|
|
3
|
+
export declare const pressPolyTransitionPropsOptions: <Defaults extends {
|
|
4
|
+
transition?: unknown;
|
|
5
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
6
|
+
transition: unknown extends Defaults["transition"] ? {
|
|
5
7
|
type: PropType<string | (TransitionProps & {
|
|
6
8
|
is?: Component | undefined;
|
|
7
9
|
})>;
|
|
8
10
|
default: string;
|
|
11
|
+
} : Omit<{
|
|
12
|
+
type: PropType<string | (TransitionProps & {
|
|
13
|
+
is?: Component | undefined;
|
|
14
|
+
})>;
|
|
15
|
+
default: string;
|
|
16
|
+
}, "default" | "type"> & {
|
|
17
|
+
type: PropType<unknown extends Defaults["transition"] ? string | (TransitionProps & {
|
|
18
|
+
is?: Component | undefined;
|
|
19
|
+
}) : NonNullable<string | (TransitionProps & {
|
|
20
|
+
is?: Component | undefined;
|
|
21
|
+
})> | Defaults["transition"]>;
|
|
22
|
+
default: unknown extends Defaults["transition"] ? string | (TransitionProps & {
|
|
23
|
+
is?: Component | undefined;
|
|
24
|
+
}) : NonNullable<string | (TransitionProps & {
|
|
25
|
+
is?: Component | undefined;
|
|
26
|
+
})> | Defaults["transition"];
|
|
9
27
|
};
|
|
10
28
|
};
|
|
11
29
|
export declare function usePolyTransition(props: {
|
package/types/types/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { HTMLAttributes } from '@vue/runtime-dom';
|
|
2
1
|
import { ComponentPublicInstance, FunctionalComponent } from 'vue';
|
|
3
2
|
|
|
4
3
|
export type CandidateKey = string | number;
|
|
5
|
-
export type JSXComponent<Props = any> = FunctionalComponent<Props
|
|
6
|
-
new (): ComponentPublicInstance<Props
|
|
4
|
+
export type JSXComponent<Props = any> = FunctionalComponent<Props> | {
|
|
5
|
+
new (): ComponentPublicInstance<Props>;
|
|
7
6
|
};
|
package/types/util/common.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ export declare function clamp(value: number, min?: number, max?: number): number
|
|
|
10
10
|
export declare function getRangeArr(length: number, start?: number): number[];
|
|
11
11
|
export declare function deepEqual(a: any, b: any): boolean;
|
|
12
12
|
export declare function isObject(obj: unknown): boolean;
|
|
13
|
+
export declare function isEmpty(target: any): boolean;
|
|
13
14
|
export declare function omit<T extends object, U extends Extract<keyof T, string>>(obj: T, excludes: U[]): Omit<T, U>;
|