maz-ui 4.1.8-beta.1 → 4.1.8-beta.2
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/dist/components/MazAccordion.vue.d.ts +36 -0
- package/dist/components/MazAnimatedCounter.vue.d.ts +59 -0
- package/dist/components/MazAnimatedElement.vue.d.ts +44 -0
- package/dist/components/MazAnimatedText.vue.d.ts +57 -0
- package/dist/components/MazAvatar.vue.d.ts +99 -0
- package/dist/components/MazBackdrop.vue.d.ts +91 -0
- package/dist/components/MazBadge.vue.d.ts +61 -0
- package/dist/components/MazBottomSheet.vue.d.ts +35 -0
- package/dist/components/MazBtn.vue.d.ts +105 -0
- package/dist/components/MazCard.vue.d.ts +81 -0
- package/dist/components/MazCardSpotlight.vue.d.ts +57 -0
- package/dist/components/MazCarousel.vue.d.ts +48 -0
- package/dist/components/MazChart.vue.d.ts +53 -0
- package/dist/components/MazCheckbox.vue.d.ts +55 -0
- package/dist/components/MazChecklist.vue.d.ts +87 -0
- package/dist/components/MazCircularProgressBar.vue.d.ts +106 -0
- package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +28 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +133 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +142 -0
- package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
- package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +38 -0
- package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +15 -0
- package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
- package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +16 -0
- package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +107 -0
- package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +36 -0
- package/dist/components/MazDatePicker/types.d.ts +14 -0
- package/dist/components/MazDatePicker/utils.d.ts +61 -0
- package/dist/components/MazDatePicker.vue.d.ts +567 -0
- package/dist/components/MazDialog.vue.d.ts +247 -0
- package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
- package/dist/components/MazDialogConfirm.vue.d.ts +270 -0
- package/dist/components/MazDrawer.vue.d.ts +52 -0
- package/dist/components/MazDropdown.vue.d.ts +246 -0
- package/dist/components/MazDropzone.vue.d.ts +294 -0
- package/dist/components/MazExpandAnimation.vue.d.ts +44 -0
- package/dist/components/MazFullscreenLoader.vue.d.ts +26 -0
- package/dist/components/MazGallery.vue.d.ts +85 -0
- package/dist/components/MazIcon.vue.d.ts +33 -0
- package/dist/components/MazInput.vue.d.ts +225 -0
- package/dist/components/MazInputCode.vue.d.ts +49 -0
- package/dist/components/MazInputNumber.vue.d.ts +125 -0
- package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +29 -0
- package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
- package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +26 -0
- package/dist/components/MazInputPhoneNumber.vue.d.ts +421 -0
- package/dist/components/MazInputPrice.vue.d.ts +48 -0
- package/dist/components/MazInputTags.vue.d.ts +51 -0
- package/dist/components/MazLazyImg.vue.d.ts +78 -0
- package/dist/components/MazLink.vue.d.ts +116 -0
- package/dist/components/MazLoadingBar.vue.d.ts +12 -0
- package/dist/components/MazPagination.vue.d.ts +83 -0
- package/dist/components/MazPopover.vue.d.ts +258 -0
- package/dist/components/MazPullToRefresh.vue.d.ts +52 -0
- package/dist/components/MazRadio.vue.d.ts +55 -0
- package/dist/components/MazRadioButtons.vue.d.ts +74 -0
- package/dist/components/MazReadingProgressBar.vue.d.ts +55 -0
- package/dist/components/MazSelect.vue.d.ts +209 -0
- package/dist/components/MazSelectCountry.vue.d.ts +171 -0
- package/dist/components/MazSlider/utils.d.ts +15 -0
- package/dist/components/MazSlider.vue.d.ts +31 -0
- package/dist/components/MazSpinner.vue.d.ts +15 -0
- package/dist/components/MazStepper.vue.d.ts +60 -0
- package/dist/components/MazSwitch.vue.d.ts +69 -0
- package/dist/components/MazTable.vue.d.ts +324 -0
- package/dist/components/MazTableCell.vue.d.ts +17 -0
- package/dist/components/MazTableRow.vue.d.ts +23 -0
- package/dist/components/MazTableTitle.vue.d.ts +17 -0
- package/dist/components/MazTabs.vue.d.ts +30 -0
- package/dist/components/MazTabsBar.vue.d.ts +96 -0
- package/dist/components/MazTabsContent.vue.d.ts +17 -0
- package/dist/components/MazTabsContentItem.vue.d.ts +31 -0
- package/dist/components/MazTextarea.vue.d.ts +88 -0
- package/dist/components/constantes.d.ts +2 -0
- package/dist/components/index.d.ts +109 -0
- package/dist/components/types.d.ts +4 -0
- package/dist/composables/index.d.ts +22 -0
- package/dist/composables/useAos.d.ts +2 -0
- package/dist/composables/useBreakpoints.d.ts +38 -0
- package/dist/composables/useDialog.d.ts +2 -0
- package/dist/composables/useDisplayNames.d.ts +101 -0
- package/dist/composables/useDropzone.d.ts +27 -0
- package/dist/composables/useFormField.d.ts +16 -0
- package/dist/composables/useFormValidator/config.d.ts +7 -0
- package/dist/composables/useFormValidator/dom-events.d.ts +19 -0
- package/dist/composables/useFormValidator/state-management.d.ts +72 -0
- package/dist/composables/useFormValidator/types.d.ts +98 -0
- package/dist/composables/useFormValidator/validation.d.ts +37 -0
- package/dist/composables/useFormValidator.d.ts +23 -0
- package/dist/composables/useFreezeValue.d.ts +5 -0
- package/dist/composables/useIdleTimeout.d.ts +5 -0
- package/dist/composables/useInjectStrict.d.ts +2 -0
- package/dist/composables/useInstanceUniqId.d.ts +4 -0
- package/dist/composables/useMountComponent.d.ts +14 -0
- package/dist/composables/useMutationObserver.d.ts +13 -0
- package/dist/composables/useReadingTime.d.ts +25 -0
- package/dist/composables/useStringMatching.d.ts +5 -0
- package/dist/composables/useSwipe.d.ts +14 -0
- package/dist/composables/useTimer.d.ts +30 -0
- package/dist/composables/useToast.d.ts +22 -0
- package/dist/composables/useUserVisibility.d.ts +5 -0
- package/dist/composables/useWait.d.ts +2 -0
- package/dist/composables/useWindowSize.d.ts +32 -0
- package/dist/directives/index.d.ts +5 -0
- package/dist/directives/vClickOutside.d.ts +36 -0
- package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +50 -0
- package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +5 -0
- package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
- package/dist/directives/vFullscreenImg.d.ts +11 -0
- package/dist/directives/vLazyImg/lazy-img.directive.d.ts +5 -0
- package/dist/directives/vLazyImg/lazy-img.handler.d.ts +38 -0
- package/dist/directives/vLazyImg/types.d.ts +29 -0
- package/dist/directives/vLazyImg.d.ts +12 -0
- package/dist/directives/vTooltip.d.ts +54 -0
- package/dist/directives/vZoomImg/style.d.ts +1 -0
- package/dist/directives/vZoomImg/svgs.d.ts +3 -0
- package/dist/directives/vZoomImg/zoom-img.directive.d.ts +8 -0
- package/dist/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
- package/dist/directives/vZoomImg.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/plugins/aos.d.ts +81 -0
- package/dist/plugins/dialog/DialogHandler.d.ts +16 -0
- package/dist/plugins/dialog.d.ts +26 -0
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/maz-ui.d.ts +43 -0
- package/dist/plugins/toast/MazToast.vue.d.ts +34 -0
- package/dist/plugins/toast/ToastHandler.d.ts +29 -0
- package/dist/plugins/toast/types.d.ts +104 -0
- package/dist/plugins/toast.d.ts +25 -0
- package/dist/plugins/wait.d.ts +33 -0
- package/dist/resolvers/MazComponentsResolver.d.ts +10 -0
- package/dist/resolvers/MazDirectivesResolver.d.ts +11 -0
- package/dist/resolvers/MazModulesResolver.d.ts +11 -0
- package/dist/resolvers/index.d.ts +3 -0
- package/dist/tailwindcss/index.d.ts +6 -0
- package/dist/tailwindcss/tailwind.config.d.ts +89 -0
- package/dist/tailwindcss/utils/colors.d.ts +7 -0
- package/dist/tailwindcss/variables/breakpoints.d.ts +15 -0
- package/dist/tailwindcss/variables/colors.d.ts +21 -0
- package/dist/tailwindcss/variables/design-tokens.d.ts +35 -0
- package/dist/tailwindcss/variables/utilities.d.ts +17 -0
- package/dist/tailwindcss/variables/z-indexes.d.ts +14 -0
- package/package.json +2 -2
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { MazColor } from '../../types';
|
|
4
|
+
import { MazDatePickerValue } from '../types';
|
|
5
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: PropType<MazDatePickerValue>;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
color: {
|
|
11
|
+
type: PropType<MazColor>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
locale: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
hasTime: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
firstDayOfWeek: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
inline: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
calendarDate: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
offsetMonth: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
minDate: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
maxDate: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
disabledWeekly: {
|
|
47
|
+
type: PropType<number[]>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
disabledDates: {
|
|
51
|
+
type: PropType<string[]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
hoverredDay: {
|
|
55
|
+
type: PropType<Dayjs>;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
disabled: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
range: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
|
+
"update:model-value": (...args: any[]) => void;
|
|
68
|
+
"update:hoverred-day": (...args: any[]) => void;
|
|
69
|
+
"update:calendar-date": (...args: any[]) => void;
|
|
70
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
71
|
+
modelValue: {
|
|
72
|
+
type: PropType<MazDatePickerValue>;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
color: {
|
|
76
|
+
type: PropType<MazColor>;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
locale: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
hasTime: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
firstDayOfWeek: {
|
|
88
|
+
type: NumberConstructor;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
91
|
+
inline: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
required: true;
|
|
94
|
+
};
|
|
95
|
+
calendarDate: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
required: true;
|
|
98
|
+
};
|
|
99
|
+
offsetMonth: {
|
|
100
|
+
type: NumberConstructor;
|
|
101
|
+
default: number;
|
|
102
|
+
};
|
|
103
|
+
minDate: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: undefined;
|
|
106
|
+
};
|
|
107
|
+
maxDate: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: undefined;
|
|
110
|
+
};
|
|
111
|
+
disabledWeekly: {
|
|
112
|
+
type: PropType<number[]>;
|
|
113
|
+
required: true;
|
|
114
|
+
};
|
|
115
|
+
disabledDates: {
|
|
116
|
+
type: PropType<string[]>;
|
|
117
|
+
required: true;
|
|
118
|
+
};
|
|
119
|
+
hoverredDay: {
|
|
120
|
+
type: PropType<Dayjs>;
|
|
121
|
+
default: undefined;
|
|
122
|
+
};
|
|
123
|
+
disabled: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
required: true;
|
|
126
|
+
};
|
|
127
|
+
range: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
required: true;
|
|
130
|
+
};
|
|
131
|
+
}>> & Readonly<{
|
|
132
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
133
|
+
"onUpdate:hoverred-day"?: ((...args: any[]) => any) | undefined;
|
|
134
|
+
"onUpdate:calendar-date"?: ((...args: any[]) => any) | undefined;
|
|
135
|
+
}>, {
|
|
136
|
+
modelValue: MazDatePickerValue;
|
|
137
|
+
minDate: string;
|
|
138
|
+
maxDate: string;
|
|
139
|
+
hoverredDay: Dayjs;
|
|
140
|
+
offsetMonth: number;
|
|
141
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
142
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
calendarDate: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
6
|
+
locale: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
double: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
next: (...args: any[]) => void;
|
|
16
|
+
previous: (...args: any[]) => void;
|
|
17
|
+
"update:calendar-date": (...args: any[]) => void;
|
|
18
|
+
"open-month-switcher": (...args: any[]) => void;
|
|
19
|
+
"open-year-switcher": (...args: any[]) => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
calendarDate: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
locale: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
double: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{
|
|
34
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
onPrevious?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
"onUpdate:calendar-date"?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
"onOpen-month-switcher"?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
"onOpen-year-switcher"?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
calendarDate: string;
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MazColor } from '../types';
|
|
2
|
+
import { MazDatePickerShortcut, MazDatePickerValue } from './types';
|
|
3
|
+
import { DateTimeFormatOptions } from './utils';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
modelValue: MazDatePickerValue | undefined;
|
|
6
|
+
calendarDate: string;
|
|
7
|
+
color: MazColor;
|
|
8
|
+
locale: string;
|
|
9
|
+
hideHeader: boolean;
|
|
10
|
+
firstDayOfWeek: number;
|
|
11
|
+
double: boolean;
|
|
12
|
+
hasDate: boolean;
|
|
13
|
+
minDate: string | undefined;
|
|
14
|
+
maxDate: string | undefined;
|
|
15
|
+
inline: boolean;
|
|
16
|
+
shortcuts: MazDatePickerShortcut[] | false;
|
|
17
|
+
shortcut: string | undefined;
|
|
18
|
+
hasTime: boolean;
|
|
19
|
+
format: string;
|
|
20
|
+
isHour12: boolean;
|
|
21
|
+
formatterOptions: DateTimeFormatOptions;
|
|
22
|
+
minuteInterval: number;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
disabledWeekly: number[];
|
|
25
|
+
disabledHours: number[];
|
|
26
|
+
disabledDates: string[];
|
|
27
|
+
range: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
close: (...args: any[]) => void;
|
|
31
|
+
"update:model-value": (...args: any[]) => void;
|
|
32
|
+
"update:calendar-date": (...args: any[]) => void;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
"onUpdate:calendar-date"?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MazColor } from '../types';
|
|
2
|
+
import { MazDatePickerValue } from './types';
|
|
3
|
+
import { DateTimeFormatOptions } from './utils';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
modelValue: MazDatePickerValue | undefined;
|
|
6
|
+
color: MazColor;
|
|
7
|
+
locale: string;
|
|
8
|
+
hideShortcuts: boolean;
|
|
9
|
+
double: boolean;
|
|
10
|
+
hasDate: boolean;
|
|
11
|
+
hasTime: boolean;
|
|
12
|
+
formatterOptions: DateTimeFormatOptions;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { MazColor } from '../types';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
calendarDate: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
color: {
|
|
9
|
+
type: PropType<MazColor>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
locale: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
double: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
close: (...args: any[]) => void;
|
|
22
|
+
"update:calendar-date": (...args: any[]) => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
calendarDate: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
color: {
|
|
29
|
+
type: PropType<MazColor>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
locale: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
double: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
}>> & Readonly<{
|
|
41
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
"onUpdate:calendar-date"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MazColor } from '../types';
|
|
2
|
+
import { MazDatePickerShortcut, MazDatePickerValue } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
color: MazColor;
|
|
5
|
+
modelValue: MazDatePickerValue;
|
|
6
|
+
shortcuts: MazDatePickerShortcut[] | false;
|
|
7
|
+
double: boolean;
|
|
8
|
+
shortcut: MazDatePickerShortcut['identifier'] | undefined;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:model-value": (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { MazColor } from '../types';
|
|
3
|
+
import { MazDatePickerValue } from './types';
|
|
4
|
+
import { DateTimeFormatOptions } from './utils';
|
|
5
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: PropType<MazDatePickerValue>;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
formatterOptions: {
|
|
11
|
+
type: PropType<DateTimeFormatOptions>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
color: {
|
|
15
|
+
type: PropType<MazColor>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
hasDate: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
minuteInterval: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
disabledHours: {
|
|
27
|
+
type: PropType<number[]>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
format: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
isHour12: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
minDate: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
maxDate: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
disabled: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
51
|
+
"update:model-value": (...args: any[]) => void;
|
|
52
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
modelValue: {
|
|
54
|
+
type: PropType<MazDatePickerValue>;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
formatterOptions: {
|
|
58
|
+
type: PropType<DateTimeFormatOptions>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
color: {
|
|
62
|
+
type: PropType<MazColor>;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
hasDate: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
minuteInterval: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
required: true;
|
|
72
|
+
};
|
|
73
|
+
disabledHours: {
|
|
74
|
+
type: PropType<number[]>;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
format: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
isHour12: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
minDate: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: undefined;
|
|
88
|
+
};
|
|
89
|
+
maxDate: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: undefined;
|
|
92
|
+
};
|
|
93
|
+
disabled: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
required: true;
|
|
96
|
+
};
|
|
97
|
+
}>> & Readonly<{
|
|
98
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
}>, {
|
|
100
|
+
modelValue: MazDatePickerValue;
|
|
101
|
+
minDate: string;
|
|
102
|
+
maxDate: string;
|
|
103
|
+
disabledHours: number[];
|
|
104
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
105
|
+
MazDatePickerTime: HTMLDivElement;
|
|
106
|
+
}, HTMLDivElement>;
|
|
107
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { MazColor } from '../types';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
color: {
|
|
5
|
+
type: PropType<MazColor>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
locale: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
calendarDate: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
close: (...args: any[]) => void;
|
|
18
|
+
"update:calendar-date": (...args: any[]) => void;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
color: {
|
|
21
|
+
type: PropType<MazColor>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
locale: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
calendarDate: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{
|
|
33
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
"onUpdate:calendar-date"?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface MazDatePickerRangeValue {
|
|
2
|
+
start: string;
|
|
3
|
+
end: string;
|
|
4
|
+
}
|
|
5
|
+
export type MazDatePickerPartialRangeValue = Partial<MazDatePickerRangeValue>;
|
|
6
|
+
export type MazDatePickerValue = string | undefined | MazDatePickerPartialRangeValue;
|
|
7
|
+
export interface MazDatePickerShortcut {
|
|
8
|
+
identifier: string;
|
|
9
|
+
label: string;
|
|
10
|
+
value: {
|
|
11
|
+
start: string;
|
|
12
|
+
end: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
2
|
+
import { ConfigType, OpUnitType } from 'dayjs';
|
|
3
|
+
import { MazDatePickerPartialRangeValue, MazDatePickerValue } from './types';
|
|
4
|
+
export type DateTimeFormatOptions = Pick<Intl.DateTimeFormatOptions, 'hour12' | 'dateStyle' | 'timeStyle' | 'timeZone'>;
|
|
5
|
+
export declare function getFormattedDate({ value, locale, options, }: {
|
|
6
|
+
value?: string;
|
|
7
|
+
locale: string;
|
|
8
|
+
options?: Intl.DateTimeFormatOptions;
|
|
9
|
+
}): string | undefined;
|
|
10
|
+
export declare function getRangeFormattedDate({ value, locale, options, }: {
|
|
11
|
+
value: MazDatePickerPartialRangeValue;
|
|
12
|
+
locale: string;
|
|
13
|
+
options: Intl.DateTimeFormatOptions;
|
|
14
|
+
}): string | undefined;
|
|
15
|
+
export declare function getFirstDayOfMonth(value: ConfigType): number;
|
|
16
|
+
export declare function getDaysOfWeek(locale: string, firstDayOfWeek: number): string[];
|
|
17
|
+
export declare function getDaysInMonth(date: ConfigType): number;
|
|
18
|
+
export declare function isToday(date: ConfigType): boolean;
|
|
19
|
+
export declare function isSameDate(date: ConfigType, date2: ConfigType, unit: OpUnitType): boolean;
|
|
20
|
+
export declare function isSmaller(date: ConfigType, date2: ConfigType): boolean;
|
|
21
|
+
export declare function isSameDay(date: ConfigType, dayNumber: number): boolean;
|
|
22
|
+
export declare function getISODate(value?: ConfigType, format?: string): string | undefined;
|
|
23
|
+
export declare function getRangeISODate(value?: MazDatePickerPartialRangeValue, format?: string): {
|
|
24
|
+
start: string | undefined;
|
|
25
|
+
end: string | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
interface CheckValueResponse {
|
|
28
|
+
newValue?: string;
|
|
29
|
+
newCurrentDate?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function checkValueWithMinMaxDates({ value, minDate, maxDate, format, minMaxAuto, }: {
|
|
32
|
+
value: string | undefined;
|
|
33
|
+
minDate: string | undefined;
|
|
34
|
+
maxDate: string | undefined;
|
|
35
|
+
format: string;
|
|
36
|
+
minMaxAuto: boolean;
|
|
37
|
+
}): CheckValueResponse;
|
|
38
|
+
export declare function isValueDisabledWeekly({ value, disabledWeekly, }: {
|
|
39
|
+
value: string;
|
|
40
|
+
disabledWeekly: number[];
|
|
41
|
+
}): boolean;
|
|
42
|
+
export declare function isValueDisabledDate({ value, disabledDates, }: {
|
|
43
|
+
value: string;
|
|
44
|
+
disabledDates: string[];
|
|
45
|
+
}): boolean;
|
|
46
|
+
export declare function scrollToTarget(scrollContainer: HTMLElement, target: HTMLElement, offset?: number, hasSmoothEffect?: boolean): void;
|
|
47
|
+
export declare function findNearestNumberInList(list: number[], number: number): number;
|
|
48
|
+
export declare function convertHour24to12Format(baseHour: number): number;
|
|
49
|
+
export declare function convertHour12to24Format(baseHour: number): number;
|
|
50
|
+
export declare function convert12To24TimeFormat(timeStr: string): string;
|
|
51
|
+
export declare function isRangeValue(value: MazDatePickerValue): value is MazDatePickerPartialRangeValue;
|
|
52
|
+
export declare function isValidDate(value: unknown): value is ConfigType;
|
|
53
|
+
export declare function getDefaultsShortcuts(t: MazUiTranslationsNestedSchema['datePicker']['shortcuts']): {
|
|
54
|
+
label: string;
|
|
55
|
+
identifier: string;
|
|
56
|
+
value: {
|
|
57
|
+
start: string;
|
|
58
|
+
end: string;
|
|
59
|
+
};
|
|
60
|
+
}[];
|
|
61
|
+
export {};
|