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.
- package/build/common/installRequired.d.ts +1 -0
- package/build/common/installRequired.js +10 -5
- package/dist/dattatable.js +707 -707
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AuditLog.html +2 -2
- package/docs/classes/CanvasForm.html +2 -2
- package/docs/classes/Comments.html +2 -2
- package/docs/classes/Dashboard.html +4 -4
- package/docs/classes/DataTable.html +3 -3
- package/docs/classes/Documents.html +6 -6
- package/docs/classes/FilterSlideout.html +2 -2
- package/docs/classes/Footer.html +2 -2
- package/docs/classes/Header.html +2 -2
- package/docs/classes/InstallationRequired.html +3 -2
- package/docs/classes/ItemForm.html +4 -4
- package/docs/classes/List.html +4 -4
- package/docs/classes/ListSecurity.html +2 -2
- package/docs/classes/LoadingDialog.html +2 -2
- package/docs/classes/Modal.html +2 -2
- package/docs/classes/Navigation.html +3 -3
- package/docs/classes/Timeout.html +2 -2
- package/docs/enums/ActionButtonTypes.html +2 -2
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getContextInfo.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -1
- package/docs/interfaces/IAuditLogItem.html +2 -2
- package/docs/interfaces/IAuditLogItemCreation.html +2 -2
- package/docs/interfaces/IAuditLogProps.html +2 -2
- package/docs/interfaces/IAuditLogViewProps.html +2 -2
- package/docs/interfaces/ICommentsItem.html +2 -2
- package/docs/interfaces/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +2 -2
- package/docs/interfaces/IDataTableProps.html +2 -2
- package/docs/interfaces/IDocumentsProps.html +2 -2
- package/docs/interfaces/IFilterItem.html +2 -2
- package/docs/interfaces/IFilterProps.html +2 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IHeaderProps.html +2 -2
- package/docs/interfaces/IInstallProps.html +2 -2
- package/docs/interfaces/IItemFormCreateProps.html +2 -2
- package/docs/interfaces/IItemFormEditProps.html +2 -2
- package/docs/interfaces/IItemFormTab.html +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListProps.html +2 -2
- package/docs/interfaces/IListSecurity.html +2 -2
- package/docs/interfaces/IListSecurityItem.html +2 -2
- package/docs/interfaces/IShowDialogProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
- 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
|