dattatable 2.11.18 → 2.11.20
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/itemForm.js +10 -4
- package/dist/dattatable.js +578 -578
- package/dist/dattatable.min.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 +4 -4
- 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 +4 -4
- package/docs/classes/List.html +4 -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 +2 -2
- 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
package/build/common/itemForm.js
CHANGED
|
@@ -326,6 +326,9 @@ var ItemForm = /** @class */ (function () {
|
|
|
326
326
|
};
|
|
327
327
|
// Render the edit form
|
|
328
328
|
var form = gd_sprest_bs_1.Components.ListForm.renderEditForm(props);
|
|
329
|
+
// Set the data object to store the tab information
|
|
330
|
+
form.data = tab;
|
|
331
|
+
// Append the form
|
|
329
332
|
this._editForms.push(form);
|
|
330
333
|
// Return the form element
|
|
331
334
|
return el;
|
|
@@ -367,7 +370,10 @@ var ItemForm = /** @class */ (function () {
|
|
|
367
370
|
var formButtons = [{
|
|
368
371
|
text: this.IsNew ? "Create" : "Update",
|
|
369
372
|
type: gd_sprest_bs_1.Components.ButtonTypes.OutlinePrimary,
|
|
370
|
-
onClick: function () {
|
|
373
|
+
onClick: function () {
|
|
374
|
+
// Save the form
|
|
375
|
+
_this.save().then(function () { }, function () { });
|
|
376
|
+
}
|
|
371
377
|
}];
|
|
372
378
|
formButtons = this._onFormButtonsRendering ? this._onFormButtonsRendering(formButtons) : formButtons;
|
|
373
379
|
// Render the form buttons
|
|
@@ -499,7 +505,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
499
505
|
// Validate the form
|
|
500
506
|
var tabIsValid = form.isValid();
|
|
501
507
|
// See if we are using tabs and an event exists
|
|
502
|
-
var tabInfo =
|
|
508
|
+
var tabInfo = form.data;
|
|
503
509
|
if (tabInfo && tabInfo.onValidation) {
|
|
504
510
|
// Call the event
|
|
505
511
|
tabIsValid = tabInfo.onValidation(values);
|
|
@@ -510,9 +516,9 @@ var ItemForm = /** @class */ (function () {
|
|
|
510
516
|
isValid = false;
|
|
511
517
|
}
|
|
512
518
|
// See if tabs exist
|
|
513
|
-
if (_this.Tabs) {
|
|
519
|
+
if (_this.Tabs && tabInfo) {
|
|
514
520
|
// Get the tab
|
|
515
|
-
var tab = _this.Tabs.el.
|
|
521
|
+
var tab = _this.Tabs.el.querySelector(".list-group-item[data-tab-title='".concat(tabInfo.title, "']"));
|
|
516
522
|
if (tab) {
|
|
517
523
|
// Clear the class name
|
|
518
524
|
tab.classList.remove("is-valid");
|