dattatable 2.6.2 → 2.6.4

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 (52) hide show
  1. package/README.md +14 -14
  2. package/build/common/installRequired.d.ts +1 -0
  3. package/build/common/installRequired.js +2 -0
  4. package/build/common/itemForm.js +3 -2
  5. package/dist/dattatable.js +439 -439
  6. package/dist/dattatable.min.js +1 -1
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/AuditLog.html +13 -13
  9. package/docs/classes/CanvasForm.html +17 -17
  10. package/docs/classes/Comments.html +12 -12
  11. package/docs/classes/Dashboard.html +17 -17
  12. package/docs/classes/DataTable.html +11 -11
  13. package/docs/classes/Documents.html +45 -45
  14. package/docs/classes/FilterSlideout.html +14 -14
  15. package/docs/classes/Footer.html +4 -4
  16. package/docs/classes/Header.html +4 -4
  17. package/docs/classes/InstallationRequired.html +12 -12
  18. package/docs/classes/ItemForm.html +47 -47
  19. package/docs/classes/List.html +40 -40
  20. package/docs/classes/LoadingDialog.html +12 -12
  21. package/docs/classes/Modal.html +26 -26
  22. package/docs/classes/Navigation.html +6 -6
  23. package/docs/enums/ActionButtonTypes.html +6 -6
  24. package/docs/functions/formatBytes.html +1 -1
  25. package/docs/functions/formatDateValue.html +1 -1
  26. package/docs/functions/formatTimeValue.html +1 -1
  27. package/docs/functions/getFileExt.html +1 -1
  28. package/docs/index.html +14 -14
  29. package/docs/interfaces/IAuditLogItem.html +9 -9
  30. package/docs/interfaces/IAuditLogItemCreation.html +7 -7
  31. package/docs/interfaces/IAuditLogProps.html +5 -5
  32. package/docs/interfaces/IAuditLogViewProps.html +6 -6
  33. package/docs/interfaces/ICommentsItem.html +6 -6
  34. package/docs/interfaces/IDashboardProps.html +14 -14
  35. package/docs/interfaces/IDataTable.html +7 -7
  36. package/docs/interfaces/IDataTableProps.html +6 -6
  37. package/docs/interfaces/IDocumentsProps.html +25 -25
  38. package/docs/interfaces/IFilterItem.html +5 -5
  39. package/docs/interfaces/IFilterProps.html +4 -4
  40. package/docs/interfaces/IFooterProps.html +6 -6
  41. package/docs/interfaces/IHeaderProps.html +5 -5
  42. package/docs/interfaces/IInstallProps.html +4 -4
  43. package/docs/interfaces/IItemFormCreateProps.html +14 -14
  44. package/docs/interfaces/IItemFormEditProps.html +15 -15
  45. package/docs/interfaces/IItemFormTab.html +7 -7
  46. package/docs/interfaces/IItemFormTabInfo.html +3 -3
  47. package/docs/interfaces/IItemFormViewProps.html +12 -12
  48. package/docs/interfaces/IListProps.html +9 -9
  49. package/docs/interfaces/IShowDialogProps.html +22 -7
  50. package/docs/variables/DattaTable.html +1 -1
  51. package/package.json +2 -2
  52. package/pnpm-lock.yaml +3230 -3230
