@rotki/ui-library 0.15.0 → 0.16.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/RuiColorPicker.vue_vue_type_script_setup_true_lang-ByCIjyQ_.js +8945 -0
- package/dist/{breakpoint-CRvqq4aP.js → breakpoint-DAvEs_TA.js} +1 -1
- package/dist/components/alerts/{Alert.vue.d.ts → RuiAlert.vue.d.ts} +10 -10
- package/dist/components/buttons/button/{Button.vue.d.ts → RuiButton.vue.d.ts} +1 -1
- package/dist/components/buttons/button-group/{ButtonGroup.vue.d.ts → RuiButtonGroup.vue.d.ts} +1 -1
- package/dist/components/cards/{Card.vue.d.ts → RuiCard.vue.d.ts} +12 -12
- package/dist/components/chips/{Chip.vue.d.ts → RuiChip.vue.d.ts} +19 -19
- package/dist/components/color-picker/RuiColorBoard.vue.d.ts +23 -0
- package/dist/components/color-picker/RuiColorDisplay.vue.d.ts +12 -0
- package/dist/components/color-picker/RuiColorHue.vue.d.ts +12 -0
- package/dist/components/color-picker/RuiColorInput.vue.d.ts +13 -0
- package/dist/components/color-picker/RuiColorPicker.vue.d.ts +21 -0
- package/dist/components/color-picker/utils.d.ts +44 -0
- package/dist/components/forms/auto-complete/{AutoComplete.vue.d.ts → RuiAutoComplete.vue.d.ts} +1 -1
- package/dist/components/forms/auto-complete/{AutoCompleteSelection.vue.d.ts → RuiAutoCompleteSelection.vue.d.ts} +2 -2
- package/dist/components/forms/radio-button/radio-group/{RadioGroup.vue.d.ts → RuiRadioGroup.vue.d.ts} +10 -10
- package/dist/components/forms/revealable-text-field/{RevealableTextField.vue.d.ts → RuiRevealableTextField.vue.d.ts} +35 -35
- package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +2 -4
- package/dist/components/forms/slider/{Slider.vue.d.ts → RuiSlider.vue.d.ts} +17 -17
- package/dist/components/forms/text-area/{TextArea.vue.d.ts → RuiTextArea.vue.d.ts} +37 -37
- package/dist/components/forms/text-field/{TextField.vue.d.ts → RuiTextField.vue.d.ts} +36 -36
- package/dist/components/icons/{Icon.vue.d.ts → RuiIcon.vue.d.ts} +9 -9
- package/dist/components/index.d.ts +41 -39
- package/dist/components/index.es.js +36 -34
- package/dist/components/loaders/{SkeletonBase.vue.d.ts → RuiSkeletonBase.vue.d.ts} +3 -3
- package/dist/components/loaders/{Skeleton.vue.d.ts → RuiSkeletonLoader.vue.d.ts} +7 -7
- package/dist/components/overlays/badge/{Badge.vue.d.ts → RuiBadge.vue.d.ts} +19 -19
- package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +46 -0
- package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +87 -0
- package/dist/components/steppers/{FooterStepper.vue.d.ts → RuiFooterStepper.vue.d.ts} +19 -9
- package/dist/components/tables/{DataTable.vue.d.ts → RuiDataTable.vue.d.ts} +4 -3
- package/dist/components/tables/{ExpandButton.vue.d.ts → RuiExpandButton.vue.d.ts} +1 -1
- package/dist/components/tables/{TableHead.vue.d.ts → RuiTableHead.vue.d.ts} +1 -1
- package/dist/composables/index.es.js +2 -2
- package/dist/consts/typography.d.ts +1 -2
- package/dist/index-RsNqSz2V.js +177 -0
- package/dist/index.es.js +2787 -2785
- package/dist/style.css +1 -1
- package/package.json +35 -37
- package/dist/Accordion-BFcz_iFc.js +0 -8386
- package/dist/components/overlays/dialog/Dialog.vue.d.ts +0 -60
- package/dist/index-x2urm9HD.js +0 -176
- package/dist/components/accordions/accordion/{Accordion.vue.d.ts → RuiAccordion.vue.d.ts} +0 -0
- package/dist/components/accordions/accordions/{Accordions.vue.d.ts → RuiAccordions.vue.d.ts} +0 -0
- package/dist/components/cards/{CardHeader.vue.d.ts → RuiCardHeader.vue.d.ts} +0 -0
- package/dist/components/divider/{Divider.vue.d.ts → RuiDivider.vue.d.ts} +0 -0
- package/dist/components/forms/checkbox/{Checkbox.vue.d.ts → RuiCheckbox.vue.d.ts} +14 -14
- package/dist/components/forms/radio-button/radio/{Radio.vue.d.ts → RuiRadio.vue.d.ts} +17 -17
- package/dist/components/forms/select/{SimpleSelect.vue.d.ts → RuiSimpleSelect.vue.d.ts} +8 -8
- package/dist/components/forms/switch/{Switch.vue.d.ts → RuiSwitch.vue.d.ts} +5 -5
- package/dist/components/helpers/{FormTextDetail.vue.d.ts → RuiFormTextDetail.vue.d.ts} +0 -0
- package/dist/components/logos/{Logo.vue.d.ts → RuiLogo.vue.d.ts} +9 -9
- package/dist/components/overlays/menu/{Menu.vue.d.ts → RuiMenu.vue.d.ts} +32 -32
- package/dist/components/overlays/tooltip/{Tooltip.vue.d.ts → RuiTooltip.vue.d.ts} +0 -0
- package/dist/components/progress/{Progress.vue.d.ts → RuiProgress.vue.d.ts} +9 -9
- package/dist/components/steppers/{Stepper.vue.d.ts → RuiStepper.vue.d.ts} +9 -9
- package/dist/components/steppers/{StepperCustomIcon.vue.d.ts → RuiStepperCustomIcon.vue.d.ts} +0 -0
- package/dist/components/steppers/{StepperIcon.vue.d.ts → RuiStepperIcon.vue.d.ts} +0 -0
- package/dist/components/tables/{TablePagination.vue.d.ts → RuiTablePagination.vue.d.ts} +8 -8
- package/dist/components/tabs/tab/{Tab.vue.d.ts → RuiTab.vue.d.ts} +18 -18
- package/dist/components/tabs/tab-item/{TabItem.vue.d.ts → RuiTabItem.vue.d.ts} +8 -8
- package/dist/components/tabs/tab-items/{TabItems.vue.d.ts → RuiTabItems.vue.d.ts} +0 -0
- package/dist/components/tabs/tabs/{Tabs.vue.d.ts → RuiTabs.vue.d.ts} +16 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ContextColorsType } from '../../../consts/colors';
|
|
2
|
-
import type { RuiIcons } from '
|
|
2
|
+
import type { RuiIcons } from '../../../icons';
|
|
3
3
|
export interface Props {
|
|
4
4
|
text?: string | null;
|
|
5
5
|
icon?: RuiIcons | null;
|
|
@@ -14,20 +14,16 @@ export interface Props {
|
|
|
14
14
|
color?: 'default' | ContextColorsType;
|
|
15
15
|
}
|
|
16
16
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
17
|
-
size: {
|
|
18
|
-
type: globalThis.PropType<"sm" | "md" | "lg">;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
17
|
text: {
|
|
22
18
|
type: globalThis.PropType<string | null>;
|
|
23
19
|
default: null;
|
|
24
20
|
};
|
|
25
|
-
|
|
26
|
-
type: globalThis.PropType<"
|
|
21
|
+
size: {
|
|
22
|
+
type: globalThis.PropType<"sm" | "lg" | "md">;
|
|
27
23
|
default: string;
|
|
28
24
|
};
|
|
29
|
-
|
|
30
|
-
type: globalThis.PropType<"
|
|
25
|
+
color: {
|
|
26
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success" | "default">;
|
|
31
27
|
default: string;
|
|
32
28
|
};
|
|
33
29
|
icon: {
|
|
@@ -38,6 +34,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
38
34
|
type: globalThis.PropType<boolean>;
|
|
39
35
|
default: boolean;
|
|
40
36
|
};
|
|
37
|
+
rounded: {
|
|
38
|
+
type: globalThis.PropType<"sm" | "lg" | "md" | "full">;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
41
|
left: {
|
|
42
42
|
type: globalThis.PropType<boolean>;
|
|
43
43
|
default: boolean;
|
|
@@ -59,20 +59,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
59
59
|
default: number;
|
|
60
60
|
};
|
|
61
61
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
62
|
-
size: {
|
|
63
|
-
type: globalThis.PropType<"sm" | "md" | "lg">;
|
|
64
|
-
default: string;
|
|
65
|
-
};
|
|
66
62
|
text: {
|
|
67
63
|
type: globalThis.PropType<string | null>;
|
|
68
64
|
default: null;
|
|
69
65
|
};
|
|
70
|
-
|
|
71
|
-
type: globalThis.PropType<"
|
|
66
|
+
size: {
|
|
67
|
+
type: globalThis.PropType<"sm" | "lg" | "md">;
|
|
72
68
|
default: string;
|
|
73
69
|
};
|
|
74
|
-
|
|
75
|
-
type: globalThis.PropType<"
|
|
70
|
+
color: {
|
|
71
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success" | "default">;
|
|
76
72
|
default: string;
|
|
77
73
|
};
|
|
78
74
|
icon: {
|
|
@@ -83,6 +79,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
83
79
|
type: globalThis.PropType<boolean>;
|
|
84
80
|
default: boolean;
|
|
85
81
|
};
|
|
82
|
+
rounded: {
|
|
83
|
+
type: globalThis.PropType<"sm" | "lg" | "md" | "full">;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
86
|
left: {
|
|
87
87
|
type: globalThis.PropType<boolean>;
|
|
88
88
|
default: boolean;
|
|
@@ -104,12 +104,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
104
104
|
default: number;
|
|
105
105
|
};
|
|
106
106
|
}>>, {
|
|
107
|
-
size: "sm" | "md" | "lg";
|
|
108
107
|
text: string | null;
|
|
108
|
+
size: "sm" | "lg" | "md";
|
|
109
109
|
color: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "default";
|
|
110
|
-
rounded: "sm" | "md" | "lg" | "full";
|
|
111
110
|
icon: RuiIcons | null;
|
|
112
111
|
modelValue: boolean;
|
|
112
|
+
rounded: "sm" | "lg" | "md" | "full";
|
|
113
113
|
left: boolean;
|
|
114
114
|
placement: "bottom" | "top" | "center";
|
|
115
115
|
dot: boolean;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface BottomSheetProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
persistent?: boolean;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
maxWidth?: string | number;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
8
|
+
width: {
|
|
9
|
+
type: globalThis.PropType<string | number>;
|
|
10
|
+
};
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: globalThis.PropType<boolean>;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
maxWidth: {
|
|
16
|
+
type: globalThis.PropType<string | number>;
|
|
17
|
+
};
|
|
18
|
+
persistent: {
|
|
19
|
+
type: globalThis.PropType<boolean>;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
23
|
+
width: {
|
|
24
|
+
type: globalThis.PropType<string | number>;
|
|
25
|
+
};
|
|
26
|
+
modelValue: {
|
|
27
|
+
type: globalThis.PropType<boolean>;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
maxWidth: {
|
|
31
|
+
type: globalThis.PropType<string | number>;
|
|
32
|
+
};
|
|
33
|
+
persistent: {
|
|
34
|
+
type: globalThis.PropType<boolean>;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
}>>, {
|
|
38
|
+
modelValue: boolean;
|
|
39
|
+
persistent: boolean;
|
|
40
|
+
}, {}>, Partial<Record<string, (_: any) => any>>>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export interface DialogProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
persistent?: boolean;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
maxWidth?: string | number;
|
|
6
|
+
bottomSheet?: boolean;
|
|
7
|
+
contentClass?: any;
|
|
8
|
+
}
|
|
9
|
+
declare function close(): void;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
11
|
+
width: {
|
|
12
|
+
type: globalThis.PropType<string | number>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
contentClass: {
|
|
16
|
+
type: globalThis.PropType<any>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: globalThis.PropType<boolean>;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
maxWidth: {
|
|
24
|
+
type: globalThis.PropType<string | number>;
|
|
25
|
+
};
|
|
26
|
+
persistent: {
|
|
27
|
+
type: globalThis.PropType<boolean>;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
bottomSheet: {
|
|
31
|
+
type: globalThis.PropType<boolean>;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
"update:model-value": (value: boolean) => void;
|
|
36
|
+
closed: () => void;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
38
|
+
width: {
|
|
39
|
+
type: globalThis.PropType<string | number>;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
contentClass: {
|
|
43
|
+
type: globalThis.PropType<any>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
modelValue: {
|
|
47
|
+
type: globalThis.PropType<boolean>;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
maxWidth: {
|
|
51
|
+
type: globalThis.PropType<string | number>;
|
|
52
|
+
};
|
|
53
|
+
persistent: {
|
|
54
|
+
type: globalThis.PropType<boolean>;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
bottomSheet: {
|
|
58
|
+
type: globalThis.PropType<boolean>;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}>> & {
|
|
62
|
+
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
63
|
+
onClosed?: (() => any) | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
width: string | number;
|
|
66
|
+
contentClass: any;
|
|
67
|
+
modelValue: boolean;
|
|
68
|
+
persistent: boolean;
|
|
69
|
+
bottomSheet: boolean;
|
|
70
|
+
}, {}>, {
|
|
71
|
+
activator?(_: {
|
|
72
|
+
on: {
|
|
73
|
+
click: () => void;
|
|
74
|
+
};
|
|
75
|
+
isOpen: boolean;
|
|
76
|
+
}): any;
|
|
77
|
+
default?(_: {
|
|
78
|
+
isOpen: true;
|
|
79
|
+
close: typeof close;
|
|
80
|
+
}): any;
|
|
81
|
+
}>;
|
|
82
|
+
export default _default;
|
|
83
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -3,16 +3,17 @@ export interface Props {
|
|
|
3
3
|
modelValue?: number;
|
|
4
4
|
variant?: 'numeric' | 'bullet' | 'progress' | 'pill';
|
|
5
5
|
arrowButtons?: boolean;
|
|
6
|
+
hideButtons?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: import("vue").DefineComponent<{
|
|
8
|
-
variant: {
|
|
9
|
-
type: globalThis.PropType<"progress" | "numeric" | "bullet" | "pill">;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
9
|
modelValue: {
|
|
13
10
|
type: globalThis.PropType<number>;
|
|
14
11
|
default: number;
|
|
15
12
|
};
|
|
13
|
+
variant: {
|
|
14
|
+
type: globalThis.PropType<"progress" | "numeric" | "bullet" | "pill">;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
16
17
|
pages: {
|
|
17
18
|
type: globalThis.PropType<number>;
|
|
18
19
|
required: true;
|
|
@@ -21,17 +22,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: globalThis.PropType<boolean>;
|
|
22
23
|
default: boolean;
|
|
23
24
|
};
|
|
25
|
+
hideButtons: {
|
|
26
|
+
type: globalThis.PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
24
29
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
30
|
"update:modelValue": (modelValue: number) => void;
|
|
26
31
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
27
|
-
variant: {
|
|
28
|
-
type: globalThis.PropType<"progress" | "numeric" | "bullet" | "pill">;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
32
|
modelValue: {
|
|
32
33
|
type: globalThis.PropType<number>;
|
|
33
34
|
default: number;
|
|
34
35
|
};
|
|
36
|
+
variant: {
|
|
37
|
+
type: globalThis.PropType<"progress" | "numeric" | "bullet" | "pill">;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
35
40
|
pages: {
|
|
36
41
|
type: globalThis.PropType<number>;
|
|
37
42
|
required: true;
|
|
@@ -40,11 +45,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
45
|
type: globalThis.PropType<boolean>;
|
|
41
46
|
default: boolean;
|
|
42
47
|
};
|
|
48
|
+
hideButtons: {
|
|
49
|
+
type: globalThis.PropType<boolean>;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
43
52
|
}>> & {
|
|
44
53
|
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
|
45
54
|
}, {
|
|
46
|
-
variant: "progress" | "numeric" | "bullet" | "pill";
|
|
47
55
|
modelValue: number;
|
|
56
|
+
variant: "progress" | "numeric" | "bullet" | "pill";
|
|
48
57
|
arrowButtons: boolean;
|
|
58
|
+
hideButtons: boolean;
|
|
49
59
|
}, {}>;
|
|
50
60
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type TablePaginationData } from '
|
|
2
|
-
import { type GroupData, type GroupKeys, type TableColumn, type TableRowKeyData, type TableSortData } from '
|
|
1
|
+
import { type TablePaginationData } from '../../components/tables/RuiTablePagination.vue';
|
|
2
|
+
import { type GroupData, type GroupKeys, type TableColumn, type TableRowKeyData, type TableSortData } from '../../components/tables/RuiTableHead.vue';
|
|
3
3
|
export interface TableOptions<T> {
|
|
4
4
|
pagination?: TablePaginationData;
|
|
5
5
|
sort?: TableSortData<T>;
|
|
@@ -135,6 +135,7 @@ export interface Props<T, K extends keyof T> {
|
|
|
135
135
|
disabledRows?: T[];
|
|
136
136
|
multiPageSelect?: boolean;
|
|
137
137
|
scroller?: HTMLElement | null;
|
|
138
|
+
itemClass?: ((item: T) => string) | string;
|
|
138
139
|
}
|
|
139
140
|
declare const _default: <T extends object, IdType extends keyof T = keyof T>(__VLS_props: Props<T, IdType> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: Pick<{
|
|
140
141
|
props: Props<T, IdType>;
|
|
@@ -181,7 +182,7 @@ declare const _default: <T extends object, IdType extends keyof T = keyof T>(__V
|
|
|
181
182
|
(e: 'update:collapsed', value?: T[]): void;
|
|
182
183
|
(e: 'copy:group', value: GroupData<T>): void;
|
|
183
184
|
};
|
|
184
|
-
}, "
|
|
185
|
+
}, "slots" | "attrs" | "emit"> | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
|
|
185
186
|
props: Props<T, IdType>;
|
|
186
187
|
expose(exposed: {}): void;
|
|
187
188
|
attrs: any;
|
|
@@ -83,7 +83,7 @@ declare const _default: <T extends object, K extends keyof T = keyof T>(__VLS_pr
|
|
|
83
83
|
direction?: 'asc' | 'desc';
|
|
84
84
|
}): void;
|
|
85
85
|
};
|
|
86
|
-
}, "
|
|
86
|
+
}, "slots" | "attrs" | "emit"> | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
|
|
87
87
|
props: Props<T>;
|
|
88
88
|
expose(exposed: {}): void;
|
|
89
89
|
attrs: any;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { RiArrowDownLine as T, RiArrowDropDownFill as $, RiArrowLeftDoubleLine as D, RiArrowLeftLine as v, RiArrowLeftSLine as I, RiArrowRightDoubleLine as S, RiArrowRightLine as U, RiArrowRightSLine as B, RiExpandUpDownLine as M } from "./icons/icons_1.es.js";
|
|
2
|
+
import { RiDatabase2Line as _ } from "./icons/icons_2.es.js";
|
|
3
|
+
import { RiAlertFill as j, RiAlertLine as O, RiCheckLine as P, RiCheckboxBlankCircleFill as V, RiCheckboxBlankCircleLine as W, RiCheckboxBlankLine as q, RiCheckboxCircleFill as z, RiCheckboxCircleLine as G, RiCheckboxFill as H, RiCheckboxIndeterminateFill as N, RiCloseCircleLine as J, RiCloseFill as K, RiCloseLine as Q, RiErrorWarningFill as X, RiErrorWarningLine as Y, RiEyeLine as Z, RiEyeOffLine as ee, RiInformationFill as ie, RiInformationLine as re, RiRadioButtonLine as te, RiMoreFill as ne } from "./icons/icons_5.es.js";
|
|
4
|
+
import { createGlobalState as oe, useColorMode as ae } from "@vueuse/core";
|
|
5
|
+
import { ref as b, computed as R, watch as se } from "vue";
|
|
6
|
+
import { set as L, get as t } from "@vueuse/shared";
|
|
7
|
+
import { c as le } from "./colors-D563Ic3q.js";
|
|
8
|
+
const Ae = oe(() => {
|
|
9
|
+
const e = [
|
|
10
|
+
j,
|
|
11
|
+
O,
|
|
12
|
+
T,
|
|
13
|
+
$,
|
|
14
|
+
D,
|
|
15
|
+
v,
|
|
16
|
+
I,
|
|
17
|
+
S,
|
|
18
|
+
U,
|
|
19
|
+
B,
|
|
20
|
+
P,
|
|
21
|
+
V,
|
|
22
|
+
W,
|
|
23
|
+
q,
|
|
24
|
+
z,
|
|
25
|
+
G,
|
|
26
|
+
H,
|
|
27
|
+
N,
|
|
28
|
+
J,
|
|
29
|
+
K,
|
|
30
|
+
Q,
|
|
31
|
+
_,
|
|
32
|
+
X,
|
|
33
|
+
Y,
|
|
34
|
+
Z,
|
|
35
|
+
ee,
|
|
36
|
+
ie,
|
|
37
|
+
re,
|
|
38
|
+
te,
|
|
39
|
+
ne,
|
|
40
|
+
M
|
|
41
|
+
], i = b({});
|
|
42
|
+
return { registeredIcons: i, registerIcons: (n) => {
|
|
43
|
+
L(i, {
|
|
44
|
+
...t(i),
|
|
45
|
+
...Object.fromEntries(
|
|
46
|
+
[...e, ...n].map(({ name: r, path: a }) => [r, a])
|
|
47
|
+
)
|
|
48
|
+
});
|
|
49
|
+
} };
|
|
50
|
+
}), o = {
|
|
51
|
+
auto: "auto",
|
|
52
|
+
dark: "dark",
|
|
53
|
+
light: "light"
|
|
54
|
+
};
|
|
55
|
+
function k(e) {
|
|
56
|
+
return Object.fromEntries(
|
|
57
|
+
le.map((i) => [
|
|
58
|
+
i,
|
|
59
|
+
{
|
|
60
|
+
darker: `var(--rui-${e}-${i}-darker)`,
|
|
61
|
+
DEFAULT: `var(--rui-${e}-${i}-main)`,
|
|
62
|
+
lighter: `var(--rui-${e}-${i}-lighter)`
|
|
63
|
+
}
|
|
64
|
+
])
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
const w = {
|
|
68
|
+
dark: k("dark"),
|
|
69
|
+
light: k("light")
|
|
70
|
+
}, p = b({ ...w });
|
|
71
|
+
function ye() {
|
|
72
|
+
const { state: e, store: i, system: l } = ae(), n = R(
|
|
73
|
+
() => t(i) === o.auto
|
|
74
|
+
), r = R(
|
|
75
|
+
() => t(n) && t(l) === o.light || t(e) === o.light
|
|
76
|
+
), a = R(
|
|
77
|
+
() => t(n) && t(l) === o.dark || t(e) === o.dark
|
|
78
|
+
), d = R(() => t(r) ? t(p).light : t(p).dark), s = (m) => {
|
|
79
|
+
L(i, m || o.auto);
|
|
80
|
+
}, h = () => {
|
|
81
|
+
t(n) ? s(o.light) : t(r) ? s(o.dark) : t(a) && s(o.auto);
|
|
82
|
+
}, c = (m) => {
|
|
83
|
+
L(p, m);
|
|
84
|
+
};
|
|
85
|
+
return {
|
|
86
|
+
config: p,
|
|
87
|
+
init: (m) => {
|
|
88
|
+
s(m.mode ?? o.auto), c(m.config ?? { ...w }), typeof window < "u" && se(
|
|
89
|
+
[r, d],
|
|
90
|
+
([y, x]) => {
|
|
91
|
+
const E = Object.entries(x).map(([u, f]) => ({
|
|
92
|
+
[`--rui-${u}-darker`]: f.darker,
|
|
93
|
+
[`--rui-${u}-lighter`]: f.lighter,
|
|
94
|
+
[`--rui-${u}-main`]: f.DEFAULT
|
|
95
|
+
})).reduce((u, f) => ({ ...u, ...f }), {}), C = y ? o.light : o.dark, F = {
|
|
96
|
+
"--rui-text-disabled": `var(--rui-${C}-text-disabled)`,
|
|
97
|
+
"--rui-text-primary": `var(--rui-${C}-text-primary)`,
|
|
98
|
+
"--rui-text-secondary": `var(--rui-${C}-text-secondary)`
|
|
99
|
+
};
|
|
100
|
+
Object.entries({
|
|
101
|
+
...E,
|
|
102
|
+
...F
|
|
103
|
+
}).forEach(([u, f]) => {
|
|
104
|
+
document.documentElement.style.setProperty(u, f);
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
{ immediate: !0 }
|
|
108
|
+
);
|
|
109
|
+
},
|
|
110
|
+
isAutoControlled: n,
|
|
111
|
+
isDark: a,
|
|
112
|
+
isLight: r,
|
|
113
|
+
setThemeConfig: c,
|
|
114
|
+
state: e,
|
|
115
|
+
store: i,
|
|
116
|
+
switchThemeScheme: s,
|
|
117
|
+
theme: d,
|
|
118
|
+
toggleThemeMode: h
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
const ce = /\d/, ue = ["-", "_", "/", "."];
|
|
122
|
+
function fe(e = "") {
|
|
123
|
+
if (!ce.test(e))
|
|
124
|
+
return e !== e.toLowerCase();
|
|
125
|
+
}
|
|
126
|
+
function A(e, i) {
|
|
127
|
+
const l = i ?? ue, n = [];
|
|
128
|
+
if (!e || typeof e != "string")
|
|
129
|
+
return n;
|
|
130
|
+
let r = "", a, d;
|
|
131
|
+
for (const s of e) {
|
|
132
|
+
const h = l.includes(s);
|
|
133
|
+
if (h === !0) {
|
|
134
|
+
n.push(r), r = "", a = void 0;
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
const c = fe(s);
|
|
138
|
+
if (d === !1) {
|
|
139
|
+
if (a === !1 && c === !0) {
|
|
140
|
+
n.push(r), r = s, a = c;
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
if (a === !0 && c === !1 && r.length > 1) {
|
|
144
|
+
const g = r.at(-1);
|
|
145
|
+
n.push(r.slice(0, Math.max(0, r.length - 1))), r = g + s, a = c;
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
r += s, a = c, d = h;
|
|
150
|
+
}
|
|
151
|
+
return n.push(r), n;
|
|
152
|
+
}
|
|
153
|
+
function me(e) {
|
|
154
|
+
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
155
|
+
}
|
|
156
|
+
function de(e) {
|
|
157
|
+
return e ? e[0].toLowerCase() + e.slice(1) : "";
|
|
158
|
+
}
|
|
159
|
+
function he(e, i) {
|
|
160
|
+
return e ? (Array.isArray(e) ? e : A(e)).map((l) => me(i != null && i.normalize ? l.toLowerCase() : l)).join("") : "";
|
|
161
|
+
}
|
|
162
|
+
function xe(e, i) {
|
|
163
|
+
return de(he(e || "", i));
|
|
164
|
+
}
|
|
165
|
+
function Re(e, i) {
|
|
166
|
+
return e ? (Array.isArray(e) ? e : A(e)).map((l) => l.toLowerCase()).join(i ?? "-") : "";
|
|
167
|
+
}
|
|
168
|
+
function Ee(e) {
|
|
169
|
+
return Re(e || "", "_");
|
|
170
|
+
}
|
|
171
|
+
export {
|
|
172
|
+
o as T,
|
|
173
|
+
ye as a,
|
|
174
|
+
xe as c,
|
|
175
|
+
Ee as s,
|
|
176
|
+
Ae as u
|
|
177
|
+
};
|