dattatable 2.10.32 → 2.10.34

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 (65) hide show
  1. package/build/common/itemForm.d.ts +1 -0
  2. package/build/common/itemForm.js +10 -0
  3. package/build/dashboard/filter.d.ts +2 -0
  4. package/build/dashboard/filter.js +3 -0
  5. package/build/dashboard/index.d.ts +1 -0
  6. package/build/dashboard/index.js +1 -0
  7. package/dist/dattatable.js +580 -580
  8. package/dist/dattatable.min.js +1 -1
  9. package/docs/assets/search.js +1 -1
  10. package/docs/classes/Accordion.html +2 -2
  11. package/docs/classes/AuditLog.html +2 -2
  12. package/docs/classes/CanvasForm.html +2 -2
  13. package/docs/classes/Comments.html +2 -2
  14. package/docs/classes/Dashboard.html +4 -4
  15. package/docs/classes/DataTable.html +3 -3
  16. package/docs/classes/Documents.html +6 -6
  17. package/docs/classes/FilterSlideout.html +3 -2
  18. package/docs/classes/Footer.html +2 -2
  19. package/docs/classes/Header.html +2 -2
  20. package/docs/classes/InstallationRequired.html +2 -2
  21. package/docs/classes/ItemForm.html +4 -4
  22. package/docs/classes/List.html +4 -4
  23. package/docs/classes/ListSecurity.html +2 -2
  24. package/docs/classes/LoadingDialog.html +2 -2
  25. package/docs/classes/Modal.html +2 -2
  26. package/docs/classes/Navigation.html +3 -3
  27. package/docs/classes/Tiles.html +2 -2
  28. package/docs/classes/Timeout.html +2 -2
  29. package/docs/enums/ActionButtonTypes.html +2 -2
  30. package/docs/functions/formatBytes.html +1 -1
  31. package/docs/functions/formatDateValue.html +1 -1
  32. package/docs/functions/formatTimeValue.html +1 -1
  33. package/docs/functions/getContextInfo.html +1 -1
  34. package/docs/functions/getFileExt.html +1 -1
  35. package/docs/functions/waitForTheme.html +1 -1
  36. package/docs/interfaces/IAccordion.html +2 -2
  37. package/docs/interfaces/IAccordionProps.html +2 -2
  38. package/docs/interfaces/IAuditLogItem.html +2 -2
  39. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  40. package/docs/interfaces/IAuditLogProps.html +2 -2
  41. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  42. package/docs/interfaces/ICommentsItem.html +2 -2
  43. package/docs/interfaces/IDashboardProps.html +2 -2
  44. package/docs/interfaces/IDataTable.html +2 -2
  45. package/docs/interfaces/IDataTableProps.html +2 -2
  46. package/docs/interfaces/IDocumentsProps.html +2 -2
  47. package/docs/interfaces/IFilterItem.html +2 -2
  48. package/docs/interfaces/IFilterProps.html +3 -2
  49. package/docs/interfaces/IFooterProps.html +2 -2
  50. package/docs/interfaces/IHeaderProps.html +2 -2
  51. package/docs/interfaces/IInstallProps.html +2 -2
  52. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  53. package/docs/interfaces/IItemFormEditProps.html +2 -2
  54. package/docs/interfaces/IItemFormTab.html +3 -2
  55. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  56. package/docs/interfaces/IItemFormViewProps.html +2 -2
  57. package/docs/interfaces/IListProps.html +2 -2
  58. package/docs/interfaces/IListSecurity.html +2 -2
  59. package/docs/interfaces/IListSecurityItem.html +2 -2
  60. package/docs/interfaces/IShowDialogProps.html +2 -2
  61. package/docs/interfaces/ITiles.html +2 -2
  62. package/docs/interfaces/ITilesProps.html +2 -2
  63. package/docs/variables/DattaTable.html +1 -1
  64. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  65. package/package.json +2 -2
