@ieeesa-npm/tenants 0.4.3 → 0.4.6

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 (144) hide show
  1. package/.eslintrc.json +31 -0
  2. package/ng-package.json +8 -0
  3. package/package.json +12 -25
  4. package/src/lib/assets/constants.json +454 -0
  5. package/src/lib/assets/tenant-validations.ts +18 -0
  6. package/src/lib/assets/tenants-mock.ts +1240 -0
  7. package/src/lib/components/create-modify-group-type/create-modify-group-type.component.html +15 -0
  8. package/src/lib/components/create-modify-group-type/create-modify-group-type.component.scss +44 -0
  9. package/src/lib/components/create-modify-group-type/create-modify-group-type.component.spec.ts +574 -0
  10. package/src/lib/components/create-modify-group-type/create-modify-group-type.component.ts +602 -0
  11. package/src/lib/components/create-modify-role/create-modify-role.component.html +15 -0
  12. package/src/lib/components/create-modify-role/create-modify-role.component.scss +83 -0
  13. package/src/lib/components/create-modify-role/create-modify-role.component.spec.ts +346 -0
  14. package/src/lib/components/create-modify-role/create-modify-role.component.ts +321 -0
  15. package/src/lib/components/create-tenant-application/create-tenant-application.component.html +18 -0
  16. package/src/lib/components/create-tenant-application/create-tenant-application.component.scss +73 -0
  17. package/src/lib/components/create-tenant-application/create-tenant-application.component.spec.ts +775 -0
  18. package/src/lib/components/create-tenant-application/create-tenant-application.component.ts +638 -0
  19. package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.html +22 -0
  20. package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.scss +79 -0
  21. package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.spec.ts +716 -0
  22. package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.ts +504 -0
  23. package/src/lib/components/tenant-basic-details/tenant-basic-details.component.html +37 -0
  24. package/src/lib/components/tenant-basic-details/tenant-basic-details.component.scss +16 -0
  25. package/src/lib/components/tenant-basic-details/tenant-basic-details.component.spec.ts +115 -0
  26. package/src/lib/components/tenant-basic-details/tenant-basic-details.component.ts +109 -0
  27. package/src/lib/components/view-tenant-details/view-tenant-details.component.html +195 -0
  28. package/src/lib/components/view-tenant-details/view-tenant-details.component.scss +163 -0
  29. package/src/lib/components/view-tenant-details/view-tenant-details.component.spec.ts +1221 -0
  30. package/src/lib/components/view-tenant-details/view-tenant-details.component.ts +876 -0
  31. package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.html +10 -0
  32. package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.scss +44 -0
  33. package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.spec.ts +410 -0
  34. package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.ts +219 -0
  35. package/src/lib/components/view-tenants-list/view-tenants-list.component.html +32 -0
  36. package/src/lib/components/view-tenants-list/view-tenants-list.component.scss +35 -0
  37. package/src/lib/components/view-tenants-list/view-tenants-list.component.spec.ts +464 -0
  38. package/src/lib/components/view-tenants-list/view-tenants-list.component.ts +388 -0
  39. package/src/lib/models/app-type-config.model.ts +14 -0
  40. package/src/lib/models/app-type.model.ts +5 -0
  41. package/src/lib/models/create-group-type-config.model.ts +18 -0
  42. package/src/lib/models/create-group-type.model.ts +46 -0
  43. package/src/lib/models/feature-permission-id.model.ts +6 -0
  44. package/src/lib/models/features.model.ts +15 -0
  45. package/src/lib/models/form-status.model.ts +5 -0
  46. package/src/lib/models/permission-type.model.ts +9 -0
  47. package/src/lib/models/role-menu-action.model.ts +5 -0
  48. package/src/lib/models/role-type.model.ts +34 -0
  49. package/src/lib/models/roles-and-permissions-table-type.model.ts +5 -0
  50. package/src/lib/models/roles-and-permissions.model.ts +113 -0
  51. package/src/lib/models/route-config.model.ts +4 -0
  52. package/src/lib/models/table-column-schema-view-tenant-list.model.ts +21 -0
  53. package/src/lib/models/tenant-function-type.model.ts +10 -0
  54. package/src/lib/models/tenant.model.ts +47 -0
  55. package/src/lib/models/tenants-permission.model.ts +9 -0
  56. package/src/lib/models/update-tenant-status.model.ts +12 -0
  57. package/src/lib/models/view-tenant-group-types.model.ts +34 -0
  58. package/src/lib/services/tenant-applications.service.spec.ts +1245 -0
  59. package/src/lib/services/tenant-applications.service.ts +798 -0
  60. package/src/lib/services/tenant-permissions-map.service.spec.ts +25 -0
  61. package/src/lib/services/tenant-permissions-map.service.ts +28 -0
  62. package/src/lib/services/tenant-permissions.service.spec.ts +62 -0
  63. package/src/lib/services/tenant-permissions.service.ts +49 -0
  64. package/src/lib/tenant-applications.component.html +0 -0
  65. package/src/lib/tenant-applications.component.scss +0 -0
  66. package/src/lib/tenant-applications.component.spec.ts +28 -0
  67. package/src/lib/tenant-applications.component.ts +12 -0
  68. package/src/lib/tenant-applications.module.ts +8 -0
  69. package/{public-api.d.ts → src/public-api.ts} +40 -33
  70. package/tsconfig.lib.json +14 -0
  71. package/tsconfig.lib.prod.json +10 -0
  72. package/tsconfig.spec.json +14 -0
  73. package/esm2022/ieeesa-npm-tenants.mjs +0 -5
  74. package/esm2022/lib/assets/constants.json +0 -454
  75. package/esm2022/lib/assets/tenant-validations.mjs +0 -17
  76. package/esm2022/lib/components/create-modify-group-type/create-modify-group-type.component.mjs +0 -477
  77. package/esm2022/lib/components/create-modify-role/create-modify-role.component.mjs +0 -280
  78. package/esm2022/lib/components/create-tenant-application/create-tenant-application.component.mjs +0 -512
  79. package/esm2022/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.mjs +0 -391
  80. package/esm2022/lib/components/tenant-basic-details/tenant-basic-details.component.mjs +0 -95
  81. package/esm2022/lib/components/view-tenant-details/view-tenant-details.component.mjs +0 -732
  82. package/esm2022/lib/components/view-tenant-group-types/view-tenant-group-types.component.mjs +0 -194
  83. package/esm2022/lib/components/view-tenants-list/view-tenants-list.component.mjs +0 -334
  84. package/esm2022/lib/models/app-type-config.model.mjs +0 -2
  85. package/esm2022/lib/models/app-type.model.mjs +0 -7
  86. package/esm2022/lib/models/create-group-type-config.model.mjs +0 -22
  87. package/esm2022/lib/models/create-group-type.model.mjs +0 -2
  88. package/esm2022/lib/models/feature-permission-id.model.mjs +0 -8
  89. package/esm2022/lib/models/features.model.mjs +0 -2
  90. package/esm2022/lib/models/form-status.model.mjs +0 -7
  91. package/esm2022/lib/models/permission-type.model.mjs +0 -12
  92. package/esm2022/lib/models/role-menu-action.model.mjs +0 -7
  93. package/esm2022/lib/models/role-type.model.mjs +0 -2
  94. package/esm2022/lib/models/roles-and-permissions-table-type.model.mjs +0 -7
  95. package/esm2022/lib/models/roles-and-permissions.model.mjs +0 -2
  96. package/esm2022/lib/models/route-config.model.mjs +0 -2
  97. package/esm2022/lib/models/table-column-schema-view-tenant-list.model.mjs +0 -16
  98. package/esm2022/lib/models/tenant-function-type.model.mjs +0 -12
  99. package/esm2022/lib/models/tenant.model.mjs +0 -2
  100. package/esm2022/lib/models/tenants-permission.model.mjs +0 -2
  101. package/esm2022/lib/models/update-tenant-status.model.mjs +0 -2
  102. package/esm2022/lib/models/view-tenant-group-types.model.mjs +0 -11
  103. package/esm2022/lib/services/tenant-applications.service.mjs +0 -618
  104. package/esm2022/lib/services/tenant-permissions-map.service.mjs +0 -36
  105. package/esm2022/lib/services/tenant-permissions.service.mjs +0 -38
  106. package/esm2022/lib/tenant-applications.component.mjs +0 -14
  107. package/esm2022/lib/tenant-applications.module.mjs +0 -16
  108. package/esm2022/public-api.mjs +0 -37
  109. package/fesm2022/ieeesa-npm-tenants.mjs +0 -4241
  110. package/fesm2022/ieeesa-npm-tenants.mjs.map +0 -1
  111. package/index.d.ts +0 -5
  112. package/lib/assets/tenant-validations.d.ts +0 -15
  113. package/lib/components/create-modify-group-type/create-modify-group-type.component.d.ts +0 -129
  114. package/lib/components/create-modify-role/create-modify-role.component.d.ts +0 -103
  115. package/lib/components/create-tenant-application/create-tenant-application.component.d.ts +0 -128
  116. package/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.d.ts +0 -106
  117. package/lib/components/tenant-basic-details/tenant-basic-details.component.d.ts +0 -472
  118. package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +0 -223
  119. package/lib/components/view-tenant-group-types/view-tenant-group-types.component.d.ts +0 -63
  120. package/lib/components/view-tenants-list/view-tenants-list.component.d.ts +0 -134
  121. package/lib/models/app-type-config.model.d.ts +0 -14
  122. package/lib/models/app-type.model.d.ts +0 -4
  123. package/lib/models/create-group-type-config.model.d.ts +0 -16
  124. package/lib/models/create-group-type.model.d.ts +0 -49
  125. package/lib/models/feature-permission-id.model.d.ts +0 -4
  126. package/lib/models/features.model.d.ts +0 -15
  127. package/lib/models/form-status.model.d.ts +0 -4
  128. package/lib/models/permission-type.model.d.ts +0 -8
  129. package/lib/models/role-menu-action.model.d.ts +0 -4
  130. package/lib/models/role-type.model.d.ts +0 -27
  131. package/lib/models/roles-and-permissions-table-type.model.d.ts +0 -4
  132. package/lib/models/roles-and-permissions.model.d.ts +0 -119
  133. package/lib/models/route-config.model.d.ts +0 -4
  134. package/lib/models/table-column-schema-view-tenant-list.model.d.ts +0 -20
  135. package/lib/models/tenant-function-type.model.d.ts +0 -9
  136. package/lib/models/tenant.model.d.ts +0 -51
  137. package/lib/models/tenants-permission.model.d.ts +0 -9
  138. package/lib/models/update-tenant-status.model.d.ts +0 -14
  139. package/lib/models/view-tenant-group-types.model.d.ts +0 -29
  140. package/lib/services/tenant-applications.service.d.ts +0 -398
  141. package/lib/services/tenant-permissions-map.service.d.ts +0 -13
  142. package/lib/services/tenant-permissions.service.d.ts +0 -22
  143. package/lib/tenant-applications.component.d.ts +0 -5
  144. package/lib/tenant-applications.module.d.ts +0 -6
