dattatable 2.10.18 → 2.10.19
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/list.js +8 -7
- package/dist/dattatable.js +580 -580
- 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/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/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/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/IItemFormTab.html +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.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/IShowDialogProps.html +2 -2
- package/docs/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.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/list.js
CHANGED
|
@@ -192,11 +192,12 @@ var List = /** @class */ (function () {
|
|
|
192
192
|
configurable: true
|
|
193
193
|
});
|
|
194
194
|
// Clears the modal or canvas
|
|
195
|
-
List.prototype.clear = function (
|
|
196
|
-
// Ensure we rendering to a
|
|
197
|
-
if (
|
|
195
|
+
List.prototype.clear = function (props) {
|
|
196
|
+
// Ensure we are not rendering to a specified element
|
|
197
|
+
if (props.elForm == null) {
|
|
198
198
|
// Clear the modal/form
|
|
199
|
-
|
|
199
|
+
var useModal = typeof (props.useModal) === "boolean" ? props.useModal : _1.ItemForm.UseModal;
|
|
200
|
+
useModal ? _1.Modal.clear() : _1.CanvasForm.clear();
|
|
200
201
|
}
|
|
201
202
|
// Set the list name
|
|
202
203
|
_1.ItemForm.ListName = this.ListName;
|
|
@@ -215,7 +216,7 @@ var List = /** @class */ (function () {
|
|
|
215
216
|
// Displays the edit form
|
|
216
217
|
List.prototype.editForm = function (props) {
|
|
217
218
|
// Clear the modal/canvas
|
|
218
|
-
this.clear(props
|
|
219
|
+
this.clear(props);
|
|
219
220
|
// Display the form
|
|
220
221
|
_1.ItemForm.edit(props).then(null, this._onLoadFormError);
|
|
221
222
|
};
|
|
@@ -473,7 +474,7 @@ var List = /** @class */ (function () {
|
|
|
473
474
|
// Displays the new form
|
|
474
475
|
List.prototype.newForm = function (props) {
|
|
475
476
|
// Clear the modal/canvas
|
|
476
|
-
this.clear(props
|
|
477
|
+
this.clear(props);
|
|
477
478
|
// Display the form
|
|
478
479
|
_1.ItemForm.create(props).then(null, this._onLoadFormError);
|
|
479
480
|
};
|
|
@@ -541,7 +542,7 @@ var List = /** @class */ (function () {
|
|
|
541
542
|
// Displays the view form
|
|
542
543
|
List.prototype.viewForm = function (props) {
|
|
543
544
|
// Clear the modal/canvas
|
|
544
|
-
this.clear(props
|
|
545
|
+
this.clear(props);
|
|
545
546
|
// Display the form
|
|
546
547
|
_1.ItemForm.view(props).then(null, this._onLoadFormError);
|
|
547
548
|
};
|