yuyeon 0.2.1-rc.6 → 0.2.1-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 +813 -815
- package/dist/yuyeon.umd.cjs +2 -2
- package/lib/components/chip/YChip.mjs +1 -1
- package/lib/components/chip/YChip.mjs.map +1 -1
- package/lib/components/select/YSelect.mjs +3 -10
- package/lib/components/select/YSelect.mjs.map +1 -1
- package/lib/components/slider/YSlider.mjs +26 -0
- package/lib/components/slider/YSlider.mjs.map +1 -0
- package/lib/components/slider/index.mjs +2 -0
- package/lib/components/slider/index.mjs.map +1 -0
- package/lib/components/table/YDataTableServer.mjs +6 -4
- package/lib/components/table/YDataTableServer.mjs.map +1 -1
- package/lib/components/table/composibles/selection.mjs +12 -4
- package/lib/components/table/composibles/selection.mjs.map +1 -1
- package/lib/util/color/const.mjs +1 -1
- package/lib/util/color/const.mjs.map +1 -1
- package/package.json +1 -1
- package/types/components/select/YSelect.d.ts +15 -27
- package/types/components/slider/YSlider.d.ts +16 -0
- package/types/components/slider/index.d.ts +0 -0
- package/types/components/table/YDataTable.d.ts +8 -8
- package/types/components/table/YDataTableServer.d.ts +8 -8
- package/types/components/table/composibles/selection.d.ts +7 -7
|
@@ -14,7 +14,7 @@ export declare const pressDataTableProps: <Defaults extends {
|
|
|
14
14
|
enableSelect?: unknown;
|
|
15
15
|
selectStrategy?: unknown;
|
|
16
16
|
modelValue?: unknown;
|
|
17
|
-
|
|
17
|
+
itemComparator?: unknown;
|
|
18
18
|
sortBy?: unknown;
|
|
19
19
|
items?: unknown;
|
|
20
20
|
itemKey?: unknown;
|
|
@@ -127,15 +127,15 @@ export declare const pressDataTableProps: <Defaults extends {
|
|
|
127
127
|
type: PropType<unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"]>;
|
|
128
128
|
default: unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"];
|
|
129
129
|
};
|
|
130
|
-
|
|
131
|
-
type: PropType<typeof import('../../util').deepEqual>;
|
|
130
|
+
itemComparator: unknown extends Defaults["itemComparator"] ? {
|
|
131
|
+
type: PropType<string | typeof import('../../util').deepEqual>;
|
|
132
132
|
default: typeof import('../../util').deepEqual;
|
|
133
133
|
} : Omit<{
|
|
134
|
-
type: PropType<typeof import('../../util').deepEqual>;
|
|
134
|
+
type: PropType<string | typeof import('../../util').deepEqual>;
|
|
135
135
|
default: typeof import('../../util').deepEqual;
|
|
136
136
|
}, "type" | "default"> & {
|
|
137
|
-
type: PropType<unknown extends Defaults["
|
|
138
|
-
default: unknown extends Defaults["
|
|
137
|
+
type: PropType<unknown extends Defaults["itemComparator"] ? string | typeof import('../../util').deepEqual : NonNullable<string | typeof import('../../util').deepEqual> | Defaults["itemComparator"]>;
|
|
138
|
+
default: unknown extends Defaults["itemComparator"] ? string | typeof import('../../util').deepEqual : NonNullable<string | typeof import('../../util').deepEqual> | Defaults["itemComparator"];
|
|
139
139
|
};
|
|
140
140
|
sortBy: unknown extends Defaults["sortBy"] ? {
|
|
141
141
|
type: PropType<readonly {
|
|
@@ -385,8 +385,8 @@ export declare const YDataTable: import('vue').DefineComponent<{
|
|
|
385
385
|
type: PropType<readonly any[]>;
|
|
386
386
|
default: () => never[];
|
|
387
387
|
};
|
|
388
|
-
|
|
389
|
-
type: PropType<typeof import('../../util').deepEqual>;
|
|
388
|
+
itemComparator: {
|
|
389
|
+
type: PropType<string | typeof import('../../util').deepEqual>;
|
|
390
390
|
default: typeof import('../../util').deepEqual;
|
|
391
391
|
};
|
|
392
392
|
sortBy: {
|
|
@@ -14,7 +14,7 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
14
14
|
enableSelect?: unknown;
|
|
15
15
|
selectStrategy?: unknown;
|
|
16
16
|
modelValue?: unknown;
|
|
17
|
-
|
|
17
|
+
itemComparator?: unknown;
|
|
18
18
|
sortBy?: unknown;
|
|
19
19
|
items?: unknown;
|
|
20
20
|
itemKey?: unknown;
|
|
@@ -130,15 +130,15 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
130
130
|
type: PropType<unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"]>;
|
|
131
131
|
default: unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"];
|
|
132
132
|
};
|
|
133
|
-
|
|
134
|
-
type: PropType<typeof import('../../util').deepEqual>;
|
|
133
|
+
itemComparator: unknown extends Defaults["itemComparator"] ? {
|
|
134
|
+
type: PropType<string | typeof import('../../util').deepEqual>;
|
|
135
135
|
default: typeof import('../../util').deepEqual;
|
|
136
136
|
} : Omit<{
|
|
137
|
-
type: PropType<typeof import('../../util').deepEqual>;
|
|
137
|
+
type: PropType<string | typeof import('../../util').deepEqual>;
|
|
138
138
|
default: typeof import('../../util').deepEqual;
|
|
139
139
|
}, "type" | "default"> & {
|
|
140
|
-
type: PropType<unknown extends Defaults["
|
|
141
|
-
default: unknown extends Defaults["
|
|
140
|
+
type: PropType<unknown extends Defaults["itemComparator"] ? string | typeof import('../../util').deepEqual : NonNullable<string | typeof import('../../util').deepEqual> | Defaults["itemComparator"]>;
|
|
141
|
+
default: unknown extends Defaults["itemComparator"] ? string | typeof import('../../util').deepEqual : NonNullable<string | typeof import('../../util').deepEqual> | Defaults["itemComparator"];
|
|
142
142
|
};
|
|
143
143
|
sortBy: unknown extends Defaults["sortBy"] ? {
|
|
144
144
|
type: PropType<readonly {
|
|
@@ -418,8 +418,8 @@ export declare const YDataTableServer: import('vue').DefineComponent<{
|
|
|
418
418
|
type: PropType<readonly any[]>;
|
|
419
419
|
default: () => never[];
|
|
420
420
|
};
|
|
421
|
-
|
|
422
|
-
type: PropType<typeof import('../../util').deepEqual>;
|
|
421
|
+
itemComparator: {
|
|
422
|
+
type: PropType<string | typeof import('../../util').deepEqual>;
|
|
423
423
|
default: typeof import('../../util').deepEqual;
|
|
424
424
|
};
|
|
425
425
|
sortBy: {
|
|
@@ -30,7 +30,7 @@ export declare const pressDataTableSelectionProps: <Defaults extends {
|
|
|
30
30
|
enableSelect?: unknown;
|
|
31
31
|
selectStrategy?: unknown;
|
|
32
32
|
modelValue?: unknown;
|
|
33
|
-
|
|
33
|
+
itemComparator?: unknown;
|
|
34
34
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
35
35
|
enableSelect: unknown extends Defaults["enableSelect"] ? BooleanConstructor : {
|
|
36
36
|
type: PropType<unknown extends Defaults["enableSelect"] ? boolean : boolean | Defaults["enableSelect"]>;
|
|
@@ -56,22 +56,22 @@ export declare const pressDataTableSelectionProps: <Defaults extends {
|
|
|
56
56
|
type: PropType<unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"]>;
|
|
57
57
|
default: unknown extends Defaults["modelValue"] ? readonly any[] : readonly any[] | Defaults["modelValue"];
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
type: PropType<typeof deepEqual>;
|
|
59
|
+
itemComparator: unknown extends Defaults["itemComparator"] ? {
|
|
60
|
+
type: PropType<string | typeof deepEqual>;
|
|
61
61
|
default: typeof deepEqual;
|
|
62
62
|
} : Omit<{
|
|
63
|
-
type: PropType<typeof deepEqual>;
|
|
63
|
+
type: PropType<string | typeof deepEqual>;
|
|
64
64
|
default: typeof deepEqual;
|
|
65
65
|
}, "type" | "default"> & {
|
|
66
|
-
type: PropType<unknown extends Defaults["
|
|
67
|
-
default: unknown extends Defaults["
|
|
66
|
+
type: PropType<unknown extends Defaults["itemComparator"] ? string | typeof deepEqual : Defaults["itemComparator"] | NonNullable<string | typeof deepEqual>>;
|
|
67
|
+
default: unknown extends Defaults["itemComparator"] ? string | typeof deepEqual : Defaults["itemComparator"] | NonNullable<string | typeof deepEqual>;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
type DataTableSelectionProps = Pick<DataTableItemsProps, 'itemKey'> & {
|
|
71
71
|
modelValue: readonly any[];
|
|
72
72
|
selectStrategy: 'single' | 'page' | 'all';
|
|
73
73
|
'onUpdate:modelValue': ((value: any[]) => void) | undefined;
|
|
74
|
-
|
|
74
|
+
itemComparator: ((a: any, b: any) => boolean) | string;
|
|
75
75
|
};
|
|
76
76
|
export declare const Y_DATA_TABLE_SELECTION_KEY: InjectionKey<ReturnType<typeof provideSelection>>;
|
|
77
77
|
export declare function provideSelection(props: DataTableSelectionProps, { allItems, pageItems, }: {
|