dattatable 2.11.0 → 2.11.2

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 (68) hide show
  1. package/build/common/itemForm.d.ts +4 -1
  2. package/build/common/itemForm.js +30 -27
  3. package/build/common/listCfg.js +4 -0
  4. package/dist/dattatable.js +1019 -1019
  5. package/dist/dattatable.min.js +1 -1
  6. package/docs/classes/Accordion.html +2 -2
  7. package/docs/classes/AuditLog.html +2 -2
  8. package/docs/classes/CanvasForm.html +2 -2
  9. package/docs/classes/Comments.html +2 -2
  10. package/docs/classes/Dashboard.html +4 -4
  11. package/docs/classes/DataTable.html +3 -3
  12. package/docs/classes/Documents.html +6 -6
  13. package/docs/classes/FilterSlideout.html +2 -2
  14. package/docs/classes/Footer.html +2 -2
  15. package/docs/classes/Header.html +2 -2
  16. package/docs/classes/InstallationRequired.html +2 -2
  17. package/docs/classes/ItemForm.html +4 -4
  18. package/docs/classes/List.html +4 -4
  19. package/docs/classes/ListConfig.html +2 -2
  20. package/docs/classes/ListSecurity.html +2 -2
  21. package/docs/classes/LoadingDialog.html +2 -2
  22. package/docs/classes/Modal.html +2 -2
  23. package/docs/classes/Navigation.html +3 -3
  24. package/docs/classes/Tiles.html +2 -2
  25. package/docs/classes/Timeout.html +2 -2
  26. package/docs/enums/ActionButtonTypes.html +2 -2
  27. package/docs/functions/formatBytes.html +1 -1
  28. package/docs/functions/formatDateValue.html +1 -1
  29. package/docs/functions/formatTimeValue.html +1 -1
  30. package/docs/functions/getContextInfo.html +1 -1
  31. package/docs/functions/getFileExt.html +1 -1
  32. package/docs/functions/waitForTheme.html +1 -1
  33. package/docs/interfaces/IAccordion.html +2 -2
  34. package/docs/interfaces/IAccordionProps.html +2 -2
  35. package/docs/interfaces/IAuditLogItem.html +15 -13
  36. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  37. package/docs/interfaces/IAuditLogProps.html +2 -2
  38. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  39. package/docs/interfaces/ICommentsItem.html +2 -2
  40. package/docs/interfaces/ICreateLookupData.html +2 -2
  41. package/docs/interfaces/IDashboardProps.html +2 -2
  42. package/docs/interfaces/IDataTable.html +2 -2
  43. package/docs/interfaces/IDataTableProps.html +2 -2
  44. package/docs/interfaces/IDocumentsProps.html +2 -2
  45. package/docs/interfaces/IFilterItem.html +2 -2
  46. package/docs/interfaces/IFilterProps.html +2 -2
  47. package/docs/interfaces/IFooterProps.html +2 -2
  48. package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
  49. package/docs/interfaces/IHeaderProps.html +2 -2
  50. package/docs/interfaces/IInstallProps.html +2 -2
  51. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  52. package/docs/interfaces/IItemFormEditProps.html +2 -2
  53. package/docs/interfaces/IItemFormTab.html +2 -2
  54. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  55. package/docs/interfaces/IItemFormViewProps.html +2 -2
  56. package/docs/interfaces/IListConfig.html +2 -2
  57. package/docs/interfaces/IListConfigProps.html +2 -2
  58. package/docs/interfaces/IListProps.html +2 -2
  59. package/docs/interfaces/IListSecurity.html +2 -2
  60. package/docs/interfaces/IListSecurityItem.html +2 -2
  61. package/docs/interfaces/ILookupData.html +2 -2
  62. package/docs/interfaces/IShowDialogProps.html +2 -2
  63. package/docs/interfaces/ITiles.html +2 -2
  64. package/docs/interfaces/ITilesProps.html +2 -2
  65. package/docs/interfaces/IValidateLookupsProps.html +2 -2
  66. package/docs/variables/DattaTable.html +1 -1
  67. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  68. package/package.json +2 -2
