dattatable 1.9.0 → 1.9.3

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 (38) hide show
  1. package/build/common/installRequired.d.ts +1 -0
  2. package/build/common/installRequired.js +14 -0
  3. package/build/dashboard/navigation.js +1 -1
  4. package/dist/dattatable.js +424 -424
  5. package/dist/dattatable.min.js +1 -1
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/CanvasForm.html +1 -1
  8. package/docs/classes/Comments.html +1 -1
  9. package/docs/classes/Dashboard.html +2 -2
  10. package/docs/classes/DataTable.html +2 -2
  11. package/docs/classes/Documents.html +5 -5
  12. package/docs/classes/FilterSlideout.html +1 -1
  13. package/docs/classes/Footer.html +1 -1
  14. package/docs/classes/Header.html +1 -1
  15. package/docs/classes/InstallationRequired.html +1 -1
  16. package/docs/classes/ItemForm.html +3 -3
  17. package/docs/classes/LoadingDialog.html +1 -1
  18. package/docs/classes/Modal.html +1 -1
  19. package/docs/classes/Navigation.html +1 -1
  20. package/docs/enums/ActionButtonTypes.html +1 -1
  21. package/docs/interfaces/ICommentsItem.html +1 -1
  22. package/docs/interfaces/IDashboardProps.html +1 -1
  23. package/docs/interfaces/IDataTable.html +1 -1
  24. package/docs/interfaces/IDataTableProps.html +1 -1
  25. package/docs/interfaces/IDocumentsProps.html +1 -1
  26. package/docs/interfaces/IFilterItem.html +1 -1
  27. package/docs/interfaces/IFilterProps.html +1 -1
  28. package/docs/interfaces/IFooterProps.html +1 -1
  29. package/docs/interfaces/IHeaderProps.html +1 -1
  30. package/docs/interfaces/IItemFormCreateProps.html +1 -1
  31. package/docs/interfaces/IItemFormEditProps.html +1 -1
  32. package/docs/interfaces/IItemFormTab.html +1 -1
  33. package/docs/interfaces/IItemFormTabInfo.html +1 -1
  34. package/docs/interfaces/IItemFormViewProps.html +1 -1
  35. package/docs/interfaces/IShowDialogProps.html +1 -1
  36. package/docs/modules.html +1 -1
  37. package/package.json +2 -2
  38. package/pnpm-lock.yaml +10 -10
@@ -20,4 +20,5 @@ export declare class InstallationRequired {
20
20
  private static checkLists;
21
21
  static requiresInstall(cfg: Helper.ISPConfig): PromiseLike<boolean>;
22
22
  static showDialog(props?: IShowDialogProps): void;
23
+ private static showErrorDialog;
23
24
  }
@@ -199,6 +199,12 @@ var InstallationRequired = /** @class */ (function () {
199
199
  if (props === void 0) { props = {}; }
200
200
  // Clear the modal
201
201
  modal_1.Modal.clear();
202
+ // Ensure the configuration exists
203
+ if (this._cfg == null || this._report == null) {
204
+ // Show the error dialog
205
+ this.showErrorDialog();
206
+ return;
207
+ }
202
208
  // Set the header
203
209
  modal_1.Modal.setHeader("Installation Required");
204
210
  // Set the body
@@ -274,6 +280,14 @@ var InstallationRequired = /** @class */ (function () {
274
280
  // Show the modal
275
281
  modal_1.Modal.show();
276
282
  };
283
+ InstallationRequired.showErrorDialog = function () {
284
+ // Set the header
285
+ modal_1.Modal.setHeader("Not Configured");
286
+ // Set the body
287
+ modal_1.Modal.setBody("The component has not been configured. The SPConfiguration definition hasn't been initialized.");
288
+ // Show the dialog
289
+ modal_1.Modal.show();
290
+ };
277
291
  InstallationRequired._cfg = null;
278
292
  InstallationRequired._report = null;
279
293
  // Custom Actions exists
@@ -57,7 +57,7 @@ var Navigation = /** @class */ (function () {
57
57
  },
58
58
  });
59
59
  // Call the event
60
- this._props.onShowFilter ? ttp.el.addEventListener("click", this._props.onShowFilter) : null;
60
+ this._props.onShowFilter && ttp ? ttp.el.addEventListener("click", this._props.onShowFilter) : null;
61
61
  this._props.onFilterRendered ? this._props.onFilterRendered(span) : null;
62
62
  }
63
63
  // Call the event