dattatable 2.10.99 → 2.11.1

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.
Files changed (67) hide show
  1. package/build/common/itemForm.js +24 -33
  2. package/build/common/listCfg.js +4 -0
  3. package/dist/dattatable.js +1019 -1019
  4. package/dist/dattatable.min.js +1 -1
  5. package/docs/classes/Accordion.html +2 -2
  6. package/docs/classes/AuditLog.html +2 -2
  7. package/docs/classes/CanvasForm.html +2 -2
  8. package/docs/classes/Comments.html +2 -2
  9. package/docs/classes/Dashboard.html +4 -4
  10. package/docs/classes/DataTable.html +3 -3
  11. package/docs/classes/Documents.html +6 -6
  12. package/docs/classes/FilterSlideout.html +2 -2
  13. package/docs/classes/Footer.html +2 -2
  14. package/docs/classes/Header.html +2 -2
  15. package/docs/classes/InstallationRequired.html +2 -2
  16. package/docs/classes/ItemForm.html +4 -4
  17. package/docs/classes/List.html +4 -4
  18. package/docs/classes/ListConfig.html +2 -2
  19. package/docs/classes/ListSecurity.html +2 -2
  20. package/docs/classes/LoadingDialog.html +2 -2
  21. package/docs/classes/Modal.html +2 -2
  22. package/docs/classes/Navigation.html +3 -3
  23. package/docs/classes/Tiles.html +2 -2
  24. package/docs/classes/Timeout.html +2 -2
  25. package/docs/enums/ActionButtonTypes.html +2 -2
  26. package/docs/functions/formatBytes.html +1 -1
  27. package/docs/functions/formatDateValue.html +1 -1
  28. package/docs/functions/formatTimeValue.html +1 -1
  29. package/docs/functions/getContextInfo.html +1 -1
  30. package/docs/functions/getFileExt.html +1 -1
  31. package/docs/functions/waitForTheme.html +1 -1
  32. package/docs/interfaces/IAccordion.html +2 -2
  33. package/docs/interfaces/IAccordionProps.html +2 -2
  34. package/docs/interfaces/IAuditLogItem.html +15 -13
  35. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  36. package/docs/interfaces/IAuditLogProps.html +2 -2
  37. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  38. package/docs/interfaces/ICommentsItem.html +2 -2
  39. package/docs/interfaces/ICreateLookupData.html +2 -2
  40. package/docs/interfaces/IDashboardProps.html +2 -2
  41. package/docs/interfaces/IDataTable.html +2 -2
  42. package/docs/interfaces/IDataTableProps.html +2 -2
  43. package/docs/interfaces/IDocumentsProps.html +2 -2
  44. package/docs/interfaces/IFilterItem.html +2 -2
  45. package/docs/interfaces/IFilterProps.html +2 -2
  46. package/docs/interfaces/IFooterProps.html +2 -2
  47. package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
  48. package/docs/interfaces/IHeaderProps.html +2 -2
  49. package/docs/interfaces/IInstallProps.html +2 -2
  50. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  51. package/docs/interfaces/IItemFormEditProps.html +2 -2
  52. package/docs/interfaces/IItemFormTab.html +2 -2
  53. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  54. package/docs/interfaces/IItemFormViewProps.html +2 -2
  55. package/docs/interfaces/IListConfig.html +2 -2
  56. package/docs/interfaces/IListConfigProps.html +2 -2
  57. package/docs/interfaces/IListProps.html +2 -2
  58. package/docs/interfaces/IListSecurity.html +2 -2
  59. package/docs/interfaces/IListSecurityItem.html +2 -2
  60. package/docs/interfaces/ILookupData.html +2 -2
  61. package/docs/interfaces/IShowDialogProps.html +2 -2
  62. package/docs/interfaces/ITiles.html +2 -2
  63. package/docs/interfaces/ITilesProps.html +2 -2
  64. package/docs/interfaces/IValidateLookupsProps.html +2 -2
  65. package/docs/variables/DattaTable.html +1 -1
  66. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  67. package/package.json +2 -2
