@ieeesa-npm/groups 0.7.1 → 0.7.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.
Files changed (49) hide show
  1. package/esm2022/lib/assets/constants.json +54 -11
  2. package/esm2022/lib/assets/form-validations.mjs +4 -1
  3. package/esm2022/lib/components/add-user-roster/add-user-roster.component.mjs +259 -22
  4. package/esm2022/lib/components/create-group/create-group.component.mjs +3 -3
  5. package/esm2022/lib/components/edit-user-roles/edit-user-roles.component.mjs +267 -33
  6. package/esm2022/lib/components/tree-view/tree-view.component.mjs +20 -5
  7. package/esm2022/lib/components/view-roster/view-roster.component.mjs +458 -98
  8. package/esm2022/lib/groups.component.mjs +39 -19
  9. package/esm2022/lib/models/add-or-edit-user-group.model.mjs +1 -1
  10. package/esm2022/lib/models/classification.model.mjs +2 -0
  11. package/esm2022/lib/models/filter-type.model.mjs +8 -0
  12. package/esm2022/lib/models/group-permissions.model.mjs +2 -0
  13. package/esm2022/lib/models/group-types.model.mjs +1 -1
  14. package/esm2022/lib/models/group-user-info.model.mjs +1 -1
  15. package/esm2022/lib/models/member-type.model.mjs +2 -0
  16. package/esm2022/lib/models/organization.model.mjs +2 -0
  17. package/esm2022/lib/models/permission-type.model.mjs +15 -0
  18. package/esm2022/lib/models/roster-type.model.mjs +7 -0
  19. package/esm2022/lib/models/table-column-schema-user-group.model.mjs +12 -0
  20. package/esm2022/lib/models/user.model.mjs +1 -1
  21. package/esm2022/lib/services/group-permissions-map-service.mjs +71 -0
  22. package/esm2022/lib/services/groups.service.mjs +139 -16
  23. package/esm2022/lib/services/user-permissions.service.mjs +43 -0
  24. package/esm2022/public-api.mjs +7 -1
  25. package/fesm2022/ieeesa-npm-groups.mjs +1367 -195
  26. package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
  27. package/lib/assets/form-validations.d.ts +2 -0
  28. package/lib/components/add-user-roster/add-user-roster.component.d.ts +58 -1
  29. package/lib/components/edit-user-roles/edit-user-roles.component.d.ts +64 -11
  30. package/lib/components/tree-view/tree-view.component.d.ts +5 -1
  31. package/lib/components/view-roster/view-roster.component.d.ts +67 -8
  32. package/lib/groups.component.d.ts +17 -3
  33. package/lib/models/add-or-edit-user-group.model.d.ts +24 -8
  34. package/lib/models/classification.model.d.ts +10 -0
  35. package/lib/models/filter-type.model.d.ts +5 -0
  36. package/lib/models/group-permissions.model.d.ts +9 -0
  37. package/lib/models/group-types.model.d.ts +1 -0
  38. package/lib/models/group-user-info.model.d.ts +3 -0
  39. package/lib/models/member-type.model.d.ts +10 -0
  40. package/lib/models/organization.model.d.ts +9 -0
  41. package/lib/models/permission-type.model.d.ts +12 -0
  42. package/lib/models/roster-type.model.d.ts +4 -0
  43. package/lib/models/table-column-schema-user-group.model.d.ts +9 -0
  44. package/lib/models/user.model.d.ts +20 -5
  45. package/lib/services/group-permissions-map-service.d.ts +8 -0
  46. package/lib/services/groups.service.d.ts +109 -18
  47. package/lib/services/user-permissions.service.d.ts +25 -0
  48. package/package.json +4 -4
  49. package/public-api.d.ts +6 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "addUserRoster": {
3
- "heading": "New System User",
3
+ "heading": "New User",
4
4
  "label": {
5
5
  "email": "Email Address",
6
6
  "rightButtonLabel": "Search & Continue",
@@ -8,22 +8,35 @@
8
8
  "saveButtonLabel": "Save",
9
9
  "fullName": "Name",
10
10
  "role": "Role",
11
+ "classification": "Classification",
12
+ "representingOrganization": "Representing Organization",
13
+ "memberType": "Member Type",
11
14
  "ariaLabel": {
12
15
  "email": "Email Address",
13
16
  "fullName": "Full name",
14
- "role": "Role"
17
+ "role": "Role",
18
+ "classification": "Classification",
19
+ "memberType": "Member Type",
20
+ "representingOrganization": "Representing Organization"
15
21
  },
16
22
  "ariaDescribedById": {
17
23
  "email": "ariaEmailAddress",
18
24
  "fullName": "ariaFullName",
19
- "role": "ariaRole"
25
+ "role": "ariaRole",
26
+ "classification": "ariaClassification",
27
+ "memberType": "ariaMemberType",
28
+ "representingOrganization": "ariaRepresentingOrganization"
20
29
  }
21
30
  },
22
31
  "message": {
23
32
  "error": {
24
33
  "required": "This field is required.",
34
+ "limit": {
35
+ "representingOrganization": "Representing Organization must not be greater than 250 characters long."
36
+ },
25
37
  "pattern": {
26
- "email": "Please enter valid email."
38
+ "email": "Please enter valid email.",
39
+ "representingOrganization": "Representing Organization contains invalid characters. Please enter alphanumeric, special characters and whitespace only."
27
40
  }
28
41
  },
29
42
  "success": {
@@ -33,7 +46,11 @@
33
46
  "supportText": {
34
47
  "emailAddress": "Please enter valid email address which includes @ symbol, dot (.) and domain. For example, user@ieee.org",
35
48
  "fullName": "Enter user full name.",
36
- "role": "<strong>Note:</strong> Removal of all roles shall result in removal of user from group."
49
+ "role": "<strong>Note:</strong> In order to remove all roles, please remove the user from the system user group.",
50
+ "roleForIndividualRoster": "Select Role(s) from the options.",
51
+ "classification": "Select Classification from the dropdown.",
52
+ "memberType": "Select Member Type from the dropdown.",
53
+ "representingOrganization": "Enter Representing Organization details for a user."
37
54
  }
38
55
  },
39
56
  "createGroup": {
@@ -111,6 +128,8 @@
111
128
  "createGroupIcon": "assets/images/sprites/sprites.svg#icon-create-group-white-bg",
112
129
  "filterGroupIcon": "assets/images/sprites/sprites.svg#icon-sort",
113
130
  "treePaddingIndent": 12,
131
+ "minCharRequiredToSearch1": "Minimum",
132
+ "minCharRequiredToSearch2": "characters are required to search.",
114
133
  "placeholderText": {
115
134
  "search": "Search by Group Name/Acronym",
116
135
  "filter": "Group Type"
@@ -191,13 +210,23 @@
191
210
  }
192
211
  },
193
212
  "viewRoster": {
194
- "tableColumns": {
213
+ "tableColumnsForSystemUsers": {
195
214
  "name": "Name",
196
215
  "email": "Email Address",
197
216
  "role": "Role"
198
217
  },
199
- "searchPlaceholder": "Search by Name/Email Address",
200
- "filterByRole": "Role"
218
+ "tableColumnsForIndividual": {
219
+ "name": "Name",
220
+ "employer": "Employer",
221
+ "email": "Email address",
222
+ "memberType": "Member Type",
223
+ "organizationName": "Representing Org",
224
+ "classification": "Classification",
225
+ "role": "Role"
226
+ },
227
+ "searchPlaceholderSystemUsers": "Search by Name/Email Address",
228
+ "searchPlaceholderIndividual": "Search by Name/Email Address/Representing Org",
229
+ "emptyFieldValueReplacedBy": "-"
201
230
  },
202
231
  "editUserRoles": {
203
232
  "heading": "Edit System User",
@@ -209,6 +238,7 @@
209
238
  },
210
239
  "errors": {
211
240
  "ER1000": "Allowed group types are not found for the selected group!",
241
+ "ER1001": "Roster type is not configured.",
212
242
  "1001": "Group Name already in use.",
213
243
  "1002": "Group Short Name already in use.",
214
244
  "1003": "Parent Group is inactive for the provided subgroup.",
@@ -241,12 +271,25 @@
241
271
  "1030": "No record found!",
242
272
  "1031": "No record found!",
243
273
  "1032": "No record found!",
244
- "1033": "Please enter atleast 3 characters to perform search operation.",
245
- "1034": "No record found!",
274
+ "1033": "Please enter at least 3 characters to perform search operation.",
275
+ "1034": "Resource Not Found!",
246
276
  "2001": "No user(s) found!",
247
277
  "2002": "Role does not belong to the group type.",
248
278
  "2010": "User not found.",
249
- "2011": "User not found."
279
+ "2011": "User not found.",
280
+ "20l2": "First Name is required.",
281
+ "2013": "Last Name is required.",
282
+ "2014": "Representation Organization is required.",
283
+ "2015": "Representing Organization contains invalid characters. Please enter alphanumeric, special characters and whitespace only.",
284
+ "2016": "Representing Organization must not be greater than 250 characters long.",
285
+ "2017": "First Name must not be greater than 100 characters long.",
286
+ "2018": "Last Name must not be greater than 100 characters long.",
287
+ "2019": "Classification is required.",
288
+ "2020": "Classification does not exist.",
289
+ "2021": "Member Type does not exist.",
290
+ "2022": "Representation Organization does not exist.",
291
+ "2023": "Member Type is required.",
292
+ "3004": "Organization does not found."
250
293
  },
251
294
  "ariaLabel": {
252
295
  "alert": "Alert"
@@ -7,5 +7,8 @@ export const GroupsValidationPatterns = {
7
7
  // Group Scope field regular expression which accept Alpha Numeric, Special Characters and whitespace.
8
8
  groupScope: /^(?=.*[a-zA-Z])[\w\s!"#$%&'()*+,-.\/\:;<=>?@[\]^_`{|}~\\]+$/i,
9
9
  email: /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/,
10
+ representingOrgNameMaxLength: 250,
11
+ // Representing Organization field regular expression which accept Alpha Numeric, Special Characters and whitespace.
12
+ representingOrganization: /^(?=.*[a-zA-Z])[\w\s!"#$%&'()*+,-.\/\:;<=>?@[\]^_`{|}~\\]+$/i,
10
13
  };
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS12YWxpZGF0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2dyb3Vwcy9zcmMvbGliL2Fzc2V0cy9mb3JtLXZhbGlkYXRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHNDQUFzQztBQUN0QyxNQUFNLENBQUMsTUFBTSx3QkFBd0IsR0FBRztJQUN0Qyw4R0FBOEc7SUFDOUcsU0FBUyxFQUFFLDhEQUE4RDtJQUN6RSxtSEFBbUg7SUFDbkgsU0FBUyxFQUFFLHNDQUFzQztJQUNqRCxzR0FBc0c7SUFDdEcsVUFBVSxFQUFFLDhEQUE4RDtJQUMxRSxLQUFLLEVBQUUsa0NBQWtDO0NBQzFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby11c2VsZXNzLWVzY2FwZSAqL1xyXG5leHBvcnQgY29uc3QgR3JvdXBzVmFsaWRhdGlvblBhdHRlcm5zID0ge1xyXG4gIC8vIEdyb3VwIE5hbWUgZmllbGQgcmVndWxhciBleHByZXNzaW9uLCB3aGljaCBhY2NlcHQgQWxwaGEgTnVtZXJpYywgU3BlY2lhbCBDaGFyYWN0ZXJzIChBU0NJSSkgYW5kIHdoaXRlc3BhY2UuXHJcbiAgZ3JvdXBOYW1lOiAvXig/PS4qW2EtekEtWl0pW1xcd1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