dattatable 2.4.5 → 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.
Files changed (49) hide show
  1. package/build/auditLog/index.d.ts +2 -1
  2. package/build/auditLog/index.js +8 -3
  3. package/build/common/list.js +2 -1
  4. package/dist/dattatable.js +447 -436
  5. package/dist/dattatable.min.js +1 -1
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/AuditLog.html +13 -13
  8. package/docs/classes/CanvasForm.html +17 -17
  9. package/docs/classes/Comments.html +12 -12
  10. package/docs/classes/Dashboard.html +17 -17
  11. package/docs/classes/DataTable.html +11 -11
  12. package/docs/classes/Documents.html +45 -45
  13. package/docs/classes/FilterSlideout.html +14 -14
  14. package/docs/classes/Footer.html +4 -4
  15. package/docs/classes/Header.html +4 -4
  16. package/docs/classes/InstallationRequired.html +12 -12
  17. package/docs/classes/ItemForm.html +47 -47
  18. package/docs/classes/List.html +36 -36
  19. package/docs/classes/LoadingDialog.html +12 -12
  20. package/docs/classes/Modal.html +26 -26
  21. package/docs/classes/Navigation.html +6 -6
  22. package/docs/enums/ActionButtonTypes.html +6 -6
  23. package/docs/functions/formatBytes.html +1 -1
  24. package/docs/functions/formatDateValue.html +1 -1
  25. package/docs/functions/formatTimeValue.html +1 -1
  26. package/docs/functions/getFileExt.html +1 -1
  27. package/docs/interfaces/IAuditLogItem.html +8 -8
  28. package/docs/interfaces/IAuditLogItemCreation.html +7 -7
  29. package/docs/interfaces/IAuditLogProps.html +5 -5
  30. package/docs/interfaces/IAuditLogViewProps.html +30 -6
  31. package/docs/interfaces/ICommentsItem.html +6 -6
  32. package/docs/interfaces/IDashboardProps.html +14 -14
  33. package/docs/interfaces/IDataTable.html +7 -7
  34. package/docs/interfaces/IDataTableProps.html +6 -6
  35. package/docs/interfaces/IDocumentsProps.html +25 -25
  36. package/docs/interfaces/IFilterItem.html +5 -5
  37. package/docs/interfaces/IFilterProps.html +4 -4
  38. package/docs/interfaces/IFooterProps.html +6 -6
  39. package/docs/interfaces/IHeaderProps.html +5 -5
  40. package/docs/interfaces/IItemFormCreateProps.html +14 -14
  41. package/docs/interfaces/IItemFormEditProps.html +15 -15
  42. package/docs/interfaces/IItemFormTab.html +7 -7
  43. package/docs/interfaces/IItemFormTabInfo.html +3 -3
  44. package/docs/interfaces/IItemFormViewProps.html +12 -12
  45. package/docs/interfaces/IListProps.html +9 -9
  46. package/docs/interfaces/IShowDialogProps.html +5 -5
  47. package/docs/variables/DattaTable.html +1 -1
  48. package/package.json +2 -2
  49. 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
  /**
@@ -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
  };
@@ -222,7 +222,8 @@ var List = /** @class */ (function () {
222
222
  return new Promise(function (resolve, reject) {
223
223
  // See if the items exist
224
224
  if (_this._items) {
225
- return _this._items;
225
+ resolve(_this._items);
226
+ return;
226
227
  }
227
228
  // Query the items
228
229
  (0, gd_sprest_bs_1.Web)(_this.WebUrl).Lists(_this.ListName).Items().query(query).execute(function (items) {