@codemonster-ru/vueforge 0.31.0 → 0.32.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/README.md +53 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.ts.mjs +1740 -1578
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/dropdown.vue.d.ts +71 -0
- package/dist/package/config/theme-core.d.ts +11 -0
- package/dist/package/themes/default/components/dropdown.d.ts +11 -0
- package/dist/package/themes/default/index.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
type Placement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'bottom' | 'top';
|
|
2
|
+
interface Item {
|
|
3
|
+
to?: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
separator?: boolean;
|
|
11
|
+
command?: () => void;
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
modelValue?: boolean;
|
|
15
|
+
items?: Array<Item>;
|
|
16
|
+
placement?: Placement;
|
|
17
|
+
offset?: number;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
closeOnSelect?: boolean;
|
|
20
|
+
closeOnEsc?: boolean;
|
|
21
|
+
matchTriggerWidth?: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
attrs: Partial<{}>;
|
|
25
|
+
slots: {
|
|
26
|
+
trigger?(_: {}): any;
|
|
27
|
+
default?(_: {}): any;
|
|
28
|
+
};
|
|
29
|
+
refs: {
|
|
30
|
+
root: HTMLDivElement;
|
|
31
|
+
trigger: HTMLDivElement;
|
|
32
|
+
panel: HTMLDivElement;
|
|
33
|
+
};
|
|
34
|
+
rootEl: HTMLDivElement;
|
|
35
|
+
};
|
|
36
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
38
|
+
open: () => void;
|
|
39
|
+
close: () => void;
|
|
40
|
+
toggle: () => void;
|
|
41
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
close: (...args: any[]) => void;
|
|
43
|
+
select: (...args: any[]) => void;
|
|
44
|
+
"update:modelValue": (...args: any[]) => void;
|
|
45
|
+
open: (...args: any[]) => void;
|
|
46
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
47
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
items: Array<Item>;
|
|
54
|
+
modelValue: boolean;
|
|
55
|
+
placement: Placement;
|
|
56
|
+
closeOnEsc: boolean;
|
|
57
|
+
offset: number;
|
|
58
|
+
closeOnSelect: boolean;
|
|
59
|
+
matchTriggerWidth: boolean;
|
|
60
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
61
|
+
root: HTMLDivElement;
|
|
62
|
+
trigger: HTMLDivElement;
|
|
63
|
+
panel: HTMLDivElement;
|
|
64
|
+
}, HTMLDivElement>;
|
|
65
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
66
|
+
export default _default;
|
|
67
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -251,6 +251,16 @@ export type PopoverTokens = {
|
|
|
251
251
|
backgroundColor?: string;
|
|
252
252
|
shadow?: string;
|
|
253
253
|
};
|
|
254
|
+
export type DropdownTokens = {
|
|
255
|
+
panelPadding?: string;
|
|
256
|
+
panelBorderRadius?: string;
|
|
257
|
+
panelBorderColor?: string;
|
|
258
|
+
panelBackgroundColor?: string;
|
|
259
|
+
panelShadow?: string;
|
|
260
|
+
zIndex?: string;
|
|
261
|
+
disabledOpacity?: string;
|
|
262
|
+
itemPadding?: string;
|
|
263
|
+
};
|
|
254
264
|
export type SelectTokens = {
|
|
255
265
|
minWidth?: string;
|
|
256
266
|
fontSize?: string;
|
|
@@ -848,6 +858,7 @@ export type ThemeComponentTokens = {
|
|
|
848
858
|
modal?: ModalTokens;
|
|
849
859
|
drawer?: DrawerTokens;
|
|
850
860
|
popover?: PopoverTokens;
|
|
861
|
+
dropdown?: DropdownTokens;
|
|
851
862
|
select?: SelectTokens;
|
|
852
863
|
autocomplete?: AutocompleteTokens;
|
|
853
864
|
multiselect?: MultiSelectTokens;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
panelPadding: string;
|
|
3
|
+
panelBorderRadius: string;
|
|
4
|
+
panelBorderColor: string;
|
|
5
|
+
panelBackgroundColor: string;
|
|
6
|
+
panelShadow: string;
|
|
7
|
+
zIndex: string;
|
|
8
|
+
disabledOpacity: string;
|
|
9
|
+
itemPadding: string;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -405,6 +405,16 @@ declare const _default: {
|
|
|
405
405
|
popover: {
|
|
406
406
|
backgroundColor: string;
|
|
407
407
|
};
|
|
408
|
+
dropdown: {
|
|
409
|
+
panelPadding: string;
|
|
410
|
+
panelBorderRadius: string;
|
|
411
|
+
panelBorderColor: string;
|
|
412
|
+
panelBackgroundColor: string;
|
|
413
|
+
panelShadow: string;
|
|
414
|
+
zIndex: string;
|
|
415
|
+
disabledOpacity: string;
|
|
416
|
+
itemPadding: string;
|
|
417
|
+
};
|
|
408
418
|
select: {
|
|
409
419
|
minWidth: string;
|
|
410
420
|
fontSize: string;
|