dattatable 2.11.63 → 2.11.65

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 (74) hide show
  1. package/build/common/documents.js +4 -4
  2. package/build/common/itemForm.d.ts +58 -50
  3. package/build/common/itemForm.js +278 -280
  4. package/build/common/list.d.ts +5 -3
  5. package/build/common/list.js +24 -16
  6. package/build/dashboard/index.d.ts +1 -1
  7. package/build/dashboard/index.js +3 -3
  8. package/dist/dattatable.js +611 -611
  9. package/dist/dattatable.min.js +1 -1
  10. package/docs/assets/search.js +1 -1
  11. package/docs/classes/Accordion.html +2 -2
  12. package/docs/classes/AuditLog.html +2 -2
  13. package/docs/classes/CanvasForm.html +2 -2
  14. package/docs/classes/Comments.html +2 -2
  15. package/docs/classes/Dashboard.html +5 -5
  16. package/docs/classes/DataTable.html +3 -3
  17. package/docs/classes/Documents.html +6 -6
  18. package/docs/classes/FilterSlideout.html +2 -2
  19. package/docs/classes/Footer.html +2 -2
  20. package/docs/classes/Header.html +2 -2
  21. package/docs/classes/InstallationRequired.html +2 -2
  22. package/docs/classes/ItemForm.html +12 -7
  23. package/docs/classes/List.html +6 -4
  24. package/docs/classes/ListConfig.html +2 -2
  25. package/docs/classes/ListSecurity.html +2 -2
  26. package/docs/classes/LoadingDialog.html +2 -2
  27. package/docs/classes/Modal.html +2 -2
  28. package/docs/classes/Navigation.html +3 -3
  29. package/docs/classes/Tiles.html +2 -2
  30. package/docs/classes/Timeout.html +2 -2
  31. package/docs/enums/ActionButtonTypes.html +2 -2
  32. package/docs/functions/formatBytes.html +1 -1
  33. package/docs/functions/formatDateValue.html +1 -1
  34. package/docs/functions/formatTimeValue.html +1 -1
  35. package/docs/functions/getContextInfo.html +1 -1
  36. package/docs/functions/getFileExt.html +1 -1
  37. package/docs/functions/waitForTheme.html +1 -1
  38. package/docs/interfaces/IAccordion.html +2 -2
  39. package/docs/interfaces/IAccordionProps.html +2 -2
  40. package/docs/interfaces/IAuditLogItem.html +15 -13
  41. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  42. package/docs/interfaces/IAuditLogProps.html +2 -2
  43. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  44. package/docs/interfaces/ICommentsItem.html +2 -2
  45. package/docs/interfaces/ICreateLookupData.html +2 -2
  46. package/docs/interfaces/IDashboardProps.html +2 -2
  47. package/docs/interfaces/IDataTable.html +2 -2
  48. package/docs/interfaces/IDataTableProps.html +2 -2
  49. package/docs/interfaces/IDocumentsProps.html +2 -2
  50. package/docs/interfaces/IFilterItem.html +2 -2
  51. package/docs/interfaces/IFilterProps.html +2 -2
  52. package/docs/interfaces/IFooterProps.html +2 -2
  53. package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
  54. package/docs/interfaces/IHeaderProps.html +2 -2
  55. package/docs/interfaces/IInstallProps.html +2 -2
  56. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  57. package/docs/interfaces/IItemFormEditProps.html +2 -2
  58. package/docs/interfaces/IItemFormSaveProps.html +2 -2
  59. package/docs/interfaces/IItemFormTab.html +2 -2
  60. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  61. package/docs/interfaces/IItemFormViewProps.html +2 -2
  62. package/docs/interfaces/IListConfig.html +2 -2
  63. package/docs/interfaces/IListConfigProps.html +2 -2
  64. package/docs/interfaces/IListProps.html +2 -2
  65. package/docs/interfaces/IListSecurity.html +2 -2
  66. package/docs/interfaces/IListSecurityItem.html +2 -2
  67. package/docs/interfaces/ILookupData.html +2 -2
  68. package/docs/interfaces/IShowDialogProps.html +2 -2
  69. package/docs/interfaces/ITiles.html +2 -2
  70. package/docs/interfaces/ITilesProps.html +2 -2
  71. package/docs/interfaces/IValidateLookupsProps.html +2 -2
  72. package/docs/variables/DattaTable.html +1 -1
  73. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  74. package/package.json +2 -2