@@ -132,6 +132,9 @@ export declare class ItemForm {
132
132
  private static renderFormFooter;
133
133
  private static renderForm;
134
134
  private static renderTabs;
135
- static save(form?: Components.IListFormEdit): void;
135
+ static save(props?: {
136
+ form?: Components.IListFormEdit;
137
+ bypassValidation?: boolean;
138
+ }): void;
136
139
  private static validate;
137
140
  }
@@ -470,11 +470,12 @@ var ItemForm = /** @class */ (function () {
470
470
  return this._tabs.el;
471
471
  };
472
472
  // Saves the edit form
473
- ItemForm.save = function (form) {
473
+ ItemForm.save = function (props) {
474
474
  var _this = this;
475
+ if (props === void 0) { props = {}; }
475
476
  var values = {};
476
477
  // Default the form
477
- var forms = form ? [form] : this._editForms;
478
+ var forms = props.form ? [props.form] : this._editForms;
478
479
  var defaultForm = forms[0];
479
480
  // Display a loading dialog
480
481
  _1.LoadingDialog.setHeader("Validation");
@@ -491,32 +492,34 @@ var ItemForm = /** @class */ (function () {
491
492
  // Set the default form
492
493
  defaultForm = form;
493
494
  }
494
- // Validate the form
495
- var tabIsValid = form.isValid();
496
- // See if we are using tabs and an event exists
497
- var tabInfo = _this._tabInfo && _this._tabInfo.tabs[counter];
498
- if (tabInfo && tabInfo.onValidation) {
499
- // Call the event
500
- tabIsValid = tabInfo.onValidation(values);
501
- }
502
- // See if the form is not valid
503
- if (!tabIsValid) {
504
- // Set the flag
505
- isValid = false;
506
- }
507
- // See if tabs exist
508
- if (_this.Tabs) {
509
- // Get the tab
510
- var tab = _this.Tabs.el.querySelectorAll(".list-group-item")[counter++];
511
- if (tab) {
512
- // Clear the class name
513
- tab.classList.remove("is-valid");
514
- tab.classList.remove("is-invalid");
515
- // Set the class name
516
- tab.classList.add(tabIsValid ? "is-valid" : "is-invalid");
495
+ // See if we are bypassing validation
496
+ if (props.bypassValidation == null || props.bypassValidation != true) {
497
+ // Validate the form
498
+ var tabIsValid = form.isValid();
499
+ // See if we are using tabs and an event exists
500
+ var tabInfo = _this._tabInfo && _this._tabInfo.tabs[counter];
501
+ if (tabInfo && tabInfo.onValidation) {
502
+ // Call the event
503
+ tabIsValid = tabInfo.onValidation(values);
504
+ }
505
+ // See if the form is not valid
506
+ if (!tabIsValid) {
507
+ // Set the flag
508
+ isValid = false;
509
+ }
510
+ // See if tabs exist
511
+ if (_this.Tabs) {
512
+ // Get the tab
513
+ var tab = _this.Tabs.el.querySelectorAll(".list-group-item")[counter++];
514
+ if (tab) {
515
+ // Clear the class name
516
+ tab.classList.remove("is-valid");
517
+ tab.classList.remove("is-invalid");
518
+ // Set the class name
519
+ tab.classList.add(tabIsValid ? "is-valid" : "is-invalid");
520
+ }
517
521
  }
518
522
  }
519
- // Set the tab class
520
523
  }).then(
521
524
  // Success
522
525
  function () {
@@ -525,7 +528,7 @@ var ItemForm = /** @class */ (function () {
525
528
  // Valid
526
529
  function (isValid) {
527
530
  // See if the form(s) are valid
528
- if (isValid) {
531
+ if (isValid || props.bypassValidation == true) {
529
532
  // Update the loading dialog
530
533
  _1.LoadingDialog.setHeader("Saving the Item");
531
534
  _1.LoadingDialog.setBody((_this.IsNew ? "Creating" : "Updating") + " the Item");
@@ -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++) {