ngx-render-material-forms 2.2.8 → 2.2.9

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.
@@ -2679,7 +2679,8 @@ class CommonService {
2679
2679
  loadProducts(pageNumber, pazeSize, search = '', onlyActive = true, description = false, levelOneId, levelTwoId, levelThreeId, levelFourId) {
2680
2680
  const baseApiUrl = this.getBaseApiUrl();
2681
2681
  const vendorId = this.getValueByKey(this.paramsData, 'vendorId');
2682
- return this.http.get(`${baseApiUrl}/api/VendorFormBuilder/GetVendorProductsV2?vendorId=${vendorId}&pageNumber=${pageNumber}&pageSize=${pazeSize}&search=${search}&onlyActive=${onlyActive}&includeDescription=${description}&levelOne=${levelOneId}&levelTwo=${levelTwoId}&levelThree=${levelThreeId}&levelFour=${levelFourId}`);
2682
+ const programId = this.getValueByKey(this.paramsData, 'programId');
2683
+ return this.http.get(`${baseApiUrl}/api/VendorFormBuilder/GetVendorProductsV2?vendorId=${vendorId}&pageNumber=${pageNumber}&pageSize=${pazeSize}&search=${search}&onlyActive=${onlyActive}&includeDescription=${description}&levelOne=${levelOneId}&levelTwo=${levelTwoId}&levelThree=${levelThreeId}&levelFour=${levelFourId}&programId=${programId}`);
2683
2684
  }
2684
2685
  listSubCategory(category) {
2685
2686
  const vendorId = this.getValueByKey(this.paramsData, 'vendorId');
@@ -2885,6 +2886,7 @@ class MaterialSelectComponent extends MaterialComponent {
2885
2886
  const vendorId = this.getValueByKey(paramsData, 'vendorId');
2886
2887
  const onlyActive = this.getValueByKey(paramsData, 'onlyActive');
2887
2888
  const includeCountry = this.getValueByKey(paramsData, 'filterProductBasedOnCustomerCountry');
2889
+ const programId = this.getValueByKey(paramsData, "programId");
2888
2890
  var currentUser = JSON.parse(localStorage.getItem('currentUser'));
2889
2891
  let headers;
2890
2892
  if (currentUser && currentUser.Tokens && currentUser.Tokens.AccessToken) {
@@ -2903,6 +2905,7 @@ class MaterialSelectComponent extends MaterialComponent {
2903
2905
  const ensearchQuery = this.commonService.scrumble(searchQuery);
2904
2906
  const encodeIncludeCountry = this.commonService.scrumble(includeCountry);
2905
2907
  let enactive = this.commonService.scrumble(onlyActive);
2908
+ const enprogramId = this.commonService.scrumble(programId);
2906
2909
  //Check if enactive is undefined, null, or blank
2907
2910
  if (enactive === undefined || enactive === null || enactive === '') {
2908
2911
  enactive = this.commonService.scrumble(true); // Set default value to true
@@ -2922,7 +2925,7 @@ class MaterialSelectComponent extends MaterialComponent {
2922
2925
  // Get the current hostname
2923
2926
  const hostname = window.location.hostname;
2924
2927
  const baseApiUrl = baseUrlMapping[btoa(hostname)] || null;
2925
- let url = `${baseApiUrl}/api/VendorFormBuilder/GetVendorProducts?vendorId=${envendorId}&pageNumber=${enpageNumber}&pageSize=${enpageSize}&search=${ensearchQuery}&onlyActive=${enactive}&includeDescription=${endescription}`;
2928
+ let url = `${baseApiUrl}/api/VendorFormBuilder/GetVendorProducts?vendorId=${envendorId}&pageNumber=${enpageNumber}&pageSize=${enpageSize}&search=${ensearchQuery}&onlyActive=${enactive}&includeDescription=${endescription}&programId=${enprogramId}`;
2926
2929
  // Only add includeCountryId if it has a valid value
2927
2930
  if (encodeIncludeCountry !== null && encodeIncludeCountry !== undefined && this.isFilterProductBasedOnCustomerCountryValid(this.instance.component.data)) {
2928
2931
  url += `&filterProductBasedOnCustomerCountry=${encodeIncludeCountry}`;
@@ -3507,7 +3510,7 @@ class AddOnProductsComponent {
3507
3510
  this.priceTweek = data.dropdownsFlag?.priceTweek || "Price";
3508
3511
  this.productTweek = data.dropdownsFlag?.productTweek || "Product Name";
3509
3512
  this.quantityTweek = data.dropdownsFlag?.quantityTweek || "Quantity";
3510
- this.showCost = data.dropdownsFlag.showDialogCost;
3513
+ this.showCost = data.dropdownsFlag?.showDialogCost;
3511
3514
  this.categoryTweek = data.dropdownsFlag?.categoryTweek || "Category Name";
3512
3515
  this.subCategoryTweek = data.dropdownsFlag?.subCategoryTweek || "Sub Category";
3513
3516
  this.inventoryTweek = data.dropdownsFlag?.inventoryTweek || "Inventory";
@@ -4401,7 +4404,7 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
4401
4404
  width: '90%',
4402
4405
  maxWidth: '1000px',
4403
4406
  autoFocus: false,
4404
- data: { dropdownsFlag: { showDialogInventory: this.showDialogInventory, showInventory: this.showInventory, inventoryTweek: this.inventoryTweek, quantityTweek: this.quantityTweek, subCategoryTweek: this.subCategoryTweek, categoryTweek: this.categoryTweek, productTweek: this.productTweek, costTweek: this.costTweek, skuTweek: this.skuTweek, priceTweek: this.priceTweek, showDialogCost: this.showDialogCost, showNewProductPicker: this.showNewProductPicker, showDialogSubCategory: this.showDialogSubCategory, showDialogSkuNumber: this.showDialogSkuNumber, showDialogCategory: this.showDialogCategory, showDialogPrice: this.showDialogPrice, showDialogQuantity: this.showDialogQuantity, dropdownL1: this.dropdownL1, dropdownL2: this.dropdownL2, dropdownL3: this.dropdownL3, dropdownL4: this.dropdownL4, dropdownL1Label: this.dropdownL1Label, dropdownL2Label: this.dropdownL2Label, dropdownL3Label: this.dropdownL3Label, dropdownL4Label: this.dropdownL4Label, checkSubmissionStatus: this.checkSubmissionStatus, priceDisable: this.isPriceDisable, showCost: this.showDialogCost }, selectedProducts: this.dataSourceNew }
4407
+ data: { dropdownsFlag: { showDialogInventory: this.showDialogInventory, showInventory: this.showInventory, inventoryTweek: this.inventoryTweek, quantityTweek: this.quantityTweek, subCategoryTweek: this.subCategoryTweek, categoryTweek: this.categoryTweek, productTweek: this.productTweek, costTweek: this.costTweek, skuTweek: this.skuTweek, priceTweek: this.priceTweek, showDialogCost: this.showDialogCost, showNewProductPicker: this.showNewProductPicker, showDialogSubCategory: this.showDialogSubCategory, showDialogSkuNumber: this.showDialogSkuNumber, showDialogCategory: this.showDialogCategory, showDialogPrice: this.showDialogPrice, showDialogQuantity: this.showDialogQuantity, dropdownL1: this.dropdownL1, dropdownL2: this.dropdownL2, dropdownL3: this.dropdownL3, dropdownL4: this.dropdownL4, dropdownL1Label: this.dropdownL1Label, dropdownL2Label: this.dropdownL2Label, dropdownL3Label: this.dropdownL3Label, dropdownL4Label: this.dropdownL4Label, checkSubmissionStatus: this.checkSubmissionStatus, priceDisable: this.isPriceDisable }, selectedProducts: this.dataSourceNew }
4405
4408
  })
4406
4409
  .afterClosed().subscribe(response => {
4407
4410
  this.instance.addRow();