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.
- package/build/common/documents.js +4 -4
- package/build/common/itemForm.d.ts +58 -50
- package/build/common/itemForm.js +278 -280
- package/build/common/list.d.ts +5 -3
- package/build/common/list.js +24 -16
- package/build/dashboard/index.d.ts +1 -1
- package/build/dashboard/index.js +3 -3
- package/dist/dattatable.js +611 -611
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Accordion.html +2 -2
- package/docs/classes/AuditLog.html +2 -2
- package/docs/classes/CanvasForm.html +2 -2
- package/docs/classes/Comments.html +2 -2
- package/docs/classes/Dashboard.html +5 -5
- package/docs/classes/DataTable.html +3 -3
- package/docs/classes/Documents.html +6 -6
- package/docs/classes/FilterSlideout.html +2 -2
- package/docs/classes/Footer.html +2 -2
- package/docs/classes/Header.html +2 -2
- package/docs/classes/InstallationRequired.html +2 -2
- package/docs/classes/ItemForm.html +12 -7
- package/docs/classes/List.html +6 -4
- package/docs/classes/ListConfig.html +2 -2
- package/docs/classes/ListSecurity.html +2 -2
- package/docs/classes/LoadingDialog.html +2 -2
- package/docs/classes/Modal.html +2 -2
- package/docs/classes/Navigation.html +3 -3
- package/docs/classes/Tiles.html +2 -2
- package/docs/classes/Timeout.html +2 -2
- package/docs/enums/ActionButtonTypes.html +2 -2
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getContextInfo.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -1
- package/docs/interfaces/IAccordion.html +2 -2
- package/docs/interfaces/IAccordionProps.html +2 -2
- package/docs/interfaces/IAuditLogItem.html +15 -13
- package/docs/interfaces/IAuditLogItemCreation.html +2 -2
- package/docs/interfaces/IAuditLogProps.html +2 -2
- package/docs/interfaces/IAuditLogViewProps.html +2 -2
- package/docs/interfaces/ICommentsItem.html +2 -2
- package/docs/interfaces/ICreateLookupData.html +2 -2
- package/docs/interfaces/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +2 -2
- package/docs/interfaces/IDataTableProps.html +2 -2
- package/docs/interfaces/IDocumentsProps.html +2 -2
- package/docs/interfaces/IFilterItem.html +2 -2
- package/docs/interfaces/IFilterProps.html +2 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
- package/docs/interfaces/IHeaderProps.html +2 -2
- package/docs/interfaces/IInstallProps.html +2 -2
- package/docs/interfaces/IItemFormCreateProps.html +2 -2
- package/docs/interfaces/IItemFormEditProps.html +2 -2
- package/docs/interfaces/IItemFormSaveProps.html +2 -2
- package/docs/interfaces/IItemFormTab.html +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListConfig.html +2 -2
- package/docs/interfaces/IListConfigProps.html +2 -2
- package/docs/interfaces/IListProps.html +2 -2
- package/docs/interfaces/IListSecurity.html +2 -2
- package/docs/interfaces/IListSecurityItem.html +2 -2
- package/docs/interfaces/ILookupData.html +2 -2
- package/docs/interfaces/IShowDialogProps.html +2 -2
- package/docs/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/interfaces/IValidateLookupsProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- 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
|
|
689
|
-
|
|
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
|
-
|
|
762
|
+
itemForm.edit(editProps);
|
|
763
763
|
}
|
|
764
764
|
else {
|
|
765
765
|
// View the form
|
|
766
|
-
|
|
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
|
|
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<
|
|
132
|
-
static
|
|
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
|
|
136
|
-
private
|
|
137
|
-
private
|
|
138
|
-
private
|
|
139
|
-
private
|
|
140
|
-
private
|
|
141
|
-
private
|
|
142
|
-
|
|
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
|
}
|