ng-pli-commons 0.0.1337 → 0.0.1338

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 (29) hide show
  1. package/bundles/ng-pli-commons.umd.js +67 -10
  2. package/bundles/ng-pli-commons.umd.js.map +1 -1
  3. package/bundles/ng-pli-commons.umd.min.js +1 -1
  4. package/bundles/ng-pli-commons.umd.min.js.map +1 -1
  5. package/esm2015/lib/components/configuration-token/configuration-token.component.js +2 -2
  6. package/esm2015/lib/services/application.service.js +25 -3
  7. package/esm2015/lib/services/configuration-document.service.js +7 -1
  8. package/esm2015/lib/services/document-analysis-auto.service.js +26 -0
  9. package/esm2015/lib/services/survey.service.js +4 -1
  10. package/esm2015/public_api.js +2 -1
  11. package/esm2015/version.js +8 -8
  12. package/esm5/lib/components/configuration-token/configuration-token.component.js +2 -2
  13. package/esm5/lib/services/application.service.js +25 -3
  14. package/esm5/lib/services/configuration-document.service.js +7 -1
  15. package/esm5/lib/services/document-analysis-auto.service.js +28 -0
  16. package/esm5/lib/services/survey.service.js +4 -1
  17. package/esm5/public_api.js +2 -1
  18. package/esm5/version.js +8 -8
  19. package/fesm2015/ng-pli-commons.js +64 -11
  20. package/fesm2015/ng-pli-commons.js.map +1 -1
  21. package/fesm5/ng-pli-commons.js +65 -11
  22. package/fesm5/ng-pli-commons.js.map +1 -1
  23. package/lib/services/application.service.d.ts +9 -2
  24. package/lib/services/configuration-document.service.d.ts +1 -0
  25. package/lib/services/document-analysis-auto.service.d.ts +11 -0
  26. package/lib/services/survey.service.d.ts +2 -1
  27. package/ng-pli-commons.metadata.json +1 -1
  28. package/package.json +1 -1
  29. package/public_api.d.ts +1 -0
@@ -3597,6 +3597,12 @@
3597
3597
  params: new i1$1.HttpParams().set('formId', formId.toString())
3598
3598
  });
3599
3599
  };
3600
+ ConfigurationDocumentService.prototype.getByPromCodigoAndAutomaticValidation = function (promCodigo) {
3601
+ return this.httpClient.get(this.environment.host.backend.configuration +
3602
+ 'configuration-document/getByPromCodigoAndAutomaticValidation', {
3603
+ params: new i1$1.HttpParams().set('promCodigo', promCodigo.toString())
3604
+ });
3605
+ };
3600
3606
  /** */
3601
3607
  ConfigurationDocumentService.STATIC_TOKEN_DOCUMENTARY_KEY_ESPACIO = 'espacio';
3602
3608
  /** */
