@codemonster-ru/vueforge 0.31.0 → 0.33.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 +88 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.ts.mjs +2266 -1771
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/date-range-picker.test.d.ts +1 -0
- package/dist/package/components/date-range-picker.vue.d.ts +48 -0
- package/dist/package/components/dropdown.vue.d.ts +71 -0
- package/dist/package/config/theme-core.d.ts +65 -0
- package/dist/package/themes/default/components/daterangepicker.d.ts +54 -0
- package/dist/package/themes/default/components/dropdown.d.ts +11 -0
- package/dist/package/themes/default/index.d.ts +63 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
type Size = 'small' | 'normal' | 'large';
|
|
2
|
+
type Variant = 'filled' | 'outlined';
|
|
3
|
+
type DateRangeValue = [string | null, string | null] | null;
|
|
4
|
+
interface Props {
|
|
5
|
+
modelValue?: DateRangeValue;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
startPlaceholder?: string;
|
|
8
|
+
endPlaceholder?: string;
|
|
9
|
+
separator?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
min?: string;
|
|
13
|
+
max?: string;
|
|
14
|
+
locale?: string;
|
|
15
|
+
firstDayOfWeek?: number;
|
|
16
|
+
variant?: Variant;
|
|
17
|
+
size?: Size;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
blur: (...args: any[]) => void;
|
|
21
|
+
change: (...args: any[]) => void;
|
|
22
|
+
focus: (...args: any[]) => void;
|
|
23
|
+
"update:modelValue": (...args: any[]) => void;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
25
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
separator: string;
|
|
32
|
+
size: Size;
|
|
33
|
+
variant: Variant;
|
|
34
|
+
modelValue: DateRangeValue;
|
|
35
|
+
placeholder: string;
|
|
36
|
+
readonly: boolean;
|
|
37
|
+
min: string;
|
|
38
|
+
max: string;
|
|
39
|
+
locale: string;
|
|
40
|
+
firstDayOfWeek: number;
|
|
41
|
+
startPlaceholder: string;
|
|
42
|
+
endPlaceholder: string;
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
44
|
+
root: HTMLDivElement;
|
|
45
|
+
control: HTMLButtonElement;
|
|
46
|
+
panel: HTMLDivElement;
|
|
47
|
+
}, HTMLDivElement>;
|
|
48
|
+
export default _default;
|
|
@@ -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;
|
|
@@ -422,6 +432,59 @@ export type DatePickerTokens = {
|
|
|
422
432
|
daySize?: string;
|
|
423
433
|
};
|
|
424
434
|
};
|
|
435
|
+
export type DateRangePickerTokens = {
|
|
436
|
+
minWidth?: string;
|
|
437
|
+
fontSize?: string;
|
|
438
|
+
controlGap?: string;
|
|
439
|
+
chevronSize?: string;
|
|
440
|
+
padding?: string;
|
|
441
|
+
borderRadius?: string;
|
|
442
|
+
borderColor?: string;
|
|
443
|
+
backgroundColor?: string;
|
|
444
|
+
textColor?: string;
|
|
445
|
+
placeholderColor?: string;
|
|
446
|
+
focusBorderColor?: string;
|
|
447
|
+
hoverBorderColor?: string;
|
|
448
|
+
disabledOpacity?: string;
|
|
449
|
+
panelWidth?: string;
|
|
450
|
+
panelBackgroundColor?: string;
|
|
451
|
+
panelBorderColor?: string;
|
|
452
|
+
panelPadding?: string;
|
|
453
|
+
panelRadiusOffset?: string;
|
|
454
|
+
panelShadow?: string;
|
|
455
|
+
focusRingShadow?: string;
|
|
456
|
+
headerGap?: string;
|
|
457
|
+
headerPadding?: string;
|
|
458
|
+
monthLabelFontSize?: string;
|
|
459
|
+
monthLabelFontWeight?: string;
|
|
460
|
+
navButtonSize?: string;
|
|
461
|
+
navButtonRadius?: string;
|
|
462
|
+
navButtonFontSize?: string;
|
|
463
|
+
weekdayColor?: string;
|
|
464
|
+
weekdayFontSize?: string;
|
|
465
|
+
weekdaysMarginBottom?: string;
|
|
466
|
+
daysGap?: string;
|
|
467
|
+
daySize?: string;
|
|
468
|
+
dayFontSize?: string;
|
|
469
|
+
dayBorderRadius?: string;
|
|
470
|
+
dayHoverBackgroundColor?: string;
|
|
471
|
+
daySelectedBackgroundColor?: string;
|
|
472
|
+
daySelectedTextColor?: string;
|
|
473
|
+
dayRangeBackgroundColor?: string;
|
|
474
|
+
dayRangeTextColor?: string;
|
|
475
|
+
dayMutedColor?: string;
|
|
476
|
+
dayTodayBorderColor?: string;
|
|
477
|
+
small?: {
|
|
478
|
+
padding?: string;
|
|
479
|
+
fontSize?: string;
|
|
480
|
+
daySize?: string;
|
|
481
|
+
};
|
|
482
|
+
large?: {
|
|
483
|
+
padding?: string;
|
|
484
|
+
fontSize?: string;
|
|
485
|
+
daySize?: string;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
425
488
|
export type PaginationTokens = {
|
|
426
489
|
gap?: string;
|
|
427
490
|
itemMinWidth?: string;
|
|
@@ -848,10 +911,12 @@ export type ThemeComponentTokens = {
|
|
|
848
911
|
modal?: ModalTokens;
|
|
849
912
|
drawer?: DrawerTokens;
|
|
850
913
|
popover?: PopoverTokens;
|
|
914
|
+
dropdown?: DropdownTokens;
|
|
851
915
|
select?: SelectTokens;
|
|
852
916
|
autocomplete?: AutocompleteTokens;
|
|
853
917
|
multiselect?: MultiSelectTokens;
|
|
854
918
|
datepicker?: DatePickerTokens;
|
|
919
|
+
daterangepicker?: DateRangePickerTokens;
|
|
855
920
|
pagination?: PaginationTokens;
|
|
856
921
|
switch?: SwitchTokens;
|
|
857
922
|
tooltip?: TooltipTokens;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
minWidth: string;
|
|
3
|
+
fontSize: string;
|
|
4
|
+
controlGap: string;
|
|
5
|
+
chevronSize: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
borderColor: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
textColor: string;
|
|
11
|
+
placeholderColor: string;
|
|
12
|
+
focusBorderColor: string;
|
|
13
|
+
hoverBorderColor: string;
|
|
14
|
+
disabledOpacity: string;
|
|
15
|
+
panelWidth: string;
|
|
16
|
+
panelBackgroundColor: string;
|
|
17
|
+
panelBorderColor: string;
|
|
18
|
+
panelPadding: string;
|
|
19
|
+
panelRadiusOffset: string;
|
|
20
|
+
panelShadow: string;
|
|
21
|
+
focusRingShadow: string;
|
|
22
|
+
headerGap: string;
|
|
23
|
+
headerPadding: string;
|
|
24
|
+
monthLabelFontSize: string;
|
|
25
|
+
monthLabelFontWeight: string;
|
|
26
|
+
navButtonSize: string;
|
|
27
|
+
navButtonRadius: string;
|
|
28
|
+
navButtonFontSize: string;
|
|
29
|
+
weekdayColor: string;
|
|
30
|
+
weekdayFontSize: string;
|
|
31
|
+
weekdaysMarginBottom: string;
|
|
32
|
+
daysGap: string;
|
|
33
|
+
daySize: string;
|
|
34
|
+
dayFontSize: string;
|
|
35
|
+
dayBorderRadius: string;
|
|
36
|
+
dayHoverBackgroundColor: string;
|
|
37
|
+
daySelectedBackgroundColor: string;
|
|
38
|
+
daySelectedTextColor: string;
|
|
39
|
+
dayRangeBackgroundColor: string;
|
|
40
|
+
dayRangeTextColor: string;
|
|
41
|
+
dayMutedColor: string;
|
|
42
|
+
dayTodayBorderColor: string;
|
|
43
|
+
small: {
|
|
44
|
+
padding: string;
|
|
45
|
+
fontSize: string;
|
|
46
|
+
daySize: string;
|
|
47
|
+
};
|
|
48
|
+
large: {
|
|
49
|
+
padding: string;
|
|
50
|
+
fontSize: string;
|
|
51
|
+
daySize: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
@@ -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;
|
|
@@ -576,6 +586,59 @@ declare const _default: {
|
|
|
576
586
|
daySize: string;
|
|
577
587
|
};
|
|
578
588
|
};
|
|
589
|
+
daterangepicker: {
|
|
590
|
+
minWidth: string;
|
|
591
|
+
fontSize: string;
|
|
592
|
+
controlGap: string;
|
|
593
|
+
chevronSize: string;
|
|
594
|
+
padding: string;
|
|
595
|
+
borderRadius: string;
|
|
596
|
+
borderColor: string;
|
|
597
|
+
backgroundColor: string;
|
|
598
|
+
textColor: string;
|
|
599
|
+
placeholderColor: string;
|
|
600
|
+
focusBorderColor: string;
|
|
601
|
+
hoverBorderColor: string;
|
|
602
|
+
disabledOpacity: string;
|
|
603
|
+
panelWidth: string;
|
|
604
|
+
panelBackgroundColor: string;
|
|
605
|
+
panelBorderColor: string;
|
|
606
|
+
panelPadding: string;
|
|
607
|
+
panelRadiusOffset: string;
|
|
608
|
+
panelShadow: string;
|
|
609
|
+
focusRingShadow: string;
|
|
610
|
+
headerGap: string;
|
|
611
|
+
headerPadding: string;
|
|
612
|
+
monthLabelFontSize: string;
|
|
613
|
+
monthLabelFontWeight: string;
|
|
614
|
+
navButtonSize: string;
|
|
615
|
+
navButtonRadius: string;
|
|
616
|
+
navButtonFontSize: string;
|
|
617
|
+
weekdayColor: string;
|
|
618
|
+
weekdayFontSize: string;
|
|
619
|
+
weekdaysMarginBottom: string;
|
|
620
|
+
daysGap: string;
|
|
621
|
+
daySize: string;
|
|
622
|
+
dayFontSize: string;
|
|
623
|
+
dayBorderRadius: string;
|
|
624
|
+
dayHoverBackgroundColor: string;
|
|
625
|
+
daySelectedBackgroundColor: string;
|
|
626
|
+
daySelectedTextColor: string;
|
|
627
|
+
dayRangeBackgroundColor: string;
|
|
628
|
+
dayRangeTextColor: string;
|
|
629
|
+
dayMutedColor: string;
|
|
630
|
+
dayTodayBorderColor: string;
|
|
631
|
+
small: {
|
|
632
|
+
padding: string;
|
|
633
|
+
fontSize: string;
|
|
634
|
+
daySize: string;
|
|
635
|
+
};
|
|
636
|
+
large: {
|
|
637
|
+
padding: string;
|
|
638
|
+
fontSize: string;
|
|
639
|
+
daySize: string;
|
|
640
|
+
};
|
|
641
|
+
};
|
|
579
642
|
pagination: {
|
|
580
643
|
gap: string;
|
|
581
644
|
itemMinWidth: string;
|