UNPKG

tecas

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.0.0.

1 lines 6.88 kB
{"version":3,"file":"tecas.mjs","sources":["../../../projects/tecas/src/lib/tecas.service.ts","../../../projects/tecas/src/lib/tecas.component.ts","../../../projects/tecas/src/lib/tecas.component.html","../../../projects/tecas/src/lib/tecas.module.ts","../../../projects/tecas/src/public-api.ts","../../../projects/tecas/src/tecas.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TecasService {\n\n constructor() { }\n}\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { FormControl, FormGroup } from '@angular/forms';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n@Component({\n selector: 'tks-tecas',\n templateUrl: './tecas.component.html',\n styleUrls: ['./tecas.component.scss'],\n})\nexport class TecasComponent implements OnInit {\n\n @Input() jsonNipDesign: any;\n @Output() formData = new EventEmitter<any>();\n safeContentCard: SafeHtml | undefined;\n safeContentCardNip: SafeHtml | undefined;\n safeContentCardNip2: SafeHtml | undefined;\n title: string = '';\n placeholder: string = '';\n contentCard: string = '';\n contentCardNip1: string = '';\n contentCardNip2: string = '';\n button: string = '';\n button2: string = '';\n formNip = new FormGroup({\n Nip1: new FormControl(''),\n terms: new FormControl(false),\n sic: new FormControl(false)\n\n });\n\n constructor(\n private sanitizer: DomSanitizer\n ) { }\n\n ngOnInit() {\n this.title = this.jsonNipDesign.header.title;\n this.contentCard = this.jsonNipDesign.contentComponent.contentComponent;\n this.contentCardNip1 = this.jsonNipDesign.contentComponent.contentNip1;\n this.contentCardNip2 = this.jsonNipDesign.contentComponent.contentNip2;\n this.button = this.jsonNipDesign.contentComponent.buttonText;\n this.button2 = this.jsonNipDesign.contentComponent.secondButtonText;\n this.placeholder = this.jsonNipDesign.placeholder;\n this.safeContentCard = this.sanitizer.bypassSecurityTrustHtml(\n this.contentCard\n );\n this.safeContentCardNip = this.sanitizer.bypassSecurityTrustHtml(\n this.contentCardNip1\n );\n this.safeContentCardNip2 = this.sanitizer.bypassSecurityTrustHtml(\n this.contentCardNip2\n );\n }\n\n onSubmit() {\n let arraySubmit = {\n nip: this.formNip.value.Nip1.toString(),\n terms: this.formNip.value.terms,\n sic: this.formNip.value.sic,\n }\n this.formData.emit(arraySubmit);\n }\n\n}\n"," <!--<ion-card-header>\n <ion-card-title>\n <h2><strong>{{title}}</strong></h2>\n </ion-card-title>\n </ion-card-header>-->\n <form [formGroup]=\"formNip\">\n <ion-grid class=\"toggle\">\n <ion-row>\n <ion-col size=\"6\">\n <div class=\"inner\" [innerHTML]=\"contentCardNip1\"></div>\n </ion-col>\n <ion-col size=\"6\">\n <ion-item lines=\"none\">\n <P class=\"colorText obliqueText\">No</P>\n <ion-toggle (ionChange)=\"onSubmit()\" formControlName=\"terms\" style=\"margin-top: -10px;\" color=\"success\">\n </ion-toggle>\n <p class=\"colorText obliqueText\">Si</p>\n </ion-item>\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col size=\"6\">\n <div class=\"inner\" (ionChange)=\"onSubmit()\" [innerHTML]=\"contentCardNip2\"></div>\n </ion-col>\n <ion-col size=\"6\">\n <ion-item lines=\"none\">\n <P class=\"colorText obliqueText\">No</P>\n <ion-toggle formControlName=\"sic\" style=\"margin-top: -10px;\" color=\"success\"></ion-toggle>\n <p class=\"colorText obliqueText\">Si</p>\n </ion-item>\n </ion-col>\n </ion-row>\n </ion-grid>\n <div class=\"inner\" [innerHTML]=\"contentCard\"></div>\n\n <ion-grid class=\"nip\">\n <ion-row class=\"pinCode\">\n <ion-col>\n <ion-input (ionChange)=\"onSubmit()\" placeholder=\"{{placeholder}}\" required=\"true\" formControlName=\"Nip1\"\n maxLength=\"4\" min=0 type=\"tel\" #NIP1></ion-input>\n </ion-col>\n </ion-row>\n </ion-grid>\n </form>\n","import { NgModule } from '@angular/core';\nimport { TecasComponent } from './tecas.component';\nimport { IonicModule } from '@ionic/angular';\nimport { ReactiveFormsModule } from '@angular/forms';\n\n\n\n@NgModule({\n declarations: [\n TecasComponent\n ],\n imports: [\n IonicModule,\n ReactiveFormsModule\n ],\n exports:[\n TecasComponent\n ]\n})\nexport class TecasModule { }\n","/*\n * Public API Surface of tecas\n */\n\nexport * from './lib/tecas.service';\nexport * from './lib/tecas.component';\nexport * from './lib/tecas.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAKa,YAAY;IAEvB,iBAAiB;;yGAFN,YAAY;6GAAZ,YAAY,cAFX,MAAM;2FAEP,YAAY;kBAHxB,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;MCKY,cAAc;IAqBzB,YACU,SAAuB;QAAvB,cAAS,GAAT,SAAS,CAAc;QAnBvB,aAAQ,GAAG,IAAI,YAAY,EAAO,CAAC;QAI7C,UAAK,GAAW,EAAE,CAAC;QACnB,gBAAW,GAAW,EAAE,CAAC;QACzB,gBAAW,GAAW,EAAE,CAAC;QACzB,oBAAe,GAAW,EAAE,CAAC;QAC7B,oBAAe,GAAW,EAAE,CAAC;QAC7B,WAAM,GAAW,EAAE,CAAC;QACpB,YAAO,GAAW,EAAE,CAAC;QACrB,YAAO,GAAG,IAAI,SAAS,CAAC;YACtB,IAAI,EAAE,IAAI,WAAW,CAAC,EAAE,CAAC;YACzB,KAAK,EAAE,IAAI,WAAW,CAAC,KAAK,CAAC;YAC7B,GAAG,EAAE,IAAI,WAAW,CAAC,KAAK,CAAC;SAE5B,CAAC,CAAC;KAIE;IAEL,QAAQ;QACN,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,CAAC;QACxE,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,WAAW,CAAC;QACvE,IAAI,CAAC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