@elliemae/ds-date-time-picker 3.17.0-next.8 → 3.17.0-rc.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/types/DSDateTimePicker.d.ts +183 -0
- package/dist/types/components/DateTimePickerImpl.d.ts +75 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lang/english.d.ts +6 -0
- package/dist/types/tests/DateTimePicker-events.test.d.ts +1 -0
- package/dist/types/tests/DateTimePickerSelectedDate.test.d.ts +1 -0
- package/dist/types/tests/utils.d.ts +1 -0
- package/dist/types/utils.d.ts +2 -0
- package/package.json +8 -8
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
declare const DSDateTimePicker: {
|
|
2
|
+
({ containerProps, className, id, placeholder, date, clearable, onBlur, datePickerProps, timePickerProps, dateInputProps, }: {
|
|
3
|
+
containerProps?: {} | undefined;
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
id?: string | undefined;
|
|
6
|
+
placeholder?: string | undefined;
|
|
7
|
+
date: any;
|
|
8
|
+
clearable?: boolean | undefined;
|
|
9
|
+
onBlur?: (() => null) | undefined;
|
|
10
|
+
datePickerProps?: {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
numberOfMonths: number;
|
|
13
|
+
readOnly: boolean;
|
|
14
|
+
enableOutsideDays: boolean;
|
|
15
|
+
transitionDuration: number;
|
|
16
|
+
firstDayOfWeek: number;
|
|
17
|
+
keepOpenOnDateSelect: boolean;
|
|
18
|
+
hideKeyboardShortcutsPanel: boolean;
|
|
19
|
+
onPrevMonthClick: () => null;
|
|
20
|
+
onNextMonthClick: () => null;
|
|
21
|
+
onClose: () => null;
|
|
22
|
+
onchange: () => null;
|
|
23
|
+
onDateChange: () => null;
|
|
24
|
+
phrases: {
|
|
25
|
+
calendarLabel: string;
|
|
26
|
+
roleDescription: string;
|
|
27
|
+
closeDatePicker: string;
|
|
28
|
+
clearDate: string;
|
|
29
|
+
jumpToPrevMonth: string;
|
|
30
|
+
jumpToNextMonth: string;
|
|
31
|
+
keyboardShortcuts: string;
|
|
32
|
+
showKeyboardShortcutsPanel: string;
|
|
33
|
+
hideKeyboardShortcutsPanel: string;
|
|
34
|
+
openThisPanel: string;
|
|
35
|
+
enterKey: string;
|
|
36
|
+
leftArrowRightArrow: string;
|
|
37
|
+
upArrowDownArrow: string;
|
|
38
|
+
pageUpPageDown: string;
|
|
39
|
+
homeEnd: string;
|
|
40
|
+
escape: string;
|
|
41
|
+
questionMark: string;
|
|
42
|
+
selectFocusedDate: string;
|
|
43
|
+
moveFocusByOneDay: string;
|
|
44
|
+
moveFocusByOneWeek: string;
|
|
45
|
+
moveFocusByOneMonth: string;
|
|
46
|
+
moveFocustoStartAndEndOfWeek: string;
|
|
47
|
+
returnFocusToInput: string;
|
|
48
|
+
keyboardForwardNavigationInstructions: string;
|
|
49
|
+
keyboardBackwardNavigationInstructions: string;
|
|
50
|
+
chooseAvailableDate: ({ date }: {
|
|
51
|
+
date: any;
|
|
52
|
+
}) => any;
|
|
53
|
+
dateIsUnavailable: ({ date }: {
|
|
54
|
+
date: any;
|
|
55
|
+
}) => string;
|
|
56
|
+
dateIsSelected: ({ date }: {
|
|
57
|
+
date: any;
|
|
58
|
+
}) => string;
|
|
59
|
+
};
|
|
60
|
+
displayFormatDay: string;
|
|
61
|
+
isDayBlocked: () => boolean;
|
|
62
|
+
isOutsideRange: () => boolean;
|
|
63
|
+
isDayHighlighted: () => boolean;
|
|
64
|
+
zIndex: number;
|
|
65
|
+
} | undefined;
|
|
66
|
+
timePickerProps?: {
|
|
67
|
+
format: string;
|
|
68
|
+
onChange: () => null;
|
|
69
|
+
disabledTimes: undefined;
|
|
70
|
+
minutesInterval: number;
|
|
71
|
+
} | undefined;
|
|
72
|
+
dateInputProps?: {
|
|
73
|
+
onDateInputDateChange: () => null;
|
|
74
|
+
} | undefined;
|
|
75
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
76
|
+
propTypes: {
|
|
77
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
78
|
+
className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
79
|
+
id: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
80
|
+
/**
|
|
81
|
+
* on blur callback
|
|
82
|
+
*/
|
|
83
|
+
onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
84
|
+
/**
|
|
85
|
+
* Initial date, by default current date
|
|
86
|
+
*/
|
|
87
|
+
date: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
88
|
+
/**
|
|
89
|
+
* Flag to trigger onDateChange on error
|
|
90
|
+
*/
|
|
91
|
+
clearable: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
92
|
+
/**
|
|
93
|
+
* DatePicker properties
|
|
94
|
+
*/
|
|
95
|
+
datePickerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
96
|
+
/**
|
|
97
|
+
* Input placeholder
|
|
98
|
+
*/
|
|
99
|
+
placeholder: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
100
|
+
/**
|
|
101
|
+
* TimePicker properties
|
|
102
|
+
*/
|
|
103
|
+
timePickerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
104
|
+
dateInputProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
105
|
+
};
|
|
106
|
+
displayName: string;
|
|
107
|
+
};
|
|
108
|
+
declare const DateTimePickerWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
109
|
+
containerProps?: {} | undefined;
|
|
110
|
+
className?: string | undefined;
|
|
111
|
+
id?: string | undefined;
|
|
112
|
+
placeholder?: string | undefined;
|
|
113
|
+
date: any;
|
|
114
|
+
clearable?: boolean | undefined;
|
|
115
|
+
onBlur?: (() => null) | undefined;
|
|
116
|
+
datePickerProps?: {
|
|
117
|
+
disabled: boolean;
|
|
118
|
+
numberOfMonths: number;
|
|
119
|
+
readOnly: boolean;
|
|
120
|
+
enableOutsideDays: boolean;
|
|
121
|
+
transitionDuration: number;
|
|
122
|
+
firstDayOfWeek: number;
|
|
123
|
+
keepOpenOnDateSelect: boolean;
|
|
124
|
+
hideKeyboardShortcutsPanel: boolean;
|
|
125
|
+
onPrevMonthClick: () => null;
|
|
126
|
+
onNextMonthClick: () => null;
|
|
127
|
+
onClose: () => null;
|
|
128
|
+
onchange: () => null;
|
|
129
|
+
onDateChange: () => null;
|
|
130
|
+
phrases: {
|
|
131
|
+
calendarLabel: string;
|
|
132
|
+
roleDescription: string;
|
|
133
|
+
closeDatePicker: string;
|
|
134
|
+
clearDate: string;
|
|
135
|
+
jumpToPrevMonth: string;
|
|
136
|
+
jumpToNextMonth: string;
|
|
137
|
+
keyboardShortcuts: string;
|
|
138
|
+
showKeyboardShortcutsPanel: string;
|
|
139
|
+
hideKeyboardShortcutsPanel: string;
|
|
140
|
+
openThisPanel: string;
|
|
141
|
+
enterKey: string;
|
|
142
|
+
leftArrowRightArrow: string;
|
|
143
|
+
upArrowDownArrow: string;
|
|
144
|
+
pageUpPageDown: string;
|
|
145
|
+
homeEnd: string;
|
|
146
|
+
escape: string;
|
|
147
|
+
questionMark: string;
|
|
148
|
+
selectFocusedDate: string;
|
|
149
|
+
moveFocusByOneDay: string;
|
|
150
|
+
moveFocusByOneWeek: string;
|
|
151
|
+
moveFocusByOneMonth: string;
|
|
152
|
+
moveFocustoStartAndEndOfWeek: string;
|
|
153
|
+
returnFocusToInput: string;
|
|
154
|
+
keyboardForwardNavigationInstructions: string;
|
|
155
|
+
keyboardBackwardNavigationInstructions: string;
|
|
156
|
+
chooseAvailableDate: ({ date }: {
|
|
157
|
+
date: any;
|
|
158
|
+
}) => any;
|
|
159
|
+
dateIsUnavailable: ({ date }: {
|
|
160
|
+
date: any;
|
|
161
|
+
}) => string;
|
|
162
|
+
dateIsSelected: ({ date }: {
|
|
163
|
+
date: any;
|
|
164
|
+
}) => string;
|
|
165
|
+
};
|
|
166
|
+
displayFormatDay: string;
|
|
167
|
+
isDayBlocked: () => boolean;
|
|
168
|
+
isOutsideRange: () => boolean;
|
|
169
|
+
isDayHighlighted: () => boolean;
|
|
170
|
+
zIndex: number;
|
|
171
|
+
} | undefined;
|
|
172
|
+
timePickerProps?: {
|
|
173
|
+
format: string;
|
|
174
|
+
onChange: () => null;
|
|
175
|
+
disabledTimes: undefined;
|
|
176
|
+
minutesInterval: number;
|
|
177
|
+
} | undefined;
|
|
178
|
+
dateInputProps?: {
|
|
179
|
+
onDateInputDateChange: () => null;
|
|
180
|
+
} | undefined;
|
|
181
|
+
}>;
|
|
182
|
+
export { DateTimePickerWithSchema, DSDateTimePicker };
|
|
183
|
+
export default DSDateTimePicker;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
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 }, }: {
|
|
2
|
+
onBlur?: (() => null) | undefined;
|
|
3
|
+
placeholder: any;
|
|
4
|
+
date: any;
|
|
5
|
+
clearable: any;
|
|
6
|
+
datePickerProps: {
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
numberOfMonths?: number | undefined;
|
|
9
|
+
readOnly?: boolean | undefined;
|
|
10
|
+
enableOutsideDays?: boolean | undefined;
|
|
11
|
+
transitionDuration?: number | undefined;
|
|
12
|
+
firstDayOfWeek?: number | undefined;
|
|
13
|
+
keepOpenOnDateSelect?: boolean | undefined;
|
|
14
|
+
hideKeyboardShortcutsPanel?: boolean | undefined;
|
|
15
|
+
onPrevMonthClick?: (() => null) | undefined;
|
|
16
|
+
onNextMonthClick?: (() => null) | undefined;
|
|
17
|
+
onClose?: (() => null) | undefined;
|
|
18
|
+
onChange?: (() => null) | undefined;
|
|
19
|
+
onDateChange?: (() => null) | undefined;
|
|
20
|
+
onError?: (() => null) | undefined;
|
|
21
|
+
phrases?: {
|
|
22
|
+
calendarLabel: string;
|
|
23
|
+
roleDescription: string;
|
|
24
|
+
closeDatePicker: string;
|
|
25
|
+
clearDate: string;
|
|
26
|
+
jumpToPrevMonth: string;
|
|
27
|
+
jumpToNextMonth: string;
|
|
28
|
+
keyboardShortcuts: string;
|
|
29
|
+
showKeyboardShortcutsPanel: string;
|
|
30
|
+
hideKeyboardShortcutsPanel: string;
|
|
31
|
+
openThisPanel: string;
|
|
32
|
+
enterKey: string;
|
|
33
|
+
leftArrowRightArrow: string;
|
|
34
|
+
upArrowDownArrow: string;
|
|
35
|
+
pageUpPageDown: string;
|
|
36
|
+
homeEnd: string;
|
|
37
|
+
escape: string;
|
|
38
|
+
questionMark: string;
|
|
39
|
+
selectFocusedDate: string;
|
|
40
|
+
moveFocusByOneDay: string;
|
|
41
|
+
moveFocusByOneWeek: string;
|
|
42
|
+
moveFocusByOneMonth: string;
|
|
43
|
+
moveFocustoStartAndEndOfWeek: string;
|
|
44
|
+
returnFocusToInput: string;
|
|
45
|
+
keyboardForwardNavigationInstructions: string;
|
|
46
|
+
keyboardBackwardNavigationInstructions: string;
|
|
47
|
+
chooseAvailableDate: ({ date }: {
|
|
48
|
+
date: any;
|
|
49
|
+
}) => any;
|
|
50
|
+
dateIsUnavailable: ({ date }: {
|
|
51
|
+
date: any;
|
|
52
|
+
}) => string;
|
|
53
|
+
dateIsSelected: ({ date }: {
|
|
54
|
+
date: any;
|
|
55
|
+
}) => string;
|
|
56
|
+
} | undefined;
|
|
57
|
+
displayFormatDay?: string | undefined;
|
|
58
|
+
isDayBlocked?: (() => boolean) | undefined;
|
|
59
|
+
isOutsideRange?: (() => boolean) | undefined;
|
|
60
|
+
isDayHighlighted?: (() => boolean) | undefined;
|
|
61
|
+
zIndex?: number | undefined;
|
|
62
|
+
};
|
|
63
|
+
timePickerProps: {
|
|
64
|
+
format?: string | undefined;
|
|
65
|
+
onChange?: (() => null) | undefined;
|
|
66
|
+
disabledTimes?: undefined;
|
|
67
|
+
onError?: (() => null) | undefined;
|
|
68
|
+
minutesInterval?: number | undefined;
|
|
69
|
+
};
|
|
70
|
+
dateInputProps: {
|
|
71
|
+
onDateInputDateChange?: (() => null) | undefined;
|
|
72
|
+
};
|
|
73
|
+
}) => import("react/jsx-runtime.js").JSX.Element;
|
|
74
|
+
export { DSDateTimePickerImpl };
|
|
75
|
+
export default DSDateTimePickerImpl;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, DSDateTimePicker, DateTimePickerWithSchema } from './DSDateTimePicker.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function themeProviderHOC(Component: any): (props: any) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-date-time-picker",
|
|
3
|
-
"version": "3.17.0-
|
|
3
|
+
"version": "3.17.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Date Time Picker",
|
|
6
6
|
"files": [
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"lodash": "~4.17.21",
|
|
59
59
|
"moment": "~2.29.4",
|
|
60
|
-
"@elliemae/ds-classnames": "3.17.0-
|
|
61
|
-
"@elliemae/ds-date-picker": "3.17.0-
|
|
62
|
-
"@elliemae/ds-form": "3.17.0-
|
|
63
|
-
"@elliemae/ds-props-helpers": "3.17.0-
|
|
64
|
-
"@elliemae/ds-system": "3.17.0-
|
|
65
|
-
"@elliemae/ds-time-picker": "3.17.0-
|
|
66
|
-
"@elliemae/ds-utilities": "3.17.0-
|
|
60
|
+
"@elliemae/ds-classnames": "3.17.0-rc.0",
|
|
61
|
+
"@elliemae/ds-date-picker": "3.17.0-rc.0",
|
|
62
|
+
"@elliemae/ds-form": "3.17.0-rc.0",
|
|
63
|
+
"@elliemae/ds-props-helpers": "3.17.0-rc.0",
|
|
64
|
+
"@elliemae/ds-system": "3.17.0-rc.0",
|
|
65
|
+
"@elliemae/ds-time-picker": "3.17.0-rc.0",
|
|
66
|
+
"@elliemae/ds-utilities": "3.17.0-rc.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@testing-library/jest-dom": "~5.16.5",
|