@@ -4525,7 +4531,7 @@
4525
4531
  ConfigurationTokenComponent.decorators = [
4526
4532
  { type: i0.Component, args: [{
4527
4533
  selector: 'pli-configuration-token',
4528
- template: "<div\r\n\t*ngIf=\"ready\"\r\n\tpliAuthorityDirective\r\n\t[authorities]=\"[p('ROLE_TOKENS_CONSULTAR')]\"\r\n\t[patCodigo]=\"patCodigo\"\r\n\t[externalAllowed]=\"false\"\r\n>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-md-12\">\r\n\t\t\t<h4 class=\"no-margin-top\" *ngIf=\"!showAsTitle\">\r\n\t\t\t\tTokens formulario, documentos, presupuesto, tareas y est\u00E1ticos\r\n\t\t\t</h4>\r\n\t\t\t<label class=\"no-margin-top form-control-label\" *ngIf=\"showAsTitle\">\r\n\t\t\t\tTokens formulario, documentos, presupuesto, tareas y est\u00E1ticos\r\n\t\t\t</label>\r\n\t\t\t<p-accordion [multiple]=\"true\">\r\n\t\t\t\t<ng-container *ngFor=\"let groupToken of lStaticToken\">\r\n\t\t\t\t\t<p-accordionTab\r\n\t\t\t\t\t\t*ngIf=\"validateVisibility(groupToken.tokenType)\"\r\n\t\t\t\t\t\theader=\"{{ groupToken.title.value }}\"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<div *ngFor=\"let panel of groupToken.value\">\r\n\t\t\t\t\t\t\t<h4 *ngIf=\"groupToken.value.length > 1\">{{ panel.title.value }}</h4>\r\n\t\t\t\t\t\t\t<hr *ngIf=\"groupToken.value.length > 1\" style=\"margin: 5px 0;\" />\r\n\t\t\t\t\t\t\t<div *ngFor=\"let staticToken of panel.value\" class=\"ui-g\">\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[0] && staticToken[0].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[0].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[0].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[0].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[0].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[1] && staticToken[1].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[1].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[1].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[1].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[1].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[2] && staticToken[2].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[2].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[2].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[2].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[2].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[3] && staticToken[3].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[3].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[3].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[3].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[3].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</p-accordionTab>\r\n\t\t\t\t</ng-container>\r\n\t\t\t\t<p-accordionTab\r\n\t\t\t\t\t*ngIf=\"\r\n\t\t\t\t\t\tlCalculatedToken && showCalculatedForm === false && showCalculated === true\r\n\t\t\t\t\t\"\r\n\t\t\t\t\theader=\"Tokens calculados\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<div *ngFor=\"let token of lCalculatedToken\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelCalculated(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelCalculated(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t\t<p-accordionTab *ngIf=\"snapShotTokens && showSnapshot\" header=\"Tokens snapshot\">\r\n\t\t\t\t\t<div *ngFor=\"let token of snapShotTokens\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelSnapshot(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelSnapshot(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t\t<p-accordionTab *ngIf=\"lGuaranteeTokens && showGuatantee\" header=\"Tokens Garantias\">\r\n\t\t\t\t\t<div *ngFor=\"let token of lGuaranteeTokens\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelGuarantee(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelGuarantee(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t</p-accordion>\r\n\t\t</div>\r\n\t\t<div\r\n\t\t\tclass=\"col-md-12\"\r\n\t\t\t*ngIf=\"lCalculatedToken && showCalculatedForm === true && showCalculated === true\"\r\n\t\t>\r\n\t\t\t<span style=\"width: 1px; height: 10px;\">&nbsp;</span>\r\n\t\t\t<h4 class=\"no-margin-top\">\r\n\t\t\t\tTokens calculados\r\n\t\t\t</h4>\r\n\t\t\t<p-table [value]=\"lCalculatedToken\" [responsive]=\"true\">\r\n\t\t\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t\t\t<tr class=\"text-align-center\">\r\n\t\t\t\t\t\t<th class=\"text-align-center\" width=\"40%\">Nombre</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Formula</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Creado</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Modificado</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Acciones</th>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</ng-template>\r\n\t\t\t\t<ng-template pTemplate=\"body\" let-token>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelCalculated(token))\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px;\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelCalculated(token) }}\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t{{ token.name }}\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class=\"cut-line\">{{ token.formula }}</td>\r\n\t\t\t\t\t\t<td>{{ token.createdAt | date: 'dd MMM yyyy' | lowercase }}</td>\r\n\t\t\t\t\t\t<td>{{ token.modifiedAt | date: 'dd MMM yyyy' | lowercase }}</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<div class=\"btn-group\" role=\"group\">\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-default\"\r\n\t\t\t\t\t\t\t\t\t(click)=\"initForm(token)\"\r\n\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\tEditar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-default dropdown-toggle\"\r\n\t\t\t\t\t\t\t\t\tdata-toggle=\"dropdown\"\r\n\t\t\t\t\t\t\t\t\taria-haspopup=\"true\"\r\n\t\t\t\t\t\t\t\t\taria-expanded=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<span class=\"caret\"></span>\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<ul class=\"dropdown-menu\">\r\n\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\t\thref=\"Javascript:;\"\r\n\t\t\t\t\t\t\t\t\t\t\t(click)=\"delete(token)\"\r\n\t\t\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_ELIMINAR')]\"\r\n\t\t\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t\t\t\t>Eliminar</a\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</ng-template>\r\n\t\t\t</p-table>\r\n\t\t\t<div class=\"text-align-right\" style=\"padding: 0.75rem 1.25rem;\">\r\n\t\t\t\t<button\r\n\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\tclass=\"btn btn-primary\"\r\n\t\t\t\t\t(click)=\"initForm(null)\"\r\n\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t>\r\n\t\t\t\t\tAgregar nuevo\r\n\t\t\t\t</button>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div>\r\n\t\t\t\t<form [formGroup]=\"frmToken\" (ngSubmit)=\"save()\" *ngIf=\"tokenSelected\">\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-md-12\">\r\n\t\t\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-6 col-md-6\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">\r\n\t\t\t\t\t\t\t\t\t\t<label for=\"name\" class=\"form-control-label\">Nombre</label>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\t\ttype=\"input\"\r\n\t\t\t\t\t\t\t\t\t\t\tclass=\"form-control\"\r\n\t\t\t\t\t\t\t\t\t\t\tname=\"name\"\r\n\t\t\t\t\t\t\t\t\t\t\tid=\"name\"\r\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Nombre\"\r\n\t\t\t\t\t\t\t\t\t\t\tformControlName=\"controlName\"\r\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]=\"tokenSelected.name\"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t<br /><br />\r\n\t\t\t\t\t\t\t\t\t\t<label class=\"form-control-label\">Llave:</label\r\n\t\t\t\t\t\t\t\t\t\t>&nbsp;&nbsp;<span style=\"font-weight: bold;\">{{\r\n\t\t\t\t\t\t\t\t\t\t\tresolveKeyCalculatedToken()\r\n\t\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-control-error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<small *ngIf=\"hasError(controlName, 'required')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t>Nombre es requerido</small\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-6 col-md-6\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">\r\n\t\t\t\t\t\t\t\t\t\t<label for=\"formula\" class=\"form-control-label\"\r\n\t\t\t\t\t\t\t\t\t\t\t>Formula</label\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<!-- <input type=\"input\" class=\"form-control\" name=\"formula\" id=\"formula\" placeholder=\"F\u00F3rmula\"\r\n formControlName=\"formula\" [(ngModel)]=\"tokenSelected.formula\" /> -->\r\n\t\t\t\t\t\t\t\t\t\t<textarea\r\n\t\t\t\t\t\t\t\t\t\t\tcols=\"50\"\r\n\t\t\t\t\t\t\t\t\t\t\trows=\"4\"\r\n\t\t\t\t\t\t\t\t\t\t\tclass=\"form-control\"\r\n\t\t\t\t\t\t\t\t\t\t\tname=\"formula\"\r\n\t\t\t\t\t\t\t\t\t\t\tid=\"formula\"\r\n\t\t\t\t\t\t\t\t\t\t\tformControlName=\"controlFormula\"\r\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]=\"tokenSelected.formula\"\r\n\t\t\t\t\t\t\t\t\t\t></textarea>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-control-error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<small *ngIf=\"hasError(controlFormula, 'required')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t>F\u00F3rmula es requerida</small\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"card-footer text-align-right\">\r\n\t\t\t\t\t\t\t\t<button type=\"button\" (click)=\"cancel()\" class=\"btn btn-link\">\r\n\t\t\t\t\t\t\t\t\tCancelar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"submit\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-success\"\r\n\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\tGuardar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</form>\r\n\t\t\t</div>\r\n\t\t\t<pli-snapshot-token\r\n\t\t\t\t[promCodigo]=\"promCodigo\"\r\n\t\t\t\t*ngIf=\"showSnapshotForm\"\r\n\t\t\t></pli-snapshot-token>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-sm-12 col-md-12 col-lg-12\">\r\n\t\t\t<pli-guarantee-token [promCodigo]=\"promCodigo\" *ngIf=\"showGuatanteeForm\">\r\n\t\t\t</pli-guarantee-token>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n",
4534
+ template: "<div\r\n\t*ngIf=\"ready\"\r\n\tpliAuthorityDirective\r\n\t[authorities]=\"[p('ROLE_TOKENS_CONSULTAR')]\"\r\n\t[patCodigo]=\"patCodigo\"\r\n\t[externalAllowed]=\"false\"\r\n>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-md-12\">\r\n\t\t\t<h4 class=\"no-margin-top\" *ngIf=\"!showAsTitle\">\r\n\t\t\t\tTokens formulario, documentos, presupuesto, tareas y est\u00E1ticos\r\n\t\t\t</h4>\r\n\t\t\t<label class=\"no-margin-top form-control-label\" *ngIf=\"showAsTitle\">\r\n\t\t\t\tTokens formulario, documentos, presupuesto, tareas y est\u00E1ticos\r\n\t\t\t</label>\r\n\t\t\t<p-accordion [multiple]=\"true\">\r\n\t\t\t\t<ng-container *ngFor=\"let groupToken of lStaticToken\">\r\n\t\t\t\t\t<p-accordionTab\r\n\t\t\t\t\t\t*ngIf=\"validateVisibility(groupToken.tokenType)\"\r\n\t\t\t\t\t\theader=\"{{ groupToken.title.value }}\"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<div *ngFor=\"let panel of groupToken.value\">\r\n\t\t\t\t\t\t\t<h4 *ngIf=\"groupToken.value && groupToken.value.length > 1\">\r\n\t\t\t\t\t\t\t\t{{ panel.title.value }}\r\n\t\t\t\t\t\t\t</h4>\r\n\t\t\t\t\t\t\t<hr\r\n\t\t\t\t\t\t\t\t*ngIf=\"groupToken.value && groupToken.value.length > 1\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin: 5px 0\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<div *ngFor=\"let staticToken of panel.value\" class=\"ui-g\">\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[0] && staticToken[0].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[0].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[0].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[0].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[0].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[1] && staticToken[1].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[1].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[1].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[1].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[1].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[2] && staticToken[2].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[2].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[2].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[2].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[2].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t*ngIf=\"staticToken[3] && staticToken[3].key\"\r\n\t\t\t\t\t\t\t\t\tclass=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t(click)=\"copyMessage(staticToken[3].key)\"\r\n\t\t\t\t\t\t\t\t\t\ttitle=\"{{ staticToken[3].key }}\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t<span title=\"{{ staticToken[3].value }}\">{{\r\n\t\t\t\t\t\t\t\t\t\tstaticToken[3].value\r\n\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</p-accordionTab>\r\n\t\t\t\t</ng-container>\r\n\t\t\t\t<p-accordionTab\r\n\t\t\t\t\t*ngIf=\"\r\n\t\t\t\t\t\tlCalculatedToken && showCalculatedForm === false && showCalculated === true\r\n\t\t\t\t\t\"\r\n\t\t\t\t\theader=\"Tokens calculados\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<div *ngFor=\"let token of lCalculatedToken\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelCalculated(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelCalculated(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t\t<p-accordionTab *ngIf=\"snapShotTokens && showSnapshot\" header=\"Tokens snapshot\">\r\n\t\t\t\t\t<div *ngFor=\"let token of snapShotTokens\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelSnapshot(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelSnapshot(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t\t<p-accordionTab *ngIf=\"lGuaranteeTokens && showGuatantee\" header=\"Tokens Garantias\">\r\n\t\t\t\t\t<div *ngFor=\"let token of lGuaranteeTokens\" class=\"ui-g\">\r\n\t\t\t\t\t\t<div class=\"ui-g-12 ui-md-6 ui-lg-3 cut-line\">\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelGuarantee(token))\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelGuarantee(token) }}\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t<span title=\"{{ token.name }}\">{{ token.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-accordionTab>\r\n\t\t\t</p-accordion>\r\n\t\t</div>\r\n\t\t<div\r\n\t\t\tclass=\"col-md-12\"\r\n\t\t\t*ngIf=\"lCalculatedToken && showCalculatedForm === true && showCalculated === true\"\r\n\t\t>\r\n\t\t\t<span style=\"width: 1px; height: 10px\">&nbsp;</span>\r\n\t\t\t<h4 class=\"no-margin-top\">Tokens calculados</h4>\r\n\t\t\t<p-table [value]=\"lCalculatedToken\" [responsive]=\"true\">\r\n\t\t\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t\t\t<tr class=\"text-align-center\">\r\n\t\t\t\t\t\t<th class=\"text-align-center\" width=\"40%\">Nombre</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Formula</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Creado</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Modificado</th>\r\n\t\t\t\t\t\t<th class=\"text-align-center\">Acciones</th>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</ng-template>\r\n\t\t\t\t<ng-template pTemplate=\"body\" let-token>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t(click)=\"copyMessage(labelCalculated(token))\"\r\n\t\t\t\t\t\t\t\tstyle=\"margin-right: 8px\"\r\n\t\t\t\t\t\t\t\ttitle=\"{{ labelCalculated(token) }}\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span class=\"fa fa-clipboard\"></span>\r\n\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t{{ token.name }}\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td class=\"cut-line\">{{ token.formula }}</td>\r\n\t\t\t\t\t\t<td>{{ token.createdAt | date: 'dd MMM yyyy' | lowercase }}</td>\r\n\t\t\t\t\t\t<td>{{ token.modifiedAt | date: 'dd MMM yyyy' | lowercase }}</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<div class=\"btn-group\" role=\"group\">\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-default\"\r\n\t\t\t\t\t\t\t\t\t(click)=\"initForm(token)\"\r\n\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\tEditar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-default dropdown-toggle\"\r\n\t\t\t\t\t\t\t\t\tdata-toggle=\"dropdown\"\r\n\t\t\t\t\t\t\t\t\taria-haspopup=\"true\"\r\n\t\t\t\t\t\t\t\t\taria-expanded=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t<span class=\"caret\"></span>\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<ul class=\"dropdown-menu\">\r\n\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\t\thref=\"Javascript:;\"\r\n\t\t\t\t\t\t\t\t\t\t\t(click)=\"delete(token)\"\r\n\t\t\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_ELIMINAR')]\"\r\n\t\t\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t\t\t\t>Eliminar</a\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</ng-template>\r\n\t\t\t</p-table>\r\n\t\t\t<div class=\"text-align-right\" style=\"padding: 0.75rem 1.25rem\">\r\n\t\t\t\t<button\r\n\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\tclass=\"btn btn-primary\"\r\n\t\t\t\t\t(click)=\"initForm(null)\"\r\n\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t>\r\n\t\t\t\t\tAgregar nuevo\r\n\t\t\t\t</button>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div>\r\n\t\t\t\t<form [formGroup]=\"frmToken\" (ngSubmit)=\"save()\" *ngIf=\"tokenSelected\">\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-md-12\">\r\n\t\t\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-6 col-md-6\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">\r\n\t\t\t\t\t\t\t\t\t\t<label for=\"name\" class=\"form-control-label\">Nombre</label>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\t\ttype=\"input\"\r\n\t\t\t\t\t\t\t\t\t\t\tclass=\"form-control\"\r\n\t\t\t\t\t\t\t\t\t\t\tname=\"name\"\r\n\t\t\t\t\t\t\t\t\t\t\tid=\"name\"\r\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Nombre\"\r\n\t\t\t\t\t\t\t\t\t\t\tformControlName=\"controlName\"\r\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]=\"tokenSelected.name\"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t<br /><br />\r\n\t\t\t\t\t\t\t\t\t\t<label class=\"form-control-label\">Llave:</label\r\n\t\t\t\t\t\t\t\t\t\t>&nbsp;&nbsp;<span style=\"font-weight: bold\">{{\r\n\t\t\t\t\t\t\t\t\t\t\tresolveKeyCalculatedToken()\r\n\t\t\t\t\t\t\t\t\t\t}}</span>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-control-error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<small *ngIf=\"hasError(controlName, 'required')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t>Nombre es requerido</small\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t<div class=\"col-sm-6 col-md-6\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-group required\">\r\n\t\t\t\t\t\t\t\t\t\t<label for=\"formula\" class=\"form-control-label\"\r\n\t\t\t\t\t\t\t\t\t\t\t>Formula</label\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<!-- <input type=\"input\" class=\"form-control\" name=\"formula\" id=\"formula\" placeholder=\"F\u00F3rmula\"\r\n formControlName=\"formula\" [(ngModel)]=\"tokenSelected.formula\" /> -->\r\n\t\t\t\t\t\t\t\t\t\t<textarea\r\n\t\t\t\t\t\t\t\t\t\t\tcols=\"50\"\r\n\t\t\t\t\t\t\t\t\t\t\trows=\"4\"\r\n\t\t\t\t\t\t\t\t\t\t\tclass=\"form-control\"\r\n\t\t\t\t\t\t\t\t\t\t\tname=\"formula\"\r\n\t\t\t\t\t\t\t\t\t\t\tid=\"formula\"\r\n\t\t\t\t\t\t\t\t\t\t\tformControlName=\"controlFormula\"\r\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]=\"tokenSelected.formula\"\r\n\t\t\t\t\t\t\t\t\t\t></textarea>\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-control-error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<small *ngIf=\"hasError(controlFormula, 'required')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t>F\u00F3rmula es requerida</small\r\n\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"card-footer text-align-right\">\r\n\t\t\t\t\t\t\t\t<button type=\"button\" (click)=\"cancel()\" class=\"btn btn-link\">\r\n\t\t\t\t\t\t\t\t\tCancelar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\ttype=\"submit\"\r\n\t\t\t\t\t\t\t\t\tclass=\"btn btn-success\"\r\n\t\t\t\t\t\t\t\t\tpliAuthorityDirective\r\n\t\t\t\t\t\t\t\t\t[authorities]=\"[p('ROLE_TOKENS_CREAR_EDITAR')]\"\r\n\t\t\t\t\t\t\t\t\t[patCodigo]=\"patCodigo\"\r\n\t\t\t\t\t\t\t\t\t[externalAllowed]=\"false\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\tGuardar\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</form>\r\n\t\t\t</div>\r\n\t\t\t<pli-snapshot-token\r\n\t\t\t\t[promCodigo]=\"promCodigo\"\r\n\t\t\t\t*ngIf=\"showSnapshotForm\"\r\n\t\t\t></pli-snapshot-token>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"row\">\r\n\t\t<div class=\"col-sm-12 col-md-12 col-lg-12\">\r\n\t\t\t<pli-guarantee-token [promCodigo]=\"promCodigo\" *ngIf=\"showGuatanteeForm\">\r\n\t\t\t</pli-guarantee-token>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n",
4529
4535
  styles: [""]
4530
4536
  }] }
4531
4537
  ];
