dattatable 2.11.15 → 2.11.17
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/itemForm.d.ts +7 -4
- package/build/common/itemForm.js +1 -1
- package/build/common/listSecurity.d.ts +1 -0
- package/build/common/listSecurity.js +12 -0
- package/dist/dattatable.js +593 -593
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Accordion.html +2 -2
- 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 +2 -2
- package/docs/classes/ItemForm.html +4 -4
- package/docs/classes/List.html +4 -4
- package/docs/classes/ListConfig.html +2 -2
- package/docs/classes/ListSecurity.html +4 -3
- package/docs/classes/LoadingDialog.html +2 -2
- package/docs/classes/Modal.html +2 -2
- package/docs/classes/Navigation.html +3 -3
- package/docs/classes/Tiles.html +2 -2
- 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/IAccordion.html +2 -2
- package/docs/interfaces/IAccordionProps.html +2 -2
- package/docs/interfaces/IAuditLogItem.html +13 -13
- 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/ICreateLookupData.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/IGenerateLookupDataProps.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/IItemFormSaveProps.html +5 -0
- package/docs/interfaces/IItemFormTab.html +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListConfig.html +2 -2
- package/docs/interfaces/IListConfigProps.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/ILookupData.html +2 -2
- package/docs/interfaces/IShowDialogProps.html +2 -2
- package/docs/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/interfaces/IValidateLookupsProps.html +2 -2
- package/docs/modules.html +1 -0
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
|
@@ -58,6 +58,12 @@ export interface IItemFormEditProps {
|
|
|
58
58
|
useModal?: boolean;
|
|
59
59
|
webUrl?: string;
|
|
60
60
|
}
|
|
61
|
+
/** Save Item Properties */
|
|
62
|
+
export interface IItemFormSaveProps {
|
|
63
|
+
bypassValidation?: boolean;
|
|
64
|
+
checkItemVersion?: boolean;
|
|
65
|
+
form?: Components.IListFormEdit;
|
|
66
|
+
}
|
|
61
67
|
/** View Item Properties */
|
|
62
68
|
export interface IItemFormViewProps {
|
|
63
69
|
elForm?: HTMLElement;
|
|
@@ -132,9 +138,6 @@ export declare class ItemForm {
|
|
|
132
138
|
private static renderFormFooter;
|
|
133
139
|
private static renderForm;
|
|
134
140
|
private static renderTabs;
|
|
135
|
-
static save(props?:
|
|
136
|
-
form?: Components.IListFormEdit;
|
|
137
|
-
bypassValidation?: boolean;
|
|
138
|
-
}): PromiseLike<any>;
|
|
141
|
+
static save(props?: IItemFormSaveProps): PromiseLike<any>;
|
|
139
142
|
private static validate;
|
|
140
143
|
}
|
package/build/common/itemForm.js
CHANGED
|
@@ -540,7 +540,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
540
540
|
// onSave event wants to cancel the save and do something custom
|
|
541
541
|
if (values) {
|
|
542
542
|
// Save the item
|
|
543
|
-
defaultForm.save(values).then(function (item) {
|
|
543
|
+
defaultForm.save(values, props.checkItemVersion).then(function (item) {
|
|
544
544
|
// Call the update event
|
|
545
545
|
_this._updateEvent ? _this._updateEvent(item) : null;
|
|
546
546
|
// Close the dialogs
|
|
@@ -38,6 +38,7 @@ export declare class ListSecurity {
|
|
|
38
38
|
private addUser;
|
|
39
39
|
private removeUser;
|
|
40
40
|
constructor(props: IListSecurity);
|
|
41
|
+
addGroup(groupName: string): PromiseLike<Types.SP.GroupOData>;
|
|
41
42
|
addToGroup(userId: number, groupName: string): PromiseLike<void>;
|
|
42
43
|
checkUserPermissions(): PromiseLike<boolean>;
|
|
43
44
|
private configureList;
|
|
@@ -84,6 +84,18 @@ var ListSecurity = /** @class */ (function () {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
+
// Method to manually add a security group to this component
|
|
88
|
+
ListSecurity.prototype.addGroup = function (groupName) {
|
|
89
|
+
var _this = this;
|
|
90
|
+
// Return a promise
|
|
91
|
+
return new Promise(function (resolve) {
|
|
92
|
+
// Add the group
|
|
93
|
+
_this.getGroupId(groupName).then(function () {
|
|
94
|
+
// Resolve the request
|
|
95
|
+
resolve(_this.getGroup(groupName));
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
87
99
|
// Method to check if the user is w/in a group and add them otherwise
|
|
88
100
|
ListSecurity.prototype.addToGroup = function (userId, groupName) {
|
|
89
101
|
var _this = this;
|