dattatable 1.5.9 → 1.6.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.
- package/build/dashboard/footer.js +0 -1
- package/build/dashboard/navigation.js +0 -1
- package/build/documents.d.ts +1 -0
- package/build/documents.js +6 -6
- package/build/itemForm.d.ts +3 -0
- package/build/itemForm.js +6 -5
- package/dist/dattatable.js +171 -171
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CanvasForm.html +1 -1
- package/docs/classes/Dashboard.html +2 -2
- package/docs/classes/DataTable.html +2 -2
- package/docs/classes/Documents.html +5 -5
- package/docs/classes/FilterSlideout.html +1 -1
- package/docs/classes/Footer.html +1 -1
- package/docs/classes/Header.html +1 -1
- package/docs/classes/InstallationRequired.html +1 -1
- package/docs/classes/ItemForm.html +3 -3
- package/docs/classes/LoadingDialog.html +1 -1
- package/docs/classes/Modal.html +1 -1
- package/docs/classes/Navigation.html +1 -1
- package/docs/enums/ActionButtonTypes.html +1 -1
- package/docs/interfaces/IDashboardProps.html +1 -1
- package/docs/interfaces/IDataTable.html +1 -1
- package/docs/interfaces/IDataTableProps.html +1 -1
- package/docs/interfaces/IDocumentsProps.html +1 -1
- package/docs/interfaces/IFilterItem.html +1 -1
- package/docs/interfaces/IFilterProps.html +1 -1
- package/docs/interfaces/IFooterProps.html +1 -1
- package/docs/interfaces/IHeaderProps.html +1 -1
- package/docs/interfaces/IItemFormCreateProps.html +1 -1
- package/docs/interfaces/IItemFormEditProps.html +1 -1
- package/docs/interfaces/IItemFormViewProps.html +1 -1
- package/docs/interfaces/IShowDialogProps.html +1 -1
- package/docs/modules.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +4 -4
|
@@ -23,7 +23,6 @@ var Navigation = /** @class */ (function () {
|
|
|
23
23
|
var props = {
|
|
24
24
|
el: this._props.el,
|
|
25
25
|
brand: this._props.title,
|
|
26
|
-
className: "navbar-expand",
|
|
27
26
|
enableSearch: this._props.hideSearch != null ? !this._props.hideSearch : null,
|
|
28
27
|
items: this._props.items,
|
|
29
28
|
itemsEnd: this._props.itemsEnd,
|
package/build/documents.d.ts
CHANGED
package/build/documents.js
CHANGED
|
@@ -204,9 +204,9 @@ var Documents = /** @class */ (function () {
|
|
|
204
204
|
// Return a promise
|
|
205
205
|
return new Promise(function (resolve) {
|
|
206
206
|
// Get the file contents
|
|
207
|
-
(0, gd_sprest_bs_1.Web)().getFileByServerRelativeUrl(file.ServerRelativeUrl).content().execute(function (data) {
|
|
207
|
+
(0, gd_sprest_bs_1.Web)(_this._props.webUrl).getFileByServerRelativeUrl(file.ServerRelativeUrl).content().execute(function (data) {
|
|
208
208
|
// Copy the file
|
|
209
|
-
(0, gd_sprest_bs_1.Web)().getFolderByServerRelativeUrl(_this._rootFolder.ServerRelativeUrl).Files().add(file.Name, true, data).execute(resolve, resolve);
|
|
209
|
+
(0, gd_sprest_bs_1.Web)(_this._props.webUrl).getFolderByServerRelativeUrl(_this._rootFolder.ServerRelativeUrl).Files().add(file.Name, true, data).execute(resolve, resolve);
|
|
210
210
|
});
|
|
211
211
|
});
|
|
212
212
|
}).then(function () {
|
|
@@ -221,7 +221,7 @@ var Documents = /** @class */ (function () {
|
|
|
221
221
|
var file_1 = item.data;
|
|
222
222
|
file_1.content().execute(function (data) {
|
|
223
223
|
// Copy the file
|
|
224
|
-
(0, gd_sprest_bs_1.Web)().getFolderByServerRelativeUrl(_this._rootFolder.ServerRelativeUrl).Files().add(file_1.Name, true, data).execute(function () {
|
|
224
|
+
(0, gd_sprest_bs_1.Web)(_this._props.webUrl).getFolderByServerRelativeUrl(_this._rootFolder.ServerRelativeUrl).Files().add(file_1.Name, true, data).execute(function () {
|
|
225
225
|
// Close the dialog
|
|
226
226
|
loadingDialog_1.LoadingDialog.hide();
|
|
227
227
|
// Refresh the page
|
|
@@ -504,7 +504,7 @@ var Documents = /** @class */ (function () {
|
|
|
504
504
|
var _this = this;
|
|
505
505
|
// Return a promise
|
|
506
506
|
return new Promise(function (resolve, reject) {
|
|
507
|
-
var web = (0, gd_sprest_bs_1.Web)();
|
|
507
|
+
var web = (0, gd_sprest_bs_1.Web)(_this._props.webUrl);
|
|
508
508
|
// Clear the properties
|
|
509
509
|
_this._rootFolder = null;
|
|
510
510
|
_this._templateFolders = null;
|
|
@@ -623,7 +623,7 @@ var Documents = /** @class */ (function () {
|
|
|
623
623
|
loadingDialog_1.LoadingDialog.setBody("Deleting Document: " + _this.getFileName(file) + ". This will close afterwards.");
|
|
624
624
|
loadingDialog_1.LoadingDialog.show();
|
|
625
625
|
// Delete the document
|
|
626
|
-
(0, gd_sprest_bs_1.Web)().getFileByServerRelativeUrl(file.ServerRelativeUrl).delete().execute(
|
|
626
|
+
(0, gd_sprest_bs_1.Web)(_this._props.webUrl).getFileByServerRelativeUrl(file.ServerRelativeUrl).delete().execute(
|
|
627
627
|
// Success
|
|
628
628
|
function () {
|
|
629
629
|
// close dialog
|
|
@@ -1096,7 +1096,7 @@ var Documents = /** @class */ (function () {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
else {
|
|
1098
1098
|
// Upload the file to the objective folder
|
|
1099
|
-
(0, gd_sprest_bs_1.Web)().getFolderByServerRelativeUrl(_this._rootFolder.ServerRelativeUrl).Files().add(fileInfo.name, true, fileInfo.data).execute(resolve, reject);
|
|
1099
|
+
(0, gd_sprest_bs_1.Web)(_this._props.webUrl).getFolderByServerRelativeUrl(_this._rootFolder.ServerRelativeUrl).Files().add(fileInfo.name, true, fileInfo.data).execute(resolve, reject);
|
|
1100
1100
|
}
|
|
1101
1101
|
});
|
|
1102
1102
|
};
|
package/build/itemForm.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface IItemFormCreateProps {
|
|
|
10
10
|
onUpdate?: (item?: any) => void;
|
|
11
11
|
onValidation?: (values?: any) => boolean | PromiseLike<boolean>;
|
|
12
12
|
useModal?: boolean;
|
|
13
|
+
webUrl?: string;
|
|
13
14
|
}
|
|
14
15
|
/** Edit Item Properties */
|
|
15
16
|
export interface IItemFormEditProps {
|
|
@@ -23,6 +24,7 @@ export interface IItemFormEditProps {
|
|
|
23
24
|
onUpdate?: (item?: any) => void;
|
|
24
25
|
onValidation?: (values?: any) => boolean | PromiseLike<boolean>;
|
|
25
26
|
useModal?: boolean;
|
|
27
|
+
webUrl?: string;
|
|
26
28
|
}
|
|
27
29
|
/** View Item Properties */
|
|
28
30
|
export interface IItemFormViewProps {
|
|
@@ -33,6 +35,7 @@ export interface IItemFormViewProps {
|
|
|
33
35
|
onSetFooter?: (el: HTMLElement) => void;
|
|
34
36
|
onSetHeader?: (el: HTMLElement) => void;
|
|
35
37
|
useModal?: boolean;
|
|
38
|
+
webUrl?: string;
|
|
36
39
|
}
|
|
37
40
|
/**
|
|
38
41
|
* Item Form
|
package/build/itemForm.js
CHANGED
|
@@ -80,7 +80,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
80
80
|
this._updateEvent = props.onUpdate;
|
|
81
81
|
typeof (props.useModal) === "boolean" ? this._useModal = props.useModal : false;
|
|
82
82
|
// Load the item
|
|
83
|
-
this.load();
|
|
83
|
+
this.load(props.webUrl);
|
|
84
84
|
};
|
|
85
85
|
// Edits a task
|
|
86
86
|
ItemForm.edit = function (props) {
|
|
@@ -96,7 +96,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
96
96
|
this._updateEvent = props.onUpdate;
|
|
97
97
|
typeof (props.useModal) === "boolean" ? this._useModal = props.useModal : false;
|
|
98
98
|
// Load the form
|
|
99
|
-
this.load(props.itemId);
|
|
99
|
+
this.load(props.webUrl, props.itemId);
|
|
100
100
|
};
|
|
101
101
|
// Views the task
|
|
102
102
|
ItemForm.view = function (props) {
|
|
@@ -109,11 +109,11 @@ var ItemForm = /** @class */ (function () {
|
|
|
109
109
|
this._onSetHeader = props.onSetHeader;
|
|
110
110
|
typeof (props.useModal) === "boolean" ? this._useModal = props.useModal : false;
|
|
111
111
|
// Load the form
|
|
112
|
-
this.load(props.itemId);
|
|
112
|
+
this.load(props.webUrl, props.itemId);
|
|
113
113
|
};
|
|
114
114
|
/** private static Methods */
|
|
115
115
|
// Load the form information
|
|
116
|
-
ItemForm.load = function (itemId) {
|
|
116
|
+
ItemForm.load = function (webUrl, itemId) {
|
|
117
117
|
var _this = this;
|
|
118
118
|
// Clear the forms
|
|
119
119
|
this._displayForm = null;
|
|
@@ -125,7 +125,8 @@ var ItemForm = /** @class */ (function () {
|
|
|
125
125
|
// Set the list form properties
|
|
126
126
|
var listProps = {
|
|
127
127
|
listName: this.ListName,
|
|
128
|
-
itemId: itemId
|
|
128
|
+
itemId: itemId,
|
|
129
|
+
webUrl: webUrl
|
|
129
130
|
};
|
|
130
131
|
// Call the event
|
|
131
132
|
listProps = this._onGetListInfo ? this._onGetListInfo(listProps) : listProps;
|