Commit a138d96f authored by Aaron Gutierrez's avatar Aaron Gutierrez

Correccion de errores XDF y seguridad

parent e7e7b1ff
...@@ -1817,41 +1817,36 @@ ...@@ -1817,41 +1817,36 @@
} }
}, },
"@xdf/commons": { "@xdf/commons": {
"version": "1.0.0", "version": "file:../../XDF/ng-byte-framework/dist/xdf-commons/xdf-commons-1.0.0.tgz",
"resolved": "http://192.168.27.7:4873/@xdf%2fcommons/-/commons-1.0.0.tgz", "integrity": "sha512-OGPxnWBkEflVYRBZDmYWZ3tpQImBaasWEA8lPqDxadTzpg/48SmALEURhTenYN1c7+5zMkqU7X1a7Sh/2h0rVw==",
"integrity": "sha512-K1dJkuU4fJFhW59M/x7RiS8NJ+1K87FIO2nZs3c+3xZJajBNJDBb2rhvID7I43n88D1Yr+cr2aJkxIpp16fgdg==",
"requires": { "requires": {
"tslib": "^1.9.0" "tslib": "^1.9.0"
} }
}, },
"@xdf/gallery": { "@xdf/gallery": {
"version": "1.0.4", "version": "file:../../XDF/ng-byte-framework/dist/xdf-gallery/xdf-gallery-1.0.8.tgz",
"resolved": "http://192.168.27.7:4873/@xdf%2fgallery/-/gallery-1.0.4.tgz", "integrity": "sha512-eOUgs9LGPAVJh/pPBwbNfv+3ZlIlmm7YgO01lFzZUD9bzETOxIfj3DpOluRE4WZxL2UBLB+c3uYjczwoEnEPlg==",
"integrity": "sha512-d9+/MXHMYy9btBXOpri8MdxO89bvN+XsjTLw2bt0TVzuOtpHXd97cq2ehmZosfy/6e2MTOJ7FHqvlbl27vGK/A==",
"requires": { "requires": {
"tslib": "^1.9.0" "tslib": "^1.9.0"
} }
}, },
"@xdf/layouts": { "@xdf/layouts": {
"version": "1.0.0", "version": "file:../../XDF/ng-byte-framework/dist/xdf-layouts/xdf-layouts-1.0.1.tgz",
"resolved": "http://192.168.27.7:4873/@xdf%2flayouts/-/layouts-1.0.0.tgz", "integrity": "sha512-lTM1Hz6J6DzteSeUNPbxVXLxzurDwxzPyBe+p6ZpOEGuhrGeFPx33bb3ap5dyz6VyQxi6t4JSLQEHbJJvJ3/bw==",
"integrity": "sha512-7z/I3/+VDPVnJfXjQ3ePvgGg9yv5ZTxmIVEjR2sstrrrd/gEhUy8+3CNFkzgusXfxMYPD7E5DedYVjmUOtbskw==",
"requires": { "requires": {
"tslib": "^1.9.0" "tslib": "^1.9.0"
} }
}, },
"@xdf/security": { "@xdf/security": {
"version": "1.0.0", "version": "file:../../XDF/ng-byte-framework/dist/xdf-security/xdf-security-1.0.0.tgz",
"resolved": "http://192.168.27.7:4873/@xdf%2fsecurity/-/security-1.0.0.tgz", "integrity": "sha512-3Arppi1D2R+h9pYzkbAFt19PGcBMQQCYEuikqOScZKgCkxJhroaKPNVEASgy+ZfLogO3MQ3/37f7ukXZeVx2IQ==",
"integrity": "sha512-anTe2J9dmBsTy2t5lzg3mXek0+/NfOKeU2elPuR+OIWi1UUaCwUnW1EDEA2kgLtujqlmVJFPTKHKpPdRjKwQIw==",
"requires": { "requires": {
"tslib": "^1.9.0" "tslib": "^1.9.0"
} }
}, },
"@xdf/settings": { "@xdf/settings": {
"version": "1.0.2", "version": "file:../../XDF/ng-byte-framework/dist/xdf-settings/xdf-settings-1.0.3.tgz",
"resolved": "http://192.168.27.7:4873/@xdf%2fsettings/-/settings-1.0.2.tgz", "integrity": "sha512-btepMgHDMkABtx1/IUxwEFNMnzH+Iew1s3J52/x8QZ5/XHyjfQcF9MsQXHvoVxP39DSmjnloYDrAMrbyIp9u+Q==",
"integrity": "sha512-ebaYci2qT45Yu0fHkCEfl/YT5mK6P6Uef20fgXrlKKUJl1+8b3fubRCCnNKxj2xwxAoBY5DG8jhQG9biwFaNSg==",
"requires": { "requires": {
"tslib": "^1.9.0" "tslib": "^1.9.0"
} }
......
...@@ -121,7 +121,7 @@ export function createTranslateLoader(http: HttpClient) { ...@@ -121,7 +121,7 @@ export function createTranslateLoader(http: HttpClient) {
// { provide: AuthGuard, useClass: AuthGuard}, // { provide: AuthGuard, useClass: AuthGuard},
// { provide: AuthenticationService, useClass: ByteAuthenticationService }, // { provide: AuthenticationService, useClass: ByteAuthenticationService },
// { provide: HTTP_INTERCEPTORS, useClass: AuthenticationFakeBackendInterceptor, multi: true}, // { provide: HTTP_INTERCEPTORS, useClass: AuthenticationFakeBackendInterceptor, multi: true},
{ provide: HTTP_INTERCEPTORS, useClass: SettingsFakeBackendInterceptor, multi: true }, //{ provide: HTTP_INTERCEPTORS, useClass: SettingsFakeBackendInterceptor, multi: true },
//{ provide: HTTP_INTERCEPTORS, useClass: CustomProgramsFakeBackendInterceptor, multi: true }, //{ provide: HTTP_INTERCEPTORS, useClass: CustomProgramsFakeBackendInterceptor, multi: true },
// { provide: HTTP_INTERCEPTORS, useClass: AgentFakeBackendInterceptor, multi: true }, // { provide: HTTP_INTERCEPTORS, useClass: AgentFakeBackendInterceptor, multi: true },
......
...@@ -31,10 +31,19 @@ ...@@ -31,10 +31,19 @@
"options": { "options": {
"styleClass": "col-xs-3 col-sm-6 col-md-6", "styleClass": "col-xs-3 col-sm-6 col-md-6",
"showLength": true, "showLength": true,
"maxLength": 60 "maxLength": 25
}, },
"validators": [ "validators": [
"required" "required",
"identifier",
{
"name": "minLength",
"value": 3
},
{
"name": "maxLength",
"value": 25
}
], ],
"controlType": "text" "controlType": "text"
} }
...@@ -96,10 +105,15 @@ ...@@ -96,10 +105,15 @@
"options": { "options": {
"styleClass": "col-xs-3 col-sm-6 col-md-6", "styleClass": "col-xs-3 col-sm-6 col-md-6",
"showLength": true, "showLength": true,
"maxLength": 80 "maxLength": 30
}, },
"validators": [ "validators": [
"required" "required",
"names",
{
"name": "minLength",
"value": 2
}
], ],
"controlType": "text" "controlType": "text"
} }
...@@ -168,8 +182,8 @@ ...@@ -168,8 +182,8 @@
"type": "string", "type": "string",
"formOptions": { "formOptions": {
"values": { "values": {
"01": "Mr", "01": "Sr.",
"02": "Miss" "02": "Sra."
}, },
"options": { "options": {
"styleClass": "col-md-3" "styleClass": "col-md-3"
...@@ -189,6 +203,7 @@ ...@@ -189,6 +203,7 @@
"required" "required"
], ],
"options": { "options": {
"editabled": false,
"styleClass": "col-md-6" "styleClass": "col-md-6"
} }
} }
...@@ -203,7 +218,11 @@ ...@@ -203,7 +218,11 @@
"styleClass": "col-md-3" "styleClass": "col-md-3"
}, },
"validators": [ "validators": [
"required" "required",
{
"name": "pattern",
"value": "^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\\s\\./0-9]*$"
}
], ],
"controlType": "text" "controlType": "text"
} }
...@@ -261,6 +280,7 @@ ...@@ -261,6 +280,7 @@
[ [
"username", "status" "username", "status"
], ],
[ "password" ],
[ [
"defaultRole", "defaultRole",
"roleList" "roleList"
...@@ -301,6 +321,7 @@ ...@@ -301,6 +321,7 @@
"sortColumnDefault": "username", "sortColumnDefault": "username",
"sortColumnDirection": "desc", "sortColumnDirection": "desc",
"pagingSize": 5, "pagingSize": 5,
"expandRow": true,
"columns": [ "columns": [
{ {
"name": "username", "name": "username",
......
...@@ -54,16 +54,18 @@ ...@@ -54,16 +54,18 @@
"message.error.validateAge": "The age must be over 17 years and less that 100", "message.error.validateAge": "The age must be over 17 years and less that 100",
"message.error.email": "The email does not comply with the format", "message.error.email": "The email does not comply with the format",
"message.error.required": "The \"{{ label }}\" field is required", "message.error.required": "The \"{{ label }}\" field is required",
"message.error.min.length": "The \"{{ label }}\" field supports at least \"{{value}}\" characters", "message.error.minlength": "The \"{{ label }}\" field supports at least \"{{requiredLength}}\" characters",
"message.error.max.length": "The \"{{ label }}\" field supports at maximum \"{{value}}\" characters", "message.error.maxlength": "The \"{{ label }}\" field supports at maximum \"{{requiredLength}}\" characters",
"message.error.min": "Value must be greater equal that to \"{{ min }}\"", "message.error.min": "Value must be greater equal that to \"{{ min }}\"",
"message.error.max": "Value must be less equal that to \"{{ value }}\"", "message.error.max": "Value must be less equal that to \"{{ max }}\"",
"message.error.pattern": "The value does not meet the regular expression - \"{{ value }}\"", "message.error.pattern": "The \"{{ label }}\" field does not meet the required format",
"message.error.duplicity.name": "The value entered already exists", "message.error.duplicity.name": "The value entered already exists",
"message.error.matDatepickerParse": "The value input is not valid", "message.error.matDatepickerParse": "The value input is not valid",
"message.error.resource.authorization": "Don't have access to the program", "message.error.resource.authorization": "Don't have access to the program",
"message.error.matDatepickerMin": "The date must be greater than {{ min }}", "message.error.matDatepickerMin": "The date must be greater than {{ min }}",
"message.error.array.required": "You must select at least one item", "message.error.array.required": "You must select at least one item",
"message.error.identifier": "The \"{{ label }}\" field can only contain numbers, letters and underscore",
"message.error.names": "The \"{{ label }}\" field is not valid",
"title.dirty.confirmation": "Confirm", "title.dirty.confirmation": "Confirm",
"title.delete.confirmation": "Delete", "title.delete.confirmation": "Delete",
......
...@@ -54,16 +54,18 @@ ...@@ -54,16 +54,18 @@
"message.error.validateAge": "La edad debe ser mayor de 17 años y menor de 100", "message.error.validateAge": "La edad debe ser mayor de 17 años y menor de 100",
"message.error.email": "El email no cumple con el formato", "message.error.email": "El email no cumple con el formato",
"message.error.required": "El campo \"{{ label }}\" es requerido", "message.error.required": "El campo \"{{ label }}\" es requerido",
"message.error.min.length": "El campo \"{{ label }}\" admite como mínimo \"{{ value }}\" caracteres", "message.error.minlength": "El campo \"{{ label }}\" admite como mínimo \"{{ requiredLength }}\" caracteres",
"message.error.max.length": "El campo \"{{ label }}\" admite como máximo \"{{ value }}\" caracteres", "message.error.maxlength": "El campo \"{{ label }}\" admite como máximo \"{{ requiredLength }}\" caracteres",
"message.error.min": "El valor debe ser mayor o igual a \"{{ min }}\"", "message.error.min": "El valor debe ser mayor o igual a \"{{ min }}\"",
"message.error.max": "El valor debe ser menor o igual a \"{{ max }}\"", "message.error.max": "El valor debe ser menor o igual a \"{{ max }}\"",
"message.error.pattern": "El valor no cumple con la expresión regular - \"{{ requiredPattern }}\"", "message.error.pattern": "El campo \"{{ label }}\" no cumple con el formato requerido",
"message.error.duplicity.name": "El valor ingresado ya existe", "message.error.duplicity.name": "El valor ingresado ya existe",
"message.error.matDatepickerParse": "El valor ingresado no es válido", "message.error.matDatepickerParse": "El valor ingresado no es válido",
"message.error.resource.authorization": "No tiene acceso al programa", "message.error.resource.authorization": "No tiene acceso al programa",
"message.error.matDatepickerMin": "La fecha debe ser mayor a {{ min }}", "message.error.matDatepickerMin": "La fecha debe ser mayor a {{ min }}",
"message.error.array.required": "Debe seleccionar al menos un elemento", "message.error.array.required": "Debe seleccionar al menos un elemento",
"message.error.identifier": "El campo \"{{ label }}\" solo puede contener números, letras y guiones",
"message.error.names": "El campo \"{{ label }}\" no es válido",
"title.dirty.confirmation": "Confirmar", "title.dirty.confirmation": "Confirmar",
"title.delete.confirmation": "Eliminar", "title.delete.confirmation": "Eliminar",
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
"login.title": "Login Page", "login.title": "Login Page",
"breadcrumb.user.role": "User role", "breadcrumb.user.role": "User role",
"breadcrumb.user.role.detail": "Detail", "breadcrumb.user.role.detail": "User role",
"breadcrumb.user": "User", "breadcrumb.user": "User",
"breadcrumb.user.detail": "Detail", "breadcrumb.user.detail": "User",
"control.new": "New", "control.new": "New",
"control.view": "View", "control.view": "View",
...@@ -41,14 +41,18 @@ ...@@ -41,14 +41,18 @@
"user_group_personal_info": "Personal information", "user_group_personal_info": "Personal information",
"user_group_contact_info": "Contact information", "user_group_contact_info": "Contact information",
"user_form_username_placeholder": "Username", "user_form_username_placeholder": "Username",
"user_form_password_placeholder": "Password",
"user_form_defaultRole_label": "Main role", "user_form_defaultRole_label": "Main role",
"user_form_defaultRole_suggest": "This role will be used as the default role in the application.", "user_form_defaultRole_suggest": "This role will be used as the default role in the application.",
"user_form_defaultRole_placeholder": "Main role",
"user_form_roleList_label": "Assigned roles", "user_form_roleList_label": "Assigned roles",
"user_form_roleList_placeholder": "Assigned roles",
"user_form_firstName_placeholder": "First name", "user_form_firstName_placeholder": "First name",
"user_form_secondName_placeholder": "Second name", "user_form_secondName_placeholder": "Second name",
"user_form_firstSurname_placeholder": "Last name", "user_form_firstSurname_placeholder": "Last name",
"user_form_secondSurname_placeholder": "Mother's last name", "user_form_secondSurname_placeholder": "Mother's last name",
"user_form_salutationPrefer_label": "Salutation", "user_form_salutationPrefer_label": "Salutation",
"user_form_salutationPrefer_placeholder": "Salutation",
"user_form_sex_label": "Gender", "user_form_sex_label": "Gender",
"user_form_sex_placeholder": "Gender", "user_form_sex_placeholder": "Gender",
"user_form_birthday_placeholder": "Birthday", "user_form_birthday_placeholder": "Birthday",
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
"login.title": "Identificación de Usuario", "login.title": "Identificación de Usuario",
"breadcrumb.user.role": "Rol de usuario", "breadcrumb.user.role": "Rol de usuario",
"breadcrumb.user.role.detail": "Detalle", "breadcrumb.user.role.detail": "Rol de usuario",
"breadcrumb.user": "Usuario", "breadcrumb.user": "Usuario",
"breadcrumb.user.detail": "Detalle", "breadcrumb.user.detail": "Usuario",
"control.new": "Creación", "control.new": "Creación",
"control.view": "Visualizar", "control.view": "Visualizar",
...@@ -41,14 +41,18 @@ ...@@ -41,14 +41,18 @@
"user_group_personal_info": "Datos personales", "user_group_personal_info": "Datos personales",
"user_group_contact_info": "Datos de contacto", "user_group_contact_info": "Datos de contacto",
"user_form_username_placeholder": "Código de usuario", "user_form_username_placeholder": "Código de usuario",
"user_form_password_placeholder": "Contraseña",
"user_form_defaultRole_label": "Rol principal", "user_form_defaultRole_label": "Rol principal",
"user_form_defaultRole_suggest": "Este rol será utilizado como rol por defecto en la aplicación.", "user_form_defaultRole_suggest": "Este rol será utilizado como rol por defecto en la aplicación.",
"user_form_defaultRole_placeholder": "Rol principal",
"user_form_roleList_label": "Roles asignados", "user_form_roleList_label": "Roles asignados",
"user_form_roleList_placeholder": "Roles asignados",
"user_form_firstName_placeholder": "Primer nombre", "user_form_firstName_placeholder": "Primer nombre",
"user_form_secondName_placeholder": "Segundo nombre", "user_form_secondName_placeholder": "Segundo nombre",
"user_form_firstSurname_placeholder": "Apellido paterno", "user_form_firstSurname_placeholder": "Apellido paterno",
"user_form_secondSurname_placeholder": "Apellido Materno", "user_form_secondSurname_placeholder": "Apellido Materno",
"user_form_salutationPrefer_label": "Saludo", "user_form_salutationPrefer_label": "Saludo",
"user_form_salutationPrefer_placeholder": "Saludo",
"user_form_sex_label": "Género", "user_form_sex_label": "Género",
"user_form_sex_placeholder": "Género", "user_form_sex_placeholder": "Género",
"user_form_birthday_placeholder": "Fecha de nacimiento", "user_form_birthday_placeholder": "Fecha de nacimiento",
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"target": "es2015", "target": "es5",
"typeRoots": [ "typeRoots": [
"node_modules/@types" "node_modules/@types"
], ],
......
{
"extends": "tslint:recommended",
"rulesDirectory": [
"codelyzer"
],
"rules": {
"array-type": false,
"arrow-parens": false,
"deprecation": {
"severity": "warning"
},
"import-blacklist": [
true,
"rxjs/Rx"
],
"interface-name": false,
"max-classes-per-file": false,
"max-line-length": [
true,
140
],
"member-access": false,
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"static-method",
"instance-method"
]
}
],
"no-consecutive-blank-lines": false,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-empty": false,
"no-inferrable-types": [
true,
"ignore-params"
],
"no-non-null-assertion": true,
"no-redundant-jsdoc": true,
"no-switch-case-fall-through": true,
"no-var-requires": false,
"object-literal-key-quotes": [
true,
"as-needed"
],
"object-literal-sort-keys": false,
"ordered-imports": false,
"quotemark": [
true,
"single"
],
"trailing-comma": false,
"component-class-suffix": true,
"contextual-lifecycle": true,
"directive-class-suffix": true,
"no-conflicting-lifecycle": true,
"no-host-metadata-property": true,
"no-input-rename": true,
"no-inputs-metadata-property": true,
"no-output-native": true,
"no-output-on-prefix": true,
"no-output-rename": true,
"no-outputs-metadata-property": true,
"template-banana-in-box": true,
"template-no-negated-async": true,
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment