dattatable 2.10.84 → 2.10.86

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 (72) hide show
  1. package/build/common/itemForm.d.ts +1 -0
  2. package/build/common/itemForm.js +24 -0
  3. package/build/dashboard/accordion.d.ts +1 -1
  4. package/build/dashboard/accordion.js +1 -2
  5. package/build/dashboard/tiles.d.ts +1 -1
  6. package/build/dashboard/tiles.js +1 -2
  7. package/dist/dattatable.js +581 -581
  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 +2 -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 +6 -5
  22. package/docs/classes/List.html +4 -4
  23. package/docs/classes/ListConfig.html +2 -2
  24. package/docs/classes/ListSecurity.html +2 -2
  25. package/docs/classes/LoadingDialog.html +2 -2
  26. package/docs/classes/Modal.html +2 -2
  27. package/docs/classes/Navigation.html +3 -3
  28. package/docs/classes/Tiles.html +2 -2
  29. package/docs/classes/Timeout.html +2 -2
  30. package/docs/enums/ActionButtonTypes.html +2 -2
  31. package/docs/functions/formatBytes.html +1 -1
  32. package/docs/functions/formatDateValue.html +1 -1
  33. package/docs/functions/formatTimeValue.html +1 -1
  34. package/docs/functions/getContextInfo.html +1 -1
  35. package/docs/functions/getFileExt.html +1 -1
  36. package/docs/functions/waitForTheme.html +1 -1
  37. package/docs/interfaces/IAccordion.html +2 -2
  38. package/docs/interfaces/IAccordionProps.html +2 -2
  39. package/docs/interfaces/IAuditLogItem.html +2 -2
  40. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  41. package/docs/interfaces/IAuditLogProps.html +2 -2
  42. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  43. package/docs/interfaces/ICommentsItem.html +2 -2
  44. package/docs/interfaces/ICreateLookupData.html +2 -2
  45. package/docs/interfaces/IDashboardProps.html +2 -2
  46. package/docs/interfaces/IDataTable.html +2 -2
  47. package/docs/interfaces/IDataTableProps.html +2 -2
  48. package/docs/interfaces/IDocumentsProps.html +2 -2
  49. package/docs/interfaces/IFilterItem.html +2 -2
  50. package/docs/interfaces/IFilterProps.html +2 -2
  51. package/docs/interfaces/IFooterProps.html +2 -2
  52. package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
  53. package/docs/interfaces/IHeaderProps.html +2 -2
  54. package/docs/interfaces/IInstallProps.html +2 -2
  55. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  56. package/docs/interfaces/IItemFormEditProps.html +2 -2
  57. package/docs/interfaces/IItemFormTab.html +2 -2
  58. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  59. package/docs/interfaces/IItemFormViewProps.html +2 -2
  60. package/docs/interfaces/IListConfig.html +2 -2
  61. package/docs/interfaces/IListConfigProps.html +2 -2
  62. package/docs/interfaces/IListProps.html +2 -2
  63. package/docs/interfaces/IListSecurity.html +2 -2
  64. package/docs/interfaces/IListSecurityItem.html +2 -2
  65. package/docs/interfaces/ILookupData.html +2 -2
  66. package/docs/interfaces/IShowDialogProps.html +2 -2
  67. package/docs/interfaces/ITiles.html +2 -2
  68. package/docs/interfaces/ITilesProps.html +2 -2
  69. package/docs/interfaces/IValidateLookupsProps.html +2 -2
  70. package/docs/variables/DattaTable.html +1 -1
  71. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  72. package/package.json +2 -2
