{"version":3,"file":"fomat-button-lib.mjs","sources":["../../../projects/fomat-button-lib/src/lib/fomat-button-lib.service.ts","../../../projects/fomat-button-lib/src/lib/fomat-button-lib.component.ts","../../../projects/fomat-button-lib/src/lib/fomat-button-lib.module.ts","../../../projects/fomat-button-lib/src/public-api.ts","../../../projects/fomat-button-lib/src/fomat-button-lib.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class FomatButtonLibService {\n\n  constructor() { }\n}\n","import { Component, OnInit, Input,\n         Renderer2, ElementRef,HostListener,\n         ViewChild,AfterViewInit\n        } from '@angular/core';\n\n@Component({\n  selector: 'ng-btn-1',\n  template: `\n    <button #divBtn>\n      button\n    </button>\n  `,\n  styles: [`\n      button{\n        padding: 15px 20px;\n        margin: 10px;\n        text-align: center;\n        border: 2px solid transparent;\n        font-weight: bold;\n        box-shadow: 1px 3px 10px 2px rgba(0, 0, 0, 0.3);\n        border-radius: 7px;\n        transition: all 0.35s;\n      }\n    button:hover{\n      box-shadow: 2px 2px 3px rgba(0,0,0,0.6), 0 0 4px 6px rgba(0,0,0,0.18);\n      border: 2px solid #003;\n    }\n  `]\n})\nexport class FomatButtonLibComponent implements OnInit,AfterViewInit {\n  @ViewChild('divBtn',{ static: false }) divBtn!:ElementRef;\n\n  constructor(private RD2: Renderer2, private EL: ElementRef) { }\n\n  @Input() label:string = 'button';\n  @Input() color:string = \"#000\";\n  @Input() bgColor:string = \"fff\";\n  @Input() font:string = \"monospace,consolas\";\n  @Input() shadow:string = '1px 2px 3px rgba(0,0,0,0.5)';\n  @Input() pd:string ='15px 20px';\n  @Input() mg:string = '10px';\n  @Input() fontSize:string ='14px';\n  ngOnInit() {\n\n  }\n  ngAfterViewInit(): void {\n    this.divBtn.nativeElement.innerHTML = this.label;\n    this.divBtn.nativeElement.style.color = this.color;\n    this.divBtn.nativeElement.style.backgroundColor = this.bgColor;\n    this.divBtn.nativeElement.style.fontFamily = this.font;\n    this.divBtn.nativeElement.style.boxShadow = this.shadow;\n    this.divBtn.nativeElement.style.margin = this.mg;\n    this.divBtn.nativeElement.style.padding = this.pd;\n    this.divBtn.nativeElement.style.fontSize = this.fontSize;\n  }\n\n  @HostListener('mouseenter') inHover(){\n    // this.divBtn.nativeElement.style.boxShadow = this.boxShadow;\n    // this.divBtn.nativeElement.style.border = '2px solid #000';\n  }\n  @HostListener('mouseleave') outHover(){\n    // this.divBtn.nativeElement.style.boxShadow = 'none';\n    // this.divBtn.nativeElement.style.border = '2px solid transparent';\n  }\n\n}\n","import { NgModule } from '@angular/core';\nimport { FomatButtonLibComponent } from './fomat-button-lib.component';\n\n\n\n@NgModule({\n  declarations: [\n    FomatButtonLibComponent\n  ],\n  imports: [\n  ],\n  exports: [\n    FomatButtonLibComponent\n  ]\n})\nexport class FomatButtonLibModule { }\n","/*\n * Public API Surface of fomat-button-lib\n */\n\nexport * from './lib/fomat-button-lib.service';\nexport * from './lib/fomat-button-lib.component';\nexport * from './lib/fomat-button-lib.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,qBAAqB;IAEhC,iBAAiB;;kHAFN,qBAAqB;sHAArB,qBAAqB,cAFpB,MAAM;2FAEP,qBAAqB;kBAHjC,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;MCyBY,uBAAuB;IAGlC,YAAoB,GAAc,EAAU,EAAc;QAAtC,QAAG,GAAH,GAAG,CAAW;QAAU,OAAE,GAAF,EAAE,CAAY;QAEjD,UAAK,GAAU,QAAQ,CAAC;QACxB,UAAK,GAAU,MAAM,CAAC;QACtB,YAAO,GAAU,KAAK,CAAC;QACvB,SAAI,GAAU,oBAAoB,CAAC;QACnC,WAAM,GAAU,6BAA6B,CAAC;QAC9C,OAAE,GAAS,WAAW,CAAC;QACvB,OAAE,GAAU,MAAM,CAAC;QACnB,aAAQ,GAAS,MAAM,CAAC;KAT8B;IAU/D,QAAQ;KAEP;IACD,eA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