@rotki/ui-library 1.2.4 → 1.2.6
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-BqNCC_Vt.js → RuiNavigationDrawer-BOo7P6GM.js} +7 -7
- package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +25 -25
- package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +6 -5
- package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +5 -4
- 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 +5 -5
- package/dist/index.es.js +2 -2
- package/dist/style.css +1 -1
- package/dist/web-types.json +6 -6
- package/package.json +1 -1
|
@@ -3999,7 +3999,7 @@ const yp = {
|
|
|
3999
3999
|
inheritAttrs: !1,
|
|
4000
4000
|
__name: "RuiRadioGroup",
|
|
4001
4001
|
props: {
|
|
4002
|
-
modelValue: { default: "" },
|
|
4002
|
+
modelValue: { type: [String, Number, Boolean], default: "" },
|
|
4003
4003
|
inline: { type: Boolean, default: !1 },
|
|
4004
4004
|
label: { default: "" },
|
|
4005
4005
|
hint: { default: "" },
|
|
@@ -4051,8 +4051,8 @@ const yp = {
|
|
|
4051
4051
|
inheritAttrs: !1,
|
|
4052
4052
|
__name: "RuiRadio",
|
|
4053
4053
|
props: {
|
|
4054
|
-
value: {},
|
|
4055
|
-
modelValue: { default: "" },
|
|
4054
|
+
value: { type: [String, Number, Boolean] },
|
|
4055
|
+
modelValue: { type: [String, Number, Boolean], default: "" },
|
|
4056
4056
|
disabled: { type: Boolean, default: !1 },
|
|
4057
4057
|
color: { default: void 0 },
|
|
4058
4058
|
size: { default: void 0 },
|
|
@@ -4428,7 +4428,7 @@ const yp = {
|
|
|
4428
4428
|
emits: ["update:modelValue"],
|
|
4429
4429
|
setup(n) {
|
|
4430
4430
|
kt((S) => ({
|
|
4431
|
-
"
|
|
4431
|
+
"68b6f451": e(d)
|
|
4432
4432
|
}));
|
|
4433
4433
|
const s = n, t = It(n, "modelValue"), a = _e(), { dense: o, options: r } = $e(s), h = q(), l = q(), { focused: u } = $s(l), c = z({
|
|
4434
4434
|
get: () => {
|
|
@@ -6302,7 +6302,7 @@ const y0 = ["colspan"], b0 = { class: "flex items-center gap-2" }, w0 = ["colspa
|
|
|
6302
6302
|
emits: ["update:modelValue"],
|
|
6303
6303
|
setup(n) {
|
|
6304
6304
|
kt((_) => ({
|
|
6305
|
-
"
|
|
6305
|
+
"1ef23b00": e(d)
|
|
6306
6306
|
}));
|
|
6307
6307
|
const s = It(n, "modelValue"), t = He(), a = q(!1), o = q(-1), r = q(-1);
|
|
6308
6308
|
xe(o, (_) => {
|
|
@@ -6320,7 +6320,7 @@ const y0 = ["colspan"], b0 = { class: "flex items-center gap-2" }, w0 = ["colspa
|
|
|
6320
6320
|
const w = v.map((b, $) => {
|
|
6321
6321
|
var D;
|
|
6322
6322
|
const k = ((D = b.props) == null ? void 0 : D.value) ?? $;
|
|
6323
|
-
return i(s) === k && (p = !0, M(a, $ < i(o)), M(o, $)), {
|
|
6323
|
+
return i(s) === k && (p = !0, $ !== i(o) && (M(a, $ < i(o)), M(o, $))), {
|
|
6324
6324
|
...b,
|
|
6325
6325
|
props: {
|
|
6326
6326
|
value: k,
|
|
@@ -6347,7 +6347,7 @@ const y0 = ["colspan"], b0 = { class: "flex items-center gap-2" }, w0 = ["colspa
|
|
|
6347
6347
|
], 512)
|
|
6348
6348
|
], 16));
|
|
6349
6349
|
}
|
|
6350
|
-
}), T_ = "
|
|
6350
|
+
}), T_ = "_tabs_1wt4o_1", j_ = {
|
|
6351
6351
|
tabs: T_
|
|
6352
6352
|
}, P_ = {
|
|
6353
6353
|
$style: j_
|
|
@@ -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;
|
|
@@ -271,7 +271,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
271
271
|
item: TItem;
|
|
272
272
|
chipAttrs: {
|
|
273
273
|
'data-index': number;
|
|
274
|
-
'data-value': TItem | TItem[
|
|
274
|
+
'data-value': TItem | TItem[KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue>];
|
|
275
275
|
onKeydown: (event: KeyboardEvent) => void;
|
|
276
276
|
'onClick.stop': () => void;
|
|
277
277
|
'onClick:close': () => void;
|
|
@@ -299,7 +299,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
299
299
|
readonly appendWidth: number;
|
|
300
300
|
readonly variant: "default" | "outlined" | "filled";
|
|
301
301
|
readonly hint: string | undefined;
|
|
302
|
-
readonly keyAttr:
|
|
302
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
303
303
|
readonly textAttr: keyof TItem | undefined;
|
|
304
304
|
readonly itemHeight: number | undefined;
|
|
305
305
|
readonly errorMessages: string | string[];
|
|
@@ -312,7 +312,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
312
312
|
readonly placeholder: string;
|
|
313
313
|
readonly returnObject: boolean;
|
|
314
314
|
readonly customValue: boolean;
|
|
315
|
-
} & ("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" ? {
|
|
316
316
|
options: () => never[];
|
|
317
317
|
disabled: false;
|
|
318
318
|
loading: false;
|
|
@@ -360,7 +360,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
360
360
|
readonly appendWidth: number;
|
|
361
361
|
readonly variant: "default" | "outlined" | "filled";
|
|
362
362
|
readonly hint: string | undefined;
|
|
363
|
-
readonly keyAttr:
|
|
363
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
364
364
|
readonly textAttr: keyof TItem | undefined;
|
|
365
365
|
readonly itemHeight: number | undefined;
|
|
366
366
|
readonly errorMessages: string | string[];
|
|
@@ -373,7 +373,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
373
373
|
readonly placeholder: string;
|
|
374
374
|
readonly returnObject: boolean;
|
|
375
375
|
readonly customValue: boolean;
|
|
376
|
-
} & ("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" ? {
|
|
377
377
|
options: () => never[];
|
|
378
378
|
disabled: false;
|
|
379
379
|
loading: false;
|
|
@@ -421,7 +421,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
421
421
|
readonly appendWidth: number;
|
|
422
422
|
readonly variant: "default" | "outlined" | "filled";
|
|
423
423
|
readonly hint: string | undefined;
|
|
424
|
-
readonly keyAttr:
|
|
424
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
425
425
|
readonly textAttr: keyof TItem | undefined;
|
|
426
426
|
readonly itemHeight: number | undefined;
|
|
427
427
|
readonly errorMessages: string | string[];
|
|
@@ -434,7 +434,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
434
434
|
readonly placeholder: string;
|
|
435
435
|
readonly returnObject: boolean;
|
|
436
436
|
readonly customValue: boolean;
|
|
437
|
-
} & ("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" ? {
|
|
438
438
|
options: () => never[];
|
|
439
439
|
disabled: false;
|
|
440
440
|
loading: false;
|
|
@@ -487,7 +487,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
487
487
|
readonly appendWidth: number;
|
|
488
488
|
readonly variant: "default" | "outlined" | "filled";
|
|
489
489
|
readonly hint: string | undefined;
|
|
490
|
-
readonly keyAttr:
|
|
490
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
491
491
|
readonly textAttr: keyof TItem | undefined;
|
|
492
492
|
readonly itemHeight: number | undefined;
|
|
493
493
|
readonly errorMessages: string | string[];
|
|
@@ -500,7 +500,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
500
500
|
readonly placeholder: string;
|
|
501
501
|
readonly returnObject: boolean;
|
|
502
502
|
readonly customValue: boolean;
|
|
503
|
-
} & ("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" ? {
|
|
504
504
|
options: () => never[];
|
|
505
505
|
disabled: false;
|
|
506
506
|
loading: false;
|
|
@@ -548,7 +548,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
548
548
|
readonly appendWidth: number;
|
|
549
549
|
readonly variant: "default" | "outlined" | "filled";
|
|
550
550
|
readonly hint: string | undefined;
|
|
551
|
-
readonly keyAttr:
|
|
551
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
552
552
|
readonly textAttr: keyof TItem | undefined;
|
|
553
553
|
readonly itemHeight: number | undefined;
|
|
554
554
|
readonly errorMessages: string | string[];
|
|
@@ -561,7 +561,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
561
561
|
readonly placeholder: string;
|
|
562
562
|
readonly returnObject: boolean;
|
|
563
563
|
readonly customValue: boolean;
|
|
564
|
-
} & ("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" ? {
|
|
565
565
|
options: () => never[];
|
|
566
566
|
disabled: false;
|
|
567
567
|
loading: false;
|
|
@@ -609,7 +609,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
609
609
|
readonly appendWidth: number;
|
|
610
610
|
readonly variant: "default" | "outlined" | "filled";
|
|
611
611
|
readonly hint: string | undefined;
|
|
612
|
-
readonly keyAttr:
|
|
612
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
613
613
|
readonly textAttr: keyof TItem | undefined;
|
|
614
614
|
readonly itemHeight: number | undefined;
|
|
615
615
|
readonly errorMessages: string | string[];
|
|
@@ -622,7 +622,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
622
622
|
readonly placeholder: string;
|
|
623
623
|
readonly returnObject: boolean;
|
|
624
624
|
readonly customValue: boolean;
|
|
625
|
-
} & ("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" ? {
|
|
626
626
|
options: () => never[];
|
|
627
627
|
disabled: false;
|
|
628
628
|
loading: false;
|
|
@@ -675,7 +675,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
675
675
|
readonly appendWidth: number;
|
|
676
676
|
readonly variant: "default" | "outlined" | "filled";
|
|
677
677
|
readonly hint: string | undefined;
|
|
678
|
-
readonly keyAttr:
|
|
678
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
679
679
|
readonly textAttr: keyof TItem | undefined;
|
|
680
680
|
readonly itemHeight: number | undefined;
|
|
681
681
|
readonly errorMessages: string | string[];
|
|
@@ -688,7 +688,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
688
688
|
readonly placeholder: string;
|
|
689
689
|
readonly returnObject: boolean;
|
|
690
690
|
readonly customValue: boolean;
|
|
691
|
-
} & ("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" ? {
|
|
692
692
|
options: () => never[];
|
|
693
693
|
disabled: false;
|
|
694
694
|
loading: false;
|
|
@@ -736,7 +736,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
736
736
|
readonly appendWidth: number;
|
|
737
737
|
readonly variant: "default" | "outlined" | "filled";
|
|
738
738
|
readonly hint: string | undefined;
|
|
739
|
-
readonly keyAttr:
|
|
739
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
740
740
|
readonly textAttr: keyof TItem | undefined;
|
|
741
741
|
readonly itemHeight: number | undefined;
|
|
742
742
|
readonly errorMessages: string | string[];
|
|
@@ -749,7 +749,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
749
749
|
readonly placeholder: string;
|
|
750
750
|
readonly returnObject: boolean;
|
|
751
751
|
readonly customValue: boolean;
|
|
752
|
-
} & ("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" ? {
|
|
753
753
|
options: () => never[];
|
|
754
754
|
disabled: false;
|
|
755
755
|
loading: false;
|
|
@@ -797,7 +797,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
797
797
|
readonly appendWidth: number;
|
|
798
798
|
readonly variant: "default" | "outlined" | "filled";
|
|
799
799
|
readonly hint: string | undefined;
|
|
800
|
-
readonly keyAttr:
|
|
800
|
+
readonly keyAttr: KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue> | undefined;
|
|
801
801
|
readonly textAttr: keyof TItem | undefined;
|
|
802
802
|
readonly itemHeight: number | undefined;
|
|
803
803
|
readonly errorMessages: string | string[];
|
|
@@ -810,7 +810,7 @@ declare const _default: <TValue, TItem>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
810
810
|
readonly placeholder: string;
|
|
811
811
|
readonly returnObject: boolean;
|
|
812
812
|
readonly customValue: boolean;
|
|
813
|
-
} & ("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" ? {
|
|
814
814
|
options: () => never[];
|
|
815
815
|
disabled: false;
|
|
816
816
|
loading: false;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ContextColorsType } from '../../../../consts/colors';
|
|
2
|
+
type ModelValue = string | number | boolean;
|
|
2
3
|
export interface RadioProps {
|
|
3
|
-
value:
|
|
4
|
-
modelValue?:
|
|
4
|
+
value: ModelValue;
|
|
5
|
+
modelValue?: ModelValue;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
color?: ContextColorsType;
|
|
7
8
|
size?: 'sm' | 'lg';
|
|
@@ -25,7 +26,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
25
26
|
successMessages: () => never[];
|
|
26
27
|
hideDetails: boolean;
|
|
27
28
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
-
"update:modelValue": (modelValue:
|
|
29
|
+
"update:modelValue": (modelValue: ModelValue) => void;
|
|
29
30
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<RadioProps>, {
|
|
30
31
|
modelValue: string;
|
|
31
32
|
disabled: boolean;
|
|
@@ -37,13 +38,13 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
37
38
|
successMessages: () => never[];
|
|
38
39
|
hideDetails: boolean;
|
|
39
40
|
}>>> & {
|
|
40
|
-
"onUpdate:modelValue"?: ((modelValue:
|
|
41
|
+
"onUpdate:modelValue"?: ((modelValue: ModelValue) => any) | undefined;
|
|
41
42
|
}, {
|
|
42
43
|
size: "sm" | "lg";
|
|
43
44
|
color: ContextColorsType;
|
|
44
45
|
label: string;
|
|
45
46
|
disabled: boolean;
|
|
46
|
-
modelValue:
|
|
47
|
+
modelValue: ModelValue;
|
|
47
48
|
errorMessages: string | string[];
|
|
48
49
|
successMessages: string | string[];
|
|
49
50
|
hint: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ContextColorsType } from '../../../../consts/colors';
|
|
2
|
+
type ModelValue = string | number | boolean;
|
|
2
3
|
export interface Props {
|
|
3
|
-
modelValue?:
|
|
4
|
+
modelValue?: ModelValue;
|
|
4
5
|
inline?: boolean;
|
|
5
6
|
label?: string;
|
|
6
7
|
hint?: string;
|
|
@@ -23,7 +24,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
23
24
|
color: undefined;
|
|
24
25
|
size: undefined;
|
|
25
26
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
-
"update:modelValue": (value:
|
|
27
|
+
"update:modelValue": (value: ModelValue) => void;
|
|
27
28
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
28
29
|
modelValue: string;
|
|
29
30
|
inline: boolean;
|
|
@@ -36,13 +37,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
36
37
|
color: undefined;
|
|
37
38
|
size: undefined;
|
|
38
39
|
}>>> & {
|
|
39
|
-
"onUpdate:modelValue"?: ((value:
|
|
40
|
+
"onUpdate:modelValue"?: ((value: ModelValue) => any) | undefined;
|
|
40
41
|
}, {
|
|
41
42
|
size: "sm" | "lg";
|
|
42
43
|
color: ContextColorsType;
|
|
43
44
|
label: string;
|
|
44
45
|
disabled: boolean;
|
|
45
|
-
modelValue:
|
|
46
|
+
modelValue: ModelValue;
|
|
46
47
|
inline: boolean;
|
|
47
48
|
errorMessages: string | string[];
|
|
48
49
|
successMessages: string | string[];
|
|
@@ -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-BOo7P6GM.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;
|
|
@@ -47,7 +47,7 @@ export declare function useDropdownMenu<TValue, TItem>({ appendWidth, autoFocus,
|
|
|
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-BOo7P6GM.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-BOo7P6GM.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";
|