principal-dashboard-lib-v2 0.0.22 → 0.0.23

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.
@@ -881,7 +881,7 @@
881
881
  this.isChartView = true;
882
882
  }
883
883
  ChartheaderComponent.prototype.ngOnInit = function () {
884
- this.libVersion = "0.0.22";
884
+ this.libVersion = "0.0.23";
885
885
  // this.myIcon = document.getElementById('myIconImg');
886
886
  // this.changeChatType()
887
887
  };
@@ -2656,16 +2656,14 @@
2656
2656
  });
2657
2657
  };
2658
2658
  TableviewComponent.prototype.findAndSimplifyNestedArray = function (data) {
2659
- // Iterate through the data array to find the nested array
2659
+ console.log('this.tableViewData', data);
2660
2660
  for (var i = 0; i < data.length; i++) {
2661
2661
  if (Array.isArray(data[i])) {
2662
- // Check if the nested array contains all the same values
2663
2662
  var nestedArray = data[i];
2664
2663
  if (nestedArray.every(function (item) { return Array.isArray(item) && item.every(function (val) { return val === item[0]; }); })) {
2665
- // Replace the nested array with just one value if all values are the same
2666
2664
  data[i] = [[nestedArray[0][0]]];
2667
2665
  }
2668
- return data[i]; // Return the modified array
2666
+ return data[i];
2669
2667
  }
2670
2668
  }
2671
2669
  return "No nested array found.";
@@ -2691,12 +2689,16 @@
2691
2689
  TableviewComponent.prototype.mergerSourceWithRoomData = function (tableViewData) {
2692
2690
  var lastIndexValue = tableViewData[tableViewData.length - 1].join(' ');
2693
2691
  // Merge last index value into the 6th index
2692
+ console.log('lastIndexValue', lastIndexValue);
2694
2693
  if (lastIndexValue === 'ce6') {
2695
2694
  //lastIndexValue = '<span style="color:black;"><i class="fa fa-windows" aria-hidden="true"></i></span>';
2696
2695
  lastIndexValue = '<span style="color:black;"></span>';
2697
2696
  }
2698
2697
  else if (lastIndexValue === 'ce6-a') {
2699
- lastIndexValue = '<span style="color:black;font-weight:bold;font-size:14px;"><i class="fa fa-android" aria-hidden="true"></i></span>';
2698
+ lastIndexValue = '<span style="color:#1b60d1;font-weight:bold;font-size:14px;"><i class="fa fa-android" aria-hidden="true"></i></span>';
2699
+ }
2700
+ else if (lastIndexValue === 'c') {
2701
+ lastIndexValue = '<span style="color:#1b60d1;font-weight:bold;font-size:14px; display:flex;"><i style="margin-top:-1px;" class="fa fa-android" aria-hidden="true"></i><i style="margin-left:5px;" class="fa fa-desktop" aria-hidden="true"></i></span>';
2700
2702
  }
2701
2703
  //tableViewData[6] = tableViewData[6] + '\n' + lastIndexValue;
2702
2704
  //tableViewData[6] = '<div style="display: flex;flex-direction: row;align-content: center;justify-content: flex-start;align-items: center;">'+lastIndexValue + '&nbsp;&nbsp;' + '<span style="font-size:11px !important;color:gray;font-weight:600;">'+tableViewData[6]+'</span></div>';
@@ -2757,7 +2759,9 @@
2757
2759
  label.textContent === 'undefined\n' ||
2758
2760
  label.textContent === '\nundefined' ||
2759
2761
  label.textContent === ' undefined' ||
2760
- label.textContent === 'undefined-') {
2762
+ label.textContent === 'undefined-' ||
2763
+ label.textContent === 'undefined-c' ||
2764
+ label.textContent === 'undefined- ') {
2761
2765
  label.textContent = '';
2762
2766
  }
2763
2767
  labelArray.push(label);