dattatable 1.6.0 → 1.6.1
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/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
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;
|