dattatable 2.11.66 → 2.11.68
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 +15 -1
- package/build/dashboard/table.js +12 -0
- package/dist/dattatable.js +1186 -1186
- 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 +5 -5
- 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 +1 -1
package/build/common/itemForm.js
CHANGED
|
@@ -534,7 +534,14 @@ var ItemForm = /** @class */ (function () {
|
|
|
534
534
|
// See if we are rendering a display form
|
|
535
535
|
if (this.IsDisplay) {
|
|
536
536
|
// Call the item form button rendering event
|
|
537
|
-
var formButtons = [
|
|
537
|
+
var formButtons = [{
|
|
538
|
+
text: "Close",
|
|
539
|
+
type: gd_sprest_bs_1.Components.ButtonTypes.OutlineSecondary,
|
|
540
|
+
onClick: function () {
|
|
541
|
+
// Hide the form
|
|
542
|
+
_this._useModal ? _1.Modal.hide() : _1.CanvasForm.hide();
|
|
543
|
+
}
|
|
544
|
+
}];
|
|
538
545
|
formButtons = this._onFormButtonsRendering ? this._onFormButtonsRendering(formButtons) : formButtons;
|
|
539
546
|
// Render the form buttons
|
|
540
547
|
formButtons && formButtons.length > 0 ? gd_sprest_bs_1.Components.ButtonGroup({
|
|
@@ -551,6 +558,13 @@ var ItemForm = /** @class */ (function () {
|
|
|
551
558
|
// Save the form
|
|
552
559
|
_this.save().then(function () { }, function () { });
|
|
553
560
|
}
|
|
561
|
+
}, {
|
|
562
|
+
text: "Close",
|
|
563
|
+
type: gd_sprest_bs_1.Components.ButtonTypes.OutlineSecondary,
|
|
564
|
+
onClick: function () {
|
|
565
|
+
// Hide the form
|
|
566
|
+
_this._useModal ? _1.Modal.hide() : _1.CanvasForm.hide();
|
|
567
|
+
}
|
|
554
568
|
}];
|
|
555
569
|
formButtons = this._onFormButtonsRendering ? this._onFormButtonsRendering(formButtons) : formButtons;
|
|
556
570
|
// Render the form buttons
|
package/build/dashboard/table.js
CHANGED
|
@@ -81,6 +81,18 @@ var DataTable = /** @class */ (function () {
|
|
|
81
81
|
type: "full_numbers"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
},
|
|
85
|
+
render: function (data, type, row, meta) {
|
|
86
|
+
// See if we are sorting
|
|
87
|
+
if (type == "sort") {
|
|
88
|
+
// Get the cell element
|
|
89
|
+
var elCell = meta.settings.aoData[meta.row].anCells[meta.col];
|
|
90
|
+
if (elCell) {
|
|
91
|
+
// Return the order/sort attribute, inner html or data value
|
|
92
|
+
return elCell.getAttribute("data-order") || elCell.getAttribute("data-sort") || elCell.innerHTML || data;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return data;
|
|
84
96
|
}
|
|
85
97
|
};
|
|
86
98
|
// Render the table
|