@abp/bootstrap-daterangepicker 10.6.0 → 10.7.0-rc.2
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/package.json +2 -2
- package/src/daterangepicker.js +18 -18
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "10.
|
|
2
|
+
"version": "10.7.0-rc.2",
|
|
3
3
|
"name": "@abp/bootstrap-daterangepicker",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@abp/moment": "~10.
|
|
13
|
+
"@abp/moment": "~10.7.0-rc.2",
|
|
14
14
|
"bootstrap-daterangepicker": "^3.1.0"
|
|
15
15
|
},
|
|
16
16
|
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431",
|
package/src/daterangepicker.js
CHANGED
|
@@ -405,31 +405,31 @@
|
|
|
405
405
|
//
|
|
406
406
|
|
|
407
407
|
this.container.find('.drp-calendar')
|
|
408
|
-
.on('click.daterangepicker', '.prev',
|
|
409
|
-
.on('click.daterangepicker', '.next',
|
|
410
|
-
.on('mousedown.daterangepicker', 'td.available',
|
|
411
|
-
.on('mouseenter.daterangepicker', 'td.available',
|
|
412
|
-
.on('change.daterangepicker', 'select.yearselect',
|
|
413
|
-
.on('change.daterangepicker', 'select.monthselect',
|
|
414
|
-
.on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect',
|
|
408
|
+
.on('click.daterangepicker', '.prev', this.clickPrev.bind(this))
|
|
409
|
+
.on('click.daterangepicker', '.next', this.clickNext.bind(this))
|
|
410
|
+
.on('mousedown.daterangepicker', 'td.available', this.clickDate.bind(this))
|
|
411
|
+
.on('mouseenter.daterangepicker', 'td.available', this.hoverDate.bind(this))
|
|
412
|
+
.on('change.daterangepicker', 'select.yearselect', this.monthOrYearChanged.bind(this))
|
|
413
|
+
.on('change.daterangepicker', 'select.monthselect', this.monthOrYearChanged.bind(this))
|
|
414
|
+
.on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', this.timeChanged.bind(this));
|
|
415
415
|
|
|
416
416
|
this.container.find('.ranges')
|
|
417
|
-
.on('click.daterangepicker', 'li',
|
|
417
|
+
.on('click.daterangepicker', 'li', this.clickRange.bind(this));
|
|
418
418
|
|
|
419
419
|
this.container.find('.drp-buttons')
|
|
420
|
-
.on('click.daterangepicker', 'button.applyBtn',
|
|
421
|
-
.on('click.daterangepicker', 'button.cancelBtn',
|
|
420
|
+
.on('click.daterangepicker', 'button.applyBtn', this.clickApply.bind(this))
|
|
421
|
+
.on('click.daterangepicker', 'button.cancelBtn', this.clickCancel.bind(this));
|
|
422
422
|
|
|
423
423
|
if (this.element.is('input') || this.element.is('button')) {
|
|
424
424
|
this.element.on({
|
|
425
|
-
'click.daterangepicker':
|
|
426
|
-
'focus.daterangepicker':
|
|
427
|
-
'keyup.daterangepicker':
|
|
428
|
-
'keydown.daterangepicker':
|
|
425
|
+
'click.daterangepicker': this.show.bind(this),
|
|
426
|
+
'focus.daterangepicker': this.show.bind(this),
|
|
427
|
+
'keyup.daterangepicker': this.elementChanged.bind(this),
|
|
428
|
+
'keydown.daterangepicker': this.keydown.bind(this) //IE 11 compatibility
|
|
429
429
|
});
|
|
430
430
|
} else {
|
|
431
|
-
this.element.on('click.daterangepicker',
|
|
432
|
-
this.element.on('keydown.daterangepicker',
|
|
431
|
+
this.element.on('click.daterangepicker', this.toggle.bind(this));
|
|
432
|
+
this.element.on('keydown.daterangepicker', this.toggle.bind(this));
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
//
|
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
if (this.isShowing) return;
|
|
1116
1116
|
|
|
1117
1117
|
// Create a click proxy that is private to this instance of datepicker, for unbinding
|
|
1118
|
-
this._outsideClickProxy =
|
|
1118
|
+
this._outsideClickProxy = (function(e) { this.outsideClick(e); }).bind(this);
|
|
1119
1119
|
|
|
1120
1120
|
// Bind global datepicker mousedown for hiding and
|
|
1121
1121
|
$(document)
|
|
@@ -1128,7 +1128,7 @@
|
|
|
1128
1128
|
.on('focusin.daterangepicker', this._outsideClickProxy);
|
|
1129
1129
|
|
|
1130
1130
|
// Reposition the picker if the window is resized while it's open
|
|
1131
|
-
$(window).on('resize.daterangepicker',
|
|
1131
|
+
$(window).on('resize.daterangepicker', (function(e) { this.move(e); }).bind(this));
|
|
1132
1132
|
|
|
1133
1133
|
this.oldStartDate = this.startDate.clone();
|
|
1134
1134
|
this.oldEndDate = this.endDate.clone();
|