dattatable 2.9.38 → 2.9.39

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 (56) hide show
  1. package/build/common/installRequired.d.ts +1 -0
  2. package/build/common/installRequired.js +10 -5
  3. package/dist/dattatable.js +707 -707
  4. package/dist/dattatable.min.js +1 -1
  5. package/docs/assets/search.js +1 -1
  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 +3 -2
  16. package/docs/classes/ItemForm.html +4 -4
  17. package/docs/classes/List.html +4 -4
  18. package/docs/classes/ListSecurity.html +2 -2
  19. package/docs/classes/LoadingDialog.html +2 -2
  20. package/docs/classes/Modal.html +2 -2
  21. package/docs/classes/Navigation.html +3 -3
  22. package/docs/classes/Timeout.html +2 -2
  23. package/docs/enums/ActionButtonTypes.html +2 -2
  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/getContextInfo.html +1 -1
  28. package/docs/functions/getFileExt.html +1 -1
  29. package/docs/functions/waitForTheme.html +1 -1
  30. package/docs/interfaces/IAuditLogItem.html +2 -2
  31. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  32. package/docs/interfaces/IAuditLogProps.html +2 -2
  33. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  34. package/docs/interfaces/ICommentsItem.html +2 -2
  35. package/docs/interfaces/IDashboardProps.html +2 -2
  36. package/docs/interfaces/IDataTable.html +2 -2
  37. package/docs/interfaces/IDataTableProps.html +2 -2
  38. package/docs/interfaces/IDocumentsProps.html +2 -2
  39. package/docs/interfaces/IFilterItem.html +2 -2
  40. package/docs/interfaces/IFilterProps.html +2 -2
  41. package/docs/interfaces/IFooterProps.html +2 -2
  42. package/docs/interfaces/IHeaderProps.html +2 -2
  43. package/docs/interfaces/IInstallProps.html +2 -2
  44. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  45. package/docs/interfaces/IItemFormEditProps.html +2 -2
  46. package/docs/interfaces/IItemFormTab.html +2 -2
  47. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  48. package/docs/interfaces/IItemFormViewProps.html +2 -2
  49. package/docs/interfaces/IListProps.html +2 -2
  50. package/docs/interfaces/IListSecurity.html +2 -2
  51. package/docs/interfaces/IListSecurityItem.html +2 -2
  52. package/docs/interfaces/IShowDialogProps.html +2 -2
  53. package/docs/variables/DattaTable.html +1 -1
  54. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  55. package/package.json +2 -2
  56. package/pnpm-lock.yaml +16 -16
@@ -19,6 +19,7 @@ export interface IShowDialogProps {
19
19
  export declare class InstallationRequired {
20
20
  private static _cfg;
21
21
  private static _report;
22
+ private static _webUrl;
22
23
  private static _customActionsExist;
23
24
  static get CustomActionsExist(): boolean;
24
25
  private static checkCustomActions;
@@ -32,7 +32,7 @@ var InstallationRequired = /** @class */ (function () {
32
32
  return;
33
33
  }
34
34
  // Load the web custom actions
35
- var web = (0, gd_sprest_bs_1.Web)();
35
+ var web = (0, gd_sprest_bs_1.Web)(_this._webUrl);
36
36
  web.UserCustomActions().execute(function (webCustomActions) {
37
37
  // Parse the web custom actions
38
38
  for (var i = 0; i < cfg._configuration.CustomActionCfg.Web.length; i++) {
@@ -69,7 +69,7 @@ var InstallationRequired = /** @class */ (function () {
69
69
  return;
70
70
  }
71
71
  // Load the site custom actions
72
- (0, gd_sprest_bs_1.Site)().UserCustomActions().execute(function (siteCustomActions) {
72
+ (0, gd_sprest_bs_1.Site)(_this._webUrl).UserCustomActions().execute(function (siteCustomActions) {
73
73
  // Parse the site custom actions
74
74
  for (var i = 0; i < cfg._configuration.CustomActionCfg.Site.length; i++) {
75
75
  var customAction = cfg._configuration.CustomActionCfg.Site[i];
@@ -130,7 +130,7 @@ var InstallationRequired = /** @class */ (function () {
130
130
  // Return a promise
131
131
  return new Promise(function (resolve) {
132
132
  // Get the list
133
- (0, gd_sprest_bs_1.Web)().Lists(listCfg.ListInformation.Title).query({
133
+ (0, gd_sprest_bs_1.Web)(_this._webUrl).Lists(listCfg.ListInformation.Title).query({
134
134
  Expand: ["Fields"]
135
135
  }).execute(
136
136
  // Success
@@ -175,14 +175,15 @@ var InstallationRequired = /** @class */ (function () {
175
175
  };
176
176
  // Determines if the user is an owner or admin
177
177
  InstallationRequired.checkUserPermissions = function () {
178
+ var _this = this;
178
179
  // Return a promise
179
180
  return new Promise(function (resolve) {
180
181
  // Get the current user information
181
- (0, gd_sprest_bs_1.Web)().CurrentUser().execute(
182
+ (0, gd_sprest_bs_1.Web)(_this._webUrl).CurrentUser().execute(
182
183
  // Success
183
184
  function (user) {
184
185
  // Get the current user permissions
185
- (0, gd_sprest_bs_1.Web)().getUserEffectivePermissions(user.LoginName).execute(
186
+ (0, gd_sprest_bs_1.Web)(_this._webUrl).getUserEffectivePermissions(user.LoginName).execute(
186
187
  // Success
187
188
  function (permissions) {
188
189
  // See if the user has manage web rights
@@ -317,6 +318,9 @@ var InstallationRequired = /** @class */ (function () {
317
318
  gd_sprest_bs_1.Helper.Executor(cfgs, function (cfg) {
318
319
  // Return a promise
319
320
  return new Promise(function (resolve) {
321
+ // Set the web url
322
+ _this._webUrl = cfg.getWebUrl();
323
+ // Add the components
320
324
  cfg.install().then(function () {
321
325
  // Hide the button
322
326
  btnInstall.hide();
@@ -370,6 +374,7 @@ var InstallationRequired = /** @class */ (function () {
370
374
  };
371
375
  InstallationRequired._cfg = null;
372
376
  InstallationRequired._report = null;
377
+ InstallationRequired._webUrl = null;
373
378
  // Custom Actions exists
374
379
  InstallationRequired._customActionsExist = null;
375
380
  // Lists exists