@gooddata/sdk-ui-kit 11.54.0-alpha.4 → 11.54.0-alpha.5
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.
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type AccessGranteeDetail, type IAvailableUserAccessGrantee, type IAvailableUserGroupAccessGrantee, type IGranularUserAccess, type IGranularUserGroupAccess, type IUserAccess, type IUserGroupAccess, type IWorkspaceUser, type IWorkspaceUserGroup } from "@gooddata/sdk-model";
|
|
2
|
+
import { type GranteeItem, type IGranteeGroup, type IGranteeGroupAll, type IGranteeRules, type IGranteeUser, type IGranularGranteeGroup, type IGranularGranteeUser } from "./types.js";
|
|
3
|
+
export declare const user: IGranteeUser;
|
|
4
|
+
export declare const owner: IGranteeUser;
|
|
5
|
+
export declare const current: IGranteeUser;
|
|
6
|
+
export declare const group: IGranteeGroup;
|
|
7
|
+
export declare const groupAll: IGranteeGroupAll;
|
|
8
|
+
export declare const grantees: GranteeItem[];
|
|
9
|
+
export declare const workspaceUser: IWorkspaceUser;
|
|
10
|
+
export declare const defaultUser: IWorkspaceUser;
|
|
11
|
+
export declare const userAccessGrantee: IUserAccess;
|
|
12
|
+
export declare const availableUserAccessGrantee: IAvailableUserAccessGrantee;
|
|
13
|
+
export declare const workspaceGroup: IWorkspaceUserGroup;
|
|
14
|
+
export declare const groupAccessGrantee: IUserGroupAccess;
|
|
15
|
+
export declare const availableUserGroupAccessGrantee: IAvailableUserGroupAccessGrantee;
|
|
16
|
+
export declare const granularUser: IGranularGranteeUser;
|
|
17
|
+
export declare const granularGroup: IGranularGranteeGroup;
|
|
18
|
+
export declare const granularRule: IGranteeRules;
|
|
19
|
+
export declare const granularGrantees: GranteeItem[];
|
|
20
|
+
export declare const granularGranteeUser: IGranularGranteeUser;
|
|
21
|
+
export declare const granularGranteeUser2: IGranularGranteeUser;
|
|
22
|
+
export declare const granularGranteeGroup: IGranularGranteeGroup;
|
|
23
|
+
export declare const granularGranteeItems: (IGranularGranteeGroup | IGranularGranteeUser)[];
|
|
24
|
+
export declare const granularUserAccess: IGranularUserAccess;
|
|
25
|
+
export declare const granularUserAccessNoInheritPermission: IGranularUserAccess;
|
|
26
|
+
export declare const granularUserGroupAccess: IGranularUserGroupAccess;
|
|
27
|
+
export declare const granularGranteesAccess: AccessGranteeDetail[];
|
|
28
|
+
//# sourceMappingURL=GranteeMock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GranteeMock.d.ts","sourceRoot":"","sources":["../../../../src/Dialog/ShareDialog/ShareDialogBase/GranteeMock.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,gCAAgC,EACrC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAE3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAC5B,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,IAAI,EAAE,YAQlB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,YAQnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,YAQrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,aAKnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,gBAItB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,WAAW,EAAkB,CAAC;AASrD,eAAO,MAAM,aAAa,EAAE,cAI3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAAiE,CAAC;AAE5F,eAAO,MAAM,iBAAiB,EAAE,WAG/B,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,2BAIxC,CAAC;AAQF,eAAO,MAAM,cAAc,EAAE,mBAE5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,gBAGhC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,gCAG7C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,oBAK1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,qBAK3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,aAO1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,WAAW,EAAkC,CAAC;AAE7E,eAAO,MAAM,mBAAmB,EAAE,oBAUjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,oBAUlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,qBAMlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,kDAA8C,CAAC;AAEhF,eAAO,MAAM,kBAAkB,EAAE,mBAKhC,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,mBAKnD,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,wBAKrC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,mBAAmB,EAAkD,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// (C) 2021-2026 GoodData Corporation
|
|
2
|
+
import { uriRef, } from "@gooddata/sdk-model";
|
|
3
|
+
export const user = {
|
|
4
|
+
type: "user",
|
|
5
|
+
id: uriRef("userID1"),
|
|
6
|
+
name: "User Name",
|
|
7
|
+
email: "user.name@gooddata.com",
|
|
8
|
+
isOwner: false,
|
|
9
|
+
isCurrentUser: false,
|
|
10
|
+
status: "Active",
|
|
11
|
+
};
|
|
12
|
+
export const owner = {
|
|
13
|
+
type: "user",
|
|
14
|
+
id: uriRef("userID2"),
|
|
15
|
+
name: "Owner Name",
|
|
16
|
+
email: "owner.name@gooddata.com",
|
|
17
|
+
isOwner: true,
|
|
18
|
+
isCurrentUser: false,
|
|
19
|
+
status: "Active",
|
|
20
|
+
};
|
|
21
|
+
export const current = {
|
|
22
|
+
type: "user",
|
|
23
|
+
id: uriRef("userID3"),
|
|
24
|
+
name: "Current Name",
|
|
25
|
+
email: "current.name@gooddata.com",
|
|
26
|
+
isOwner: false,
|
|
27
|
+
isCurrentUser: true,
|
|
28
|
+
status: "Active",
|
|
29
|
+
};
|
|
30
|
+
export const group = {
|
|
31
|
+
type: "group",
|
|
32
|
+
id: uriRef("groupId"),
|
|
33
|
+
memberCount: 11,
|
|
34
|
+
name: "TNT team",
|
|
35
|
+
};
|
|
36
|
+
export const groupAll = {
|
|
37
|
+
type: "groupAll",
|
|
38
|
+
id: uriRef("groupAll"),
|
|
39
|
+
memberCount: 11,
|
|
40
|
+
};
|
|
41
|
+
export const grantees = [user, group];
|
|
42
|
+
const userProps = {
|
|
43
|
+
ref: uriRef("john-id"),
|
|
44
|
+
uri: "uri",
|
|
45
|
+
email: "john.doe@d.com",
|
|
46
|
+
name: "John Doe",
|
|
47
|
+
};
|
|
48
|
+
export const workspaceUser = {
|
|
49
|
+
...userProps,
|
|
50
|
+
fullName: userProps.name,
|
|
51
|
+
login: userProps.email,
|
|
52
|
+
};
|
|
53
|
+
export const defaultUser = { ...workspaceUser, ref: uriRef(""), login: "" };
|
|
54
|
+
export const userAccessGrantee = {
|
|
55
|
+
type: "user",
|
|
56
|
+
user: workspaceUser,
|
|
57
|
+
};
|
|
58
|
+
export const availableUserAccessGrantee = {
|
|
59
|
+
...userProps,
|
|
60
|
+
type: "user",
|
|
61
|
+
status: "ENABLED",
|
|
62
|
+
};
|
|
63
|
+
const groupProps = {
|
|
64
|
+
ref: uriRef("test-group-id"),
|
|
65
|
+
id: "id",
|
|
66
|
+
name: "Test group",
|
|
67
|
+
};
|
|
68
|
+
export const workspaceGroup = {
|
|
69
|
+
...groupProps,
|
|
70
|
+
};
|
|
71
|
+
export const groupAccessGrantee = {
|
|
72
|
+
type: "group",
|
|
73
|
+
userGroup: workspaceGroup,
|
|
74
|
+
};
|
|
75
|
+
export const availableUserGroupAccessGrantee = {
|
|
76
|
+
...groupProps,
|
|
77
|
+
type: "group",
|
|
78
|
+
};
|
|
79
|
+
export const granularUser = {
|
|
80
|
+
...user,
|
|
81
|
+
type: "granularUser",
|
|
82
|
+
permissions: ["VIEW"],
|
|
83
|
+
inheritedPermissions: ["SHARE"],
|
|
84
|
+
};
|
|
85
|
+
export const granularGroup = {
|
|
86
|
+
...group,
|
|
87
|
+
type: "granularGroup",
|
|
88
|
+
permissions: ["EDIT"],
|
|
89
|
+
inheritedPermissions: [],
|
|
90
|
+
};
|
|
91
|
+
export const granularRule = {
|
|
92
|
+
id: {
|
|
93
|
+
identifier: "allWorkspaceUsers",
|
|
94
|
+
},
|
|
95
|
+
type: "allWorkspaceUsers",
|
|
96
|
+
permissions: ["EDIT"],
|
|
97
|
+
inheritedPermissions: [],
|
|
98
|
+
};
|
|
99
|
+
export const granularGrantees = [granularUser, granularGroup];
|
|
100
|
+
export const granularGranteeUser = {
|
|
101
|
+
id: userProps.ref,
|
|
102
|
+
email: userProps.email,
|
|
103
|
+
name: userProps.name,
|
|
104
|
+
type: "granularUser",
|
|
105
|
+
isOwner: false,
|
|
106
|
+
isCurrentUser: false,
|
|
107
|
+
status: "Active",
|
|
108
|
+
permissions: ["VIEW"],
|
|
109
|
+
inheritedPermissions: ["SHARE"],
|
|
110
|
+
};
|
|
111
|
+
export const granularGranteeUser2 = {
|
|
112
|
+
id: uriRef("john-id"),
|
|
113
|
+
email: "john.doe2@d.com",
|
|
114
|
+
name: "John Doe2",
|
|
115
|
+
type: "granularUser",
|
|
116
|
+
isOwner: false,
|
|
117
|
+
isCurrentUser: false,
|
|
118
|
+
status: "Active",
|
|
119
|
+
permissions: ["VIEW"],
|
|
120
|
+
inheritedPermissions: [],
|
|
121
|
+
};
|
|
122
|
+
export const granularGranteeGroup = {
|
|
123
|
+
id: groupProps.ref,
|
|
124
|
+
name: groupProps.name,
|
|
125
|
+
type: "granularGroup",
|
|
126
|
+
permissions: ["EDIT"],
|
|
127
|
+
inheritedPermissions: [],
|
|
128
|
+
};
|
|
129
|
+
export const granularGranteeItems = [granularGranteeUser, granularGranteeGroup];
|
|
130
|
+
export const granularUserAccess = {
|
|
131
|
+
...userAccessGrantee,
|
|
132
|
+
type: "granularUser",
|
|
133
|
+
permissions: ["VIEW"],
|
|
134
|
+
inheritedPermissions: ["SHARE"],
|
|
135
|
+
};
|
|
136
|
+
export const granularUserAccessNoInheritPermission = {
|
|
137
|
+
...userAccessGrantee,
|
|
138
|
+
type: "granularUser",
|
|
139
|
+
permissions: ["VIEW"],
|
|
140
|
+
inheritedPermissions: [],
|
|
141
|
+
};
|
|
142
|
+
export const granularUserGroupAccess = {
|
|
143
|
+
...groupAccessGrantee,
|
|
144
|
+
type: "granularGroup",
|
|
145
|
+
permissions: ["EDIT"],
|
|
146
|
+
inheritedPermissions: [],
|
|
147
|
+
};
|
|
148
|
+
export const granularGranteesAccess = [granularUserAccess, granularUserGroupAccess];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-kit",
|
|
3
|
-
"version": "11.54.0-alpha.
|
|
3
|
+
"version": "11.54.0-alpha.5",
|
|
4
4
|
"description": "GoodData SDK - UI Building Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
"unified": "^11.0.5",
|
|
79
79
|
"uuid": "11.1.1",
|
|
80
80
|
"yaml": "2.8.3",
|
|
81
|
-
"@gooddata/sdk-backend-spi": "11.54.0-alpha.
|
|
82
|
-
"@gooddata/sdk-ui": "11.54.0-alpha.
|
|
83
|
-
"@gooddata/sdk-
|
|
84
|
-
"@gooddata/
|
|
85
|
-
"@gooddata/
|
|
81
|
+
"@gooddata/sdk-backend-spi": "11.54.0-alpha.5",
|
|
82
|
+
"@gooddata/sdk-ui": "11.54.0-alpha.5",
|
|
83
|
+
"@gooddata/sdk-ui-theme-provider": "11.54.0-alpha.5",
|
|
84
|
+
"@gooddata/util": "11.54.0-alpha.5",
|
|
85
|
+
"@gooddata/sdk-model": "11.54.0-alpha.5"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@microsoft/api-documenter": "^7.17.0",
|
|
@@ -131,11 +131,11 @@
|
|
|
131
131
|
"typescript": "5.9.3",
|
|
132
132
|
"vitest": "4.1.8",
|
|
133
133
|
"vitest-dom": "0.1.1",
|
|
134
|
-
"@gooddata/eslint-config": "11.54.0-alpha.
|
|
135
|
-
"@gooddata/
|
|
136
|
-
"@gooddata/
|
|
137
|
-
"@gooddata/
|
|
138
|
-
"@gooddata/stylelint-config": "11.54.0-alpha.
|
|
134
|
+
"@gooddata/eslint-config": "11.54.0-alpha.5",
|
|
135
|
+
"@gooddata/reference-workspace": "11.54.0-alpha.5",
|
|
136
|
+
"@gooddata/sdk-backend-mockingbird": "11.54.0-alpha.5",
|
|
137
|
+
"@gooddata/oxlint-config": "11.54.0-alpha.5",
|
|
138
|
+
"@gooddata/stylelint-config": "11.54.0-alpha.5"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
141
|
"react": "^18.0.0 || ^19.0.0",
|