best-react-datepicker 0.2.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/dist/chunk-A3NQUSC5.cjs +1155 -0
- package/dist/chunk-A3NQUSC5.cjs.map +1 -0
- package/dist/chunk-FBN3SFQJ.js +1140 -0
- package/dist/chunk-FBN3SFQJ.js.map +1 -0
- package/dist/chunk-HI4J64KK.cjs +592 -0
- package/dist/chunk-HI4J64KK.cjs.map +1 -0
- package/dist/chunk-NF5M43IO.js +49 -0
- package/dist/chunk-NF5M43IO.js.map +1 -0
- package/dist/chunk-QW2CUEX4.js +117 -0
- package/dist/chunk-QW2CUEX4.js.map +1 -0
- package/dist/chunk-R7HLYS5V.cjs +120 -0
- package/dist/chunk-R7HLYS5V.cjs.map +1 -0
- package/dist/chunk-W6KEY2SO.js +526 -0
- package/dist/chunk-W6KEY2SO.js.map +1 -0
- package/dist/chunk-WBWQ5RKN.cjs +51 -0
- package/dist/chunk-WBWQ5RKN.cjs.map +1 -0
- package/dist/hooks.cjs +66 -0
- package/dist/hooks.cjs.map +1 -0
- package/dist/hooks.d.cts +555 -0
- package/dist/hooks.d.ts +555 -0
- package/dist/hooks.js +5 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.cjs +1502 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +239 -0
- package/dist/index.d.ts +239 -0
- package/dist/index.js +1303 -0
- package/dist/index.js.map +1 -0
- package/dist/locales.cjs +16 -0
- package/dist/locales.cjs.map +1 -0
- package/dist/locales.d.cts +6 -0
- package/dist/locales.d.ts +6 -0
- package/dist/locales.js +3 -0
- package/dist/locales.js.map +1 -0
- package/dist/presets-B8wfaoTj.d.cts +54 -0
- package/dist/presets-CB5Rt4Li.d.ts +54 -0
- package/dist/styles.css +751 -0
- package/dist/types-DA2PcEiy.d.cts +104 -0
- package/dist/types-DA2PcEiy.d.ts +104 -0
- package/dist/utils.cjs +282 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +57 -0
- package/dist/utils.d.ts +57 -0
- package/dist/utils.js +5 -0
- package/dist/utils.js.map +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/** 0 = Sunday, 1 = Monday, ... 6 = Saturday */
|
|
2
|
+
type WeekDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
+
interface DateRange {
|
|
4
|
+
from: Date | null;
|
|
5
|
+
to: Date | null;
|
|
6
|
+
}
|
|
7
|
+
interface TimeValue {
|
|
8
|
+
hours: number;
|
|
9
|
+
minutes: number;
|
|
10
|
+
seconds?: number;
|
|
11
|
+
}
|
|
12
|
+
type PickerMode = 'single' | 'range' | 'multi' | 'month' | 'year' | 'time' | 'datetime' | 'week';
|
|
13
|
+
type DateMatcher = Date | Date[] | DateRange | {
|
|
14
|
+
before: Date;
|
|
15
|
+
} | {
|
|
16
|
+
after: Date;
|
|
17
|
+
} | {
|
|
18
|
+
dayOfWeek: WeekDay[];
|
|
19
|
+
} | ((date: Date) => boolean);
|
|
20
|
+
interface RangePreset {
|
|
21
|
+
label: string;
|
|
22
|
+
value: DateRange | (() => DateRange);
|
|
23
|
+
}
|
|
24
|
+
interface CalendarDay {
|
|
25
|
+
date: Date;
|
|
26
|
+
dayOfMonth: number;
|
|
27
|
+
isCurrentMonth: boolean;
|
|
28
|
+
isToday: boolean;
|
|
29
|
+
isWeekend: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface CalendarWeek {
|
|
32
|
+
weekNumber: number;
|
|
33
|
+
days: CalendarDay[];
|
|
34
|
+
}
|
|
35
|
+
interface CalendarMonth {
|
|
36
|
+
year: number;
|
|
37
|
+
month: number;
|
|
38
|
+
label: string;
|
|
39
|
+
weeks: CalendarWeek[];
|
|
40
|
+
}
|
|
41
|
+
type ViewMode = 'days' | 'months' | 'years';
|
|
42
|
+
interface DatePickerLocale {
|
|
43
|
+
code: string;
|
|
44
|
+
dir: 'ltr' | 'rtl';
|
|
45
|
+
weekStartsOn: WeekDay;
|
|
46
|
+
dayNamesShort: string[];
|
|
47
|
+
dayNamesFull: string[];
|
|
48
|
+
dayNamesNarrow: string[];
|
|
49
|
+
monthNamesShort: string[];
|
|
50
|
+
monthNamesFull: string[];
|
|
51
|
+
dateFormat: string;
|
|
52
|
+
timeFormat: '12h' | '24h';
|
|
53
|
+
meridiemLabels: {
|
|
54
|
+
am: string;
|
|
55
|
+
pm: string;
|
|
56
|
+
};
|
|
57
|
+
labels: {
|
|
58
|
+
previousMonth: string;
|
|
59
|
+
nextMonth: string;
|
|
60
|
+
previousYear: string;
|
|
61
|
+
nextYear: string;
|
|
62
|
+
selectMonth: string;
|
|
63
|
+
selectYear: string;
|
|
64
|
+
today: string;
|
|
65
|
+
clear: string;
|
|
66
|
+
close: string;
|
|
67
|
+
apply: string;
|
|
68
|
+
cancel: string;
|
|
69
|
+
startDate: string;
|
|
70
|
+
endDate: string;
|
|
71
|
+
time: string;
|
|
72
|
+
hour: string;
|
|
73
|
+
minute: string;
|
|
74
|
+
second: string;
|
|
75
|
+
weekNumber: string;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
interface DatePickerClassNames {
|
|
79
|
+
root: string;
|
|
80
|
+
input: string;
|
|
81
|
+
popover: string;
|
|
82
|
+
calendar: string;
|
|
83
|
+
header: string;
|
|
84
|
+
headerLabel: string;
|
|
85
|
+
navButton: string;
|
|
86
|
+
grid: string;
|
|
87
|
+
weekday: string;
|
|
88
|
+
weekRow: string;
|
|
89
|
+
day: string;
|
|
90
|
+
daySelected: string;
|
|
91
|
+
dayToday: string;
|
|
92
|
+
dayDisabled: string;
|
|
93
|
+
dayOutside: string;
|
|
94
|
+
dayWeekend: string;
|
|
95
|
+
dayHighlighted: string;
|
|
96
|
+
weekNumber: string;
|
|
97
|
+
footer: string;
|
|
98
|
+
monthGrid: string;
|
|
99
|
+
monthCell: string;
|
|
100
|
+
yearGrid: string;
|
|
101
|
+
yearCell: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type { CalendarMonth as C, DateMatcher as D, PickerMode as P, RangePreset as R, TimeValue as T, ViewMode as V, WeekDay as W, CalendarDay as a, CalendarWeek as b, DatePickerClassNames as c, DatePickerLocale as d, DateRange as e };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/** 0 = Sunday, 1 = Monday, ... 6 = Saturday */
|
|
2
|
+
type WeekDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
+
interface DateRange {
|
|
4
|
+
from: Date | null;
|
|
5
|
+
to: Date | null;
|
|
6
|
+
}
|
|
7
|
+
interface TimeValue {
|
|
8
|
+
hours: number;
|
|
9
|
+
minutes: number;
|
|
10
|
+
seconds?: number;
|
|
11
|
+
}
|
|
12
|
+
type PickerMode = 'single' | 'range' | 'multi' | 'month' | 'year' | 'time' | 'datetime' | 'week';
|
|
13
|
+
type DateMatcher = Date | Date[] | DateRange | {
|
|
14
|
+
before: Date;
|
|
15
|
+
} | {
|
|
16
|
+
after: Date;
|
|
17
|
+
} | {
|
|
18
|
+
dayOfWeek: WeekDay[];
|
|
19
|
+
} | ((date: Date) => boolean);
|
|
20
|
+
interface RangePreset {
|
|
21
|
+
label: string;
|
|
22
|
+
value: DateRange | (() => DateRange);
|
|
23
|
+
}
|
|
24
|
+
interface CalendarDay {
|
|
25
|
+
date: Date;
|
|
26
|
+
dayOfMonth: number;
|
|
27
|
+
isCurrentMonth: boolean;
|
|
28
|
+
isToday: boolean;
|
|
29
|
+
isWeekend: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface CalendarWeek {
|
|
32
|
+
weekNumber: number;
|
|
33
|
+
days: CalendarDay[];
|
|
34
|
+
}
|
|
35
|
+
interface CalendarMonth {
|
|
36
|
+
year: number;
|
|
37
|
+
month: number;
|
|
38
|
+
label: string;
|
|
39
|
+
weeks: CalendarWeek[];
|
|
40
|
+
}
|
|
41
|
+
type ViewMode = 'days' | 'months' | 'years';
|
|
42
|
+
interface DatePickerLocale {
|
|
43
|
+
code: string;
|
|
44
|
+
dir: 'ltr' | 'rtl';
|
|
45
|
+
weekStartsOn: WeekDay;
|
|
46
|
+
dayNamesShort: string[];
|
|
47
|
+
dayNamesFull: string[];
|
|
48
|
+
dayNamesNarrow: string[];
|
|
49
|
+
monthNamesShort: string[];
|
|
50
|
+
monthNamesFull: string[];
|
|
51
|
+
dateFormat: string;
|
|
52
|
+
timeFormat: '12h' | '24h';
|
|
53
|
+
meridiemLabels: {
|
|
54
|
+
am: string;
|
|
55
|
+
pm: string;
|
|
56
|
+
};
|
|
57
|
+
labels: {
|
|
58
|
+
previousMonth: string;
|
|
59
|
+
nextMonth: string;
|
|
60
|
+
previousYear: string;
|
|
61
|
+
nextYear: string;
|
|
62
|
+
selectMonth: string;
|
|
63
|
+
selectYear: string;
|
|
64
|
+
today: string;
|
|
65
|
+
clear: string;
|
|
66
|
+
close: string;
|
|
67
|
+
apply: string;
|
|
68
|
+
cancel: string;
|
|
69
|
+
startDate: string;
|
|
70
|
+
endDate: string;
|
|
71
|
+
time: string;
|
|
72
|
+
hour: string;
|
|
73
|
+
minute: string;
|
|
74
|
+
second: string;
|
|
75
|
+
weekNumber: string;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
interface DatePickerClassNames {
|
|
79
|
+
root: string;
|
|
80
|
+
input: string;
|
|
81
|
+
popover: string;
|
|
82
|
+
calendar: string;
|
|
83
|
+
header: string;
|
|
84
|
+
headerLabel: string;
|
|
85
|
+
navButton: string;
|
|
86
|
+
grid: string;
|
|
87
|
+
weekday: string;
|
|
88
|
+
weekRow: string;
|
|
89
|
+
day: string;
|
|
90
|
+
daySelected: string;
|
|
91
|
+
dayToday: string;
|
|
92
|
+
dayDisabled: string;
|
|
93
|
+
dayOutside: string;
|
|
94
|
+
dayWeekend: string;
|
|
95
|
+
dayHighlighted: string;
|
|
96
|
+
weekNumber: string;
|
|
97
|
+
footer: string;
|
|
98
|
+
monthGrid: string;
|
|
99
|
+
monthCell: string;
|
|
100
|
+
yearGrid: string;
|
|
101
|
+
yearCell: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type { CalendarMonth as C, DateMatcher as D, PickerMode as P, RangePreset as R, TimeValue as T, ViewMode as V, WeekDay as W, CalendarDay as a, CalendarWeek as b, DatePickerClassNames as c, DatePickerLocale as d, DateRange as e };
|
package/dist/utils.cjs
ADDED
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWBWQ5RKN_cjs = require('./chunk-WBWQ5RKN.cjs');
|
|
4
|
+
var chunkHI4J64KK_cjs = require('./chunk-HI4J64KK.cjs');
|
|
5
|
+
var chunkR7HLYS5V_cjs = require('./chunk-R7HLYS5V.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "createPresets", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkWBWQ5RKN_cjs.createPresets; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "addDays", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkHI4J64KK_cjs.addDays; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "addHours", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkHI4J64KK_cjs.addHours; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "addMinutes", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkHI4J64KK_cjs.addMinutes; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "addMonths", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkHI4J64KK_cjs.addMonths; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "addYears", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return chunkHI4J64KK_cjs.addYears; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "clampDate", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkHI4J64KK_cjs.clampDate; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "clone", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return chunkHI4J64KK_cjs.clone; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "createDate", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return chunkHI4J64KK_cjs.createDate; }
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "differenceInDays", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () { return chunkHI4J64KK_cjs.differenceInDays; }
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "endOfDay", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () { return chunkHI4J64KK_cjs.endOfDay; }
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(exports, "endOfISOWeek", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () { return chunkHI4J64KK_cjs.endOfISOWeek; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "endOfMonth", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return chunkHI4J64KK_cjs.endOfMonth; }
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "endOfWeek", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () { return chunkHI4J64KK_cjs.endOfWeek; }
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "endOfYear", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () { return chunkHI4J64KK_cjs.endOfYear; }
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(exports, "formatDate", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () { return chunkHI4J64KK_cjs.formatDate; }
|
|
72
|
+
});
|
|
73
|
+
Object.defineProperty(exports, "formatMeridiem", {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
get: function () { return chunkHI4J64KK_cjs.formatMeridiem; }
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, "formatTime", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () { return chunkHI4J64KK_cjs.formatTime; }
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(exports, "generateCalendarMonth", {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function () { return chunkHI4J64KK_cjs.generateCalendarMonth; }
|
|
84
|
+
});
|
|
85
|
+
Object.defineProperty(exports, "generateCalendarMonths", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function () { return chunkHI4J64KK_cjs.generateCalendarMonths; }
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(exports, "generateHours", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () { return chunkHI4J64KK_cjs.generateHours; }
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(exports, "generateMinutes", {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function () { return chunkHI4J64KK_cjs.generateMinutes; }
|
|
96
|
+
});
|
|
97
|
+
Object.defineProperty(exports, "generateMonthGrid", {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
get: function () { return chunkHI4J64KK_cjs.generateMonthGrid; }
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, "generateSeconds", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () { return chunkHI4J64KK_cjs.generateSeconds; }
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(exports, "generateYearGrid", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function () { return chunkHI4J64KK_cjs.generateYearGrid; }
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(exports, "getDay", {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () { return chunkHI4J64KK_cjs.getDay; }
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, "getDaysInMonth", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function () { return chunkHI4J64KK_cjs.getDaysInMonth; }
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(exports, "getHours", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () { return chunkHI4J64KK_cjs.getHours; }
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(exports, "getISOWeekNumber", {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
get: function () { return chunkHI4J64KK_cjs.getISOWeekNumber; }
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(exports, "getMinutes", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function () { return chunkHI4J64KK_cjs.getMinutes; }
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, "getMonth", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () { return chunkHI4J64KK_cjs.getMonth; }
|
|
132
|
+
});
|
|
133
|
+
Object.defineProperty(exports, "getSeconds", {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function () { return chunkHI4J64KK_cjs.getSeconds; }
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, "getWeekDates", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function () { return chunkHI4J64KK_cjs.getWeekDates; }
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(exports, "getWeekNumber", {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function () { return chunkHI4J64KK_cjs.getWeekNumber; }
|
|
144
|
+
});
|
|
145
|
+
Object.defineProperty(exports, "getWeekYear", {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
get: function () { return chunkHI4J64KK_cjs.getWeekYear; }
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(exports, "getYear", {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: function () { return chunkHI4J64KK_cjs.getYear; }
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, "isAfter", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () { return chunkHI4J64KK_cjs.isAfter; }
|
|
156
|
+
});
|
|
157
|
+
Object.defineProperty(exports, "isBefore", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function () { return chunkHI4J64KK_cjs.isBefore; }
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(exports, "isBetween", {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function () { return chunkHI4J64KK_cjs.isBetween; }
|
|
164
|
+
});
|
|
165
|
+
Object.defineProperty(exports, "isDateDisabled", {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function () { return chunkHI4J64KK_cjs.isDateDisabled; }
|
|
168
|
+
});
|
|
169
|
+
Object.defineProperty(exports, "isDateHighlighted", {
|
|
170
|
+
enumerable: true,
|
|
171
|
+
get: function () { return chunkHI4J64KK_cjs.isDateHighlighted; }
|
|
172
|
+
});
|
|
173
|
+
Object.defineProperty(exports, "isDateInRange", {
|
|
174
|
+
enumerable: true,
|
|
175
|
+
get: function () { return chunkHI4J64KK_cjs.isDateInRange; }
|
|
176
|
+
});
|
|
177
|
+
Object.defineProperty(exports, "isSameDay", {
|
|
178
|
+
enumerable: true,
|
|
179
|
+
get: function () { return chunkHI4J64KK_cjs.isSameDay; }
|
|
180
|
+
});
|
|
181
|
+
Object.defineProperty(exports, "isSameMonth", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
get: function () { return chunkHI4J64KK_cjs.isSameMonth; }
|
|
184
|
+
});
|
|
185
|
+
Object.defineProperty(exports, "isSameYear", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function () { return chunkHI4J64KK_cjs.isSameYear; }
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(exports, "isToday", {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function () { return chunkHI4J64KK_cjs.isToday; }
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(exports, "isWeekend", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
get: function () { return chunkHI4J64KK_cjs.isWeekend; }
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(exports, "mergeDateTime", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function () { return chunkHI4J64KK_cjs.mergeDateTime; }
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(exports, "parseDate", {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function () { return chunkHI4J64KK_cjs.parseDate; }
|
|
204
|
+
});
|
|
205
|
+
Object.defineProperty(exports, "setHours", {
|
|
206
|
+
enumerable: true,
|
|
207
|
+
get: function () { return chunkHI4J64KK_cjs.setHours; }
|
|
208
|
+
});
|
|
209
|
+
Object.defineProperty(exports, "setMinutes", {
|
|
210
|
+
enumerable: true,
|
|
211
|
+
get: function () { return chunkHI4J64KK_cjs.setMinutes; }
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(exports, "setMonth", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function () { return chunkHI4J64KK_cjs.setMonth; }
|
|
216
|
+
});
|
|
217
|
+
Object.defineProperty(exports, "setSeconds", {
|
|
218
|
+
enumerable: true,
|
|
219
|
+
get: function () { return chunkHI4J64KK_cjs.setSeconds; }
|
|
220
|
+
});
|
|
221
|
+
Object.defineProperty(exports, "setYear", {
|
|
222
|
+
enumerable: true,
|
|
223
|
+
get: function () { return chunkHI4J64KK_cjs.setYear; }
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, "splitDateTime", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function () { return chunkHI4J64KK_cjs.splitDateTime; }
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(exports, "startOfDay", {
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get: function () { return chunkHI4J64KK_cjs.startOfDay; }
|
|
232
|
+
});
|
|
233
|
+
Object.defineProperty(exports, "startOfISOWeek", {
|
|
234
|
+
enumerable: true,
|
|
235
|
+
get: function () { return chunkHI4J64KK_cjs.startOfISOWeek; }
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(exports, "startOfMonth", {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
get: function () { return chunkHI4J64KK_cjs.startOfMonth; }
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(exports, "startOfWeek", {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function () { return chunkHI4J64KK_cjs.startOfWeek; }
|
|
244
|
+
});
|
|
245
|
+
Object.defineProperty(exports, "startOfYear", {
|
|
246
|
+
enumerable: true,
|
|
247
|
+
get: function () { return chunkHI4J64KK_cjs.startOfYear; }
|
|
248
|
+
});
|
|
249
|
+
Object.defineProperty(exports, "subDays", {
|
|
250
|
+
enumerable: true,
|
|
251
|
+
get: function () { return chunkHI4J64KK_cjs.subDays; }
|
|
252
|
+
});
|
|
253
|
+
Object.defineProperty(exports, "subMonths", {
|
|
254
|
+
enumerable: true,
|
|
255
|
+
get: function () { return chunkHI4J64KK_cjs.subMonths; }
|
|
256
|
+
});
|
|
257
|
+
Object.defineProperty(exports, "subYears", {
|
|
258
|
+
enumerable: true,
|
|
259
|
+
get: function () { return chunkHI4J64KK_cjs.subYears; }
|
|
260
|
+
});
|
|
261
|
+
Object.defineProperty(exports, "to12Hour", {
|
|
262
|
+
enumerable: true,
|
|
263
|
+
get: function () { return chunkHI4J64KK_cjs.to12Hour; }
|
|
264
|
+
});
|
|
265
|
+
Object.defineProperty(exports, "to24Hour", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
get: function () { return chunkHI4J64KK_cjs.to24Hour; }
|
|
268
|
+
});
|
|
269
|
+
Object.defineProperty(exports, "today", {
|
|
270
|
+
enumerable: true,
|
|
271
|
+
get: function () { return chunkHI4J64KK_cjs.today; }
|
|
272
|
+
});
|
|
273
|
+
Object.defineProperty(exports, "createLocaleFromIntl", {
|
|
274
|
+
enumerable: true,
|
|
275
|
+
get: function () { return chunkR7HLYS5V_cjs.createLocaleFromIntl; }
|
|
276
|
+
});
|
|
277
|
+
Object.defineProperty(exports, "defaultLocale", {
|
|
278
|
+
enumerable: true,
|
|
279
|
+
get: function () { return chunkR7HLYS5V_cjs.defaultLocale; }
|
|
280
|
+
});
|
|
281
|
+
//# sourceMappingURL=utils.cjs.map
|
|
282
|
+
//# sourceMappingURL=utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"utils.cjs"}
|
package/dist/utils.d.cts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { W as WeekDay, C as CalendarMonth, D as DateMatcher } from './types-DA2PcEiy.cjs';
|
|
2
|
+
export { a as CalendarDay, b as CalendarWeek, c as DatePickerClassNames, d as DatePickerLocale, e as DateRange, P as PickerMode, R as RangePreset, T as TimeValue, V as ViewMode } from './types-DA2PcEiy.cjs';
|
|
3
|
+
export { a as addDays, b as addHours, c as addMinutes, d as addMonths, e as addYears, f as clone, g as createDate, h as createPresets, i as differenceInDays, j as endOfDay, k as endOfMonth, l as endOfWeek, m as endOfYear, n as formatDate, o as formatTime, p as getDay, q as getDaysInMonth, r as getHours, s as getMinutes, t as getMonth, u as getSeconds, v as getYear, w as isAfter, x as isBefore, y as isBetween, z as isSameDay, A as isSameMonth, B as isSameYear, C as isToday, D as isWeekend, E as parseDate, F as setHours, G as setMinutes, H as setMonth, I as setSeconds, J as setYear, K as startOfDay, L as startOfMonth, M as startOfWeek, N as startOfYear, O as subDays, P as subMonths, Q as subYears, R as today } from './presets-B8wfaoTj.cjs';
|
|
4
|
+
export { createLocaleFromIntl, defaultLocale } from './locales.cjs';
|
|
5
|
+
|
|
6
|
+
declare function generateCalendarMonth(year: number, month: number, options?: {
|
|
7
|
+
weekStartsOn?: WeekDay;
|
|
8
|
+
fixedWeeks?: boolean;
|
|
9
|
+
}): CalendarMonth;
|
|
10
|
+
declare function generateCalendarMonths(year: number, month: number, count: number, options?: {
|
|
11
|
+
weekStartsOn?: WeekDay;
|
|
12
|
+
fixedWeeks?: boolean;
|
|
13
|
+
}): CalendarMonth[];
|
|
14
|
+
declare function generateMonthGrid(year: number): Array<{
|
|
15
|
+
month: number;
|
|
16
|
+
label: string;
|
|
17
|
+
}>;
|
|
18
|
+
declare function generateYearGrid(centerYear: number, range?: number): Array<{
|
|
19
|
+
year: number;
|
|
20
|
+
}>;
|
|
21
|
+
|
|
22
|
+
declare function isDateDisabled(date: Date, disabled?: DateMatcher | DateMatcher[]): boolean;
|
|
23
|
+
declare function isDateHighlighted(date: Date, highlighted?: DateMatcher | DateMatcher[]): boolean;
|
|
24
|
+
declare function isDateInRange(date: Date, min?: Date, max?: Date): boolean;
|
|
25
|
+
declare function clampDate(date: Date, min?: Date, max?: Date): Date;
|
|
26
|
+
|
|
27
|
+
declare function getISOWeekNumber(date: Date): number;
|
|
28
|
+
declare function getWeekNumber(date: Date, weekStartsOn?: WeekDay): number;
|
|
29
|
+
declare function startOfISOWeek(date: Date): Date;
|
|
30
|
+
declare function endOfISOWeek(date: Date): Date;
|
|
31
|
+
declare function getWeekDates(date: Date, weekStartsOn?: WeekDay): Date[];
|
|
32
|
+
declare function getWeekYear(date: Date): number;
|
|
33
|
+
|
|
34
|
+
declare function generateHours(format: '12h' | '24h'): number[];
|
|
35
|
+
declare function generateMinutes(step?: number): number[];
|
|
36
|
+
declare function generateSeconds(step?: number): number[];
|
|
37
|
+
declare function mergeDateTime(date: Date, time: {
|
|
38
|
+
hours: number;
|
|
39
|
+
minutes: number;
|
|
40
|
+
seconds?: number;
|
|
41
|
+
}): Date;
|
|
42
|
+
declare function splitDateTime(date: Date): {
|
|
43
|
+
date: Date;
|
|
44
|
+
time: {
|
|
45
|
+
hours: number;
|
|
46
|
+
minutes: number;
|
|
47
|
+
seconds: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
declare function formatMeridiem(hours: number): 'AM' | 'PM';
|
|
51
|
+
declare function to24Hour(hours: number, meridiem: 'AM' | 'PM'): number;
|
|
52
|
+
declare function to12Hour(hours: number): {
|
|
53
|
+
hours: number;
|
|
54
|
+
meridiem: 'AM' | 'PM';
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { CalendarMonth, DateMatcher, WeekDay, clampDate, endOfISOWeek, formatMeridiem, generateCalendarMonth, generateCalendarMonths, generateHours, generateMinutes, generateMonthGrid, generateSeconds, generateYearGrid, getISOWeekNumber, getWeekDates, getWeekNumber, getWeekYear, isDateDisabled, isDateHighlighted, isDateInRange, mergeDateTime, splitDateTime, startOfISOWeek, to12Hour, to24Hour };
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { W as WeekDay, C as CalendarMonth, D as DateMatcher } from './types-DA2PcEiy.js';
|
|
2
|
+
export { a as CalendarDay, b as CalendarWeek, c as DatePickerClassNames, d as DatePickerLocale, e as DateRange, P as PickerMode, R as RangePreset, T as TimeValue, V as ViewMode } from './types-DA2PcEiy.js';
|
|
3
|
+
export { a as addDays, b as addHours, c as addMinutes, d as addMonths, e as addYears, f as clone, g as createDate, h as createPresets, i as differenceInDays, j as endOfDay, k as endOfMonth, l as endOfWeek, m as endOfYear, n as formatDate, o as formatTime, p as getDay, q as getDaysInMonth, r as getHours, s as getMinutes, t as getMonth, u as getSeconds, v as getYear, w as isAfter, x as isBefore, y as isBetween, z as isSameDay, A as isSameMonth, B as isSameYear, C as isToday, D as isWeekend, E as parseDate, F as setHours, G as setMinutes, H as setMonth, I as setSeconds, J as setYear, K as startOfDay, L as startOfMonth, M as startOfWeek, N as startOfYear, O as subDays, P as subMonths, Q as subYears, R as today } from './presets-CB5Rt4Li.js';
|
|
4
|
+
export { createLocaleFromIntl, defaultLocale } from './locales.js';
|
|
5
|
+
|
|
6
|
+
declare function generateCalendarMonth(year: number, month: number, options?: {
|
|
7
|
+
weekStartsOn?: WeekDay;
|
|
8
|
+
fixedWeeks?: boolean;
|
|
9
|
+
}): CalendarMonth;
|
|
10
|
+
declare function generateCalendarMonths(year: number, month: number, count: number, options?: {
|
|
11
|
+
weekStartsOn?: WeekDay;
|
|
12
|
+
fixedWeeks?: boolean;
|
|
13
|
+
}): CalendarMonth[];
|
|
14
|
+
declare function generateMonthGrid(year: number): Array<{
|
|
15
|
+
month: number;
|
|
16
|
+
label: string;
|
|
17
|
+
}>;
|
|
18
|
+
declare function generateYearGrid(centerYear: number, range?: number): Array<{
|
|
19
|
+
year: number;
|
|
20
|
+
}>;
|
|
21
|
+
|
|
22
|
+
declare function isDateDisabled(date: Date, disabled?: DateMatcher | DateMatcher[]): boolean;
|
|
23
|
+
declare function isDateHighlighted(date: Date, highlighted?: DateMatcher | DateMatcher[]): boolean;
|
|
24
|
+
declare function isDateInRange(date: Date, min?: Date, max?: Date): boolean;
|
|
25
|
+
declare function clampDate(date: Date, min?: Date, max?: Date): Date;
|
|
26
|
+
|
|
27
|
+
declare function getISOWeekNumber(date: Date): number;
|
|
28
|
+
declare function getWeekNumber(date: Date, weekStartsOn?: WeekDay): number;
|
|
29
|
+
declare function startOfISOWeek(date: Date): Date;
|
|
30
|
+
declare function endOfISOWeek(date: Date): Date;
|
|
31
|
+
declare function getWeekDates(date: Date, weekStartsOn?: WeekDay): Date[];
|
|
32
|
+
declare function getWeekYear(date: Date): number;
|
|
33
|
+
|
|
34
|
+
declare function generateHours(format: '12h' | '24h'): number[];
|
|
35
|
+
declare function generateMinutes(step?: number): number[];
|
|
36
|
+
declare function generateSeconds(step?: number): number[];
|
|
37
|
+
declare function mergeDateTime(date: Date, time: {
|
|
38
|
+
hours: number;
|
|
39
|
+
minutes: number;
|
|
40
|
+
seconds?: number;
|
|
41
|
+
}): Date;
|
|
42
|
+
declare function splitDateTime(date: Date): {
|
|
43
|
+
date: Date;
|
|
44
|
+
time: {
|
|
45
|
+
hours: number;
|
|
46
|
+
minutes: number;
|
|
47
|
+
seconds: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
declare function formatMeridiem(hours: number): 'AM' | 'PM';
|
|
51
|
+
declare function to24Hour(hours: number, meridiem: 'AM' | 'PM'): number;
|
|
52
|
+
declare function to12Hour(hours: number): {
|
|
53
|
+
hours: number;
|
|
54
|
+
meridiem: 'AM' | 'PM';
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { CalendarMonth, DateMatcher, WeekDay, clampDate, endOfISOWeek, formatMeridiem, generateCalendarMonth, generateCalendarMonths, generateHours, generateMinutes, generateMonthGrid, generateSeconds, generateYearGrid, getISOWeekNumber, getWeekDates, getWeekNumber, getWeekYear, isDateDisabled, isDateHighlighted, isDateInRange, mergeDateTime, splitDateTime, startOfISOWeek, to12Hour, to24Hour };
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { createPresets } from './chunk-NF5M43IO.js';
|
|
2
|
+
export { addDays, addHours, addMinutes, addMonths, addYears, clampDate, clone, createDate, differenceInDays, endOfDay, endOfISOWeek, endOfMonth, endOfWeek, endOfYear, formatDate, formatMeridiem, formatTime, generateCalendarMonth, generateCalendarMonths, generateHours, generateMinutes, generateMonthGrid, generateSeconds, generateYearGrid, getDay, getDaysInMonth, getHours, getISOWeekNumber, getMinutes, getMonth, getSeconds, getWeekDates, getWeekNumber, getWeekYear, getYear, isAfter, isBefore, isBetween, isDateDisabled, isDateHighlighted, isDateInRange, isSameDay, isSameMonth, isSameYear, isToday, isWeekend, mergeDateTime, parseDate, setHours, setMinutes, setMonth, setSeconds, setYear, splitDateTime, startOfDay, startOfISOWeek, startOfMonth, startOfWeek, startOfYear, subDays, subMonths, subYears, to12Hour, to24Hour, today } from './chunk-W6KEY2SO.js';
|
|
3
|
+
export { createLocaleFromIntl, defaultLocale } from './chunk-QW2CUEX4.js';
|
|
4
|
+
//# sourceMappingURL=utils.js.map
|
|
5
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"utils.js"}
|