@egovernments/digit-ui-libraries 1.3.11 → 1.3.12

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/dist/index.js CHANGED
@@ -2456,6 +2456,7 @@ var StoreService = {
2456
2456
  code: stateInfo.code,
2457
2457
  name: stateInfo.name,
2458
2458
  logoUrl: stateInfo.logoUrl,
2459
+ statelogo: stateInfo.statelogo,
2459
2460
  logoUrlWhite: stateInfo.logoUrlWhite,
2460
2461
  bannerUrl: stateInfo.bannerUrl
2461
2462
  },
@@ -2493,15 +2494,6 @@ var StoreService = {
2493
2494
  };
2494
2495
  })
2495
2496
  });
2496
- initData.modules.push({
2497
- module: "MCollect",
2498
- code: "MCollect",
2499
- tenants: initData.tenants.map(function (tenant) {
2500
- return {
2501
- code: tenant.code
2502
- };
2503
- })
2504
- });
2505
2497
  initData.modules.push({
2506
2498
  module: "HRMS",
2507
2499
  code: "HRMS",
@@ -2511,15 +2503,6 @@ var StoreService = {
2511
2503
  };
2512
2504
  })
2513
2505
  });
2514
- initData.modules.push({
2515
- module: "TL",
2516
- code: "TL",
2517
- tenants: initData.tenants.map(function (tenant) {
2518
- return {
2519
- code: tenant.code
2520
- };
2521
- })
2522
- });
2523
2506
  initData.modules.push({
2524
2507
  module: "Receipts",
2525
2508
  code: "Receipts",
@@ -2558,8 +2541,12 @@ var StoreService = {
2558
2541
  },
2559
2542
  defaultData: function (stateCode, moduleCode, language) {
2560
2543
  try {
2544
+ var moduleCodes = [];
2545
+ if (typeof moduleCode !== "string") moduleCode.forEach(function (code) {
2546
+ moduleCodes.push("rainmaker-" + code.toLowerCase());
2547
+ });
2561
2548
  var LocalePromise = LocalizationService.getLocale({
2562
- modules: ["rainmaker-" + moduleCode.toLowerCase()],
2549
+ modules: typeof moduleCode == "string" ? ["rainmaker-" + moduleCode.toLowerCase()] : moduleCodes,
2563
2550
  locale: language,
2564
2551
  tenantId: stateCode
2565
2552
  });