@seafile/seafile-calendar 1.0.11-beta.4 → 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/Picker.js +6 -0
- package/lib/Picker.js +6 -0
- package/package.json +1 -1
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
|
};
|
|
@@ -158,6 +159,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
158
159
|
}
|
|
159
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/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
|
};
|
|
@@ -194,6 +195,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
194
195
|
}
|
|
195
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
|
|