dattatable 2.10.12 → 2.10.13

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 (62) hide show
  1. package/build/common/canvas.d.ts +2 -0
  2. package/build/common/canvas.js +14 -2
  3. package/build/common/modal.js +1 -1
  4. package/dist/dattatable.js +568 -568
  5. package/dist/dattatable.min.js +1 -1
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/Accordion.html +2 -2
  8. package/docs/classes/AuditLog.html +2 -2
  9. package/docs/classes/CanvasForm.html +4 -2
  10. package/docs/classes/Comments.html +2 -2
  11. package/docs/classes/Dashboard.html +4 -4
  12. package/docs/classes/DataTable.html +3 -3
  13. package/docs/classes/Documents.html +6 -6
  14. package/docs/classes/FilterSlideout.html +2 -2
  15. package/docs/classes/Footer.html +2 -2
  16. package/docs/classes/Header.html +2 -2
  17. package/docs/classes/InstallationRequired.html +2 -2
  18. package/docs/classes/ItemForm.html +4 -4
  19. package/docs/classes/List.html +4 -4
  20. package/docs/classes/ListSecurity.html +2 -2
  21. package/docs/classes/LoadingDialog.html +2 -2
  22. package/docs/classes/Modal.html +2 -2
  23. package/docs/classes/Navigation.html +3 -3
  24. package/docs/classes/Tiles.html +2 -2
  25. package/docs/classes/Timeout.html +2 -2
  26. package/docs/enums/ActionButtonTypes.html +2 -2
  27. package/docs/functions/formatBytes.html +1 -1
  28. package/docs/functions/formatDateValue.html +1 -1
  29. package/docs/functions/formatTimeValue.html +1 -1
  30. package/docs/functions/getContextInfo.html +1 -1
  31. package/docs/functions/getFileExt.html +1 -1
  32. package/docs/functions/waitForTheme.html +1 -1
  33. package/docs/interfaces/IAccordion.html +2 -2
  34. package/docs/interfaces/IAccordionProps.html +2 -2
  35. package/docs/interfaces/IAuditLogItem.html +2 -2
  36. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  37. package/docs/interfaces/IAuditLogProps.html +2 -2
  38. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  39. package/docs/interfaces/ICommentsItem.html +2 -2
  40. package/docs/interfaces/IDashboardProps.html +2 -2
  41. package/docs/interfaces/IDataTable.html +2 -2
  42. package/docs/interfaces/IDataTableProps.html +2 -2
  43. package/docs/interfaces/IDocumentsProps.html +2 -2
  44. package/docs/interfaces/IFilterItem.html +2 -2
  45. package/docs/interfaces/IFilterProps.html +2 -2
  46. package/docs/interfaces/IFooterProps.html +2 -2
  47. package/docs/interfaces/IHeaderProps.html +2 -2
  48. package/docs/interfaces/IInstallProps.html +2 -2
  49. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  50. package/docs/interfaces/IItemFormEditProps.html +2 -2
  51. package/docs/interfaces/IItemFormTab.html +2 -2
  52. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  53. package/docs/interfaces/IItemFormViewProps.html +2 -2
  54. package/docs/interfaces/IListProps.html +2 -2
  55. package/docs/interfaces/IListSecurity.html +2 -2
  56. package/docs/interfaces/IListSecurityItem.html +2 -2
  57. package/docs/interfaces/IShowDialogProps.html +2 -2
  58. package/docs/interfaces/ITiles.html +2 -2
  59. package/docs/interfaces/ITilesProps.html +2 -2
  60. package/docs/variables/DattaTable.html +1 -1
  61. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  62. package/package.json +2 -2
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export declare class CanvasForm {
5
5
  private static _canvas;
6
+ private static _onCloseEvent;
6
7
  private static _elBody;
7
8
  static get BodyElement(): HTMLElement;
8
9
  private static _elHeader;
@@ -13,6 +14,7 @@ export declare class CanvasForm {
13
14
  static hide(): void;
14
15
  private static render;
15
16
  static setAutoClose(value: boolean): void;
17
+ static setCloseEvent(event: any): void;
16
18
  static setBody(content: any): void;
17
19
  static setHeader(content: any): void;
18
20
  static setSize(size: number): void;
@@ -28,6 +28,7 @@ var CanvasForm = /** @class */ (function () {
28
28
  this.setBody("");
29
29
  // Set the default properties
30
30
  this.setAutoClose(true);
31
+ this.setCloseEvent(null);
31
32
  this.setSize(0);
32
33
  this.setType(gd_sprest_bs_1.Components.OffcanvasTypes.End);
33
34
  // Ensure the header and body are visible
@@ -41,7 +42,11 @@ var CanvasForm = /** @class */ (function () {
41
42
  configurable: true
42
43
  });
43
44
  // Hides the canvas
44
- CanvasForm.hide = function () { this._canvas.hide(); };
45
+ CanvasForm.hide = function () {
46
+ this._canvas.hide();
47
+ // Call the close event
48
+ this._onCloseEvent ? this._onCloseEvent() : null;
49
+ };
45
50
  // Renders the canvas
46
51
  CanvasForm.render = function () {
47
52
  var _this = this;
@@ -71,11 +76,17 @@ var CanvasForm = /** @class */ (function () {
71
76
  scroll: true
72
77
  },
73
78
  onRenderBody: function (el) { _this._elBody = el; },
74
- onRenderHeader: function (el) { _this._elHeader = el; }
79
+ onRenderHeader: function (el) { _this._elHeader = el; },
80
+ onClose: function () {
81
+ // Call the close event
82
+ _this._onCloseEvent ? _this._onCloseEvent() : null;
83
+ }
75
84
  });
76
85
  };
77
86
  // Sets the auto close flag
78
87
  CanvasForm.setAutoClose = function (value) { this._canvas.setAutoClose(value); };
88
+ // Sets the close event
89
+ CanvasForm.setCloseEvent = function (event) { this._onCloseEvent = event; };
79
90
  // Sets the body
80
91
  CanvasForm.setBody = function (content) {
81
92
  // Clear the body
@@ -121,6 +132,7 @@ var CanvasForm = /** @class */ (function () {
121
132
  // Shows the canvas
122
133
  CanvasForm.show = function () { this._canvas.show(); };
123
134
  CanvasForm._canvas = null;
135
+ CanvasForm._onCloseEvent = null;
124
136
  // Modal Body
125
137
  CanvasForm._elBody = null;
126
138
  // Modal Header
@@ -84,7 +84,7 @@ var Modal = /** @class */ (function () {
84
84
  document.body.appendChild(el);
85
85
  });
86
86
  }
87
- // Render the canvas
87
+ // Render the modal
88
88
  this._modal = gd_sprest_bs_1.Components.Modal({
89
89
  el: el,
90
90
  type: gd_sprest_bs_1.Components.ModalTypes.Large,