@koalarx/ui 13.0.10 → 13.0.11

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 (41) hide show
  1. package/alert/fesm2015/koalarx-ui-alert.mjs.map +1 -1
  2. package/alert/fesm2020/koalarx-ui-alert.mjs.map +1 -1
  3. package/button/fesm2015/koalarx-ui-button.mjs.map +1 -1
  4. package/button/fesm2020/koalarx-ui-button.mjs.map +1 -1
  5. package/common/fesm2015/koalarx-ui-common.mjs.map +1 -1
  6. package/common/fesm2020/koalarx-ui-common.mjs.map +1 -1
  7. package/core/esm2020/lib/page/page.component.mjs +1 -1
  8. package/core/fesm2015/koalarx-ui-core.mjs +1 -1
  9. package/core/fesm2015/koalarx-ui-core.mjs.map +1 -1
  10. package/core/fesm2020/koalarx-ui-core.mjs +1 -1
  11. package/core/fesm2020/koalarx-ui-core.mjs.map +1 -1
  12. package/dialog/fesm2015/koalarx-ui-dialog.mjs.map +1 -1
  13. package/dialog/fesm2020/koalarx-ui-dialog.mjs.map +1 -1
  14. package/dynamic-component/fesm2015/koalarx-ui-dynamic-component.mjs.map +1 -1
  15. package/dynamic-component/fesm2020/koalarx-ui-dynamic-component.mjs.map +1 -1
  16. package/file-button/fesm2015/koalarx-ui-file-button.mjs.map +1 -1
  17. package/file-button/fesm2020/koalarx-ui-file-button.mjs.map +1 -1
  18. package/folder-page/fesm2015/koalarx-ui-folder-page.mjs.map +1 -1
  19. package/folder-page/fesm2020/koalarx-ui-folder-page.mjs.map +1 -1
  20. package/form/esm2020/lib/btn-submit/btn-submit.component.mjs +1 -1
  21. package/form/esm2020/lib/dynamic-form/dynamic-form.component.mjs +3 -3
  22. package/form/fesm2015/koalarx-ui-form.mjs +3 -3
  23. package/form/fesm2015/koalarx-ui-form.mjs.map +1 -1
  24. package/form/fesm2020/koalarx-ui-form.mjs +3 -3
  25. package/form/fesm2020/koalarx-ui-form.mjs.map +1 -1
  26. package/icon/fesm2015/koalarx-ui-icon.mjs.map +1 -1
  27. package/icon/fesm2020/koalarx-ui-icon.mjs.map +1 -1
  28. package/icons-animated/fesm2015/koalarx-ui-icons-animated.mjs.map +1 -1
  29. package/icons-animated/fesm2020/koalarx-ui-icons-animated.mjs.map +1 -1
  30. package/list/esm2020/lib/list.component.mjs +2 -2
  31. package/list/fesm2015/koalarx-ui-list.mjs +1 -1
  32. package/list/fesm2015/koalarx-ui-list.mjs.map +1 -1
  33. package/list/fesm2020/koalarx-ui-list.mjs +1 -1
  34. package/list/fesm2020/koalarx-ui-list.mjs.map +1 -1
  35. package/menu/fesm2015/koalarx-ui-menu.mjs.map +1 -1
  36. package/menu/fesm2020/koalarx-ui-menu.mjs.map +1 -1
  37. package/package.json +1 -1
  38. package/question/fesm2015/koalarx-ui-question.mjs.map +1 -1
  39. package/question/fesm2020/koalarx-ui-question.mjs.map +1 -1
  40. package/snackbar/fesm2015/koalarx-ui-snackbar.mjs.map +1 -1
  41. package/snackbar/fesm2020/koalarx-ui-snackbar.mjs.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-alert.mjs","sources":["../../../projects/alert/src/lib/koala.alert.enum.ts","../../../projects/alert/src/lib/dialog-alert.component.ts","../../../projects/alert/src/lib/dialog-alert.component.html","../../../projects/alert/src/lib/koala.request-code-to-alert-enum.translate.ts","../../../projects/alert/src/lib/koala.alert.service.ts","../../../projects/alert/src/lib/koala.alert.module.ts","../../../projects/alert/src/koalarx-ui-alert.ts"],"sourcesContent":["export enum KoalaAlertEnum {\n success = 200,\n badRequest = 400,\n unhautorized = 401,\n notFound = 404,\n internalServerError = 500\n}\n","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport { MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { KoalaAlertConfigInterface } from './koala.alert-config.interface';\nimport { KoalaAlertEnum } from './koala.alert.enum';\n\n@Component({\n templateUrl: 'dialog-alert.component.html',\n styleUrls: ['dialog-alert.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DialogAlertComponent {\n public icon?: string;\n public iconColor?: string;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) public alert: KoalaAlertConfigInterface\n ) {\n if (alert.alertEnum) {\n switch (alert.alertEnum) {\n case KoalaAlertEnum.success:\n this.icon = 'check_circle';\n this.iconColor = 'success';\n break;\n case KoalaAlertEnum.notFound:\n this.icon = 'visibility_off';\n this.iconColor = 'notFound';\n break;\n case KoalaAlertEnum.internalServerError:\n this.icon = 'error';\n this.iconColor = 'error';\n break;\n case KoalaAlertEnum.badRequest:\n this.icon = 'warning';\n this.iconColor = 'badRequest';\n break;\n case KoalaAlertEnum.unhautorized:\n this.icon = 'no_encryption';\n this.iconColor = 'unhautorized';\n break;\n }\n }\n }\n}\n","<div class=\"content\" mat-dialog-content>\n <mat-icon *ngIf=\"alert.alertEnum else avatar\" [ngClass]=\"iconColor ?? ''\">{{icon}}</mat-icon>\n <ng-template #avatar>\n <koala-dynamic-component [dynamicComponent]=\"alert.avatar\"></koala-dynamic-component>\n </ng-template>\n <p [innerHTML]=\"alert.message\" class=\"w-100 alert-message text-center\"></p>\n</div>\n<div align=\"center\" mat-dialog-actions>\n\t<div *ngFor=\"let action of alert?.actions\">\n\t <button\n\t\t (click)=\"action.action()\"\n\t\t *ngIf=\"action.show\"\n\t\t [color]=\"action.color\"\n\t\t mat-dialog-close\n\t\t mat-raised-button>\n\t {{action.text}}\n\t </button>\n\t</div>\n <button color=\"primary\" mat-dialog-close mat-raised-button>Ok</button>\n</div>\n","import { KoalaAlertEnum } from './koala.alert.enum';\n\nexport class KoalaRequestCodeToAlertEnumTranslate {\n\n public static translate(statusCode: number): KoalaAlertEnum {\n switch (statusCode) {\n case 400:\n case 422:\n case 405:\n return KoalaAlertEnum.badRequest;\n case 404:\n return KoalaAlertEnum.notFound;\n case 401:\n return KoalaAlertEnum.unhautorized;\n default:\n return KoalaAlertEnum.internalServerError;\n }\n }\n}\n","import { Injectable } from '@angular/core';\nimport { DialogAlertComponent } from './dialog-alert.component';\nimport { KoalaAlertConfigInterface } from './koala.alert-config.interface';\nimport { KoalaDialogService } from '@koalarx/ui/dialog';\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaAlertService {\n\n constructor(private dialogService: KoalaDialogService) {\n }\n\n public create(alertConfig: KoalaAlertConfigInterface) {\n this.dialogService.open(DialogAlertComponent, 'auto', alertConfig);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DialogAlertComponent } from './dialog-alert.component';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { KoalaAlertService } from './koala.alert.service';\nimport { CommonModule } from '@angular/common';\nimport { KoalaDynamicComponentModule } from \"@koalarx/ui/dynamic-component\";\n\n@NgModule({\n declarations: [\n DialogAlertComponent\n ],\n imports: [\n CommonModule,\n MatDialogModule,\n MatButtonModule,\n MatIconModule,\n KoalaDynamicComponentModule\n ],\n providers: [\n KoalaAlertService\n ],\n exports: [\n DialogAlertComponent\n ]\n})\nexport class KoalaAlertModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;IAAY;AAAZ,WAAY,cAAc;IACxB,2DAAa,CAAA;IACb,iEAAgB,CAAA;IAChB,qEAAkB,CAAA;IAClB,6DAAc,CAAA;IACd,mFAAyB,CAAA;AAC3B,CAAC,EANW,cAAc,KAAd,cAAc;;MCUb,oBAAoB;IAI/B,YACkC,KAAgC;QAAhC,UAAK,GAAL,KAAK,CAA2B;QAEhE,IAAI,KAAK,CAAC,SAAS,EAAE;YACnB,QAAQ,KAAK,CAAC,SAAS;gBACrB,KAAK,cAAc,CAAC,OAAO;oBACzB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;oBAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;oBAC3B,MAAM;gBACR,KAAK,cAAc,CAAC,QAAQ;oBAC1B,IAAI,CAAC,I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AAiB;kBAD7B,UAAU;mBAAC,EAAC,UAAU,EAAE,KAAK,EAAC;;;MCsBlB,gBAAgB;;6GAAhB,gBAAgB;8GAAhB,gBAAgB,iBAhBzB,oBAAoB,aAGpB,YAAY;QACZ,eAAe;QACf,eAAe;QACf,aAAa;QACb,2BAA2B,aAM3B,oBAAoB;8GAGX,gBAAgB,aAPhB;QACT,iBAAiB;KAClB,YATQ;YACP,YAAY;YACZ,eAAe;YACf,eAAe;YACf,aAAa;YACb,2BAA2B;SAC5B;2FAQU,gBAAgB;kBAlB5B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,oBAAoB;qBACrB;oBACD,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe;wBACf,eAAe;wBACf,aAAa;wBACb,2BAA2B;qBAC5B;oBACD,SAAS,EAAE;wBACT,iBAAiB;qBAClB;oBACD,OAAO,EAAE;wBACP,oBAAoB;qBACrB;iBACF;;;AC1BD;;;;;;"}
1
+ {"version":3,"file":"koalarx-ui-alert.mjs","sources":["../../../projects/alert/src/lib/koala.alert.enum.ts","../../../projects/alert/src/lib/dialog-alert.component.ts","../../../projects/alert/src/lib/dialog-alert.component.html","../../../projects/alert/src/lib/koala.request-code-to-alert-enum.translate.ts","../../../projects/alert/src/lib/koala.alert.service.ts","../../../projects/alert/src/lib/koala.alert.module.ts","../../../projects/alert/src/koalarx-ui-alert.ts"],"sourcesContent":["export enum KoalaAlertEnum {\n success = 200,\n badRequest = 400,\n unhautorized = 401,\n notFound = 404,\n internalServerError = 500\n}\n","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport { MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { KoalaAlertConfigInterface } from './koala.alert-config.interface';\nimport { KoalaAlertEnum } from './koala.alert.enum';\n\n@Component({\n templateUrl: 'dialog-alert.component.html',\n styleUrls: ['dialog-alert.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DialogAlertComponent {\n public icon?: string;\n public iconColor?: string;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) public alert: KoalaAlertConfigInterface\n ) {\n if (alert.alertEnum) {\n switch (alert.alertEnum) {\n case KoalaAlertEnum.success:\n this.icon = 'check_circle';\n this.iconColor = 'success';\n break;\n case KoalaAlertEnum.notFound:\n this.icon = 'visibility_off';\n this.iconColor = 'notFound';\n break;\n case KoalaAlertEnum.internalServerError:\n this.icon = 'error';\n this.iconColor = 'error';\n break;\n case KoalaAlertEnum.badRequest:\n this.icon = 'warning';\n this.iconColor = 'badRequest';\n break;\n case KoalaAlertEnum.unhautorized:\n this.icon = 'no_encryption';\n this.iconColor = 'unhautorized';\n break;\n }\n }\n }\n}\n","<div class=\"content\" mat-dialog-content>\n <mat-icon *ngIf=\"alert.alertEnum else avatar\" [ngClass]=\"iconColor ?? ''\">{{icon}}</mat-icon>\n <ng-template #avatar>\n <koala-dynamic-component [dynamicComponent]=\"alert.avatar\"></koala-dynamic-component>\n </ng-template>\n <p [innerHTML]=\"alert.message\" class=\"w-100 alert-message text-center\"></p>\n</div>\n<div align=\"center\" mat-dialog-actions>\n\t<div *ngFor=\"let action of alert?.actions\">\n\t <button\n\t\t (click)=\"action.action()\"\n\t\t *ngIf=\"action.show\"\n\t\t [color]=\"action.color\"\n\t\t mat-dialog-close\n\t\t mat-raised-button>\n\t {{action.text}}\n\t </button>\n\t</div>\n <button color=\"primary\" mat-dialog-close mat-raised-button>Ok</button>\n</div>\n","import { KoalaAlertEnum } from './koala.alert.enum';\n\nexport class KoalaRequestCodeToAlertEnumTranslate {\n\n public static translate(statusCode: number): KoalaAlertEnum {\n switch (statusCode) {\n case 400:\n case 422:\n case 405:\n return KoalaAlertEnum.badRequest;\n case 404:\n return KoalaAlertEnum.notFound;\n case 401:\n return KoalaAlertEnum.unhautorized;\n default:\n return KoalaAlertEnum.internalServerError;\n }\n }\n}\n","import { Injectable } from '@angular/core';\nimport { DialogAlertComponent } from './dialog-alert.component';\nimport { KoalaAlertConfigInterface } from './koala.alert-config.interface';\nimport { KoalaDialogService } from '@koalarx/ui/dialog';\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaAlertService {\n\n constructor(private dialogService: KoalaDialogService) {\n }\n\n public create(alertConfig: KoalaAlertConfigInterface) {\n this.dialogService.open(DialogAlertComponent, 'auto', alertConfig);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DialogAlertComponent } from './dialog-alert.component';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { KoalaAlertService } from './koala.alert.service';\nimport { CommonModule } from '@angular/common';\nimport { KoalaDynamicComponentModule } from \"@koalarx/ui/dynamic-component\";\n\n@NgModule({\n declarations: [\n DialogAlertComponent\n ],\n imports: [\n CommonModule,\n MatDialogModule,\n MatButtonModule,\n MatIconModule,\n KoalaDynamicComponentModule\n ],\n providers: [\n KoalaAlertService\n ],\n exports: [\n DialogAlertComponent\n ]\n})\nexport class KoalaAlertModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAAY,IAAA,eAMX;AAND,CAAA,UAAY,cAAc,EAAA;IACxB,cAAA,CAAA,cAAA,CAAA,SAAA,CAAA,GAAA,GAAA,CAAA,GAAA,SAAa,CAAA;IACb,cAAA,CAAA,cAAA,CAAA,YAAA,CAAA,GAAA,GAAA,CAAA,GAAA,YAAgB,CAAA;IAChB,cAAA,CAAA,cAAA,CAAA,cAAA,CAAA,GAAA,GAAA,CAAA,GAAA,cAAkB,CAAA;IAClB,cAAA,CAAA,cAAA,CAAA,UAAA,CAAA,GAAA,GAAA,CAAA,GAAA,UAAc,CAAA;IACd,cAAA,CAAA,cAAA,CAAA,qBAAA,CAAA,GAAA,GAAA,CAAA,GAAA,qBAAyB,CAAA;AAC3B,CAAC,EANW,cAAc,KAAd,cAAc,GAMzB,EAAA,CAAA,CAAA;;MCIY,oBAAoB,CAAA;AAI/B,IA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iBACF,CAAA;;;AC1BD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-alert.mjs","sources":["../../../projects/alert/src/lib/koala.alert.enum.ts","../../../projects/alert/src/lib/dialog-alert.component.ts","../../../projects/alert/src/lib/dialog-alert.component.html","../../../projects/alert/src/lib/koala.request-code-to-alert-enum.translate.ts","../../../projects/alert/src/lib/koala.alert.service.ts","../../../projects/alert/src/lib/koala.alert.module.ts","../../../projects/alert/src/koalarx-ui-alert.ts"],"sourcesContent":["export enum KoalaAlertEnum {\n success = 200,\n badRequest = 400,\n unhautorized = 401,\n notFound = 404,\n internalServerError = 500\n}\n","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport { MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { KoalaAlertConfigInterface } from './koala.alert-config.interface';\nimport { KoalaAlertEnum } from './koala.alert.enum';\n\n@Component({\n templateUrl: 'dialog-alert.component.html',\n styleUrls: ['dialog-alert.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DialogAlertComponent {\n public icon?: string;\n public iconColor?: string;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) public alert: KoalaAlertConfigInterface\n ) {\n if (alert.alertEnum) {\n switch (alert.alertEnum) {\n case KoalaAlertEnum.success:\n this.icon = 'check_circle';\n this.iconColor = 'success';\n break;\n case KoalaAlertEnum.notFound:\n this.icon = 'visibility_off';\n this.iconColor = 'notFound';\n break;\n case KoalaAlertEnum.internalServerError:\n this.icon = 'error';\n this.iconColor = 'error';\n break;\n case KoalaAlertEnum.badRequest:\n this.icon = 'warning';\n this.iconColor = 'badRequest';\n break;\n case KoalaAlertEnum.unhautorized:\n this.icon = 'no_encryption';\n this.iconColor = 'unhautorized';\n break;\n }\n }\n }\n}\n","<div class=\"content\" mat-dialog-content>\n <mat-icon *ngIf=\"alert.alertEnum else avatar\" [ngClass]=\"iconColor ?? ''\">{{icon}}</mat-icon>\n <ng-template #avatar>\n <koala-dynamic-component [dynamicComponent]=\"alert.avatar\"></koala-dynamic-component>\n </ng-template>\n <p [innerHTML]=\"alert.message\" class=\"w-100 alert-message text-center\"></p>\n</div>\n<div align=\"center\" mat-dialog-actions>\n\t<div *ngFor=\"let action of alert?.actions\">\n\t <button\n\t\t (click)=\"action.action()\"\n\t\t *ngIf=\"action.show\"\n\t\t [color]=\"action.color\"\n\t\t mat-dialog-close\n\t\t mat-raised-button>\n\t {{action.text}}\n\t </button>\n\t</div>\n <button color=\"primary\" mat-dialog-close mat-raised-button>Ok</button>\n</div>\n","import { KoalaAlertEnum } from './koala.alert.enum';\n\nexport class KoalaRequestCodeToAlertEnumTranslate {\n\n public static translate(statusCode: number): KoalaAlertEnum {\n switch (statusCode) {\n case 400:\n case 422:\n case 405:\n return KoalaAlertEnum.badRequest;\n case 404:\n return KoalaAlertEnum.notFound;\n case 401:\n return KoalaAlertEnum.unhautorized;\n default:\n return KoalaAlertEnum.internalServerError;\n }\n }\n}\n","import { Injectable } from '@angular/core';\nimport { DialogAlertComponent } from './dialog-alert.component';\nimport { KoalaAlertConfigInterface } from './koala.alert-config.interface';\nimport { KoalaDialogService } from '@koalarx/ui/dialog';\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaAlertService {\n\n constructor(private dialogService: KoalaDialogService) {\n }\n\n public create(alertConfig: KoalaAlertConfigInterface) {\n this.dialogService.open(DialogAlertComponent, 'auto', alertConfig);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DialogAlertComponent } from './dialog-alert.component';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { KoalaAlertService } from './koala.alert.service';\nimport { CommonModule } from '@angular/common';\nimport { KoalaDynamicComponentModule } from \"@koalarx/ui/dynamic-component\";\n\n@NgModule({\n declarations: [\n DialogAlertComponent\n ],\n imports: [\n CommonModule,\n MatDialogModule,\n MatButtonModule,\n MatIconModule,\n KoalaDynamicComponentModule\n ],\n providers: [\n KoalaAlertService\n ],\n exports: [\n DialogAlertComponent\n ]\n})\nexport class KoalaAlertModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;IAAY;AAAZ,WAAY,cAAc;IACxB,2DAAa,CAAA;IACb,iEAAgB,CAAA;IAChB,qEAAkB,CAAA;IAClB,6DAAc,CAAA;IACd,mFAAyB,CAAA;AAC3B,CAAC,EANW,cAAc,KAAd,cAAc;;MCUb,oBAAoB;IAI/B,YACkC,KAAgC;QAAhC,UAAK,GAAL,KAAK,CAA2B;QAEhE,IAAI,KAAK,CAAC,SAAS,EAAE;YACnB,QAAQ,KAAK,CAAC,SAAS;gBACrB,KAAK,cAAc,CAAC,OAAO;oBACzB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;oBAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;oBAC3B,MAAM;gBACR,KAAK,cAAc,CAAC,QAAQ;oBAC1B,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;oBAC7B,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC;oBAC5B,MAAM;gBACR,KAAK,cAAc,CAAC,mBAAmB;oBACrC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;oBACpB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC;oBACzB,MAAM;gBACR,KAAK,cAAc,CAAC,UAAU;oBAC5B,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;oBACtB,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC;oBAC9B,MAAM;gBACR,KAAK,cAAc,CAAC,YAAY;oBAC9B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;oBAC5B,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC;oBAChC,MAAM;aACT;SACF;KACF;;iHA/BU,oBAAoB,kBAKrB,eAAe;qGALd,oBAAoB,oDCVjC,qvBAoBA;2FDVa,oBAAoB;kBALhC,SAAS;sCAGS,uBA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":3,"file":"koalarx-ui-alert.mjs","sources":["../../../projects/alert/src/lib/koala.alert.enum.ts","../../../projects/alert/src/lib/dialog-alert.component.ts","../../../projects/alert/src/lib/dialog-alert.component.html","../../../projects/alert/src/lib/koala.request-code-to-alert-enum.translate.ts","../../../projects/alert/src/lib/koala.alert.service.ts","../../../projects/alert/src/lib/koala.alert.module.ts","../../../projects/alert/src/koalarx-ui-alert.ts"],"sourcesContent":["export enum KoalaAlertEnum {\n success = 200,\n badRequest = 400,\n unhautorized = 401,\n notFound = 404,\n internalServerError = 500\n}\n","import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';\nimport { MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { KoalaAlertConfigInterface } from './koala.alert-config.interface';\nimport { KoalaAlertEnum } from './koala.alert.enum';\n\n@Component({\n templateUrl: 'dialog-alert.component.html',\n styleUrls: ['dialog-alert.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DialogAlertComponent {\n public icon?: string;\n public iconColor?: string;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) public alert: KoalaAlertConfigInterface\n ) {\n if (alert.alertEnum) {\n switch (alert.alertEnum) {\n case KoalaAlertEnum.success:\n this.icon = 'check_circle';\n this.iconColor = 'success';\n break;\n case KoalaAlertEnum.notFound:\n this.icon = 'visibility_off';\n this.iconColor = 'notFound';\n break;\n case KoalaAlertEnum.internalServerError:\n this.icon = 'error';\n this.iconColor = 'error';\n break;\n case KoalaAlertEnum.badRequest:\n this.icon = 'warning';\n this.iconColor = 'badRequest';\n break;\n case KoalaAlertEnum.unhautorized:\n this.icon = 'no_encryption';\n this.iconColor = 'unhautorized';\n break;\n }\n }\n }\n}\n","<div class=\"content\" mat-dialog-content>\n <mat-icon *ngIf=\"alert.alertEnum else avatar\" [ngClass]=\"iconColor ?? ''\">{{icon}}</mat-icon>\n <ng-template #avatar>\n <koala-dynamic-component [dynamicComponent]=\"alert.avatar\"></koala-dynamic-component>\n </ng-template>\n <p [innerHTML]=\"alert.message\" class=\"w-100 alert-message text-center\"></p>\n</div>\n<div align=\"center\" mat-dialog-actions>\n\t<div *ngFor=\"let action of alert?.actions\">\n\t <button\n\t\t (click)=\"action.action()\"\n\t\t *ngIf=\"action.show\"\n\t\t [color]=\"action.color\"\n\t\t mat-dialog-close\n\t\t mat-raised-button>\n\t {{action.text}}\n\t </button>\n\t</div>\n <button color=\"primary\" mat-dialog-close mat-raised-button>Ok</button>\n</div>\n","import { KoalaAlertEnum } from './koala.alert.enum';\n\nexport class KoalaRequestCodeToAlertEnumTranslate {\n\n public static translate(statusCode: number): KoalaAlertEnum {\n switch (statusCode) {\n case 400:\n case 422:\n case 405:\n return KoalaAlertEnum.badRequest;\n case 404:\n return KoalaAlertEnum.notFound;\n case 401:\n return KoalaAlertEnum.unhautorized;\n default:\n return KoalaAlertEnum.internalServerError;\n }\n }\n}\n","import { Injectable } from '@angular/core';\nimport { DialogAlertComponent } from './dialog-alert.component';\nimport { KoalaAlertConfigInterface } from './koala.alert-config.interface';\nimport { KoalaDialogService } from '@koalarx/ui/dialog';\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaAlertService {\n\n constructor(private dialogService: KoalaDialogService) {\n }\n\n public create(alertConfig: KoalaAlertConfigInterface) {\n this.dialogService.open(DialogAlertComponent, 'auto', alertConfig);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DialogAlertComponent } from './dialog-alert.component';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { KoalaAlertService } from './koala.alert.service';\nimport { CommonModule } from '@angular/common';\nimport { KoalaDynamicComponentModule } from \"@koalarx/ui/dynamic-component\";\n\n@NgModule({\n declarations: [\n DialogAlertComponent\n ],\n imports: [\n CommonModule,\n MatDialogModule,\n MatButtonModule,\n MatIconModule,\n KoalaDynamicComponentModule\n ],\n providers: [\n KoalaAlertService\n ],\n exports: [\n DialogAlertComponent\n ]\n})\nexport class K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BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAPhB,SAAA,EAAA;QACT,iBAAiB;KAClB,EATQ,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,eAAe;YACf,eAAe;YACf,aAAa;YACb,2BAA2B;AAC5B,SAAA,CAAA,EAAA,CAAA,CAAA;2FAQU,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAlB5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe;wBACf,eAAe;wBACf,aAAa;wBACb,2BAA2B;AAC5B,qBAAA;AACD,oBAAA,SAAS,EAAE;wBACT,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;AACrB,qBAAA;AACF,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-button.mjs","sources":["../../../projects/button/src/lib/button.component.ts","../../../projects/button/src/lib/button.component.html","../../../projects/button/src/lib/koala.button.module.ts","../../../projects/button/src/koalarx-ui-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\nimport { KoalaIconType } from '@koalarx/ui/icon';\n\n@Component({\n selector: 'koala-button',\n templateUrl: 'button.component.html',\n styleUrls: ['button.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ButtonComponent implements OnInit {\n @Input() color: string = '#fff';\n @Input() backgroundColor: string = '#000';\n @Input() icon?: string | KoalaIconType;\n @Input() text?: string;\n @Input() tooltip?: string;\n @Input() disabled?: boolean;\n @Input() koalaIcon: boolean = false;\n @Input() koalaIconSize: number = 20;\n public style?: string;\n\n ngOnInit() {\n this.style = `color: ${this.color}!important;background-color: ${this.backgroundColor}!important;`;\n }\n\n public getKoalaIcon() {\n return this.icon as KoalaIconType;\n }\n}\n","<button\n\t*ngIf=\"text else iconButton\"\n\t[matTooltipDisabled]=\"!tooltip\"\n\t[matTooltip]=\"tooltip ?? ''\"\n\t[disabled]=\"disabled\"\n [style]=\"style\"\n\tclass=\"koala-button\"\n\tmat-button\n\tmatTooltipPosition=\"above\"\n\ttype=\"button\">\n <mat-icon *ngIf=\"icon && !koalaIcon\">{{icon}}</mat-icon>\n <koala-icon [color]=\"color\" [icon]=\"getKoalaIcon()\" [size]=\"koalaIconSize\" *ngIf=\"icon && koalaIcon\"></koala-icon>\n\t{{text}}\n</button>\n<ng-template #iconButton>\n <button\n\t [matTooltipDisabled]=\"!tooltip\"\n\t [matTooltip]=\"tooltip ?? ''\"\n [style]=\"style\"\n\t [disabled]=\"disabled\"\n\t class=\"koala-icon-button\"\n\t mat-icon-button\n\t matTooltipPosition=\"before\"\n\t type=\"button\">\n <mat-icon *ngIf=\"!koalaIcon\">{{icon}}</mat-icon>\n <koala-icon [color]=\"color\" [icon]=\"getKoalaIcon()\" [size]=\"koalaIconSize\" *ngIf=\"koalaIcon\"></koala-icon>\n </button>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { ButtonComponent } from './button.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { KoalaIconModule } from '@koalarx/ui/icon';\n\n@NgModule({\n declarations: [\n ButtonComponent\n ],\n imports: [\n CommonModule,\n MatTooltipModule,\n MatButtonModule,\n MatIconModule,\n KoalaIconModule\n ],\n exports: [\n ButtonComponent\n ]\n})\nexport class KoalaButtonModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MASa,eAAe;IAN5B;QAOW,UAAK,GAAW,MAAM,CAAC;QACvB,oBAAe,GAAW,MAAM,CAAC;QAKjC,cAAS,GAAY,KAAK,CAAC;QAC3B,kBAAa,GAAW,EAAE,CAAC;KAUrC;IAPC,QAAQ;QACN,IAAI,CAAC,KAAK,GAAG,UAAU,IAAI,CAAC,KAAK,gCAAgC,IAAI,CAAC,eAAe,aAAa,CAAC;KACpG;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,IAAqB,CAAC;KACnC;;4GAjBU,eAAe;gGAAf,eAAe,kPCT5B,o7BA4BA;2FDnBa,eAAe;kBAN3B,SAAS;+BACE,cAAc,mBAGP,uBAAuB,CAAC,MAAM;8BAGtC,KAAK;sBAAb,KAAK;gBACG,eAAe;sBAAvB,KAAK;gBACG,IAAI;sBAAZ,KAAK;gBACG,IAAI;sBAAZ,KAAK;gBACG,OAAO;sBAAf,KAAK;gBACG,QAAQ;sBAAhB,KAAK;gBACG,SAAS;sBAAjB,KAAK;gBACG,aAAa;sBAArB,KAAK;;;MEMK,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAb1B,eAAe,aAGf,YAAY;QACZ,gBAAgB;QAChB,eAAe;QACf,aAAa;QACb,eAAe,aAGf,eAAe;+GAGN,iBAAiB,YAXnB;YACP,YAAY;YACZ,gBAAgB;YAChB,eAAe;YACf,aAAa;YACb,eAAe;SAChB;2FAKU,iBAAiB;kBAf7B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,eAAe;qBAChB;oBACD,OAAO,EAAE;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,eAAe;wBACf,aAAa;wBACb,eAAe;qBAChB;oBACD,OAAO,EAAE;wBACP,eAAe;qBAChB;iBACF;;;ACtBD;;;;;;"}
1
+ {"version":3,"file":"koalarx-ui-button.mjs","sources":["../../../projects/button/src/lib/button.component.ts","../../../projects/button/src/lib/button.component.html","../../../projects/button/src/lib/koala.button.module.ts","../../../projects/button/src/koalarx-ui-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\nimport { KoalaIconType } from '@koalarx/ui/icon';\n\n@Component({\n selector: 'koala-button',\n templateUrl: 'button.component.html',\n styleUrls: ['button.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ButtonComponent implements OnInit {\n @Input() color: string = '#fff';\n @Input() backgroundColor: string = '#000';\n @Input() icon?: string | KoalaIconType;\n @Input() text?: string;\n @Input() tooltip?: string;\n @Input() disabled?: boolean;\n @Input() koalaIcon: boolean = false;\n @Input() koalaIconSize: number = 20;\n public style?: string;\n\n ngOnInit() {\n this.style = `color: ${this.color}!important;background-color: ${this.backgroundColor}!important;`;\n }\n\n public getKoalaIcon() {\n return this.icon as KoalaIconType;\n }\n}\n","<button\n\t*ngIf=\"text else iconButton\"\n\t[matTooltipDisabled]=\"!tooltip\"\n\t[matTooltip]=\"tooltip ?? ''\"\n\t[disabled]=\"disabled\"\n [style]=\"style\"\n\tclass=\"koala-button\"\n\tmat-button\n\tmatTooltipPosition=\"above\"\n\ttype=\"button\">\n <mat-icon *ngIf=\"icon && !koalaIcon\">{{icon}}</mat-icon>\n <koala-icon [color]=\"color\" [icon]=\"getKoalaIcon()\" [size]=\"koalaIconSize\" *ngIf=\"icon && koalaIcon\"></koala-icon>\n\t{{text}}\n</button>\n<ng-template #iconButton>\n <button\n\t [matTooltipDisabled]=\"!tooltip\"\n\t [matTooltip]=\"tooltip ?? ''\"\n [style]=\"style\"\n\t [disabled]=\"disabled\"\n\t class=\"koala-icon-button\"\n\t mat-icon-button\n\t matTooltipPosition=\"before\"\n\t type=\"button\">\n <mat-icon *ngIf=\"!koalaIcon\">{{icon}}</mat-icon>\n <koala-icon [color]=\"color\" [icon]=\"getKoalaIcon()\" [size]=\"koalaIconSize\" *ngIf=\"koalaIcon\"></koala-icon>\n </button>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { ButtonComponent } from './button.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { KoalaIconModule } from '@koalarx/ui/icon';\n\n@NgModule({\n declarations: [\n ButtonComponent\n ],\n imports: [\n CommonModule,\n MatTooltipModule,\n MatButtonModule,\n MatIconModule,\n KoalaIconModule\n ],\n exports: [\n ButtonComponent\n ]\n})\nexport class KoalaButtonModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MASa,eAAe,CAAA;AAN5B,IAAA,WAAA,GAAA;AAOW,QAAA,IAAK,CAAA,KAAA,GAAW,MAAM,CAAC;AACvB,QAAA,IAAe,CAAA,eAAA,GAAW,MAAM,CAAC;AAKjC,QAAA,IAAS,CAAA,SAAA,GAAY,KAAK,CAAC;AAC3B,QAAA,IAAa,CAAA,aAAA,GAAW,EAAE,CAAC;KAUrC;IAPC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,KAAK,GAAG,CAAA,OAAA,EAAU,IAAI,CAAC,KAAK,CAAA,6BAAA,EAAgC,IAAI,CAAC,eAAe,CAAA,WAAA,CAAa,CAAC;KACpG;IAEM,YAAY,GAAA;QACjB,OAAO,IAAI,CAAC,IAAqB,CAAC;KACnC;;4GAjBU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,kPCT5B,o7BA4BA,EAAA,MAAA,EAAA,CAAA,uZAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,4LAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,eAAA,EAAA,OAAA,CAAA,EAAA,QAAA,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,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAjB,iBAAiB,EAAA,YAAA,EAAA,CAb1B,eAAe,CAAA,EAAA,OAAA,EAAA,CAGf,YAAY;QACZ,gBAAgB;QAChB,eAAe;QACf,aAAa;QACb,eAAe,aAGf,eAAe,CAAA,EAAA,CAAA,CAAA;AAGN,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAXnB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,gBAAgB;YAChB,eAAe;YACf,aAAa;YACb,eAAe;SAChB,CAAA,EAAA,CAAA,CAAA;2FAKU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAf7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,eAAe;wBACf,aAAa;wBACb,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;AAChB,qBAAA;iBACF,CAAA;;;ACtBD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-button.mjs","sources":["../../../projects/button/src/lib/button.component.ts","../../../projects/button/src/lib/button.component.html","../../../projects/button/src/lib/koala.button.module.ts","../../../projects/button/src/koalarx-ui-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\nimport { KoalaIconType } from '@koalarx/ui/icon';\n\n@Component({\n selector: 'koala-button',\n templateUrl: 'button.component.html',\n styleUrls: ['button.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ButtonComponent implements OnInit {\n @Input() color: string = '#fff';\n @Input() backgroundColor: string = '#000';\n @Input() icon?: string | KoalaIconType;\n @Input() text?: string;\n @Input() tooltip?: string;\n @Input() disabled?: boolean;\n @Input() koalaIcon: boolean = false;\n @Input() koalaIconSize: number = 20;\n public style?: string;\n\n ngOnInit() {\n this.style = `color: ${this.color}!important;background-color: ${this.backgroundColor}!important;`;\n }\n\n public getKoalaIcon() {\n return this.icon as KoalaIconType;\n }\n}\n","<button\n\t*ngIf=\"text else iconButton\"\n\t[matTooltipDisabled]=\"!tooltip\"\n\t[matTooltip]=\"tooltip ?? ''\"\n\t[disabled]=\"disabled\"\n [style]=\"style\"\n\tclass=\"koala-button\"\n\tmat-button\n\tmatTooltipPosition=\"above\"\n\ttype=\"button\">\n <mat-icon *ngIf=\"icon && !koalaIcon\">{{icon}}</mat-icon>\n <koala-icon [color]=\"color\" [icon]=\"getKoalaIcon()\" [size]=\"koalaIconSize\" *ngIf=\"icon && koalaIcon\"></koala-icon>\n\t{{text}}\n</button>\n<ng-template #iconButton>\n <button\n\t [matTooltipDisabled]=\"!tooltip\"\n\t [matTooltip]=\"tooltip ?? ''\"\n [style]=\"style\"\n\t [disabled]=\"disabled\"\n\t class=\"koala-icon-button\"\n\t mat-icon-button\n\t matTooltipPosition=\"before\"\n\t type=\"button\">\n <mat-icon *ngIf=\"!koalaIcon\">{{icon}}</mat-icon>\n <koala-icon [color]=\"color\" [icon]=\"getKoalaIcon()\" [size]=\"koalaIconSize\" *ngIf=\"koalaIcon\"></koala-icon>\n </button>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { ButtonComponent } from './button.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { KoalaIconModule } from '@koalarx/ui/icon';\n\n@NgModule({\n declarations: [\n ButtonComponent\n ],\n imports: [\n CommonModule,\n MatTooltipModule,\n MatButtonModule,\n MatIconModule,\n KoalaIconModule\n ],\n exports: [\n ButtonComponent\n ]\n})\nexport class KoalaButtonModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MASa,eAAe;IAN5B;QAOW,UAAK,GAAW,MAAM,CAAC;QACvB,oBAAe,GAAW,MAAM,CAAC;QAKjC,cAAS,GAAY,KAAK,CAAC;QAC3B,kBAAa,GAAW,EAAE,CAAC;KAUrC;IAPC,QAAQ;QACN,IAAI,CAAC,KAAK,GAAG,UAAU,IAAI,CAAC,KAAK,gCAAgC,IAAI,CAAC,eAAe,aAAa,CAAC;KACpG;IAEM,YAAY;QACjB,OAAO,IAAI,CAAC,IAAqB,CAAC;KACnC;;4GAjBU,eAAe;gGAAf,eAAe,kPCT5B,o7BA4BA;2FDnBa,eAAe;kBAN3B,SAAS;+BACE,cAAc,mBAGP,uBAAuB,CAAC,MAAM;8BAGtC,KAAK;sBAAb,KAAK;gBACG,eAAe;sBAAvB,KAAK;gBACG,IAAI;sBAAZ,KAAK;gBACG,IAAI;sBAAZ,KAAK;gBACG,OAAO;sBAAf,KAAK;gBACG,QAAQ;sBAAhB,KAAK;gBACG,SAAS;sBAAjB,KAAK;gBACG,aAAa;sBAArB,KAAK;;;MEMK,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAb1B,eAAe,aAGf,YAAY;QACZ,gBAAgB;QAChB,eAAe;QACf,aAAa;QACb,eAAe,aAGf,eAAe;+GAGN,iBAAiB,YAXnB;YACP,YAAY;YACZ,gBAAgB;YAChB,eAAe;YACf,aAAa;YACb,eAAe;SAChB;2FAKU,iBAAiB;kBAf7B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,eAAe;qBAChB;oBACD,OAAO,EAAE;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,eAAe;wBACf,aAAa;wBACb,eAAe;qBAChB;oBACD,OAAO,EAAE;wBACP,eAAe;qBAChB;iBACF;;;ACtBD;;;;;;"}
1
+ {"version":3,"file":"koalarx-ui-button.mjs","sources":["../../../projects/button/src/lib/button.component.ts","../../../projects/button/src/lib/button.component.html","../../../projects/button/src/lib/koala.button.module.ts","../../../projects/button/src/koalarx-ui-button.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\nimport { KoalaIconType } from '@koalarx/ui/icon';\n\n@Component({\n selector: 'koala-button',\n templateUrl: 'button.component.html',\n styleUrls: ['button.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ButtonComponent implements OnInit {\n @Input() color: string = '#fff';\n @Input() backgroundColor: string = '#000';\n @Input() icon?: string | KoalaIconType;\n @Input() text?: string;\n @Input() tooltip?: string;\n @Input() disabled?: boolean;\n @Input() koalaIcon: boolean = false;\n @Input() koalaIconSize: number = 20;\n public style?: string;\n\n ngOnInit() {\n this.style = `color: ${this.color}!important;background-color: ${this.backgroundColor}!important;`;\n }\n\n public getKoalaIcon() {\n return this.icon as KoalaIconType;\n }\n}\n","<button\n\t*ngIf=\"text else iconButton\"\n\t[matTooltipDisabled]=\"!tooltip\"\n\t[matTooltip]=\"tooltip ?? ''\"\n\t[disabled]=\"disabled\"\n [style]=\"style\"\n\tclass=\"koala-button\"\n\tmat-button\n\tmatTooltipPosition=\"above\"\n\ttype=\"button\">\n <mat-icon *ngIf=\"icon && !koalaIcon\">{{icon}}</mat-icon>\n <koala-icon [color]=\"color\" [icon]=\"getKoalaIcon()\" [size]=\"koalaIconSize\" *ngIf=\"icon && koalaIcon\"></koala-icon>\n\t{{text}}\n</button>\n<ng-template #iconButton>\n <button\n\t [matTooltipDisabled]=\"!tooltip\"\n\t [matTooltip]=\"tooltip ?? ''\"\n [style]=\"style\"\n\t [disabled]=\"disabled\"\n\t class=\"koala-icon-button\"\n\t mat-icon-button\n\t matTooltipPosition=\"before\"\n\t type=\"button\">\n <mat-icon *ngIf=\"!koalaIcon\">{{icon}}</mat-icon>\n <koala-icon [color]=\"color\" [icon]=\"getKoalaIcon()\" [size]=\"koalaIconSize\" *ngIf=\"koalaIcon\"></koala-icon>\n </button>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { ButtonComponent } from './button.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { KoalaIconModule } from '@koalarx/ui/icon';\n\n@NgModule({\n declarations: [\n ButtonComponent\n ],\n imports: [\n CommonModule,\n MatTooltipModule,\n MatButtonModule,\n MatIconModule,\n KoalaIconModule\n ],\n exports: [\n ButtonComponent\n ]\n})\nexport class KoalaButtonModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MASa,eAAe,CAAA;AAN5B,IAAA,WAAA,GAAA;QAOW,IAAK,CAAA,KAAA,GAAW,MAAM,CAAC;QACvB,IAAe,CAAA,eAAA,GAAW,MAAM,CAAC;QAKjC,IAAS,CAAA,SAAA,GAAY,KAAK,CAAC;QAC3B,IAAa,CAAA,aAAA,GAAW,EAAE,CAAC;AAUrC,KAAA;IAPC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,KAAK,GAAG,CAAA,OAAA,EAAU,IAAI,CAAC,KAAK,CAAA,6BAAA,EAAgC,IAAI,CAAC,eAAe,CAAA,WAAA,CAAa,CAAC;KACpG;IAEM,YAAY,GAAA;QACjB,OAAO,IAAI,CAAC,IAAqB,CAAC;KACnC;;4GAjBU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,kPCT5B,o7BA4BA,EAAA,MAAA,EAAA,CAAA,uZAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAA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K;gBACG,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;;;MEMK,iBAAiB,CAAA;;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAjB,iBAAiB,EAAA,YAAA,EAAA,CAb1B,eAAe,CAAA,EAAA,OAAA,EAAA,CAGf,YAAY;QACZ,gBAAgB;QAChB,eAAe;QACf,aAAa;AACb,QAAA,eAAe,aAGf,eAAe,CAAA,EAAA,CAAA,CAAA;AAGN,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAXnB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,gBAAgB;YAChB,eAAe;YACf,aAAa;YACb,eAAe;AAChB,SAAA,CAAA,EAAA,CAAA,CAAA;2FAKU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAf7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,eAAe;wBACf,aAAa;wBACb,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;ACtBD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"koalarx-ui-common.mjs","sources":["../../../projects/common/src/lib/services/csv/koala.csv.service.ts","../../../projects/common/src/lib/services/xlsx/koala.xlsx.service.ts","../../../projects/common/src/lib/mask-options.ts","../../../projects/common/src/koalarx-ui-common.ts"],"sourcesContent":["import { Papa } from 'ngx-papaparse';\nimport { Injectable } from '@angular/core';\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaCsvService {\n\n constructor(private papa: Papa) {\n }\n\n public convertJsonToCsv(json: object[], filename: string = 'export') {\n this.downloadCsv(new Blob([\n this.papa.unparse(json, {\n header: true,\n delimiter: \";\",\n newline: \"\\r\\n\"\n })], {\n type: 'text/csv;charset=utf-8;'\n }), filename);\n }\n\n private downloadCsv(blob: Blob, filename: string = 'export') {\n let link = document.createElement('a');\n let url = URL.createObjectURL(blob);\n link.setAttribute(\"href\", url);\n link.setAttribute(\"download\", filename + '.csv');\n link.style.visibility = 'hidden';\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n }\n}\n","import * as Excel from \"exceljs/dist/exceljs.min.js\";\nimport * as ExcelProper from \"exceljs\";\nimport * as fs from 'file-saver';\n\nimport { Injectable } from \"@angular/core\";\nimport { KoalaXlsxConfigInterface } from \"./koala.xlsx-config.interface\";\nimport { koala } from \"@koalarx/utils\";\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaXlsxService {\n\n public async convertJsonToXlsx(json: any[], config: KoalaXlsxConfigInterface) {\n const title = config.title;\n const header = [];\n\n Object.keys(json[0]).forEach(name => {\n header.push((\n config.normalizeHeader === true || config.normalizeHeader === null || config.normalizeHeader === undefined ?\n koala(name).string().normalize().getValue().toUpperCase() :\n name\n ));\n });\n\n const workbook: ExcelProper.Workbook = new Excel.Workbook();\n const worksheet = workbook.addWorksheet(config.sheetName);\n if (config.password) {\n await worksheet.protect(config.password, {\n selectLockedCells: false,\n selectUnlockedCells: false,\n scenarios: false\n });\n }\n\n if (config.title) {\n const titleRow = worksheet.addRow([title]);\n titleRow.alignment = {horizontal: 'center'};\n if (config.titleFontColor) {\n titleRow.font = {bold: true, color: {argb: config.titleFontColor.replace('#', '')}};\n }\n if (config.titleBackgroundColor) {\n titleRow.fill = {\n type: 'pattern',\n pattern: 'solid',\n fgColor: {argb: config.titleBackgroundColor.replace('#', '')},\n bgColor: {argb: config.titleBackgroundColor.replace('#', '')}\n };\n }\n worksheet.mergeCells(`A1:${worksheet.getCell(1, Object.keys(json[0]).length).address}`);\n }\n\n const headerRow = worksheet.addRow(header);\n headerRow.eachCell((cell, number) => {\n if (config.headerBackgroundColor) {\n cell.fill = {\n type: 'pattern',\n pattern: 'solid',\n fgColor: {argb: config.headerBackgroundColor.replace('#', '')},\n bgColor: {argb: config.headerBackgroundColor.replace('#', '')}\n };\n }\n if (config.headerFontColor) {\n cell.font = {\n color: {argb: config.headerFontColor.replace('#', '')}\n };\n }\n });\n\n json.forEach(item => {\n const data = [];\n Object.values(item).forEach(value => data.push(value));\n worksheet.addRow(data);\n });\n\n workbook.xlsx.writeBuffer().then((data) => {\n const blob = new Blob([data], {type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'});\n fs.saveAs(blob, config.filename + '.xlsx');\n });\n }\n}\n","import { IConfig } from 'ngx-mask';\n\nexport const maskOptions: Partial<IConfig> | (() => Partial<IConfig>) = {\n\tvalidation: false\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAIa,eAAe;IAE1B,YAAoB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;KAC7B;IAEM,gBAAgB,CAAC,IAAc,EAAE,WAAmB,QAAQ;QACjE,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;gBACtB,MAAM,EAAE,IAAI;gBACZ,SAAS,EAAE,GAAG;gBACd,OAAO,EAAE,MAAM;aAChB,CAAC;SAAC,EAAE;YACL,IAAI,EAAE,yBAAyB;SAChC,CAAC,EAAE,QAAQ,CAAC,CAAC;KACf;IAEO,WAAW,CAAC,IAAU,EAAE,WAAmB,QAAQ;QACzD,IAAI,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QACvC,IAAI,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QACp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"file":"koalarx-ui-common.mjs","sources":["../../../projects/common/src/lib/services/csv/koala.csv.service.ts","../../../projects/common/src/lib/services/xlsx/koala.xlsx.service.ts","../../../projects/common/src/lib/mask-options.ts","../../../projects/common/src/koalarx-ui-common.ts"],"sourcesContent":["import { Papa } from 'ngx-papaparse';\nimport { Injectable } from '@angular/core';\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaCsvService {\n\n constructor(private papa: Papa) {\n }\n\n public convertJsonToCsv(json: object[], filename: string = 'export') {\n this.downloadCsv(new Blob([\n this.papa.unparse(json, {\n header: true,\n delimiter: \";\",\n newline: \"\\r\\n\"\n })], {\n type: 'text/csv;charset=utf-8;'\n }), filename);\n }\n\n private downloadCsv(blob: Blob, filename: string = 'export') {\n let link = document.createElement('a');\n let url = URL.createObjectURL(blob);\n link.setAttribute(\"href\", url);\n link.setAttribute(\"download\", filename + '.csv');\n link.style.visibility = 'hidden';\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n }\n}\n","import * as Excel from \"exceljs/dist/exceljs.min.js\";\nimport * as ExcelProper from \"exceljs\";\nimport * as fs from 'file-saver';\n\nimport { Injectable } from \"@angular/core\";\nimport { KoalaXlsxConfigInterface } from \"./koala.xlsx-config.interface\";\nimport { koala } from \"@koalarx/utils\";\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaXlsxService {\n\n public async convertJsonToXlsx(json: any[], config: KoalaXlsxConfigInterface) {\n const title = config.title;\n const header = [];\n\n Object.keys(json[0]).forEach(name => {\n header.push((\n config.normalizeHeader === true || config.normalizeHeader === null || config.normalizeHeader === undefined ?\n koala(name).string().normalize().getValue().toUpperCase() :\n name\n ));\n });\n\n const workbook: ExcelProper.Workbook = new Excel.Workbook();\n const worksheet = workbook.addWorksheet(config.sheetName);\n if (config.password) {\n await worksheet.protect(config.password, {\n selectLockedCells: false,\n selectUnlockedCells: false,\n scenarios: false\n });\n }\n\n if (config.title) {\n const titleRow = worksheet.addRow([title]);\n titleRow.alignment = {horizontal: 'center'};\n if (config.titleFontColor) {\n titleRow.font = {bold: true, color: {argb: config.titleFontColor.replace('#', '')}};\n }\n if (config.titleBackgroundColor) {\n titleRow.fill = {\n type: 'pattern',\n pattern: 'solid',\n fgColor: {argb: config.titleBackgroundColor.replace('#', '')},\n bgColor: {argb: config.titleBackgroundColor.replace('#', '')}\n };\n }\n worksheet.mergeCells(`A1:${worksheet.getCell(1, Object.keys(json[0]).length).address}`);\n }\n\n const headerRow = worksheet.addRow(header);\n headerRow.eachCell((cell, number) => {\n if (config.headerBackgroundColor) {\n cell.fill = {\n type: 'pattern',\n pattern: 'solid',\n fgColor: {argb: config.headerBackgroundColor.replace('#', '')},\n bgColor: {argb: config.headerBackgroundColor.replace('#', '')}\n };\n }\n if (config.headerFontColor) {\n cell.font = {\n color: {argb: config.headerFontColor.replace('#', '')}\n };\n }\n });\n\n json.forEach(item => {\n const data = [];\n Object.values(item).forEach(value => data.push(value));\n worksheet.addRow(data);\n });\n\n workbook.xlsx.writeBuffer().then((data) => {\n const blob = new Blob([data], {type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'});\n fs.saveAs(blob, config.filename + '.xlsx');\n });\n }\n}\n","import { IConfig } from 'ngx-mask';\n\nexport const maskOptions: Partial<IConfig> | (() => Partial<IConfig>) = {\n\tvalidation: false\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAIa,eAAe,CAAA;AAE1B,IAAA,WAAA,CAAoB,IAAU,EAAA;AAAV,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAM;KAC7B;AAEM,IAAA,gBAAgB,CAAC,IAAc,EAAE,QAAA,GAAmB,QAAQ,EAAA;AACjE,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC;AACxB,YAAA,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;AACtB,gBAAA,MAAM,EAAE,IAAI;AACZ,gBAAA,SAAS,EAAE,G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 +1 @@
1
- {"version":3,"file":"koalarx-ui-common.mjs","sources":["../../../projects/common/src/lib/services/csv/koala.csv.service.ts","../../../projects/common/src/lib/services/xlsx/koala.xlsx.service.ts","../../../projects/common/src/lib/mask-options.ts","../../../projects/common/src/koalarx-ui-common.ts"],"sourcesContent":["import { Papa } from 'ngx-papaparse';\nimport { Injectable } from '@angular/core';\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaCsvService {\n\n constructor(private papa: Papa) {\n }\n\n public convertJsonToCsv(json: object[], filename: string = 'export') {\n this.downloadCsv(new Blob([\n this.papa.unparse(json, {\n header: true,\n delimiter: \";\",\n newline: \"\\r\\n\"\n })], {\n type: 'text/csv;charset=utf-8;'\n }), filename);\n }\n\n private downloadCsv(blob: Blob, filename: string = 'export') {\n let link = document.createElement('a');\n let url = URL.createObjectURL(blob);\n link.setAttribute(\"href\", url);\n link.setAttribute(\"download\", filename + '.csv');\n link.style.visibility = 'hidden';\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n }\n}\n","import * as Excel from \"exceljs/dist/exceljs.min.js\";\nimport * as ExcelProper from \"exceljs\";\nimport * as fs from 'file-saver';\n\nimport { Injectable } from \"@angular/core\";\nimport { KoalaXlsxConfigInterface } from \"./koala.xlsx-config.interface\";\nimport { koala } from \"@koalarx/utils\";\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaXlsxService {\n\n public async convertJsonToXlsx(json: any[], config: KoalaXlsxConfigInterface) {\n const title = config.title;\n const header = [];\n\n Object.keys(json[0]).forEach(name => {\n header.push((\n config.normalizeHeader === true || config.normalizeHeader === null || config.normalizeHeader === undefined ?\n koala(name).string().normalize().getValue().toUpperCase() :\n name\n ));\n });\n\n const workbook: ExcelProper.Workbook = new Excel.Workbook();\n const worksheet = workbook.addWorksheet(config.sheetName);\n if (config.password) {\n await worksheet.protect(config.password, {\n selectLockedCells: false,\n selectUnlockedCells: false,\n scenarios: false\n });\n }\n\n if (config.title) {\n const titleRow = worksheet.addRow([title]);\n titleRow.alignment = {horizontal: 'center'};\n if (config.titleFontColor) {\n titleRow.font = {bold: true, color: {argb: config.titleFontColor.replace('#', '')}};\n }\n if (config.titleBackgroundColor) {\n titleRow.fill = {\n type: 'pattern',\n pattern: 'solid',\n fgColor: {argb: config.titleBackgroundColor.replace('#', '')},\n bgColor: {argb: config.titleBackgroundColor.replace('#', '')}\n };\n }\n worksheet.mergeCells(`A1:${worksheet.getCell(1, Object.keys(json[0]).length).address}`);\n }\n\n const headerRow = worksheet.addRow(header);\n headerRow.eachCell((cell, number) => {\n if (config.headerBackgroundColor) {\n cell.fill = {\n type: 'pattern',\n pattern: 'solid',\n fgColor: {argb: config.headerBackgroundColor.replace('#', '')},\n bgColor: {argb: config.headerBackgroundColor.replace('#', '')}\n };\n }\n if (config.headerFontColor) {\n cell.font = {\n color: {argb: config.headerFontColor.replace('#', '')}\n };\n }\n });\n\n json.forEach(item => {\n const data = [];\n Object.values(item).forEach(value => data.push(value));\n worksheet.addRow(data);\n });\n\n workbook.xlsx.writeBuffer().then((data) => {\n const blob = new Blob([data], {type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'});\n fs.saveAs(blob, config.filename + '.xlsx');\n });\n }\n}\n","import { IConfig } from 'ngx-mask';\n\nexport const maskOptions: Partial<IConfig> | (() => Partial<IConfig>) = {\n\tvalidation: false\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAIa,eAAe;IAE1B,YAAoB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;KAC7B;IAEM,gBAAgB,CAAC,IAAc,EAAE,WAAmB,QAAQ;QACjE,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;gBACtB,MAAM,EAAE,IAAI;gBACZ,SAAS,EAAE,GAAG;gBACd,OAAO,EAAE,MAAM;aAChB,CAAC;SAAC,EAAE;YACL,IAAI,EA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5C,CAAC,CAAC;KACJ;;6GApEU,gBAAgB;iHAAhB,gBAAgB,cADJ,KAAK;2FACjB,gBAAgB;kBAD5B,UAAU;mBAAC,EAAC,UAAU,EAAE,KAAK,EAAC;;;MCNlB,WAAW,GAAgD;IACvE,UAAU,EAAE,KAAK;;;ACHlB;;;;;;"}
1
+ {"version":3,"file":"koalarx-ui-common.mjs","sources":["../../../projects/common/src/lib/services/csv/koala.csv.service.ts","../../../projects/common/src/lib/services/xlsx/koala.xlsx.service.ts","../../../projects/common/src/lib/mask-options.ts","../../../projects/common/src/koalarx-ui-common.ts"],"sourcesContent":["import { Papa } from 'ngx-papaparse';\nimport { Injectable } from '@angular/core';\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaCsvService {\n\n constructor(private papa: Papa) {\n }\n\n public convertJsonToCsv(json: object[], filename: string = 'export') {\n this.downloadCsv(new Blob([\n this.papa.unparse(json, {\n header: true,\n delimiter: \";\",\n newline: \"\\r\\n\"\n })], {\n type: 'text/csv;charset=utf-8;'\n }), filename);\n }\n\n private downloadCsv(blob: Blob, filename: string = 'export') {\n let link = document.createElement('a');\n let url = URL.createObjectURL(blob);\n link.setAttribute(\"href\", url);\n link.setAttribute(\"download\", filename + '.csv');\n link.style.visibility = 'hidden';\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n }\n}\n","import * as Excel from \"exceljs/dist/exceljs.min.js\";\nimport * as ExcelProper from \"exceljs\";\nimport * as fs from 'file-saver';\n\nimport { Injectable } from \"@angular/core\";\nimport { KoalaXlsxConfigInterface } from \"./koala.xlsx-config.interface\";\nimport { koala } from \"@koalarx/utils\";\n\n@Injectable({providedIn: \"any\"})\nexport class KoalaXlsxService {\n\n public async convertJsonToXlsx(json: any[], config: KoalaXlsxConfigInterface) {\n const title = config.title;\n const header = [];\n\n Object.keys(json[0]).forEach(name => {\n header.push((\n config.normalizeHeader === true || config.normalizeHeader === null || config.normalizeHeader === undefined ?\n koala(name).string().normalize().getValue().toUpperCase() :\n name\n ));\n });\n\n const workbook: ExcelProper.Workbook = new Excel.Workbook();\n const worksheet = workbook.addWorksheet(config.sheetName);\n if (config.password) {\n await worksheet.protect(config.password, {\n selectLockedCells: false,\n selectUnlockedCells: false,\n scenarios: false\n });\n }\n\n if (config.title) {\n const titleRow = worksheet.addRow([title]);\n titleRow.alignment = {horizontal: 'center'};\n if (config.titleFontColor) {\n titleRow.font = {bold: true, color: {argb: config.titleFontColor.replace('#', '')}};\n }\n if (config.titleBackgroundColor) {\n titleRow.fill = {\n type: 'pattern',\n pattern: 'solid',\n fgColor: {argb: config.titleBackgroundColor.replace('#', '')},\n bgColor: {argb: config.titleBackgroundColor.replace('#', '')}\n };\n }\n worksheet.mergeCells(`A1:${worksheet.getCell(1, Object.keys(json[0]).length).address}`);\n }\n\n const headerRow = worksheet.addRow(header);\n headerRow.eachCell((cell, number) => {\n if (config.headerBackgroundColor) {\n cell.fill = {\n type: 'pattern',\n pattern: 'solid',\n fgColor: {argb: config.headerBackgroundColor.replace('#', '')},\n bgColor: {argb: config.headerBackgroundColor.replace('#', '')}\n };\n }\n if (config.headerFontColor) {\n cell.font = {\n color: {argb: config.headerFontColor.replace('#', '')}\n };\n }\n });\n\n json.forEach(item => {\n const data = [];\n Object.values(item).forEach(value => data.push(value));\n worksheet.addRow(data);\n });\n\n workbook.xlsx.writeBuffer().then((data) => {\n const blob = new Blob([data], {type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'});\n fs.saveAs(blob, config.filename + '.xlsx');\n });\n }\n}\n","import { IConfig } from 'ngx-mask';\n\nexport const maskOptions: Partial<IConfig> | (() => Partial<IConfig>) = {\n\tvalidation: false\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAIa,eAAe,CAAA;AAE1B,IAAA,WAAA,CAAoB,IAAU,EAAA;QAAV,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAM;KAC7B;AAEM,IAAA,gBAAgB,CAAC,IAAc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EAAA,UAAA,EAAA,CAAA;kBAD5B,UAAU;mBAAC,EAAC,UAAU,EAAE,KAAK,EAAC,CAAA;;;ACNlB,MAAA,WAAW,GAAgD;AACvE,IAAA,UAAU,EAAE,KAAK;;;ACHlB;;AAEG;;;;"}
@@ -361,7 +361,7 @@ koala-menu ul li li.active a koala-icon * {fill: ${this.palletColors.menuOptions
361
361
  }
362
362
  }
363
363
  PageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: PageComponent, deps: [{ token: i1.KoalaTokenService }, { token: i2.Router }, { token: i3.KoalaLoaderService }, { token: i4.KoalaMenuService }, { token: i5.KoalaOAuth2Service }, { token: i6.DeviceDetectorService }], target: i0.ɵɵFactoryTarget.Component });
364
- PageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: PageComponent, selector: "koala-page", inputs: { showMenu: "showMenu", color: "color", logo: "logo", startMenuOpened: "startMenuOpened", showLoaderPage: "showLoaderPage", messageLoaderPage: "messageLoaderPage", defaultPage: "defaultPage", openPages: "openPages", notifications: "notifications", userMenuOptions: "userMenuOptions", palletColors: "palletColors", language: "language" }, outputs: { validatingScope: "validatingScope", logoutEmitter: "logoutEmitter", deleteAllNotifications: "deleteAllNotifications", deleteNotification: "deleteNotification" }, providers: [KoalaTokenService], viewQueries: [{ propertyName: "menu", first: true, predicate: ["drawer"], descendants: true, static: true }], ngImport: i0, template: "<div *ngIf=\"showLoaderPage | async\" class=\"koala-loader-pg\">\n <div class=\"loader-content\">\n <figure>\n <img [src]=\"logo\" alt=\"Logotipo\"/>\n <figcaption *ngIf=\"(messageLoaderPage | async) as messageLoader\" [innerHTML]=\"messageLoader\"></figcaption>\n </figure>\n <mat-spinner></mat-spinner>\n </div>\n</div>\n<app-loader-page *ngIf=\"(loaderSubject | async) as loader\" [progress]=\"loader.progress\" [show]=\"loader.show\"\n [typeLoader]=\"loader.typeLoader\"></app-loader-page>\n<mat-drawer-container autosize class=\"menu-container\">\n <mat-drawer #drawer class=\"menu-options\" [mode]=\"isMobile ? 'push' : 'side'\">\n <img [src]=\"logo\" alt=\"Logotipo\" id=\"logotipo\"/>\n <ng-content *ngIf=\"showMenu\" select=\"[menu-options]\"></ng-content>\n </mat-drawer>\n\n <mat-toolbar *ngIf=\"!!(logged$ | async) && (username$ | async)\" class=\"toolbar\">\n <img *ngIf=\"!showMenu\" [src]=\"logo\" alt=\"Logotipo Toolbar\" id=\"logotipo-toolbar\"/>\n <button (click)=\"toogleMenu()\" *ngIf=\"showMenu\" [color]=\"color\" class=\"btn-collapse-menu\" mat-icon-button>\n <mat-icon>menu</mat-icon>\n </button>\n <span class=\"spacer\"></span>\n\t <div class=\"menu-toolbar\">\n\t\t <ng-content select=\"[menu-toolbar]\"></ng-content>\n\t </div>\n <div *ngIf=\"(notifications | async) as notificationList\">\n <button *ngIf=\"notifications\" [color]=\"color\" [matMenuTriggerFor]=\"notificationsMenu\" class=\"btn-toolbar\"\n mat-icon-button>\n <mat-icon\n\t [matBadgeHidden]=\"notificationList.length === 0\"\n\t [matBadge]=\"notificationList.length.toString()\"\n\t matBadgeColor=\"warn\">notifications\n </mat-icon>\n </button>\n <mat-menu #notificationsMenu=\"matMenu\" class=\"menu-list\" yPosition=\"below\">\n <koala-notification-list\n (delete)=\"deleteNotification.emit($event)\"\n (deleteAll)=\"deleteAllNotifications.emit($event)\"\n [notifications]=\"notificationList\">\n </koala-notification-list>\n </mat-menu>\n </div>\n <button [color]=\"color\" [matMenuTriggerFor]=\"userOptions\" class=\"btn-toolbar\" mat-button>\n <span>{{username$ | async}}</span>\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span>\n </button>\n <mat-menu #userOptions=\"matMenu\" class=\"user-menu menu-list\" yPosition=\"below\">\n <div class=\"user-presentation\">\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span><br/>\n <span class=\"username\">{{username$ | async}}</span>\n </div>\n <button (click)=\"btn.action()\" *ngFor=\"let btn of userMenuOptions\" mat-menu-item>\n <mat-icon>{{btn.icon}}</mat-icon>\n <span>{{btn.name}}</span>\n </button>\n <button (click)=\"logout()\" mat-menu-item>\n <mat-icon>exit_to_app</mat-icon>\n <span>{{language === 'ptBr' ? 'Sair' : 'Logout'}}</span>\n </button>\n </mat-menu>\n </mat-toolbar>\n\n <ng-content class=\"page-content\" select=\"[page-content]\"></ng-content>\n\n</mat-drawer-container>\n\n<ng-content class=\"loading-info-content\" select=\"[loading-info-content]\"></ng-content>\n", styles: [".menu-container{height:100vh;width:100vw}.menu-options{border:none;padding:20px 0 0;width:250px}.page-content{align-items:center;display:flex;height:100%;justify-content:center}img#logotipo,img#logotipo-toolbar{display:block;height:auto;margin:0 auto 25px;position:relative;width:120px}.toolbar{box-shadow:none;padding:0 7px 0 13px}.toolbar img#logotipo-toolbar{margin:0;padding:0 10px}.menu-toolbar{margin:0 10px}.spacer{flex:1 1 auto}.btn-toolbar{display:inline-block;margin-right:10px;position:relative}.btn-toolbar span{padding:0 10px 0 0}.btn-toolbar span.icon-user,.user-presentation span.icon-user{border-radius:50%;display:inline-block;height:10px;line-height:10px;padding:5px;width:10px}.user-presentation{min-width:260px;padding:50px 10px;text-align:center}.user-presentation span.icon-user{font-size:30px;height:30px;line-height:30px;margin-bottom:10px;width:30px}.user-presentation span.username{font-family:OpenSansLight,sans-serif;word-break:break-all}@media (max-width: 900px){.btn-toolbar span:first-child{display:none}.btn-toolbar span.icon-user,.user-presentation span.icon-user{height:20px;line-height:20px;width:20px}}\n"], components: [{ type: i7.MatSpinner, selector: "mat-spinner", inputs: ["color"] }, { type: i8.LoaderBarPageComponent, selector: "app-loader-page", inputs: ["show", "progress", "typeLoader"] }, { type: i9.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { type: i9.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { type: i10.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i11.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i12.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i13.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i14.NotificationComponent, selector: "koala-notification-list", inputs: ["notifications"], outputs: ["deleteAll", "delete"] }, { type: i13.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }], directives: [{ type: i15.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i13.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { type: i16.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { type: i15.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i15.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
364
+ PageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: PageComponent, selector: "koala-page", inputs: { showMenu: "showMenu", color: "color", logo: "logo", startMenuOpened: "startMenuOpened", showLoaderPage: "showLoaderPage", messageLoaderPage: "messageLoaderPage", defaultPage: "defaultPage", openPages: "openPages", notifications: "notifications", userMenuOptions: "userMenuOptions", palletColors: "palletColors", language: "language" }, outputs: { validatingScope: "validatingScope", logoutEmitter: "logoutEmitter", deleteAllNotifications: "deleteAllNotifications", deleteNotification: "deleteNotification" }, providers: [KoalaTokenService], viewQueries: [{ propertyName: "menu", first: true, predicate: ["drawer"], descendants: true, static: true }], ngImport: i0, template: "<div *ngIf=\"showLoaderPage | async\" class=\"koala-loader-pg\">\n <div class=\"loader-content\">\n <figure>\n <img [src]=\"logo\" alt=\"Logotipo\"/>\n <figcaption *ngIf=\"(messageLoaderPage | async) as messageLoader\" [innerHTML]=\"messageLoader\"></figcaption>\n </figure>\n <mat-spinner></mat-spinner>\n </div>\n</div>\n<app-loader-page *ngIf=\"(loaderSubject | async) as loader\" [progress]=\"loader.progress\" [show]=\"loader.show\"\n [typeLoader]=\"loader.typeLoader\"></app-loader-page>\n<mat-drawer-container autosize class=\"menu-container\">\n <mat-drawer #drawer class=\"menu-options\" [mode]=\"isMobile ? 'push' : 'side'\">\n <img [src]=\"logo\" alt=\"Logotipo\" id=\"logotipo\"/>\n <ng-content *ngIf=\"showMenu\" select=\"[menu-options]\"></ng-content>\n </mat-drawer>\n\n <mat-toolbar *ngIf=\"!!(logged$ | async) && (username$ | async)\" class=\"toolbar\">\n <img *ngIf=\"!showMenu\" [src]=\"logo\" alt=\"Logotipo Toolbar\" id=\"logotipo-toolbar\"/>\n <button (click)=\"toogleMenu()\" *ngIf=\"showMenu\" [color]=\"color\" class=\"btn-collapse-menu\" mat-icon-button>\n <mat-icon>menu</mat-icon>\n </button>\n <span class=\"spacer\"></span>\n\t <div class=\"menu-toolbar\">\n\t\t <ng-content select=\"[menu-toolbar]\"></ng-content>\n\t </div>\n <div *ngIf=\"(notifications | async) as notificationList\">\n <button *ngIf=\"notifications\" [color]=\"color\" [matMenuTriggerFor]=\"notificationsMenu\" class=\"btn-toolbar\"\n mat-icon-button>\n <mat-icon\n\t [matBadgeHidden]=\"notificationList.length === 0\"\n\t [matBadge]=\"notificationList.length.toString()\"\n\t matBadgeColor=\"warn\">notifications\n </mat-icon>\n </button>\n <mat-menu #notificationsMenu=\"matMenu\" class=\"menu-list\" yPosition=\"below\">\n <koala-notification-list\n (delete)=\"deleteNotification.emit($event)\"\n (deleteAll)=\"deleteAllNotifications.emit($event)\"\n [notifications]=\"notificationList\">\n </koala-notification-list>\n </mat-menu>\n </div>\n <button [color]=\"color\" [matMenuTriggerFor]=\"userOptions\" class=\"btn-toolbar\" mat-button>\n <span>{{username$ | async}}</span>\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span>\n </button>\n <mat-menu #userOptions=\"matMenu\" class=\"user-menu menu-list\" yPosition=\"below\">\n <div class=\"user-presentation\">\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span><br/>\n <span class=\"username\">{{username$ | async}}</span>\n </div>\n <button (click)=\"btn.action()\" *ngFor=\"let btn of userMenuOptions\" mat-menu-item>\n <mat-icon>{{btn.icon}}</mat-icon>\n <span>{{btn.name}}</span>\n </button>\n <button (click)=\"logout()\" mat-menu-item>\n <mat-icon>exit_to_app</mat-icon>\n <span>{{language === 'ptBr' ? 'Sair' : 'Logout'}}</span>\n </button>\n </mat-menu>\n </mat-toolbar>\n\n <ng-content class=\"page-content\" select=\"[page-content]\"></ng-content>\n\n</mat-drawer-container>\n\n<ng-content class=\"loading-info-content\" select=\"[loading-info-content]\"></ng-content>\n", styles: [".menu-container{height:100vh;width:100vw}.menu-options{border:none;padding:20px 0 0;width:250px}.page-content{align-items:center;display:flex;height:100%;justify-content:center}img#logotipo,img#logotipo-toolbar{display:block;height:auto;margin:0 auto 25px;position:relative;width:120px}.toolbar{box-shadow:none;padding:0 7px 0 13px}.toolbar img#logotipo-toolbar{margin:0;padding:0 10px}.menu-toolbar{margin:0 10px}.spacer{flex:1 1 auto}.btn-toolbar{display:inline-block;margin-right:10px;position:relative}.btn-toolbar span{padding:0 10px 0 0}.btn-toolbar span.icon-user,.user-presentation span.icon-user{border-radius:50%;display:inline-block;height:10px;line-height:10px;padding:5px;width:10px}.user-presentation{min-width:260px;padding:50px 10px;text-align:center}.user-presentation span.icon-user{font-size:30px;height:30px;line-height:30px;margin-bottom:10px;width:30px}.user-presentation span.username{font-family:OpenSansLight,sans-serif;word-break:break-all}@media (max-width: 900px){.btn-toolbar span:first-child{display:none}.btn-toolbar span.icon-user,.user-presentation span.icon-user{height:20px;line-height:20px;width:20px}}\n"], components: [{ type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { type: i8.LoaderBarPageComponent, selector: "app-loader-page", inputs: ["show", "progress", "typeLoader"] }, { type: i9.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { type: i9.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { type: i10.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i11.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i12.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i13.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: i14.NotificationComponent, selector: "koala-notification-list", inputs: ["notifications"], outputs: ["deleteAll", "delete"] }, { type: i13.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }], directives: [{ type: i15.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i13.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { type: i16.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { type: i15.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i15.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
365
365
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: PageComponent, decorators: [{
366
366
  type: Component,
367
367
  args: [{ selector: 'koala-page', providers: [KoalaTokenService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"showLoaderPage | async\" class=\"koala-loader-pg\">\n <div class=\"loader-content\">\n <figure>\n <img [src]=\"logo\" alt=\"Logotipo\"/>\n <figcaption *ngIf=\"(messageLoaderPage | async) as messageLoader\" [innerHTML]=\"messageLoader\"></figcaption>\n </figure>\n <mat-spinner></mat-spinner>\n </div>\n</div>\n<app-loader-page *ngIf=\"(loaderSubject | async) as loader\" [progress]=\"loader.progress\" [show]=\"loader.show\"\n [typeLoader]=\"loader.typeLoader\"></app-loader-page>\n<mat-drawer-container autosize class=\"menu-container\">\n <mat-drawer #drawer class=\"menu-options\" [mode]=\"isMobile ? 'push' : 'side'\">\n <img [src]=\"logo\" alt=\"Logotipo\" id=\"logotipo\"/>\n <ng-content *ngIf=\"showMenu\" select=\"[menu-options]\"></ng-content>\n </mat-drawer>\n\n <mat-toolbar *ngIf=\"!!(logged$ | async) && (username$ | async)\" class=\"toolbar\">\n <img *ngIf=\"!showMenu\" [src]=\"logo\" alt=\"Logotipo Toolbar\" id=\"logotipo-toolbar\"/>\n <button (click)=\"toogleMenu()\" *ngIf=\"showMenu\" [color]=\"color\" class=\"btn-collapse-menu\" mat-icon-button>\n <mat-icon>menu</mat-icon>\n </button>\n <span class=\"spacer\"></span>\n\t <div class=\"menu-toolbar\">\n\t\t <ng-content select=\"[menu-toolbar]\"></ng-content>\n\t </div>\n <div *ngIf=\"(notifications | async) as notificationList\">\n <button *ngIf=\"notifications\" [color]=\"color\" [matMenuTriggerFor]=\"notificationsMenu\" class=\"btn-toolbar\"\n mat-icon-button>\n <mat-icon\n\t [matBadgeHidden]=\"notificationList.length === 0\"\n\t [matBadge]=\"notificationList.length.toString()\"\n\t matBadgeColor=\"warn\">notifications\n </mat-icon>\n </button>\n <mat-menu #notificationsMenu=\"matMenu\" class=\"menu-list\" yPosition=\"below\">\n <koala-notification-list\n (delete)=\"deleteNotification.emit($event)\"\n (deleteAll)=\"deleteAllNotifications.emit($event)\"\n [notifications]=\"notificationList\">\n </koala-notification-list>\n </mat-menu>\n </div>\n <button [color]=\"color\" [matMenuTriggerFor]=\"userOptions\" class=\"btn-toolbar\" mat-button>\n <span>{{username$ | async}}</span>\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span>\n </button>\n <mat-menu #userOptions=\"matMenu\" class=\"user-menu menu-list\" yPosition=\"below\">\n <div class=\"user-presentation\">\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span><br/>\n <span class=\"username\">{{username$ | async}}</span>\n </div>\n <button (click)=\"btn.action()\" *ngFor=\"let btn of userMenuOptions\" mat-menu-item>\n <mat-icon>{{btn.icon}}</mat-icon>\n <span>{{btn.name}}</span>\n </button>\n <button (click)=\"logout()\" mat-menu-item>\n <mat-icon>exit_to_app</mat-icon>\n <span>{{language === 'ptBr' ? 'Sair' : 'Logout'}}</span>\n </button>\n </mat-menu>\n </mat-toolbar>\n\n <ng-content class=\"page-content\" select=\"[page-content]\"></ng-content>\n\n</mat-drawer-container>\n\n<ng-content class=\"loading-info-content\" select=\"[loading-info-content]\"></ng-content>\n", styles: [".menu-container{height:100vh;width:100vw}.menu-options{border:none;padding:20px 0 0;width:250px}.page-content{align-items:center;display:flex;height:100%;justify-content:center}img#logotipo,img#logotipo-toolbar{display:block;height:auto;margin:0 auto 25px;position:relative;width:120px}.toolbar{box-shadow:none;padding:0 7px 0 13px}.toolbar img#logotipo-toolbar{margin:0;padding:0 10px}.menu-toolbar{margin:0 10px}.spacer{flex:1 1 auto}.btn-toolbar{display:inline-block;margin-right:10px;position:relative}.btn-toolbar span{padding:0 10px 0 0}.btn-toolbar span.icon-user,.user-presentation span.icon-user{border-radius:50%;display:inline-block;height:10px;line-height:10px;padding:5px;width:10px}.user-presentation{min-width:260px;padding:50px 10px;text-align:center}.user-presentation span.icon-user{font-size:30px;height:30px;line-height:30px;margin-bottom:10px;width:30px}.user-presentation span.username{font-family:OpenSansLight,sans-serif;word-break:break-all}@media (max-width: 900px){.btn-toolbar span:first-child{display:none}.btn-toolbar span.icon-user,.user-presentation span.icon-user{height:20px;line-height:20px;width:20px}}\n"] }]
@@ -892,7 +892,7 @@ koala-menu ul li li.active a koala-icon * {fill: ${this.palletColors.menuOptions
892
892
  }
893
893
  }
894
894
  PageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: PageComponent, deps: [{ token: KoalaTokenService }, { token: i2$1.Router }, { token: KoalaLoaderService }, { token: i4$1.KoalaMenuService }, { token: KoalaOAuth2Service }, { token: i6$1.DeviceDetectorService }], target: i0.ɵɵFactoryTarget.Component });
895
- PageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: PageComponent, selector: "koala-page", inputs: { showMenu: "showMenu", color: "color", logo: "logo", startMenuOpened: "startMenuOpened", showLoaderPage: "showLoaderPage", messageLoaderPage: "messageLoaderPage", defaultPage: "defaultPage", openPages: "openPages", notifications: "notifications", userMenuOptions: "userMenuOptions", palletColors: "palletColors", language: "language" }, outputs: { validatingScope: "validatingScope", logoutEmitter: "logoutEmitter", deleteAllNotifications: "deleteAllNotifications", deleteNotification: "deleteNotification" }, providers: [KoalaTokenService], viewQueries: [{ propertyName: "menu", first: true, predicate: ["drawer"], descendants: true, static: true }], ngImport: i0, template: "<div *ngIf=\"showLoaderPage | async\" class=\"koala-loader-pg\">\n <div class=\"loader-content\">\n <figure>\n <img [src]=\"logo\" alt=\"Logotipo\"/>\n <figcaption *ngIf=\"(messageLoaderPage | async) as messageLoader\" [innerHTML]=\"messageLoader\"></figcaption>\n </figure>\n <mat-spinner></mat-spinner>\n </div>\n</div>\n<app-loader-page *ngIf=\"(loaderSubject | async) as loader\" [progress]=\"loader.progress\" [show]=\"loader.show\"\n [typeLoader]=\"loader.typeLoader\"></app-loader-page>\n<mat-drawer-container autosize class=\"menu-container\">\n <mat-drawer #drawer class=\"menu-options\" [mode]=\"isMobile ? 'push' : 'side'\">\n <img [src]=\"logo\" alt=\"Logotipo\" id=\"logotipo\"/>\n <ng-content *ngIf=\"showMenu\" select=\"[menu-options]\"></ng-content>\n </mat-drawer>\n\n <mat-toolbar *ngIf=\"!!(logged$ | async) && (username$ | async)\" class=\"toolbar\">\n <img *ngIf=\"!showMenu\" [src]=\"logo\" alt=\"Logotipo Toolbar\" id=\"logotipo-toolbar\"/>\n <button (click)=\"toogleMenu()\" *ngIf=\"showMenu\" [color]=\"color\" class=\"btn-collapse-menu\" mat-icon-button>\n <mat-icon>menu</mat-icon>\n </button>\n <span class=\"spacer\"></span>\n\t <div class=\"menu-toolbar\">\n\t\t <ng-content select=\"[menu-toolbar]\"></ng-content>\n\t </div>\n <div *ngIf=\"(notifications | async) as notificationList\">\n <button *ngIf=\"notifications\" [color]=\"color\" [matMenuTriggerFor]=\"notificationsMenu\" class=\"btn-toolbar\"\n mat-icon-button>\n <mat-icon\n\t [matBadgeHidden]=\"notificationList.length === 0\"\n\t [matBadge]=\"notificationList.length.toString()\"\n\t matBadgeColor=\"warn\">notifications\n </mat-icon>\n </button>\n <mat-menu #notificationsMenu=\"matMenu\" class=\"menu-list\" yPosition=\"below\">\n <koala-notification-list\n (delete)=\"deleteNotification.emit($event)\"\n (deleteAll)=\"deleteAllNotifications.emit($event)\"\n [notifications]=\"notificationList\">\n </koala-notification-list>\n </mat-menu>\n </div>\n <button [color]=\"color\" [matMenuTriggerFor]=\"userOptions\" class=\"btn-toolbar\" mat-button>\n <span>{{username$ | async}}</span>\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span>\n </button>\n <mat-menu #userOptions=\"matMenu\" class=\"user-menu menu-list\" yPosition=\"below\">\n <div class=\"user-presentation\">\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span><br/>\n <span class=\"username\">{{username$ | async}}</span>\n </div>\n <button (click)=\"btn.action()\" *ngFor=\"let btn of userMenuOptions\" mat-menu-item>\n <mat-icon>{{btn.icon}}</mat-icon>\n <span>{{btn.name}}</span>\n </button>\n <button (click)=\"logout()\" mat-menu-item>\n <mat-icon>exit_to_app</mat-icon>\n <span>{{language === 'ptBr' ? 'Sair' : 'Logout'}}</span>\n </button>\n </mat-menu>\n </mat-toolbar>\n\n <ng-content class=\"page-content\" select=\"[page-content]\"></ng-content>\n\n</mat-drawer-container>\n\n<ng-content class=\"loading-info-content\" select=\"[loading-info-content]\"></ng-content>\n", styles: [".menu-container{height:100vh;width:100vw}.menu-options{border:none;padding:20px 0 0;width:250px}.page-content{align-items:center;display:flex;height:100%;justify-content:center}img#logotipo,img#logotipo-toolbar{display:block;height:auto;margin:0 auto 25px;position:relative;width:120px}.toolbar{box-shadow:none;padding:0 7px 0 13px}.toolbar img#logotipo-toolbar{margin:0;padding:0 10px}.menu-toolbar{margin:0 10px}.spacer{flex:1 1 auto}.btn-toolbar{display:inline-block;margin-right:10px;position:relative}.btn-toolbar span{padding:0 10px 0 0}.btn-toolbar span.icon-user,.user-presentation span.icon-user{border-radius:50%;display:inline-block;height:10px;line-height:10px;padding:5px;width:10px}.user-presentation{min-width:260px;padding:50px 10px;text-align:center}.user-presentation span.icon-user{font-size:30px;height:30px;line-height:30px;margin-bottom:10px;width:30px}.user-presentation span.username{font-family:OpenSansLight,sans-serif;word-break:break-all}@media (max-width: 900px){.btn-toolbar span:first-child{display:none}.btn-toolbar span.icon-user,.user-presentation span.icon-user{height:20px;line-height:20px;width:20px}}\n"], components: [{ type: i7.MatSpinner, selector: "mat-spinner", inputs: ["color"] }, { type: LoaderBarPageComponent, selector: "app-loader-page", inputs: ["show", "progress", "typeLoader"] }, { type: i9.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { type: i9.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { type: i10.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i13.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: NotificationComponent, selector: "koala-notification-list", inputs: ["notifications"], outputs: ["deleteAll", "delete"] }, { type: i13.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }], directives: [{ type: i15.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i13.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { type: i16.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { type: i15.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i15.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
895
+ PageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: PageComponent, selector: "koala-page", inputs: { showMenu: "showMenu", color: "color", logo: "logo", startMenuOpened: "startMenuOpened", showLoaderPage: "showLoaderPage", messageLoaderPage: "messageLoaderPage", defaultPage: "defaultPage", openPages: "openPages", notifications: "notifications", userMenuOptions: "userMenuOptions", palletColors: "palletColors", language: "language" }, outputs: { validatingScope: "validatingScope", logoutEmitter: "logoutEmitter", deleteAllNotifications: "deleteAllNotifications", deleteNotification: "deleteNotification" }, providers: [KoalaTokenService], viewQueries: [{ propertyName: "menu", first: true, predicate: ["drawer"], descendants: true, static: true }], ngImport: i0, template: "<div *ngIf=\"showLoaderPage | async\" class=\"koala-loader-pg\">\n <div class=\"loader-content\">\n <figure>\n <img [src]=\"logo\" alt=\"Logotipo\"/>\n <figcaption *ngIf=\"(messageLoaderPage | async) as messageLoader\" [innerHTML]=\"messageLoader\"></figcaption>\n </figure>\n <mat-spinner></mat-spinner>\n </div>\n</div>\n<app-loader-page *ngIf=\"(loaderSubject | async) as loader\" [progress]=\"loader.progress\" [show]=\"loader.show\"\n [typeLoader]=\"loader.typeLoader\"></app-loader-page>\n<mat-drawer-container autosize class=\"menu-container\">\n <mat-drawer #drawer class=\"menu-options\" [mode]=\"isMobile ? 'push' : 'side'\">\n <img [src]=\"logo\" alt=\"Logotipo\" id=\"logotipo\"/>\n <ng-content *ngIf=\"showMenu\" select=\"[menu-options]\"></ng-content>\n </mat-drawer>\n\n <mat-toolbar *ngIf=\"!!(logged$ | async) && (username$ | async)\" class=\"toolbar\">\n <img *ngIf=\"!showMenu\" [src]=\"logo\" alt=\"Logotipo Toolbar\" id=\"logotipo-toolbar\"/>\n <button (click)=\"toogleMenu()\" *ngIf=\"showMenu\" [color]=\"color\" class=\"btn-collapse-menu\" mat-icon-button>\n <mat-icon>menu</mat-icon>\n </button>\n <span class=\"spacer\"></span>\n\t <div class=\"menu-toolbar\">\n\t\t <ng-content select=\"[menu-toolbar]\"></ng-content>\n\t </div>\n <div *ngIf=\"(notifications | async) as notificationList\">\n <button *ngIf=\"notifications\" [color]=\"color\" [matMenuTriggerFor]=\"notificationsMenu\" class=\"btn-toolbar\"\n mat-icon-button>\n <mat-icon\n\t [matBadgeHidden]=\"notificationList.length === 0\"\n\t [matBadge]=\"notificationList.length.toString()\"\n\t matBadgeColor=\"warn\">notifications\n </mat-icon>\n </button>\n <mat-menu #notificationsMenu=\"matMenu\" class=\"menu-list\" yPosition=\"below\">\n <koala-notification-list\n (delete)=\"deleteNotification.emit($event)\"\n (deleteAll)=\"deleteAllNotifications.emit($event)\"\n [notifications]=\"notificationList\">\n </koala-notification-list>\n </mat-menu>\n </div>\n <button [color]=\"color\" [matMenuTriggerFor]=\"userOptions\" class=\"btn-toolbar\" mat-button>\n <span>{{username$ | async}}</span>\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span>\n </button>\n <mat-menu #userOptions=\"matMenu\" class=\"user-menu menu-list\" yPosition=\"below\">\n <div class=\"user-presentation\">\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span><br/>\n <span class=\"username\">{{username$ | async}}</span>\n </div>\n <button (click)=\"btn.action()\" *ngFor=\"let btn of userMenuOptions\" mat-menu-item>\n <mat-icon>{{btn.icon}}</mat-icon>\n <span>{{btn.name}}</span>\n </button>\n <button (click)=\"logout()\" mat-menu-item>\n <mat-icon>exit_to_app</mat-icon>\n <span>{{language === 'ptBr' ? 'Sair' : 'Logout'}}</span>\n </button>\n </mat-menu>\n </mat-toolbar>\n\n <ng-content class=\"page-content\" select=\"[page-content]\"></ng-content>\n\n</mat-drawer-container>\n\n<ng-content class=\"loading-info-content\" select=\"[loading-info-content]\"></ng-content>\n", styles: [".menu-container{height:100vh;width:100vw}.menu-options{border:none;padding:20px 0 0;width:250px}.page-content{align-items:center;display:flex;height:100%;justify-content:center}img#logotipo,img#logotipo-toolbar{display:block;height:auto;margin:0 auto 25px;position:relative;width:120px}.toolbar{box-shadow:none;padding:0 7px 0 13px}.toolbar img#logotipo-toolbar{margin:0;padding:0 10px}.menu-toolbar{margin:0 10px}.spacer{flex:1 1 auto}.btn-toolbar{display:inline-block;margin-right:10px;position:relative}.btn-toolbar span{padding:0 10px 0 0}.btn-toolbar span.icon-user,.user-presentation span.icon-user{border-radius:50%;display:inline-block;height:10px;line-height:10px;padding:5px;width:10px}.user-presentation{min-width:260px;padding:50px 10px;text-align:center}.user-presentation span.icon-user{font-size:30px;height:30px;line-height:30px;margin-bottom:10px;width:30px}.user-presentation span.username{font-family:OpenSansLight,sans-serif;word-break:break-all}@media (max-width: 900px){.btn-toolbar span:first-child{display:none}.btn-toolbar span.icon-user,.user-presentation span.icon-user{height:20px;line-height:20px;width:20px}}\n"], components: [{ type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { type: LoaderBarPageComponent, selector: "app-loader-page", inputs: ["show", "progress", "typeLoader"] }, { type: i9.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { type: i9.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { type: i10.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i13.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { type: NotificationComponent, selector: "koala-notification-list", inputs: ["notifications"], outputs: ["deleteAll", "delete"] }, { type: i13.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }], directives: [{ type: i15.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i13.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { type: i16.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { type: i15.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i15.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
896
896
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: PageComponent, decorators: [{
897
897
  type: Component,
898
898
  args: [{ selector: 'koala-page', providers: [KoalaTokenService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"showLoaderPage | async\" class=\"koala-loader-pg\">\n <div class=\"loader-content\">\n <figure>\n <img [src]=\"logo\" alt=\"Logotipo\"/>\n <figcaption *ngIf=\"(messageLoaderPage | async) as messageLoader\" [innerHTML]=\"messageLoader\"></figcaption>\n </figure>\n <mat-spinner></mat-spinner>\n </div>\n</div>\n<app-loader-page *ngIf=\"(loaderSubject | async) as loader\" [progress]=\"loader.progress\" [show]=\"loader.show\"\n [typeLoader]=\"loader.typeLoader\"></app-loader-page>\n<mat-drawer-container autosize class=\"menu-container\">\n <mat-drawer #drawer class=\"menu-options\" [mode]=\"isMobile ? 'push' : 'side'\">\n <img [src]=\"logo\" alt=\"Logotipo\" id=\"logotipo\"/>\n <ng-content *ngIf=\"showMenu\" select=\"[menu-options]\"></ng-content>\n </mat-drawer>\n\n <mat-toolbar *ngIf=\"!!(logged$ | async) && (username$ | async)\" class=\"toolbar\">\n <img *ngIf=\"!showMenu\" [src]=\"logo\" alt=\"Logotipo Toolbar\" id=\"logotipo-toolbar\"/>\n <button (click)=\"toogleMenu()\" *ngIf=\"showMenu\" [color]=\"color\" class=\"btn-collapse-menu\" mat-icon-button>\n <mat-icon>menu</mat-icon>\n </button>\n <span class=\"spacer\"></span>\n\t <div class=\"menu-toolbar\">\n\t\t <ng-content select=\"[menu-toolbar]\"></ng-content>\n\t </div>\n <div *ngIf=\"(notifications | async) as notificationList\">\n <button *ngIf=\"notifications\" [color]=\"color\" [matMenuTriggerFor]=\"notificationsMenu\" class=\"btn-toolbar\"\n mat-icon-button>\n <mat-icon\n\t [matBadgeHidden]=\"notificationList.length === 0\"\n\t [matBadge]=\"notificationList.length.toString()\"\n\t matBadgeColor=\"warn\">notifications\n </mat-icon>\n </button>\n <mat-menu #notificationsMenu=\"matMenu\" class=\"menu-list\" yPosition=\"below\">\n <koala-notification-list\n (delete)=\"deleteNotification.emit($event)\"\n (deleteAll)=\"deleteAllNotifications.emit($event)\"\n [notifications]=\"notificationList\">\n </koala-notification-list>\n </mat-menu>\n </div>\n <button [color]=\"color\" [matMenuTriggerFor]=\"userOptions\" class=\"btn-toolbar\" mat-button>\n <span>{{username$ | async}}</span>\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span>\n </button>\n <mat-menu #userOptions=\"matMenu\" class=\"user-menu menu-list\" yPosition=\"below\">\n <div class=\"user-presentation\">\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span><br/>\n <span class=\"username\">{{username$ | async}}</span>\n </div>\n <button (click)=\"btn.action()\" *ngFor=\"let btn of userMenuOptions\" mat-menu-item>\n <mat-icon>{{btn.icon}}</mat-icon>\n <span>{{btn.name}}</span>\n </button>\n <button (click)=\"logout()\" mat-menu-item>\n <mat-icon>exit_to_app</mat-icon>\n <span>{{language === 'ptBr' ? 'Sair' : 'Logout'}}</span>\n </button>\n </mat-menu>\n </mat-toolbar>\n\n <ng-content class=\"page-content\" select=\"[page-content]\"></ng-content>\n\n</mat-drawer-container>\n\n<ng-content class=\"loading-info-content\" select=\"[loading-info-content]\"></ng-content>\n", styles: [".menu-container{height:100vh;width:100vw}.menu-options{border:none;padding:20px 0 0;width:250px}.page-content{align-items:center;display:flex;height:100%;justify-content:center}img#logotipo,img#logotipo-toolbar{display:block;height:auto;margin:0 auto 25px;position:relative;width:120px}.toolbar{box-shadow:none;padding:0 7px 0 13px}.toolbar img#logotipo-toolbar{margin:0;padding:0 10px}.menu-toolbar{margin:0 10px}.spacer{flex:1 1 auto}.btn-toolbar{display:inline-block;margin-right:10px;position:relative}.btn-toolbar span{padding:0 10px 0 0}.btn-toolbar span.icon-user,.user-presentation span.icon-user{border-radius:50%;display:inline-block;height:10px;line-height:10px;padding:5px;width:10px}.user-presentation{min-width:260px;padding:50px 10px;text-align:center}.user-presentation span.icon-user{font-size:30px;height:30px;line-height:30px;margin-bottom:10px;width:30px}.user-presentation span.username{font-family:OpenSansLight,sans-serif;word-break:break-all}@media (max-width: 900px){.btn-toolbar span:first-child{display:none}.btn-toolbar span.icon-user,.user-presentation span.icon-user{height:20px;line-height:20px;width:20px}}\n"] }]