package/.eslintrc.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "extends": "../../.eslintrc.json",
3
+ "ignorePatterns": ["!**/*"],
4
+ "overrides": [
5
+ {
6
+ "files": ["*.ts"],
7
+ "rules": {
8
+ "@angular-eslint/directive-selector": [
9
+ "error",
10
+ {
11
+ "type": "attribute",
12
+ "prefix": "ieeesa",
13
+ "style": "camelCase"
14
+ }
15
+ ],
16
+ "@angular-eslint/component-selector": [
17
+ "error",
18
+ {
19
+ "type": "element",
20
+ "prefix": "ieeesa",
21
+ "style": "kebab-case"
22
+ }
23
+ ]
24
+ }
25
+ },
26
+ {
27
+ "files": ["*.html"],
28
+ "rules": {}
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/tenants",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts",
6
+ "styleIncludePaths": ["../../node_modules/@ieeesa-npm/shared-styles/styles"]
7
+ }
8
+ }
package/package.json CHANGED
@@ -1,25 +1,12 @@
1
- {
2
- "name": "@ieeesa-npm/tenants",
3
- "version": "0.4.3",
4
- "peerDependencies": {
5
- "@angular/common": "^16.1.0",
6
- "@angular/core": "^16.1.0"
7
- },
8
- "dependencies": {
9
- "tslib": "^2.3.0"
10
- },
11
- "sideEffects": false,
12
- "module": "fesm2022/ieeesa-npm-tenants.mjs",
13
- "typings": "index.d.ts",
14
- "exports": {
15
- "./package.json": {
16
- "default": "./package.json"
17
- },
18
- ".": {
19
- "types": "./index.d.ts",
20
- "esm2022": "./esm2022/ieeesa-npm-tenants.mjs",
21
- "esm": "./esm2022/ieeesa-npm-tenants.mjs",
22
- "default": "./fesm2022/ieeesa-npm-tenants.mjs"
23
- }
24
- }
25
- }
1
+ {
2
+ "name": "@ieeesa-npm/tenants",
3
+ "version": "0.4.6",
4
+ "peerDependencies": {
5
+ "@angular/common": "^16.1.0",
6
+ "@angular/core": "^16.1.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "sideEffects": false
12
+ }
@@ -0,0 +1,454 @@
1
+ {
2
+ "createTenant": {
3
+ "heading": "New Application",
4
+ "label": {
5
+ "leftButtonLabel": "Cancel",
6
+ "rightButtonLabel": "Save",
7
+ "appTitle": "Application Title",
8
+ "appId": "Application Id",
9
+ "appLogo": "Application Logo",
10
+ "appHeading": "Application Heading",
11
+ "appDescription": "Application Description",
12
+ "appBgColor": "Application Background Color",
13
+ "appHelpLink": "Application Help Link",
14
+ "featuresList": "Selection of list of features",
15
+ "featureVersion": "Feature Version",
16
+ "domainURL": "Domain URL",
17
+ "appType": "Application Type",
18
+ "ariaLabel": {
19
+ "appTitle": "Application Title",
20
+ "appId": "Application Id",
21
+ "appLogo": "Application Logo",
22
+ "appHeading": "Application Heading",
23
+ "appDescription": "Application Description",
24
+ "appBgColor": "Application Background Color",
25
+ "appHelpLink": "Application Help Link",
26
+ "featuresList": "Selection of list of features",
27
+ "featureVersion": "Feature Version",
28
+ "domainURL": "Domain URL",
29
+ "appType": "Application Type"
30
+ },
31
+ "ariaDescribedById": {
32
+ "appTitle": "ariaApplicationTitle",
33
+ "appId": "ariaApplicationId",
34
+ "appLogo": "ariaApplicationLogo",
35
+ "appHeading": "ariaApplicationHeading",
36
+ "appDescription": "ariaApplicationDescription",
37
+ "appBgColor": "ariaApplicationBackgroundColor",
38
+ "appHelpLink": "ariaApplicationHelpLink",
39
+ "featuresList": "ariaFeatures",
40
+ "featureVersion": "ariaFeatureVersion",
41
+ "domainURL": "ariaDomainURL",
42
+ "appType": "ariaApplicationType"
43
+ }
44
+ },
45
+ "message": {
46
+ "error": {
47
+ "required": "This field is required.",
48
+ "invalidColor": "Invalid color.",
49
+ "invalidFile": "Invalid file format. Please upload SVG, PNG and JPG file format only.",
50
+ "limit": {
51
+ "appTitleMaxChars": "Application Title must not be greater than 50 characters long.",
52
+ "appIdMaxChars": "Application Id must not be greater than 10 characters long.",
53
+ "appHeadingMaxChars": "Application Heading must not be greater than 150 characters long.",
54
+ "appDescriptionMaxChars": "Application Description must not be greater than 500 characters long.",
55
+ "appLogoMaxSize": "File size exceeds the maximum limit."
56
+ },
57
+ "pattern": {
58
+ "appId": "It should only allow Alphanumeric characters.",
59
+ "appHelpLink": "Invalid URL.",
60
+ "appDomainUrl": "Invalid URL."
61
+ }
62
+ },
63
+ "success": {
64
+ "submission": "has been created successfully."
65
+ }
66
+ },
67
+ "supportText": {
68
+ "appTitle": "Enter application name.",
69
+ "appId": "Enter application id.",
70
+ "appLogo": "Upload application logo.",
71
+ "appHeading": "Enter application heading.",
72
+ "appDescription": "Enter application description.",
73
+ "appBgColor": "Choose background color.",
74
+ "appHelpLink": "Enter application help link.",
75
+ "featuresList": "Select reusable feature(s).",
76
+ "featureVersion": "Select feature version.",
77
+ "domainURL": "Enter domain URL."
78
+ },
79
+ "errors": {
80
+ "2003": "Application Type not found.",
81
+ "2026": "List of features not found.",
82
+ "2028": "Application Title is required.",
83
+ "2029": "Application Logo is required.",
84
+ "2030": "Application Heading is required.",
85
+ "2031": "Application Description is required.",
86
+ "2032": "Background color is required.",
87
+ "2033": "Help link is required.",
88
+ "2034": "Domain Url is required.",
89
+ "2035": "Application Type is required.",
90
+ "2036": "Application Features are required.",
91
+ "2037": "Application Title must not be greater than 50 characters long.",
92
+ "2038": "Application Heading must not be greater than 150 characters long",
93
+ "2039": "Application Description must not be greater than 500 characters long.",
94
+ "2040": "Invalid URL.",
95
+ "2041": "Application Id is required.",
96
+ "2042": "Application Id must not be greater than 10 characters long",
97
+ "2043": "Application Id contains invalid characters. Please enter alphanumeric characters only.",
98
+ "2044": "Invalid URL.",
99
+ "2045": "Application Id must be unique.",
100
+ "2046": "Application Features are required.",
101
+ "2047": "Application Type is required.",
102
+ "2048": "Features Not Found.",
103
+ "2049": "Unable to display tenants. Please try again later.",
104
+ "2050": "Tenant Details not found.",
105
+ "2052": "Not allowed to update Application Id and Application Type.",
106
+ "2053": "Default features to be pre-selected."
107
+ },
108
+ "buttons": {
109
+ "addApplicationLabel": "Add Application"
110
+ }
111
+ },
112
+ "createRole": {
113
+ "heading": "New Role",
114
+ "label": {
115
+ "leftButtonLabel": "Cancel",
116
+ "rightButtonLabel": "Save",
117
+ "appTitle": "Application Title",
118
+ "roleType": "Role Type",
119
+ "roleName": "Role Name",
120
+ "ariaLabel": {
121
+ "appTitle": "Application Title",
122
+ "roleType": "Role Type",
123
+ "roleName": "Role Name"
124
+ },
125
+ "ariaDescribedById": {
126
+ "appTitle": "ariaApplicationTitle",
127
+ "roleType": "ariaRoleType",
128
+ "roleName": "ariaRoleName"
129
+ }
130
+ },
131
+ "message": {
132
+ "error": {
133
+ "required": "This field is required.",
134
+ "limit": {
135
+ "roleNameMaxChars": "Role name must not be greater than 100 characters long."
136
+ }
137
+ },
138
+ "success": {
139
+ "submission1": "New",
140
+ "submission2": "has been successfully added to the",
141
+ "submission3": "You can map the permissions for the newly added role.",
142
+ "modify": "has been successfully edited for the"
143
+ }
144
+ },
145
+ "supportText": {
146
+ "roleType": "Select role type from the dropdown.",
147
+ "roleName": "Enter role name."
148
+ },
149
+ "errors": {
150
+ "3011": "App Id is required.",
151
+ "3012": "role already exists.",
152
+ "3013": "Application Id modification not allowed.",
153
+ "3014": "Role Type not found.",
154
+ "3015": "Role Type is required.",
155
+ "3016": "Role Name is required.",
156
+ "3017": "Role Type not found."
157
+ }
158
+ },
159
+ "editTenant": {
160
+ "message": {
161
+ "success": {
162
+ "submission": "has been updated successfully."
163
+ }
164
+ }
165
+ },
166
+ "viewTenants": {
167
+ "tenantsTitle": "Tenant Application Management",
168
+ "addTenant": "Add Application",
169
+ "emptyFieldValueReplacedBy": "-",
170
+ "createTenantsIcon": "assets/images/sprites/sprites.svg#icon-create-group-white-bg",
171
+ "pageSizeOptions": [10, 20, 50, 100],
172
+ "ariaLabel": {
173
+ "add": "Add Application"
174
+ },
175
+ "label": {
176
+ "appId": "Application ID",
177
+ "status": "Status",
178
+ "viewAllApps": "View All Applications",
179
+ "saAppId": "SAAPPS",
180
+ "active": "Active",
181
+ "inactive": "Inactive"
182
+ },
183
+ "buttons": {
184
+ "id": 1,
185
+ "ariaLabel": "Edit Application Details",
186
+ "label": "Edit Application Details",
187
+ "toolTip": "Edit Application Details",
188
+ "iconURL": "assets/images/sprites/sprites.svg#icon-edit-tenant"
189
+ },
190
+ "tableColumns": {
191
+ "appId": "Application Id",
192
+ "appTitle": "Application Title",
193
+ "appDescription": "Application Description",
194
+ "features": "Features",
195
+ "status": "Status"
196
+ },
197
+ "confirmationInfo": {
198
+ "leftButtonLabel": "Cancel",
199
+ "rightButtonLabel": "OK",
200
+ "promptMessage": "Are you sure you want to",
201
+ "promptMessageInactivate": "inactivate",
202
+ "promptMessageActivate": "reactivate",
203
+ "ariaLabel": {
204
+ "alert": "Alert"
205
+ },
206
+ "deleteRoleConfirmationMessage": "Are you sure you want to delete the",
207
+ "deleteRolePromptMessage": "Deleting this role will remove all current assignments in the"
208
+ },
209
+ "errors": {
210
+ "2050": "Tenant Details not found.",
211
+ "2051": "Failure to update tenant status.",
212
+ "2054": "IEEE SA Collaboration Portal cannot be inactivated.",
213
+ "3007": "No Role(s) found.",
214
+ "3008": "No Permission(s) found.",
215
+ "3009": "Unable to fetch Roles and Permissions Mapping.",
216
+ "3010": "Role Id is required.",
217
+ "3011": "Application Id is required."
218
+ },
219
+ "tenantAccordionInfo": [
220
+ {
221
+ "id": 1,
222
+ "title": "Basic Details",
223
+ "isDisabled": false,
224
+ "content": "Basic data"
225
+ },
226
+ {
227
+ "id": 2,
228
+ "title": "Roles and Permissions",
229
+ "isDisabled": false,
230
+ "content": "Roles"
231
+ },
232
+ {
233
+ "id": 3,
234
+ "title": "Group Types",
235
+ "isDisabled": false,
236
+ "content": "Groups"
237
+ }
238
+ ],
239
+ "tenantBasicDetails": {
240
+ "label": {
241
+ "title": "Title",
242
+ "logo": "Logo",
243
+ "description": "Description",
244
+ "bgColor": "Background Color",
245
+ "heading": "Heading",
246
+ "helpLink": "Help Link",
247
+ "listOfFeatures": "List of features",
248
+ "featureVersion": "Feature Version",
249
+ "domainURL": "Domain URL",
250
+ "type": "Type"
251
+ }
252
+ }
253
+ },
254
+ "viewRolesAndPermissions": {
255
+ "tableCaption": "Roles & Permissions Matrix",
256
+ "tableColumnsHeaderText": "ROLES",
257
+ "scrollbarSupportMessage": "Scroll right for viewing more roles.",
258
+ "pageSizeOptions": [10, 20, 50, 100],
259
+ "columnActionIconSize": "fa-xs",
260
+ "actionButtonLabels": {
261
+ "addRole": "Add Role",
262
+ "mapPermissionsRoles": "Map Permissions & Roles"
263
+ },
264
+ "tableColumn": {
265
+ "permissions": "PERMISSIONS"
266
+ },
267
+ "tableCellValue": {
268
+ "yes": "Yes",
269
+ "no": "No"
270
+ },
271
+ "columnActionMenuItems": [
272
+ {
273
+ "id": 1,
274
+ "label": "Edit Role",
275
+ "ariaLabel": "Edit Role",
276
+ "iconURL": "",
277
+ "toolTip": "",
278
+ "isToolTipNeeded": false
279
+ },
280
+ {
281
+ "id": 2,
282
+ "label": "Delete Role",
283
+ "ariaLabel": "Delete Role",
284
+ "iconURL": "",
285
+ "toolTip": "",
286
+ "isToolTipNeeded": false
287
+ }
288
+ ]
289
+ },
290
+ "mapRolesAndPermissions": {
291
+ "heading": "Map Permissions & Roles",
292
+ "legend": "Select a Role or Permission to continue",
293
+ "roleTableCaption": "Role: ",
294
+ "permissionTableCaption": "Permission: ",
295
+ "label": {
296
+ "leftButtonLabel": "Cancel",
297
+ "rightButtonLabel": "Save",
298
+ "role": "Role",
299
+ "permission": "Permission",
300
+ "ariaLabel": {
301
+ "role": "Role",
302
+ "permission": "Permission"
303
+ },
304
+ "ariaDescribedById": {
305
+ "role": "ariaRole",
306
+ "permission": "ariaPermission"
307
+ }
308
+ },
309
+ "tableColumns": {
310
+ "role": "Role",
311
+ "permission": "Permission",
312
+ "status": "Status"
313
+ },
314
+ "message": {
315
+ "success": {
316
+ "rolesAndPermissionsSubmission": "Role(s) & Permission(s) successfully updated."
317
+ }
318
+ },
319
+ "supportText": {
320
+ "role": "Choose a role from the available list.",
321
+ "permission": "Choose a permission from the available list."
322
+ },
323
+ "errors": {
324
+ "3007": "Role(s) not found.",
325
+ "3008": "Permission(s) not found.",
326
+ "3009": "Role Permission details does not exist.",
327
+ "3020": "Roles does not exist for given permission Id.",
328
+ "3017": "Role Permission Mapping does not exist for given role Id.",
329
+ "3021": "Permissions does not exist for given role Id."
330
+ }
331
+ },
332
+ "deleteRole": {
333
+ "message": {
334
+ "success": {
335
+ "submission": "role has been successfully deleted from the"
336
+ }
337
+ }
338
+ },
339
+ "viewGroupTypes": {
340
+ "actionButtonLabels": {
341
+ "addGroupType": "Add Group Type"
342
+ },
343
+ "actionMenuItems": [
344
+ {
345
+ "id": 1,
346
+ "label": "Edit Group Type",
347
+ "ariaLabel": "Edit Group Type",
348
+ "iconURL": "",
349
+ "toolTip": "",
350
+ "isToolTipNeeded": false,
351
+ "isDisabled": false
352
+ },
353
+ {
354
+ "id": 2,
355
+ "label": "Delete Group Type",
356
+ "ariaLabel": "Delete Group Type",
357
+ "iconURL": "",
358
+ "toolTip": "",
359
+ "isToolTipNeeded": false,
360
+ "isDisabled": false
361
+ }
362
+ ],
363
+ "tableColumns": {
364
+ "heading": {
365
+ "groupType": "Group Type",
366
+ "rosterType": "Roster Type",
367
+ "description": "Description",
368
+ "applicableRoles": "Applicable Roles",
369
+ "settings": "Settings",
370
+ "action": "Actions"
371
+ }
372
+ },
373
+ "settings": {
374
+ "allowSubGroup": "Allow Sub-Groups",
375
+ "allowRoster": "Enable Rosters",
376
+ "allowAlternateVoting": "Allow Alternate Voting",
377
+ "hasClassification": "Has Classification",
378
+ "allowEdit": "Allow Edit",
379
+ "allowDelete": "Allow Delete"
380
+ },
381
+ "errors": {
382
+ "2050": "Tenant Details not found.",
383
+ "1010": "Group Type(s) not found."
384
+ }
385
+ },
386
+ "routeConfigPath": {
387
+ "viewTenants": "tenants/view-tenants-list",
388
+ "viewTenantDetails": "tenants/view-tenant-details"
389
+ },
390
+ "createGroupType": {
391
+ "heading": "New Group Type",
392
+ "label": {
393
+ "leftButtonLabel": "Cancel",
394
+ "rightButtonLabel": "Save",
395
+ "groupType": "Group Type",
396
+ "description": "Description",
397
+ "settings": "Settings",
398
+ "rosterType": "Roster Type",
399
+ "appMemberLevel": "Applicable Member Level",
400
+ "appOfficerRoles": "Applicable Officer Roles",
401
+ "isRootGroup": "Is Root Group",
402
+ "allowedSubGroupTypes": "Allowed Sub Group Type(s)",
403
+ "ariaLabel": {
404
+ "groupType": "Group Type",
405
+ "description": "Description",
406
+ "settings": "Settings",
407
+ "rosterType": "Roster Type",
408
+ "appMemberLevel": "Applicable Member Level",
409
+ "appOfficerRoles": "Applicable Officer Roles",
410
+ "isRootGroup": "Is Root Group",
411
+ "allowedSubGroupTypes": "Allowed Sub Group Type(s)"
412
+ },
413
+ "ariaDescribedById": {
414
+ "groupType": "ariaGroupType",
415
+ "description": "ariaDescription",
416
+ "settings": "ariaSettings",
417
+ "rosterType": "ariaRosterType",
418
+ "appMemberLevel": "ariaApplicableMemberLevel",
419
+ "appOfficerRoles": "ariaApplicableOfficerRoles",
420
+ "isRootGroup": "ariaIsRootGroup",
421
+ "allowedSubGroupTypes": "ariaAllowedSubGroupTypes"
422
+ }
423
+ },
424
+ "message": {
425
+ "success": {
426
+ "submissionPart1": "New ",
427
+ "submissionPart2": " has been successfully added to the"
428
+ },
429
+ "error": {
430
+ "required": "This field is required.",
431
+ "limit": {
432
+ "groupTypeMaxChars": "Group Type must not be greater than 30 characters long.",
433
+ "descriptionMaxChars": "Description must not be greater than 500 characters long."
434
+ }
435
+ }
436
+ },
437
+ "supportText": {
438
+ "groupType": "Enter Group Type.",
439
+ "description": "Enter Group Type description."
440
+ },
441
+ "isRootGroupOptions": {
442
+ "yes": "Yes",
443
+ "no": "No"
444
+ },
445
+ "errors": {
446
+ "2066": "Roster Type or Settings not found.",
447
+ "2067": "Group Type Name already exist.",
448
+ "3007": "No Role(s) found.",
449
+ "3017": "Description is required.",
450
+ "3018": "Role is required.",
451
+ "3019": "Configure officer and member level roles before creating group type."
452
+ }
453
+ }
454
+ }
@@ -0,0 +1,18 @@
1
+ /* eslint-disable no-useless-escape */
2
+ export const TenantsValidationPatterns = {
3
+ appTitleMaxLength: 50,
4
+ appIdMaxLength: 10,
5
+ appHeadingMaxLength: 150,
6
+ appDescriptionMaxLength: 500,
7
+ url: /^https:\/\//,
8
+ alphaNumeric: /^[a-zA-Z0-9]+$/,
9
+ };
10
+
11
+ export const RolesValidation = {
12
+ roleNameMaxLength: 100,
13
+ };
14
+
15
+ export const GroupTypeValidation = {
16
+ groupTypeMaxLength: 30,
17
+ descriptionMaxLength: 500
18
+ }