dattatable 2.10.11 → 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.
- package/build/common/canvas.d.ts +2 -0
- package/build/common/canvas.js +14 -2
- package/build/common/comments.js +2 -0
- package/build/common/modal.js +1 -1
- package/dist/dattatable.js +568 -568
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Accordion.html +2 -2
- package/docs/classes/AuditLog.html +2 -2
- package/docs/classes/CanvasForm.html +4 -2
- package/docs/classes/Comments.html +2 -2
- package/docs/classes/Dashboard.html +4 -4
- package/docs/classes/DataTable.html +3 -3
- package/docs/classes/Documents.html +6 -6
- package/docs/classes/FilterSlideout.html +2 -2
- package/docs/classes/Footer.html +2 -2
- package/docs/classes/Header.html +2 -2
- package/docs/classes/InstallationRequired.html +2 -2
- package/docs/classes/ItemForm.html +4 -4
- package/docs/classes/List.html +4 -4
- package/docs/classes/ListSecurity.html +2 -2
- package/docs/classes/LoadingDialog.html +2 -2
- package/docs/classes/Modal.html +2 -2
- package/docs/classes/Navigation.html +3 -3
- package/docs/classes/Tiles.html +2 -2
- package/docs/classes/Timeout.html +2 -2
- package/docs/enums/ActionButtonTypes.html +2 -2
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getContextInfo.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -1
- package/docs/interfaces/IAccordion.html +2 -2
- package/docs/interfaces/IAccordionProps.html +2 -2
- package/docs/interfaces/IAuditLogItem.html +2 -2
- package/docs/interfaces/IAuditLogItemCreation.html +2 -2
- package/docs/interfaces/IAuditLogProps.html +2 -2
- package/docs/interfaces/IAuditLogViewProps.html +2 -2
- package/docs/interfaces/ICommentsItem.html +2 -2
- package/docs/interfaces/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +2 -2
- package/docs/interfaces/IDataTableProps.html +2 -2
- package/docs/interfaces/IDocumentsProps.html +2 -2
- package/docs/interfaces/IFilterItem.html +2 -2
- package/docs/interfaces/IFilterProps.html +2 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IHeaderProps.html +2 -2
- package/docs/interfaces/IInstallProps.html +2 -2
- package/docs/interfaces/IItemFormCreateProps.html +2 -2
- package/docs/interfaces/IItemFormEditProps.html +2 -2
- package/docs/interfaces/IItemFormTab.html +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListProps.html +2 -2
- package/docs/interfaces/IListSecurity.html +2 -2
- package/docs/interfaces/IListSecurityItem.html +2 -2
- package/docs/interfaces/IShowDialogProps.html +2 -2
- package/docs/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
package/build/common/canvas.d.ts
CHANGED
|
@@ -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;
|
package/build/common/canvas.js
CHANGED
|
@@ -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 () {
|
|
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
|
package/build/common/comments.js
CHANGED
|
@@ -292,6 +292,8 @@ var Comments = /** @class */ (function () {
|
|
|
292
292
|
gd_sprest_bs_1.Components.Navbar({
|
|
293
293
|
el: el || canvas_1.CanvasForm.BodyElement,
|
|
294
294
|
itemsEnd: [{
|
|
295
|
+
className: "btn-outline-light",
|
|
296
|
+
isButton: true,
|
|
295
297
|
text: "+ Add Comment",
|
|
296
298
|
onClick: function () {
|
|
297
299
|
// Hide the form
|
package/build/common/modal.js
CHANGED