cally 0.7.2 → 0.8.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/cally.d.ts +28 -0
- package/dist/cally.js +460 -435
- package/package.json +7 -1
package/dist/cally.d.ts
CHANGED
|
@@ -34,26 +34,34 @@ DOMThis<Base> & {
|
|
|
34
34
|
export declare const CalendarDate: Atomico<{
|
|
35
35
|
months: number;
|
|
36
36
|
value: string;
|
|
37
|
+
focus: (options?: CalendarFocusOptions) => void;
|
|
37
38
|
firstDayOfWeek: DaysOfWeek;
|
|
38
39
|
isDateDisallowed: (date: Date) => boolean;
|
|
39
40
|
min: string;
|
|
40
41
|
max: string;
|
|
42
|
+
today: string;
|
|
41
43
|
locale: string | undefined;
|
|
42
44
|
focusedDate: string | undefined;
|
|
45
|
+
formatWeekday: "short" | "narrow";
|
|
43
46
|
onFocusDay: (event: CustomEvent<Date>) => any;
|
|
47
|
+
getDayParts: (date: Date) => string;
|
|
44
48
|
showOutsideDays: boolean;
|
|
45
49
|
pageBy: Pagination;
|
|
46
50
|
onChange: (event: Event) => any;
|
|
47
51
|
} & {}, {
|
|
48
52
|
months: number;
|
|
49
53
|
value: string;
|
|
54
|
+
focus: (options?: CalendarFocusOptions) => void;
|
|
50
55
|
firstDayOfWeek: DaysOfWeek;
|
|
51
56
|
isDateDisallowed: (date: Date) => boolean;
|
|
52
57
|
min: string;
|
|
53
58
|
max: string;
|
|
59
|
+
today: string;
|
|
54
60
|
locale: string | undefined;
|
|
55
61
|
focusedDate: string | undefined;
|
|
62
|
+
formatWeekday: "short" | "narrow";
|
|
56
63
|
onFocusDay: (event: CustomEvent<Date>) => any;
|
|
64
|
+
getDayParts: (date: Date) => string;
|
|
57
65
|
showOutsideDays: boolean;
|
|
58
66
|
pageBy: Pagination;
|
|
59
67
|
onChange: (event: Event) => any;
|
|
@@ -64,6 +72,10 @@ export declare const CalendarDate: Atomico<{
|
|
|
64
72
|
|
|
65
73
|
export declare type CalendarDateProps = ComponentProps<typeof CalendarDate>;
|
|
66
74
|
|
|
75
|
+
declare interface CalendarFocusOptions extends FocusOptions {
|
|
76
|
+
target?: "day" | "next" | "previous";
|
|
77
|
+
}
|
|
78
|
+
|
|
67
79
|
export declare const CalendarMonth: Atomico<{
|
|
68
80
|
offset: number;
|
|
69
81
|
onSelectDay: (event: CustomEvent<string>) => any;
|
|
@@ -84,26 +96,34 @@ export declare type CalendarMonthProps = ComponentProps<typeof CalendarMonth>;
|
|
|
84
96
|
export declare const CalendarMulti: Atomico<{
|
|
85
97
|
months: number;
|
|
86
98
|
value: string;
|
|
99
|
+
focus: (options?: CalendarFocusOptions) => void;
|
|
87
100
|
firstDayOfWeek: DaysOfWeek;
|
|
88
101
|
isDateDisallowed: (date: Date) => boolean;
|
|
89
102
|
min: string;
|
|
90
103
|
max: string;
|
|
104
|
+
today: string;
|
|
91
105
|
locale: string | undefined;
|
|
92
106
|
focusedDate: string | undefined;
|
|
107
|
+
formatWeekday: "short" | "narrow";
|
|
93
108
|
onFocusDay: (event: CustomEvent<Date>) => any;
|
|
109
|
+
getDayParts: (date: Date) => string;
|
|
94
110
|
showOutsideDays: boolean;
|
|
95
111
|
pageBy: Pagination;
|
|
96
112
|
onChange: (event: Event) => any;
|
|
97
113
|
} & {}, {
|
|
98
114
|
months: number;
|
|
99
115
|
value: string;
|
|
116
|
+
focus: (options?: CalendarFocusOptions) => void;
|
|
100
117
|
firstDayOfWeek: DaysOfWeek;
|
|
101
118
|
isDateDisallowed: (date: Date) => boolean;
|
|
102
119
|
min: string;
|
|
103
120
|
max: string;
|
|
121
|
+
today: string;
|
|
104
122
|
locale: string | undefined;
|
|
105
123
|
focusedDate: string | undefined;
|
|
124
|
+
formatWeekday: "short" | "narrow";
|
|
106
125
|
onFocusDay: (event: CustomEvent<Date>) => any;
|
|
126
|
+
getDayParts: (date: Date) => string;
|
|
107
127
|
showOutsideDays: boolean;
|
|
108
128
|
pageBy: Pagination;
|
|
109
129
|
onChange: (event: Event) => any;
|
|
@@ -117,13 +137,17 @@ export declare type CalendarMultiProps = ComponentProps<typeof CalendarMulti>;
|
|
|
117
137
|
export declare const CalendarRange: Atomico<{
|
|
118
138
|
months: number;
|
|
119
139
|
value: string;
|
|
140
|
+
focus: (options?: CalendarFocusOptions) => void;
|
|
120
141
|
firstDayOfWeek: DaysOfWeek;
|
|
121
142
|
isDateDisallowed: (date: Date) => boolean;
|
|
122
143
|
min: string;
|
|
123
144
|
max: string;
|
|
145
|
+
today: string;
|
|
124
146
|
locale: string | undefined;
|
|
125
147
|
focusedDate: string | undefined;
|
|
148
|
+
formatWeekday: "short" | "narrow";
|
|
126
149
|
onFocusDay: (event: CustomEvent<Date>) => any;
|
|
150
|
+
getDayParts: (date: Date) => string;
|
|
127
151
|
showOutsideDays: boolean;
|
|
128
152
|
pageBy: Pagination;
|
|
129
153
|
onChange: (event: Event) => any;
|
|
@@ -133,13 +157,17 @@ export declare const CalendarRange: Atomico<{
|
|
|
133
157
|
} & {}, {
|
|
134
158
|
months: number;
|
|
135
159
|
value: string;
|
|
160
|
+
focus: (options?: CalendarFocusOptions) => void;
|
|
136
161
|
firstDayOfWeek: DaysOfWeek;
|
|
137
162
|
isDateDisallowed: (date: Date) => boolean;
|
|
138
163
|
min: string;
|
|
139
164
|
max: string;
|
|
165
|
+
today: string;
|
|
140
166
|
locale: string | undefined;
|
|
141
167
|
focusedDate: string | undefined;
|
|
168
|
+
formatWeekday: "short" | "narrow";
|
|
142
169
|
onFocusDay: (event: CustomEvent<Date>) => any;
|
|
170
|
+
getDayParts: (date: Date) => string;
|
|
143
171
|
showOutsideDays: boolean;
|
|
144
172
|
pageBy: Pagination;
|
|
145
173
|
onChange: (event: Event) => any;
|