ngx-render-material-forms 1.7.6 → 1.7.8
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/esm2020/lib/components/select/select.component.mjs +9 -4
- package/fesm2015/ngx-render-material-forms.js +8 -3
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +8 -3
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2829,7 +2829,7 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2829
2829
|
const includeDescription = this.getValueByKey(paramsData, 'includeDescription');
|
|
2830
2830
|
const vendorId = this.getValueByKey(paramsData, 'vendorId');
|
|
2831
2831
|
const onlyActive = this.getValueByKey(paramsData, 'onlyActive');
|
|
2832
|
-
const
|
|
2832
|
+
const includeCurrencyId = this.getValueByKey(paramsData, 'includeCurrencyId');
|
|
2833
2833
|
var currentUser = JSON.parse(localStorage.getItem('currentUser'));
|
|
2834
2834
|
let headers;
|
|
2835
2835
|
if (currentUser && currentUser.Tokens && currentUser.Tokens.AccessToken) {
|
|
@@ -2846,7 +2846,7 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2846
2846
|
const enpageNumber = this.scrumble(pageNumber);
|
|
2847
2847
|
const enpageSize = this.scrumble(pageSize);
|
|
2848
2848
|
const ensearchQuery = this.scrumble(searchQuery);
|
|
2849
|
-
const
|
|
2849
|
+
const encodeIncludeCurrencyId = this.scrumble(includeCurrencyId);
|
|
2850
2850
|
let enactive = this.scrumble(onlyActive);
|
|
2851
2851
|
//Check if enactive is undefined, null, or blank
|
|
2852
2852
|
if (enactive === undefined || enactive === null || enactive === '') {
|
|
@@ -2867,7 +2867,12 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2867
2867
|
// Get the current hostname
|
|
2868
2868
|
const hostname = window.location.hostname;
|
|
2869
2869
|
const baseApiUrl = baseUrlMapping[hostname] || null;
|
|
2870
|
-
|
|
2870
|
+
let url = `${baseApiUrl}/api/VendorFormBuilder/GetVendorProducts?vendorId=${envendorId}&pageNumber=${enpageNumber}&pageSize=${enpageSize}&search=${ensearchQuery}&onlyActive=${enactive}&includeDescription=${endescription}`;
|
|
2871
|
+
// Only add includeCurrencyId if it has a valid value
|
|
2872
|
+
if (encodeIncludeCurrencyId !== null && encodeIncludeCurrencyId !== undefined) {
|
|
2873
|
+
url += `&includeCurrencyId=${encodeIncludeCurrencyId}`;
|
|
2874
|
+
}
|
|
2875
|
+
this.http.get(url, { headers }).subscribe(response => {
|
|
2871
2876
|
if (response && response.code === 200) {
|
|
2872
2877
|
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2873
2878
|
this.totalPages = response?.data?.totalPages;
|