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.
- package/build/documents.d.ts +2 -2
- package/build/documents.js +6 -3
- package/dist/dattatable.js +423 -423
- package/dist/dattatable.min.js +1 -1
- package/docs/classes/CanvasForm.html +1 -1
- package/docs/classes/Dashboard.html +2 -2
- package/docs/classes/DataTable.html +2 -2
- package/docs/classes/Documents.html +5 -5
- package/docs/classes/FilterSlideout.html +1 -1
- package/docs/classes/Footer.html +1 -1
- package/docs/classes/Header.html +1 -1
- package/docs/classes/InstallationRequired.html +1 -1
- package/docs/classes/ItemForm.html +3 -3
- package/docs/classes/LoadingDialog.html +1 -1
- package/docs/classes/Modal.html +1 -1
- package/docs/classes/Navigation.html +1 -1
- package/docs/enums/ActionButtonTypes.html +1 -1
- package/docs/interfaces/IDashboardProps.html +1 -1
- package/docs/interfaces/IDataTable.html +1 -1
- package/docs/interfaces/IDataTableProps.html +1 -1
- package/docs/interfaces/IDocumentsProps.html +1 -1
- package/docs/interfaces/IFilterItem.html +1 -1
- package/docs/interfaces/IFilterProps.html +1 -1
- package/docs/interfaces/IFooterProps.html +1 -1
- package/docs/interfaces/IHeaderProps.html +1 -1
- package/docs/interfaces/IItemFormCreateProps.html +1 -1
- package/docs/interfaces/IItemFormEditProps.html +1 -1
- package/docs/interfaces/IItemFormViewProps.html +1 -1
- package/docs/interfaces/IShowDialogProps.html +1 -1
- package/docs/modules.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +7 -7
package/build/documents.d.ts
CHANGED
|
@@ -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
|
|
48
|
+
onRendered?: (el?: HTMLElement) => void;
|
|
49
|
+
onSearchRendered?: (el?: HTMLElement) => void;
|
|
50
50
|
onShowFilter?: Function;
|
|
51
51
|
table?: {
|
|
52
52
|
columns?: Components.ITableColumn[];
|
package/build/documents.js
CHANGED
|
@@ -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));
|