@bnsights/bbsf-controls 1.0.18 → 1.0.22
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/bnsights-bbsf-controls-1.0.22.tgz +0 -0
- package/bnsights-bbsf-controls.metadata.json +1 -1
- package/bundles/bnsights-bbsf-controls.umd.js +6 -4
- package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
- package/esm2015/lib/controls/DateTimePicker/DateTimePicker.component.js +4 -3
- package/esm2015/lib/controls/Paging/Paging.component.js +4 -3
- package/fesm2015/bnsights-bbsf-controls.js +6 -4
- package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
- package/lib/controls/Paging/Paging.component.d.ts +1 -1
- package/package.json +3 -2
- package/bnsights-bbsf-controls-1.0.18.tgz +0 -0
|
@@ -430,14 +430,15 @@
|
|
|
430
430
|
};
|
|
431
431
|
DateInputComponent.prototype.onDateSelect = function (item) {
|
|
432
432
|
var DateValue;
|
|
433
|
+
var tzoffset = (new Date()).getTimezoneOffset() * 60000; //offset in milliseconds
|
|
433
434
|
if (this.options.SelectMode == 2) {
|
|
434
435
|
for (var index = 0; index < item.value.length; index++) {
|
|
435
|
-
item.value[index] = new Date(item.value[index]);
|
|
436
|
+
item.value[index] = new Date(item.value[index] - tzoffset).toISOString().slice(0, -1);
|
|
436
437
|
}
|
|
437
438
|
DateValue = item.value;
|
|
438
439
|
}
|
|
439
440
|
else {
|
|
440
|
-
DateValue = new Date(item.value);
|
|
441
|
+
DateValue = new Date(item.value - tzoffset).toISOString().slice(0, -1);
|
|
441
442
|
}
|
|
442
443
|
this.DatePickerFormControl.setValue(DateValue);
|
|
443
444
|
this.onChangeService.ChangeValue(this.options.Name);
|
|
@@ -4281,7 +4282,7 @@
|
|
|
4281
4282
|
this.IsFirstCall = true;
|
|
4282
4283
|
this.getItemList(this.CurrentPage, true);
|
|
4283
4284
|
};
|
|
4284
|
-
PagingComponent.prototype.
|
|
4285
|
+
PagingComponent.prototype.ngAfterViewInit = function () {
|
|
4285
4286
|
var _this = this;
|
|
4286
4287
|
if (this.options.OnClickFiltersControlNames != null && this.options.OnClickFiltersControlNames.length > 0) {
|
|
4287
4288
|
var OnClickFiltersControlNames = this.options.OnClickFiltersControlNames;
|
|
@@ -4298,7 +4299,8 @@
|
|
|
4298
4299
|
var OnKeyPressFiltersControlNames = this.options.OnKeyPressFiltersControlNames;
|
|
4299
4300
|
for (var index = 0; index < OnKeyPressFiltersControlNames.length; index++) {
|
|
4300
4301
|
var OnKeyPressFiltersControlName = OnKeyPressFiltersControlNames[index];
|
|
4301
|
-
|
|
4302
|
+
var element = this.group.get(OnKeyPressFiltersControlName).nativeElement;
|
|
4303
|
+
element.addEventListener("keypress", function (e) {
|
|
4302
4304
|
if (e.key == "Enter") {
|
|
4303
4305
|
_this.CurrentPage = 1;
|
|
4304
4306
|
_this.IsFirstCall = true;
|