@seafile/seafile-calendar 1.0.11-beta.5 → 1.0.12
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/es/Calendar.js +1 -1
- package/es/Picker.js +2 -8
- package/es/date/DateInput.js +1 -2
- package/lib/Calendar.js +1 -1
- package/lib/Picker.js +2 -8
- package/lib/date/DateInput.js +1 -2
- package/package.json +1 -1
package/es/Calendar.js
CHANGED
|
@@ -367,7 +367,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
367
367
|
};
|
|
368
368
|
|
|
369
369
|
this.onClear = function () {
|
|
370
|
-
_this2.onSelect(null
|
|
370
|
+
_this2.onSelect(null);
|
|
371
371
|
_this2.props.onClear();
|
|
372
372
|
_this2.setState({ currentStatus: CALENDAR_STATUS.CURRENT_TIME });
|
|
373
373
|
};
|
package/es/Picker.js
CHANGED
|
@@ -143,7 +143,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
143
143
|
this.onCalendarKeyDown = function (event) {
|
|
144
144
|
if (event.keyCode === KeyCode.ESC) {
|
|
145
145
|
event.stopPropagation();
|
|
146
|
-
console.log(88);
|
|
147
146
|
_this2.close(_this2.focus);
|
|
148
147
|
}
|
|
149
148
|
};
|
|
@@ -157,9 +156,8 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
157
156
|
value: value
|
|
158
157
|
});
|
|
159
158
|
}
|
|
160
|
-
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput'
|
|
159
|
+
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
|
|
161
160
|
if (!_this2.props.isRemainOpen) {
|
|
162
|
-
console.log(106);
|
|
163
161
|
_this2.close(_this2.focus);
|
|
164
162
|
}
|
|
165
163
|
}
|
|
@@ -174,17 +172,14 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
174
172
|
};
|
|
175
173
|
|
|
176
174
|
this.onCalendarOk = function () {
|
|
177
|
-
console.log(121);
|
|
178
175
|
_this2.close(_this2.focus);
|
|
179
176
|
};
|
|
180
177
|
|
|
181
178
|
this.onCalendarClear = function () {
|
|
182
|
-
|
|
183
|
-
_this2.close(_this2.focus);
|
|
179
|
+
// Click clear button, do not close the time picker
|
|
184
180
|
};
|
|
185
181
|
|
|
186
182
|
this.onCalendarBlur = function () {
|
|
187
|
-
console.log(131);
|
|
188
183
|
_this2.setOpen(false);
|
|
189
184
|
};
|
|
190
185
|
|
|
@@ -231,7 +226,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
231
226
|
};
|
|
232
227
|
|
|
233
228
|
this.close = function (callback) {
|
|
234
|
-
console.log(187, 'close');
|
|
235
229
|
_this2.setOpen(false, callback);
|
|
236
230
|
};
|
|
237
231
|
|
package/es/date/DateInput.js
CHANGED
|
@@ -142,8 +142,7 @@ DateInput.propTypes = {
|
|
|
142
142
|
var _initialiseProps = function _initialiseProps() {
|
|
143
143
|
var _this3 = this;
|
|
144
144
|
|
|
145
|
-
this.onClear = function (
|
|
146
|
-
e && e.stopPropagation();
|
|
145
|
+
this.onClear = function () {
|
|
147
146
|
_this3.setState({ str: '' });
|
|
148
147
|
_this3.props.onClear(null);
|
|
149
148
|
};
|
package/lib/Calendar.js
CHANGED
|
@@ -431,7 +431,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
431
431
|
};
|
|
432
432
|
|
|
433
433
|
this.onClear = function () {
|
|
434
|
-
_this2.onSelect(null
|
|
434
|
+
_this2.onSelect(null);
|
|
435
435
|
_this2.props.onClear();
|
|
436
436
|
_this2.setState({ currentStatus: _util.CALENDAR_STATUS.CURRENT_TIME });
|
|
437
437
|
};
|
package/lib/Picker.js
CHANGED
|
@@ -179,7 +179,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
179
179
|
this.onCalendarKeyDown = function (event) {
|
|
180
180
|
if (event.keyCode === _KeyCode2['default'].ESC) {
|
|
181
181
|
event.stopPropagation();
|
|
182
|
-
console.log(88);
|
|
183
182
|
_this2.close(_this2.focus);
|
|
184
183
|
}
|
|
185
184
|
};
|
|
@@ -193,9 +192,8 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
193
192
|
value: value
|
|
194
193
|
});
|
|
195
194
|
}
|
|
196
|
-
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput'
|
|
195
|
+
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !props.calendar.props.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
|
|
197
196
|
if (!_this2.props.isRemainOpen) {
|
|
198
|
-
console.log(106);
|
|
199
197
|
_this2.close(_this2.focus);
|
|
200
198
|
}
|
|
201
199
|
}
|
|
@@ -210,17 +208,14 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
210
208
|
};
|
|
211
209
|
|
|
212
210
|
this.onCalendarOk = function () {
|
|
213
|
-
console.log(121);
|
|
214
211
|
_this2.close(_this2.focus);
|
|
215
212
|
};
|
|
216
213
|
|
|
217
214
|
this.onCalendarClear = function () {
|
|
218
|
-
|
|
219
|
-
_this2.close(_this2.focus);
|
|
215
|
+
// Click clear button, do not close the time picker
|
|
220
216
|
};
|
|
221
217
|
|
|
222
218
|
this.onCalendarBlur = function () {
|
|
223
|
-
console.log(131);
|
|
224
219
|
_this2.setOpen(false);
|
|
225
220
|
};
|
|
226
221
|
|
|
@@ -267,7 +262,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
267
262
|
};
|
|
268
263
|
|
|
269
264
|
this.close = function (callback) {
|
|
270
|
-
console.log(187, 'close');
|
|
271
265
|
_this2.setOpen(false, callback);
|
|
272
266
|
};
|
|
273
267
|
|
package/lib/date/DateInput.js
CHANGED
|
@@ -174,8 +174,7 @@ DateInput.propTypes = {
|
|
|
174
174
|
var _initialiseProps = function _initialiseProps() {
|
|
175
175
|
var _this3 = this;
|
|
176
176
|
|
|
177
|
-
this.onClear = function (
|
|
178
|
-
e && e.stopPropagation();
|
|
177
|
+
this.onClear = function () {
|
|
179
178
|
_this3.setState({ str: '' });
|
|
180
179
|
_this3.props.onClear(null);
|
|
181
180
|
};
|