dattatable 2.2.1 → 2.2.2

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 (40) hide show
  1. package/build/itemForm.d.ts +2 -1
  2. package/build/itemForm.js +6 -4
  3. package/dist/dattatable.js +433 -433
  4. package/dist/dattatable.min.js +1 -1
  5. package/docs/assets/search.js +1 -1
  6. package/docs/classes/CanvasForm.html +17 -17
  7. package/docs/classes/Comments.html +12 -12
  8. package/docs/classes/Dashboard.html +15 -15
  9. package/docs/classes/DataTable.html +11 -11
  10. package/docs/classes/Documents.html +45 -45
  11. package/docs/classes/FilterSlideout.html +14 -14
  12. package/docs/classes/Footer.html +4 -4
  13. package/docs/classes/Header.html +4 -4
  14. package/docs/classes/InstallationRequired.html +12 -12
  15. package/docs/classes/ItemForm.html +47 -47
  16. package/docs/classes/LoadingDialog.html +12 -12
  17. package/docs/classes/Modal.html +26 -26
  18. package/docs/classes/Navigation.html +4 -4
  19. package/docs/enums/ActionButtonTypes.html +6 -6
  20. package/docs/functions/formatBytes.html +1 -1
  21. package/docs/functions/formatDateValue.html +1 -1
  22. package/docs/functions/formatTimeValue.html +1 -1
  23. package/docs/functions/getFileExt.html +1 -1
  24. package/docs/interfaces/ICommentsItem.html +6 -6
  25. package/docs/interfaces/IDashboardProps.html +14 -14
  26. package/docs/interfaces/IDataTable.html +7 -7
  27. package/docs/interfaces/IDataTableProps.html +6 -6
  28. package/docs/interfaces/IDocumentsProps.html +25 -25
  29. package/docs/interfaces/IFilterItem.html +5 -5
  30. package/docs/interfaces/IFilterProps.html +4 -4
  31. package/docs/interfaces/IFooterProps.html +6 -6
  32. package/docs/interfaces/IHeaderProps.html +5 -5
  33. package/docs/interfaces/IItemFormCreateProps.html +14 -14
  34. package/docs/interfaces/IItemFormEditProps.html +15 -15
  35. package/docs/interfaces/IItemFormTab.html +17 -10
  36. package/docs/interfaces/IItemFormTabInfo.html +3 -3
  37. package/docs/interfaces/IItemFormViewProps.html +12 -12
  38. package/docs/interfaces/IShowDialogProps.html +5 -5
  39. package/package.json +2 -2
  40. package/pnpm-lock.yaml +7 -7
@@ -3,7 +3,8 @@ import { CanvasForm, Modal } from "./common";
3
3
  /** Tab */
4
4
  export interface IItemFormTab {
5
5
  title: string;
6
- fields: string[];
6
+ fields?: string[];
7
+ excludeFields?: string[];
7
8
  onFormRendered?: (form?: Components.IListFormDisplay | Components.IListFormEdit) => void;
8
9
  onRendered?: (el?: HTMLElement, item?: Components.IListGroupItem) => void;
9
10
  onRendering?: (item?: Components.IListGroupItem) => object;
package/build/itemForm.js CHANGED
@@ -217,9 +217,10 @@ var ItemForm = /** @class */ (function () {
217
217
  var props = {
218
218
  el: el,
219
219
  displayAttachments: displayAttachments,
220
+ excludeFields: tab ? tab.excludeFields : null,
221
+ includeFields: tab ? tab.fields : null,
220
222
  info: this._info,
221
- rowClassName: "mb-3",
222
- includeFields: tab ? tab.fields : null
223
+ rowClassName: "mb-3"
223
224
  };
224
225
  // Call the event if it exists
225
226
  props = this._onCreateViewForm ? this._onCreateViewForm(props) : props;
@@ -248,10 +249,11 @@ var ItemForm = /** @class */ (function () {
248
249
  var props = {
249
250
  el: el,
250
251
  displayAttachments: displayAttachments,
252
+ excludeFields: tab ? tab.excludeFields : null,
253
+ includeFields: tab ? tab.fields : null,
251
254
  info: this._info,
252
255
  rowClassName: "mb-3",
253
- controlMode: this.IsNew ? gd_sprest_bs_1.SPTypes.ControlMode.New : gd_sprest_bs_1.SPTypes.ControlMode.Edit,
254
- includeFields: tab ? tab.fields : null
256
+ controlMode: this.IsNew ? gd_sprest_bs_1.SPTypes.ControlMode.New : gd_sprest_bs_1.SPTypes.ControlMode.Edit
255
257
  };
256
258
  // Call the event if it exists
257
259
  props = this._onCreateEditForm ? this._onCreateEditForm(props) : props;