@bnsights/bbsf-controls 1.0.44 → 1.0.45
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/README.md +6 -1
- package/bnsights-bbsf-controls-1.0.45.tgz +0 -0
- package/bnsights-bbsf-controls.metadata.json +1 -1
- package/bundles/bnsights-bbsf-controls.umd.js +12 -10
- package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
- package/esm2015/lib/Shared/Models/PagingPayload.js +3 -0
- package/esm2015/lib/controls/Form/Form.component.js +2 -5
- package/esm2015/lib/controls/Paging/Paging.component.js +13 -8
- package/fesm2015/bnsights-bbsf-controls.js +12 -10
- package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
- package/lib/Shared/Models/PagingPayload.d.ts +5 -0
- package/package.json +1 -1
- package/bnsights-bbsf-controls-1.0.44.tgz +0 -0
|
@@ -4755,7 +4755,7 @@
|
|
|
4755
4755
|
pagingDTO.CurrentPageNumber = page;
|
|
4756
4756
|
pagingDTO.TotalCount = this.totalRow;
|
|
4757
4757
|
pagingDTO.IsFilterUpdated = IsFilterUpdated;
|
|
4758
|
-
var
|
|
4758
|
+
var filters = {};
|
|
4759
4759
|
if (this.options.Filters != null && this.options.Filters != []) {
|
|
4760
4760
|
for (var index = 0; index < this.options.Filters.length; index++) {
|
|
4761
4761
|
if (this.options.Filters[index].FormControlName != null && this.options.Filters[index].FormControlName != "") {
|
|
@@ -4766,11 +4766,11 @@
|
|
|
4766
4766
|
if (Array.isArray(ControlValue)) {
|
|
4767
4767
|
for (var element = 0; element < ControlValue.length; element++) {
|
|
4768
4768
|
var value = ControlValue[element];
|
|
4769
|
-
|
|
4769
|
+
filters[this.options.Filters[index].ActionParameterName] = value;
|
|
4770
4770
|
}
|
|
4771
4771
|
}
|
|
4772
4772
|
else {
|
|
4773
|
-
|
|
4773
|
+
filters[this.options.Filters[index].ActionParameterName] = ControlValue;
|
|
4774
4774
|
}
|
|
4775
4775
|
}
|
|
4776
4776
|
else {
|
|
@@ -4778,7 +4778,7 @@
|
|
|
4778
4778
|
ControlValue = JSON.stringify(ControlValue);
|
|
4779
4779
|
if (this.options.Filters[index].FilterType == exports.FilterType.TagInput)
|
|
4780
4780
|
ControlValue = JSON.stringify(ControlValue);
|
|
4781
|
-
|
|
4781
|
+
filters[this.options.Filters[index].ActionParameterName] = ControlValue;
|
|
4782
4782
|
}
|
|
4783
4783
|
}
|
|
4784
4784
|
}
|
|
@@ -4786,11 +4786,16 @@
|
|
|
4786
4786
|
var ElementjQuerySelector = this.options.Filters[index].jQuerySelector;
|
|
4787
4787
|
var ElementValue = document.querySelector(ElementjQuerySelector).value;
|
|
4788
4788
|
if (ElementValue != undefined && ElementValue != null)
|
|
4789
|
-
|
|
4789
|
+
filters[this.options.Filters[index].ActionParameterName] = ElementValue;
|
|
4790
4790
|
}
|
|
4791
4791
|
}
|
|
4792
4792
|
}
|
|
4793
|
-
|
|
4793
|
+
//Set Filters object that sent to action URL
|
|
4794
|
+
var filtersDTO = {
|
|
4795
|
+
PagingDTO: pagingDTO,
|
|
4796
|
+
Filters: filters
|
|
4797
|
+
};
|
|
4798
|
+
this.requestHandlerService.post(this.options.ActionPostURL, this.options.Filters && this.options.Filters.length > 0 ? filtersDTO : pagingDTO)
|
|
4794
4799
|
.subscribe(function (responseData) {
|
|
4795
4800
|
_this.result = responseData.items; //this.castItems(responseData.items);
|
|
4796
4801
|
var castedResult = classTransformer.plainToClass(_this.options.TypeOfResponse, _this.result, { excludeExtraneousValues: true });
|
|
@@ -5851,10 +5856,7 @@
|
|
|
5851
5856
|
FormComponent.prototype.ngAfterViewInit = function () {
|
|
5852
5857
|
var _this = this;
|
|
5853
5858
|
this.options.FormGroup.valueChanges.subscribe(function (es) {
|
|
5854
|
-
|
|
5855
|
-
_this.OnChange.emit(_this.isChange);
|
|
5856
|
-
else
|
|
5857
|
-
_this.isChange = true;
|
|
5859
|
+
_this.OnChange.emit(true);
|
|
5858
5860
|
});
|
|
5859
5861
|
};
|
|
5860
5862
|
FormComponent.prototype.submit = function () {
|