buildingproduct-library 0.2.82 → 0.2.83
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/{buildingproduct-library-0.2.82.tgz → buildingproduct-library-0.2.83.tgz} +0 -0
- package/bundles/buildingproduct-library.umd.js +25 -12
- package/bundles/buildingproduct-library.umd.js.map +1 -1
- package/esm2015/lib/custom-order-history/custom-order-history.component.js +12 -7
- package/esm2015/lib/my-account/invoice-credit/invoice-credit.component.js +15 -7
- package/fesm2015/buildingproduct-library.js +25 -12
- package/fesm2015/buildingproduct-library.js.map +1 -1
- package/lib/my-account/invoice-credit/invoice-credit.component.d.ts +1 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -7235,9 +7235,12 @@
|
|
|
7235
7235
|
var ind = this.selectedOrderState.findIndex(function (element) { return element.value == data.value; });
|
|
7236
7236
|
this.selectedOrderState.splice(ind, 1);
|
|
7237
7237
|
this.orderHistoryLists = [];
|
|
7238
|
-
if (this.selectedOrderState.length == 0) {
|
|
7238
|
+
if (this.selectedOrderState.length == 0 && this.searchText == '') {
|
|
7239
7239
|
this.noSearchResults = true;
|
|
7240
7240
|
}
|
|
7241
|
+
else {
|
|
7242
|
+
this.getSearchResults();
|
|
7243
|
+
}
|
|
7241
7244
|
if (!mobileData && ((_a = this.selectedOrderState) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
7242
7245
|
this.getSearchResults();
|
|
7243
7246
|
}
|
|
@@ -7249,7 +7252,7 @@
|
|
|
7249
7252
|
var ind = this.selectedOrderState.findIndex(function (element) { return element.value == data.value; });
|
|
7250
7253
|
this.selectedOrderState.splice(ind, 1);
|
|
7251
7254
|
this.orderHistoryLists = [];
|
|
7252
|
-
if (((_a = this.selectedOrderState) === null || _a === void 0 ? void 0 : _a.length) == 0) {
|
|
7255
|
+
if (((_a = this.selectedOrderState) === null || _a === void 0 ? void 0 : _a.length) == 0 && this.searchText == '') {
|
|
7253
7256
|
this.noSearchResults = true;
|
|
7254
7257
|
this.orderHistoryLists = [];
|
|
7255
7258
|
}
|
|
@@ -7324,15 +7327,17 @@
|
|
|
7324
7327
|
key: this.selectedOrderType,
|
|
7325
7328
|
value: this.searchText,
|
|
7326
7329
|
};
|
|
7327
|
-
if (this.searchText != '' && this.
|
|
7330
|
+
if (this.searchText != '' && (this.selectedOrderType == 'orderNumber' ||
|
|
7331
|
+
this.selectedOrderType == 'poNumber') && this.isSearchClicked == true) {
|
|
7328
7332
|
this.isSearchClicked = false;
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
this.selectedFilters.push(obj);
|
|
7333
|
+
this.selectedOrderState = [];
|
|
7334
|
+
this.selectedFilters = [];
|
|
7335
|
+
// this.selectedFilters.push(obj);
|
|
7332
7336
|
}
|
|
7333
7337
|
else {
|
|
7334
7338
|
// this.selectedFilters.push(obj);
|
|
7335
7339
|
}
|
|
7340
|
+
this.selectedFilters.push(obj);
|
|
7336
7341
|
var reqObj = {
|
|
7337
7342
|
searchParams: this.selectedFilters,
|
|
7338
7343
|
};
|
|
@@ -10700,6 +10705,7 @@
|
|
|
10700
10705
|
this.isInputValue = false;
|
|
10701
10706
|
this.selectedDateKey = 'dateRange';
|
|
10702
10707
|
this.isFirstCall = true;
|
|
10708
|
+
this.isSearchClicked = false;
|
|
10703
10709
|
}
|
|
10704
10710
|
InvoiceCreditComponent.prototype.ngOnInit = function () {
|
|
10705
10711
|
var _this = this;
|
|
@@ -10864,8 +10870,6 @@
|
|
|
10864
10870
|
InvoiceCreditComponent.prototype.getCheckedInvoiceStatuses = function (data) {
|
|
10865
10871
|
var ind = this.selectedStatuses.findIndex(function (element) { return element.value == data.value; });
|
|
10866
10872
|
return ind > -1 ? true : false;
|
|
10867
|
-
this.invoiceCreditList = [];
|
|
10868
|
-
this.getSearchResults();
|
|
10869
10873
|
};
|
|
10870
10874
|
InvoiceCreditComponent.prototype.checkInvoiceStatus = function (event, data, mobileData) {
|
|
10871
10875
|
var _a;
|
|
@@ -10882,7 +10886,13 @@
|
|
|
10882
10886
|
var ind = this.selectedStatuses.findIndex(function (element) { return element.value == data.value; });
|
|
10883
10887
|
this.selectedStatuses.splice(ind, 1);
|
|
10884
10888
|
this.invoiceCreditList = [];
|
|
10885
|
-
|
|
10889
|
+
if (this.selectedStatuses.length == 0 && this.searchText == '') {
|
|
10890
|
+
this.noSearchResults = true;
|
|
10891
|
+
}
|
|
10892
|
+
else {
|
|
10893
|
+
this.getSearchResults();
|
|
10894
|
+
return;
|
|
10895
|
+
}
|
|
10886
10896
|
if (!mobileData && ((_a = this.selectedStatuses) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
10887
10897
|
this.getSearchResults();
|
|
10888
10898
|
}
|
|
@@ -10894,7 +10904,7 @@
|
|
|
10894
10904
|
var ind = this.selectedStatuses.findIndex(function (element) { return element.value == data.value; });
|
|
10895
10905
|
this.selectedStatuses.splice(ind, 1);
|
|
10896
10906
|
this.invoiceCreditList = [];
|
|
10897
|
-
if (((_a = this.selectedStatuses) === null || _a === void 0 ? void 0 : _a.length) == 0) {
|
|
10907
|
+
if (((_a = this.selectedStatuses) === null || _a === void 0 ? void 0 : _a.length) == 0 && this.searchText == '') {
|
|
10898
10908
|
this.invoiceCreditList = [];
|
|
10899
10909
|
this.noSearchResults = true;
|
|
10900
10910
|
}
|
|
@@ -10912,11 +10922,13 @@
|
|
|
10912
10922
|
key: this.selectedOrderType,
|
|
10913
10923
|
value: this.searchText,
|
|
10914
10924
|
};
|
|
10915
|
-
if (this.searchText != '') {
|
|
10925
|
+
if (this.searchText != '' && this.isSearchClicked == true) {
|
|
10926
|
+
this.isSearchClicked = false;
|
|
10916
10927
|
this.selectedStatuses = [];
|
|
10917
10928
|
this.selectedFilters = [];
|
|
10918
|
-
this.selectedFilters.push(obj);
|
|
10929
|
+
// this.selectedFilters.push(obj);
|
|
10919
10930
|
}
|
|
10931
|
+
this.selectedFilters.push(obj);
|
|
10920
10932
|
var reqObj = {
|
|
10921
10933
|
searchParams: this.selectedFilters,
|
|
10922
10934
|
};
|
|
@@ -10996,6 +11008,7 @@
|
|
|
10996
11008
|
};
|
|
10997
11009
|
InvoiceCreditComponent.prototype.search = function () {
|
|
10998
11010
|
this.currentPage = 0;
|
|
11011
|
+
this.isSearchClicked = true;
|
|
10999
11012
|
this.getSearchResults();
|
|
11000
11013
|
};
|
|
11001
11014
|
InvoiceCreditComponent.prototype.loadMoreRecord = function () {
|