bge-ui 1.3.4 → 1.3.6
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/datePicker/components/ActionRow.vue.d.ts +1051 -0
- package/dist/datePicker/components/Common/ArrowBtn.vue.d.ts +29 -0
- package/dist/datePicker/components/Common/InstanceWrap.vue.d.ts +29 -0
- package/dist/datePicker/components/Common/SelectionOverlay.vue.d.ts +55 -0
- package/dist/datePicker/components/DatePicker/DatePicker.vue.d.ts +1114 -0
- package/dist/datePicker/components/DatePicker/DpCalendar.vue.d.ts +1085 -0
- package/dist/datePicker/components/DatePicker/DpHeader.vue.d.ts +1103 -0
- package/dist/datePicker/components/DatePicker/date-picker.d.ts +35 -0
- package/dist/datePicker/components/DatepickerInput.vue.d.ts +1008 -0
- package/dist/datePicker/components/DatepickerMenu.vue.d.ts +1061 -0
- package/dist/datePicker/components/Icons/CalendarIcon.d.ts +9 -0
- package/dist/datePicker/components/Icons/CancelIcon.d.ts +9 -0
- package/dist/datePicker/components/Icons/ChevronDownIcon.d.ts +9 -0
- package/dist/datePicker/components/Icons/ChevronLeftIcon.d.ts +9 -0
- package/dist/datePicker/components/Icons/ChevronRightIcon.d.ts +9 -0
- package/dist/datePicker/components/Icons/ChevronUpIcon.d.ts +9 -0
- package/dist/datePicker/components/Icons/ClockIcon.d.ts +9 -0
- package/dist/datePicker/components/Icons/index.d.ts +7 -0
- package/dist/datePicker/components/MonthPicker/MonthPicker.vue.d.ts +1071 -0
- package/dist/datePicker/components/MonthPicker/month-picker.d.ts +34 -0
- package/dist/datePicker/components/QuarterPicker/QuarterPicker.vue.d.ts +1043 -0
- package/dist/datePicker/components/QuarterPicker/quarter-picker.d.ts +25 -0
- package/dist/datePicker/components/TimePicker/TimeInput.vue.d.ts +1116 -0
- package/dist/datePicker/components/TimePicker/TimePicker.vue.d.ts +1087 -0
- package/dist/datePicker/components/TimePicker/TimePickerSolo.vue.d.ts +1036 -0
- package/dist/datePicker/components/TimePicker/time-picker-utils.d.ts +15 -0
- package/dist/datePicker/components/TimePicker/time-picker.d.ts +13 -0
- package/dist/datePicker/components/YearPicker/YearPicker.vue.d.ts +1040 -0
- package/dist/datePicker/components/YearPicker/year-picker.d.ts +9 -0
- package/dist/datePicker/components/shared/YearModePicker.vue.d.ts +1075 -0
- package/dist/datePicker/components/shared/month-quarter-picker.d.ts +29 -0
- package/dist/datePicker/composables/arrow-navigate.d.ts +26 -0
- package/dist/datePicker/composables/calendar-class.d.ts +8 -0
- package/dist/datePicker/composables/common.d.ts +6 -0
- package/dist/datePicker/composables/defaults.d.ts +37 -0
- package/dist/datePicker/composables/external-internal-mapper.d.ts +14 -0
- package/dist/datePicker/composables/flow.d.ts +10 -0
- package/dist/datePicker/composables/index.d.ts +14 -0
- package/dist/datePicker/composables/model.d.ts +17 -0
- package/dist/datePicker/composables/month-year.d.ts +10 -0
- package/dist/datePicker/composables/position.d.ts +25 -0
- package/dist/datePicker/composables/shared.d.ts +12 -0
- package/dist/datePicker/composables/slots.d.ts +10 -0
- package/dist/datePicker/composables/state.d.ts +8 -0
- package/dist/datePicker/composables/transition.d.ts +7 -0
- package/dist/datePicker/composables/validation.d.ts +12 -0
- package/dist/datePicker/constants/index.d.ts +43 -0
- package/dist/datePicker/datePicker.vue.d.ts +1006 -0
- package/dist/datePicker/directives/clickOutside.d.ts +2 -0
- package/dist/datePicker/index.vue.d.ts +1012 -0
- package/dist/datePicker/interfaces.d.ts +323 -0
- package/dist/datePicker/props.d.ts +865 -0
- package/dist/datePicker/utils/date-utils.d.ts +45 -0
- package/dist/datePicker/utils/defaults.d.ts +42 -0
- package/dist/datePicker/utils/timezone.d.ts +8 -0
- package/dist/datePicker/utils/type-guard.d.ts +1 -0
- package/dist/datePicker/utils/util.d.ts +57 -0
- package/dist/dialog/index.vue.d.ts +6 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +13008 -1250
- package/dist/style.css +1188 -1
- package/dist/tooltip/index.vue.d.ts +2 -2
- package/dist/tooltip/usePopper.d.ts +5 -5
- package/package.json +3 -2
- package/src/datePicker/components/ActionRow.vue +216 -0
- package/src/datePicker/components/Common/ArrowBtn.vue +42 -0
- package/src/datePicker/components/Common/InstanceWrap.vue +28 -0
- package/src/datePicker/components/Common/SelectionOverlay.vue +320 -0
- package/src/datePicker/components/DatePicker/DatePicker.vue +302 -0
- package/src/datePicker/components/DatePicker/DpCalendar.vue +405 -0
- package/src/datePicker/components/DatePicker/DpHeader.vue +332 -0
- package/src/datePicker/components/DatePicker/date-picker.ts +674 -0
- package/src/datePicker/components/DatepickerInput.vue +334 -0
- package/src/datePicker/components/DatepickerMenu.vue +424 -0
- package/src/datePicker/components/Icons/CalendarIcon.ts +40 -0
- package/src/datePicker/components/Icons/CancelIcon.ts +32 -0
- package/src/datePicker/components/Icons/ChevronDownIcon.ts +29 -0
- package/src/datePicker/components/Icons/ChevronLeftIcon.ts +29 -0
- package/src/datePicker/components/Icons/ChevronRightIcon.ts +29 -0
- package/src/datePicker/components/Icons/ChevronUpIcon.ts +29 -0
- package/src/datePicker/components/Icons/ClockIcon.ts +32 -0
- package/src/datePicker/components/Icons/index.ts +8 -0
- package/src/datePicker/components/MonthPicker/MonthPicker.vue +130 -0
- package/src/datePicker/components/MonthPicker/month-picker.ts +232 -0
- package/src/datePicker/components/QuarterPicker/QuarterPicker.vue +111 -0
- package/src/datePicker/components/QuarterPicker/quarter-picker.ts +153 -0
- package/src/datePicker/components/TimePicker/TimeInput.vue +477 -0
- package/src/datePicker/components/TimePicker/TimePicker.vue +265 -0
- package/src/datePicker/components/TimePicker/TimePickerSolo.vue +79 -0
- package/src/datePicker/components/TimePicker/time-picker-utils.ts +179 -0
- package/src/datePicker/components/TimePicker/time-picker.ts +112 -0
- package/src/datePicker/components/YearPicker/YearPicker.vue +70 -0
- package/src/datePicker/components/YearPicker/year-picker.ts +109 -0
- package/src/datePicker/components/shared/YearModePicker.vue +105 -0
- package/src/datePicker/components/shared/month-quarter-picker.ts +199 -0
- package/src/datePicker/composables/arrow-navigate.ts +191 -0
- package/src/datePicker/composables/calendar-class.ts +383 -0
- package/src/datePicker/composables/common.ts +25 -0
- package/src/datePicker/composables/defaults.ts +123 -0
- package/src/datePicker/composables/external-internal-mapper.ts +442 -0
- package/src/datePicker/composables/flow.ts +70 -0
- package/src/datePicker/composables/index.ts +14 -0
- package/src/datePicker/composables/model.ts +89 -0
- package/src/datePicker/composables/month-year.ts +72 -0
- package/src/datePicker/composables/position.ts +297 -0
- package/src/datePicker/composables/shared.ts +98 -0
- package/src/datePicker/composables/slots.ts +84 -0
- package/src/datePicker/composables/state.ts +25 -0
- package/src/datePicker/composables/transition.ts +18 -0
- package/src/datePicker/composables/validation.ts +312 -0
- package/src/datePicker/constants/index.ts +49 -0
- package/src/datePicker/datePicker.vue +554 -0
- package/src/datePicker/directives/clickOutside.ts +79 -0
- package/src/datePicker/index.vue +158 -0
- package/src/datePicker/interfaces.ts +404 -0
- package/src/datePicker/props.ts +173 -0
- package/src/datePicker/style/components/_ActionRow.scss +73 -0
- package/src/datePicker/style/components/_Calendar.scss +284 -0
- package/src/datePicker/style/components/_DatepickerInput.scss +109 -0
- package/src/datePicker/style/components/_DatepickerMenu.scss +213 -0
- package/src/datePicker/style/components/_MonthYearInput.scss +97 -0
- package/src/datePicker/style/components/_QuarterPicker.scss +53 -0
- package/src/datePicker/style/components/_SelectionOverlay.scss +142 -0
- package/src/datePicker/style/components/_TimeInput.scss +181 -0
- package/src/datePicker/style/components/_shared.scss +15 -0
- package/src/datePicker/style/main.scss +259 -0
- package/src/datePicker/utils/date-utils.ts +440 -0
- package/src/datePicker/utils/defaults.ts +327 -0
- package/src/datePicker/utils/timezone.ts +38 -0
- package/src/datePicker/utils/type-guard.ts +3 -0
- package/src/datePicker/utils/util.ts +322 -0
- package/src/dialog/index.vue +9 -0
- package/src/form/index.vue +2 -1
- package/src/index.ts +6 -2
- package/src/slider/index.vue +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ComputedRef, WritableComputedRef, Ref } from 'vue';
|
|
2
|
+
import type { InternalModuleValue, MultiCalendarsOptions, ICalendarData, OverlayGridItem, VueEmit, Highlight, HighlightFn, PropDates, DateFilter, RangeConfig } from '../../interfaces';
|
|
3
|
+
import type { PickerBasePropsType } from '../../props';
|
|
4
|
+
interface Opts {
|
|
5
|
+
multiCalendars: ComputedRef<MultiCalendarsOptions>;
|
|
6
|
+
calendars: Ref<ICalendarData[]>;
|
|
7
|
+
modelValue: WritableComputedRef<InternalModuleValue>;
|
|
8
|
+
props: PickerBasePropsType;
|
|
9
|
+
year: ComputedRef<(instance: number) => number>;
|
|
10
|
+
month: ComputedRef<(instance: number) => number>;
|
|
11
|
+
highlight: ComputedRef<Highlight | HighlightFn>;
|
|
12
|
+
propDates: ComputedRef<PropDates>;
|
|
13
|
+
filters: ComputedRef<DateFilter>;
|
|
14
|
+
range: ComputedRef<RangeConfig>;
|
|
15
|
+
emit: VueEmit;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Both modes shared logic
|
|
19
|
+
*/
|
|
20
|
+
export declare const useMonthOrQuarterPicker: ({ multiCalendars, range, highlight, propDates, calendars, modelValue, props, filters, year, month, emit, }: Opts) => {
|
|
21
|
+
isDisabled: ComputedRef<(instance: number, next: boolean) => boolean>;
|
|
22
|
+
groupedYears: ComputedRef<(instance: number) => OverlayGridItem[][]>;
|
|
23
|
+
showYearPicker: Ref<boolean[]>;
|
|
24
|
+
selectYear: (year: number, instance: number) => void;
|
|
25
|
+
toggleYearPicker: (instance: number, flow?: boolean, show?: boolean) => void;
|
|
26
|
+
handleYearSelect: (year: number, instance: number) => void;
|
|
27
|
+
handleYear: (instance: number, increment?: boolean) => void;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const useArrowNavigation: () => {
|
|
2
|
+
buildMatrix: (elements: Array<HTMLElement | null>, set: 'monthYear' | 'time' | 'actionRow') => void;
|
|
3
|
+
buildMultiLevelMatrix: (elements: HTMLElement[][], set: 'calendar' | 'selectionGrid' | 'monthPicker') => void;
|
|
4
|
+
setTimePickerBackRef: (el: HTMLElement | null) => void;
|
|
5
|
+
setSelectionGrid: (value: boolean) => void;
|
|
6
|
+
setTimePicker: (value: boolean, mode?: boolean) => void;
|
|
7
|
+
setTimePickerElements: (elements: HTMLElement[][], order?: 0 | 1) => void;
|
|
8
|
+
arrowRight: () => void;
|
|
9
|
+
arrowLeft: () => void;
|
|
10
|
+
arrowUp: () => void;
|
|
11
|
+
arrowDown: () => void;
|
|
12
|
+
clearArrowNav: () => void;
|
|
13
|
+
setMonthPicker: (value: boolean) => void;
|
|
14
|
+
refSets: {
|
|
15
|
+
monthYear: (HTMLElement | null)[];
|
|
16
|
+
calendar: (HTMLElement | null)[][];
|
|
17
|
+
time: (HTMLElement | null)[];
|
|
18
|
+
actionRow: (HTMLElement | null)[];
|
|
19
|
+
selectionGrid: (HTMLElement | null)[][];
|
|
20
|
+
timePicker: {
|
|
21
|
+
'0': (HTMLElement | null)[][];
|
|
22
|
+
'1': (HTMLElement | null)[][];
|
|
23
|
+
};
|
|
24
|
+
monthPicker: (HTMLElement | null)[][];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { UnwrapRef, WritableComputedRef } from 'vue';
|
|
2
|
+
import type { ICalendarDay, InternalModuleValue } from '../interfaces';
|
|
3
|
+
import type { PickerBasePropsType } from '../props';
|
|
4
|
+
export declare const useCalendarClass: (modelValue: WritableComputedRef<InternalModuleValue>, props: PickerBasePropsType) => {
|
|
5
|
+
setHoverDate: (day: UnwrapRef<ICalendarDay>) => void;
|
|
6
|
+
clearHoverDate: () => void;
|
|
7
|
+
getDayClassData: (day: ICalendarDay) => Record<string, boolean>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Flow, MultiCalendarsOptions } from '../interfaces';
|
|
2
|
+
export declare const useCommon: () => {
|
|
3
|
+
hideNavigationButtons: import("vue").ComputedRef<(hideNavigation: Flow[] | undefined, key: Flow) => boolean | undefined>;
|
|
4
|
+
showLeftIcon: import("vue").ComputedRef<(multiCalendars: MultiCalendarsOptions, instance: number) => boolean>;
|
|
5
|
+
showRightIcon: import("vue").ComputedRef<(multiCalendars: MultiCalendarsOptions, instance: number) => boolean>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { TimeModel } from '../interfaces';
|
|
2
|
+
import type { AllPropsType, PickerBasePropsType } from '../props';
|
|
3
|
+
export declare const useDefaults: (props: AllPropsType | PickerBasePropsType) => {
|
|
4
|
+
defaultedTransitions: import("vue").ComputedRef<import("../interfaces").Transition>;
|
|
5
|
+
defaultedMultiCalendars: import("vue").ComputedRef<import("../interfaces").MultiCalendarsOptions>;
|
|
6
|
+
defaultedStartTime: import("vue").ComputedRef<TimeModel | TimeModel[] | null>;
|
|
7
|
+
defaultedAriaLabels: import("vue").ComputedRef<import("../interfaces").AriaLabels>;
|
|
8
|
+
defaultedFilters: import("vue").ComputedRef<import("../interfaces").DateFilter>;
|
|
9
|
+
defaultedActionRow: import("vue").ComputedRef<import("../interfaces").ActionRowData>;
|
|
10
|
+
defaultedPreviewFormat: import("vue").ComputedRef<import("../interfaces").IFormat>;
|
|
11
|
+
defaultedTextInput: import("vue").ComputedRef<import("../interfaces").TextInputOptions & {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
defaultedInline: import("vue").ComputedRef<import("../interfaces").InlineOptions>;
|
|
15
|
+
defaultedConfig: import("vue").ComputedRef<import("../interfaces").Config>;
|
|
16
|
+
defaultedHighlight: import("vue").ComputedRef<import("../interfaces").Highlight | import("../interfaces").HighlightFn>;
|
|
17
|
+
defaultedWeekNumbers: import("vue").ComputedRef<import("../interfaces").WeekNumbersOpts>;
|
|
18
|
+
defaultedRange: import("vue").ComputedRef<import("../interfaces").RangeConfig>;
|
|
19
|
+
propDates: import("vue").ComputedRef<import("../interfaces").PropDates>;
|
|
20
|
+
defaultedTz: import("vue").ComputedRef<{
|
|
21
|
+
timezone: undefined;
|
|
22
|
+
exactMatch: boolean;
|
|
23
|
+
emitTimezone: undefined;
|
|
24
|
+
dateInTz?: undefined;
|
|
25
|
+
convertModel?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
timezone: string | undefined;
|
|
28
|
+
exactMatch: boolean;
|
|
29
|
+
dateInTz: string | undefined;
|
|
30
|
+
emitTimezone: string | undefined;
|
|
31
|
+
convertModel: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
defaultedMultiDates: import("vue").ComputedRef<import("../interfaces").MultiDatesDefault>;
|
|
34
|
+
defaultedUI: import("vue").ComputedRef<import("../interfaces").UIParsed>;
|
|
35
|
+
getDefaultPattern: () => string;
|
|
36
|
+
getDefaultStartTime: () => TimeModel | TimeModel[] | null;
|
|
37
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ModelValue, VueEmit } from '../interfaces';
|
|
2
|
+
import type { AllPropsType } from '../props';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* Handles values from external to internal and vise versa
|
|
6
|
+
*/
|
|
7
|
+
export declare const useExternalInternalMapper: (emit: VueEmit, props: AllPropsType, isInputFocused: Ref<boolean>) => {
|
|
8
|
+
inputValue: Ref<string>;
|
|
9
|
+
internalModelValue: Ref<any>;
|
|
10
|
+
checkBeforeEmit: () => boolean;
|
|
11
|
+
parseExternalModelValue: (value: ModelValue) => void;
|
|
12
|
+
formatInputValue: () => void;
|
|
13
|
+
emitModelValue: (returnOnly?: boolean) => void | ModelValue | Date[][];
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { VueEmit } from '../interfaces';
|
|
3
|
+
import type { AllPropsType } from '../props';
|
|
4
|
+
export declare const useFlow: (props: AllPropsType, emit: VueEmit, dynCmpRef: Ref<any>) => {
|
|
5
|
+
childMount: (cmp: unknown) => void;
|
|
6
|
+
updateFlowStep: () => void;
|
|
7
|
+
resetFlow: () => void;
|
|
8
|
+
handleFlow: (skipStep?: number) => void;
|
|
9
|
+
flowStep: Ref<number>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './state';
|
|
2
|
+
export * from './arrow-navigate';
|
|
3
|
+
export * from './external-internal-mapper';
|
|
4
|
+
export * from './month-year';
|
|
5
|
+
export * from './position';
|
|
6
|
+
export * from './slots';
|
|
7
|
+
export * from './transition';
|
|
8
|
+
export * from './model';
|
|
9
|
+
export * from './defaults';
|
|
10
|
+
export * from './calendar-class';
|
|
11
|
+
export * from './validation';
|
|
12
|
+
export * from './common';
|
|
13
|
+
export * from './flow';
|
|
14
|
+
export * from './month-year';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { InternalModuleValue, VueEmit } from '../interfaces';
|
|
2
|
+
import type { PickerBasePropsType } from '../props';
|
|
3
|
+
export declare const useModel: (props: PickerBasePropsType, emit: VueEmit, reMap?: () => void) => {
|
|
4
|
+
calendars: import("vue").Ref<{
|
|
5
|
+
month: number;
|
|
6
|
+
year: number;
|
|
7
|
+
}[]>;
|
|
8
|
+
time: {
|
|
9
|
+
hours: number | number[];
|
|
10
|
+
minutes: number | number[];
|
|
11
|
+
seconds: number | number[];
|
|
12
|
+
};
|
|
13
|
+
modelValue: import("vue").WritableComputedRef<InternalModuleValue>;
|
|
14
|
+
month: import("vue").ComputedRef<(instance: number) => number>;
|
|
15
|
+
year: import("vue").ComputedRef<(instance: number) => number>;
|
|
16
|
+
today: Date;
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VueEmit } from '../interfaces';
|
|
2
|
+
import type { PickerBasePropsType } from '../props';
|
|
3
|
+
export declare const useMonthYearPick: (props: {
|
|
4
|
+
month: number;
|
|
5
|
+
year: number;
|
|
6
|
+
} & PickerBasePropsType, emit: VueEmit) => {
|
|
7
|
+
handleMonthYearChange: (isNext: boolean, fromNav?: boolean) => void;
|
|
8
|
+
isDisabled: import("vue").ComputedRef<(next: boolean) => boolean>;
|
|
9
|
+
updateMonthYear: (month: number, year: number, fromNav: boolean) => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type DatepickerInputRef, type DatepickerMenuRef, type InlineOptions, type VueEmit } from '../interfaces';
|
|
2
|
+
import type { Component, ComputedRef, Ref, Slots } from 'vue';
|
|
3
|
+
import type { AllPropsType } from '../props';
|
|
4
|
+
/**
|
|
5
|
+
* Extracted code from the main component, used for calculating the position of the menu
|
|
6
|
+
*/
|
|
7
|
+
interface Params {
|
|
8
|
+
menuRef: Ref<HTMLElement | null>;
|
|
9
|
+
menuRefInner: Ref<DatepickerMenuRef | null>;
|
|
10
|
+
inputRef: Ref<DatepickerInputRef | null>;
|
|
11
|
+
pickerWrapperRef: Ref<HTMLElement | null>;
|
|
12
|
+
inline: ComputedRef<InlineOptions>;
|
|
13
|
+
emit: VueEmit;
|
|
14
|
+
props: AllPropsType;
|
|
15
|
+
slots: Slots;
|
|
16
|
+
}
|
|
17
|
+
export declare const usePosition: ({ menuRef, menuRefInner, inputRef, pickerWrapperRef, inline, emit, props, slots, }: Params) => {
|
|
18
|
+
openOnTop: Ref<boolean>;
|
|
19
|
+
menuStyle: Ref<Record<string, string>>;
|
|
20
|
+
xCorrect: Ref<boolean>;
|
|
21
|
+
setMenuPosition: (recalculate?: boolean) => void;
|
|
22
|
+
getScrollableParent: (el: HTMLElement | null) => Window | HTMLElement;
|
|
23
|
+
shadowRender: (DPMenu: Component, props: AllPropsType) => void;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComputedRef, WritableComputedRef } from 'vue';
|
|
2
|
+
import type { InternalModuleValue, RangeConfig, VueEmit } from '../interfaces';
|
|
3
|
+
export declare const handleMultiDatesSelect: (date: Date, modelValue: WritableComputedRef<InternalModuleValue>, multiDatesLimit?: number | string | null) => void;
|
|
4
|
+
export declare const setMonthOrYearRange: (modelValue: WritableComputedRef<InternalModuleValue>, date: Date, emit: VueEmit) => Date[];
|
|
5
|
+
export declare const checkRangeAutoApply: (range: Date[], emit: VueEmit, autoApply: boolean, modelAuto: boolean) => void;
|
|
6
|
+
export declare const setPresetDate: (opts: {
|
|
7
|
+
value: Date[] | string[] | Date | string;
|
|
8
|
+
range: boolean;
|
|
9
|
+
timezone?: string;
|
|
10
|
+
modelValue: WritableComputedRef<InternalModuleValue>;
|
|
11
|
+
}) => void;
|
|
12
|
+
export declare const getRangeWithFixedDate: (date: Date, modelValue: WritableComputedRef<InternalModuleValue>, emit: VueEmit, defaultedRange: ComputedRef<RangeConfig>) => Date[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Slots } from 'vue';
|
|
2
|
+
import type { PresetDate } from '../interfaces';
|
|
3
|
+
export declare const slots: {
|
|
4
|
+
name: string;
|
|
5
|
+
use: string[];
|
|
6
|
+
}[];
|
|
7
|
+
export declare const inputSlots: {
|
|
8
|
+
name: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const mapSlots: (slots: Slots, usage: 'all' | 'monthYear' | 'timePicker' | 'input' | 'action' | 'calendar' | 'menu' | 'shared' | 'yearMode', presetDates?: PresetDate[]) => string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Transition } from '../interfaces';
|
|
2
|
+
import type { ComputedRef } from 'vue';
|
|
3
|
+
export declare const useTransitions: (transitions: ComputedRef<Transition>) => {
|
|
4
|
+
transitionName: ComputedRef<(isOpen: boolean) => string>;
|
|
5
|
+
showTransition: boolean;
|
|
6
|
+
menuTransition: ComputedRef<(openOnTop: boolean) => string>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InternalModuleValue } from '../interfaces';
|
|
2
|
+
import type { PickerBasePropsType, AllPropsType } from '../props';
|
|
3
|
+
export declare const useValidation: (props: PickerBasePropsType | AllPropsType) => {
|
|
4
|
+
isDisabled: (date: Date) => boolean;
|
|
5
|
+
validateDate: (date: Date) => boolean;
|
|
6
|
+
validateMonthYearInRange: (month: number, year: number, isNext: boolean, preventNav: boolean) => boolean;
|
|
7
|
+
isDateRangeAllowed: (range: Date[]) => boolean;
|
|
8
|
+
checkMinMaxRange: (secondDate: Date, modelValue: InternalModuleValue, index?: number) => boolean;
|
|
9
|
+
isValidTime: (date: InternalModuleValue) => boolean;
|
|
10
|
+
isTimeValid: import("vue").ComputedRef<(internalModelValue: InternalModuleValue) => boolean>;
|
|
11
|
+
isMonthValid: import("vue").ComputedRef<(internalModelValue: InternalModuleValue) => boolean>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare enum HeaderPicker {
|
|
2
|
+
month = "month",
|
|
3
|
+
year = "year"
|
|
4
|
+
}
|
|
5
|
+
export declare enum MenuPlacement {
|
|
6
|
+
top = "top",
|
|
7
|
+
bottom = "bottom"
|
|
8
|
+
}
|
|
9
|
+
export declare enum CMP {
|
|
10
|
+
header = "header",
|
|
11
|
+
calendar = "calendar",
|
|
12
|
+
timePicker = "timePicker"
|
|
13
|
+
}
|
|
14
|
+
export declare enum FlowStep {
|
|
15
|
+
month = "month",
|
|
16
|
+
year = "year",
|
|
17
|
+
calendar = "calendar",
|
|
18
|
+
time = "time",
|
|
19
|
+
minutes = "minutes",
|
|
20
|
+
hours = "hours",
|
|
21
|
+
seconds = "seconds"
|
|
22
|
+
}
|
|
23
|
+
export declare const modelTypePredefined: string[];
|
|
24
|
+
export declare enum ArrowDirection {
|
|
25
|
+
up = "up",
|
|
26
|
+
down = "down",
|
|
27
|
+
left = "left",
|
|
28
|
+
right = "right"
|
|
29
|
+
}
|
|
30
|
+
export declare enum EventKey {
|
|
31
|
+
arrowUp = "ArrowUp",
|
|
32
|
+
arrowDown = "ArrowDown",
|
|
33
|
+
arrowLeft = "ArrowLeft",
|
|
34
|
+
arrowRight = "ArrowRight",
|
|
35
|
+
enter = "Enter",
|
|
36
|
+
space = " ",
|
|
37
|
+
esc = "Escape",
|
|
38
|
+
tab = "Tab",
|
|
39
|
+
home = "Home",
|
|
40
|
+
end = "End",
|
|
41
|
+
pageUp = "PageUp",
|
|
42
|
+
pageDown = "PageDown"
|
|
43
|
+
}
|