@rotki/ui-library 1.3.0 → 1.5.0
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/components/accordions/accordion/RuiAccordion.vue.d.ts +17 -39
- package/dist/components/accordions/accordions/RuiAccordions.vue.d.ts +5 -28
- package/dist/components/alerts/RuiAlert.vue.d.ts +15 -44
- package/dist/components/buttons/button/RuiButton.vue.d.ts +8 -10
- package/dist/components/buttons/button-group/RuiButtonGroup.vue.d.ts +7 -9
- package/dist/components/cards/RuiCard.vue.d.ts +15 -41
- package/dist/components/cards/RuiCardHeader.vue.d.ts +11 -27
- package/dist/components/chips/RuiChip.vue.d.ts +14 -48
- package/dist/components/color-picker/RuiColorBoard.vue.d.ts +6 -15
- package/dist/components/color-picker/RuiColorDisplay.vue.d.ts +3 -12
- package/dist/components/color-picker/RuiColorHue.vue.d.ts +4 -13
- package/dist/components/color-picker/RuiColorInput.vue.d.ts +4 -13
- package/dist/components/color-picker/RuiColorPicker.vue.d.ts +5 -26
- package/dist/components/divider/RuiDivider.vue.d.ts +2 -23
- package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +264 -20
- package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +15 -47
- package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +10 -10
- package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +9 -9
- package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +18 -58
- package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +10 -10
- package/dist/components/forms/select/RuiSimpleSelect.vue.d.ts +5 -30
- package/dist/components/forms/slider/RuiSlider.vue.d.ts +5 -60
- package/dist/components/forms/switch/RuiSwitch.vue.d.ts +12 -44
- package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +20 -68
- package/dist/components/forms/text-field/RuiTextField.vue.d.ts +24 -64
- package/dist/components/helpers/RuiFormTextDetail.vue.d.ts +4 -29
- package/dist/components/icons/RuiIcon.vue.d.ts +2 -25
- package/dist/components/index.es.js +5946 -42
- package/dist/components/loaders/RuiSkeletonBase.vue.d.ts +2 -23
- package/dist/components/loaders/RuiSkeletonLoader.vue.d.ts +2 -25
- package/dist/components/logos/RuiLogo.vue.d.ts +2 -31
- package/dist/components/overlays/badge/RuiBadge.vue.d.ts +12 -48
- package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +9 -27
- package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +24 -48
- package/dist/components/overlays/menu/RuiMenu.vue.d.ts +32 -73
- package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +26 -54
- package/dist/components/overlays/notification/RuiNotification.vue.d.ts +12 -30
- package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +17 -44
- package/dist/components/progress/RuiProgress.vue.d.ts +2 -37
- package/dist/components/steppers/RuiFooterStepper.vue.d.ts +5 -32
- package/dist/components/steppers/RuiStepper.vue.d.ts +14 -40
- package/dist/components/steppers/RuiStepperCustomIcon.vue.d.ts +4 -25
- package/dist/components/steppers/RuiStepperIcon.vue.d.ts +4 -25
- package/dist/components/tables/RuiDataTable.vue.d.ts +15 -24
- package/dist/components/tables/RuiExpandButton.vue.d.ts +9 -25
- package/dist/components/tables/RuiTableHead.vue.d.ts +9 -15
- package/dist/components/tables/RuiTablePagination.vue.d.ts +5 -30
- package/dist/components/tabs/tab/RuiTab.vue.d.ts +21 -59
- package/dist/components/tabs/tab-item/RuiTabItem.vue.d.ts +10 -32
- package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +9 -9
- package/dist/components/tabs/tabs/RuiTabs.vue.d.ts +7 -36
- package/dist/composables/dropdown-menu.d.ts +2 -2
- package/dist/composables/icons.d.ts +10 -4
- package/dist/composables/index--ZwAZVMb.js +482 -0
- package/dist/composables/index.es.js +4 -5
- package/dist/composables/popper.d.ts +6 -6
- package/dist/composables/sticky-header.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +2917 -2916
- package/dist/style.css +1 -1
- package/dist/theme/index.es.js +1 -1
- package/dist/types/index-DSBIGM2a.js +39 -0
- package/dist/utils/generate-id.d.ts +1 -1
- package/dist/utils/index-Cps3W0wA.js +108 -0
- package/dist/vendor-BRFX1hnB.js +1626 -0
- package/dist/web-types.json +584 -620
- package/package.json +33 -33
- package/dist/RuiNavigationDrawer-DGs1QHIz.js +0 -7951
- package/dist/breakpoint-sPlgsoXp.js +0 -37
- package/dist/index-DIN-6VhY.js +0 -154
- /package/dist/{colors-D563Ic3q.js → consts/colors-D563Ic3q.js} +0 -0
|
@@ -5,46 +5,24 @@ export interface Props {
|
|
|
5
5
|
reverse?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
attrs: Partial<{}>;
|
|
10
14
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
eager: boolean;
|
|
14
|
-
active: boolean;
|
|
15
|
-
reverse: boolean;
|
|
16
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
17
|
-
value: undefined;
|
|
18
|
-
eager: boolean;
|
|
19
|
-
active: boolean;
|
|
20
|
-
reverse: boolean;
|
|
21
|
-
}>>>, {
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
22
17
|
reverse: boolean;
|
|
23
18
|
active: boolean;
|
|
24
19
|
value: number | string;
|
|
25
20
|
eager: boolean;
|
|
26
|
-
}, {}>;
|
|
27
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
23
|
export default _default;
|
|
29
|
-
type __VLS_WithDefaults<P, D> = {
|
|
30
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
-
default: D[K];
|
|
32
|
-
}> : P[K];
|
|
33
|
-
};
|
|
34
|
-
type __VLS_Prettify<T> = {
|
|
35
|
-
[K in keyof T]: T[K];
|
|
36
|
-
} & {};
|
|
37
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
25
|
new (): {
|
|
39
26
|
$slots: S;
|
|
40
27
|
};
|
|
41
28
|
};
|
|
42
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
|
-
type __VLS_TypePropsToOption<T> = {
|
|
44
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
45
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
46
|
-
} : {
|
|
47
|
-
type: import('vue').PropType<T[K]>;
|
|
48
|
-
required: true;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export interface Props<T> {
|
|
2
2
|
modelValue?: T;
|
|
3
3
|
}
|
|
4
|
-
declare const _default: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
5
|
-
props:
|
|
6
|
-
"onUpdate:modelValue"?: ((modelValue: T | undefined) => any) | undefined;
|
|
7
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps
|
|
8
|
-
"onUpdate:modelValue"?: ((modelValue: T | undefined) => any) | undefined;
|
|
9
|
-
}, never>, "onUpdate:modelValue"> & {
|
|
4
|
+
declare const _default: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
|
+
readonly "onUpdate:modelValue"?: ((modelValue: T | undefined) => any) | undefined;
|
|
7
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & {
|
|
10
8
|
modelValue?: Props<T>["modelValue"];
|
|
11
9
|
}> & import("vue").PublicProps;
|
|
12
10
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
13
11
|
attrs: any;
|
|
14
|
-
slots:
|
|
15
|
-
emit:
|
|
12
|
+
slots: {};
|
|
13
|
+
emit: {
|
|
14
|
+
'update:modelValue': [modelValue: Props<T>["modelValue"]];
|
|
15
|
+
};
|
|
16
16
|
}>) => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
17
|
[key: string]: any;
|
|
18
18
|
}> & {
|
|
19
19
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
20
|
};
|
|
21
21
|
export default _default;
|
|
22
|
-
type
|
|
22
|
+
type __VLS_PrettifyLocal<T> = {
|
|
23
23
|
[K in keyof T]: T[K];
|
|
24
24
|
} & {};
|
|
@@ -6,48 +6,19 @@ export interface Props {
|
|
|
6
6
|
grow?: boolean;
|
|
7
7
|
modelValue?: number | string;
|
|
8
8
|
align?: 'start' | 'center' | 'end';
|
|
9
|
+
indicatorPosition?: 'start' | 'end';
|
|
9
10
|
}
|
|
10
|
-
declare const _default: import("vue").DefineComponent<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
grow: boolean;
|
|
15
|
-
modelValue: undefined;
|
|
16
|
-
align: string;
|
|
17
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
-
"update:modelValue": (modelValue: string | number) => void;
|
|
19
|
-
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
20
|
-
color: undefined;
|
|
21
|
-
vertical: boolean;
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
grow: boolean;
|
|
24
|
-
modelValue: undefined;
|
|
25
|
-
align: string;
|
|
26
|
-
}>>> & {
|
|
11
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
"update:modelValue": (modelValue: string | number) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
27
14
|
"onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
|
|
28
|
-
}
|
|
15
|
+
}>, {
|
|
29
16
|
vertical: boolean;
|
|
30
17
|
color: ContextColorsType;
|
|
31
18
|
disabled: boolean;
|
|
32
19
|
modelValue: number | string;
|
|
33
20
|
align: "start" | "center" | "end";
|
|
34
21
|
grow: boolean;
|
|
35
|
-
|
|
22
|
+
indicatorPosition: "start" | "end";
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
24
|
export default _default;
|
|
37
|
-
type __VLS_WithDefaults<P, D> = {
|
|
38
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
39
|
-
default: D[K];
|
|
40
|
-
}> : P[K];
|
|
41
|
-
};
|
|
42
|
-
type __VLS_Prettify<T> = {
|
|
43
|
-
[K in keyof T]: T[K];
|
|
44
|
-
} & {};
|
|
45
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
46
|
-
type __VLS_TypePropsToOption<T> = {
|
|
47
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
48
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
49
|
-
} : {
|
|
50
|
-
type: import('vue').PropType<T[K]>;
|
|
51
|
-
required: true;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
@@ -35,9 +35,9 @@ export declare function useDropdownMenu<TValue, TItem>({ appendWidth, autoFocus,
|
|
|
35
35
|
};
|
|
36
36
|
getIdentifier: (item: TItem) => TItem | TItem[KeyOfType<TItem, TValue extends (infer U)[] ? U : TValue>];
|
|
37
37
|
getText: (item: TItem) => string | undefined;
|
|
38
|
-
highlightedIndex: Ref<number>;
|
|
38
|
+
highlightedIndex: Ref<number, number>;
|
|
39
39
|
isActiveItem: (item: TItem) => boolean;
|
|
40
|
-
isOpen: Ref<boolean>;
|
|
40
|
+
isOpen: Ref<boolean, boolean>;
|
|
41
41
|
itemIndexInValue: (item: TItem) => number;
|
|
42
42
|
menuWidth: globalThis.ComputedRef<string>;
|
|
43
43
|
moveHighlight: (up: boolean) => void;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { GeneratedIcon } from '../types/icons';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
2
|
+
import type { InjectionKey } from 'vue';
|
|
3
|
+
export interface IconsOptions {
|
|
4
|
+
registeredIcons: GeneratedIcon[];
|
|
5
|
+
}
|
|
6
|
+
export interface UseIconsReturn {
|
|
7
|
+
registeredIcons: Readonly<Record<string, string>>;
|
|
8
|
+
}
|
|
9
|
+
export declare const IconsSymbol: InjectionKey<UseIconsReturn>;
|
|
10
|
+
export declare function createIconDefaults(options?: Partial<IconsOptions>): UseIconsReturn;
|
|
11
|
+
export declare function useIcons(): UseIconsReturn;
|
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
import { RiArrowDownLine as ie, RiArrowDropDownFill as se, RiArrowLeftDoubleLine as re, RiArrowLeftLine as ce, RiArrowLeftSLine as ae, RiArrowRightDoubleLine as le, RiArrowRightLine as fe, RiArrowRightSLine as ue, RiExpandUpDownLine as de } from "../icons/icons_1.es.js";
|
|
2
|
+
import { RiDatabase2Line as pe } from "../icons/icons_2.es.js";
|
|
3
|
+
import { RiAlertFill as me, RiAlertLine as he, RiCheckLine as ge, RiCheckboxBlankCircleFill as ye, RiCheckboxBlankCircleLine as we, RiCheckboxBlankLine as be, RiCheckboxCircleFill as Re, RiCheckboxCircleLine as Le, RiCheckboxFill as xe, RiCheckboxIndeterminateFill as Ce, RiCloseCircleLine as ve, RiCloseFill as Se, RiCloseLine as Te, RiErrorWarningFill as Ee, RiErrorWarningLine as ke, RiEyeLine as Ie, RiEyeOffLine as Pe, RiInformationFill as De, RiInformationLine as Oe } from "../icons/icons_5.es.js";
|
|
4
|
+
import { RiRadioButtonLine as Ae, RiMoreFill as $e } from "../icons/icons_6.es.js";
|
|
5
|
+
import { inject as ee, ref as h, computed as B, watch as V, onMounted as te, watchEffect as Be, nextTick as Y } from "vue";
|
|
6
|
+
import { e as Me } from "../utils/index-Cps3W0wA.js";
|
|
7
|
+
import { createSharedComposable as ze, useColorMode as Fe, useWindowSize as He, breakpointsTailwind as _e, useBreakpoints as qe, unrefElement as Z, useResizeObserver as ne, useVirtualList as je, useArrayMap as We, watchOnce as Ve, useEventListener as G, useMutationObserver as Ue } from "@vueuse/core";
|
|
8
|
+
import { d as oe, T as P } from "../types/index-DSBIGM2a.js";
|
|
9
|
+
import { get as e, set as l } from "@vueuse/shared";
|
|
10
|
+
import { c as X, p as Ne, d as Ke, a as Ge, o as Xe, f as Je, b as Qe, e as Ye, g as Ze } from "../vendor-BRFX1hnB.js";
|
|
11
|
+
const et = [
|
|
12
|
+
me,
|
|
13
|
+
he,
|
|
14
|
+
ie,
|
|
15
|
+
se,
|
|
16
|
+
re,
|
|
17
|
+
ce,
|
|
18
|
+
ae,
|
|
19
|
+
le,
|
|
20
|
+
fe,
|
|
21
|
+
ue,
|
|
22
|
+
ge,
|
|
23
|
+
ye,
|
|
24
|
+
we,
|
|
25
|
+
be,
|
|
26
|
+
Re,
|
|
27
|
+
Le,
|
|
28
|
+
xe,
|
|
29
|
+
Ce,
|
|
30
|
+
ve,
|
|
31
|
+
Se,
|
|
32
|
+
Te,
|
|
33
|
+
pe,
|
|
34
|
+
Ee,
|
|
35
|
+
ke,
|
|
36
|
+
Ie,
|
|
37
|
+
Pe,
|
|
38
|
+
De,
|
|
39
|
+
Oe,
|
|
40
|
+
Ae,
|
|
41
|
+
$e,
|
|
42
|
+
de
|
|
43
|
+
], tt = Symbol.for("rui:icons");
|
|
44
|
+
function gt(s) {
|
|
45
|
+
const u = (s == null ? void 0 : s.registeredIcons) || [];
|
|
46
|
+
return {
|
|
47
|
+
registeredIcons: {
|
|
48
|
+
...Object.fromEntries(
|
|
49
|
+
[
|
|
50
|
+
...et,
|
|
51
|
+
...u
|
|
52
|
+
].map(({ name: p, path: y }) => [p, y])
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function yt() {
|
|
58
|
+
const s = ee(tt);
|
|
59
|
+
return Me(s, "Could not find icons injection"), s;
|
|
60
|
+
}
|
|
61
|
+
const W = h({ ...oe }), wt = ze(() => {
|
|
62
|
+
const { state: s, store: u } = Fe(), p = B(() => e(u) === P.auto), y = B(() => e(s) === P.light), c = B(() => e(s) === P.dark), g = B(() => e(y) ? e(W).light : e(W).dark), r = (n) => {
|
|
63
|
+
l(u, n || P.auto);
|
|
64
|
+
}, L = () => {
|
|
65
|
+
e(p) ? r(P.light) : e(y) ? r(P.dark) : e(c) && r(P.auto);
|
|
66
|
+
}, w = (n) => {
|
|
67
|
+
l(W, n);
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
config: W,
|
|
71
|
+
init: (n) => {
|
|
72
|
+
r(n.mode ?? P.auto), w(n.config ?? { ...oe }), typeof window < "u" && V([y, g], ([a, C]) => {
|
|
73
|
+
const o = /* @__PURE__ */ new Map();
|
|
74
|
+
Object.entries(C).forEach(([x, v]) => {
|
|
75
|
+
o.set(`--rui-${x}-darker`, v.darker), o.set(`--rui-${x}-lighter`, v.lighter), o.set(`--rui-${x}-main`, v.DEFAULT);
|
|
76
|
+
});
|
|
77
|
+
const f = a ? P.light : P.dark;
|
|
78
|
+
o.set("--rui-text-disabled", `var(--rui-${f}-text-disabled)`), o.set("--rui-text-primary", `var(--rui-${f}-text-primary)`), o.set("--rui-text-secondary", `var(--rui-${f}-text-secondary)`);
|
|
79
|
+
const k = document.documentElement.style;
|
|
80
|
+
o.forEach((x, v) => {
|
|
81
|
+
k.setProperty(v, x);
|
|
82
|
+
});
|
|
83
|
+
}, { immediate: !0 });
|
|
84
|
+
},
|
|
85
|
+
isAutoControlled: p,
|
|
86
|
+
isDark: c,
|
|
87
|
+
isLight: y,
|
|
88
|
+
setThemeConfig: w,
|
|
89
|
+
state: s,
|
|
90
|
+
store: u,
|
|
91
|
+
switchThemeScheme: r,
|
|
92
|
+
theme: g,
|
|
93
|
+
toggleThemeMode: L
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
function bt() {
|
|
97
|
+
const { width: s } = He(), u = {
|
|
98
|
+
xs: 0,
|
|
99
|
+
..._e
|
|
100
|
+
}, p = qe(u), y = Object.keys, c = y(u), g = c.map(
|
|
101
|
+
(n, a) => [
|
|
102
|
+
n,
|
|
103
|
+
a < c.length - 1 ? p.between(n, c[a + 1]) : p[n]
|
|
104
|
+
]
|
|
105
|
+
), r = g.map(([n, a]) => [
|
|
106
|
+
X(`is_${n}`),
|
|
107
|
+
a
|
|
108
|
+
]), L = c.map((n) => [
|
|
109
|
+
X(`is_${n}_and_up`),
|
|
110
|
+
p.greaterOrEqual(n)
|
|
111
|
+
]), w = c.map((n) => [
|
|
112
|
+
X(`is_${n}_and_down`),
|
|
113
|
+
p.smaller(n)
|
|
114
|
+
]), d = B(() => {
|
|
115
|
+
var n;
|
|
116
|
+
return ((n = g.find((a) => e(a[1]))) == null ? void 0 : n[0]) || "";
|
|
117
|
+
});
|
|
118
|
+
return {
|
|
119
|
+
...Object.fromEntries(r),
|
|
120
|
+
...Object.fromEntries(L),
|
|
121
|
+
...Object.fromEntries(w),
|
|
122
|
+
name: d,
|
|
123
|
+
width: s
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
const D = {
|
|
127
|
+
adaptive: !0,
|
|
128
|
+
gpuAcceleration: !0,
|
|
129
|
+
locked: !1,
|
|
130
|
+
offsetDistance: 8,
|
|
131
|
+
offsetSkid: 0,
|
|
132
|
+
overflowPadding: 8,
|
|
133
|
+
placement: "bottom",
|
|
134
|
+
resize: !0,
|
|
135
|
+
scroll: !0,
|
|
136
|
+
strategy: "absolute"
|
|
137
|
+
}, nt = Ne({
|
|
138
|
+
defaultModifiers: [
|
|
139
|
+
...Ke,
|
|
140
|
+
Ge,
|
|
141
|
+
Xe,
|
|
142
|
+
Je,
|
|
143
|
+
Qe,
|
|
144
|
+
Ye,
|
|
145
|
+
Ze
|
|
146
|
+
]
|
|
147
|
+
});
|
|
148
|
+
function Rt(s, u = h(!1), p = h(0), y = h(0), c) {
|
|
149
|
+
const g = h(null), r = h(null), L = h(null), w = h(!1), d = h(), n = h(), a = h(!1), C = h(!1), o = () => {
|
|
150
|
+
l(a, !1);
|
|
151
|
+
}, f = () => {
|
|
152
|
+
var m;
|
|
153
|
+
(m = e(L)) == null || m.update();
|
|
154
|
+
}, k = (m = !1) => {
|
|
155
|
+
if (!e(u) && (e(n) && (clearTimeout(e(n)), l(n, void 0)), l(C, !1), !e(d))) {
|
|
156
|
+
l(a, !0);
|
|
157
|
+
const R = setTimeout(() => {
|
|
158
|
+
l(w, !0), l(d, void 0);
|
|
159
|
+
}, m ? 0 : e(p));
|
|
160
|
+
l(d, R);
|
|
161
|
+
}
|
|
162
|
+
}, x = (m = !1) => {
|
|
163
|
+
if (!e(u) && (e(d) && (clearTimeout(e(d)), l(d, void 0)), !e(n))) {
|
|
164
|
+
const R = setTimeout(() => {
|
|
165
|
+
e(w) || o(), l(w, !1), l(n, void 0);
|
|
166
|
+
}, m ? 0 : e(y));
|
|
167
|
+
l(n, R);
|
|
168
|
+
}
|
|
169
|
+
}, v = () => {
|
|
170
|
+
l(C, !0);
|
|
171
|
+
};
|
|
172
|
+
return te(() => {
|
|
173
|
+
Be((m) => {
|
|
174
|
+
if (!e(r) || !e(g) && !e(c))
|
|
175
|
+
return;
|
|
176
|
+
const R = Z(r), O = e(c) || Z(g);
|
|
177
|
+
if (!(R instanceof HTMLElement) || !O)
|
|
178
|
+
return;
|
|
179
|
+
const {
|
|
180
|
+
adaptive: M = D.adaptive,
|
|
181
|
+
gpuAcceleration: E = D.gpuAcceleration,
|
|
182
|
+
locked: z = D.locked,
|
|
183
|
+
offsetDistance: b = D.offsetDistance,
|
|
184
|
+
offsetSkid: U = D.offsetSkid,
|
|
185
|
+
overflowPadding: q = D.overflowPadding,
|
|
186
|
+
placement: j = D.placement,
|
|
187
|
+
resize: F = D.resize,
|
|
188
|
+
scroll: H = D.scroll,
|
|
189
|
+
strategy: N = D.strategy
|
|
190
|
+
} = e(s), K = nt(O, R, {
|
|
191
|
+
modifiers: [
|
|
192
|
+
{
|
|
193
|
+
enabled: !z,
|
|
194
|
+
name: "flip"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "preventOverflow",
|
|
198
|
+
options: {
|
|
199
|
+
padding: q
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: "offset",
|
|
204
|
+
options: {
|
|
205
|
+
offset: [U, b]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: "computeStyles",
|
|
210
|
+
options: {
|
|
211
|
+
adaptive: M,
|
|
212
|
+
gpuAcceleration: E
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: "eventListeners",
|
|
217
|
+
options: {
|
|
218
|
+
resize: F,
|
|
219
|
+
scroll: H
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: "arrow",
|
|
224
|
+
options: {
|
|
225
|
+
padding: 4
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
placement: j,
|
|
230
|
+
strategy: N
|
|
231
|
+
});
|
|
232
|
+
l(L, K), m(K.destroy);
|
|
233
|
+
});
|
|
234
|
+
}), ne([g, r], async () => {
|
|
235
|
+
const m = e(L);
|
|
236
|
+
e(w) && m && await m.update();
|
|
237
|
+
}), {
|
|
238
|
+
instance: L,
|
|
239
|
+
leavePending: C,
|
|
240
|
+
onClose: x,
|
|
241
|
+
onLeavePending: v,
|
|
242
|
+
onOpen: k,
|
|
243
|
+
onPopperLeave: o,
|
|
244
|
+
open: w,
|
|
245
|
+
popper: r,
|
|
246
|
+
popperEnter: a,
|
|
247
|
+
reference: g,
|
|
248
|
+
updatePopper: f
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
function ot({
|
|
252
|
+
keyAttr: s,
|
|
253
|
+
textAttr: u
|
|
254
|
+
}) {
|
|
255
|
+
function p(c) {
|
|
256
|
+
var g;
|
|
257
|
+
return u ? typeof u == "function" ? u(c) : (g = c[u]) == null ? void 0 : g.toString() : c == null ? void 0 : c.toString();
|
|
258
|
+
}
|
|
259
|
+
function y(c) {
|
|
260
|
+
return s ? c[s] : c;
|
|
261
|
+
}
|
|
262
|
+
return {
|
|
263
|
+
getIdentifier: y,
|
|
264
|
+
getText: p
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
function Lt({
|
|
268
|
+
appendWidth: s,
|
|
269
|
+
autoFocus: u,
|
|
270
|
+
autoSelectFirst: p,
|
|
271
|
+
dense: y,
|
|
272
|
+
hideSelected: c,
|
|
273
|
+
itemHeight: g = 48,
|
|
274
|
+
keyAttr: r,
|
|
275
|
+
menuRef: L,
|
|
276
|
+
options: w,
|
|
277
|
+
overscan: d = 5,
|
|
278
|
+
prependWidth: n,
|
|
279
|
+
setValue: a,
|
|
280
|
+
textAttr: C,
|
|
281
|
+
value: o
|
|
282
|
+
}) {
|
|
283
|
+
const f = B(() => {
|
|
284
|
+
const t = e(w);
|
|
285
|
+
return c ? t.filter((i) => !F(i)) : t;
|
|
286
|
+
}), { getIdentifier: k, getText: x } = ot({
|
|
287
|
+
keyAttr: r,
|
|
288
|
+
textAttr: C
|
|
289
|
+
}), { containerProps: v, list: m, scrollTo: R, wrapperProps: O } = je(
|
|
290
|
+
f,
|
|
291
|
+
{
|
|
292
|
+
itemHeight: g,
|
|
293
|
+
overscan: d
|
|
294
|
+
}
|
|
295
|
+
), M = We(m, ({ data: t, index: i }) => ({ _index: i, item: t })), E = h(!1), z = B(() => {
|
|
296
|
+
const t = e(o);
|
|
297
|
+
return !r || !t ? t : Array.isArray(t) ? t.map((i) => i[r]) : t[r];
|
|
298
|
+
}), b = h(e(p) ? 0 : -1), U = B(() => {
|
|
299
|
+
const t = { max: 0, min: 0 }, i = 30, I = 1.5, S = e(y) ? 12 : 13;
|
|
300
|
+
e(f).forEach((A) => {
|
|
301
|
+
var J, Q;
|
|
302
|
+
const $ = ((Q = (J = x(A)) == null ? void 0 : J.toString()) == null ? void 0 : Q.length) ?? 0;
|
|
303
|
+
t.min === 0 && t.max === 0 ? (t.min = $, t.max = $) : $ < t.min ? t.min = $ : $ > t.max && (t.max = $);
|
|
304
|
+
});
|
|
305
|
+
const _ = t.max - t.min;
|
|
306
|
+
function T(A) {
|
|
307
|
+
const $ = (n ? n + 0.5 : 0) + (s ? s + 0.5 : 0);
|
|
308
|
+
return `${Math.min(A * S / 16 + I + $, i)}rem`;
|
|
309
|
+
}
|
|
310
|
+
return _ <= 5 ? T(t.max) : T(t.min + _ / 2);
|
|
311
|
+
});
|
|
312
|
+
function q(t = !1) {
|
|
313
|
+
l(E, t);
|
|
314
|
+
}
|
|
315
|
+
function j(t) {
|
|
316
|
+
const i = e(o), I = Array.isArray(i) ? i : i ? [i] : [];
|
|
317
|
+
return I.length === 0 ? -1 : I.findIndex((S) => r ? S[r] === t[r] : S === t);
|
|
318
|
+
}
|
|
319
|
+
function F(t) {
|
|
320
|
+
return j(t) !== -1;
|
|
321
|
+
}
|
|
322
|
+
async function H(t = !1) {
|
|
323
|
+
const i = e(b);
|
|
324
|
+
i > -1 && await Y(() => {
|
|
325
|
+
var S, _;
|
|
326
|
+
if ((S = e(L)) == null ? void 0 : S.parentElement) {
|
|
327
|
+
const T = e(L).getElementsByClassName("highlighted")[0];
|
|
328
|
+
if (T)
|
|
329
|
+
(_ = T.scrollIntoView) == null || _.call(T, { behavior: t ? "smooth" : "auto", block: "nearest" }), e(u) && "focus" in T && typeof T.focus == "function" && (T == null || T.focus());
|
|
330
|
+
else if (R(i), e(u)) {
|
|
331
|
+
const A = e(L).getElementsByClassName("highlighted")[0];
|
|
332
|
+
A && "focus" in A && typeof A.focus == "function" && A.focus();
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
async function N(t) {
|
|
338
|
+
await Y(() => {
|
|
339
|
+
if (t) {
|
|
340
|
+
const i = e(o);
|
|
341
|
+
if (Array.isArray(i) && i.length > 0 || i) {
|
|
342
|
+
const I = e(f).findIndex(F);
|
|
343
|
+
I > -1 && l(b, I);
|
|
344
|
+
}
|
|
345
|
+
Ve(m, async () => {
|
|
346
|
+
await H();
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
return V(E, N), V(b, async (t, i) => {
|
|
352
|
+
t !== i && await H(!0);
|
|
353
|
+
}), V(f, async () => {
|
|
354
|
+
e(b) !== -1 ? e(p) ? (l(b, 0), await H()) : (l(b, -1), R(0)) : R(0);
|
|
355
|
+
}), {
|
|
356
|
+
applyHighlighted: () => {
|
|
357
|
+
if (!a || !e(E))
|
|
358
|
+
return;
|
|
359
|
+
const t = e(b);
|
|
360
|
+
if (t === -1)
|
|
361
|
+
return;
|
|
362
|
+
const i = e(f).find((I, S) => t === S);
|
|
363
|
+
i && a(i);
|
|
364
|
+
},
|
|
365
|
+
containerProps: v,
|
|
366
|
+
getIdentifier: k,
|
|
367
|
+
getText: x,
|
|
368
|
+
highlightedIndex: b,
|
|
369
|
+
isActiveItem: F,
|
|
370
|
+
isOpen: E,
|
|
371
|
+
itemIndexInValue: j,
|
|
372
|
+
menuWidth: U,
|
|
373
|
+
moveHighlight: (t) => {
|
|
374
|
+
if (!e(E)) {
|
|
375
|
+
q(!0);
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
let i = e(b);
|
|
379
|
+
i += t ? -1 : 1;
|
|
380
|
+
const S = e(f).length;
|
|
381
|
+
i >= S ? l(b, 0) : i < 0 ? l(b, S - 1) : l(b, i);
|
|
382
|
+
},
|
|
383
|
+
optionsWithSelectedHidden: f,
|
|
384
|
+
renderedData: M,
|
|
385
|
+
toggle: q,
|
|
386
|
+
valueKey: z,
|
|
387
|
+
wrapperProps: O
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
const it = Symbol.for("rui:table");
|
|
391
|
+
function xt(s) {
|
|
392
|
+
return {
|
|
393
|
+
globalItemsPerPage: !1,
|
|
394
|
+
itemsPerPage: h(10),
|
|
395
|
+
limits: [10, 25, 50, 100],
|
|
396
|
+
stickyOffset: h(0),
|
|
397
|
+
...s
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
function Ct() {
|
|
401
|
+
const s = ee(it);
|
|
402
|
+
if (!s)
|
|
403
|
+
throw new Error("Could not find rui table options injection");
|
|
404
|
+
return s;
|
|
405
|
+
}
|
|
406
|
+
function vt(s = h(!1), u) {
|
|
407
|
+
const p = h(null), y = h(null), c = h(!1), g = -0.5, r = {
|
|
408
|
+
head: ":scope > thead[data-id=head-main]",
|
|
409
|
+
headClone: ":scope > thead[data-id=head-clone]",
|
|
410
|
+
row: ":scope > tbody > tr:not([hidden])",
|
|
411
|
+
th: ":scope > th"
|
|
412
|
+
}, L = () => {
|
|
413
|
+
const d = e(p);
|
|
414
|
+
if (!e(s) || !d)
|
|
415
|
+
return;
|
|
416
|
+
const n = d.querySelector(
|
|
417
|
+
`${r.headClone} > tr`
|
|
418
|
+
), a = d.querySelector(`${r.head} > tr`) ?? null, C = () => {
|
|
419
|
+
const o = a == null ? void 0 : a.querySelectorAll(
|
|
420
|
+
r.th
|
|
421
|
+
), f = n == null ? void 0 : n.querySelectorAll(r.th);
|
|
422
|
+
f == null || f.forEach((k, x) => {
|
|
423
|
+
ne(k, (v) => {
|
|
424
|
+
const m = v[0].target.getBoundingClientRect(), R = o == null ? void 0 : o.item(x);
|
|
425
|
+
R && (R.style.width = `${m.width}px`);
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
};
|
|
429
|
+
Ue(n, (o) => {
|
|
430
|
+
for (const f of o)
|
|
431
|
+
(f.type === "childList" || f.type === "attributes") && C();
|
|
432
|
+
}, {
|
|
433
|
+
attributes: !0,
|
|
434
|
+
childList: !0,
|
|
435
|
+
subtree: !0
|
|
436
|
+
}), C();
|
|
437
|
+
}, w = () => {
|
|
438
|
+
var z;
|
|
439
|
+
const d = e(p);
|
|
440
|
+
if (!e(s) || !d)
|
|
441
|
+
return;
|
|
442
|
+
const n = d.getBoundingClientRect(), a = d.querySelector(
|
|
443
|
+
r.headClone
|
|
444
|
+
), C = a == null ? void 0 : a.getBoundingClientRect(), o = d.querySelector(r.head) ?? null, f = o == null ? void 0 : o.getBoundingClientRect();
|
|
445
|
+
if (!n || !C || !o || !a || !f)
|
|
446
|
+
return;
|
|
447
|
+
const {
|
|
448
|
+
height: k,
|
|
449
|
+
left: x,
|
|
450
|
+
width: v
|
|
451
|
+
} = C, { bottom: m, top: R } = n, O = e(u) ?? 0;
|
|
452
|
+
o.style.width = `${v}px`;
|
|
453
|
+
const M = d.querySelectorAll(r.row), E = (z = M.item(M.length - 1)) == null ? void 0 : z.getBoundingClientRect();
|
|
454
|
+
if (R <= O && m > O && M.length > 1) {
|
|
455
|
+
l(c, !0), o.style.left = `${x + g}px`;
|
|
456
|
+
const b = (E == null ? void 0 : E.height) ?? 0;
|
|
457
|
+
m <= b + k + O ? o.style.top = `${m - b - k}px` : o.style.top = `${O}px`;
|
|
458
|
+
} else
|
|
459
|
+
l(c, !1), o.style.left = `${g}px`, o.style.top = "0";
|
|
460
|
+
};
|
|
461
|
+
return te(() => {
|
|
462
|
+
w(), G(y, "scroll", w), G(document.body, "scroll", w), G(window, "resize", w), L();
|
|
463
|
+
}), {
|
|
464
|
+
stick: c,
|
|
465
|
+
table: p,
|
|
466
|
+
tableScroller: y
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
export {
|
|
470
|
+
tt as I,
|
|
471
|
+
it as T,
|
|
472
|
+
Rt as a,
|
|
473
|
+
ot as b,
|
|
474
|
+
Lt as c,
|
|
475
|
+
Ct as d,
|
|
476
|
+
vt as e,
|
|
477
|
+
gt as f,
|
|
478
|
+
xt as g,
|
|
479
|
+
wt as h,
|
|
480
|
+
bt as i,
|
|
481
|
+
yt as u
|
|
482
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u } from "../breakpoint-sPlgsoXp.js";
|
|
1
|
+
import { i as o, u as a, h as u } from "./index--ZwAZVMb.js";
|
|
3
2
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
o as useBreakpoint,
|
|
4
|
+
a as useIcons,
|
|
5
|
+
u as useRotkiTheme
|
|
7
6
|
};
|
|
@@ -17,15 +17,15 @@ export interface PopperOptions {
|
|
|
17
17
|
export declare const DEFAULT_POPPER_OPTIONS: PopperOptions;
|
|
18
18
|
export declare const createPopper: <TModifier extends Partial<import("@popperjs/core").Modifier<any, any>>>(reference: Element | VirtualElement, popper: HTMLElement, options?: Partial<import("@popperjs/core").OptionsGeneric<TModifier>>) => Instance;
|
|
19
19
|
export declare function usePopper(options: Ref<PopperOptions>, disabled?: Ref<boolean>, openDelay?: Ref<number>, closeDelay?: Ref<number>, virtualReference?: Ref<Element | VirtualElement>): {
|
|
20
|
-
instance: Ref<Instance | null>;
|
|
21
|
-
leavePending: Ref<boolean>;
|
|
20
|
+
instance: Ref<Instance | null, Instance | null>;
|
|
21
|
+
leavePending: Ref<boolean, boolean>;
|
|
22
22
|
onClose: (immediate?: boolean) => void;
|
|
23
23
|
onLeavePending: () => void;
|
|
24
24
|
onOpen: (immediate?: boolean) => void;
|
|
25
25
|
onPopperLeave: () => void;
|
|
26
|
-
open: Ref<boolean>;
|
|
27
|
-
popper: Ref<MaybeElement>;
|
|
28
|
-
popperEnter: Ref<boolean>;
|
|
29
|
-
reference: Ref<MaybeElement>;
|
|
26
|
+
open: Ref<boolean, boolean>;
|
|
27
|
+
popper: Ref<MaybeElement, MaybeElement>;
|
|
28
|
+
popperEnter: Ref<boolean, boolean>;
|
|
29
|
+
reference: Ref<MaybeElement, MaybeElement>;
|
|
30
30
|
updatePopper: () => void;
|
|
31
31
|
};
|