@seafile/seafile-calendar 1.0.11-beta.3 → 1.0.11-beta.5

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