dattatable 2.9.88 → 2.9.89
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/modal.d.ts +6 -0
- package/build/common/modal.js +27 -2
- package/dist/dattatable.js +1099 -989
- 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 +2 -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 +8 -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 +17 -13
- 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/modal.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export declare class Modal {
|
|
|
10
10
|
static get FooterElement(): HTMLElement;
|
|
11
11
|
private static _elHeader;
|
|
12
12
|
static get HeaderElement(): HTMLElement;
|
|
13
|
+
private static _hideEmptyFooter;
|
|
14
|
+
static get HideEmptyFooter(): boolean;
|
|
15
|
+
private static _hideEmptyHeader;
|
|
16
|
+
static get HideEmptyHeader(): boolean;
|
|
13
17
|
constructor();
|
|
14
18
|
static clear(): void;
|
|
15
19
|
static hide(): void;
|
|
@@ -19,6 +23,8 @@ export declare class Modal {
|
|
|
19
23
|
static setBody(content: any): void;
|
|
20
24
|
static setCloseButtonVisibility(showFl: boolean): void;
|
|
21
25
|
static setCloseEvent(event: any): void;
|
|
26
|
+
static setHideEmptyFooter(value: boolean): void;
|
|
27
|
+
static setHideEmptyHeader(value: boolean): void;
|
|
22
28
|
static setFocus(value: boolean): void;
|
|
23
29
|
static setFooter(content: any): void;
|
|
24
30
|
static setHeader(content: any): void;
|
package/build/common/modal.js
CHANGED
|
@@ -26,6 +26,16 @@ var Modal = /** @class */ (function () {
|
|
|
26
26
|
enumerable: false,
|
|
27
27
|
configurable: true
|
|
28
28
|
});
|
|
29
|
+
Object.defineProperty(Modal, "HideEmptyFooter", {
|
|
30
|
+
get: function () { return this._hideEmptyFooter; },
|
|
31
|
+
enumerable: false,
|
|
32
|
+
configurable: true
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(Modal, "HideEmptyHeader", {
|
|
35
|
+
get: function () { return this._hideEmptyHeader; },
|
|
36
|
+
enumerable: false,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
29
39
|
// Clears the canvas form
|
|
30
40
|
Modal.clear = function () {
|
|
31
41
|
// Clear the header, body and footer
|
|
@@ -37,6 +47,8 @@ var Modal = /** @class */ (function () {
|
|
|
37
47
|
this.setBackdrop(true);
|
|
38
48
|
this.setCloseButtonVisibility(true);
|
|
39
49
|
this.setCloseEvent(null);
|
|
50
|
+
this.setHideEmptyFooter(true);
|
|
51
|
+
this.setHideEmptyHeader(false);
|
|
40
52
|
this.setFocus(false);
|
|
41
53
|
this.setIsCentered(true);
|
|
42
54
|
this.setKeyboard(true);
|
|
@@ -118,6 +130,10 @@ var Modal = /** @class */ (function () {
|
|
|
118
130
|
Modal.setCloseButtonVisibility = function (showFl) { this._modal.setCloseButtonVisibility(showFl); };
|
|
119
131
|
// Sets the close event
|
|
120
132
|
Modal.setCloseEvent = function (event) { this._onCloseEvent = event; };
|
|
133
|
+
// Sets the flag to hide the empty footer
|
|
134
|
+
Modal.setHideEmptyFooter = function (value) { this._hideEmptyFooter = value; };
|
|
135
|
+
// Sets the flag to hide the empty header
|
|
136
|
+
Modal.setHideEmptyHeader = function (value) { this._hideEmptyHeader = value; };
|
|
121
137
|
// Sets the focus option
|
|
122
138
|
Modal.setFocus = function (value) { this._modal.setFocus(value); };
|
|
123
139
|
// Sets the footer
|
|
@@ -168,8 +184,13 @@ var Modal = /** @class */ (function () {
|
|
|
168
184
|
Modal.setType = function (type) { this._modal.setType(type); };
|
|
169
185
|
// Shows the modal
|
|
170
186
|
Modal.show = function () {
|
|
171
|
-
// See if
|
|
172
|
-
if (
|
|
187
|
+
// See if we are hiding the header
|
|
188
|
+
if (this.HideEmptyHeader && this.HeaderElement.innerText.trim().length == 0) {
|
|
189
|
+
// Hide the header
|
|
190
|
+
this.HeaderElement.classList.add("d-none");
|
|
191
|
+
}
|
|
192
|
+
// See if we are hiding the footer
|
|
193
|
+
if (this.HideEmptyFooter && this.FooterElement.innerText.trim().length == 0) {
|
|
173
194
|
// Hide the footer
|
|
174
195
|
this.FooterElement.classList.add("d-none");
|
|
175
196
|
}
|
|
@@ -184,6 +205,10 @@ var Modal = /** @class */ (function () {
|
|
|
184
205
|
Modal._elFooter = null;
|
|
185
206
|
// Modal Header
|
|
186
207
|
Modal._elHeader = null;
|
|
208
|
+
// Hides the footer if it's empty
|
|
209
|
+
Modal._hideEmptyFooter = true;
|
|
210
|
+
// Hides the header if it's empty
|
|
211
|
+
Modal._hideEmptyHeader = false;
|
|
187
212
|
return Modal;
|
|
188
213
|
}());
|
|
189
214
|
exports.Modal = Modal;
|