@@ -122,6 +122,7 @@ export declare class ItemForm {
122
122
  static renderFooter(elForm: HTMLElement): void;
123
123
  static view(props: IItemFormViewProps): PromiseLike<void>;
124
124
  /** Private Methods */
125
+ private static clearProps;
125
126
  private static load;
126
127
  private static renderDisplayForm;
127
128
  private static renderEditForm;
@@ -99,6 +99,8 @@ var ItemForm = /** @class */ (function () {
99
99
  // Creates a new task
100
100
  ItemForm.create = function (props) {
101
101
  if (props === void 0) { props = {}; }
102
+ // Clear the properties
103
+ this.clearProps();
102
104
  // Set the properties
103
105
  this._controlMode = gd_sprest_bs_1.SPTypes.ControlMode.New;
104
106
  this._elForm = props.elForm;
@@ -121,6 +123,8 @@ var ItemForm = /** @class */ (function () {
121
123
  };
122
124
  // Edits a task
123
125
  ItemForm.edit = function (props) {
126
+ // Clear the properties
127
+ this.clearProps();
124
128
  // Set the properties
125
129
  this._controlMode = gd_sprest_bs_1.SPTypes.ControlMode.Edit;
126
130
  this._elForm = props.elForm;
@@ -162,6 +166,8 @@ var ItemForm = /** @class */ (function () {
162
166
  };
163
167
  // Views the task
164
168
  ItemForm.view = function (props) {
169
+ // Clear the properties
170
+ this.clearProps();
165
171
  // Set the properties
166
172
  this._controlMode = gd_sprest_bs_1.SPTypes.ControlMode.Display;
167
173
  this._elForm = props.elForm;
@@ -179,6 +185,24 @@ var ItemForm = /** @class */ (function () {
179
185
  return this.load(props.webUrl, props.itemId);
180
186
  };
181
187
  /** Private Methods */
188
+ // Clears the properties
189
+ ItemForm.clearProps = function () {
190
+ this._elForm = null;
191
+ this._onCreateEditForm = null;
192
+ this._onCreateViewForm = null;
193
+ this._onFormButtonsRendering = null;
194
+ this._onFormRendered = null;
195
+ this._onGetListInfo = null;
196
+ this._onResetForm = null;
197
+ this._onSetFooter = null;
198
+ this._onSetHeader = null;
199
+ this._onShowForm = null;
200
+ this._onSave = null;
201
+ this._onValidation = null;
202
+ this._requestDigest = null;
203
+ this._tabInfo = null;
204
+ this._updateEvent = null;
205
+ };
182
206
  // Load the form information
183
207
  ItemForm.load = function (webUrl, itemId) {
184
208
  var _this = this;
@@ -32,7 +32,7 @@ export declare class Accordion implements IAccordion {
32
32
  private _props;
33
33
  constructor(props: IAccordionProps);
34
34
  private clearItem;
35
- filter(values?: string[]): void;
35
+ filter(values: string[]): void;
36
36
  private generateItem;
37
37
  refresh(items?: any[]): void;
38
38
  private render;
@@ -27,8 +27,7 @@ var Accordion = /** @class */ (function () {
27
27
  };
28
28
  // Filters the accordion
29
29
  Accordion.prototype.filter = function (values) {
30
- if (values === void 0) { values = []; }
31
- this._activeFilterValue = values.join('|');
30
+ this._activeFilterValue = values ? values.join('|') : "";
32
31
  // Parse all accordion items
33
32
  var items = this._props.el.querySelectorAll(".accordion-item");
34
33
  for (var i = 0; i < items.length; i++) {
@@ -41,7 +41,7 @@ export declare class Tiles implements ITiles {
41
41
  private _pagination;
42
42
  private _props;
43
43
  constructor(props: ITilesProps);
44
- filter(values?: string[]): void;
44
+ filter(values: string[]): void;
45
45
  private generateCard;
46
46
  refresh(items?: any[]): void;
47
47
  private render;
@@ -19,8 +19,7 @@ var Tiles = /** @class */ (function () {
19
19
  }
20
20
  // Filters the tile
21
21
  Tiles.prototype.filter = function (values) {
22
- if (values === void 0) { values = []; }
23
- this._activeFilterValue = values.join('|');
22
+ this._activeFilterValue = values ? values.join('|') : "";
24
23
  // Parse all tile
25
24
  var tiles = this._props.el.querySelectorAll(".card");
26
25
  for (var i = 0; i < tiles.length; i++) {