@@ -5,6 +5,7 @@ export interface IItemFormTab {
5
5
  title: string;
6
6
  fields?: string[];
7
7
  excludeFields?: string[];
8
+ onCreateForm: (props: Components.IListFormDisplayProps | Components.IListFormEditProps) => Components.IListFormDisplayProps | Components.IListFormEditProps;
8
9
  onFormRendered?: (form?: Components.IListFormDisplay | Components.IListFormEdit) => void;
9
10
  onRendered?: (el?: HTMLElement, item?: Components.IListGroupItem) => void;
10
11
  onRendering?: (item?: Components.IListGroupItem) => object;
@@ -232,6 +232,11 @@ var ItemForm = /** @class */ (function () {
232
232
  info: this._info,
233
233
  rowClassName: "mb-3"
234
234
  };
235
+ // See if we are rendering a tab
236
+ if (tab && tab.onCreateForm) {
237
+ // Call the event
238
+ props = tab.onCreateForm(props);
239
+ }
235
240
  // Call the event if it exists
236
241
  props = this._onCreateViewForm ? this._onCreateViewForm(props) : props;
237
242
  // Override the form rendered event
@@ -265,6 +270,11 @@ var ItemForm = /** @class */ (function () {
265
270
  rowClassName: "mb-3",
266
271
  controlMode: this.IsNew ? gd_sprest_bs_1.SPTypes.ControlMode.New : gd_sprest_bs_1.SPTypes.ControlMode.Edit
267
272
  };
273
+ // See if we are rendering a tab
274
+ if (tab && tab.onCreateForm) {
275
+ // Call the event
276
+ props = tab.onCreateForm(props);
277
+ }
268
278
  // Call the event if it exists
269
279
  props = this._onCreateEditForm ? this._onCreateEditForm(props) : props;
270
280
  // Override the form rendered event
@@ -17,6 +17,7 @@ export interface IFilterProps {
17
17
  onClear?: () => void;
18
18
  onFilter?: (value: string | string[], item?: Components.ICheckboxGroupItem) => void;
19
19
  onRendered?: (el: HTMLElement) => void;
20
+ onShowFilter?: () => void;
20
21
  }
21
22
  /**
22
23
  * Filter Slideout
@@ -28,6 +29,7 @@ export declare class FilterSlideout {
28
29
  private _items;
29
30
  private _onClear;
30
31
  private _onFilter;
32
+ private _onShowFilter;
31
33
  constructor(props: IFilterProps);
32
34
  private generateFilters;
33
35
  private generateItem;
@@ -17,6 +17,7 @@ var FilterSlideout = /** @class */ (function () {
17
17
  this._filters = props.filters || [];
18
18
  this._onClear = props.onClear;
19
19
  this._onFilter = props.onFilter;
20
+ this._onShowFilter = props.onShowFilter;
20
21
  // Initialize the variables
21
22
  this._cbs = [];
22
23
  this._items = [];
@@ -152,6 +153,8 @@ var FilterSlideout = /** @class */ (function () {
152
153
  // Set the header and body
153
154
  canvas_1.CanvasForm.setHeader('<h5 class="m-0">Filters</h5>');
154
155
  canvas_1.CanvasForm.setBody(this._el || "<p>Loading the Filters...</p>");
156
+ // Call the event
157
+ this._onShowFilter ? this._onShowFilter() : null;
155
158
  // Show the filters
156
159
  canvas_1.CanvasForm.show();
157
160
  };
@@ -37,6 +37,7 @@ export interface IDashboardProps {
37
37
  items: IFilterItem[];
38
38
  onClear?: () => void;
39
39
  onRendered?: (el?: HTMLElement) => void;
40
+ onShowFilter?: () => void;
40
41
  };
41
42
  header?: {
42
43
  onRendering?: (props: Components.IJumbotronProps) => void;
@@ -119,6 +119,7 @@ var Dashboard = /** @class */ (function () {
119
119
  filters: this._props.filters ? this._props.filters.items : [],
120
120
  onClear: this._props.filters ? this._props.filters.onClear : null,
121
121
  onRendered: this._props.filters ? this._props.filters.onRendered : null,
122
+ onShowFilter: this._props.filters ? this._props.filters.onShowFilter : null,
122
123
  onFilter: this.IsAccordion || this.IsTiles ? function (value, item) {
123
124
  var values = typeof (value) === "string" ? [value] : value;
124
125
  // See if this is an accordion