{"version":3,"file":"kif-lib-footer-action.mjs","sources":["../../../projects/kif-lib/footer-action/footer.component.ts","../../../projects/kif-lib/footer-action/footer.component.html","../../../projects/kif-lib/footer-action/footer.module.ts","../../../projects/kif-lib/footer-action/public-api.ts","../../../projects/kif-lib/footer-action/kif-lib-footer-action.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\nimport { IFooterButton } from './interface';\nimport { MatButtonModule } from '@angular/material/button';\nimport {MatProgressBarModule} from '@angular/material/progress-bar';\nimport { LucideAngularModule } from 'lucide-angular';\nimport { NgClass } from '@angular/common';\n\n@Component({\n    selector: 'kit-footer',\n    templateUrl: './footer.component.html',\n    styleUrls: ['../styles/index.scss'],\n    imports: [\n        NgClass,\n        MatButtonModule,\n        MatProgressBarModule,\n        LucideAngularModule,\n    ]\n})\nexport class FooterComponent{\n    @Input() buttons: IFooterButton[] = [];\n    @Input() stepNumber: number = 0;\n    @Input() stepTotal: number = 0;\n    @Input() typeDrawer: boolean = false;\n    \n    \n    getprogresValue(){\n       \n        const progress = ((this.stepNumber/this.stepTotal)*100).toString();\n        return progress;\n\n    }\n\n}\n","<section>\n    <div class= \"w-100 d-flex justify-content-between  align-items-center\" [ngClass]=\"typeDrawer ? 'footer-container-mf2': 'footer-container-mf'\" >\n    \n      <div class=\"d-flex align-items-center\">\n        @if(stepNumber !== 0 && stepTotal !== 0){\n           <mat-progress-bar  mode=\"determinate\" [value]=\"getprogresValue()\"></mat-progress-bar>\n            <span class=\"step-iinfo\">{{stepNumber +' / ' +stepTotal}}</span>\n        }\n       \n      </div>\n      \n\n      <div class=\"d-flex justify-content-end align-items-center  gap-2\">\n         @for (button of buttons; track button) {\n        <div>\n          <button type=\"button\" [color]=\"button.color\" [class]=\"button.class\" mat-raised-button [disabled]=\"button.disabled\" (click)=\"button.action()\">\n          @if (button.loading) {\n            <span class=\"loader-dots\">\n              <div class=\"dot\"></div>\n              <div class=\"dot\"></div>\n              <div class=\"dot\"></div>\n            </span>\n          } @else {\n            @if(button.lucideIcon && button.positionIconText === 'start') {\n              <div class=\"d-flex align-items-center gap-1\">\n                <lucide-angular\n                  [name]=\"button.lucideIcon.name\"\n                  [size]=\"button.lucideIcon.size\"\n                  [color]=\"button.lucideIcon.color\"\n                  [strokeWidth]=\"button.lucideIcon.strokeWidth\"\n                  [class]=\"button.lucideIcon.class + ' d-flex align-items-center'\"\n                  [absoluteStrokeWidth]=\"button.lucideIcon.absoluteStrokeWidth ?? false\">\n                </lucide-angular>\n                <span class=\"d-flex align-items-center\">{{ button.label }}</span>\n              </div>\n             } @else if(button.lucideIcon && button.positionIconText === 'end') {\n              <div class=\"d-flex align-items-center gap-1\">\n                <span class=\"d-flex align-items-center\">{{ button.label }}</span>\n                <lucide-angular\n                  [name]=\"button.lucideIcon.name\"\n                  [size]=\"button.lucideIcon.size\"\n                  [color]=\"button.lucideIcon.color\"\n                  [strokeWidth]=\"button.lucideIcon.strokeWidth\"\n                  [class]=\"button.lucideIcon.class + ' d-flex align-items-center'\"\n                  [absoluteStrokeWidth]=\"button.lucideIcon.absoluteStrokeWidth ?? false\">\n                </lucide-angular>\n              </div>\n             } @else {\n               <span class=\"d-flex align-items-center\">  {{ button.label }} </span>\n             }\n             \n          }\n        </button>\n        </div>\n        \n      }\n      </div>\n     \n    </div>\n</section>","import { NgModule } from '@angular/core';\nimport { FooterComponent } from './footer.component';\n\n@NgModule({\n    imports: [\n        FooterComponent\n    ],\n    exports: [\n        FooterComponent\n    ]\n})\nexport class KifFooterModule { }\n","/*\n * Public API Surface of kif-lib-input\n */\n\nexport * from './footer.component';\nexport * from './footer.module';\nexport * from './interface'\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;MAkBa,eAAe,CAAA;AAX5B,IAAA,WAAA,GAAA;QAYa,IAAA,CAAA,OAAO,GAAoB,EAAE;QAC7B,IAAA,CAAA,UAAU,GAAW,CAAC;QACtB,IAAA,CAAA,SAAS,GAAW,CAAC;QACrB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