dattatable 2.9.87 → 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.
Files changed (62) hide show
  1. package/build/common/modal.d.ts +6 -0
  2. package/build/common/modal.js +27 -2
  3. package/build/dashboard/accordion.js +1 -3
  4. package/dist/dattatable.js +1099 -989
  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 +2 -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 +8 -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 +17 -13
  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
@@ -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;
@@ -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 the footer is empty
172
- if (!this.FooterElement.hasChildNodes) {
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;
@@ -123,10 +123,8 @@ var Accordion = /** @class */ (function () {
123
123
  // Parse the items
124
124
  var accordionItems = [];
125
125
  for (var i = 0; i < this._props.items.length; i++) {
126
- var item = this.generateItem(this._props.items[i]);
127
- item.showFl = i == 0;
128
126
  // Add an accordion item
129
- accordionItems.push(item);
127
+ accordionItems.push(this.generateItem(this._props.items[i]));
130
128
  }
131
129
  // Render the accordion
132
130
  this._accordion = gd_sprest_bs_1.Components.Accordion({