dattatable 1.5.2 → 1.5.3

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.
@@ -45,8 +45,8 @@ export interface IDocumentsProps {
45
45
  onNavigationRendering?: (props: Components.INavbarProps) => void;
46
46
  onNavigationRendered?: (nav: Components.INavbar) => void;
47
47
  onRefresh?: () => void;
48
- onRendered?: () => void;
49
- onSearchRendered?: (el: HTMLElement) => void;
48
+ onRendered?: (el?: HTMLElement) => void;
49
+ onSearchRendered?: (el?: HTMLElement) => void;
50
50
  onShowFilter?: Function;
51
51
  table?: {
52
52
  columns?: Components.ITableColumn[];
@@ -393,8 +393,8 @@ var Documents = /** @class */ (function () {
393
393
  // Render the file
394
394
  _this.renderFileIcon(el, _this.getFileName(file));
395
395
  // Set the filter/sort value
396
- el.setAttribute("data-filter", _this.getFileName(file));
397
- el.setAttribute("data-sort", _this.getFileName(file));
396
+ el.setAttribute("data-filter", (0, methods_1.getFileExt)(_this.getFileName(file)));
397
+ el.setAttribute("data-sort", (0, methods_1.getFileExt)(_this.getFileName(file)));
398
398
  // Call the custom event
399
399
  customEvent ? customEvent(el, col, file) : null;
400
400
  };
@@ -560,7 +560,7 @@ var Documents = /** @class */ (function () {
560
560
  // Render the table
561
561
  _this.renderTable();
562
562
  // Call the render event
563
- _this._props.onRendered ? _this._props.onRendered() : null;
563
+ _this._props.onRendered ? _this._props.onRendered(_this._el) : null;
564
564
  // Resolve the promise
565
565
  resolve();
566
566
  }, reject);
@@ -804,6 +804,7 @@ var Documents = /** @class */ (function () {
804
804
  span.title = "Binary File";
805
805
  break;
806
806
  // Code
807
+ case "app":
807
808
  case "asp":
808
809
  case "aspx":
809
810
  case "css":
@@ -815,6 +816,8 @@ var Documents = /** @class */ (function () {
815
816
  case "mht":
816
817
  case "mhtml":
817
818
  case "scss":
819
+ case "sppkg":
820
+ case "wsp":
818
821
  case "xml":
819
822
  case "yaml":
820
823
  span.appendChild((0, fileEarmarkCode_1.fileEarmarkCode)(size));