@teammodlr/ui-kit 2.3.23 → 3.0.0-beta.10
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/lib/components/avatar/Avatar.vue.d.ts +2 -2
- package/lib/components/badge/style/Badge.css.d.ts +2 -2
- package/lib/components/button/Button.vue.d.ts +7 -4
- package/lib/components/button/style/Button.css.d.ts +3 -3
- package/lib/components/cardcontextmenu/CardContextMenu.vue.d.ts +5 -8
- package/lib/components/cardcontextmenu/CardContextMenuItem.vue.d.ts +11 -2
- package/lib/components/cardcontextmenu/CardContextMenuTriggerProvider.vue.d.ts +2 -0
- package/lib/components/cardcontextmenu/style/Dropdown.css.d.ts +2 -1
- package/lib/components/cardcontextmenu/symbol.d.ts +1 -0
- package/lib/components/checkbox/Checkbox.vue.d.ts +15 -4
- package/lib/components/collapse/CollapseItem.vue.d.ts +3 -2
- package/lib/components/colorpicker/ColorPicker.vue.d.ts +8 -9
- package/lib/components/confirm/Confirm.vue.d.ts +9 -0
- package/lib/components/confirm/props.d.ts +4 -0
- package/lib/components/dialog/Dialog.vue.d.ts +13 -5
- package/lib/components/dialogprovider/DialogProvider.vue.d.ts +1 -0
- package/lib/components/dialogprovider/types.d.ts +1 -0
- package/lib/components/dropdown/Dropdown.vue.d.ts +3 -1
- package/lib/components/dropdown/DropdownItem.vue.d.ts +11 -1
- package/lib/components/dropdown/DropdownSeperator.vue.d.ts +1 -0
- package/lib/components/dropdown/DropdownTriggerProvider.vue.d.ts +2 -0
- package/lib/components/dropdown/style/Dropdown.css.d.ts +2 -1
- package/lib/components/dropdown/symbol.d.ts +2 -0
- package/lib/components/image/Image.vue.d.ts +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/messageprovider/Message.vue.d.ts +1 -1
- package/lib/components/messageprovider/MessageProvider.vue.d.ts +24 -24
- package/lib/components/messageprovider/style/Message.css.d.ts +1 -1
- package/lib/components/messageprovider/style/Toaster.css.d.ts +1 -0
- package/lib/components/messageprovider/types.d.ts +5 -0
- package/lib/components/modal/Modal.vue.d.ts +18 -6
- package/lib/components/popover/Popover.vue.d.ts +113 -0
- package/lib/components/popover/style/Popover.css.d.ts +4 -0
- package/lib/components/popover/style/index.d.ts +1 -0
- package/lib/components/radio/Radio.vue.d.ts +2 -0
- package/lib/components/radiobuttongroup/RadioButtonGroup.vue.d.ts +1 -0
- package/lib/components/select/Select.vue.d.ts +20 -11
- package/lib/components/switch/Switch.vue.d.ts +2 -0
- package/lib/components/tab/Tab.vue.d.ts +5 -2
- package/lib/components/tab/TabGroup.vue.d.ts +8 -3
- package/lib/components/textarea/Textarea.vue.d.ts +2 -1
- package/lib/components/tooltip/Tooltip.vue.d.ts +5 -20
- package/lib/components/tooltip/TooltipTrigger.vue.d.ts +1 -10
- package/lib/components/tree/Tree.vue.d.ts +3 -3
- package/lib/components/tree/TreeNode.vue.d.ts +26 -12
- package/lib/components/tree/types.d.ts +5 -5
- package/lib/index.cjs.js +5 -14
- package/lib/index.es.js +16907 -12199
- package/lib/style.css +1 -1
- package/package.json +12 -6
- package/src/components/avatar/Avatar.vue +32 -24
- package/src/components/button/Button.vue +24 -5
- package/src/components/cardcontextmenu/CardContextMenu.vue +68 -95
- package/src/components/cardcontextmenu/CardContextMenuItem.vue +40 -50
- package/src/components/cardcontextmenu/CardContextMenuSeperator.vue +9 -7
- package/src/components/cardcontextmenu/CardContextMenuTriggerProvider.vue +15 -0
- package/src/components/cardcontextmenu/style/Dropdown.css.ts +155 -2
- package/src/components/cardcontextmenu/symbol.ts +3 -0
- package/src/components/checkbox/Checkbox.vue +37 -12
- package/src/components/checkbox/style/Checkbox.css.ts +6 -6
- package/src/components/collapse/CollapseItem.vue +46 -21
- package/src/components/collapse/style/Collapse.css.ts +5 -1
- package/src/components/colorpicker/ColorPicker.vue +76 -45
- package/src/components/confirm/Confirm.vue +15 -8
- package/src/components/confirm/props.ts +4 -0
- package/src/components/dialog/Dialog.vue +183 -37
- package/src/components/dialog/style/Dialog.css.ts +15 -1
- package/src/components/dialogprovider/types.ts +1 -0
- package/src/components/dropdown/Dropdown.vue +46 -3
- package/src/components/dropdown/DropdownItem.vue +55 -25
- package/src/components/dropdown/DropdownSeperator.vue +19 -11
- package/src/components/dropdown/DropdownTriggerProvider.vue +15 -0
- package/src/components/dropdown/examples/context.vue +2 -2
- package/src/components/dropdown/style/Dropdown.css.ts +173 -4
- package/src/components/dropdown/symbol.ts +4 -0
- package/src/components/form/examples/basic.vue +19 -8
- package/src/components/index.ts +1 -0
- package/src/components/messageprovider/MessageProvider.vue +139 -90
- package/src/components/messageprovider/examples/basic.vue +3 -1
- package/src/components/messageprovider/examples/index.stories.ts +37 -1
- package/src/components/messageprovider/style/Toaster.css.ts +24 -0
- package/src/components/messageprovider/types.ts +10 -0
- package/src/components/modal/Modal.vue +142 -67
- package/src/components/modal/style/Modal.css.ts +26 -2
- package/src/components/popover/Popover.vue +155 -0
- package/src/components/popover/examples/arrow.vue +47 -0
- package/src/components/popover/examples/basic.vue +15 -0
- package/src/components/popover/examples/index.stories.ts +19 -0
- package/src/components/popover/examples/index.ts +4 -0
- package/src/components/popover/examples/placement.vue +59 -0
- package/src/components/popover/examples/variant.vue +30 -0
- package/src/components/popover/style/Popover.css.ts +203 -0
- package/src/components/popover/style/index.ts +1 -0
- package/src/components/radio/Radio.vue +31 -17
- package/src/components/radiobutton/RadioButton.vue +15 -2
- package/src/components/radiobuttongroup/RadioButtonGroup.vue +11 -4
- package/src/components/select/Select.vue +301 -153
- package/src/components/select/examples/basic.vue +1 -1
- package/src/components/slider/Slider.vue +1 -1
- package/src/components/switch/Switch.vue +30 -10
- package/src/components/switch/style/Switch.css.ts +3 -5
- package/src/components/tab/Tab.vue +29 -20
- package/src/components/tab/TabGroup.vue +29 -38
- package/src/components/textarea/Textarea.vue +8 -4
- package/src/components/tooltip/Tooltip.vue +52 -141
- package/src/components/tooltip/TooltipTrigger.vue +14 -17
- package/src/components/tooltip/style/Tooltip.css.ts +148 -29
- package/src/components/tree/Tree.vue +138 -100
- package/src/components/tree/TreeNode.vue +105 -98
- package/src/components/tree/types.ts +4 -4
- package/src/styles/transitions.css.ts +36 -16
|
@@ -45,14 +45,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
type: BooleanConstructor;
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
|
+
focusTrap: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
48
52
|
}, {
|
|
49
53
|
close: (e: MouseEvent | KeyboardEvent | undefined) => void;
|
|
50
|
-
onOutsideClick: (e: MouseEvent) => null | undefined;
|
|
51
54
|
open: () => void;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
onEscapeKeyDown: (e: KeyboardEvent) => void;
|
|
56
|
+
onPointerDownOutside: (e: Event) => void;
|
|
57
|
+
onInteractOutside: (e: Event) => void;
|
|
58
|
+
handleOpenChange: (value: boolean) => void;
|
|
59
|
+
handleOpenAutoFocus: (event: Event) => void;
|
|
55
60
|
target: import("vue").Ref<any>;
|
|
61
|
+
bodyRef: import("vue").Ref<HTMLElement | null>;
|
|
56
62
|
style: typeof style;
|
|
57
63
|
isOpen: import("vue").WritableComputedRef<boolean>;
|
|
58
64
|
computedWrapperStyles: import("vue").ComputedRef<{
|
|
@@ -85,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
91
|
hasSidebar: import("vue").ComputedRef<boolean>;
|
|
86
92
|
hasFooter: import("vue").ComputedRef<boolean>;
|
|
87
93
|
nextZIndex: () => number;
|
|
88
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "update:open")[], "open" | "update:open", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
94
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "update:open" | "close")[], "open" | "update:open" | "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
89
95
|
open: {
|
|
90
96
|
type: BooleanConstructor;
|
|
91
97
|
default: undefined;
|
|
@@ -130,19 +136,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
136
|
type: BooleanConstructor;
|
|
131
137
|
default: boolean;
|
|
132
138
|
};
|
|
139
|
+
focusTrap: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
133
143
|
}>> & {
|
|
134
144
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
145
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
135
146
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
136
147
|
}, {
|
|
137
148
|
width: string | number;
|
|
138
149
|
open: boolean;
|
|
139
150
|
title: string;
|
|
140
151
|
loading: boolean;
|
|
141
|
-
showClose: boolean;
|
|
142
152
|
onClose: (e: MouseEvent | KeyboardEvent | undefined) => void;
|
|
143
153
|
wrapClassName: string;
|
|
144
154
|
canClickOutside: boolean;
|
|
145
155
|
outsideClose: boolean;
|
|
156
|
+
showClose: boolean;
|
|
146
157
|
centered: boolean;
|
|
158
|
+
focusTrap: boolean;
|
|
147
159
|
}, {}>;
|
|
148
160
|
export default _default;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type Placement } from '../../composables/usePopper';
|
|
3
|
+
import * as style from './style';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
open: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
modal: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
placement: {
|
|
14
|
+
type: PropType<Placement>;
|
|
15
|
+
default: string;
|
|
16
|
+
validator: (value: Placement) => boolean;
|
|
17
|
+
};
|
|
18
|
+
transfer: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
sideOffset: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
collisionPadding: {
|
|
27
|
+
type: PropType<number | {
|
|
28
|
+
top?: number;
|
|
29
|
+
right?: number;
|
|
30
|
+
bottom?: number;
|
|
31
|
+
left?: number;
|
|
32
|
+
}>;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
arrow: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
variant: {
|
|
40
|
+
type: PropType<"light" | "dark">;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
zIndex: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
isOpen: import("vue").Ref<boolean>;
|
|
48
|
+
zIndex: import("vue").Ref<number>;
|
|
49
|
+
showArrow: import("vue").ComputedRef<boolean>;
|
|
50
|
+
contentClasses: import("vue").ComputedRef<unknown[]>;
|
|
51
|
+
resolvedSide: import("vue").ComputedRef<"bottom" | "left" | "right" | "top" | undefined>;
|
|
52
|
+
resolvedAlign: import("vue").ComputedRef<"center" | "end" | "start" | undefined>;
|
|
53
|
+
style: typeof style;
|
|
54
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:open"[], "update:open", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
open: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
modal: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
placement: {
|
|
64
|
+
type: PropType<Placement>;
|
|
65
|
+
default: string;
|
|
66
|
+
validator: (value: Placement) => boolean;
|
|
67
|
+
};
|
|
68
|
+
transfer: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
sideOffset: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
default: number;
|
|
75
|
+
};
|
|
76
|
+
collisionPadding: {
|
|
77
|
+
type: PropType<number | {
|
|
78
|
+
top?: number;
|
|
79
|
+
right?: number;
|
|
80
|
+
bottom?: number;
|
|
81
|
+
left?: number;
|
|
82
|
+
}>;
|
|
83
|
+
default: number;
|
|
84
|
+
};
|
|
85
|
+
arrow: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
variant: {
|
|
90
|
+
type: PropType<"light" | "dark">;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
zIndex: {
|
|
94
|
+
type: NumberConstructor;
|
|
95
|
+
};
|
|
96
|
+
}>> & {
|
|
97
|
+
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
open: boolean;
|
|
100
|
+
variant: "dark" | "light";
|
|
101
|
+
placement: Placement;
|
|
102
|
+
transfer: boolean;
|
|
103
|
+
arrow: boolean;
|
|
104
|
+
modal: boolean;
|
|
105
|
+
sideOffset: number;
|
|
106
|
+
collisionPadding: number | {
|
|
107
|
+
top?: number;
|
|
108
|
+
right?: number;
|
|
109
|
+
bottom?: number;
|
|
110
|
+
left?: number;
|
|
111
|
+
};
|
|
112
|
+
}, {}>;
|
|
113
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Popover.css';
|
|
@@ -51,6 +51,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
inputListeners: {};
|
|
52
52
|
focus: () => void | undefined;
|
|
53
53
|
blur: () => void | undefined;
|
|
54
|
+
onFocus: (event: FocusEvent) => void;
|
|
55
|
+
onBlur: (event: FocusEvent) => void;
|
|
54
56
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
57
|
label: {
|
|
56
58
|
type: StringConstructor;
|
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
computedClasses: import("vue").ComputedRef<(string | {
|
|
22
22
|
[x: string]: boolean;
|
|
23
23
|
})[]>;
|
|
24
|
+
selectedValue: import("vue").WritableComputedRef<string | number>;
|
|
24
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
26
|
modelValue: {
|
|
26
27
|
type: (NumberConstructor | StringConstructor)[];
|
|
@@ -69,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
69
|
type: NumberConstructor;
|
|
70
70
|
default: number;
|
|
71
71
|
};
|
|
72
|
+
portal: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
72
76
|
zIndex: {
|
|
73
77
|
type: NumberConstructor;
|
|
74
78
|
};
|
|
@@ -88,12 +92,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
92
|
};
|
|
89
93
|
}, {
|
|
90
94
|
container: import("vue").Ref<HTMLElement | null>;
|
|
91
|
-
optionsRef: import("vue").Ref<HTMLElement[]
|
|
92
|
-
searchRef: import("vue").Ref<
|
|
95
|
+
optionsRef: import("vue").Ref<HTMLElement[]>;
|
|
96
|
+
searchRef: import("vue").Ref<HTMLInputElement | undefined>;
|
|
93
97
|
selectRef: import("vue").Ref<HTMLElement | undefined>;
|
|
94
|
-
popper: import("vue").Ref<HTMLElement |
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
popper: import("vue").Ref<HTMLElement | undefined>;
|
|
99
|
+
handleTriggerFocus: () => void;
|
|
100
|
+
handleTriggerBlur: () => void;
|
|
101
|
+
handleKeyDown: (e: Event) => void;
|
|
102
|
+
handleOpenChange: (value: boolean) => void;
|
|
97
103
|
id: string;
|
|
98
104
|
isOpen: import("vue").ComputedRef<boolean>;
|
|
99
105
|
open: import("vue").Ref<boolean>;
|
|
@@ -121,21 +127,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
121
127
|
'm-select--multiple': boolean;
|
|
122
128
|
'm-select--error': any;
|
|
123
129
|
})[]>;
|
|
124
|
-
computedWrapperClasses: import("vue").ComputedRef<
|
|
125
|
-
[x: string]: boolean;
|
|
126
|
-
})[]>;
|
|
130
|
+
computedWrapperClasses: import("vue").ComputedRef<string[]>;
|
|
127
131
|
computedConsistentWidth: import("vue").ComputedRef<{
|
|
128
132
|
zIndex: number;
|
|
129
133
|
}>;
|
|
130
134
|
getSelectedLabel: (value: string | number | []) => any;
|
|
131
|
-
openSelect: () => void;
|
|
135
|
+
openSelect: (forceOpen?: boolean) => void;
|
|
132
136
|
removeSelected: (event: MouseEvent, value: string | number) => void;
|
|
133
137
|
inputError: import("vue").ComputedRef<any>;
|
|
134
138
|
transitionName: import("vue").ComputedRef<string>;
|
|
135
139
|
inputListeners: {};
|
|
136
140
|
style: typeof style;
|
|
137
141
|
focused: import("vue").Ref<boolean>;
|
|
138
|
-
|
|
142
|
+
fade: {
|
|
139
143
|
enterActive: string;
|
|
140
144
|
leaveActive: string;
|
|
141
145
|
enterFrom: string;
|
|
@@ -293,6 +297,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
293
297
|
type: NumberConstructor;
|
|
294
298
|
default: number;
|
|
295
299
|
};
|
|
300
|
+
portal: {
|
|
301
|
+
type: BooleanConstructor;
|
|
302
|
+
default: boolean;
|
|
303
|
+
};
|
|
296
304
|
zIndex: {
|
|
297
305
|
type: NumberConstructor;
|
|
298
306
|
};
|
|
@@ -319,8 +327,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
319
327
|
readonly: boolean;
|
|
320
328
|
description: string;
|
|
321
329
|
required: boolean;
|
|
322
|
-
max: number;
|
|
323
330
|
loading: boolean;
|
|
331
|
+
max: number;
|
|
324
332
|
rules: unknown[];
|
|
325
333
|
placeholder: string;
|
|
326
334
|
transitionName: string;
|
|
@@ -330,6 +338,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
330
338
|
consistentWidth: boolean;
|
|
331
339
|
allowBlank: boolean;
|
|
332
340
|
selectAll: boolean;
|
|
341
|
+
portal: boolean;
|
|
333
342
|
showDataOptions: boolean;
|
|
334
343
|
}, {}>;
|
|
335
344
|
export default _default;
|
|
@@ -47,6 +47,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
inputListeners: {};
|
|
48
48
|
focus: () => void | undefined;
|
|
49
49
|
blur: () => void | undefined;
|
|
50
|
+
onFocus: (event: FocusEvent) => void;
|
|
51
|
+
onBlur: (event: FocusEvent) => void;
|
|
50
52
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
53
|
label: {
|
|
52
54
|
type: StringConstructor;
|
|
@@ -23,9 +23,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
computedTabLabelClasses: import("vue").ComputedRef<{
|
|
24
24
|
[x: string]: boolean;
|
|
25
25
|
}>;
|
|
26
|
-
handleClick: () => void;
|
|
27
26
|
selected: import("vue").ComputedRef<boolean>;
|
|
28
|
-
teleportTo: import("vue").Ref<null>;
|
|
27
|
+
teleportTo: import("vue").Ref<HTMLElement | null>;
|
|
28
|
+
hasContent: import("vue").ComputedRef<boolean>;
|
|
29
|
+
attrs: {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
};
|
|
29
32
|
close: string;
|
|
30
33
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], "onClose", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
34
|
value: {
|
|
@@ -26,8 +26,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
};
|
|
27
27
|
}, {
|
|
28
28
|
wrapperRef: import("vue").Ref<HTMLElement | undefined>;
|
|
29
|
+
tabsRef: import("vue").Ref<HTMLElement | undefined>;
|
|
29
30
|
tabsContentRef: import("vue").Ref<HTMLElement | undefined>;
|
|
30
|
-
|
|
31
|
+
currentValue: import("vue").ComputedRef<string | number | undefined>;
|
|
31
32
|
computedTabsWrapperClasses: import("vue").ComputedRef<{
|
|
32
33
|
'm-tab-group': boolean;
|
|
33
34
|
'm-tab-group--vertical': boolean;
|
|
@@ -38,7 +39,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
39
|
computedTabContentClasses: import("vue").ComputedRef<{
|
|
39
40
|
[x: string]: boolean;
|
|
40
41
|
}>;
|
|
41
|
-
|
|
42
|
+
selectTab: (tab: string | number) => void;
|
|
43
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:selected")[], "update:modelValue" | "update:selected", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
44
|
modelValue: {
|
|
43
45
|
type: (NumberConstructor | StringConstructor)[];
|
|
44
46
|
};
|
|
@@ -62,7 +64,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
64
|
default: string;
|
|
63
65
|
validator: (value: string) => boolean;
|
|
64
66
|
};
|
|
65
|
-
}
|
|
67
|
+
}>> & {
|
|
68
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
}, {
|
|
66
71
|
size: Size;
|
|
67
72
|
type: "base" | "card";
|
|
68
73
|
vertical: boolean;
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
49
|
readonly default: () => never[];
|
|
50
50
|
};
|
|
51
51
|
}, {
|
|
52
|
-
element: import("vue").Ref<
|
|
52
|
+
element: import("vue").Ref<HTMLTextAreaElement | null>;
|
|
53
53
|
id: string;
|
|
54
54
|
disabled: import("vue").ComputedRef<any>;
|
|
55
55
|
loading: import("vue").ComputedRef<any>;
|
|
@@ -64,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
64
|
[x: string]: boolean;
|
|
65
65
|
}[]>;
|
|
66
66
|
name: import("vue").Ref<string | undefined>;
|
|
67
|
+
textareaValue: import("vue").ComputedRef<string>;
|
|
67
68
|
inputError: import("vue").ComputedRef<any>;
|
|
68
69
|
style: typeof style;
|
|
69
70
|
onClear: () => void;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { type PropType
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
2
|
import { type Placement } from '../../composables/usePopper';
|
|
3
3
|
import * as style from './style';
|
|
4
|
-
interface TooltipContext {
|
|
5
|
-
reference: Ref<HTMLElement | undefined>;
|
|
6
|
-
onReferenceChange: (element: HTMLElement | undefined) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const injectionTooltipContext: <T extends TooltipContext | null | undefined = TooltipContext>(fallback?: T | undefined) => T extends null ? TooltipContext | null : TooltipContext, providerTooltipContext: (contextValue: TooltipContext) => TooltipContext;
|
|
9
4
|
declare const _default: import("vue").DefineComponent<{
|
|
10
5
|
text: {
|
|
11
6
|
type: StringConstructor;
|
|
@@ -36,24 +31,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
31
|
default: number;
|
|
37
32
|
};
|
|
38
33
|
}, {
|
|
39
|
-
reference: Ref<HTMLElement | undefined>;
|
|
40
|
-
offset: import("vue").ComputedRef<number[]>;
|
|
41
|
-
popper: Ref<HTMLElement | null | undefined>;
|
|
42
|
-
transferTo: Ref<string>;
|
|
43
|
-
isOpen: Ref<boolean>;
|
|
44
|
-
show: () => void;
|
|
45
|
-
hide: () => void;
|
|
46
34
|
computedClasses: import("vue").ComputedRef<(string | {
|
|
47
35
|
[x: string]: boolean;
|
|
48
36
|
})[]>;
|
|
49
|
-
|
|
37
|
+
resolvedSide: import("vue").ComputedRef<"bottom" | "left" | "right" | "top" | undefined>;
|
|
38
|
+
resolvedAlign: import("vue").ComputedRef<"center" | "end" | "start" | undefined>;
|
|
39
|
+
transfer: import("vue").ComputedRef<boolean>;
|
|
40
|
+
zIndex: import("vue").Ref<number>;
|
|
50
41
|
style: typeof style;
|
|
51
|
-
fade: {
|
|
52
|
-
enterActive: string;
|
|
53
|
-
leaveActive: string;
|
|
54
|
-
enterFrom: string;
|
|
55
|
-
leaveTo: string;
|
|
56
|
-
};
|
|
57
42
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
43
|
text: {
|
|
59
44
|
type: StringConstructor;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
declare
|
|
2
|
-
default?(_: {}): any;
|
|
3
|
-
};
|
|
4
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
6
2
|
export default _default;
|
|
7
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
|
-
new (): {
|
|
9
|
-
$slots: S;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Key, TreeOption } from
|
|
1
|
+
import type { Key, TreeOption } from './types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
readonly expandedKeys: import("vue").PropType<Key[]>;
|
|
4
4
|
readonly defaultExpandAll: BooleanConstructor;
|
|
@@ -43,8 +43,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
readonly nodeProps: import("vue").PropType<import("./types").TreeNodeProps>;
|
|
44
44
|
readonly getChildren: import("vue").PropType<import("./props").GetChildren>;
|
|
45
45
|
}, {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
keyField: string;
|
|
47
|
+
normalizedData: import("vue").ComputedRef<TreeOption[]>;
|
|
48
48
|
selfElRef: import("vue").Ref<HTMLDivElement | null>;
|
|
49
49
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("dblclick" | "update:expandedKeys")[], "dblclick" | "update:expandedKeys", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
50
|
readonly expandedKeys: import("vue").PropType<Key[]>;
|
|
@@ -1,24 +1,38 @@
|
|
|
1
|
-
import { type PropType } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import * as style from './style';
|
|
3
|
+
import type { TreeOption } from './types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
node: {
|
|
6
|
-
type: PropType<
|
|
6
|
+
type: PropType<TreeOption>;
|
|
7
7
|
required: true;
|
|
8
8
|
};
|
|
9
|
+
level: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
9
13
|
}, {
|
|
10
|
-
|
|
11
|
-
handleLineClick: (e: MouseEvent) => void;
|
|
12
|
-
indentCount: import("vue").ComputedRef<number>;
|
|
13
|
-
labelField: import("vue").ComputedRef<unknown>;
|
|
14
|
+
children: import("vue").ComputedRef<TreeOption[]>;
|
|
14
15
|
expanded: import("vue").ComputedRef<boolean>;
|
|
15
|
-
|
|
16
|
-
doDoubleClick: (
|
|
16
|
+
handleContentClick: () => void;
|
|
17
|
+
doDoubleClick: () => void;
|
|
18
|
+
handleToggleClick: (event?: MouseEvent) => void;
|
|
19
|
+
indent: import("vue").ComputedRef<number>;
|
|
20
|
+
isLeaf: import("vue").ComputedRef<boolean>;
|
|
21
|
+
keyField: import("vue").ComputedRef<string>;
|
|
22
|
+
label: import("vue").ComputedRef<string>;
|
|
23
|
+
level: number;
|
|
24
|
+
resolvedNodeProps: import("vue").ComputedRef<import("vue").HTMLAttributes & Record<string, unknown>>;
|
|
17
25
|
style: typeof style;
|
|
18
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
27
|
node: {
|
|
20
|
-
type: PropType<
|
|
28
|
+
type: PropType<TreeOption>;
|
|
21
29
|
required: true;
|
|
22
30
|
};
|
|
23
|
-
|
|
31
|
+
level: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
}>>, {
|
|
36
|
+
level: number;
|
|
37
|
+
}, {}>;
|
|
24
38
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { HTMLAttributes, Ref
|
|
2
|
-
import type { TreeNode } from 'treemate';
|
|
1
|
+
import type { HTMLAttributes, Ref } from 'vue';
|
|
3
2
|
export type Key = string | number;
|
|
4
3
|
export interface TreeOptionBase {
|
|
5
4
|
key?: Key;
|
|
@@ -20,11 +19,12 @@ export interface TreeInjection {
|
|
|
20
19
|
labelFieldRef: Ref<string>;
|
|
21
20
|
keyFieldRef: Ref<string>;
|
|
22
21
|
childrenFieldRef: Ref<string>;
|
|
23
|
-
|
|
22
|
+
getChildren: (node: TreeOption) => TreeOption[];
|
|
23
|
+
handleToggle: (node: TreeOption) => void;
|
|
24
24
|
handleDoubleClick: (node: TreeOption) => void;
|
|
25
25
|
}
|
|
26
|
-
export declare const treeInjectionKey: InjectionKey<TreeInjection>;
|
|
27
|
-
export type TmNode =
|
|
26
|
+
export declare const treeInjectionKey: import("vue").InjectionKey<TreeInjection>;
|
|
27
|
+
export type TmNode = TreeOption;
|
|
28
28
|
export type OnUpdateCheckedKeys = (value: (string & number)[], option: (TreeOption | null)[], meta: {
|
|
29
29
|
node: TreeOption | null;
|
|
30
30
|
action: 'check' | 'uncheck';
|