dattatable 2.2.3 → 2.2.4
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/itemForm.js +16 -8
- package/dist/dattatable.js +433 -433
- package/dist/dattatable.min.js +1 -1
- package/docs/classes/CanvasForm.html +17 -17
- package/docs/classes/Comments.html +12 -12
- package/docs/classes/Dashboard.html +15 -15
- package/docs/classes/DataTable.html +11 -11
- package/docs/classes/Documents.html +45 -45
- package/docs/classes/FilterSlideout.html +14 -14
- package/docs/classes/Footer.html +4 -4
- package/docs/classes/Header.html +4 -4
- package/docs/classes/InstallationRequired.html +12 -12
- package/docs/classes/ItemForm.html +47 -47
- package/docs/classes/LoadingDialog.html +12 -12
- package/docs/classes/Modal.html +26 -26
- package/docs/classes/Navigation.html +4 -4
- package/docs/enums/ActionButtonTypes.html +6 -6
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/interfaces/ICommentsItem.html +6 -6
- package/docs/interfaces/IDashboardProps.html +14 -14
- package/docs/interfaces/IDataTable.html +7 -7
- package/docs/interfaces/IDataTableProps.html +6 -6
- package/docs/interfaces/IDocumentsProps.html +25 -25
- package/docs/interfaces/IFilterItem.html +5 -5
- package/docs/interfaces/IFilterProps.html +4 -4
- package/docs/interfaces/IFooterProps.html +6 -6
- package/docs/interfaces/IHeaderProps.html +5 -5
- package/docs/interfaces/IItemFormCreateProps.html +14 -14
- package/docs/interfaces/IItemFormEditProps.html +15 -15
- package/docs/interfaces/IItemFormTab.html +7 -7
- package/docs/interfaces/IItemFormTabInfo.html +3 -3
- package/docs/interfaces/IItemFormViewProps.html +12 -12
- package/docs/interfaces/IShowDialogProps.html +5 -5
- package/package.json +2 -2
- package/pnpm-lock.yaml +7 -7
package/build/itemForm.js
CHANGED
|
@@ -436,19 +436,27 @@ var ItemForm = /** @class */ (function () {
|
|
|
436
436
|
common_1.LoadingDialog.hide();
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
|
-
// Call the save event
|
|
439
|
+
// Call the save event and ensure values exist
|
|
440
440
|
values = _this._onSave ? _this._onSave(values) : values;
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
441
|
+
if (values) {
|
|
442
|
+
// See if the onSave event returned a promise
|
|
443
|
+
if (typeof (values["then"]) === "function") {
|
|
444
|
+
// Wait for the promise to complete
|
|
445
|
+
values["then"](function (values) {
|
|
446
|
+
// Save the item
|
|
447
|
+
saveItem_1(values);
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
else {
|
|
445
451
|
// Save the item
|
|
446
452
|
saveItem_1(values);
|
|
447
|
-
}
|
|
453
|
+
}
|
|
448
454
|
}
|
|
449
455
|
else {
|
|
450
|
-
//
|
|
451
|
-
|
|
456
|
+
// Saving the item has been cancelled
|
|
457
|
+
// Close the dialogs
|
|
458
|
+
(_this._useModal ? common_1.Modal : common_1.CanvasForm).hide();
|
|
459
|
+
common_1.LoadingDialog.hide();
|
|
452
460
|
}
|
|
453
461
|
}
|
|
454
462
|
else {
|