You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
4.0 KiB

{"ast":null,"code":"import * as i0 from \"@angular/core\";\nimport * as i1 from \"../shared/services/routerService\";\nimport * as i2 from \"@angular/router\";\nimport * as i3 from \"../shared/services/selectedScreenService\";\nimport * as i4 from \"@angular/common\";\n\nfunction HomeComponent_li_5_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n\n i0.ɵɵelementStart(0, \"li\", 5);\n i0.ɵɵlistener(\"click\", function HomeComponent_li_5_Template_li_click_0_listener() {\n const restoredCtx = i0.ɵɵrestoreView(_r3);\n const item_r1 = restoredCtx.$implicit;\n const ctx_r2 = i0.ɵɵnextContext();\n return ctx_r2.selectedItem(item_r1);\n });\n i0.ɵɵelement(1, \"img\", 6);\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n const item_r1 = ctx.$implicit;\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵpropertyInterpolate(\"src\", ctx_r0.basePath + item_r1, i0.ɵɵsanitizeUrl);\n }\n}\n\nexport let HomeComponent = /*#__PURE__*/(() => {\n class HomeComponent {\n constructor(routerService, router, selectedScreenService) {\n this.routerService = routerService;\n this.router = router;\n this.selectedScreenService = selectedScreenService;\n this.thumbArr = ['leave_thumb.png', 'attendance_thumb.png', 'employee_thumb.png', 'odpnr_thumb.png', 'compensation_thumb.png', 'flexi_thumb.png', 'notices_thumb.png', 'policies_thumb.png', 'aboutbajaj_thumb.png', 'odpnr_thumb.png'];\n this.basePath = 'assets/images/';\n this.showScreen = false;\n }\n\n ngOnInit() {}\n\n selectedItem(item) {\n console.log(item);\n this.showScreen = true;\n this.selectedScreenService.saveSelectedScreen(item);\n\n if (item === 'attendance_thumb.png') {\n this.router.navigate(['attendance']);\n } else if (item === 'odpnr_thumb.png') {\n this.router.navigate(['odpnr']);\n } else {\n this.router.navigate(['screen']);\n }\n }\n\n }\n\n HomeComponent.ɵfac = function HomeComponent_Factory(t) {\n return new (t || HomeComponent)(i0.ɵɵdirectiveInject(i1.RouterService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.SelectedScreenService));\n };\n\n HomeComponent.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: HomeComponent,\n selectors: [[\"app-home\"]],\n decls: 6,\n vars: 1,\n consts: [[\"id\", \"home-screen\", 1, \"page-container\"], [1, \"main-container\"], [1, \"content\"], [1, \"card\"], [\"class\", \"sub-card\", 3, \"click\", 4, \"ngFor\", \"ngForOf\"], [1, \"sub-card\", 3, \"click\"], [1, \"icon\", 3, \"src\"]],\n template: function HomeComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0);\n i0.ɵɵelementStart(1, \"main\", 1);\n i0.ɵɵelementStart(2, \"section\", 2);\n i0.ɵɵelementStart(3, \"div\", 3);\n i0.ɵɵelementStart(4, \"ul\");\n i0.ɵɵtemplate(5, HomeComponent_li_5_Template, 2, 1, \"li\", 4);\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n i0.ɵɵelementEnd();\n }\n\n if (rf & 2) {\n i0.ɵɵadvance(5);\n i0.ɵɵproperty(\"ngForOf\", ctx.thumbArr);\n }\n },\n directives: [i4.NgForOf],\n styles: [\"var[_ngcontent-%COMP%] resource[_ngcontent-%COMP%]{}(function()[_ngcontent-%COMP%] {var __webpack_modules__ = ({8: (function() {throw new Error('Module build failed (from ./node_modules/sass-loader/dist/cjs.js):nSassError: expected \\\":\\\".n \\\\2577n52 \\\\2502 $clr-blackn \\\\2502 ^n \\\\2575n src/styles/variables/colors.scss 52:11 @importn src/styles/variables/index.scss 2:9 @importn src/styles.scss 1:9 @importn src/app/home/home.component.scss 1:9 root stylesheet');})}); var __webpack_exports__ = {}; __webpack_modules__[8](); resource = __webpack_exports__;})()[_ngcontent-%COMP%]{}\"]\n });\n return HomeComponent;\n})();","map":null,"metadata":{},"sourceType":"module"}