package/README.md CHANGED
@@ -13,26 +13,26 @@ This library will help generate a dashboard or an interactive [datatables.net](h
13
13
 
14
14
  Follow this [code walkthrough](https://github.com/gunjandatta/sp-dashboard/wiki) to build a basic example of this solution.
15
15
 
16
- ## [Documentation](https://datta-framework.github.io/dattatable/)
16
+ ## [Documentation](https://datta-register.github.io/dattatable/)
17
17
 
18
18
  ### Common Methods
19
19
 
20
- * [formatDateTimeValue](https://datta-framework.github.io/dattatable/modules.html#formatDateTimeValue)
21
- * [formatDateValue](https://datta-framework.github.io/dattatable/modules.html#formatDateValue)
20
+ * [formatDateTimeValue](https://datta-register.github.io/dattatable/modules.html#formatDateTimeValue)
21
+ * [formatDateValue](https://datta-register.github.io/dattatable/modules.html#formatDateValue)
22
22
 
23
23
  ### Components
24
24
 
25
- * [Canvas Form](https://datta-framework.github.io/dattatable/classes/CanvasForm.html)
26
- * [Dashboard](https://datta-framework.github.io/dattatable/classes/Dashboard.html)
27
- * [Installation Required](https://datta-framework.github.io/dattatable/classes/InstallationRequired.html)
28
- * [Item Form](https://datta-framework.github.io/dattatable/classes/ItemForm.html)
29
- * [Loading Dialog](https://datta-framework.github.io/dattatable/classes/LoadingDialog.html)
30
- * [Modal](https://datta-framework.github.io/dattatable/classes/Modal.html)
25
+ * [Canvas Form](https://datta-register.github.io/dattatable/classes/CanvasForm.html)
26
+ * [Dashboard](https://datta-register.github.io/dattatable/classes/Dashboard.html)
27
+ * [Installation Required](https://datta-register.github.io/dattatable/classes/InstallationRequired.html)
28
+ * [Item Form](https://datta-register.github.io/dattatable/classes/ItemForm.html)
29
+ * [Loading Dialog](https://datta-register.github.io/dattatable/classes/LoadingDialog.html)
30
+ * [Modal](https://datta-register.github.io/dattatable/classes/Modal.html)
31
31
 
32
32
  ### Dashboard Components
33
33
 
34
- * [DataTable](https://datta-framework.github.io/dattatable/classes/DataTable.html)
35
- * [FilterSlideout](https://datta-framework.github.io/dattatable/classes/FilterSlideout.html)
36
- * [Footer](https://datta-framework.github.io/dattatable/classes/Footer.html)
37
- * [Header](https://datta-framework.github.io/dattatable/classes/Header.html)
38
- * [Navigation](https://datta-framework.github.io/dattatable/classes/Navigation.html)
34
+ * [DataTable](https://datta-register.github.io/dattatable/classes/DataTable.html)
35
+ * [FilterSlideout](https://datta-register.github.io/dattatable/classes/FilterSlideout.html)
36
+ * [Footer](https://datta-register.github.io/dattatable/classes/Footer.html)
37
+ * [Header](https://datta-register.github.io/dattatable/classes/Header.html)
38
+ * [Navigation](https://datta-register.github.io/dattatable/classes/Navigation.html)
@@ -7,6 +7,7 @@ export interface IInstallProps {
7
7
  export interface IShowDialogProps {
8
8
  errors?: Components.IListGroupItem[];
9
9
  onBodyRendered?(el: HTMLElement): any;
10
+ onCompleted?: () => void;
10
11
  onFooterRendered?(el: HTMLElement): any;
11
12
  onHeaderRendered?(el: HTMLElement): any;
12
13
  onInstalled?: (cfg?: Helper.ISPConfig) => void;
@@ -292,6 +292,8 @@ var InstallationRequired = /** @class */ (function () {
292
292
  });
293
293
  });
294
294
  }).then(function () {
295
+ // Call the event
296
+ props.onCompleted ? props.onCompleted() : null;
295
297
  // Close the dialog
296
298
  loadingDialog_1.LoadingDialog.hide();
297
299
  });
@@ -397,7 +397,8 @@ var ItemForm = /** @class */ (function () {
397
397
  // Update the values
398
398
  values = __assign(__assign({}, values), form.getValues());
399
399
  // See if the form is not valid
400
- if (!form.isValid()) {
400
+ var tabIsValid = form.isValid();
401
+ if (!tabIsValid) {
401
402
  // Set the flag
402
403
  isValid = false;
403
404
  }
@@ -410,7 +411,7 @@ var ItemForm = /** @class */ (function () {
410
411
  tab.classList.remove("is-valid");
411
412
  tab.classList.remove("is-invalid");
412
413
  // Set the class name
413
- tab.classList.add(isValid ? "is-valid" : "is-invalid");
414
+ tab.classList.add(tabIsValid ? "is-valid" : "is-invalid");
414
415
  }
415
416
  }
416
417
  // Set the tab class