@elliemae/ds-date-time-picker 3.0.0-next.1 → 3.0.0-next.13
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/cjs/DSDateTimePicker.js +185 -0
- package/dist/cjs/DSDateTimePicker.js.map +7 -0
- package/dist/cjs/components/DateTimePickerImpl.js +284 -0
- package/dist/cjs/components/DateTimePickerImpl.js.map +7 -0
- package/dist/cjs/index.js +37 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/lang/english.js +39 -0
- package/dist/cjs/lang/english.js.map +7 -0
- package/dist/cjs/tests/utils.js +54 -0
- package/dist/cjs/tests/utils.js.map +7 -0
- package/dist/cjs/utils.js +45 -0
- package/dist/cjs/utils.js.map +7 -0
- package/dist/esm/DSDateTimePicker.js +158 -0
- package/dist/esm/DSDateTimePicker.js.map +7 -0
- package/dist/esm/components/DateTimePickerImpl.js +257 -0
- package/dist/esm/components/DateTimePickerImpl.js.map +7 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/lang/english.js +10 -0
- package/dist/esm/lang/english.js.map +7 -0
- package/dist/esm/tests/utils.js +27 -0
- package/dist/esm/tests/utils.js.map +7 -0
- package/dist/esm/utils.js +16 -0
- package/dist/esm/utils.js.map +7 -0
- package/package.json +42 -33
- package/cjs/DSDateTimePicker.js +0 -193
- package/cjs/components/DateTimePickerImpl.js +0 -285
- package/cjs/index.js +0 -10
- package/cjs/lang/english.js +0 -9
- package/cjs/utils.js +0 -22
- package/esm/DSDateTimePicker.js +0 -182
- package/esm/components/DateTimePickerImpl.js +0 -276
- package/esm/index.js +0 -1
- package/esm/lang/english.js +0 -7
- package/esm/utils.js +0 -14
- package/types/DSDateTimePicker.d.ts +0 -238
- package/types/components/DateTimePickerImpl.d.ts +0 -75
- package/types/index.d.ts +0 -1
- package/types/lang/english.d.ts +0 -6
- package/types/tests/DateTimePicker-events.test.d.ts +0 -1
- package/types/tests/DateTimePickerSelectedDate.test.d.ts +0 -1
- package/types/tests/utils.d.ts +0 -1
- package/types/utils.d.ts +0 -2
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const DSDateTimePicker: {
|
|
4
|
-
({ containerProps, className, id, placeholder, date, clearable, onBlur, datePickerProps, timePickerProps, dateInputProps, }: {
|
|
5
|
-
containerProps?: {} | undefined;
|
|
6
|
-
className?: string | undefined;
|
|
7
|
-
id?: string | undefined;
|
|
8
|
-
placeholder?: string | undefined;
|
|
9
|
-
date: any;
|
|
10
|
-
clearable?: boolean | undefined;
|
|
11
|
-
onBlur?: (() => null) | undefined;
|
|
12
|
-
datePickerProps?: {
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
numberOfMonths: number;
|
|
15
|
-
readOnly: boolean;
|
|
16
|
-
enableOutsideDays: boolean;
|
|
17
|
-
transitionDuration: number;
|
|
18
|
-
firstDayOfWeek: number;
|
|
19
|
-
keepOpenOnDateSelect: boolean;
|
|
20
|
-
hideKeyboardShortcutsPanel: boolean;
|
|
21
|
-
onPrevMonthClick: () => null;
|
|
22
|
-
onNextMonthClick: () => null;
|
|
23
|
-
onClose: () => null;
|
|
24
|
-
onchange: () => null;
|
|
25
|
-
onDateChange: () => null;
|
|
26
|
-
phrases: {
|
|
27
|
-
calendarLabel: string;
|
|
28
|
-
roleDescription: string;
|
|
29
|
-
closeDatePicker: string;
|
|
30
|
-
clearDate: string;
|
|
31
|
-
jumpToPrevMonth: string;
|
|
32
|
-
jumpToNextMonth: string;
|
|
33
|
-
keyboardShortcuts: string;
|
|
34
|
-
showKeyboardShortcutsPanel: string;
|
|
35
|
-
hideKeyboardShortcutsPanel: string;
|
|
36
|
-
openThisPanel: string;
|
|
37
|
-
enterKey: string;
|
|
38
|
-
leftArrowRightArrow: string;
|
|
39
|
-
upArrowDownArrow: string;
|
|
40
|
-
pageUpPageDown: string;
|
|
41
|
-
homeEnd: string;
|
|
42
|
-
escape: string;
|
|
43
|
-
questionMark: string;
|
|
44
|
-
selectFocusedDate: string;
|
|
45
|
-
moveFocusByOneDay: string;
|
|
46
|
-
moveFocusByOneWeek: string;
|
|
47
|
-
moveFocusByOneMonth: string;
|
|
48
|
-
moveFocustoStartAndEndOfWeek: string;
|
|
49
|
-
returnFocusToInput: string;
|
|
50
|
-
keyboardForwardNavigationInstructions: string;
|
|
51
|
-
keyboardBackwardNavigationInstructions: string;
|
|
52
|
-
chooseAvailableDate: ({ date }: {
|
|
53
|
-
date: any;
|
|
54
|
-
}) => any;
|
|
55
|
-
dateIsUnavailable: ({ date }: {
|
|
56
|
-
date: any;
|
|
57
|
-
}) => string;
|
|
58
|
-
dateIsSelected: ({ date }: {
|
|
59
|
-
date: any;
|
|
60
|
-
}) => string;
|
|
61
|
-
};
|
|
62
|
-
displayFormatDay: string;
|
|
63
|
-
isDayBlocked: () => boolean;
|
|
64
|
-
isOutsideRange: () => boolean;
|
|
65
|
-
isDayHighlighted: () => boolean;
|
|
66
|
-
zIndex: number;
|
|
67
|
-
} | undefined;
|
|
68
|
-
timePickerProps?: {
|
|
69
|
-
format: string;
|
|
70
|
-
onChange: () => null;
|
|
71
|
-
disabledTimes: undefined;
|
|
72
|
-
minutesInterval: number;
|
|
73
|
-
} | undefined;
|
|
74
|
-
dateInputProps?: {
|
|
75
|
-
onDateInputDateChange: () => null;
|
|
76
|
-
} | undefined;
|
|
77
|
-
}): JSX.Element;
|
|
78
|
-
propTypes: {
|
|
79
|
-
containerProps: {
|
|
80
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
81
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
82
|
-
};
|
|
83
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
84
|
-
};
|
|
85
|
-
className: {
|
|
86
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
87
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
88
|
-
};
|
|
89
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
90
|
-
};
|
|
91
|
-
id: {
|
|
92
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
93
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
94
|
-
};
|
|
95
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* on blur callback
|
|
99
|
-
*/
|
|
100
|
-
onBlur: {
|
|
101
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
102
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
103
|
-
};
|
|
104
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* Initial date, by default current date
|
|
108
|
-
*/
|
|
109
|
-
date: {
|
|
110
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
111
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
112
|
-
};
|
|
113
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Flag to trigger onDateChange on error
|
|
117
|
-
*/
|
|
118
|
-
clearable: {
|
|
119
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
120
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
121
|
-
};
|
|
122
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* DatePicker properties
|
|
126
|
-
*/
|
|
127
|
-
datePickerProps: {
|
|
128
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
129
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
130
|
-
};
|
|
131
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* Input placeholder
|
|
135
|
-
*/
|
|
136
|
-
placeholder: {
|
|
137
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
138
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
139
|
-
};
|
|
140
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* TimePicker properties
|
|
144
|
-
*/
|
|
145
|
-
timePickerProps: {
|
|
146
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
147
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
148
|
-
};
|
|
149
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
150
|
-
};
|
|
151
|
-
dateInputProps: {
|
|
152
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
153
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
154
|
-
};
|
|
155
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
declare const DateTimePickerWithSchema: {
|
|
160
|
-
(props?: {
|
|
161
|
-
containerProps?: {} | undefined;
|
|
162
|
-
className?: string | undefined;
|
|
163
|
-
id?: string | undefined;
|
|
164
|
-
placeholder?: string | undefined;
|
|
165
|
-
date: any;
|
|
166
|
-
clearable?: boolean | undefined;
|
|
167
|
-
onBlur?: (() => null) | undefined;
|
|
168
|
-
datePickerProps?: {
|
|
169
|
-
disabled: boolean;
|
|
170
|
-
numberOfMonths: number;
|
|
171
|
-
readOnly: boolean;
|
|
172
|
-
enableOutsideDays: boolean;
|
|
173
|
-
transitionDuration: number;
|
|
174
|
-
firstDayOfWeek: number;
|
|
175
|
-
keepOpenOnDateSelect: boolean;
|
|
176
|
-
hideKeyboardShortcutsPanel: boolean;
|
|
177
|
-
onPrevMonthClick: () => null;
|
|
178
|
-
onNextMonthClick: () => null;
|
|
179
|
-
onClose: () => null;
|
|
180
|
-
onchange: () => null;
|
|
181
|
-
onDateChange: () => null;
|
|
182
|
-
phrases: {
|
|
183
|
-
calendarLabel: string;
|
|
184
|
-
roleDescription: string;
|
|
185
|
-
closeDatePicker: string;
|
|
186
|
-
clearDate: string;
|
|
187
|
-
jumpToPrevMonth: string;
|
|
188
|
-
jumpToNextMonth: string;
|
|
189
|
-
keyboardShortcuts: string;
|
|
190
|
-
showKeyboardShortcutsPanel: string;
|
|
191
|
-
hideKeyboardShortcutsPanel: string;
|
|
192
|
-
openThisPanel: string;
|
|
193
|
-
enterKey: string;
|
|
194
|
-
leftArrowRightArrow: string;
|
|
195
|
-
upArrowDownArrow: string;
|
|
196
|
-
pageUpPageDown: string;
|
|
197
|
-
homeEnd: string;
|
|
198
|
-
escape: string;
|
|
199
|
-
questionMark: string;
|
|
200
|
-
selectFocusedDate: string;
|
|
201
|
-
moveFocusByOneDay: string;
|
|
202
|
-
moveFocusByOneWeek: string;
|
|
203
|
-
moveFocusByOneMonth: string;
|
|
204
|
-
moveFocustoStartAndEndOfWeek: string;
|
|
205
|
-
returnFocusToInput: string;
|
|
206
|
-
keyboardForwardNavigationInstructions: string;
|
|
207
|
-
keyboardBackwardNavigationInstructions: string;
|
|
208
|
-
chooseAvailableDate: ({ date }: {
|
|
209
|
-
date: any;
|
|
210
|
-
}) => any;
|
|
211
|
-
dateIsUnavailable: ({ date }: {
|
|
212
|
-
date: any;
|
|
213
|
-
}) => string;
|
|
214
|
-
dateIsSelected: ({ date }: {
|
|
215
|
-
date: any;
|
|
216
|
-
}) => string;
|
|
217
|
-
};
|
|
218
|
-
displayFormatDay: string;
|
|
219
|
-
isDayBlocked: () => boolean;
|
|
220
|
-
isOutsideRange: () => boolean;
|
|
221
|
-
isDayHighlighted: () => boolean;
|
|
222
|
-
zIndex: number;
|
|
223
|
-
} | undefined;
|
|
224
|
-
timePickerProps?: {
|
|
225
|
-
format: string;
|
|
226
|
-
onChange: () => null;
|
|
227
|
-
disabledTimes: undefined;
|
|
228
|
-
minutesInterval: number;
|
|
229
|
-
} | undefined;
|
|
230
|
-
dateInputProps?: {
|
|
231
|
-
onDateInputDateChange: () => null;
|
|
232
|
-
} | undefined;
|
|
233
|
-
} | undefined): JSX.Element;
|
|
234
|
-
propTypes: unknown;
|
|
235
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
236
|
-
};
|
|
237
|
-
export { DateTimePickerWithSchema };
|
|
238
|
-
export default DSDateTimePicker;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const DSDateTimePickerImpl: ({ onBlur, placeholder, date, clearable, datePickerProps: { disabled, numberOfMonths, readOnly, enableOutsideDays, transitionDuration, firstDayOfWeek, keepOpenOnDateSelect, hideKeyboardShortcutsPanel, onPrevMonthClick, onNextMonthClick, onClose, onChange: onDatePickerChange, onDateChange, onError: onErrorDate, phrases, displayFormatDay, isDayBlocked, isOutsideRange, isDayHighlighted, zIndex, }, timePickerProps: { format, onChange: onChangeTimePicker, disabledTimes, onError: onErrorTime, minutesInterval, }, dateInputProps: { onDateInputDateChange }, }: {
|
|
3
|
-
onBlur?: (() => null) | undefined;
|
|
4
|
-
placeholder: any;
|
|
5
|
-
date: any;
|
|
6
|
-
clearable: any;
|
|
7
|
-
datePickerProps: {
|
|
8
|
-
disabled?: boolean | undefined;
|
|
9
|
-
numberOfMonths?: number | undefined;
|
|
10
|
-
readOnly?: boolean | undefined;
|
|
11
|
-
enableOutsideDays?: boolean | undefined;
|
|
12
|
-
transitionDuration?: number | undefined;
|
|
13
|
-
firstDayOfWeek?: number | undefined;
|
|
14
|
-
keepOpenOnDateSelect?: boolean | undefined;
|
|
15
|
-
hideKeyboardShortcutsPanel?: boolean | undefined;
|
|
16
|
-
onPrevMonthClick?: (() => null) | undefined;
|
|
17
|
-
onNextMonthClick?: (() => null) | undefined;
|
|
18
|
-
onClose?: (() => null) | undefined;
|
|
19
|
-
onChange?: (() => null) | undefined;
|
|
20
|
-
onDateChange?: (() => null) | undefined;
|
|
21
|
-
onError?: (() => null) | undefined;
|
|
22
|
-
phrases?: {
|
|
23
|
-
calendarLabel: string;
|
|
24
|
-
roleDescription: string;
|
|
25
|
-
closeDatePicker: string;
|
|
26
|
-
clearDate: string;
|
|
27
|
-
jumpToPrevMonth: string;
|
|
28
|
-
jumpToNextMonth: string;
|
|
29
|
-
keyboardShortcuts: string;
|
|
30
|
-
showKeyboardShortcutsPanel: string;
|
|
31
|
-
hideKeyboardShortcutsPanel: string;
|
|
32
|
-
openThisPanel: string;
|
|
33
|
-
enterKey: string;
|
|
34
|
-
leftArrowRightArrow: string;
|
|
35
|
-
upArrowDownArrow: string;
|
|
36
|
-
pageUpPageDown: string;
|
|
37
|
-
homeEnd: string;
|
|
38
|
-
escape: string;
|
|
39
|
-
questionMark: string;
|
|
40
|
-
selectFocusedDate: string;
|
|
41
|
-
moveFocusByOneDay: string;
|
|
42
|
-
moveFocusByOneWeek: string;
|
|
43
|
-
moveFocusByOneMonth: string;
|
|
44
|
-
moveFocustoStartAndEndOfWeek: string;
|
|
45
|
-
returnFocusToInput: string;
|
|
46
|
-
keyboardForwardNavigationInstructions: string;
|
|
47
|
-
keyboardBackwardNavigationInstructions: string;
|
|
48
|
-
chooseAvailableDate: ({ date }: {
|
|
49
|
-
date: any;
|
|
50
|
-
}) => any;
|
|
51
|
-
dateIsUnavailable: ({ date }: {
|
|
52
|
-
date: any;
|
|
53
|
-
}) => string;
|
|
54
|
-
dateIsSelected: ({ date }: {
|
|
55
|
-
date: any;
|
|
56
|
-
}) => string;
|
|
57
|
-
} | undefined;
|
|
58
|
-
displayFormatDay?: string | undefined;
|
|
59
|
-
isDayBlocked?: (() => boolean) | undefined;
|
|
60
|
-
isOutsideRange?: (() => boolean) | undefined;
|
|
61
|
-
isDayHighlighted?: (() => boolean) | undefined;
|
|
62
|
-
zIndex?: number | undefined;
|
|
63
|
-
};
|
|
64
|
-
timePickerProps: {
|
|
65
|
-
format?: string | undefined;
|
|
66
|
-
onChange?: (() => null) | undefined;
|
|
67
|
-
disabledTimes?: undefined;
|
|
68
|
-
onError?: (() => null) | undefined;
|
|
69
|
-
minutesInterval?: number | undefined;
|
|
70
|
-
};
|
|
71
|
-
dateInputProps: {
|
|
72
|
-
onDateInputDateChange?: (() => null) | undefined;
|
|
73
|
-
};
|
|
74
|
-
}) => JSX.Element;
|
|
75
|
-
export default DSDateTimePickerImpl;
|
package/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, DateTimePickerWithSchema } from './DSDateTimePicker';
|
package/types/lang/english.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/types/tests/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function themeProviderHOC(Component: any): (props: any) => JSX.Element;
|
package/types/utils.d.ts
DELETED