ngx-render-material-forms 1.8.3 → 1.8.5
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/add-on-products/add-on-products.component.mjs +2 -6
- package/esm2020/lib/components/common.service.mjs +19 -19
- package/esm2020/lib/components/select/select.component.mjs +7 -7
- package/fesm2015/ngx-render-material-forms.js +25 -29
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +25 -29
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2616,15 +2616,15 @@ class CommonService {
|
|
|
2616
2616
|
}
|
|
2617
2617
|
getBaseApiUrl() {
|
|
2618
2618
|
const baseUrlMapping = {
|
|
2619
|
-
'
|
|
2620
|
-
'
|
|
2621
|
-
'
|
|
2622
|
-
'
|
|
2623
|
-
'
|
|
2619
|
+
'bG9jYWxob3N0': 'http://localhost:58504',
|
|
2620
|
+
'bGluY29sbi52YXJ0b3BpYS5jb20=': 'https://lincoln-api.vartopia.com',
|
|
2621
|
+
'c3RhZ2UudmFydG9waWEuY29t': 'https://stage-api.vartopia.com',
|
|
2622
|
+
'bXkudmFydG9waWEuY29t': 'https://reagan-api.vartopia.com',
|
|
2623
|
+
'amFja3Nvbi52YXJ0b3BpYS5jb20=': 'https://jackson-api.vartopia.com'
|
|
2624
2624
|
};
|
|
2625
2625
|
// Get the current hostname
|
|
2626
2626
|
const hostname = window.location.hostname;
|
|
2627
|
-
return baseUrlMapping[hostname] || null;
|
|
2627
|
+
return baseUrlMapping[btoa(hostname)] || null;
|
|
2628
2628
|
}
|
|
2629
2629
|
scrumble(msg) {
|
|
2630
2630
|
if (!isNullOrUndefined(msg)) {
|
|
@@ -2756,25 +2756,25 @@ class CommonService {
|
|
|
2756
2756
|
}
|
|
2757
2757
|
getglobedata() {
|
|
2758
2758
|
const hostMappings = {
|
|
2759
|
-
'
|
|
2760
|
-
'
|
|
2761
|
-
'
|
|
2762
|
-
'
|
|
2763
|
-
'
|
|
2759
|
+
'c3RhZ2UudmFydG9waWEuY29t': this.city + this.region + this.continent + this.state + this.country + this.territory,
|
|
2760
|
+
'bGluY29sbi52YXJ0b3BpYS5jb20=': this.Lcity + this.Lregion + this.Lcontinent + this.Lstate + this.Lcountry + this.Lterritory,
|
|
2761
|
+
'amFja3Nvbi52YXJ0b3BpYS5jb20=': this.Jcity + this.Jregion + this.Jcontinent + this.Jstate + this.Jcountry + this.Jterritory,
|
|
2762
|
+
'bXkudmFydG9waWEuY29t': this.Pcity + this.Pregion + this.Pcontinent + this.Pstate + this.Pcountry + this.Pterritory,
|
|
2763
|
+
'bG9jYWxob3N0': this.city + this.region + this.continent + this.state + this.country + this.territory,
|
|
2764
2764
|
};
|
|
2765
2765
|
const hostname = window.location.hostname;
|
|
2766
|
-
return hostMappings[hostname] || '';
|
|
2766
|
+
return hostMappings[btoa(hostname)] || '';
|
|
2767
2767
|
}
|
|
2768
2768
|
getcombodeal() {
|
|
2769
2769
|
const hostMappings = {
|
|
2770
|
-
'
|
|
2771
|
-
'
|
|
2772
|
-
'
|
|
2773
|
-
'
|
|
2774
|
-
'
|
|
2770
|
+
'c3RhZ2UudmFydG9waWEuY29t': this.Name_1 + this.sales_2 + this.Id_2 + this.Mobile_4 + this.sort_5,
|
|
2771
|
+
'bGluY29sbi52YXJ0b3BpYS5jb20=': this.LName_1 + this.Lsales_2 + this.LId_2 + this.LMobile_4 + this.Lsort_5,
|
|
2772
|
+
'amFja3Nvbi52YXJ0b3BpYS5jb20=': this.JName_1 + this.Jsales_2 + this.JId_2 + this.JMobile_4 + this.Jsort_5,
|
|
2773
|
+
'bXkudmFydG9waWEuY29t': this.PName_1 + this.Psales_2 + this.PId_2 + this.PMobile_4 + this.Psort_5,
|
|
2774
|
+
'bG9jYWxob3N0': this.Name_1 + this.sales_2 + this.Id_2 + this.Mobile_4 + this.sort_5,
|
|
2775
2775
|
};
|
|
2776
2776
|
const hostname = window.location.hostname;
|
|
2777
|
-
return hostMappings[hostname] || '';
|
|
2777
|
+
return hostMappings[btoa(hostname)] || '';
|
|
2778
2778
|
}
|
|
2779
2779
|
}
|
|
2780
2780
|
CommonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: CommonService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -2907,15 +2907,15 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2907
2907
|
endescription = this.commonService.scrumble(false); // Set to 'false' if undefined, null, or blank
|
|
2908
2908
|
}
|
|
2909
2909
|
const baseUrlMapping = {
|
|
2910
|
-
'
|
|
2911
|
-
'
|
|
2912
|
-
'
|
|
2913
|
-
'
|
|
2914
|
-
'
|
|
2910
|
+
'bG9jYWxob3N0': 'http://localhost:58504',
|
|
2911
|
+
'bGluY29sbi52YXJ0b3BpYS5jb20=': 'https://lincoln-api.vartopia.com',
|
|
2912
|
+
'c3RhZ2UudmFydG9waWEuY29t': 'https://stage-api.vartopia.com',
|
|
2913
|
+
'bXkudmFydG9waWEuY29t': 'https://reagan-api.vartopia.com',
|
|
2914
|
+
'amFja3Nvbi52YXJ0b3BpYS5jb20=': 'https://jackson-api.vartopia.com'
|
|
2915
2915
|
};
|
|
2916
2916
|
// Get the current hostname
|
|
2917
2917
|
const hostname = window.location.hostname;
|
|
2918
|
-
const baseApiUrl = baseUrlMapping[hostname] || null;
|
|
2918
|
+
const baseApiUrl = baseUrlMapping[btoa(hostname)] || null;
|
|
2919
2919
|
let url = `${baseApiUrl}/api/VendorFormBuilder/GetVendorProducts?vendorId=${envendorId}&pageNumber=${enpageNumber}&pageSize=${enpageSize}&search=${ensearchQuery}&onlyActive=${enactive}&includeDescription=${endescription}`;
|
|
2920
2920
|
// Only add includeCountryId if it has a valid value
|
|
2921
2921
|
if (encodeIncludeCountry !== null && encodeIncludeCountry !== undefined && this.isFilterProductBasedOnCustomerCountryValid(this.instance.component.data)) {
|
|
@@ -3830,13 +3830,9 @@ class AddOnProductsComponent {
|
|
|
3830
3830
|
quantityControl.setErrors({ 'min': true });
|
|
3831
3831
|
}
|
|
3832
3832
|
// If the value is not an integer, set 'pattern' error
|
|
3833
|
-
else if (
|
|
3833
|
+
else if (!/^\d+$/.test(value)) {
|
|
3834
3834
|
quantityControl.setErrors({ 'pattern': true });
|
|
3835
3835
|
}
|
|
3836
|
-
// Otherwise, set the valid value
|
|
3837
|
-
else {
|
|
3838
|
-
quantityControl.setValue(Number(value));
|
|
3839
|
-
}
|
|
3840
3836
|
}
|
|
3841
3837
|
}
|
|
3842
3838
|
AddOnProductsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AddOnProductsComponent, deps: [{ token: i1$1.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: i2.FormBuilder }, { token: i1$1.MatDialog }, { token: CommonService }], target: i0.ɵɵFactoryTarget.Component });
|