@@ -685,8 +685,8 @@ var Documents = /** @class */ (function () {
685
685
  type: gd_sprest_bs_1.Components.ButtonTypes.OutlineSecondary,
686
686
  onClick: function () {
687
687
  // Set the item form properties
688
- itemForm_1.ItemForm.ListName = _this._props.listName;
689
- itemForm_1.ItemForm.UseModal = false;
688
+ var itemForm = new itemForm_1.ItemForm(_this._props);
689
+ itemForm.UseModal = false;
690
690
  // Ensure the user can edit the item
691
691
  if (_this.CanEdit) {
692
692
  // Define the properties
@@ -759,11 +759,11 @@ var Documents = /** @class */ (function () {
759
759
  }
760
760
  });
761
761
  // Show the edit form
762
- itemForm_1.ItemForm.edit(editProps);
762
+ itemForm.edit(editProps);
763
763
  }
764
764
  else {
765
765
  // View the form
766
- itemForm_1.ItemForm.view(__assign(__assign({}, (_this._props.onItemFormViewing || {})), {
766
+ itemForm.view(__assign(__assign({}, (_this._props.onItemFormViewing || {})), {
767
767
  itemId: file.ListItemAllFields["Id"],
768
768
  // Set the view form properties
769
769
  onCreateViewForm: function (props) {
@@ -86,59 +86,67 @@ export interface IItemFormViewProps {
86
86
  * Item Form
87
87
  */
88
88
  export declare class ItemForm {
89
- private static _elForm;
90
- private static _onCreateEditForm;
91
- private static _onCreateViewForm;
92
- private static _onFormButtonsRendering;
93
- private static _onFormRendered?;
94
- private static _onGetListInfo;
95
- private static _onResetForm;
96
- private static _onSetFooter?;
97
- private static _onSetHeader?;
98
- private static _onShowForm?;
99
- private static _onSave;
100
- private static _onSaveError;
101
- private static _onValidation;
102
- private static _requestDigest;
103
- private static _tabInfo;
104
- private static _updateEvent;
105
- static set AutoClose(value: boolean);
106
- private static _displayForms;
107
- static get DisplayForm(): Components.IListFormDisplay;
108
- static get DisplayForms(): Components.IListFormDisplay[];
109
- private static _editForms;
110
- static get EditForm(): Components.IListFormEdit;
111
- static get EditForms(): Components.IListFormEdit[];
112
- private static _info;
113
- static get FormInfo(): Helper.IListFormResult;
114
- private static _controlMode;
115
- static get IsDisplay(): boolean;
116
- static get IsEdit(): boolean;
117
- static get IsNew(): boolean;
118
- private static _listName;
119
- static get ListName(): string;
120
- static set ListName(value: string);
121
- private static _tabs;
122
- static get Tabs(): Components.IListGroup;
123
- private static _useModal;
124
- static get UseModal(): boolean;
125
- static set UseModal(value: boolean);
126
- static setSize(value: number): void;
127
- /** Public Methods */
89
+ private static _defaultForm;
128
90
  static close(): void;
129
91
  static create(props?: IItemFormCreateProps): PromiseLike<void>;
130
92
  static edit(props: IItemFormEditProps): PromiseLike<void>;
131
- static loadFormInfo(props: Helper.IListFormProps): PromiseLike<void>;
132
- static renderFooter(elForm: HTMLElement): void;
93
+ static loadFormInfo(props: Helper.IListFormProps): PromiseLike<Helper.IListFormResult>;
94
+ static setSize(value: number): void;
133
95
  static view(props: IItemFormViewProps): PromiseLike<void>;
96
+ /**
97
+ * Class
98
+ */
99
+ private _elForm;
100
+ private _onCreateEditForm;
101
+ private _onCreateViewForm;
102
+ private _onFormButtonsRendering;
103
+ private _onFormRendered?;
104
+ private _onGetListInfo;
105
+ private _onResetForm;
106
+ private _onSetFooter?;
107
+ private _onSetHeader?;
108
+ private _onShowForm?;
109
+ private _onSave;
110
+ private _onSaveError;
111
+ private _onValidation;
112
+ private _requestDigest;
113
+ private _tabInfo;
114
+ private _updateEvent;
115
+ constructor(props?: IItemFormCreateProps);
116
+ set AutoClose(value: boolean);
117
+ private _displayForms;
118
+ get DisplayForm(): Components.IListFormDisplay;
119
+ get DisplayForms(): Components.IListFormDisplay[];
120
+ private _editForms;
121
+ get EditForm(): Components.IListFormEdit;
122
+ get EditForms(): Components.IListFormEdit[];
123
+ private _info;
124
+ get FormInfo(): Helper.IListFormResult;
125
+ private _controlMode;
126
+ get IsDisplay(): boolean;
127
+ get IsEdit(): boolean;
128
+ get IsNew(): boolean;
129
+ private _listName;
130
+ get ListName(): string;
131
+ set ListName(value: string);
132
+ private _tabs;
133
+ get Tabs(): Components.IListGroup;
134
+ private _useModal;
135
+ get UseModal(): boolean;
136
+ set UseModal(value: boolean);
137
+ /** Public Methods */
138
+ create(props?: IItemFormCreateProps): PromiseLike<void>;
139
+ edit(props: IItemFormEditProps): PromiseLike<void>;
140
+ renderFooter(elForm: HTMLElement): void;
141
+ save(props?: IItemFormSaveProps): PromiseLike<any>;
142
+ view(props: IItemFormViewProps): PromiseLike<void>;
134
143
  /** Private Methods */
135
- private static clearProps;
136
- private static load;
137
- private static renderDisplayForm;
138
- private static renderEditForm;
139
- private static renderFormFooter;
140
- private static renderForm;
141
- private static renderTabs;
142
- static save(props?: IItemFormSaveProps): PromiseLike<any>;
143
- private static validate;
144
+ private clearProps;
145
+ private load;
146
+ private renderDisplayForm;
147
+ private renderEditForm;
148
+ private renderFormFooter;
149
+ private renderForm;
150
+ private renderTabs;
151
+ private validate;
144
152
  }