@@ -5014,10 +5020,11 @@
5014
5020
  return this.httpClient.get(this.environment.host.backend.backoffice + 'application/getHistoryState', { params: new i1$1.HttpParams().set('applicationId', applicationId.toString()) });
5015
5021
  };
5016
5022
  /** it saves massively */
5017
- ApplicationService.prototype.saveMassive = function (listApplicationDataFormRequest, applicationsToVerifyDocument) {
5023
+ ApplicationService.prototype.saveMassive = function (listApplicationDataFormRequest, applicationsToVerifyDocument, promCodigo) {
5018
5024
  var listDataApplication = {
5019
5025
  listApplicationDataFormRequest: listApplicationDataFormRequest,
5020
- applicationsToVerifyDocument: applicationsToVerifyDocument
5026
+ applicationsToVerifyDocument: applicationsToVerifyDocument,
5027
+ promCodigo: promCodigo
5021
5028
  };
5022
5029
  return this.httpClient.post(this.environment.host.backend.configuration + 'application-dataform/saveMultiple', listDataApplication, this.headerJson);
5023
5030
  };
@@ -5135,6 +5142,13 @@
5135
5142
  headers: this.headerJson.headers
5136
5143
  });
5137
5144
  };
5145
+ ApplicationService.prototype.getNotSubmittedByFullDocuments = function (promCodigo, stateId) {
5146
+ return this.httpClient.get(this.environment.host.backend.backoffice + 'application/getNotSubmittedByFullDocuments', {
5147
+ params: new i1$1.HttpParams()
5148
+ .set('promCodigo', promCodigo)
5149
+ .set('stateId', String(stateId))
5150
+ });
5151
+ };
5138
5152
  /**
5139
5153
  *
5140
5154
  * @param applicationId
@@ -5154,6 +5168,20 @@
5154
5168
  ApplicationService.prototype.updateSingleApplicationValue = function (applicationValueRequestTO) {
5155
5169
  return this.httpClient.put(this.environment.host.backend.frontoffice + "application/updateSingleApplicationValue", applicationValueRequestTO);
5156
5170
  };
5171
+ /** It returns the list by dataTableParameters for automatic document analysis*/
5172
+ ApplicationService.prototype.getByByDocumentValidation = function (dataTableParameters) {
5173
+ return this.httpClient.post(this.environment.host.backend.backoffice + 'application/getByByDocumentValidation', dataTableParameters);
5174
+ };
5175
+ /** Change document status manually.*/
5176
+ ApplicationService.prototype.updateStatusValidationDocument = function (changeStatusDocumenValidationRequest) {
5177
+ return this.httpClient.post(this.environment.host.backend.backoffice + 'application/updateStatusValidationDocument', changeStatusDocumenValidationRequest);
5178
+ };
5179
+ ApplicationService.prototype.updateAnalysisDocumentInfo = function (applicationFormTO) {
5180
+ return this.httpClient.post(this.environment.host.backend.frontoffice + 'application/updateAnalysisDocumentInfo', applicationFormTO);
5181
+ };
5182
+ ApplicationService.prototype.verifyAutoAnalysisDoc = function (sendDocAnalysisAutoDto) {
5183
+ return this.httpClient.post(this.environment.host.backend.backoffice + 'application/verifyAutoAnalysisDoc', sendDocAnalysisAutoDto);
5184
+ };
5157
5185
  ApplicationService.decorators = [
5158
5186
  { type: i0.Injectable, args: [{
5159
5187
  providedIn: 'root'
@@ -15320,6 +15348,31 @@
15320
15348
  return DataLetterSegmentationService;
15321
15349
  }());
15322
15350
 
15351
+ var DocumentAnalysisAutoService = /** @class */ (function () {
15352
+ function DocumentAnalysisAutoService(environment, httpClient) {
15353
+ this.environment = environment;
15354
+ this.httpClient = httpClient;
15355
+ this.headerJson = { headers: new i1$1.HttpHeaders({ 'Content-Type': 'application/json' }) };
15356
+ }
15357
+ /** It send All applications for automatic document analysis */
15358
+ DocumentAnalysisAutoService.prototype.send = function (sendDocAnalysisAutoDto) {
15359
+ return this.httpClient.post(this.environment.host.backend.queue + 'docAnalysisAuto/send', sendDocAnalysisAutoDto);
15360
+ };
15361
+ DocumentAnalysisAutoService.decorators = [
15362
+ { type: i0.Injectable, args: [{
15363
+ providedIn: 'root'
15364
+ },] }
15365
+ ];
15366
+ DocumentAnalysisAutoService.ctorParameters = function () {
15367
+ return [
15368
+ { type: undefined, decorators: [{ type: i0.Inject, args: ['environment',] }] },
15369
+ { type: i1$1.HttpClient }
15370
+ ];
15371
+ };
15372
+ DocumentAnalysisAutoService.ngInjectableDef = i0.defineInjectable({ factory: function DocumentAnalysisAutoService_Factory() { return new DocumentAnalysisAutoService(i0.inject("environment"), i0.inject(i1$1.HttpClient)); }, token: DocumentAnalysisAutoService, providedIn: "root" });
15373
+ return DocumentAnalysisAutoService;
15374
+ }());
15375
+
15323
15376
  var DocumentValidationAttemptService = /** @class */ (function () {
15324
15377
  function DocumentValidationAttemptService(environment, httpClient) {
15325
15378
  this.environment = environment;
@@ -16800,6 +16853,9 @@
16800
16853
  .set('username', username)
16801
16854
  });
16802
16855
  };
16856
+ SurveyService.prototype.reactivateSurvey = function (parameters) {
16857
+ return this.httpClient.post(this.environment.host.backend.frontoffice + 'survey/reactivateSurvey', parameters);
16858
+ };
16803
16859
  SurveyService.decorators = [
16804
16860
  { type: i0.Injectable, args: [{
16805
16861
  providedIn: 'root'
@@ -17142,9 +17198,9 @@
17142
17198
  /* tslint:disable */
17143
17199
  var VERSION = {
17144
17200
  "dirty": true,
17145
- "raw": "v0.0.18-1847-g43349303-dirty",
17146
- "hash": "g43349303",
17147
- "distance": 1847,
17201
+ "raw": "v0.0.18-1873-g99100324-dirty",
17202
+ "hash": "g99100324",
17203
+ "distance": 1873,
17148
17204
  "tag": "v0.0.18",
17149
17205
  "semver": {
17150
17206
  "options": {
@@ -17160,10 +17216,10 @@
17160
17216
  "build": [],
17161
17217
  "version": "0.0.18"
17162
17218
  },
17163
- "suffix": "1847-g43349303-dirty",
17164
- "semverString": "0.0.18+1847.g43349303",
17165
- "version": "0.0.1337",
17166
- "buildTimestamp": "2022-02-17T16:10:40.499Z"
17219
+ "suffix": "1873-g99100324-dirty",
17220
+ "semverString": "0.0.18+1873.g99100324",
17221
+ "version": "0.0.1338",
17222
+ "buildTimestamp": "2022-02-19T22:21:54.602Z"
17167
17223
  };
17168
17224
  /* tslint:enable */
17169
17225
 
@@ -17236,6 +17292,7 @@
17236
17292
  exports.CubeService = CubeService;
17237
17293
  exports.DataFormService = DataFormService;
17238
17294
  exports.DataLetterSegmentationService = DataLetterSegmentationService;
17295
+ exports.DocumentAnalysisAutoService = DocumentAnalysisAutoService;
17239
17296
  exports.DocumentManagementService = DocumentManagementService;
17240
17297
  exports.DocumentValidationAttemptService = DocumentValidationAttemptService;
17241
17298
  exports.DocumentService = DocumentService;