ps-toolkit-ui 1.15.74 → 1.15.76

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.
@@ -1705,6 +1705,18 @@
1705
1705
  }
1706
1706
  return tn.join(' ');
1707
1707
  };
1708
+ HelperClass.getFileIcon = function (f) {
1709
+ var fileIcons = {
1710
+ jpeg: 'fa-duotone fa-file-image', jpg: 'fa-duotone fa-file-image', png: 'fa-duotone fa-file-image',
1711
+ doc: 'fa-duotone fa-file-word', docx: 'fa-duotone fa-file-word',
1712
+ xls: 'fa-duotone fa-file-excel', xlsx: 'fa-duotone fa-file-excel', csv: 'fa-duotone fa-file-csv',
1713
+ ppt: 'fa-duotone fa-file-powerpoint', pptx: 'fa-duotone fa-file-powerpoint',
1714
+ txt: 'fa-duotone fa-file-lines', pdf: 'fa-duotone fa-file-pdf', file: 'fa-duotone fa-file',
1715
+ zip: 'fa-duotone fa-file-zipper', rar: 'fa-duotone fa-file-zipper'
1716
+ };
1717
+ var k = f.split('.').at(-1);
1718
+ return fileIcons[k] ? fileIcons[k] : fileIcons.file;
1719
+ };
1708
1720
  HelperClass.groupBy = function (data, iteratee) {
1709
1721
  return _.groupBy(data, iteratee);
1710
1722
  };
@@ -2937,6 +2949,7 @@
2937
2949
  new RequestClass(this.config.environment).send(this.currentData.setting.sidebar.countUrl, exports.Method.Post, null, null, function (result) {
2938
2950
  result.forEach(function (x) {
2939
2951
  var s = _this.sidebar.find(function (f) { return f.controller === x.Controller; });
2952
+ console.log(s, '#########', _this.sidebar);
2940
2953
  if (s != null) {
2941
2954
  s.count = x.Count;
2942
2955
  s.countAll = x.CountAll;