Skip to content

Commit c327432

Browse files
Address comments
1 parent d434a6f commit c327432

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

src/VueDatePicker/constants/defaults.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { WeekStart } from '@/types';
1+
import { WeekStart } from '.';
22
import { enUS } from 'date-fns/locale';
33

44
export const defaultRangeOptions = {
@@ -149,7 +149,7 @@ export const basePropDefaults = {
149149
};
150150

151151
export const propDefaults = {
152-
weekStart: WeekStart.Sunday,
152+
weekStart: WeekStart.Monday,
153153
yearRange: (): [number, number] => [1900, 2100],
154154
ui: () => ({}),
155155
locale: () => enUS,

src/VueDatePicker/constants/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,13 @@ export enum MAP_KEY_FORMAT {
5353
YEAR = 'yyyy',
5454
DATE = 'dd-MM-yyyy',
5555
}
56+
57+
export enum WeekStart {
58+
Sunday = 0,
59+
Monday = 1,
60+
Tuesday = 2,
61+
Wednesday = 3,
62+
Thursday = 4,
63+
Friday = 5,
64+
Saturday = 6,
65+
}

src/VueDatePicker/types/enums.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/VueDatePicker/types/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ export * from './configs.ts';
44
export * from './generic.ts';
55
export * from './picker.ts';
66
export * from './emits.ts';
7-
export * from './enums.ts';

src/VueDatePicker/types/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import type {
2121
import type { CalendarWeek, Marker, TimeModel, PresetDate, HighlightFn, DisabledTimesFn } from '@/types/picker.ts';
2222
import type { PickerSection, DateValue, ModelValue, SixWeekMode } from '@/types/generic.ts';
2323
import { basePropDefaults, type propDefaults } from '@/constants/defaults.ts';
24-
import type { WeekStart } from '@/types/enums.ts';
24+
import type { WeekStart } from '@/constants';
2525

2626
export interface RootProps {
2727
multiCalendars?: boolean | number | string | Partial<MultiCalendarsConfig>;

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export { default as VueDatePicker } from './VueDatePicker/VueDatePickerRoot.vue';
22
export { TZDate } from '@date-fns/tz';
33
export * from './VueDatePicker/types';
4+
export { WeekStart } from './VueDatePicker/constants';

0 commit comments

Comments
 (0)