dattatable 2.11.14 → 2.11.16

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 (72) hide show
  1. package/build/common/itemForm.d.ts +7 -4
  2. package/build/common/itemForm.js +1 -1
  3. package/build/dashboard/tiles.js +3 -2
  4. package/dist/dattatable.js +848 -848
  5. package/dist/dattatable.min.js +1 -1
  6. package/docs/assets/navigation.js +1 -1
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/Accordion.html +2 -2
  9. package/docs/classes/AuditLog.html +2 -2
  10. package/docs/classes/CanvasForm.html +2 -2
  11. package/docs/classes/Comments.html +2 -2
  12. package/docs/classes/Dashboard.html +4 -4
  13. package/docs/classes/DataTable.html +3 -3
  14. package/docs/classes/Documents.html +6 -6
  15. package/docs/classes/FilterSlideout.html +2 -2
  16. package/docs/classes/Footer.html +2 -2
  17. package/docs/classes/Header.html +2 -2
  18. package/docs/classes/InstallationRequired.html +2 -2
  19. package/docs/classes/ItemForm.html +4 -4
  20. package/docs/classes/List.html +4 -4
  21. package/docs/classes/ListConfig.html +2 -2
  22. package/docs/classes/ListSecurity.html +2 -2
  23. package/docs/classes/LoadingDialog.html +2 -2
  24. package/docs/classes/Modal.html +2 -2
  25. package/docs/classes/Navigation.html +3 -3
  26. package/docs/classes/Tiles.html +2 -2
  27. package/docs/classes/Timeout.html +2 -2
  28. package/docs/enums/ActionButtonTypes.html +2 -2
  29. package/docs/functions/formatBytes.html +1 -1
  30. package/docs/functions/formatDateValue.html +1 -1
  31. package/docs/functions/formatTimeValue.html +1 -1
  32. package/docs/functions/getContextInfo.html +1 -1
  33. package/docs/functions/getFileExt.html +1 -1
  34. package/docs/functions/waitForTheme.html +1 -1
  35. package/docs/interfaces/IAccordion.html +2 -2
  36. package/docs/interfaces/IAccordionProps.html +2 -2
  37. package/docs/interfaces/IAuditLogItem.html +13 -13
  38. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  39. package/docs/interfaces/IAuditLogProps.html +2 -2
  40. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  41. package/docs/interfaces/ICommentsItem.html +2 -2
  42. package/docs/interfaces/ICreateLookupData.html +2 -2
  43. package/docs/interfaces/IDashboardProps.html +2 -2
  44. package/docs/interfaces/IDataTable.html +2 -2
  45. package/docs/interfaces/IDataTableProps.html +2 -2
  46. package/docs/interfaces/IDocumentsProps.html +2 -2
  47. package/docs/interfaces/IFilterItem.html +2 -2
  48. package/docs/interfaces/IFilterProps.html +2 -2
  49. package/docs/interfaces/IFooterProps.html +2 -2
  50. package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
  51. package/docs/interfaces/IHeaderProps.html +2 -2
  52. package/docs/interfaces/IInstallProps.html +2 -2
  53. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  54. package/docs/interfaces/IItemFormEditProps.html +2 -2
  55. package/docs/interfaces/IItemFormSaveProps.html +5 -0
  56. package/docs/interfaces/IItemFormTab.html +2 -2
  57. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  58. package/docs/interfaces/IItemFormViewProps.html +2 -2
  59. package/docs/interfaces/IListConfig.html +2 -2
  60. package/docs/interfaces/IListConfigProps.html +2 -2
  61. package/docs/interfaces/IListProps.html +2 -2
  62. package/docs/interfaces/IListSecurity.html +2 -2
  63. package/docs/interfaces/IListSecurityItem.html +2 -2
  64. package/docs/interfaces/ILookupData.html +2 -2
  65. package/docs/interfaces/IShowDialogProps.html +2 -2
  66. package/docs/interfaces/ITiles.html +2 -2
  67. package/docs/interfaces/ITilesProps.html +2 -2
  68. package/docs/interfaces/IValidateLookupsProps.html +2 -2
  69. package/docs/modules.html +1 -0
  70. package/docs/variables/DattaTable.html +1 -1
  71. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  72. package/package.json +2 -2
@@ -58,6 +58,12 @@ export interface IItemFormEditProps {
58
58
  useModal?: boolean;
59
59
  webUrl?: string;
60
60
  }
61
+ /** Save Item Properties */
62
+ export interface IItemFormSaveProps {
63
+ bypassValidation?: boolean;
64
+ checkItemVersion?: boolean;
65
+ form?: Components.IListFormEdit;
66
+ }
61
67
  /** View Item Properties */
62
68
  export interface IItemFormViewProps {
63
69
  elForm?: HTMLElement;
@@ -132,9 +138,6 @@ export declare class ItemForm {
132
138
  private static renderFormFooter;
133
139
  private static renderForm;
134
140
  private static renderTabs;
135
- static save(props?: {
136
- form?: Components.IListFormEdit;
137
- bypassValidation?: boolean;
138
- }): PromiseLike<any>;
141
+ static save(props?: IItemFormSaveProps): PromiseLike<any>;
139
142
  private static validate;
140
143
  }
@@ -540,7 +540,7 @@ var ItemForm = /** @class */ (function () {
540
540
  // onSave event wants to cancel the save and do something custom
541
541
  if (values) {
542
542
  // Save the item
543
- defaultForm.save(values).then(function (item) {
543
+ defaultForm.save(values, props.checkItemVersion).then(function (item) {
544
544
  // Call the update event
545
545
  _this._updateEvent ? _this._updateEvent(item) : null;
546
546
  // Close the dialogs
@@ -201,8 +201,6 @@ var Tiles = /** @class */ (function () {
201
201
  // Updates the visibility of the tiles
202
202
  Tiles.prototype.updateTiles = function () {
203
203
  var _this = this;
204
- var paginationLimit = this._props.paginationLimit || 10;
205
- var showPagination = typeof (this._props.showPagination) === "boolean" ? this._props.showPagination : true;
206
204
  // Get the pagination element
207
205
  var elPagination = this._props.el.querySelector(".tiles-pagination");
208
206
  if (elPagination) {
@@ -268,6 +266,9 @@ var Tiles = /** @class */ (function () {
268
266
  }
269
267
  }
270
268
  }
269
+ // Set the pagination limit
270
+ var showPagination = typeof (this._props.showPagination) === "boolean" ? this._props.showPagination : true;
271
+ var paginationLimit = showPagination ? this._props.paginationLimit || 10 : elItems.length;
271
272
  // Parse the active items to show
272
273
  for (var i = 0; i < paginationLimit; i++) {
273
274
  var elItem = elItems[i];