@@ -530,7 +530,7 @@ var ItemForm = /** @class */ (function () {
530
530
  _1.LoadingDialog.setHeader("Saving the Item");
531
531
  _1.LoadingDialog.setBody((_this.IsNew ? "Creating" : "Updating") + " the Item");
532
532
  // Saves the item
533
- var saveItem_1 = function (values) {
533
+ var saveItem_1 = function (values, retryFl) {
534
534
  // If values is null then do nothing. This would happen when the
535
535
  // onSave event wants to cancel the save and do something custom
536
536
  if (values) {
@@ -542,46 +542,37 @@ var ItemForm = /** @class */ (function () {
542
542
  (_this._useModal ? _1.Modal : _1.CanvasForm).hide();
543
543
  _1.LoadingDialog.hide();
544
544
  }, function (err) {
545
- // Try to get the error message
546
- try {
547
- var errorMessage = JSON.parse(err.response).error.message.value;
548
- // See if the page timed out
549
- if (errorMessage.indexOf("The security validation for this page is invalid") == 0) {
550
- // Set the loading dialog
551
- _1.LoadingDialog.setBody("The page timed out, retrying the request...");
552
- // Get the context
553
- (0, _1.getContextInfo)(_this._info.webUrl).then(function (requestDigest) {
554
- // Set the request digest value
555
- _this._requestDigest = requestDigest;
556
- // Try to save the item again
557
- defaultForm.save(values).then(function (item) {
558
- // Call the update event
559
- _this._updateEvent ? _this._updateEvent(item) : null;
560
- // Close the dialogs
561
- (_this._useModal ? _1.Modal : _1.CanvasForm).hide();
562
- _1.LoadingDialog.hide();
563
- }, function (err) {
564
- // Log
565
- console.error("[List Form] Unable to save the item after refreshing the context information.");
566
- // Call the event
567
- _this._onSaveError ? _this._onSaveError(err) : null;
545
+ // See if we have already retried to save the item
546
+ if (retryFl) {
547
+ // Log
548
+ console.error("[List Form] Unable to get the context for web.");
549
+ // Call the event
550
+ _this._onSaveError ? _this._onSaveError(err) : null;
551
+ }
552
+ else {
553
+ // Try to get the error message
554
+ try {
555
+ var errorMessage = JSON.parse(err.response).error.message.value;
556
+ // See if the page timed out
557
+ if (errorMessage.indexOf("The security validation for this page is invalid") == 0) {
558
+ // Set the loading dialog
559
+ _1.LoadingDialog.setBody("The page timed out, retrying the request...");
560
+ // Refresh the request digest
561
+ defaultForm.refreshRequestDigest().then(function () {
562
+ // Try to save the item again
563
+ saveItem_1(values, true);
568
564
  });
569
- }, function () {
570
- // Log
571
- console.error("[List Form] Unable to get the context for web.");
565
+ }
566
+ else {
572
567
  // Call the event
573
568
  _this._onSaveError ? _this._onSaveError(err) : null;
574
- });
569
+ }
575
570
  }
576
- else {
571
+ catch (_a) {
577
572
  // Call the event
578
573
  _this._onSaveError ? _this._onSaveError(err) : null;
579
574
  }
580
575
  }
581
- catch (_a) {
582
- // Call the event
583
- _this._onSaveError ? _this._onSaveError(err) : null;
584
- }
585
576
  });
586
577
  }
587
578
  };
@@ -155,6 +155,10 @@ var ListConfig = /** @class */ (function () {
155
155
  if (ct.Sealed) {
156
156
  continue;
157
157
  }
158
+ // Skip the folder content type
159
+ if (ct.Name == "Folder") {
160
+ continue;
161
+ }
158
162
  // Parse the content type fields
159
163
  var fieldRefs = [];
160
164
  for (var j = 0; j < ct.FieldLinks.results.length; j++) {