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