@rotki/ui-library 1.2.3 → 1.2.5
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/{RuiNavigationDrawer-D0ZouL5t.js → RuiNavigationDrawer-D0k1GeK3.js} +691 -689
- package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +26 -25
- package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +1 -1
- package/dist/components/index.es.js +1 -1
- package/dist/composables/dropdown-menu.d.ts +6 -6
- package/dist/index.es.js +2 -2
- package/dist/style.css +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
|
@@ -72,7 +72,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
72
72
|
readonly appendWidth: number;
|
|
73
73
|
readonly variant: "default" | "outlined" | "filled";
|
|
74
74
|
readonly hint: string | undefined;
|
|
75
|
-
readonly keyAttr:
|
|
75
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
76
76
|
readonly textAttr: keyof TItem | undefined;
|
|
77
77
|
readonly itemHeight: number | undefined;
|
|
78
78
|
readonly errorMessages: string | string[];
|
|
@@ -85,7 +85,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
85
85
|
readonly placeholder: string;
|
|
86
86
|
readonly returnObject: boolean;
|
|
87
87
|
readonly customValue: boolean;
|
|
88
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
88
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
89
89
|
options: () => never[];
|
|
90
90
|
disabled: false;
|
|
91
91
|
loading: false;
|
|
@@ -133,7 +133,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
133
133
|
readonly appendWidth: number;
|
|
134
134
|
readonly variant: "default" | "outlined" | "filled";
|
|
135
135
|
readonly hint: string | undefined;
|
|
136
|
-
readonly keyAttr:
|
|
136
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
137
137
|
readonly textAttr: keyof TItem | undefined;
|
|
138
138
|
readonly itemHeight: number | undefined;
|
|
139
139
|
readonly errorMessages: string | string[];
|
|
@@ -146,7 +146,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
146
146
|
readonly placeholder: string;
|
|
147
147
|
readonly returnObject: boolean;
|
|
148
148
|
readonly customValue: boolean;
|
|
149
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
149
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
150
150
|
options: () => never[];
|
|
151
151
|
disabled: false;
|
|
152
152
|
loading: false;
|
|
@@ -194,7 +194,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
194
194
|
readonly appendWidth: number;
|
|
195
195
|
readonly variant: "default" | "outlined" | "filled";
|
|
196
196
|
readonly hint: string | undefined;
|
|
197
|
-
readonly keyAttr:
|
|
197
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
198
198
|
readonly textAttr: keyof TItem | undefined;
|
|
199
199
|
readonly itemHeight: number | undefined;
|
|
200
200
|
readonly errorMessages: string | string[];
|
|
@@ -207,7 +207,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
207
207
|
readonly placeholder: string;
|
|
208
208
|
readonly returnObject: boolean;
|
|
209
209
|
readonly customValue: boolean;
|
|
210
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
210
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
211
211
|
options: () => never[];
|
|
212
212
|
disabled: false;
|
|
213
213
|
loading: false;
|
|
@@ -270,7 +270,8 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
270
270
|
selection?(_: {
|
|
271
271
|
item: TItem;
|
|
272
272
|
chipAttrs: {
|
|
273
|
-
'data-
|
|
273
|
+
'data-index': number;
|
|
274
|
+
'data-value': TItem | TItem[KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue>];
|
|
274
275
|
onKeydown: (event: KeyboardEvent) => void;
|
|
275
276
|
'onClick.stop': () => void;
|
|
276
277
|
'onClick:close': () => void;
|
|
@@ -298,7 +299,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
298
299
|
readonly appendWidth: number;
|
|
299
300
|
readonly variant: "default" | "outlined" | "filled";
|
|
300
301
|
readonly hint: string | undefined;
|
|
301
|
-
readonly keyAttr:
|
|
302
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
302
303
|
readonly textAttr: keyof TItem | undefined;
|
|
303
304
|
readonly itemHeight: number | undefined;
|
|
304
305
|
readonly errorMessages: string | string[];
|
|
@@ -311,7 +312,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
311
312
|
readonly placeholder: string;
|
|
312
313
|
readonly returnObject: boolean;
|
|
313
314
|
readonly customValue: boolean;
|
|
314
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
315
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
315
316
|
options: () => never[];
|
|
316
317
|
disabled: false;
|
|
317
318
|
loading: false;
|
|
@@ -359,7 +360,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
359
360
|
readonly appendWidth: number;
|
|
360
361
|
readonly variant: "default" | "outlined" | "filled";
|
|
361
362
|
readonly hint: string | undefined;
|
|
362
|
-
readonly keyAttr:
|
|
363
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
363
364
|
readonly textAttr: keyof TItem | undefined;
|
|
364
365
|
readonly itemHeight: number | undefined;
|
|
365
366
|
readonly errorMessages: string | string[];
|
|
@@ -372,7 +373,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
372
373
|
readonly placeholder: string;
|
|
373
374
|
readonly returnObject: boolean;
|
|
374
375
|
readonly customValue: boolean;
|
|
375
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
376
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
376
377
|
options: () => never[];
|
|
377
378
|
disabled: false;
|
|
378
379
|
loading: false;
|
|
@@ -420,7 +421,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
420
421
|
readonly appendWidth: number;
|
|
421
422
|
readonly variant: "default" | "outlined" | "filled";
|
|
422
423
|
readonly hint: string | undefined;
|
|
423
|
-
readonly keyAttr:
|
|
424
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
424
425
|
readonly textAttr: keyof TItem | undefined;
|
|
425
426
|
readonly itemHeight: number | undefined;
|
|
426
427
|
readonly errorMessages: string | string[];
|
|
@@ -433,7 +434,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
433
434
|
readonly placeholder: string;
|
|
434
435
|
readonly returnObject: boolean;
|
|
435
436
|
readonly customValue: boolean;
|
|
436
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
437
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
437
438
|
options: () => never[];
|
|
438
439
|
disabled: false;
|
|
439
440
|
loading: false;
|
|
@@ -486,7 +487,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
486
487
|
readonly appendWidth: number;
|
|
487
488
|
readonly variant: "default" | "outlined" | "filled";
|
|
488
489
|
readonly hint: string | undefined;
|
|
489
|
-
readonly keyAttr:
|
|
490
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
490
491
|
readonly textAttr: keyof TItem | undefined;
|
|
491
492
|
readonly itemHeight: number | undefined;
|
|
492
493
|
readonly errorMessages: string | string[];
|
|
@@ -499,7 +500,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
499
500
|
readonly placeholder: string;
|
|
500
501
|
readonly returnObject: boolean;
|
|
501
502
|
readonly customValue: boolean;
|
|
502
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
503
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
503
504
|
options: () => never[];
|
|
504
505
|
disabled: false;
|
|
505
506
|
loading: false;
|
|
@@ -547,7 +548,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
547
548
|
readonly appendWidth: number;
|
|
548
549
|
readonly variant: "default" | "outlined" | "filled";
|
|
549
550
|
readonly hint: string | undefined;
|
|
550
|
-
readonly keyAttr:
|
|
551
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
551
552
|
readonly textAttr: keyof TItem | undefined;
|
|
552
553
|
readonly itemHeight: number | undefined;
|
|
553
554
|
readonly errorMessages: string | string[];
|
|
@@ -560,7 +561,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
560
561
|
readonly placeholder: string;
|
|
561
562
|
readonly returnObject: boolean;
|
|
562
563
|
readonly customValue: boolean;
|
|
563
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
564
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
564
565
|
options: () => never[];
|
|
565
566
|
disabled: false;
|
|
566
567
|
loading: false;
|
|
@@ -608,7 +609,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
608
609
|
readonly appendWidth: number;
|
|
609
610
|
readonly variant: "default" | "outlined" | "filled";
|
|
610
611
|
readonly hint: string | undefined;
|
|
611
|
-
readonly keyAttr:
|
|
612
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
612
613
|
readonly textAttr: keyof TItem | undefined;
|
|
613
614
|
readonly itemHeight: number | undefined;
|
|
614
615
|
readonly errorMessages: string | string[];
|
|
@@ -621,7 +622,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
621
622
|
readonly placeholder: string;
|
|
622
623
|
readonly returnObject: boolean;
|
|
623
624
|
readonly customValue: boolean;
|
|
624
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
625
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
625
626
|
options: () => never[];
|
|
626
627
|
disabled: false;
|
|
627
628
|
loading: false;
|
|
@@ -674,7 +675,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
674
675
|
readonly appendWidth: number;
|
|
675
676
|
readonly variant: "default" | "outlined" | "filled";
|
|
676
677
|
readonly hint: string | undefined;
|
|
677
|
-
readonly keyAttr:
|
|
678
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
678
679
|
readonly textAttr: keyof TItem | undefined;
|
|
679
680
|
readonly itemHeight: number | undefined;
|
|
680
681
|
readonly errorMessages: string | string[];
|
|
@@ -687,7 +688,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
687
688
|
readonly placeholder: string;
|
|
688
689
|
readonly returnObject: boolean;
|
|
689
690
|
readonly customValue: boolean;
|
|
690
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
691
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
691
692
|
options: () => never[];
|
|
692
693
|
disabled: false;
|
|
693
694
|
loading: false;
|
|
@@ -735,7 +736,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
735
736
|
readonly appendWidth: number;
|
|
736
737
|
readonly variant: "default" | "outlined" | "filled";
|
|
737
738
|
readonly hint: string | undefined;
|
|
738
|
-
readonly keyAttr:
|
|
739
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
739
740
|
readonly textAttr: keyof TItem | undefined;
|
|
740
741
|
readonly itemHeight: number | undefined;
|
|
741
742
|
readonly errorMessages: string | string[];
|
|
@@ -748,7 +749,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
748
749
|
readonly placeholder: string;
|
|
749
750
|
readonly returnObject: boolean;
|
|
750
751
|
readonly customValue: boolean;
|
|
751
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
752
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
752
753
|
options: () => never[];
|
|
753
754
|
disabled: false;
|
|
754
755
|
loading: false;
|
|
@@ -796,7 +797,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
796
797
|
readonly appendWidth: number;
|
|
797
798
|
readonly variant: "default" | "outlined" | "filled";
|
|
798
799
|
readonly hint: string | undefined;
|
|
799
|
-
readonly keyAttr:
|
|
800
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
800
801
|
readonly textAttr: keyof TItem | undefined;
|
|
801
802
|
readonly itemHeight: number | undefined;
|
|
802
803
|
readonly errorMessages: string | string[];
|
|
@@ -809,7 +810,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
809
810
|
readonly placeholder: string;
|
|
810
811
|
readonly returnObject: boolean;
|
|
811
812
|
readonly customValue: boolean;
|
|
812
|
-
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([
|
|
813
|
+
} & ("disabled" | "loading" | "dense" | "autoSelectFirst" | "hideSelected" | "readOnly" | "clearable" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "returnObject" | "customValue" | ([KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined] extends [boolean | undefined] ? "keyAttr" : never) | ([keyof TItem | undefined] extends [boolean | undefined] ? "textAttr" : never) extends infer T extends keyof T_1 ? { readonly [K in T]-?: K extends "label" | "variant" | "disabled" | "loading" | "dense" | "options" | "errorMessages" | "successMessages" | "hint" | "keyAttr" | "textAttr" | "appendWidth" | "autoSelectFirst" | "hideSelected" | "itemHeight" | "prependWidth" | "readOnly" | "clearable" | "menuOptions" | "hideDetails" | "chips" | "noFilter" | "hideNoData" | "noDataText" | "placeholder" | "returnObject" | "customValue" ? {
|
|
813
814
|
options: () => never[];
|
|
814
815
|
disabled: false;
|
|
815
816
|
loading: false;
|
|
@@ -2,7 +2,7 @@ import { type KeyOfType } from '../../../composables/dropdown-menu';
|
|
|
2
2
|
import { type MenuProps } from '../../../components/overlays/menu/RuiMenu.vue';
|
|
3
3
|
export interface Props<TValue, TItem> {
|
|
4
4
|
options: TItem[];
|
|
5
|
-
keyAttr?: KeyOfType<TItem, TValue>;
|
|
5
|
+
keyAttr?: KeyOfType<TItem, TValue extends Array<infer U> ? U : TValue>;
|
|
6
6
|
textAttr?: keyof TItem;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
loading?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as u, H as s, R as e, a as R, b as o, J as t, c as r, d as l, u as d, v as n, e as p, f as c, K as T, r as b, t as S, D as g, g as m, h as x, _ as C, q as A, F as h, L as B, M as D, i as k, j as v, k as w, l as F, s as I, B as f, G, m as L, n as M, x as P, z as E, y as H, A as N, E as j, w as q, C as y, o as z, p as J } from "../RuiNavigationDrawer-
|
|
1
|
+
import { I as u, H as s, R as e, a as R, b as o, J as t, c as r, d as l, u as d, v as n, e as p, f as c, K as T, r as b, t as S, D as g, g as m, h as x, _ as C, q as A, F as h, L as B, M as D, i as k, j as v, k as w, l as F, s as I, B as f, G, m as L, n as M, x as P, z as E, y as H, A as N, E as j, w as q, C as y, o as z, p as J } from "../RuiNavigationDrawer-D0k1GeK3.js";
|
|
2
2
|
export {
|
|
3
3
|
u as RuiAccordion,
|
|
4
4
|
s as RuiAccordions,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
export type KeyOfType<T, V> = keyof {
|
|
3
|
-
[P in keyof T as T[P] extends V ? P : never]: any;
|
|
2
|
+
export type KeyOfType<T, V> = V extends object ? keyof T : keyof {
|
|
3
|
+
[P in keyof T as T[P] extends V ? P : V extends T[P] ? P : never]: any;
|
|
4
4
|
};
|
|
5
5
|
export interface DropdownItemAttr<TValue, TItem> {
|
|
6
6
|
keyAttr?: KeyOfType<TItem, TValue extends Array<infer U> ? U : TValue>;
|
|
@@ -23,7 +23,7 @@ export interface DropdownOptions<TValue, TItem> {
|
|
|
23
23
|
hideSelected?: boolean;
|
|
24
24
|
}
|
|
25
25
|
export declare function useDropdownOptionProperty<TValue, TItem>({ keyAttr, textAttr, }: DropdownItemAttr<TValue, TItem>): {
|
|
26
|
-
getIdentifier: (item: TItem) => TItem | TItem[KeyOfType<TItem, TValue>];
|
|
26
|
+
getIdentifier: (item: TItem) => TItem | TItem[KeyOfType<TItem, TValue extends Array<infer U> ? U : TValue>];
|
|
27
27
|
getText: (item: TItem) => string | undefined;
|
|
28
28
|
};
|
|
29
29
|
export declare function useDropdownMenu<TValue, TItem>({ appendWidth, autoFocus, autoSelectFirst, dense, hideSelected, itemHeight, keyAttr, menuRef, options: allOptions, overscan, prependWidth, setValue, textAttr, value, }: DropdownOptions<TValue, TItem>): {
|
|
@@ -33,7 +33,7 @@ export declare function useDropdownMenu<TValue, TItem>({ appendWidth, autoFocus,
|
|
|
33
33
|
onScroll: () => void;
|
|
34
34
|
style: import("vue").StyleValue;
|
|
35
35
|
};
|
|
36
|
-
getIdentifier: (item: TItem) => TItem | TItem[
|
|
36
|
+
getIdentifier: (item: TItem) => TItem | TItem[KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue>];
|
|
37
37
|
getText: (item: TItem) => string | undefined;
|
|
38
38
|
highlightedIndex: Ref<number>;
|
|
39
39
|
isActiveItem: (item: TItem) => boolean;
|
|
@@ -43,11 +43,11 @@ export declare function useDropdownMenu<TValue, TItem>({ appendWidth, autoFocus,
|
|
|
43
43
|
moveHighlight: (up: boolean) => void;
|
|
44
44
|
optionsWithSelectedHidden: globalThis.ComputedRef<TItem[]>;
|
|
45
45
|
renderedData: globalThis.ComputedRef<{
|
|
46
|
-
|
|
46
|
+
_index: number;
|
|
47
47
|
item: TItem;
|
|
48
48
|
}[]>;
|
|
49
49
|
toggle: (state?: boolean) => void;
|
|
50
|
-
valueKey: globalThis.ComputedRef<TItem | TItem[] | TItem[
|
|
50
|
+
valueKey: globalThis.ComputedRef<TItem | TItem[] | TItem[KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue>][] | NonNullable<TItem>[KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue>] | undefined>;
|
|
51
51
|
wrapperProps: globalThis.ComputedRef<{
|
|
52
52
|
style: {
|
|
53
53
|
width: string;
|
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as a, a as r } from "./index-DIN-6VhY.js";
|
|
2
2
|
import { T as C } from "./index-DIN-6VhY.js";
|
|
3
|
-
import { N as F, T as L } from "./RuiNavigationDrawer-
|
|
4
|
-
import { I as S, H as g, R as m, a as k, b as B, J as w, c as f, d as P, u as y, v as D, e as M, f as b, K as A, r as T, t as x, D as H, g as U, h as E, _ as v, q as G, F as I, L as W, M as V, i as O, j as N, k as z, l as K, s as q, B as Q, G as j, m as Z, n as X, x as J, z as Y, y as _, A as $, E as ii, w as li, C as ei, o as Ri, p as ni, S as oi } from "./RuiNavigationDrawer-
|
|
3
|
+
import { N as F, T as L } from "./RuiNavigationDrawer-D0k1GeK3.js";
|
|
4
|
+
import { I as S, H as g, R as m, a as k, b as B, J as w, c as f, d as P, u as y, v as D, e as M, f as b, K as A, r as T, t as x, D as H, g as U, h as E, _ as v, q as G, F as I, L as W, M as V, i as O, j as N, k as z, l as K, s as q, B as Q, G as j, m as Z, n as X, x as J, z as Y, y as _, A as $, E as ii, w as li, C as ei, o as Ri, p as ni, S as oi } from "./RuiNavigationDrawer-D0k1GeK3.js";
|
|
5
5
|
import { u as ri } from "./breakpoint-sPlgsoXp.js";
|
|
6
6
|
import { RuiIcons as Li, isRuiIcon as ti } from "./icons/index.es.js";
|
|
7
7
|
import { c as di } from "./colors-D563Ic3q.js";
|