contentoh-components-library 21.6.14 → 21.6.15

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.
@@ -209,6 +209,10 @@ exports.translateConcept = translateConcept;
209
209
 
210
210
  var getStatusArrayByRole = function getStatusArrayByRole(idRole) {
211
211
  switch (idRole) {
212
+ // Admin: puede validar/rechazar en cualquier estado operable (unión de todos los roles).
213
+ case 1:
214
+ return ["PA", "AS", "CA", "RC", "RA", "RP", "RCA", "AC", "AA", "AP", "ACA"];
215
+
212
216
  case 7:
213
217
  case 8:
214
218
  return ["PA", "AS", "CA", "RC", "RA", "RP", "RCA"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.6.14",
3
+ "version": "21.6.15",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -154,6 +154,21 @@ export const translateConcept = (concept) => CONCEPT_TO_TAB[concept];
154
154
 
155
155
  export const getStatusArrayByRole = (idRole) => {
156
156
  switch (idRole) {
157
+ // Admin: puede validar/rechazar en cualquier estado operable (unión de todos los roles).
158
+ case 1:
159
+ return [
160
+ "PA",
161
+ "AS",
162
+ "CA",
163
+ "RC",
164
+ "RA",
165
+ "RP",
166
+ "RCA",
167
+ "AC",
168
+ "AA",
169
+ "AP",
170
+ "ACA",
171
+ ];
157
172
  case 7:
158
173
  case 8:
159
174
  return ["PA", "AS", "CA", "RC", "RA", "RP", "RCA"];