@elliemae/ds-date-time-picker 2.3.0-alpha.3 → 2.3.0-alpha.8
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/{cjs → dist/cjs}/DSDateTimePicker.js +0 -0
- package/{cjs → dist/cjs}/DSDateTimePicker.js.map +0 -0
- package/{cjs → dist/cjs}/components/DateTimePickerImpl.js +0 -0
- package/{cjs → dist/cjs}/components/DateTimePickerImpl.js.map +0 -0
- package/{cjs → dist/cjs}/index.js +0 -0
- package/{cjs → dist/cjs}/index.js.map +0 -0
- package/{cjs → dist/cjs}/lang/english.js +0 -0
- package/{cjs → dist/cjs}/lang/english.js.map +0 -0
- package/{cjs → dist/cjs}/tests/utils.js +0 -0
- package/{cjs → dist/cjs}/tests/utils.js.map +0 -0
- package/{cjs → dist/cjs}/utils.js +0 -0
- package/{cjs → dist/cjs}/utils.js.map +0 -0
- package/{esm → dist/esm}/DSDateTimePicker.js +0 -0
- package/{esm → dist/esm}/DSDateTimePicker.js.map +0 -0
- package/{esm → dist/esm}/components/DateTimePickerImpl.js +0 -0
- package/{esm → dist/esm}/components/DateTimePickerImpl.js.map +0 -0
- package/{esm → dist/esm}/index.js +0 -0
- package/{esm → dist/esm}/index.js.map +0 -0
- package/{esm → dist/esm}/lang/english.js +0 -0
- package/{esm → dist/esm}/lang/english.js.map +0 -0
- package/{esm → dist/esm}/tests/utils.js +0 -0
- package/{esm → dist/esm}/tests/utils.js.map +0 -0
- package/{esm → dist/esm}/utils.js +0 -0
- package/{esm → dist/esm}/utils.js.map +0 -0
- package/package.json +35 -33
- package/types/DSDateTimePicker.d.ts +0 -165
- package/types/components/DateTimePickerImpl.d.ts +0 -76
- 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
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-date-time-picker",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Date Time Picker",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./cjs/index.js"
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
13
16
|
},
|
|
14
17
|
"./utils": {
|
|
15
|
-
"import": "./esm/utils.js",
|
|
16
|
-
"require": "./cjs/utils.js"
|
|
18
|
+
"import": "./dist/esm/utils.js",
|
|
19
|
+
"require": "./dist/cjs/utils.js"
|
|
17
20
|
},
|
|
18
21
|
"./tests/utils": {
|
|
19
|
-
"import": "./esm/tests/utils.js",
|
|
20
|
-
"require": "./cjs/tests/utils.js"
|
|
22
|
+
"import": "./dist/esm/tests/utils.js",
|
|
23
|
+
"require": "./dist/cjs/tests/utils.js"
|
|
21
24
|
},
|
|
22
25
|
"./lang/english": {
|
|
23
|
-
"import": "./esm/lang/english.js",
|
|
24
|
-
"require": "./cjs/lang/english.js"
|
|
26
|
+
"import": "./dist/esm/lang/english.js",
|
|
27
|
+
"require": "./dist/cjs/lang/english.js"
|
|
25
28
|
},
|
|
26
29
|
"./DSDateTimePicker": {
|
|
27
|
-
"import": "./esm/DSDateTimePicker.js",
|
|
28
|
-
"require": "./cjs/DSDateTimePicker.js"
|
|
30
|
+
"import": "./dist/esm/DSDateTimePicker.js",
|
|
31
|
+
"require": "./dist/cjs/DSDateTimePicker.js"
|
|
29
32
|
},
|
|
30
33
|
"./components/DateTimePickerImpl": {
|
|
31
|
-
"import": "./esm/components/DateTimePickerImpl.js",
|
|
32
|
-
"require": "./cjs/components/DateTimePickerImpl.js"
|
|
34
|
+
"import": "./dist/esm/components/DateTimePickerImpl.js",
|
|
35
|
+
"require": "./dist/cjs/components/DateTimePickerImpl.js"
|
|
33
36
|
}
|
|
34
37
|
},
|
|
35
38
|
"sideEffects": [
|
|
@@ -41,30 +44,24 @@
|
|
|
41
44
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
42
45
|
},
|
|
43
46
|
"engines": {
|
|
44
|
-
"
|
|
45
|
-
"node": ">=
|
|
47
|
+
"pnpm": ">=6",
|
|
48
|
+
"node": ">=16"
|
|
46
49
|
},
|
|
47
50
|
"author": "ICE MT",
|
|
48
|
-
"scripts": {
|
|
49
|
-
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
50
|
-
"prebuild": "exit 0",
|
|
51
|
-
"predev": "exit 0",
|
|
52
|
-
"build": "node ../../scripts/build/build.js"
|
|
53
|
-
},
|
|
54
51
|
"dependencies": {
|
|
55
|
-
"@elliemae/ds-classnames": "2.3.0-alpha.
|
|
56
|
-
"@elliemae/ds-date-picker": "2.3.0-alpha.
|
|
57
|
-
"@elliemae/ds-form": "2.3.0-alpha.
|
|
58
|
-
"@elliemae/ds-system": "2.3.0-alpha.
|
|
59
|
-
"@elliemae/ds-time-picker": "2.3.0-alpha.
|
|
60
|
-
"@elliemae/ds-utilities": "2.3.0-alpha.
|
|
52
|
+
"@elliemae/ds-classnames": "2.3.0-alpha.8",
|
|
53
|
+
"@elliemae/ds-date-picker": "2.3.0-alpha.8",
|
|
54
|
+
"@elliemae/ds-form": "2.3.0-alpha.8",
|
|
55
|
+
"@elliemae/ds-system": "2.3.0-alpha.8",
|
|
56
|
+
"@elliemae/ds-time-picker": "2.3.0-alpha.8",
|
|
57
|
+
"@elliemae/ds-utilities": "2.3.0-alpha.8",
|
|
61
58
|
"lodash": "~4.17.21",
|
|
62
59
|
"moment": "~2.29.1",
|
|
63
60
|
"prop-types": "~15.7.2",
|
|
64
61
|
"react-desc": "^4.1.3"
|
|
65
62
|
},
|
|
66
63
|
"devDependencies": {
|
|
67
|
-
"@testing-library/jest-dom": "~5.15.
|
|
64
|
+
"@testing-library/jest-dom": "~5.15.1",
|
|
68
65
|
"@testing-library/react": "~12.1.2",
|
|
69
66
|
"@testing-library/user-event": "~13.5.0",
|
|
70
67
|
"styled-components": "~5.3.3"
|
|
@@ -77,7 +74,12 @@
|
|
|
77
74
|
},
|
|
78
75
|
"publishConfig": {
|
|
79
76
|
"access": "public",
|
|
80
|
-
"
|
|
81
|
-
|
|
77
|
+
"typeSafety": false
|
|
78
|
+
},
|
|
79
|
+
"scripts": {
|
|
80
|
+
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
81
|
+
"prebuild": "exit 0",
|
|
82
|
+
"predev": "exit 0",
|
|
83
|
+
"build": "node ../../scripts/build/build.js"
|
|
82
84
|
}
|
|
83
85
|
}
|
|
@@ -1,165 +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?: unknown): JSX.Element;
|
|
161
|
-
propTypes: unknown;
|
|
162
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
163
|
-
};
|
|
164
|
-
export { DateTimePickerWithSchema, DSDateTimePicker };
|
|
165
|
-
export default DSDateTimePicker;
|
|
@@ -1,76 +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 { DSDateTimePickerImpl };
|
|
76
|
-
export default DSDateTimePickerImpl;
|
package/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, DSDateTimePicker, 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