form-aurora-stefanini 0.1.0
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.
- package/README.md +133 -0
- package/bundles/form-aurora-stefanini.umd.js +975 -0
- package/bundles/form-aurora-stefanini.umd.js.map +1 -0
- package/bundles/form-aurora-stefanini.umd.min.js +16 -0
- package/bundles/form-aurora-stefanini.umd.min.js.map +1 -0
- package/esm2015/form-aurora-stefanini.js +5 -0
- package/esm2015/lib/fill.js +3 -0
- package/esm2015/lib/form-aurora.component.js +681 -0
- package/esm2015/lib/form-aurora.module.js +22 -0
- package/esm2015/public-api.js +6 -0
- package/esm5/form-aurora-stefanini.js +5 -0
- package/esm5/lib/fill.js +7 -0
- package/esm5/lib/form-aurora.component.js +733 -0
- package/esm5/lib/form-aurora.module.js +25 -0
- package/esm5/public-api.js +6 -0
- package/fesm2015/form-aurora-stefanini.js +703 -0
- package/fesm2015/form-aurora-stefanini.js.map +1 -0
- package/fesm5/form-aurora-stefanini.js +758 -0
- package/fesm5/form-aurora-stefanini.js.map +1 -0
- package/form-aurora-stefanini.d.ts +4 -0
- package/form-aurora-stefanini.metadata.json +1 -0
- package/lib/fill.d.ts +6 -0
- package/lib/form-aurora.component.d.ts +106 -0
- package/lib/form-aurora.module.d.ts +2 -0
- package/package.json +28 -0
- package/public-api.d.ts +2 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"form-aurora-stefanini.js","sources":["ng://form-aurora-stefanini/lib/form-aurora.component.ts","ng://form-aurora-stefanini/lib/form-aurora.module.ts","ng://form-aurora-stefanini/public-api.ts","ng://form-aurora-stefanini/form-aurora-stefanini.ts"],"sourcesContent":["import {\r\n Component,\r\n Injectable,\r\n Input,\r\n ElementRef,\r\n OnInit,\r\n Renderer2,\r\n ViewChild,\r\n OnChanges,\r\n SimpleChanges,\r\n Output,\r\n EventEmitter\r\n} from '@angular/core';\r\nimport {FormGroup, FormControl, NgForm, Form} from '@angular/forms';\r\nimport {HttpClient} from '@angular/common/http';\r\nimport {Fill} from './fill';\r\n// import moment from 'moment';\r\nimport {NgbDateAdapter, NgbDateParserFormatter, NgbDateStruct, NgbDatepickerI18n} from '@ng-bootstrap/ng-bootstrap';\r\nimport * as moment_ from 'moment';\r\n\r\nconst moment = moment_;\r\n// import { regexType } from \"@app/_shared/_util/regex\";\r\n// import { ExternalService } from '@app/_shared/_services/external.service';\r\n// import { AuroraService } from '@app/_shared/_services/aurora.service';\r\n\r\n/**\r\n * This Service handles how the date is represented in scripts i.e. ngModel.\r\n */\r\n@Injectable()\r\nexport class CustomAdapter extends NgbDateAdapter<string> {\r\n\r\n readonly DELIMITER = '/';\r\n\r\n fromModel(value: string | null): NgbDateStruct | null {\r\n if (value) {\r\n const date = value.split(this.DELIMITER);\r\n return {\r\n day: parseInt(date[0], 10),\r\n month: parseInt(date[1], 10),\r\n year: parseInt(date[2], 10)\r\n };\r\n }\r\n return null;\r\n }\r\n\r\n toModel(date: NgbDateStruct | null): string | null {\r\n //return date ? date.day + this.DELIMITER + date.month + this.DELIMITER + date.year : null;\r\n return date ? (date.day < 10 ? 0 + date.day : date.day) + this.DELIMITER + (date.month < 10 ? 0 + date.month : date.month) + this.DELIMITER + date.year : '';\r\n }\r\n}\r\n\r\n/**\r\n * This Service handles how the date is rendered and parsed from keyboard i.e. in the bound input field.\r\n */\r\n@Injectable()\r\nexport class CustomDateParserFormatter extends NgbDateParserFormatter {\r\n\r\n readonly DELIMITER = '/';\r\n\r\n parse(value: string): NgbDateStruct | null {\r\n if (value) {\r\n const date = value.split(this.DELIMITER);\r\n return {\r\n day: parseInt(date[0], 10),\r\n month: parseInt(date[1], 10),\r\n year: parseInt(date[2], 10)\r\n };\r\n }\r\n return null;\r\n }\r\n\r\n format(date: NgbDateStruct | null): string {\r\n return date ? (date.day < 10 ? '0' + date.day : date.day) + this.DELIMITER + (date.month < 10 ? '0' + date.month : date.month) + this.DELIMITER + date.year : '';\r\n }\r\n}\r\n\r\nconst I18N_VALUES = {\r\n 'es': {\r\n weekdays: ['Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa', 'Do'],\r\n months: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],\r\n weekLabel: 'sem'\r\n }\r\n // other languages you would support\r\n};\r\n\r\n@Injectable()\r\nexport class I18n {\r\n language = 'es';\r\n}\r\n\r\n// Define custom service providing the months and weekdays translations\r\n@Injectable()\r\nexport class CustomDatepickerI18n extends NgbDatepickerI18n {\r\n constructor(private _i18n: I18n) {\r\n super();\r\n }\r\n\r\n getWeekdayLabel(weekday: number): string {\r\n return I18N_VALUES[this._i18n.language].weekdays[weekday - 1];\r\n }\r\n\r\n getWeekLabel(): string {\r\n return I18N_VALUES[this._i18n.language].weekLabel;\r\n }\r\n\r\n getMonthShortName(month: number): string {\r\n return I18N_VALUES[this._i18n.language].months[month - 1];\r\n }\r\n\r\n getMonthFullName(month: number): string {\r\n return this.getMonthShortName(month);\r\n }\r\n\r\n getDayAriaLabel(date: NgbDateStruct): string {\r\n return `${date.day}-${date.month}-${date.year}`;\r\n }\r\n\r\n getWeekdayShortName(weekday: number): string {\r\n return I18N_VALUES[this._i18n.language].weekdays[weekday - 1];\r\n };\r\n}\r\n\r\n\r\n@Component({\r\n selector: 'lib-FormAurora',\r\n templateUrl: './form-aurora.component.html',\r\n styleUrls: ['./form-aurora.component.css'],\r\n providers: [\r\n {provide: NgbDateAdapter, useClass: CustomAdapter},\r\n {provide: NgbDateParserFormatter, useClass: CustomDateParserFormatter},\r\n {provide: NgbDatepickerI18n, useClass: CustomDatepickerI18n},\r\n I18n\r\n ]\r\n})\r\nexport class FormAuroraComponent implements OnInit, OnChanges {\r\n\r\n @Input() dataClassCss: any;\r\n @Input() dataForm: any;\r\n @Input() clickSubmit: any;\r\n @Input() dataReloadForm: any;\r\n @Input() welcomeTitle: any;\r\n @Input() welcomeDescription: any;\r\n @Input() urlPdf: string;\r\n @Input() nameCompany: string;\r\n @Input() schedule: string;\r\n @Input() getTermsAndConditions: any;\r\n @Input() regexType: any;\r\n @Input() getIpAddress: any;\r\n @ViewChild('formDynamic', {static: true}) formDynamic: NgForm;\r\n @Output() response = new EventEmitter<any>();\r\n @Output() summit = new EventEmitter<any>();\r\n @Output() setAcceptanceDocument = new EventEmitter<any>();\r\n\r\n tipodocNumDoc: boolean = false;\r\n onSubmitEvent: any = false;\r\n countSubmit = 0;\r\n watchValid = false;\r\n watchRequired = false;\r\n captchaValid: boolean = false;\r\n displayMonths = 2;\r\n navigation = 'select';\r\n showWeekNumbers = false;\r\n outsideDays = 'visible';\r\n respServiceSegmentation: any = null;\r\n\r\n\r\n //emailPattern = \"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$\";\r\n\r\n today = moment(new Date());\r\n maxYear = this.today.year();\r\n minYear = this.today.year() - 82;\r\n minDate = this.minYear.toString() + '-' + this.today.month().toString().padStart(2, '0') + '-' + this.today.date().toString().padStart(2, '0');// {year: this.minYear, month: this.today.month(), day: this.today.date()};\r\n maxDate = this.maxYear.toString() + '-' + (this.today.month() + 1).toString().padStart(2, '0') + '-' + this.today.date().toString().padStart(2, '0');// {year: this.maxYear, month: this.today.month() + 1, day: this.today.date()};\r\n\r\n //Revisar variables\r\n recharge: boolean = false;\r\n indicativo: string = '57';\r\n // @ViewChild(\"modalTurns\") myModal: ElementRef;\r\n @ViewChild('modalTurns', {static: false}) myModal: ElementRef;\r\n filldata: Fill;\r\n defaultDocType: string = 'Cédula de ciudadanía';\r\n\r\n\r\n constructor(private http: HttpClient) {\r\n }\r\n\r\n ngOnInit(): void {\r\n console.log('nueva version 0.1.0');\r\n this.minDate = new Date(this.minDate).toISOString().split('T')[0];\r\n setTimeout(() => {\r\n this.startComponent();\r\n }, 2000);\r\n }\r\n\r\n\r\n startComponent() {\r\n //ordena los campos\r\n if (this.dataForm != null && this.dataForm.formQuestions != undefined) {\r\n //Same row fields\r\n this.tipodocNumDoc = (this.dataForm.formQuestions.some(question => question.question.value === 'tipoDoc') && this.dataForm.formQuestions.some(question => question.question.value === 'numeroDoc')) ? true : false;\r\n\r\n this.dataForm.formQuestions = this.dataForm.formQuestions.sort(function(a, b) {\r\n return a.order - b.order;\r\n });\r\n let existcaptcha = this.dataForm.formQuestions.filter((item) => item.question.questionType.id == 6);\r\n\r\n if (existcaptcha.length == 0) {\r\n this.captchaValid = true;\r\n }\r\n\r\n for (const item of this.dataForm.formQuestions) {\r\n if (item.question.maxlength == null || item.question.maxlength == undefined || item.question.maxlength == 0) {\r\n item.question.maxlength = 524288; //defaultvalue\r\n }\r\n\r\n if (item.question.minLength == null || item.question.minLength == undefined) {\r\n item.question.minLength = 0;\r\n }\r\n\r\n this.dataReloadForm.forEach(element => {\r\n this.filldata = element;\r\n\r\n if ((item.question.questionType.id === 2 || item.question.questionType.id === 1 ||\r\n item.question.questionType.id === 3) && (this.filldata.data !== null &&\r\n this.filldata.data !== undefined) && item.question.id === this.filldata.id) {\r\n item.question.registred = this.filldata.data;\r\n }\r\n });\r\n\r\n if (item.question.registred == null || item.question.minLength == undefined) {\r\n item.question.registred = '';\r\n }\r\n }\r\n }\r\n }\r\n\r\n range = new FormGroup({\r\n start: new FormControl(),\r\n end: new FormControl(),\r\n });\r\n\r\n resolvedCaptcha(captchaResponse: string) {\r\n this.captchaValid = true;\r\n if (!this.formDynamic.form.value.captcha) {\r\n this.formDynamic.controls.captcha.setValue(captchaResponse);\r\n this.formDynamic.form.value.captcha = captchaResponse;\r\n document.getElementById('btnIng').style.opacity = !this.formDynamic.valid ? '0.65' : '1';\r\n }\r\n }\r\n\r\n //Forms\r\n //Metodo para evitar el render de los items del for\r\n public trackByIndex(index: number, obj: any): any {\r\n return index;\r\n }\r\n\r\n onChangeValidPatter(event, question) {\r\n if (question.pattern != undefined) {\r\n let valid = true;\r\n let keyvalid = [8, 32, 37, 38, 39, 40, 46, 9];\r\n //diferente de Backpsace\r\n //se deja catch por error no controlable en otro tiempo de ejecucion\r\n try {\r\n if (!keyvalid.includes(event.keyCode)) {\r\n const regex = new RegExp(question.pattern);\r\n valid = regex.test(event.key);\r\n }\r\n } catch (error) {\r\n }\r\n return valid;\r\n }\r\n\r\n document.getElementById('char' + question.value).setAttribute('hidden', 'true');\r\n\r\n //if temporal mientras se migran todos los tipos de campos al foreach\r\n if (question.questionType.id != 11 && question.questionType.id != 7) {\r\n if (this.validMinLength(this.formDynamic, question)) {\r\n document.getElementById(question.value).style.borderColor = '#FF0000';\r\n document.getElementById('ml' + question.value).removeAttribute('hidden');\r\n } else {\r\n document.getElementById(question.value).style.borderColor = '#E4E4E4';\r\n document.getElementById('ml' + question.value).setAttribute('hidden', 'true');\r\n }\r\n if (this.validMaxLength(this.formDynamic, question)) {\r\n document.getElementById(question.value).style.borderColor = '#FF0000';\r\n document.getElementById('mxl' + question.value).removeAttribute('hidden');\r\n } else {\r\n document.getElementById(question.value).style.borderColor = '#E4E4E4';\r\n document.getElementById('mxl' + question.value).setAttribute('hidden', 'true');\r\n }\r\n }\r\n\r\n\r\n this.dataForm.formQuestions.forEach(formQuestion => {\r\n switch (formQuestion.question.questionType.id) {\r\n //se valida campo de tipo calendario\r\n case 7:\r\n if (question.questionType.id == 7)\r\n this.calendarRulesValidate(formQuestion);\r\n break;\r\n //se valida campo de tipo email\r\n case 11:\r\n if (question.questionType.id == 11)\r\n this.emailRulesValidate(formQuestion);\r\n break;\r\n }\r\n });\r\n\r\n document.getElementById('btnIng').style.opacity = !this.formDynamic.valid ? '0.65' : '1';\r\n }\r\n\r\n validOnlyText(event) {\r\n let regex = /^[a-zA-Z\\u00C0-\\u017F]+$/g;\r\n if (event.charCode == 32) {\r\n return true;\r\n }\r\n let valid = regex.test(event.key);\r\n\r\n return valid;\r\n }\r\n\r\n validDate(event) {\r\n /*let pattern = /(?:0[1-9]|[12][0-9]|3[01])\\/(?:0[1-9]|1[0-2])\\/(?:19|20)[0-9]{2}/;\r\n const regex = new RegExp(pattern);\r\n valid = regex.test(event.key);\r\n */\r\n const matches = String(event.key).match(this.regexType.date.exp);\r\n let valid = true;\r\n if (matches === null)\r\n valid = false;\r\n\r\n // alert(valid);\r\n\r\n return valid;\r\n\r\n }\r\n\r\n onChangeValidDate(event) {\r\n\r\n //let pattern = /(?:0[1-9]|1[0-2])\\/(?:0[1-9]|[12][0-9]|3[01])\\/(?:19|20)[0-9]{2}/;\r\n let dateN = /[0-9]|\\//;\r\n let valid = true;\r\n const regex = new RegExp(dateN);\r\n valid = regex.test(event.key);\r\n return valid;\r\n\r\n }\r\n\r\n rediretoutside(event, question) {\r\n //se deja catch por error no controlable en otro tiempo de ejecucion\r\n try {\r\n event.preventDefault();\r\n window.open(question.value, '_blank');\r\n } catch (error) {\r\n }\r\n }\r\n\r\n /**\r\n * Dispatch submit event for validations exists\r\n * @param change\r\n */\r\n ngOnChanges(change: SimpleChanges) {\r\n this.countSubmit++;\r\n }\r\n\r\n //onSubmit(form: NgForm) {\r\n onSubmit() {\r\n let form = this.formDynamic;\r\n this.watchValid = true;\r\n this.watchRequired = true;\r\n\r\n if (form.valid) {\r\n if (!this.validRulesFields(form.controls['numeroDoc'].value.toString(), form.controls['celular'].value.toString(), form.controls['email'].value))\r\n return false;\r\n }\r\n\r\n if (this.validMinlenghtAllQuestions(form.value) && this.validMaxLengthAllQuestions(form.value) && form.valid) {\r\n if (this.dataForm.urlSend != '' && this.captchaValid) {\r\n this.http.post<any>(this.dataForm.urlSend, form.value).subscribe((resp) => this.response.emit(resp));\r\n } else if (form.valid && this.captchaValid) {\r\n this.summit.emit(form.value);\r\n }\r\n }\r\n }\r\n\r\n validRulesFields(numeroDoc: String, numeroCel: String, email: String): boolean {\r\n // Validaciones para celular en caso de indicativo en Colombia\r\n let cel = document.getElementById('charcelular');\r\n let doc = document.getElementById('charnumeroDoc');\r\n let valOk = true;\r\n if (this.indicativo == '+57' || this.indicativo == '57') {\r\n let stringOrdenado = this.orderString(numeroDoc);\r\n if (this.nameCompany.toUpperCase() !== 'CLARO') {//claro acepta nro consecutivos\r\n if (numeroDoc == stringOrdenado) {\r\n doc.style.borderColor = '#FF0000';\r\n doc.removeAttribute('hidden');\r\n doc.textContent = 'El numero documento No debe contener caracteres consecutivos';\r\n valOk = false;\r\n\r\n //this.msgErrorCampo = \"El numero documento No debe contener caracteres consecutivos\";\r\n //return false;\r\n }\r\n }\r\n if (numeroCel.substring(0, 1) != '3') {\r\n cel.style.borderColor = '#FF0000';\r\n cel.removeAttribute('hidden');\r\n cel.textContent = 'El primer carácter del celular debe ser 3';\r\n valOk = false;\r\n\r\n //this.msgErrorCampo = \"El primer carácter del celular debe ser 3\";\r\n //return false;\r\n }\r\n /*\r\n if (parseInt(numeroCel.substring(0, 3)) > 350) {\r\n cel.style.borderColor = \"#FF0000\";\r\n cel.removeAttribute(\"hidden\");\r\n cel.textContent = \"El prefijo del celular no debe ser mayor a 350\";\r\n valOk = false;\r\n //this.msgErrorCampo = \"El prefijo del celular no debe ser mayor a 350\";\r\n //return false;\r\n }\r\n */\r\n //En caso de que el número se repita, ejemplo 33333333\r\n let listnumber = numeroDoc.substring(0, 1);\r\n for (let index = 1; index < numeroDoc.length; index++) {\r\n listnumber = listnumber + numeroDoc.substring(0, 1);\r\n }\r\n\r\n if (numeroDoc == listnumber) {\r\n doc.style.borderColor = '#FF0000';\r\n doc.removeAttribute('hidden');\r\n doc.textContent = 'Caracteres numéricos no se pueden repetirse de manera continua ';\r\n valOk = false;\r\n\r\n //this.msgErrorCampo = \"Caracteres numéricos no se pueden repetirse de manera continua \";\r\n //return false;\r\n }\r\n\r\n // En caso de que el número se repita, ejemplo 33333333\r\n let arrayPhoneRepeat = Array.from(String(numeroCel), Number);\r\n let arrayPhoneOutRepeat = [...new Set(arrayPhoneRepeat)];\r\n if (arrayPhoneOutRepeat.length == 1) {\r\n cel.style.borderColor = '#FF0000';\r\n cel.removeAttribute('hidden');\r\n cel.textContent = 'El número que ingresa no es valido';\r\n valOk = false;\r\n //this.msgErrorCampo = \"El número que ingresa no es valido\";\r\n //return false;\r\n }\r\n } else if (this.indicativo == '+593' || this.indicativo == '593') {\r\n if (numeroCel.substring(0, 1) != '9') {\r\n cel.style.borderColor = '#FF0000';\r\n cel.removeAttribute('hidden');\r\n cel.textContent = 'El primer carácter del celular debe ser 9';\r\n valOk = false;\r\n //this.msgErrorCampo = \"El primer carácter del celular debe ser 9\";\r\n //return false;\r\n }\r\n }\r\n //se validan los campos por tipo de campo y no por value\r\n this.dataForm.formQuestions.forEach(formQuestion => {\r\n switch (formQuestion.question.questionType.id) {\r\n //se valida campo de tipo email\r\n case 11:\r\n valOk = this.emailRulesValidate(formQuestion);\r\n break;\r\n }\r\n });\r\n\r\n return valOk;\r\n }\r\n\r\n orderString(value: String) {\r\n let arrayNumber = [];\r\n for (let index = 0; index < value.length; index++) {\r\n arrayNumber.push(parseInt(value.substring(index, index + 1)));\r\n }\r\n //ordena el array\r\n arrayNumber.sort(function(a, b) {\r\n return a - b;\r\n });\r\n let numberOrder = '';\r\n numberOrder = arrayNumber[0];\r\n for (let index = 1; index < arrayNumber.length; index++) {\r\n numberOrder = numberOrder + (arrayNumber[0] + index).toString();\r\n }\r\n return numberOrder;\r\n }\r\n\r\n validMinlenghtAllQuestions(form: any): boolean {\r\n for (const item of this.dataForm.formQuestions) {\r\n if (item.question.questionType.id == 1 || item.question.questionType.id == 2) {\r\n let minLength = parseInt(item.question.minLength);\r\n let formValueLength = parseInt(form[item.question.value].toString().length);\r\n if (minLength > 0 && formValueLength != minLength && formValueLength < minLength) return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n validMaxLengthAllQuestions(form: any): boolean {\r\n for (const item of this.dataForm.formQuestions) {\r\n if (item.question.questionType.id == 1 || item.question.questionType.id == 2) {\r\n let maxLength = parseInt(item.question.maxLength);\r\n let formValueLength = parseInt(form[item.question.value].toString().length);\r\n if (maxLength > 0 && formValueLength != maxLength && formValueLength > maxLength) return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n validRequired(form: NgForm, question): Boolean {\r\n //se deja catch por error no controlable en otro tiempo de ejecucion\r\n try {\r\n if (question != undefined && question.value != undefined) {\r\n if (\r\n form.controls[question.value] != undefined &&\r\n form.controls[question.value].errors != null &&\r\n form.controls[question.value].errors.required\r\n ) {\r\n return true;\r\n }\r\n }\r\n } catch (error) {\r\n }\r\n return false;\r\n }\r\n\r\n validMinLength(form: NgForm, question): Boolean {\r\n //se deja catch por error no controlable en otro tiempo de ejecucion\r\n try {\r\n if (question != undefined && question.value != undefined) {\r\n if (question.minLength > form.controls[question.value].value.toLocaleString().length && question.minLength > 0) {\r\n return true;\r\n }\r\n }\r\n } catch (error) {\r\n }\r\n return false;\r\n }\r\n\r\n validMaxLength(form: NgForm, question): Boolean {\r\n //se deja catch por error no controlable en otro tiempo de ejecucion\r\n try {\r\n if (question != undefined && question.value != undefined) {\r\n if (question.maxLength > 0) {\r\n if (question.maxLength + 1 <= form.controls[question.value].value.toString().replace(/\\./g, '').length) {\r\n if (!this.formDynamic.controls[question.value].hasError('errorMaxLength')) {\r\n this.formDynamic.controls[question.value].setErrors({'errorMaxLength': true});\r\n }\r\n return true;\r\n }\r\n }\r\n }\r\n } catch (error) {\r\n }\r\n return false;\r\n }\r\n\r\n tycSelection(event) {\r\n event.preventDefault();\r\n let tyc = <HTMLInputElement> document.getElementById('txtPoliticas');\r\n tyc.style.color = '#A3AD32';\r\n\r\n\r\n // this.externalService.getTermsAndConditions().subscribe(resp => {\r\n let b64 = null;\r\n\r\n if (this.getTermsAndConditions && this.getTermsAndConditions.listaDocumentos) {\r\n b64 = this.getTermsAndConditions.listaDocumentos[0].contenidoDocumento;\r\n this.respServiceSegmentation = this.getTermsAndConditions.listaDocumentos[0];\r\n\r\n let pdfWindow = window.open('');\r\n pdfWindow.document.write(\r\n '<iframe width=\\'100%\\' height=\\'100%\\' src=\\'data:application/pdf;base64, ' +\r\n encodeURI(b64) + '\\'></iframe>'\r\n );\r\n }\r\n // })\r\n }\r\n\r\n openLabelUrl(event, question) {\r\n event.preventDefault();\r\n let tyc = <HTMLInputElement> document.getElementById('check' + question.id);\r\n tyc.style.color = '#A3AD32';\r\n window.open(question.urllabel, '_blank');\r\n }\r\n\r\n async checkTermsAndConditions(value): Promise<void> {\r\n if (value) {\r\n // let ipAddress = await this.auroraService.getIpAddress().toPromise();\r\n let ipAddress = await this.getIpAddress;\r\n\r\n let objToSend = {\r\n 'idDocumento': this.respServiceSegmentation.idDocumento || '',\r\n // \"idDocumento\": this.respServiceSegmentation?.idDocumento || \"\",\r\n 'nombrePortafolio': '0',\r\n 'aplicacion': 'ZP_OF',\r\n 'ip': ipAddress.ip,\r\n 'tipoIdAfil': 'CC',\r\n 'numeroIdAfil': this.formDynamic.controls['numeroDoc'].value.toString(),\r\n 'numeroCuentaPI': '0',\r\n 'transaccion': 'INICIO DE SESION_OF',\r\n 'conceptoAceptacion': 'HABEAS_DATA_USO_APP',\r\n 'respuesta': 'SI',\r\n 'usuarioCreacion': this.formDynamic.controls['numeroDoc'].value.toString()\r\n };\r\n let aceptaciones = {aceptaciones: [objToSend]};\r\n // this.externalService.setAcceptanceDocument(aceptaciones).subscribe(() => { })\r\n this.setAcceptanceDocument.emit(aceptaciones);\r\n }\r\n }\r\n\r\n cancellKeypress() {\r\n return false;\r\n }\r\n\r\n emailRulesValidate(formQuestion) {\r\n let valOk = true;\r\n try {\r\n let hasError = false;\r\n document.getElementById(formQuestion.question.id).setAttribute('hidden', 'true');\r\n let eml = document.getElementById(formQuestion.question.id);\r\n let email = formQuestion.question.registred;\r\n if (!hasError) {\r\n if (formQuestion.question.required && (email == '' || email == undefined || email == null)) {\r\n eml.style.borderColor = '#FF0000';\r\n eml.textContent = 'El correco eléctronico es requerido';\r\n eml.removeAttribute('hidden');\r\n valOk = false;\r\n hasError = true;\r\n }\r\n }\r\n if (!hasError) {\r\n if (this.validMinLength(undefined, formQuestion.question)) {\r\n eml.style.borderColor = '#FF0000';\r\n eml.textContent = 'Debe ser mínimo de ' + formQuestion.question.minLength + ' caracteres';\r\n document.getElementById(formQuestion.question.id).removeAttribute('hidden');\r\n valOk = false;\r\n hasError = true;\r\n }\r\n }\r\n if (!hasError) {\r\n if (this.validMaxLength(undefined, formQuestion.question)) {\r\n eml.style.borderColor = '#FF0000';\r\n eml.textContent = 'Debe ser maximo de ' + formQuestion.question.maxLength + ' caracteres';\r\n document.getElementById(formQuestion.question.id).removeAttribute('hidden');\r\n valOk = false;\r\n hasError = true;\r\n }\r\n }\r\n if (!hasError) {\r\n\r\n const matches = String(email).match(this.regexType.email.exp);\r\n if (matches == null) {\r\n eml.style.borderColor = '#FF0000';\r\n eml.textContent = 'Tu email es invalido';\r\n eml.removeAttribute('hidden');\r\n valOk = false;\r\n hasError = true;\r\n }\r\n }\r\n\r\n } catch (error) {\r\n\r\n }\r\n return valOk;\r\n }\r\n\r\n calendarRulesValidate(formQuestion) {\r\n let hasError = false;\r\n try {\r\n document.getElementById(formQuestion.question.id).setAttribute('hidden', 'true');\r\n let ecalendar = document.getElementById(formQuestion.question.id);\r\n //se valida que no sea null si es requerido\r\n let date = formQuestion.question.registred;\r\n if (formQuestion.question.required && (date == '' || date == undefined || date == null)) {\r\n ecalendar.style.borderColor = '#FF0000';\r\n ecalendar.textContent = 'La fecha es requerida';\r\n ecalendar.removeAttribute('hidden');\r\n }\r\n } catch (error) {\r\n\r\n }\r\n }\r\n\r\n validateNotSpace(event) {\r\n if (event.charCode == 32) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { FormAuroraComponent } from './form-aurora.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { RecaptchaModule, RecaptchaFormsModule } from 'ng-recaptcha';\r\n\r\n@NgModule({\r\n declarations: [FormAuroraComponent],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n RecaptchaModule,\r\n RecaptchaFormsModule\r\n ],\r\n exports: [FormAuroraComponent]\r\n})\r\nexport class FormAuroraModule { }","/*\r\n * Public API Surface of form-aurora\r\n */\r\nexport * from './lib/form-aurora.component';\r\nexport * from './lib/form-aurora.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["tslib_1.__extends","tslib_1.__values","tslib_1.__decorate"],"mappings":";;;;;;;;;AAoBA,IAAM,MAAM,GAAG,OAAO,CAAC;;;;;;;AASvB;IAAmCA,iCAAsB;IADzD;QAAA,qEAqBC;QAlBU,eAAS,GAAG,GAAG,CAAC;;KAkB1B;IAhBC,iCAAS,GAAT,UAAU,KAAoB;QAC5B,IAAI,KAAK,EAAE;YACT,IAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACzC,OAAO;gBACL,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;gBAC1B,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;gBAC5B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;aAC5B,CAAC;SACH;QACD,OAAO,IAAI,CAAC;KACb;IAED,+BAAO,GAAP,UAAQ,IAA0B;;QAEhC,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;KAC9J;IAnBU,aAAa;QADzB,UAAU,EAAE;OACA,aAAa,CAoBzB;IAAD,oBAAC;CAAA,CApBkC,cAAc,GAoBhD;AAED;;;AAIA;IAA+CA,6CAAsB;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;IA2BhBA;QAAzC,SAAS,CAAC,YAAY,EAAE,EAAC,MAAM,EAAE,KAAK,EAAC,CAAC;wDAAqB;IA5CnD,mBAAmB;QAX/B,SAAS,CAAC;YACT,QAAQ,EAAE,gBAAgB;YAC1B,iirBAA2C;YAE3C,SAAS,EAAE;gBACT,EAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,aAAa,EAAC;gBAClD,EAAC,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,yBAAyB,EAAC;gBACtE,EAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,oBAAoB,EAAC;gBAC5D,IAAI;aACL;;SACF,CAAC;OACW,mBAAmB,CA+iB/B;IAAD,0BAAC;CA/iBD;;;ICtHA;KAAiC;IAApB,gBAAgB;QAV5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,eAAe;gBACf,oBAAoB;aACvB;YACD,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAI;IAAD,uBAAC;CAAjC;;AChBA;;GAEG;;ACFH;;GAEG;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"CustomAdapter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ng-bootstrap/ng-bootstrap","name":"NgbDateAdapter","line":29,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":28,"character":1}}],"members":{"fromModel":[{"__symbolic":"method"}],"toModel":[{"__symbolic":"method"}]}},"CustomDateParserFormatter":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ng-bootstrap/ng-bootstrap","name":"NgbDateParserFormatter","line":55,"character":47},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":54,"character":1}}],"members":{"parse":[{"__symbolic":"method"}],"format":[{"__symbolic":"method"}]}},"I18n":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":85,"character":1}}],"members":{}},"CustomDatepickerI18n":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ng-bootstrap/ng-bootstrap","name":"NgbDatepickerI18n","line":92,"character":42},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":91,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"I18n"}]}],"getWeekdayLabel":[{"__symbolic":"method"}],"getWeekLabel":[{"__symbolic":"method"}],"getMonthShortName":[{"__symbolic":"method"}],"getMonthFullName":[{"__symbolic":"method"}],"getDayAriaLabel":[{"__symbolic":"method"}],"getWeekdayShortName":[{"__symbolic":"method"}]}},"FormAuroraComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":123,"character":1},"arguments":[{"selector":"lib-FormAurora","providers":[{"provide":{"__symbolic":"reference","module":"@ng-bootstrap/ng-bootstrap","name":"NgbDateAdapter","line":128,"character":14},"useClass":{"__symbolic":"reference","name":"CustomAdapter"}},{"provide":{"__symbolic":"reference","module":"@ng-bootstrap/ng-bootstrap","name":"NgbDateParserFormatter","line":129,"character":14},"useClass":{"__symbolic":"reference","name":"CustomDateParserFormatter"}},{"provide":{"__symbolic":"reference","module":"@ng-bootstrap/ng-bootstrap","name":"NgbDatepickerI18n","line":130,"character":14},"useClass":{"__symbolic":"reference","name":"CustomDatepickerI18n"}},{"__symbolic":"reference","name":"I18n"}],"template":"<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>\n<div class=\"card\">\n <span class=\"text-center mt-2 d-none d-sm-block\">\n <img style=\"width: 115px; height:96px;\" [class]=\"dataClassCss.logo\" id=\"logo\">\n </span>\n <div class=\"card-body pt-0\">\n <ng-container *ngIf=\"schedule\">\n <h4 class=\"card-title text-center mb-0\" [class]=\"dataClassCss.bienvenida2\" style=\"color: #EE7E0E;\">\n Horarios de atención\n </h4>\n <small class=\"text-center d-block\">{{schedule}}</small>\n </ng-container>\n <form #formDynamic=\"ngForm\">\n <div *ngFor=\"let control of dataForm?.formQuestions; let index = index; trackBy: trackByIndex\">\n <div\n *ngIf=\"(index > 0 && (dataForm.formQuestions[index - 1].question.questionType.id == 3 && dataForm.formQuestions[index].question.questionType.id == 2)) || (index < dataForm.formQuestions.length && dataForm.formQuestions[index].question.questionType.id == 3 && dataForm.formQuestions[index + 1].question.questionType.id == 2); else switchTemp\">\n <div class=\"row\"\n *ngIf=\"(index > 0 && (dataForm.formQuestions[index - 1].question.questionType.id == 3 && dataForm.formQuestions[index].question.questionType.id == 2))\">\n <div class=\"col-lg-6 col-xs-12\">\n <div [class]=\"dataClassCss.cl12\">\n <label for=\"{{dataForm.formQuestions[index - 1].question.value}}\" class=\"col-sm-12\"\n style=\"display: block; text-align: left;\">\n <span class=\"h6 small bg-white text-muted\">{{dataForm.formQuestions[index -\n 1].question.label}}</span>\n </label>\n <div class=\"selectContainer\">\n <select [name]=\"dataForm.formQuestions[index - 1].question.value\"\n [required]=\"dataForm.formQuestions[index - 1].question.required\"\n [class]=\"dataClassCss.formcontrol\"\n id=\"{{dataForm.formQuestions[index - 1].question.value}}\"\n style=\"margin-top: -1rem !important;\"\n [(ngModel)]=\"defaultDocType !== '' ? defaultDocType : dataForm.formQuestions[index - 1].question.registred\">\n <option value=\"\" selected disabled hidden>Selecciona</option>\n <ng-container\n *ngFor=\"let item of dataForm.formQuestions[index - 1].question.questionAnswers\">\n <option *ngIf=\"item.answer.state.id == 1\" [value]=\"item.answer.value\">\n {{ item.answer.field }}\n </option>\n </ng-container>\n </select>\n </div>\n </div>\n <div style=\"margin-left: 15px;\"\n *ngIf=\"dataForm.formQuestions[index].question.questionType.id != 5 && dataForm.formQuestions[index].question.questionType.id != 6\">\n <span class=\"error\" [id]=\"'char'+dataForm.formQuestions[index-1].question.value\"\n hidden></span>\n </div>\n </div>\n <div class=\"col-lg-6 col-xs-12\">\n <div [class]=\"dataClassCss.cl12\">\n <label for=\"{{dataForm.formQuestions[index].question.value}}\"\n class=\"col-sm-12 p-sm-0 px-sm-1\" style=\"display: block; text-align: left;\">\n <span\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\n </label>\n <input type=\"text\" digitOnly id=\"{{dataForm.formQuestions[index].question.value}}\"\n style=\"margin-top: -1rem !important;\"\n [name]=\"dataForm.formQuestions[index].question.value\" placeholder=\"Escribe\"\n [required]=\"dataForm.formQuestions[index].question.required\"\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (keyup)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n onkeypress=\"return (event.charCode == 0) ? null : event.charCode >= 48 && event.charCode <= 57\"\n onkeyup=\"(this.value=(value.replace(/[.]*/g,'')))\"\n maxlength=\"dataForm.formQuestions[index].question.maxLength\"\n [minLength]=\"dataForm.formQuestions[index].question.minLength\"\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\n [class]=\"dataClassCss.formcontrol\"/>\n\n </div>\n <div style=\"margin-left: 15px;\"\n *ngIf=\"dataForm.formQuestions[index].question.questionType.id != 5 && dataForm.formQuestions[index].question.questionType.id != 6\">\n <span class=\"error\" [id]=\"'rq'+dataForm.formQuestions[index].question.value\"\n *ngIf=\"validRequired(formDynamic,dataForm.formQuestions[index].question) && watchValid\">\n Este campo es obligatorio</span>\n <span class=\"error\" [id]=\"'ml'+dataForm.formQuestions[index].question.value\" hidden>\n Debe ser mínimo de\n {{ dataForm.formQuestions[index].question.minLength }} caracteres</span>\n <span class=\"error\" [id]=\"'mxl'+dataForm.formQuestions[index].question.value\" hidden>\n Debe ser maximo de\n {{ dataForm.formQuestions[index].question.maxLength }} caracteres</span>\n <span class=\"error\" [id]=\"'char'+dataForm.formQuestions[index].question.value\"\n hidden></span>\n </div>\n </div>\n </div>\n </div>\n\n <ng-template #switchTemp>\n <div [ngSwitch]=\"dataForm.formQuestions[index].question.questionType.id\">\n <div *ngSwitchCase=\"1\">\n <div [class]=\"dataClassCss.cl12\">\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\n style=\"display: block; text-align: left; \">\n <span\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\n </label>\n <input type=\"text\" id=\"{{dataForm.formQuestions[index].question.value}}\"\n [class]=\"dataClassCss.formcontrol\" placeholder=\"Escribe\"\n [required]=\"dataForm.formQuestions[index].question.required\"\n [maxlength]=\"dataForm.formQuestions[index].question.maxLength\"\n [name]=\"dataForm.formQuestions[index].question.value\"\n (keydown)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\n style=\"margin-top: -1rem !important;\"/>\n </div>\n </div>\n <div *ngSwitchCase=\"2\">\n\n <div [class]=\"dataClassCss.cl12\">\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\n style=\"display: block; text-align: left;\">\n <span\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\n </label>\n <input type=\"text\" digitOnly id=\"{{dataForm.formQuestions[index].question.value}}\"\n style=\"margin-top: -1rem !important;\"\n [name]=\"dataForm.formQuestions[index].question.value\" placeholder=\"Escribe\"\n [required]=\"dataForm.formQuestions[index].question.required\"\n (keydown)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n onkeypress=\"return (event.charCode == 0) ? null : event.charCode >= 48 && event.charCode <= 57\"\n onkeyup=\"(this.value=(value.replace(/[.]*/g,'')))\"\n maxlength=\"dataForm.formQuestions[index].question.maxLength\"\n [minLength]=\"dataForm.formQuestions[index].question.minLength\"\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\n [class]=\"dataClassCss.formcontrol\"/>\n </div>\n\n </div>\n <div *ngSwitchCase=\"3\">\n <div [class]=\"dataClassCss.cl12\">\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\n style=\"display: block; text-align: left;\">\n <span\n class=\"h6 small bg-white text-muted\">{{dataForm.formQuestions[index].question.label}}</span>\n </label>\n <select [name]=\"dataForm.formQuestions[index].question.value\"\n [required]=\"dataForm.formQuestions[index].question.required\"\n [class]=\"dataClassCss.formcontrol\"\n id=\"{{dataForm.formQuestions[index].question.value}}\"\n style=\"margin-top: -1rem !important;\"\n [(ngModel)]=\"defaultDocType !== '' ? defaultDocType : dataForm.formQuestions[index].question.registred\">\n <option value=\"\" selected disabled hidden>Selecciona</option>\n <ng-container\n *ngFor=\"let item of dataForm.formQuestions[index].question.questionAnswers\">\n <option *ngIf=\"item.answer.state.id == 1\" [value]=\"item.answer.value\">\n {{ item.answer.field }}\n </option>\n </ng-container>\n </select>\n </div>\n </div>\n <div *ngSwitchCase=\"4\">\n <select class=\"{{ dataClassCss.formcontrol }} select-checkbox\"\n style=\"overflow: hidden; border-style: hidden;\"\n [style.height.px]=\"dataForm.formQuestions[index].question.questionAnswers.length * 24\"\n [name]=\"dataForm.formQuestions[index].question.value\"\n [required]=\"dataForm.formQuestions[index].question.required\" ngModel multiple>\n <!-- todo: delete (mousedown)=\"onMouseDown($event, dataForm.formQuestions[index].question.value, formDynamic)\"-->\n <option\n (mousemove)=\"$event.preventDefault()\"\n *ngFor=\"let item of dataForm.formQuestions[index].question.questionAnswers\"\n [value]=\"item.answer.value\">\n {{ item.answer.field }}\n </option>\n </select>\n </div>\n <div *ngSwitchCase=\"5\">\n <a (click)=\"rediretoutside($event,dataForm.formQuestions[index].question)\" href=\"\">\n <span>{{ dataForm.formQuestions[index].question.label }}</span>\n </a>\n </div>\n <div *ngSwitchCase=\"6\">\n <div [class]=\"dataClassCss.cl12\" [id]=\"'reCaptcha'\">\n <div class=\"cnt-captcha\">\n <re-captcha (resolved)=\"resolvedCaptcha($event)\"\n siteKey=\"6LfQisEZAAAAAARuuKFEAgS-x4qJse5uBA_QCA7v\"></re-captcha>\n <input hidden type=\"text\" [name]=\"dataForm.formQuestions[index].question.value\"\n [required]=\"dataForm.formQuestions[index].question.required\"\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\">\n </div>\n <span class=\"error\" *ngIf=\"watchValid && !captchaValid\" style=\"margin-top: 0;\">\n Debe resolver la captcha para continuar\n </span>\n </div>\n </div>\n <div *ngSwitchCase=\"7\">\n <div [class]=\"dataClassCss.cl12\">\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\n style=\"display: block; text-align: left; margin-bottom: 0 ;\">\n <span\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\n </label>\n <input placeholder=\"dd/mm/aaaa\" style=\"margin-top: -0.4rem !important;\"\n [required]=\"dataForm.formQuestions[index].question.required\"\n [name]=\"dataForm.formQuestions[index].question.value\" type=\"date\" min=\"{{minDate}}\"\n max=\"{{maxDate}}\" [maxlength]=\"10\" (paste)=\"false\"\n id=\"{{dataForm.formQuestions[index].question.value}}\"\n [class]=\"dataClassCss.txtCalendar\"\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\n (keydown)=\"cancellKeypress()\"\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\">\n\n <!-- for replace by id todo-->\n <button class=\"btn\" id=\"{{dataForm.formQuestions[index].question.value}}\" type=\"button\"\n style=\"width: 46px;\n top: 12px;\n color: white;\n right: 15px;\n position: absolute;\n background: #D25D42;\n pointer-events: none;\">\n <i class=\"fa fa-calendar\"></i>\n </button>\n\n </div>\n </div>\n <div *ngSwitchCase=\"8\">\n <div [class]=\"dataClassCss.cl12\" style=\"text-align: left; margin-bottom: 10px;\">\n <input [style]=\"'width: 4%; height: auto; display: inline;'\" type=\"checkbox\"\n [name]=\"dataForm.formQuestions[index].question.value\"\n [required]=\"dataForm.formQuestions[index].question.required\"\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\n [class]=\"dataClassCss.formcontrol\"\n (change)=\"checkTermsAndConditions(dataForm.formQuestions[index].question.registred)\">\n <!-- <a href=\"{{urlPdf}}\" target=\"_blank\" style=\"text-decoration: underline;\"\n id=\"txtPoliticas\" (click)=\"tycSelection()\">\n {{dataForm.formQuestions[index].question.label}}\n </a> -->\n <a target=\"_blank\" style=\"text-decoration: underline;color:blue;cursor: pointer;\"\n id=\"txtPoliticas\" (click)=\"tycSelection($event)\">\n {{dataForm.formQuestions[index].question.label}}\n </a>\n </div>\n </div>\n <div *ngSwitchCase=\"9\">\n <div [class]=\"dataClassCss.cl12\">\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\n style=\"display: block; text-align: left; \">\n <span\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\n </label>\n <input type=\"text\" id=\"{{dataForm.formQuestions[index].question.value}}\"\n [class]=\"dataClassCss.formcontrol\" placeholder=\"Escribe\"\n [required]=\"dataForm.formQuestions[index].question.required\"\n [maxlength]=\"dataForm.formQuestions[index].question.maxLength\"\n [name]=\"dataForm.formQuestions[index].question.value\"\n (keydown)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (keypress)=\"validOnlyText($event)\"\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\n style=\"margin-top: -1rem !important;\"/>\n </div>\n </div>\n <div *ngSwitchCase=\"10\">\n <div [class]=\"dataClassCss.cl12\" style=\"text-align: left; margin-bottom: 10px;\">\n <input [style]=\"'width: 4%; height: auto; display: inline;'\" type=\"checkbox\"\n [name]=\"dataForm.formQuestions[index].question.value\"\n [required]=\"dataForm.formQuestions[index].question.required\"\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\n [class]=\"dataClassCss.formcontrol\">\n <a target=\"_blank\" style=\"text-decoration: underline;color:blue;cursor: pointer;\"\n id=\"check{{dataForm.formQuestions[index].question.id}}\"\n (click)=\"openLabelUrl($event,dataForm.formQuestions[index].question)\">\n {{dataForm.formQuestions[index].question.label}}\n </a>\n </div>\n </div>\n <div *ngSwitchCase=\"11\">\n <div [class]=\"dataClassCss.cl12\">\n <label for=\"{{dataForm.formQuestions[index].question.value}}\" class=\"col-sm-12\"\n style=\"display: block; text-align: left; \">\n <span\n class=\"h6 small bg-white text-muted pt-1 pl-2 pr-2\">{{dataForm.formQuestions[index].question.label}}</span>\n </label>\n <input type=\"text\" id=\"{{dataForm.formQuestions[index].question.value}}\"\n [class]=\"dataClassCss.formcontrol\" placeholder=\"Escribe\"\n [required]=\"dataForm.formQuestions[index].question.required\"\n [maxlength]=\"dataForm.formQuestions[index].question.maxLength\"\n [name]=\"dataForm.formQuestions[index].question.value\"\n (keydown)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (change)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (blur)=\"onChangeValidPatter($event, dataForm.formQuestions[index].question)\"\n (keypress)=\"validateNotSpace($event)\"\n [(ngModel)]=\"dataForm.formQuestions[index].question.registred\"\n style=\"margin-top: -1rem !important;\"/>\n </div>\n </div>\n <div *ngSwitchDefault>Tipo de control no detectado</div>\n <div style=\"margin-left: 15px;\"\n *ngIf=\"dataForm.formQuestions[index].question.questionType.id != 5 && dataForm.formQuestions[index].question.questionType.id != 6\">\n <span class=\"error\" [id]=\"'rq'+dataForm.formQuestions[index].question.value\"\n *ngIf=\"validRequired(formDynamic,dataForm.formQuestions[index].question) && watchValid\">\n Este campo es obligatorio</span>\n <span class=\"error\" [id]=\"'ml'+dataForm.formQuestions[index].question.value\" hidden>\n Debe ser mínimo de\n {{ dataForm.formQuestions[index].question.minLength }} caracteres</span>\n <span class=\"error\" [id]=\"'mxl'+dataForm.formQuestions[index].question.value\" hidden>\n Debe ser maximo de\n {{ dataForm.formQuestions[index].question.maxLength }} caracteres</span>\n <span class=\"error\" [id]=\"'char'+dataForm.formQuestions[index].question.value\"\n hidden></span>\n <span class=\"error\" [id]=\"dataForm.formQuestions[index].question.id\" hidden></span>\n </div>\n </div>\n </ng-template>\n </div>\n <div class=\"mt-3 text-center\">\n <button type=\"button\" [class]=\"dataClassCss.btn\" (click)=\"onSubmit()\" [disabled]=\"!formDynamic.valid\"\n id=\"btnIng\">Ingresar\n </button>\n </div>\n </form>\n </div>\n</div>\n","styles":[".select-checkbox option::before{content:\"\\2610\";width:1.3em;text-align:center;display:inline-block}.select-checkbox option:checked::before{content:\"\\2611\"}"]}]}],"members":{"dataClassCss":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":136,"character":3}}]}],"dataForm":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":137,"character":3}}]}],"clickSubmit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":138,"character":3}}]}],"dataReloadForm":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":139,"character":3}}]}],"welcomeTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":140,"character":3}}]}],"welcomeDescription":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":141,"character":3}}]}],"urlPdf":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":142,"character":3}}]}],"nameCompany":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":143,"character":3}}]}],"schedule":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":144,"character":3}}]}],"getTermsAndConditions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":145,"character":3}}]}],"regexType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":146,"character":3}}]}],"getIpAddress":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":147,"character":3}}]}],"formDynamic":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":148,"character":3},"arguments":["formDynamic",{"static":true}]}]}],"response":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":149,"character":3}}]}],"summit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":150,"character":3}}]}],"setAcceptanceDocument":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":151,"character":3}}]}],"myModal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":178,"character":3},"arguments":["modalTurns",{"static":false}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":183,"character":28}]}],"ngOnInit":[{"__symbolic":"method"}],"startComponent":[{"__symbolic":"method"}],"resolvedCaptcha":[{"__symbolic":"method"}],"trackByIndex":[{"__symbolic":"method"}],"onChangeValidPatter":[{"__symbolic":"method"}],"validOnlyText":[{"__symbolic":"method"}],"validDate":[{"__symbolic":"method"}],"onChangeValidDate":[{"__symbolic":"method"}],"rediretoutside":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"onSubmit":[{"__symbolic":"method"}],"validRulesFields":[{"__symbolic":"method"}],"orderString":[{"__symbolic":"method"}],"validMinlenghtAllQuestions":[{"__symbolic":"method"}],"validMaxLengthAllQuestions":[{"__symbolic":"method"}],"validRequired":[{"__symbolic":"method"}],"validMinLength":[{"__symbolic":"method"}],"validMaxLength":[{"__symbolic":"method"}],"tycSelection":[{"__symbolic":"method"}],"openLabelUrl":[{"__symbolic":"method"}],"checkTermsAndConditions":[{"__symbolic":"method"}],"cancellKeypress":[{"__symbolic":"method"}],"emailRulesValidate":[{"__symbolic":"method"}],"calendarRulesValidate":[{"__symbolic":"method"}],"validateNotSpace":[{"__symbolic":"method"}]}},"FormAuroraModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"FormAuroraComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":9,"character":8},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":10,"character":8},{"__symbolic":"reference","module":"ng-recaptcha","name":"RecaptchaModule","line":11,"character":8},{"__symbolic":"reference","module":"ng-recaptcha","name":"RecaptchaFormsModule","line":12,"character":8}],"exports":[{"__symbolic":"reference","name":"FormAuroraComponent"}]}]}],"members":{}}},"origins":{"CustomAdapter":"./lib/form-aurora.component","CustomDateParserFormatter":"./lib/form-aurora.component","I18n":"./lib/form-aurora.component","CustomDatepickerI18n":"./lib/form-aurora.component","FormAuroraComponent":"./lib/form-aurora.component","FormAuroraModule":"./lib/form-aurora.module"},"importAs":"form-aurora-stefanini"}
|
package/lib/fill.d.ts
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
import { ElementRef, OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
2
|
+
import { FormGroup, NgForm } from '@angular/forms';
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
4
|
+
import { Fill } from './fill';
|
5
|
+
import { NgbDateAdapter, NgbDateParserFormatter, NgbDateStruct, NgbDatepickerI18n } from '@ng-bootstrap/ng-bootstrap';
|
6
|
+
import * as moment_ from 'moment';
|
7
|
+
/**
|
8
|
+
* This Service handles how the date is represented in scripts i.e. ngModel.
|
9
|
+
*/
|
10
|
+
export declare class CustomAdapter extends NgbDateAdapter<string> {
|
11
|
+
readonly DELIMITER = "/";
|
12
|
+
fromModel(value: string | null): NgbDateStruct | null;
|
13
|
+
toModel(date: NgbDateStruct | null): string | null;
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* This Service handles how the date is rendered and parsed from keyboard i.e. in the bound input field.
|
17
|
+
*/
|
18
|
+
export declare class CustomDateParserFormatter extends NgbDateParserFormatter {
|
19
|
+
readonly DELIMITER = "/";
|
20
|
+
parse(value: string): NgbDateStruct | null;
|
21
|
+
format(date: NgbDateStruct | null): string;
|
22
|
+
}
|
23
|
+
export declare class I18n {
|
24
|
+
language: string;
|
25
|
+
}
|
26
|
+
export declare class CustomDatepickerI18n extends NgbDatepickerI18n {
|
27
|
+
private _i18n;
|
28
|
+
constructor(_i18n: I18n);
|
29
|
+
getWeekdayLabel(weekday: number): string;
|
30
|
+
getWeekLabel(): string;
|
31
|
+
getMonthShortName(month: number): string;
|
32
|
+
getMonthFullName(month: number): string;
|
33
|
+
getDayAriaLabel(date: NgbDateStruct): string;
|
34
|
+
getWeekdayShortName(weekday: number): string;
|
35
|
+
}
|
36
|
+
export declare class FormAuroraComponent implements OnInit, OnChanges {
|
37
|
+
private http;
|
38
|
+
dataClassCss: any;
|
39
|
+
dataForm: any;
|
40
|
+
clickSubmit: any;
|
41
|
+
dataReloadForm: any;
|
42
|
+
welcomeTitle: any;
|
43
|
+
welcomeDescription: any;
|
44
|
+
urlPdf: string;
|
45
|
+
nameCompany: string;
|
46
|
+
schedule: string;
|
47
|
+
getTermsAndConditions: any;
|
48
|
+
regexType: any;
|
49
|
+
getIpAddress: any;
|
50
|
+
formDynamic: NgForm;
|
51
|
+
response: EventEmitter<any>;
|
52
|
+
summit: EventEmitter<any>;
|
53
|
+
setAcceptanceDocument: EventEmitter<any>;
|
54
|
+
tipodocNumDoc: boolean;
|
55
|
+
onSubmitEvent: any;
|
56
|
+
countSubmit: number;
|
57
|
+
watchValid: boolean;
|
58
|
+
watchRequired: boolean;
|
59
|
+
captchaValid: boolean;
|
60
|
+
displayMonths: number;
|
61
|
+
navigation: string;
|
62
|
+
showWeekNumbers: boolean;
|
63
|
+
outsideDays: string;
|
64
|
+
respServiceSegmentation: any;
|
65
|
+
today: moment_.Moment;
|
66
|
+
maxYear: number;
|
67
|
+
minYear: number;
|
68
|
+
minDate: string;
|
69
|
+
maxDate: string;
|
70
|
+
recharge: boolean;
|
71
|
+
indicativo: string;
|
72
|
+
myModal: ElementRef;
|
73
|
+
filldata: Fill;
|
74
|
+
defaultDocType: string;
|
75
|
+
constructor(http: HttpClient);
|
76
|
+
ngOnInit(): void;
|
77
|
+
startComponent(): void;
|
78
|
+
range: FormGroup;
|
79
|
+
resolvedCaptcha(captchaResponse: string): void;
|
80
|
+
trackByIndex(index: number, obj: any): any;
|
81
|
+
onChangeValidPatter(event: any, question: any): boolean;
|
82
|
+
validOnlyText(event: any): boolean;
|
83
|
+
validDate(event: any): boolean;
|
84
|
+
onChangeValidDate(event: any): boolean;
|
85
|
+
rediretoutside(event: any, question: any): void;
|
86
|
+
/**
|
87
|
+
* Dispatch submit event for validations exists
|
88
|
+
* @param change
|
89
|
+
*/
|
90
|
+
ngOnChanges(change: SimpleChanges): void;
|
91
|
+
onSubmit(): boolean;
|
92
|
+
validRulesFields(numeroDoc: String, numeroCel: String, email: String): boolean;
|
93
|
+
orderString(value: String): string;
|
94
|
+
validMinlenghtAllQuestions(form: any): boolean;
|
95
|
+
validMaxLengthAllQuestions(form: any): boolean;
|
96
|
+
validRequired(form: NgForm, question: any): Boolean;
|
97
|
+
validMinLength(form: NgForm, question: any): Boolean;
|
98
|
+
validMaxLength(form: NgForm, question: any): Boolean;
|
99
|
+
tycSelection(event: any): void;
|
100
|
+
openLabelUrl(event: any, question: any): void;
|
101
|
+
checkTermsAndConditions(value: any): Promise<void>;
|
102
|
+
cancellKeypress(): boolean;
|
103
|
+
emailRulesValidate(formQuestion: any): boolean;
|
104
|
+
calendarRulesValidate(formQuestion: any): void;
|
105
|
+
validateNotSpace(event: any): boolean;
|
106
|
+
}
|
package/package.json
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"name": "form-aurora-stefanini",
|
3
|
+
"version": "0.1.0",
|
4
|
+
"license": "Stefanini Colombia",
|
5
|
+
"author": {
|
6
|
+
"name": "Stefanini Colombia",
|
7
|
+
"email": "stefanini.librerias@gmail.com"
|
8
|
+
},
|
9
|
+
"peerDependencies": {
|
10
|
+
"@angular/common": "^8.2.14",
|
11
|
+
"@angular/core": "^8.2.14",
|
12
|
+
"ng-recaptcha": "^5.0.0",
|
13
|
+
"moment": "^2.26.0"
|
14
|
+
},
|
15
|
+
"dependencies": {
|
16
|
+
"tslib": "^1.9.0"
|
17
|
+
},
|
18
|
+
"main": "bundles/form-aurora-stefanini.umd.js",
|
19
|
+
"module": "fesm5/form-aurora-stefanini.js",
|
20
|
+
"es2015": "fesm2015/form-aurora-stefanini.js",
|
21
|
+
"esm5": "esm5/form-aurora-stefanini.js",
|
22
|
+
"esm2015": "esm2015/form-aurora-stefanini.js",
|
23
|
+
"fesm5": "fesm5/form-aurora-stefanini.js",
|
24
|
+
"fesm2015": "fesm2015/form-aurora-stefanini.js",
|
25
|
+
"typings": "form-aurora-stefanini.d.ts",
|
26
|
+
"metadata": "form-aurora-stefanini.metadata.json",
|
27
|
+
"sideEffects": false
|
28
|
+
}
|
package/public-api.d.ts
ADDED