dattatable 2.9.92 → 2.9.94
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/listSecurity.d.ts +1 -1
- package/build/common/listSecurity.js +5 -2
- package/build/dashboard/accordion.d.ts +3 -3
- package/build/dashboard/index.d.ts +7 -7
- package/build/dashboard/tiles.d.ts +4 -4
- package/dist/dattatable.js +4562 -1868
- package/dist/dattatable.min.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/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/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 +14 -14
- 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/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
|
@@ -31,7 +31,7 @@ export declare class ListSecurity {
|
|
|
31
31
|
private _currentUser;
|
|
32
32
|
get CurrentUser(): Types.SP.User;
|
|
33
33
|
private _groups;
|
|
34
|
-
getGroup(groupName: string): Types.SP.
|
|
34
|
+
getGroup(groupName: string): Types.SP.GroupOData;
|
|
35
35
|
private setGroup;
|
|
36
36
|
private _groupUsers;
|
|
37
37
|
getGroupUsers(groupName: string): Types.SP.User[];
|
|
@@ -232,10 +232,13 @@ var ListSecurity = /** @class */ (function () {
|
|
|
232
232
|
(0, gd_sprest_bs_1.Web)(_this._props.webUrl, { requestDigest: _this._requestDigest }).SiteGroups().add(props).execute(
|
|
233
233
|
// Successfully created the group
|
|
234
234
|
function (group) {
|
|
235
|
-
// Set the group id
|
|
236
|
-
_this.setGroup(groupInfo.Title.toLowerCase(), group);
|
|
237
235
|
// Call the event
|
|
238
236
|
_this._props.onGroupCreated ? _this._props.onGroupCreated(group) : null;
|
|
237
|
+
// Expand the users
|
|
238
|
+
(0, gd_sprest_bs_1.Web)(_this._props.webUrl, { requestDigest: _this._requestDigest }).SiteGroups(group.Id).query({ Expand: ["Users"] }).execute(function (group) {
|
|
239
|
+
// Set the group id
|
|
240
|
+
_this.setGroup(groupInfo.Title.toLowerCase(), group);
|
|
241
|
+
});
|
|
239
242
|
// Check the next group
|
|
240
243
|
resolve(group);
|
|
241
244
|
},
|
|
@@ -4,10 +4,10 @@ export interface IAccordion {
|
|
|
4
4
|
search?: (value: string) => void;
|
|
5
5
|
}
|
|
6
6
|
export interface IAccordionProps {
|
|
7
|
-
bodyFields?: [
|
|
7
|
+
bodyFields?: string[];
|
|
8
8
|
bodyTemplate?: string;
|
|
9
9
|
el: HTMLElement;
|
|
10
|
-
filterFields?: [
|
|
10
|
+
filterFields?: string[];
|
|
11
11
|
items: any[];
|
|
12
12
|
onItemBodyRender?: (el?: HTMLElement, item?: any) => void;
|
|
13
13
|
onItemClick?: (el?: HTMLElement, item?: any) => void;
|
|
@@ -16,7 +16,7 @@ export interface IAccordionProps {
|
|
|
16
16
|
onPaginationRender?: (el?: HTMLElement) => void;
|
|
17
17
|
paginationLimit?: number;
|
|
18
18
|
showPagination?: boolean;
|
|
19
|
-
titleFields?: [
|
|
19
|
+
titleFields?: string[];
|
|
20
20
|
titleTemplate?: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -11,9 +11,9 @@ export * from "./table";
|
|
|
11
11
|
export * from "./tiles";
|
|
12
12
|
export interface IDashboardProps {
|
|
13
13
|
accordion?: {
|
|
14
|
-
bodyFields?: [
|
|
14
|
+
bodyFields?: string[];
|
|
15
15
|
bodyTemplate?: string;
|
|
16
|
-
filterFields?: [
|
|
16
|
+
filterFields?: string[];
|
|
17
17
|
items: any[];
|
|
18
18
|
onItemBodyRender?: (el?: HTMLElement, item?: any) => void;
|
|
19
19
|
onItemClick?: (el?: HTMLElement, item?: any) => void;
|
|
@@ -22,7 +22,7 @@ export interface IDashboardProps {
|
|
|
22
22
|
onPaginationRender?: (el?: HTMLElement) => void;
|
|
23
23
|
paginationLimit?: number;
|
|
24
24
|
showPagination?: boolean;
|
|
25
|
-
titleFields?: [
|
|
25
|
+
titleFields?: string[];
|
|
26
26
|
titleTemplate?: string;
|
|
27
27
|
};
|
|
28
28
|
el: HTMLElement;
|
|
@@ -78,10 +78,10 @@ export interface IDashboardProps {
|
|
|
78
78
|
rows?: any[];
|
|
79
79
|
};
|
|
80
80
|
tiles?: {
|
|
81
|
-
bodyFields?: [
|
|
81
|
+
bodyFields?: string[];
|
|
82
82
|
bodyTemplate?: string;
|
|
83
83
|
colSize?: number;
|
|
84
|
-
filterFields?: [
|
|
84
|
+
filterFields?: string[];
|
|
85
85
|
items: any[];
|
|
86
86
|
onBodyRendered?: (el?: HTMLElement, item?: any) => void;
|
|
87
87
|
onCardRendered?: (el?: HTMLElement, item?: any) => void;
|
|
@@ -95,9 +95,9 @@ export interface IDashboardProps {
|
|
|
95
95
|
showFooter?: boolean;
|
|
96
96
|
showHeader?: boolean;
|
|
97
97
|
showPagination?: boolean;
|
|
98
|
-
subTitleFields?: [
|
|
98
|
+
subTitleFields?: string[];
|
|
99
99
|
subTitleTemplate?: string;
|
|
100
|
-
titleFields?: [
|
|
100
|
+
titleFields?: string[];
|
|
101
101
|
titleTemplate?: string;
|
|
102
102
|
};
|
|
103
103
|
onRendered?: (el?: HTMLElement) => void;
|
|
@@ -4,11 +4,11 @@ export interface ITiles {
|
|
|
4
4
|
search?: (value: string) => void;
|
|
5
5
|
}
|
|
6
6
|
export interface ITilesProps {
|
|
7
|
-
bodyFields?: [
|
|
7
|
+
bodyFields?: string[];
|
|
8
8
|
bodyTemplate?: string;
|
|
9
9
|
colSize?: number;
|
|
10
10
|
el: HTMLElement;
|
|
11
|
-
filterFields?: [
|
|
11
|
+
filterFields?: string[];
|
|
12
12
|
items: any[];
|
|
13
13
|
onBodyRendered?: (el?: HTMLElement, item?: any) => void;
|
|
14
14
|
onCardRendered?: (el?: HTMLElement, item?: any) => void;
|
|
@@ -22,9 +22,9 @@ export interface ITilesProps {
|
|
|
22
22
|
showFooter?: boolean;
|
|
23
23
|
showHeader?: boolean;
|
|
24
24
|
showPagination?: boolean;
|
|
25
|
-
subTitleFields?: [
|
|
25
|
+
subTitleFields?: string[];
|
|
26
26
|
subTitleTemplate?: string;
|
|
27
|
-
titleFields?: [
|
|
27
|
+
titleFields?: string[];
|
|
28
28
|
titleTemplate?: string;
|
|
29
29
|
}
|
|
30
30
|
/**
|