@midnight-owl/ui 1.0.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/LICENSE +21 -0
- package/README.md +68 -0
- package/dist/components/buttons/Button.vue.d.ts +44 -0
- package/dist/components/buttons/ButtonGroup.vue.d.ts +19 -0
- package/dist/components/data-display/Badge.vue.d.ts +34 -0
- package/dist/components/data-display/BubbleChat.vue.d.ts +52 -0
- package/dist/components/data-display/Image.vue.d.ts +56 -0
- package/dist/components/data-display/Pagination.vue.d.ts +60 -0
- package/dist/components/data-display/ProgressBar.vue.d.ts +34 -0
- package/dist/components/data-display/SkeletonLoader.vue.d.ts +14 -0
- package/dist/components/data-display/Table.vue.d.ts +182 -0
- package/dist/components/data-display/calendar/Calendar.vue.d.ts +116 -0
- package/dist/components/data-display/calendar/CalendarAgendaView.vue.d.ts +31 -0
- package/dist/components/data-display/calendar/CalendarEventDetails.vue.d.ts +23 -0
- package/dist/components/data-display/calendar/CalendarEventPill.vue.d.ts +39 -0
- package/dist/components/data-display/calendar/CalendarEventPopover.vue.d.ts +68 -0
- package/dist/components/data-display/calendar/CalendarMonthView.vue.d.ts +54 -0
- package/dist/components/data-display/calendar/CalendarTimeGridView.vue.d.ts +47 -0
- package/dist/components/data-display/calendar/CalendarYearView.vue.d.ts +17 -0
- package/dist/components/data-display/calendar/layout.d.ts +39 -0
- package/dist/components/data-display/calendar/providers/google.d.ts +16 -0
- package/dist/components/data-display/calendar/providers/ics.d.ts +23 -0
- package/dist/components/data-display/calendar/recurrence.d.ts +12 -0
- package/dist/components/data-display/calendar/types.d.ts +154 -0
- package/dist/components/data-display/calendar/tz.d.ts +17 -0
- package/dist/components/data-display/calendar/useCalendar.d.ts +75 -0
- package/dist/components/form-element/Autocomplete.vue.d.ts +78 -0
- package/dist/components/form-element/Checkbox.vue.d.ts +47 -0
- package/dist/components/form-element/DatePicker.vue.d.ts +75 -0
- package/dist/components/form-element/FileUpload.vue.d.ts +125 -0
- package/dist/components/form-element/InputGroup.vue.d.ts +26 -0
- package/dist/components/form-element/InputMask.vue.d.ts +43 -0
- package/dist/components/form-element/InputNumber.vue.d.ts +50 -0
- package/dist/components/form-element/InputOtp.vue.d.ts +44 -0
- package/dist/components/form-element/InputPassword.vue.d.ts +44 -0
- package/dist/components/form-element/InputText.vue.d.ts +42 -0
- package/dist/components/form-element/Radio.vue.d.ts +42 -0
- package/dist/components/form-element/TextEditor.vue.d.ts +44 -0
- package/dist/components/form-element/Textarea.vue.d.ts +46 -0
- package/dist/components/form-element/Toggle.vue.d.ts +25 -0
- package/dist/components/form-element/select/Select.vue.d.ts +168 -0
- package/dist/components/form-element/select/SelectOption.vue.d.ts +23 -0
- package/dist/components/form-element/text-editor-toolbar.d.ts +5 -0
- package/dist/components/panel/Breadcrumb.vue.d.ts +50 -0
- package/dist/components/panel/Card.vue.d.ts +28 -0
- package/dist/components/panel/Divider.vue.d.ts +28 -0
- package/dist/components/panel/DropDown.vue.d.ts +26 -0
- package/dist/components/panel/Modal.vue.d.ts +80 -0
- package/dist/components/panel/Popover.vue.d.ts +68 -0
- package/dist/components/panel/ScrollPanel.vue.d.ts +26 -0
- package/dist/components/panel/Stepper.vue.d.ts +179 -0
- package/dist/components/panel/Tabs.vue.d.ts +31 -0
- package/dist/components/panel/Toolbar.vue.d.ts +30 -0
- package/dist/components/panel/accordion/Accordion.vue.d.ts +31 -0
- package/dist/components/panel/accordion/AccordionPanel.vue.d.ts +35 -0
- package/dist/components/panel/toast/ToastErrorNode.vue.d.ts +10 -0
- package/dist/components/panel/toast/ToastItem.vue.d.ts +14 -0
- package/dist/components/panel/toast/ToastProvider.vue.d.ts +3 -0
- package/dist/components/panel/toast/errorTree.d.ts +12 -0
- package/dist/components/panel/toast/useToast.d.ts +164 -0
- package/dist/index.d.ts +60 -0
- package/dist/plugins/init-icons.d.ts +1 -0
- package/dist/plugins/init-theme.d.ts +4 -0
- package/dist/theme/presets.d.ts +75 -0
- package/dist/theme/remote.d.ts +2 -0
- package/dist/ui.css +3 -0
- package/dist/ui.es.js +29640 -0
- package/dist/ui.umd.js +234 -0
- package/package.json +82 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
id?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
value: any;
|
|
5
|
+
label?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
error?: string | boolean | string[];
|
|
9
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
11
|
+
}
|
|
12
|
+
type __VLS_Props = Props;
|
|
13
|
+
type __VLS_ModelProps = {
|
|
14
|
+
modelValue?: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
17
|
+
declare var __VLS_11: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
default?: (props: typeof __VLS_11) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: any) => any;
|
|
23
|
+
} & {
|
|
24
|
+
change: (value: any, event: Event) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
onChange?: ((value: any, event: Event) => any) | undefined;
|
|
27
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
variant: "primary" | "secondary" | "success" | "warning" | "danger" | "info";
|
|
30
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
required: boolean;
|
|
33
|
+
error: string | boolean | string[];
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
36
|
+
declare const _default: typeof __VLS_export;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type ToolbarItem } from './text-editor-toolbar';
|
|
2
|
+
interface Props {
|
|
3
|
+
id?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
labelPosition?: 'top' | 'left';
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
error?: string | boolean | string[];
|
|
10
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
toolbar?: ToolbarItem[];
|
|
12
|
+
minHeight?: string;
|
|
13
|
+
maxLength?: number;
|
|
14
|
+
showCount?: boolean;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Props = Props;
|
|
17
|
+
type __VLS_ModelProps = {
|
|
18
|
+
modelValue?: string;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
21
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: string) => any;
|
|
23
|
+
} & {
|
|
24
|
+
input: (value: string) => any;
|
|
25
|
+
focus: () => any;
|
|
26
|
+
blur: () => any;
|
|
27
|
+
change: (value: string) => any;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
onInput?: ((value: string) => any) | undefined;
|
|
30
|
+
onFocus?: (() => any) | undefined;
|
|
31
|
+
onBlur?: (() => any) | undefined;
|
|
32
|
+
onChange?: ((value: string) => any) | undefined;
|
|
33
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
labelPosition: "top" | "left";
|
|
38
|
+
required: boolean;
|
|
39
|
+
error: string | boolean | string[];
|
|
40
|
+
showCount: boolean;
|
|
41
|
+
toolbar: ToolbarItem[];
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const _default: typeof __VLS_export;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
id?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
labelPosition?: 'top' | 'left';
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
error?: string | boolean | string[];
|
|
9
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
rows?: number;
|
|
11
|
+
autoResize?: boolean;
|
|
12
|
+
resize?: 'none' | 'vertical';
|
|
13
|
+
maxLength?: number;
|
|
14
|
+
showCount?: boolean;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Props = Props;
|
|
17
|
+
type __VLS_ModelProps = {
|
|
18
|
+
modelValue?: string;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
21
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: string) => any;
|
|
23
|
+
} & {
|
|
24
|
+
input: (value: string) => any;
|
|
25
|
+
focus: (event: FocusEvent) => any;
|
|
26
|
+
blur: (event: FocusEvent) => any;
|
|
27
|
+
change: (value: string) => any;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
onInput?: ((value: string) => any) | undefined;
|
|
30
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
31
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
32
|
+
onChange?: ((value: string) => any) | undefined;
|
|
33
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
labelPosition: "top" | "left";
|
|
38
|
+
required: boolean;
|
|
39
|
+
error: string | boolean | string[];
|
|
40
|
+
resize: "none" | "vertical";
|
|
41
|
+
rows: number;
|
|
42
|
+
autoResize: boolean;
|
|
43
|
+
showCount: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const _default: typeof __VLS_export;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
severity?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
iconOn?: string;
|
|
6
|
+
iconOff?: string;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = Props;
|
|
9
|
+
type __VLS_ModelProps = {
|
|
10
|
+
modelValue?: boolean;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: boolean) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
severity: "primary" | "secondary" | "success" | "warning" | "danger" | "info";
|
|
19
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
iconOn: string;
|
|
22
|
+
iconOff: string;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import type { Ref, ShallowRef } from 'vue';
|
|
2
|
+
export interface TreeNode {
|
|
3
|
+
value: any;
|
|
4
|
+
label: string;
|
|
5
|
+
searchLabel: string;
|
|
6
|
+
original: any;
|
|
7
|
+
parentValue: any | null;
|
|
8
|
+
childrenValues: any[];
|
|
9
|
+
descendantValues: any[];
|
|
10
|
+
leafDescendantValues: any[];
|
|
11
|
+
pathLabels: string[];
|
|
12
|
+
isDisabled: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface SizeConfig {
|
|
15
|
+
wrapHeight: string;
|
|
16
|
+
text: string;
|
|
17
|
+
badge: string;
|
|
18
|
+
rowMinHeight: string;
|
|
19
|
+
rowGap: string;
|
|
20
|
+
contentPadding: string;
|
|
21
|
+
indentStep: number;
|
|
22
|
+
chevronSize: number;
|
|
23
|
+
chevronCenter: number;
|
|
24
|
+
halfRow: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
}
|
|
27
|
+
export interface SelectContext {
|
|
28
|
+
nodeMap: ShallowRef<Map<any, TreeNode>>;
|
|
29
|
+
isMultiple: Ref<boolean>;
|
|
30
|
+
parentSelectable: Ref<boolean>;
|
|
31
|
+
searchQuery: Ref<string>;
|
|
32
|
+
selectedValues: Ref<Set<any>>;
|
|
33
|
+
expandedNodes: Ref<Set<any>>;
|
|
34
|
+
visibleNodeValues: ShallowRef<Set<any>>;
|
|
35
|
+
treeLineStyle: Ref<'solid' | 'dotted' | 'dashed' | 'none'>;
|
|
36
|
+
selectionVariant: Ref<'highlight' | 'checkbox'>;
|
|
37
|
+
highlightVariant: Ref<string>;
|
|
38
|
+
activeValue: Ref<any | null>;
|
|
39
|
+
sizeConfig: Ref<SizeConfig>;
|
|
40
|
+
size: Ref<'xs' | 'sm' | 'md' | 'lg' | 'xl'>;
|
|
41
|
+
hasHierarchy: Ref<boolean>;
|
|
42
|
+
toggleSelection: (value: any) => void;
|
|
43
|
+
toggleExpand: (value: any) => void;
|
|
44
|
+
}
|
|
45
|
+
interface Props {
|
|
46
|
+
id?: string;
|
|
47
|
+
label?: string;
|
|
48
|
+
labelPosition?: 'top' | 'left';
|
|
49
|
+
required?: boolean;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
loading?: boolean;
|
|
52
|
+
error?: string | boolean | string[];
|
|
53
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
54
|
+
rounded?: boolean;
|
|
55
|
+
autofocus?: boolean;
|
|
56
|
+
options: any[];
|
|
57
|
+
optionLabel?: string | ((opt: any) => string);
|
|
58
|
+
optionValue?: string | ((opt: any) => any);
|
|
59
|
+
optionChildren?: string;
|
|
60
|
+
optionDisabled?: string | ((opt: any) => boolean);
|
|
61
|
+
inline?: boolean;
|
|
62
|
+
multiple?: boolean;
|
|
63
|
+
canDeselect?: boolean;
|
|
64
|
+
closeOnSelect?: boolean;
|
|
65
|
+
displayMode?: 'text' | 'chips';
|
|
66
|
+
selectionVariant?: 'highlight' | 'checkbox';
|
|
67
|
+
searchable?: boolean;
|
|
68
|
+
parentSelectable?: boolean;
|
|
69
|
+
showClear?: boolean;
|
|
70
|
+
showExpandCollapse?: boolean;
|
|
71
|
+
treeLineStyle?: 'solid' | 'dotted' | 'dashed' | 'none';
|
|
72
|
+
highlightVariant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
73
|
+
placeholder?: string;
|
|
74
|
+
maxHeight?: string | number;
|
|
75
|
+
maxVisibleTextItems?: number;
|
|
76
|
+
}
|
|
77
|
+
type __VLS_Props = Props;
|
|
78
|
+
type __VLS_ModelProps = {
|
|
79
|
+
modelValue?: any | any[];
|
|
80
|
+
'search'?: string;
|
|
81
|
+
};
|
|
82
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
83
|
+
declare var __VLS_27: {
|
|
84
|
+
option: any;
|
|
85
|
+
selected: boolean;
|
|
86
|
+
indeterminate: boolean;
|
|
87
|
+
}, __VLS_29: {}, __VLS_36: {}, __VLS_52: {}, __VLS_87: {
|
|
88
|
+
option: any;
|
|
89
|
+
remove: () => void;
|
|
90
|
+
}, __VLS_159: {
|
|
91
|
+
option: any;
|
|
92
|
+
selected: boolean;
|
|
93
|
+
indeterminate: boolean;
|
|
94
|
+
}, __VLS_161: {}, __VLS_168: {};
|
|
95
|
+
type __VLS_Slots = {} & {
|
|
96
|
+
option?: (props: typeof __VLS_27) => any;
|
|
97
|
+
} & {
|
|
98
|
+
empty?: (props: typeof __VLS_29) => any;
|
|
99
|
+
} & {
|
|
100
|
+
action?: (props: typeof __VLS_36) => any;
|
|
101
|
+
} & {
|
|
102
|
+
trigger?: (props: typeof __VLS_52) => any;
|
|
103
|
+
} & {
|
|
104
|
+
chip?: (props: typeof __VLS_87) => any;
|
|
105
|
+
} & {
|
|
106
|
+
option?: (props: typeof __VLS_159) => any;
|
|
107
|
+
} & {
|
|
108
|
+
empty?: (props: typeof __VLS_161) => any;
|
|
109
|
+
} & {
|
|
110
|
+
action?: (props: typeof __VLS_168) => any;
|
|
111
|
+
};
|
|
112
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
113
|
+
"update:modelValue": (value: any) => any;
|
|
114
|
+
"update:search": (value: string) => any;
|
|
115
|
+
} & {
|
|
116
|
+
search: (value: string) => any;
|
|
117
|
+
focus: (event: FocusEvent) => any;
|
|
118
|
+
blur: (event: FocusEvent) => any;
|
|
119
|
+
change: (value: any) => any;
|
|
120
|
+
close: () => any;
|
|
121
|
+
"create-new": (value: string) => any;
|
|
122
|
+
open: () => any;
|
|
123
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
124
|
+
onSearch?: ((value: string) => any) | undefined;
|
|
125
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
126
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
127
|
+
onChange?: ((value: any) => any) | undefined;
|
|
128
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
129
|
+
onClose?: (() => any) | undefined;
|
|
130
|
+
"onCreate-new"?: ((value: string) => any) | undefined;
|
|
131
|
+
onOpen?: (() => any) | undefined;
|
|
132
|
+
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
133
|
+
}>, {
|
|
134
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
135
|
+
rounded: boolean;
|
|
136
|
+
disabled: boolean;
|
|
137
|
+
loading: boolean;
|
|
138
|
+
inline: boolean;
|
|
139
|
+
labelPosition: "top" | "left";
|
|
140
|
+
required: boolean;
|
|
141
|
+
placeholder: string;
|
|
142
|
+
error: string | boolean | string[];
|
|
143
|
+
optionLabel: string | ((opt: any) => string);
|
|
144
|
+
optionValue: string | ((opt: any) => any);
|
|
145
|
+
maxHeight: string | number;
|
|
146
|
+
autofocus: boolean;
|
|
147
|
+
optionChildren: string;
|
|
148
|
+
optionDisabled: string | ((opt: any) => boolean);
|
|
149
|
+
multiple: boolean;
|
|
150
|
+
canDeselect: boolean;
|
|
151
|
+
displayMode: "text" | "chips";
|
|
152
|
+
selectionVariant: "highlight" | "checkbox";
|
|
153
|
+
searchable: boolean;
|
|
154
|
+
parentSelectable: boolean;
|
|
155
|
+
showClear: boolean;
|
|
156
|
+
showExpandCollapse: boolean;
|
|
157
|
+
treeLineStyle: "solid" | "dotted" | "dashed" | "none";
|
|
158
|
+
highlightVariant: "primary" | "secondary" | "success" | "warning" | "danger" | "info";
|
|
159
|
+
maxVisibleTextItems: number;
|
|
160
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
161
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
162
|
+
declare const _default: typeof __VLS_export;
|
|
163
|
+
export default _default;
|
|
164
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
165
|
+
new (): {
|
|
166
|
+
$slots: S;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TreeNode } from './Select.vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
node: TreeNode;
|
|
4
|
+
level?: number;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
option(props: {
|
|
8
|
+
option: any;
|
|
9
|
+
selected: boolean;
|
|
10
|
+
indeterminate: boolean;
|
|
11
|
+
}): any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
+
level: number;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type ToolbarItemKey = 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'bold' | 'italic' | 'underline' | 'strike' | 'highlight' | 'code' | 'bulletList' | 'orderedList' | 'blockquote' | 'codeBlock' | 'link' | 'horizontalRule' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'clearFormat' | 'undo' | 'redo';
|
|
2
|
+
/** `'|'` renders a visual separator between toolbar groups. */
|
|
3
|
+
export type ToolbarItem = ToolbarItemKey | '|';
|
|
4
|
+
/** The common, "batteries-included" toolbar most rich text editors ship with. */
|
|
5
|
+
export declare const DEFAULT_TEXT_EDITOR_TOOLBAR: ToolbarItem[];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
label: string;
|
|
3
|
+
to?: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
children?: {
|
|
6
|
+
label: string;
|
|
7
|
+
to?: string;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
interface Props {
|
|
11
|
+
items: BreadcrumbItem[];
|
|
12
|
+
icon?: string | false;
|
|
13
|
+
separatorIcon?: string;
|
|
14
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
15
|
+
variant?: 'default' | 'minimal';
|
|
16
|
+
align?: 'left' | 'center' | 'right' | 'full';
|
|
17
|
+
severity?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
18
|
+
showRefresh?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare var __VLS_28: {
|
|
21
|
+
item: BreadcrumbItem;
|
|
22
|
+
index: number;
|
|
23
|
+
isLast: boolean;
|
|
24
|
+
}, __VLS_69: {};
|
|
25
|
+
type __VLS_Slots = {} & {
|
|
26
|
+
item?: (props: typeof __VLS_28) => any;
|
|
27
|
+
} & {
|
|
28
|
+
actions?: (props: typeof __VLS_69) => any;
|
|
29
|
+
};
|
|
30
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
31
|
+
refresh: () => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
33
|
+
onRefresh?: (() => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
icon: string | false;
|
|
36
|
+
variant: "default" | "minimal";
|
|
37
|
+
severity: "primary" | "secondary" | "success" | "warning" | "danger" | "info";
|
|
38
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
39
|
+
align: "left" | "center" | "right" | "full";
|
|
40
|
+
separatorIcon: string;
|
|
41
|
+
showRefresh: boolean;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
|
+
declare const _default: typeof __VLS_export;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
variant?: 'solid' | 'outline' | 'glass';
|
|
3
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
padded?: boolean;
|
|
5
|
+
overflow?: 'hidden' | 'visible';
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
header?: (props: typeof __VLS_1) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: typeof __VLS_3) => any;
|
|
12
|
+
} & {
|
|
13
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
16
|
+
variant: "solid" | "outline" | "glass";
|
|
17
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
18
|
+
padded: boolean;
|
|
19
|
+
overflow: "hidden" | "visible";
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
layout?: 'horizontal' | 'vertical';
|
|
3
|
+
align?: 'left' | 'center' | 'right' | 'top' | 'bottom';
|
|
4
|
+
variant?: 'solid' | 'dashed' | 'dotted';
|
|
5
|
+
severity?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
6
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
}
|
|
8
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_3) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
|
+
variant: "solid" | "dashed" | "dotted";
|
|
16
|
+
severity: "primary" | "secondary" | "success" | "warning" | "danger" | "info";
|
|
17
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
18
|
+
layout: "horizontal" | "vertical";
|
|
19
|
+
align: "left" | "center" | "right" | "top" | "bottom";
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
align?: 'left' | 'right';
|
|
3
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
width?: string;
|
|
5
|
+
}
|
|
6
|
+
declare var __VLS_1: {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
}, __VLS_9: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_9) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
16
|
+
width: string;
|
|
17
|
+
align: "left" | "right";
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
title?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
size?: 'auto' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
5
|
+
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
6
|
+
scrollBehavior?: 'inside' | 'outside';
|
|
7
|
+
dismissableMask?: boolean;
|
|
8
|
+
closeOnEscape?: boolean;
|
|
9
|
+
showCloseIcon?: boolean;
|
|
10
|
+
blockScroll?: boolean;
|
|
11
|
+
hideBackdrop?: boolean;
|
|
12
|
+
maximizable?: boolean;
|
|
13
|
+
minimizable?: boolean;
|
|
14
|
+
zIndex?: number | string;
|
|
15
|
+
contentClass?: string | string[] | object;
|
|
16
|
+
overlayClass?: string | string[] | object;
|
|
17
|
+
}
|
|
18
|
+
type __VLS_Props = Props;
|
|
19
|
+
type __VLS_ModelProps = {
|
|
20
|
+
modelValue?: boolean;
|
|
21
|
+
'isMaximized'?: boolean;
|
|
22
|
+
'isMinimized'?: boolean;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
25
|
+
declare var __VLS_19: {
|
|
26
|
+
isMinimized: boolean;
|
|
27
|
+
}, __VLS_21: {
|
|
28
|
+
isMinimized: boolean;
|
|
29
|
+
}, __VLS_44: {}, __VLS_46: {
|
|
30
|
+
isMinimized: boolean;
|
|
31
|
+
};
|
|
32
|
+
type __VLS_Slots = {} & {
|
|
33
|
+
header?: (props: typeof __VLS_19) => any;
|
|
34
|
+
} & {
|
|
35
|
+
title?: (props: typeof __VLS_21) => any;
|
|
36
|
+
} & {
|
|
37
|
+
default?: (props: typeof __VLS_44) => any;
|
|
38
|
+
} & {
|
|
39
|
+
footer?: (props: typeof __VLS_46) => any;
|
|
40
|
+
};
|
|
41
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
|
+
"update:modelValue": (value: boolean) => any;
|
|
43
|
+
"update:isMaximized": (value: boolean) => any;
|
|
44
|
+
"update:isMinimized": (value: boolean) => any;
|
|
45
|
+
} & {
|
|
46
|
+
close: () => any;
|
|
47
|
+
open: () => any;
|
|
48
|
+
maximize: (value: boolean) => any;
|
|
49
|
+
minimize: (value: boolean) => any;
|
|
50
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
51
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
52
|
+
onClose?: (() => any) | undefined;
|
|
53
|
+
onOpen?: (() => any) | undefined;
|
|
54
|
+
onMaximize?: ((value: boolean) => any) | undefined;
|
|
55
|
+
onMinimize?: ((value: boolean) => any) | undefined;
|
|
56
|
+
"onUpdate:isMaximized"?: ((value: boolean) => any) | undefined;
|
|
57
|
+
"onUpdate:isMinimized"?: ((value: boolean) => any) | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
size: "auto" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
60
|
+
title: string;
|
|
61
|
+
position: "center" | "top" | "bottom" | "left" | "right" | "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
62
|
+
description: string;
|
|
63
|
+
scrollBehavior: "inside" | "outside";
|
|
64
|
+
dismissableMask: boolean;
|
|
65
|
+
closeOnEscape: boolean;
|
|
66
|
+
showCloseIcon: boolean;
|
|
67
|
+
blockScroll: boolean;
|
|
68
|
+
hideBackdrop: boolean;
|
|
69
|
+
maximizable: boolean;
|
|
70
|
+
minimizable: boolean;
|
|
71
|
+
zIndex: number | string;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
73
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
74
|
+
declare const _default: typeof __VLS_export;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { Boundary, Placement, VirtualElement } from '@floating-ui/vue';
|
|
2
|
+
export type PopoverVirtualReference = VirtualElement;
|
|
3
|
+
interface Props {
|
|
4
|
+
placement?: Placement;
|
|
5
|
+
trigger?: 'click' | 'hover';
|
|
6
|
+
offset?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
+
widthClass?: string;
|
|
10
|
+
showArrow?: boolean;
|
|
11
|
+
matchWidth?: boolean;
|
|
12
|
+
triggerClass?: string;
|
|
13
|
+
/** Anchor to this virtual element instead of the trigger slot when set. */
|
|
14
|
+
reference?: PopoverVirtualReference | null;
|
|
15
|
+
/**
|
|
16
|
+
* Pick the side (top/right/bottom/left) with the most free space around the
|
|
17
|
+
* anchor instead of committing to `placement` + flip. Mutually exclusive with
|
|
18
|
+
* flip, so it replaces it when enabled — handy when the anchor's nearest free
|
|
19
|
+
* edge varies per instance (e.g. a calendar event pill anywhere in the grid).
|
|
20
|
+
*/
|
|
21
|
+
autoPlacement?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Collision boundary for flip/autoPlacement/shift. Defaults to floating-ui's
|
|
24
|
+
* own default ('clippingAncestors') when omitted — passing it explicitly
|
|
25
|
+
* just pins that default rather than changing behavior.
|
|
26
|
+
*/
|
|
27
|
+
boundary?: Boundary;
|
|
28
|
+
}
|
|
29
|
+
type __VLS_Props = Props;
|
|
30
|
+
type __VLS_ModelProps = {
|
|
31
|
+
modelValue?: boolean;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
34
|
+
declare var __VLS_1: {
|
|
35
|
+
isOpen: boolean;
|
|
36
|
+
}, __VLS_15: {
|
|
37
|
+
close: () => void;
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Slots = {} & {
|
|
40
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
41
|
+
} & {
|
|
42
|
+
default?: (props: typeof __VLS_15) => any;
|
|
43
|
+
};
|
|
44
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
"update:modelValue": (value: boolean) => any;
|
|
46
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
47
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
placement: Placement;
|
|
52
|
+
trigger: "click" | "hover";
|
|
53
|
+
offset: number;
|
|
54
|
+
widthClass: string;
|
|
55
|
+
showArrow: boolean;
|
|
56
|
+
matchWidth: boolean;
|
|
57
|
+
triggerClass: string;
|
|
58
|
+
reference: PopoverVirtualReference | null;
|
|
59
|
+
autoPlacement: boolean;
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
61
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
62
|
+
declare const _default: typeof __VLS_export;
|
|
63
|
+
export default _default;
|
|
64
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
height?: string | number;
|
|
3
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
4
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
severity?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
6
|
+
autoHide?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare var __VLS_1: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
13
|
+
severity: "primary" | "secondary" | "success" | "warning" | "danger" | "info";
|
|
14
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
15
|
+
height: string | number;
|
|
16
|
+
orientation: "vertical" | "horizontal" | "both";
|
|
17
|
+
autoHide: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|