@elliemae/ds-date-time-picker 3.16.4-rc.2 → 3.16.4

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