dattatable 2.4.6 → 2.4.7
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/auditLog/index.d.ts +2 -1
- package/build/auditLog/index.js +8 -3
- package/dist/dattatable.js +447 -436
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AuditLog.html +13 -13
- package/docs/classes/CanvasForm.html +17 -17
- package/docs/classes/Comments.html +12 -12
- package/docs/classes/Dashboard.html +17 -17
- package/docs/classes/DataTable.html +11 -11
- package/docs/classes/Documents.html +45 -45
- package/docs/classes/FilterSlideout.html +14 -14
- package/docs/classes/Footer.html +4 -4
- package/docs/classes/Header.html +4 -4
- package/docs/classes/InstallationRequired.html +12 -12
- package/docs/classes/ItemForm.html +47 -47
- package/docs/classes/List.html +36 -36
- package/docs/classes/LoadingDialog.html +12 -12
- package/docs/classes/Modal.html +26 -26
- package/docs/classes/Navigation.html +6 -6
- package/docs/enums/ActionButtonTypes.html +6 -6
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/interfaces/IAuditLogItem.html +8 -8
- package/docs/interfaces/IAuditLogItemCreation.html +7 -7
- package/docs/interfaces/IAuditLogProps.html +5 -5
- package/docs/interfaces/IAuditLogViewProps.html +30 -6
- package/docs/interfaces/ICommentsItem.html +6 -6
- package/docs/interfaces/IDashboardProps.html +14 -14
- package/docs/interfaces/IDataTable.html +7 -7
- package/docs/interfaces/IDataTableProps.html +6 -6
- package/docs/interfaces/IDocumentsProps.html +25 -25
- package/docs/interfaces/IFilterItem.html +5 -5
- package/docs/interfaces/IFilterProps.html +4 -4
- package/docs/interfaces/IFooterProps.html +6 -6
- package/docs/interfaces/IHeaderProps.html +5 -5
- package/docs/interfaces/IItemFormCreateProps.html +14 -14
- package/docs/interfaces/IItemFormEditProps.html +15 -15
- package/docs/interfaces/IItemFormTab.html +7 -7
- package/docs/interfaces/IItemFormTabInfo.html +3 -3
- package/docs/interfaces/IItemFormViewProps.html +12 -12
- package/docs/interfaces/IListProps.html +9 -9
- package/docs/interfaces/IShowDialogProps.html +5 -5
- package/docs/variables/DattaTable.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Helper, Types } from "gd-sprest-bs";
|
|
1
|
+
import { Components, Helper, Types } from "gd-sprest-bs";
|
|
2
2
|
import { List } from "../common/list";
|
|
3
3
|
import { IDataTableProps } from "../dashboard/table";
|
|
4
4
|
export interface IAuditLogItemCreation {
|
|
@@ -27,6 +27,7 @@ export interface IAuditLogViewProps {
|
|
|
27
27
|
id: string;
|
|
28
28
|
listName: string;
|
|
29
29
|
onQuery?: (query: Types.IODataQuery) => Types.IODataQuery;
|
|
30
|
+
onRenderCell?: (el?: HTMLElement, column?: Components.ITableColumn, item?: IAuditLogItem) => void;
|
|
30
31
|
onTableRendering?: (props: IDataTableProps) => IDataTableProps;
|
|
31
32
|
}
|
|
32
33
|
/**
|
package/build/auditLog/index.js
CHANGED
|
@@ -98,11 +98,13 @@ var AuditLog = /** @class */ (function () {
|
|
|
98
98
|
columns: [
|
|
99
99
|
{
|
|
100
100
|
name: "Created",
|
|
101
|
-
title: "Created"
|
|
101
|
+
title: "Created",
|
|
102
|
+
onRenderCell: viewProps.onRenderCell
|
|
102
103
|
},
|
|
103
104
|
{
|
|
104
105
|
name: "Title",
|
|
105
|
-
title: "Title"
|
|
106
|
+
title: "Title",
|
|
107
|
+
onRenderCell: viewProps.onRenderCell
|
|
106
108
|
},
|
|
107
109
|
{
|
|
108
110
|
name: "",
|
|
@@ -110,11 +112,14 @@ var AuditLog = /** @class */ (function () {
|
|
|
110
112
|
onRenderCell: function (el, col, item) {
|
|
111
113
|
// Render the user information
|
|
112
114
|
item.LogUser ? el.innerHTML = item.LogUser.Title : null;
|
|
115
|
+
// Call the event
|
|
116
|
+
viewProps.onRenderCell ? viewProps.onRenderCell(el, col, item) : null;
|
|
113
117
|
}
|
|
114
118
|
},
|
|
115
119
|
{
|
|
116
120
|
name: "LogComment",
|
|
117
|
-
title: "Comment"
|
|
121
|
+
title: "Comment",
|
|
122
|
+
onRenderCell: viewProps.onRenderCell
|
|
118
123
|
}
|
|
119
124
|
]
|
|
120
125
|
};
|