@mantine-vue/core 2.3.0 → 2.4.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/cjs/index.cjs +1011 -144
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +1006 -145
- package/esm/index.mjs.map +1 -1
- package/lib/components/Accordion/Accordion.d.ts +24 -4
- package/lib/components/Accordion/index.d.ts +1 -1
- package/lib/components/Cascader/Cascader.d.ts +314 -0
- package/lib/components/Cascader/cascader-utils.d.ts +11 -0
- package/lib/components/Cascader/index.d.ts +4 -0
- package/lib/components/ColorInput/ColorInput.d.ts +7 -2
- package/lib/components/ColorInput/index.d.ts +1 -1
- package/lib/components/Combobox/OptionsDropdown/OptionsDropdown.d.ts +1 -0
- package/lib/components/ComboboxPopover/ComboboxPopover.d.ts +4 -0
- package/lib/components/Drawer/Drawer.d.ts +33 -0
- package/lib/components/FloatingWindow/FloatingWindow.context.d.ts +23 -0
- package/lib/components/FloatingWindow/FloatingWindow.d.ts +37 -0
- package/lib/components/FloatingWindow/FloatingWindowResizeHandle.d.ts +27 -0
- package/lib/components/FloatingWindow/index.d.ts +2 -0
- package/lib/components/InputBase/index.d.ts +1 -1
- package/lib/components/Menu/Menu.context.d.ts +1 -0
- package/lib/components/Modal/Modal.d.ts +33 -0
- package/lib/components/MultiSelect/MultiSelect.d.ts +7 -0
- package/lib/components/MultiSelect/index.d.ts +1 -1
- package/lib/components/PasswordInput/PasswordInput.d.ts +4 -0
- package/lib/components/PasswordInput/index.d.ts +1 -1
- package/lib/components/Popover/Popover.d.ts +10 -2
- package/lib/components/Popover/index.d.ts +1 -1
- package/lib/components/ScrollArea/ScrollArea.d.ts +25 -0
- package/lib/components/Scroller/Scroller.d.ts +9 -2
- package/lib/components/Scroller/index.d.ts +1 -1
- package/lib/components/Select/Select.d.ts +1 -0
- package/lib/components/Select/index.d.ts +1 -1
- package/lib/components/Slider/index.d.ts +2 -1
- package/lib/components/Splitter/Splitter.d.ts +8 -3
- package/lib/components/Splitter/index.d.ts +1 -1
- package/lib/components/Stepper/Stepper.d.ts +2 -1
- package/lib/components/Tabs/Tabs.context.d.ts +0 -1
- package/lib/components/Tabs/Tabs.d.ts +0 -15
- package/lib/components/TagsInput/TagsInput.d.ts +7 -0
- package/lib/components/TagsInput/index.d.ts +1 -1
- package/lib/components/Textarea/Textarea.d.ts +7 -2
- package/lib/components/Textarea/index.d.ts +1 -0
- package/lib/components/Timeline/Timeline.d.ts +19 -1
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +20 -1
- package/lib/components/Tree/Tree.d.ts +7 -2
- package/lib/components/Tree/index.d.ts +1 -1
- package/lib/components/TreeSelect/TreeSelect.d.ts +2 -0
- package/lib/components/TreeSelect/index.d.ts +1 -1
- package/lib/components/index.d.ts +1 -0
- package/package.json +3 -3
- package/styles.css +471 -129
- package/styles.layer.css +471 -129
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
2
|
import { type MantineRadius } from '../../core';
|
|
3
3
|
import { type AccordionChevronPosition, type AccordionHeadingOrder, type AccordionValue } from './Accordion.context';
|
|
4
4
|
export type AccordionStylesNames = 'root' | 'content' | 'item' | 'panel' | 'icon' | 'chevron' | 'label' | 'itemTitle' | 'control';
|
|
5
5
|
export type AccordionVariant = 'default' | 'contained' | 'filled' | 'separated';
|
|
6
|
+
export interface AccordionSlots {
|
|
7
|
+
default?: () => VNodeChild;
|
|
8
|
+
/** Custom chevron used by all Accordion.Control components, alternative to the `chevron` prop */
|
|
9
|
+
chevron?: () => VNodeChild;
|
|
10
|
+
}
|
|
6
11
|
export declare const Accordion: {
|
|
7
12
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
8
13
|
multiple: {
|
|
@@ -37,6 +42,10 @@ export declare const Accordion: {
|
|
|
37
42
|
type: BooleanConstructor;
|
|
38
43
|
default: undefined;
|
|
39
44
|
};
|
|
45
|
+
disableCollapse: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
40
49
|
chevronPosition: {
|
|
41
50
|
type: PropType<AccordionChevronPosition>;
|
|
42
51
|
default: undefined;
|
|
@@ -107,8 +116,9 @@ export declare const Accordion: {
|
|
|
107
116
|
chevronPosition: AccordionChevronPosition;
|
|
108
117
|
chevronSize: string | number;
|
|
109
118
|
disableChevronRotation: boolean;
|
|
119
|
+
disableCollapse: boolean;
|
|
110
120
|
chevronIconSize: string | number;
|
|
111
|
-
}, true, {},
|
|
121
|
+
}, true, {}, SlotsType<AccordionSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
112
122
|
P: {};
|
|
113
123
|
B: {};
|
|
114
124
|
D: {};
|
|
@@ -148,6 +158,10 @@ export declare const Accordion: {
|
|
|
148
158
|
type: BooleanConstructor;
|
|
149
159
|
default: undefined;
|
|
150
160
|
};
|
|
161
|
+
disableCollapse: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: undefined;
|
|
164
|
+
};
|
|
151
165
|
chevronPosition: {
|
|
152
166
|
type: PropType<AccordionChevronPosition>;
|
|
153
167
|
default: undefined;
|
|
@@ -218,6 +232,7 @@ export declare const Accordion: {
|
|
|
218
232
|
chevronPosition: AccordionChevronPosition;
|
|
219
233
|
chevronSize: string | number;
|
|
220
234
|
disableChevronRotation: boolean;
|
|
235
|
+
disableCollapse: boolean;
|
|
221
236
|
chevronIconSize: string | number;
|
|
222
237
|
}>;
|
|
223
238
|
__isFragment?: never;
|
|
@@ -256,6 +271,10 @@ export declare const Accordion: {
|
|
|
256
271
|
type: BooleanConstructor;
|
|
257
272
|
default: undefined;
|
|
258
273
|
};
|
|
274
|
+
disableCollapse: {
|
|
275
|
+
type: BooleanConstructor;
|
|
276
|
+
default: undefined;
|
|
277
|
+
};
|
|
259
278
|
chevronPosition: {
|
|
260
279
|
type: PropType<AccordionChevronPosition>;
|
|
261
280
|
default: undefined;
|
|
@@ -326,8 +345,9 @@ export declare const Accordion: {
|
|
|
326
345
|
chevronPosition: AccordionChevronPosition;
|
|
327
346
|
chevronSize: string | number;
|
|
328
347
|
disableChevronRotation: boolean;
|
|
348
|
+
disableCollapse: boolean;
|
|
329
349
|
chevronIconSize: string | number;
|
|
330
|
-
}, {}, string,
|
|
350
|
+
}, {}, string, SlotsType<AccordionSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
331
351
|
classes: Record<string, string>;
|
|
332
352
|
varsResolver: (theme: import("../..").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
|
|
333
353
|
Item: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -508,7 +528,7 @@ export declare const Accordion: {
|
|
|
508
528
|
icon: import("../..").MantineNode;
|
|
509
529
|
onKeyDown: (event: KeyboardEvent) => void;
|
|
510
530
|
chevron: import("../..").MantineNode;
|
|
511
|
-
},
|
|
531
|
+
}, SlotsType<import("./AccordionControl/AccordionControl").AccordionControlSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
512
532
|
Chevron: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
513
533
|
size: {
|
|
514
534
|
type: PropType<number | string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Accordion } from './Accordion';
|
|
2
|
-
export type { AccordionStylesNames, AccordionVariant } from './Accordion';
|
|
2
|
+
export type { AccordionSlots, AccordionStylesNames, AccordionVariant } from './Accordion';
|
|
3
3
|
export { AccordionChevron } from './AccordionChevron';
|
|
4
4
|
export { AccordionControl } from './AccordionControl/AccordionControl';
|
|
5
5
|
export type { AccordionControlStylesNames } from './AccordionControl/AccordionControl';
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type MantineNode } from '../../core';
|
|
3
|
+
export interface CascaderOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label?: VNodeChild;
|
|
6
|
+
children?: CascaderOption[];
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface CascaderFormatValueInput {
|
|
10
|
+
value: string[];
|
|
11
|
+
options: CascaderOption[];
|
|
12
|
+
}
|
|
13
|
+
export type CascaderFormatValue = (input: CascaderFormatValueInput) => string;
|
|
14
|
+
export interface CascaderSlots {
|
|
15
|
+
label?: () => VNodeChild;
|
|
16
|
+
description?: () => VNodeChild;
|
|
17
|
+
error?: () => VNodeChild;
|
|
18
|
+
leftSection?: () => VNodeChild;
|
|
19
|
+
rightSection?: () => VNodeChild;
|
|
20
|
+
separator?: () => VNodeChild;
|
|
21
|
+
nothingFoundMessage?: () => VNodeChild;
|
|
22
|
+
/** Alias used by other Combobox-based components. */
|
|
23
|
+
nothingFound?: () => VNodeChild;
|
|
24
|
+
renderSearchOption?: (input: {
|
|
25
|
+
query: string;
|
|
26
|
+
options: CascaderOption[];
|
|
27
|
+
}) => VNodeChild;
|
|
28
|
+
renderOption?: (input: {
|
|
29
|
+
option: CascaderOption;
|
|
30
|
+
level: number;
|
|
31
|
+
}) => VNodeChild;
|
|
32
|
+
}
|
|
33
|
+
export interface CascaderProps {
|
|
34
|
+
data: CascaderOption[];
|
|
35
|
+
modelValue?: string[] | null;
|
|
36
|
+
value?: string[] | null;
|
|
37
|
+
defaultValue?: string[] | null;
|
|
38
|
+
onChange?: (value: string[] | null, options: CascaderOption[]) => void;
|
|
39
|
+
changeOnSelect?: boolean;
|
|
40
|
+
closeOnSelect?: boolean;
|
|
41
|
+
allowDeselect?: boolean;
|
|
42
|
+
withCheckIcon?: boolean;
|
|
43
|
+
checkIconPosition?: 'left' | 'right';
|
|
44
|
+
withColumns?: boolean;
|
|
45
|
+
expandTrigger?: 'click' | 'hover';
|
|
46
|
+
searchable?: boolean;
|
|
47
|
+
searchValue?: string;
|
|
48
|
+
defaultSearchValue?: string;
|
|
49
|
+
onSearchChange?: (value: string) => void;
|
|
50
|
+
filter?: (query: string, options: CascaderOption[]) => boolean;
|
|
51
|
+
renderSearchOption?: (query: string, options: CascaderOption[]) => VNodeChild;
|
|
52
|
+
formatValue?: CascaderFormatValue;
|
|
53
|
+
renderOption?: (option: CascaderOption, level: number) => VNodeChild;
|
|
54
|
+
separator?: MantineNode;
|
|
55
|
+
columnWidth?: number | string;
|
|
56
|
+
maxDisplayedLevels?: number;
|
|
57
|
+
previousLevelsControlLabel?: string;
|
|
58
|
+
nextLevelsControlLabel?: string;
|
|
59
|
+
maxDropdownHeight?: number | string;
|
|
60
|
+
nothingFoundMessage?: MantineNode;
|
|
61
|
+
clearable?: boolean;
|
|
62
|
+
clearSectionMode?: 'both' | 'rightSection' | 'clear';
|
|
63
|
+
clearButtonProps?: Record<string, unknown>;
|
|
64
|
+
onClear?: () => void;
|
|
65
|
+
dropdownOpened?: boolean;
|
|
66
|
+
defaultDropdownOpened?: boolean;
|
|
67
|
+
onDropdownOpen?: () => void;
|
|
68
|
+
onDropdownClose?: () => void;
|
|
69
|
+
comboboxProps?: Record<string, unknown>;
|
|
70
|
+
scrollAreaProps?: Record<string, unknown>;
|
|
71
|
+
chevronColor?: string;
|
|
72
|
+
hiddenInputProps?: Record<string, unknown>;
|
|
73
|
+
openOnFocus?: boolean;
|
|
74
|
+
readOnly?: boolean;
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
size?: string | number;
|
|
77
|
+
classNames?: Record<string, unknown> | ((...args: any[]) => Record<string, unknown>);
|
|
78
|
+
styles?: Record<string, unknown> | ((...args: any[]) => Record<string, unknown>);
|
|
79
|
+
unstyled?: boolean;
|
|
80
|
+
[key: string]: unknown;
|
|
81
|
+
}
|
|
82
|
+
export declare const Cascader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
83
|
+
data: {
|
|
84
|
+
type: PropType<CascaderOption[]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
modelValue: PropType<string[] | null>;
|
|
88
|
+
value: PropType<string[] | null>;
|
|
89
|
+
defaultValue: PropType<string[] | null>;
|
|
90
|
+
onChange: PropType<CascaderProps["onChange"]>;
|
|
91
|
+
changeOnSelect: BooleanConstructor;
|
|
92
|
+
closeOnSelect: {
|
|
93
|
+
type: PropType<boolean | undefined>;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
96
|
+
allowDeselect: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
withCheckIcon: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
checkIconPosition: {
|
|
105
|
+
type: PropType<"left" | "right">;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
withColumns: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
expandTrigger: {
|
|
113
|
+
type: PropType<"click" | "hover">;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
searchable: BooleanConstructor;
|
|
117
|
+
searchValue: StringConstructor;
|
|
118
|
+
defaultSearchValue: StringConstructor;
|
|
119
|
+
onSearchChange: PropType<(value: string) => void>;
|
|
120
|
+
filter: PropType<CascaderProps["filter"]>;
|
|
121
|
+
renderSearchOption: PropType<CascaderProps["renderSearchOption"]>;
|
|
122
|
+
formatValue: PropType<CascaderFormatValue>;
|
|
123
|
+
renderOption: PropType<CascaderProps["renderOption"]>;
|
|
124
|
+
separator: {
|
|
125
|
+
type: PropType<MantineNode>;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
columnWidth: {
|
|
129
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
130
|
+
default: number;
|
|
131
|
+
};
|
|
132
|
+
maxDisplayedLevels: {
|
|
133
|
+
type: NumberConstructor;
|
|
134
|
+
default: number;
|
|
135
|
+
};
|
|
136
|
+
previousLevelsControlLabel: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
nextLevelsControlLabel: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
maxDropdownHeight: {
|
|
145
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
146
|
+
default: number;
|
|
147
|
+
};
|
|
148
|
+
nothingFoundMessage: {
|
|
149
|
+
type: PropType<MantineNode>;
|
|
150
|
+
default: undefined;
|
|
151
|
+
};
|
|
152
|
+
clearable: BooleanConstructor;
|
|
153
|
+
clearSectionMode: {
|
|
154
|
+
type: PropType<"both" | "rightSection" | "clear">;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
clearButtonProps: ObjectConstructor;
|
|
158
|
+
onClear: PropType<() => void>;
|
|
159
|
+
dropdownOpened: {
|
|
160
|
+
type: PropType<boolean | undefined>;
|
|
161
|
+
default: undefined;
|
|
162
|
+
};
|
|
163
|
+
defaultDropdownOpened: BooleanConstructor;
|
|
164
|
+
onDropdownOpen: PropType<() => void>;
|
|
165
|
+
onDropdownClose: PropType<() => void>;
|
|
166
|
+
comboboxProps: ObjectConstructor;
|
|
167
|
+
scrollAreaProps: ObjectConstructor;
|
|
168
|
+
chevronColor: StringConstructor;
|
|
169
|
+
hiddenInputProps: ObjectConstructor;
|
|
170
|
+
openOnFocus: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
readOnly: BooleanConstructor;
|
|
175
|
+
disabled: BooleanConstructor;
|
|
176
|
+
size: {
|
|
177
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
classNames: (ObjectConstructor | FunctionConstructor)[];
|
|
181
|
+
styles: (ObjectConstructor | FunctionConstructor)[];
|
|
182
|
+
unstyled: BooleanConstructor;
|
|
183
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
184
|
+
[key: string]: any;
|
|
185
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:searchValue")[], "update:modelValue" | "update:searchValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
186
|
+
data: {
|
|
187
|
+
type: PropType<CascaderOption[]>;
|
|
188
|
+
required: true;
|
|
189
|
+
};
|
|
190
|
+
modelValue: PropType<string[] | null>;
|
|
191
|
+
value: PropType<string[] | null>;
|
|
192
|
+
defaultValue: PropType<string[] | null>;
|
|
193
|
+
onChange: PropType<CascaderProps["onChange"]>;
|
|
194
|
+
changeOnSelect: BooleanConstructor;
|
|
195
|
+
closeOnSelect: {
|
|
196
|
+
type: PropType<boolean | undefined>;
|
|
197
|
+
default: undefined;
|
|
198
|
+
};
|
|
199
|
+
allowDeselect: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
203
|
+
withCheckIcon: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: boolean;
|
|
206
|
+
};
|
|
207
|
+
checkIconPosition: {
|
|
208
|
+
type: PropType<"left" | "right">;
|
|
209
|
+
default: string;
|
|
210
|
+
};
|
|
211
|
+
withColumns: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: boolean;
|
|
214
|
+
};
|
|
215
|
+
expandTrigger: {
|
|
216
|
+
type: PropType<"click" | "hover">;
|
|
217
|
+
default: string;
|
|
218
|
+
};
|
|
219
|
+
searchable: BooleanConstructor;
|
|
220
|
+
searchValue: StringConstructor;
|
|
221
|
+
defaultSearchValue: StringConstructor;
|
|
222
|
+
onSearchChange: PropType<(value: string) => void>;
|
|
223
|
+
filter: PropType<CascaderProps["filter"]>;
|
|
224
|
+
renderSearchOption: PropType<CascaderProps["renderSearchOption"]>;
|
|
225
|
+
formatValue: PropType<CascaderFormatValue>;
|
|
226
|
+
renderOption: PropType<CascaderProps["renderOption"]>;
|
|
227
|
+
separator: {
|
|
228
|
+
type: PropType<MantineNode>;
|
|
229
|
+
default: undefined;
|
|
230
|
+
};
|
|
231
|
+
columnWidth: {
|
|
232
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
233
|
+
default: number;
|
|
234
|
+
};
|
|
235
|
+
maxDisplayedLevels: {
|
|
236
|
+
type: NumberConstructor;
|
|
237
|
+
default: number;
|
|
238
|
+
};
|
|
239
|
+
previousLevelsControlLabel: {
|
|
240
|
+
type: StringConstructor;
|
|
241
|
+
default: string;
|
|
242
|
+
};
|
|
243
|
+
nextLevelsControlLabel: {
|
|
244
|
+
type: StringConstructor;
|
|
245
|
+
default: string;
|
|
246
|
+
};
|
|
247
|
+
maxDropdownHeight: {
|
|
248
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
249
|
+
default: number;
|
|
250
|
+
};
|
|
251
|
+
nothingFoundMessage: {
|
|
252
|
+
type: PropType<MantineNode>;
|
|
253
|
+
default: undefined;
|
|
254
|
+
};
|
|
255
|
+
clearable: BooleanConstructor;
|
|
256
|
+
clearSectionMode: {
|
|
257
|
+
type: PropType<"both" | "rightSection" | "clear">;
|
|
258
|
+
default: string;
|
|
259
|
+
};
|
|
260
|
+
clearButtonProps: ObjectConstructor;
|
|
261
|
+
onClear: PropType<() => void>;
|
|
262
|
+
dropdownOpened: {
|
|
263
|
+
type: PropType<boolean | undefined>;
|
|
264
|
+
default: undefined;
|
|
265
|
+
};
|
|
266
|
+
defaultDropdownOpened: BooleanConstructor;
|
|
267
|
+
onDropdownOpen: PropType<() => void>;
|
|
268
|
+
onDropdownClose: PropType<() => void>;
|
|
269
|
+
comboboxProps: ObjectConstructor;
|
|
270
|
+
scrollAreaProps: ObjectConstructor;
|
|
271
|
+
chevronColor: StringConstructor;
|
|
272
|
+
hiddenInputProps: ObjectConstructor;
|
|
273
|
+
openOnFocus: {
|
|
274
|
+
type: BooleanConstructor;
|
|
275
|
+
default: boolean;
|
|
276
|
+
};
|
|
277
|
+
readOnly: BooleanConstructor;
|
|
278
|
+
disabled: BooleanConstructor;
|
|
279
|
+
size: {
|
|
280
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
281
|
+
default: string;
|
|
282
|
+
};
|
|
283
|
+
classNames: (ObjectConstructor | FunctionConstructor)[];
|
|
284
|
+
styles: (ObjectConstructor | FunctionConstructor)[];
|
|
285
|
+
unstyled: BooleanConstructor;
|
|
286
|
+
}>> & Readonly<{
|
|
287
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
288
|
+
"onUpdate:searchValue"?: ((...args: any[]) => any) | undefined;
|
|
289
|
+
}>, {
|
|
290
|
+
size: string | number;
|
|
291
|
+
disabled: boolean;
|
|
292
|
+
separator: MantineNode;
|
|
293
|
+
columnWidth: string | number;
|
|
294
|
+
unstyled: boolean;
|
|
295
|
+
clearable: boolean;
|
|
296
|
+
clearSectionMode: "clear" | "both" | "rightSection";
|
|
297
|
+
readOnly: boolean;
|
|
298
|
+
withCheckIcon: boolean;
|
|
299
|
+
maxDropdownHeight: string | number;
|
|
300
|
+
checkIconPosition: "left" | "right";
|
|
301
|
+
nothingFoundMessage: MantineNode;
|
|
302
|
+
dropdownOpened: boolean | undefined;
|
|
303
|
+
defaultDropdownOpened: boolean;
|
|
304
|
+
searchable: boolean;
|
|
305
|
+
allowDeselect: boolean;
|
|
306
|
+
openOnFocus: boolean;
|
|
307
|
+
changeOnSelect: boolean;
|
|
308
|
+
closeOnSelect: boolean | undefined;
|
|
309
|
+
withColumns: boolean;
|
|
310
|
+
expandTrigger: "click" | "hover";
|
|
311
|
+
maxDisplayedLevels: number;
|
|
312
|
+
previousLevelsControlLabel: string;
|
|
313
|
+
nextLevelsControlLabel: string;
|
|
314
|
+
}, SlotsType<CascaderSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CascaderOption } from './Cascader';
|
|
2
|
+
export interface CascaderFlatPath {
|
|
3
|
+
path: string[];
|
|
4
|
+
options: CascaderOption[];
|
|
5
|
+
leaf: boolean;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function cascaderOptionHasChildren(option: CascaderOption): boolean;
|
|
9
|
+
export declare function getCascaderColumns(data: CascaderOption[], activePath: string[]): CascaderOption[][];
|
|
10
|
+
export declare function getCascaderPathOptions(data: CascaderOption[], value: string[] | null | undefined): CascaderOption[];
|
|
11
|
+
export declare function flattenCascaderPaths(data: CascaderOption[]): CascaderFlatPath[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Cascader } from './Cascader';
|
|
2
|
+
export type { CascaderProps, CascaderOption, CascaderFormatValue, CascaderFormatValueInput, CascaderSlots, } from './Cascader';
|
|
3
|
+
export type { CascaderFlatPath } from './cascader-utils';
|
|
4
|
+
export { cascaderOptionHasChildren, flattenCascaderPaths, getCascaderColumns, getCascaderPathOptions, } from './cascader-utils';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
2
|
import { type ColorFormat } from '../ColorPicker';
|
|
3
|
+
import { type InputBaseSlots } from '../InputBase';
|
|
3
4
|
export interface ColorInputProps {
|
|
4
5
|
modelValue?: string;
|
|
5
6
|
value?: string;
|
|
@@ -17,6 +18,10 @@ export interface ColorInputProps {
|
|
|
17
18
|
eyeDropperIcon?: any;
|
|
18
19
|
[key: string]: any;
|
|
19
20
|
}
|
|
21
|
+
export interface ColorInputSlots extends InputBaseSlots {
|
|
22
|
+
/** Custom eye dropper button icon, alternative to the `eyeDropperIcon` prop */
|
|
23
|
+
eyeDropperIcon?: () => VNodeChild;
|
|
24
|
+
}
|
|
20
25
|
export declare const ColorInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
21
26
|
modelValue: StringConstructor;
|
|
22
27
|
value: StringConstructor;
|
|
@@ -116,4 +121,4 @@ export declare const ColorInput: import("vue").DefineComponent<import("vue").Ext
|
|
|
116
121
|
withEyeDropper: boolean;
|
|
117
122
|
closeOnColorSwatchClick: boolean;
|
|
118
123
|
eyeDropperIcon: any;
|
|
119
|
-
},
|
|
124
|
+
}, SlotsType<ColorInputSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { ColorInput } from './ColorInput';
|
|
2
|
-
export type { ColorInputProps } from './ColorInput';
|
|
2
|
+
export type { ColorInputProps, ColorInputSlots } from './ColorInput';
|
|
@@ -27,6 +27,7 @@ export interface OptionsDropdownProps {
|
|
|
27
27
|
export interface OptionsDropdownSlots {
|
|
28
28
|
renderOption?: (input: ComboboxLikeRenderOptionInput<any>) => VNodeChild;
|
|
29
29
|
nothingFound?: () => VNodeChild;
|
|
30
|
+
nothingFoundMessage?: () => VNodeChild;
|
|
30
31
|
}
|
|
31
32
|
export declare const OptionsDropdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
32
33
|
data: {
|
|
@@ -77,8 +77,12 @@ export interface ComboboxPopoverSlots {
|
|
|
77
77
|
default?: () => VNodeChild;
|
|
78
78
|
/** Custom option content, alternative to the `renderOption` prop */
|
|
79
79
|
option?: (input: ComboboxLikeRenderOptionInput<ComboboxItem>) => VNodeChild;
|
|
80
|
+
/** Exact-name alias for the `renderOption` prop */
|
|
81
|
+
renderOption?: (input: ComboboxLikeRenderOptionInput<ComboboxItem>) => VNodeChild;
|
|
80
82
|
/** Custom "nothing found" content, alternative to the `nothingFoundMessage` prop */
|
|
81
83
|
nothingFound?: () => VNodeChild;
|
|
84
|
+
/** Exact-name alias for the `nothingFoundMessage` prop */
|
|
85
|
+
nothingFoundMessage?: () => VNodeChild;
|
|
82
86
|
}
|
|
83
87
|
export declare const ComboboxPopoverBase: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
84
88
|
multiple: {
|
|
@@ -55,6 +55,10 @@ export declare const DrawerRoot: import("vue").DefineComponent<import("vue").Ext
|
|
|
55
55
|
type: PropType<() => void>;
|
|
56
56
|
required: true;
|
|
57
57
|
};
|
|
58
|
+
keepMounted: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
58
62
|
position: {
|
|
59
63
|
type: PropType<DrawerPosition>;
|
|
60
64
|
default: string;
|
|
@@ -97,6 +101,10 @@ export declare const DrawerRoot: import("vue").DefineComponent<import("vue").Ext
|
|
|
97
101
|
type: PropType<() => void>;
|
|
98
102
|
required: true;
|
|
99
103
|
};
|
|
104
|
+
keepMounted: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
100
108
|
position: {
|
|
101
109
|
type: PropType<DrawerPosition>;
|
|
102
110
|
default: string;
|
|
@@ -134,6 +142,7 @@ export declare const DrawerRoot: import("vue").DefineComponent<import("vue").Ext
|
|
|
134
142
|
styles: Function | Record<string, any>;
|
|
135
143
|
offset: string | number;
|
|
136
144
|
position: DrawerPosition;
|
|
145
|
+
keepMounted: boolean;
|
|
137
146
|
vars: Function | Record<string, any>;
|
|
138
147
|
unstyled: boolean;
|
|
139
148
|
scrollAreaComponent: Function | Record<string, any>;
|
|
@@ -268,6 +277,10 @@ export declare const Drawer: {
|
|
|
268
277
|
type: PropType<() => void>;
|
|
269
278
|
required: true;
|
|
270
279
|
};
|
|
280
|
+
keepMounted: {
|
|
281
|
+
type: BooleanConstructor;
|
|
282
|
+
default: boolean;
|
|
283
|
+
};
|
|
271
284
|
title: {
|
|
272
285
|
type: PropType<MantineNode>;
|
|
273
286
|
default: undefined;
|
|
@@ -294,6 +307,7 @@ export declare const Drawer: {
|
|
|
294
307
|
[key: string]: any;
|
|
295
308
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
296
309
|
title: MantineNode;
|
|
310
|
+
keepMounted: boolean;
|
|
297
311
|
zIndex: string | number;
|
|
298
312
|
withCloseButton: boolean;
|
|
299
313
|
withOverlay: boolean;
|
|
@@ -314,6 +328,10 @@ export declare const Drawer: {
|
|
|
314
328
|
type: PropType<() => void>;
|
|
315
329
|
required: true;
|
|
316
330
|
};
|
|
331
|
+
keepMounted: {
|
|
332
|
+
type: BooleanConstructor;
|
|
333
|
+
default: boolean;
|
|
334
|
+
};
|
|
317
335
|
title: {
|
|
318
336
|
type: PropType<MantineNode>;
|
|
319
337
|
default: undefined;
|
|
@@ -340,6 +358,7 @@ export declare const Drawer: {
|
|
|
340
358
|
[key: string]: any;
|
|
341
359
|
}>, {}, {}, {}, {
|
|
342
360
|
title: MantineNode;
|
|
361
|
+
keepMounted: boolean;
|
|
343
362
|
zIndex: string | number;
|
|
344
363
|
withCloseButton: boolean;
|
|
345
364
|
withOverlay: boolean;
|
|
@@ -357,6 +376,10 @@ export declare const Drawer: {
|
|
|
357
376
|
type: PropType<() => void>;
|
|
358
377
|
required: true;
|
|
359
378
|
};
|
|
379
|
+
keepMounted: {
|
|
380
|
+
type: BooleanConstructor;
|
|
381
|
+
default: boolean;
|
|
382
|
+
};
|
|
360
383
|
title: {
|
|
361
384
|
type: PropType<MantineNode>;
|
|
362
385
|
default: undefined;
|
|
@@ -383,6 +406,7 @@ export declare const Drawer: {
|
|
|
383
406
|
[key: string]: any;
|
|
384
407
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
385
408
|
title: MantineNode;
|
|
409
|
+
keepMounted: boolean;
|
|
386
410
|
zIndex: string | number;
|
|
387
411
|
withCloseButton: boolean;
|
|
388
412
|
withOverlay: boolean;
|
|
@@ -399,6 +423,10 @@ export declare const Drawer: {
|
|
|
399
423
|
type: PropType<() => void>;
|
|
400
424
|
required: true;
|
|
401
425
|
};
|
|
426
|
+
keepMounted: {
|
|
427
|
+
type: BooleanConstructor;
|
|
428
|
+
default: boolean;
|
|
429
|
+
};
|
|
402
430
|
position: {
|
|
403
431
|
type: PropType<DrawerPosition>;
|
|
404
432
|
default: string;
|
|
@@ -441,6 +469,10 @@ export declare const Drawer: {
|
|
|
441
469
|
type: PropType<() => void>;
|
|
442
470
|
required: true;
|
|
443
471
|
};
|
|
472
|
+
keepMounted: {
|
|
473
|
+
type: BooleanConstructor;
|
|
474
|
+
default: boolean;
|
|
475
|
+
};
|
|
444
476
|
position: {
|
|
445
477
|
type: PropType<DrawerPosition>;
|
|
446
478
|
default: string;
|
|
@@ -478,6 +510,7 @@ export declare const Drawer: {
|
|
|
478
510
|
styles: Function | Record<string, any>;
|
|
479
511
|
offset: string | number;
|
|
480
512
|
position: DrawerPosition;
|
|
513
|
+
keepMounted: boolean;
|
|
481
514
|
vars: Function | Record<string, any>;
|
|
482
515
|
unstyled: boolean;
|
|
483
516
|
scrollAreaComponent: Function | Record<string, any>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export interface FloatingWindowDimensions {
|
|
3
|
+
initialWidth?: number;
|
|
4
|
+
minWidth?: number;
|
|
5
|
+
maxWidth?: number;
|
|
6
|
+
initialHeight?: number;
|
|
7
|
+
minHeight?: number;
|
|
8
|
+
maxHeight?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface FloatingWindowSize {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
}
|
|
14
|
+
export interface FloatingWindowContextValue {
|
|
15
|
+
rootRef: Ref<HTMLDivElement | null>;
|
|
16
|
+
dimensions?: FloatingWindowDimensions;
|
|
17
|
+
constrainToViewport?: boolean;
|
|
18
|
+
constrainOffset?: number;
|
|
19
|
+
onResizeStart?: () => void;
|
|
20
|
+
onResizeEnd?: () => void;
|
|
21
|
+
onSizeChange?: (size: FloatingWindowSize) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const provideFloatingWindowContext: (value: FloatingWindowContextValue) => void, useFloatingWindowContext: () => FloatingWindowContextValue;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type PropType, type Ref } from 'vue';
|
|
2
2
|
import { type FloatingWindowPosition, type FloatingWindowPositionConfig, type SetFloatingWindowPosition } from '@mantine-vue/hooks';
|
|
3
|
+
import { type FloatingWindowDimensions, type FloatingWindowSize } from './FloatingWindow.context';
|
|
3
4
|
export type FloatingWindowStylesNames = 'root';
|
|
4
5
|
export declare const FloatingWindow: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
6
|
enabled: {
|
|
@@ -58,6 +59,22 @@ export declare const FloatingWindow: import("vue").DefineComponent<import("vue")
|
|
|
58
59
|
type: PropType<string | number>;
|
|
59
60
|
default: undefined;
|
|
60
61
|
};
|
|
62
|
+
dimensions: {
|
|
63
|
+
type: PropType<FloatingWindowDimensions>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
onSizeChange: {
|
|
67
|
+
type: PropType<(size: FloatingWindowSize) => void>;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
onResizeStart: {
|
|
71
|
+
type: PropType<() => void>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
onResizeEnd: {
|
|
75
|
+
type: PropType<() => void>;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
61
78
|
shadow: {
|
|
62
79
|
type: StringConstructor;
|
|
63
80
|
default: undefined;
|
|
@@ -149,6 +166,22 @@ export declare const FloatingWindow: import("vue").DefineComponent<import("vue")
|
|
|
149
166
|
type: PropType<string | number>;
|
|
150
167
|
default: undefined;
|
|
151
168
|
};
|
|
169
|
+
dimensions: {
|
|
170
|
+
type: PropType<FloatingWindowDimensions>;
|
|
171
|
+
default: undefined;
|
|
172
|
+
};
|
|
173
|
+
onSizeChange: {
|
|
174
|
+
type: PropType<(size: FloatingWindowSize) => void>;
|
|
175
|
+
default: undefined;
|
|
176
|
+
};
|
|
177
|
+
onResizeStart: {
|
|
178
|
+
type: PropType<() => void>;
|
|
179
|
+
default: undefined;
|
|
180
|
+
};
|
|
181
|
+
onResizeEnd: {
|
|
182
|
+
type: PropType<() => void>;
|
|
183
|
+
default: undefined;
|
|
184
|
+
};
|
|
152
185
|
shadow: {
|
|
153
186
|
type: StringConstructor;
|
|
154
187
|
default: undefined;
|
|
@@ -190,6 +223,9 @@ export declare const FloatingWindow: import("vue").DefineComponent<import("vue")
|
|
|
190
223
|
mod: any;
|
|
191
224
|
enabled: boolean;
|
|
192
225
|
zIndex: string | number;
|
|
226
|
+
onSizeChange: (size: FloatingWindowSize) => void;
|
|
227
|
+
onResizeStart: () => void;
|
|
228
|
+
onResizeEnd: () => void;
|
|
193
229
|
vars: Function | Record<string, any>;
|
|
194
230
|
unstyled: boolean;
|
|
195
231
|
withinPortal: boolean;
|
|
@@ -204,4 +240,5 @@ export declare const FloatingWindow: import("vue").DefineComponent<import("vue")
|
|
|
204
240
|
onDragStart: () => void;
|
|
205
241
|
onDragEnd: () => void;
|
|
206
242
|
setPositionRef: Ref<SetFloatingWindowPosition | null, SetFloatingWindowPosition | null>;
|
|
243
|
+
dimensions: FloatingWindowDimensions;
|
|
207
244
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|