01e62e5667cc878098bf6b2ec6c2b2c5f6191937dd056af2dde4eb6f57663d13.json 7.7 KB

1
  1. {"ast":null,"code":"import { MatTableDataSource } from '@angular/material/table';\nimport * as i0 from \"@angular/core\";\nfunction GainListComponent_table_0_th_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"th\", 11);\n i0.ɵɵtext(1, \" Num\\u00E9ro \");\n i0.ɵɵelementEnd();\n }\n}\nfunction GainListComponent_table_0_td_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"td\", 12);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const element_r13 = ctx.$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", element_r13.index, \" \");\n }\n}\nfunction GainListComponent_table_0_th_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"th\", 11);\n i0.ɵɵtext(1, \" Code \");\n i0.ɵɵelementEnd();\n }\n}\nfunction GainListComponent_table_0_td_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"td\", 12);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const element_r14 = ctx.$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", element_r14.code, \" \");\n }\n}\nfunction GainListComponent_table_0_th_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"th\", 11);\n i0.ɵɵtext(1, \" Lot gagn\\u00E9 \");\n i0.ɵɵelementEnd();\n }\n}\nfunction GainListComponent_table_0_td_9_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"td\", 12);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const element_r15 = ctx.$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", element_r15.gains, \" \");\n }\n}\nfunction GainListComponent_table_0_th_11_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"th\", 11);\n i0.ɵɵtext(1, \" Servi \");\n i0.ɵɵelementEnd();\n }\n}\nfunction GainListComponent_table_0_td_12_mat_icon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-icon\", 15);\n i0.ɵɵtext(1, \"done_outline\");\n i0.ɵɵelementEnd();\n }\n}\nfunction GainListComponent_table_0_td_12_mat_icon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-icon\", 16);\n i0.ɵɵtext(1, \"hourglass_bottom\");\n i0.ɵɵelementEnd();\n }\n}\nfunction GainListComponent_table_0_td_12_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"td\", 12);\n i0.ɵɵtemplate(1, GainListComponent_table_0_td_12_mat_icon_1_Template, 2, 0, \"mat-icon\", 13);\n i0.ɵɵtemplate(2, GainListComponent_table_0_td_12_mat_icon_2_Template, 2, 0, \"mat-icon\", 14);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const element_r16 = ctx.$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", element_r16.isServed === true);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", element_r16.isServed === false);\n }\n}\nfunction GainListComponent_table_0_th_14_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"th\", 11);\n i0.ɵɵtext(1, \" Date d'utilisation \");\n i0.ɵɵelementEnd();\n }\n}\nfunction GainListComponent_table_0_td_15_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"td\", 12);\n i0.ɵɵtext(1);\n i0.ɵɵpipe(2, \"date\");\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const element_r19 = ctx.$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", i0.ɵɵpipeBind2(2, 1, element_r19.date_used, \"longDate\"), \" \");\n }\n}\nfunction GainListComponent_table_0_tr_16_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tr\", 17);\n }\n}\nfunction GainListComponent_table_0_tr_17_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tr\", 18);\n }\n}\nfunction GainListComponent_table_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"table\", 1);\n i0.ɵɵelementContainerStart(1, 2);\n i0.ɵɵtemplate(2, GainListComponent_table_0_th_2_Template, 2, 0, \"th\", 3);\n i0.ɵɵtemplate(3, GainListComponent_table_0_td_3_Template, 2, 1, \"td\", 4);\n i0.ɵɵelementContainerEnd();\n i0.ɵɵelementContainerStart(4, 5);\n i0.ɵɵtemplate(5, GainListComponent_table_0_th_5_Template, 2, 0, \"th\", 3);\n i0.ɵɵtemplate(6, GainListComponent_table_0_td_6_Template, 2, 1, \"td\", 4);\n i0.ɵɵelementContainerEnd();\n i0.ɵɵelementContainerStart(7, 6);\n i0.ɵɵtemplate(8, GainListComponent_table_0_th_8_Template, 2, 0, \"th\", 3);\n i0.ɵɵtemplate(9, GainListComponent_table_0_td_9_Template, 2, 1, \"td\", 4);\n i0.ɵɵelementContainerEnd();\n i0.ɵɵelementContainerStart(10, 7);\n i0.ɵɵtemplate(11, GainListComponent_table_0_th_11_Template, 2, 0, \"th\", 3);\n i0.ɵɵtemplate(12, GainListComponent_table_0_td_12_Template, 3, 2, \"td\", 4);\n i0.ɵɵelementContainerEnd();\n i0.ɵɵelementContainerStart(13, 8);\n i0.ɵɵtemplate(14, GainListComponent_table_0_th_14_Template, 2, 0, \"th\", 3);\n i0.ɵɵtemplate(15, GainListComponent_table_0_td_15_Template, 3, 4, \"td\", 4);\n i0.ɵɵelementContainerEnd();\n i0.ɵɵtemplate(16, GainListComponent_table_0_tr_16_Template, 1, 0, \"tr\", 9);\n i0.ɵɵtemplate(17, GainListComponent_table_0_tr_17_Template, 1, 0, \"tr\", 10);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"dataSource\", ctx_r0.lots);\n i0.ɵɵadvance(16);\n i0.ɵɵproperty(\"matHeaderRowDef\", ctx_r0.displayedColumns);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"matRowDefColumns\", ctx_r0.displayedColumns);\n }\n}\nexport let GainListComponent = /*#__PURE__*/(() => {\n class GainListComponent {\n constructor() {\n this.lots = [];\n this.displayedColumns = ['index', 'code', 'gain', 'isServed', 'date_used'];\n this.dataSource = new MatTableDataSource();\n }\n subscribeToUsers() {\n // this.UsersService.getUsers(this.page,this.pageSize).subscribe((res) => {\n // this.usersArray = res.users\n // this.length = res.total\n // this.page = res.page\n // console.log(res.users)\n // })\n }\n ngOnInit() {\n this.dataSource.data = this.lots;\n }\n static #_ = this.ɵfac = function GainListComponent_Factory(t) {\n return new (t || GainListComponent)();\n };\n static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: GainListComponent,\n selectors: [[\"app-gain-list\"]],\n inputs: {\n lots: \"lots\"\n },\n decls: 1,\n vars: 1,\n consts: [[\"mat-table\", \"\", \"class\", \"tablegain\", 3, \"dataSource\", 4, \"ngIf\"], [\"mat-table\", \"\", 1, \"tablegain\", 3, \"dataSource\"], [\"matColumnDef\", \"index\"], [\"mat-header-cell\", \"\", 4, \"matHeaderCellDef\"], [\"mat-cell\", \"\", \"class\", \"text-left\", 4, \"matCellDef\"], [\"matColumnDef\", \"code\"], [\"matColumnDef\", \"gain\"], [\"matColumnDef\", \"isServed\"], [\"matColumnDef\", \"date_used\"], [\"mat-header-row\", \"\", 4, \"matHeaderRowDef\"], [\"mat-row\", \"\", 4, \"matRowDef\", \"matRowDefColumns\"], [\"mat-header-cell\", \"\"], [\"mat-cell\", \"\", 1, \"text-left\"], [\"class\", \"icon mr-2\", \"style\", \"color:#296119\", 4, \"ngIf\"], [\"class\", \"icon mr-2\", \"style\", \"color:rgb(67, 151, 230)\", 4, \"ngIf\"], [1, \"icon\", \"mr-2\", 2, \"color\", \"#296119\"], [1, \"icon\", \"mr-2\", 2, \"color\", \"rgb(67, 151, 230)\"], [\"mat-header-row\", \"\"], [\"mat-row\", \"\"]],\n template: function GainListComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, GainListComponent_table_0_Template, 18, 3, \"table\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", ctx.lots);\n }\n },\n styles: [\"table[_ngcontent-%COMP%]{width:100%}\"]\n });\n }\n return GainListComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}