@dhis2-ui/calendar 10.0.0-alpha.4 → 10.0.0-alpha.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -99,7 +99,9 @@ const CalendarInput = function () {
|
|
99
99
|
}
|
100
100
|
};
|
101
101
|
const onFocus = () => {
|
102
|
+
var _rest$onFocus;
|
102
103
|
setOpen(true);
|
104
|
+
rest === null || rest === void 0 ? void 0 : (_rest$onFocus = rest.onFocus) === null || _rest$onFocus === void 0 ? void 0 : _rest$onFocus.call(rest);
|
103
105
|
};
|
104
106
|
const languageDirection = (0, _multiCalendarDates.useResolvedDirection)(dir, locale);
|
105
107
|
const calendarProps = (0, _react.useMemo)(() => {
|
@@ -131,6 +131,9 @@ function CalendarWithEditiableInput() {
|
|
131
131
|
const date = selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.calendarDateString;
|
132
132
|
setDate(date);
|
133
133
|
},
|
134
|
+
onFocus: () => {
|
135
|
+
console.log('focused');
|
136
|
+
},
|
134
137
|
width: "400px",
|
135
138
|
minDate: "2020-07-01",
|
136
139
|
maxDate: "2020-07-09",
|
@@ -90,7 +90,9 @@ export const CalendarInput = function () {
|
|
90
90
|
}
|
91
91
|
};
|
92
92
|
const onFocus = () => {
|
93
|
+
var _rest$onFocus;
|
93
94
|
setOpen(true);
|
95
|
+
rest === null || rest === void 0 ? void 0 : (_rest$onFocus = rest.onFocus) === null || _rest$onFocus === void 0 ? void 0 : _rest$onFocus.call(rest);
|
94
96
|
};
|
95
97
|
const languageDirection = useResolvedDirection(dir, locale);
|
96
98
|
const calendarProps = useMemo(() => {
|
@@ -117,6 +117,9 @@ export function CalendarWithEditiableInput() {
|
|
117
117
|
const date = selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.calendarDateString;
|
118
118
|
setDate(date);
|
119
119
|
},
|
120
|
+
onFocus: () => {
|
121
|
+
console.log('focused');
|
122
|
+
},
|
120
123
|
width: "400px",
|
121
124
|
minDate: "2020-07-01",
|
122
125
|
maxDate: "2020-07-09",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dhis2-ui/calendar",
|
3
|
-
"version": "10.0.0-alpha.
|
3
|
+
"version": "10.0.0-alpha.5",
|
4
4
|
"description": "UI Calendar",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -33,15 +33,15 @@
|
|
33
33
|
"styled-jsx": "^4"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@dhis2-ui/button": "10.0.0-alpha.
|
37
|
-
"@dhis2-ui/card": "10.0.0-alpha.
|
38
|
-
"@dhis2-ui/input": "10.0.0-alpha.
|
39
|
-
"@dhis2-ui/layer": "10.0.0-alpha.
|
40
|
-
"@dhis2-ui/popper": "10.0.0-alpha.
|
41
|
-
"@dhis2/multi-calendar-dates": "2.0.0-alpha.
|
36
|
+
"@dhis2-ui/button": "10.0.0-alpha.5",
|
37
|
+
"@dhis2-ui/card": "10.0.0-alpha.5",
|
38
|
+
"@dhis2-ui/input": "10.0.0-alpha.5",
|
39
|
+
"@dhis2-ui/layer": "10.0.0-alpha.5",
|
40
|
+
"@dhis2-ui/popper": "10.0.0-alpha.5",
|
41
|
+
"@dhis2/multi-calendar-dates": "2.0.0-alpha.5",
|
42
42
|
"@dhis2/prop-types": "^3.1.2",
|
43
|
-
"@dhis2/ui-constants": "10.0.0-alpha.
|
44
|
-
"@dhis2/ui-icons": "10.0.0-alpha.
|
43
|
+
"@dhis2/ui-constants": "10.0.0-alpha.5",
|
44
|
+
"@dhis2/ui-icons": "10.0.0-alpha.5",
|
45
45
|
"classnames": "^2.3.1",
|
46
46
|
"prop-types": "^15.7.2"
|
47
47
|
},
|