225222feeef45d42740f4372f46fa8bae6b354aea34254e4174e30535c0eed6b.json 4.5 KB

1
  1. {"ast":null,"code":"import { EventEmitter } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nfunction AssistanceListComponent_div_0_div_11_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 5)(1, \"button\", 6);\n i0.ɵɵlistener(\"click\", function AssistanceListComponent_div_0_div_11_Template_button_click_1_listener() {\n i0.ɵɵrestoreView(_r5);\n const item_r1 = i0.ɵɵnextContext().$implicit;\n const ctx_r3 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r3.responseMessage(item_r1));\n });\n i0.ɵɵtext(2, \"R\\u00E9pondre\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(3, \"button\", 7);\n i0.ɵɵlistener(\"click\", function AssistanceListComponent_div_0_div_11_Template_button_click_3_listener() {\n i0.ɵɵrestoreView(_r5);\n const item_r1 = i0.ɵɵnextContext().$implicit;\n const ctx_r6 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r6.closeMessage(item_r1));\n });\n i0.ɵɵtext(4, \"Supprimer\");\n i0.ɵɵelementEnd()();\n }\n}\nfunction AssistanceListComponent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r9 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\")(1, \"mat-accordion\", 1)(2, \"mat-expansion-panel\", 2);\n i0.ɵɵlistener(\"opened\", function AssistanceListComponent_div_0_Template_mat_expansion_panel_opened_2_listener() {\n i0.ɵɵrestoreView(_r9);\n const ctx_r8 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r8.panelOpenState = true);\n })(\"closed\", function AssistanceListComponent_div_0_Template_mat_expansion_panel_closed_2_listener() {\n i0.ɵɵrestoreView(_r9);\n const ctx_r10 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r10.panelOpenState = false);\n });\n i0.ɵɵelementStart(3, \"mat-expansion-panel-header\")(4, \"mat-panel-title\");\n i0.ɵɵtext(5);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(6, \"mat-panel-description\");\n i0.ɵɵtext(7);\n i0.ɵɵpipe(8, \"date\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(9, \"p\", 3);\n i0.ɵɵtext(10);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(11, AssistanceListComponent_div_0_div_11_Template, 5, 0, \"div\", 4);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n const item_r1 = ctx.$implicit;\n i0.ɵɵadvance(5);\n i0.ɵɵtextInterpolate1(\" \", item_r1.email, \" \");\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate1(\" \", i0.ɵɵpipeBind2(8, 4, item_r1.created_date, \"short\"), \" \");\n i0.ɵɵadvance(3);\n i0.ɵɵtextInterpolate(item_r1.message);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", item_r1.is_closed === false);\n }\n}\nexport let AssistanceListComponent = /*#__PURE__*/(() => {\n class AssistanceListComponent {\n constructor() {\n this.response = new EventEmitter();\n this.close = new EventEmitter();\n this.panelOpenState = false;\n }\n responseMessage(event) {\n this.response.emit(event);\n }\n closeMessage(event) {\n this.close.emit(event);\n }\n ngOnInit() {}\n static #_ = this.ɵfac = function AssistanceListComponent_Factory(t) {\n return new (t || AssistanceListComponent)();\n };\n static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: AssistanceListComponent,\n selectors: [[\"app-assistance-list\"]],\n inputs: {\n listOpenMessage: \"listOpenMessage\"\n },\n outputs: {\n response: \"response\",\n close: \"close\"\n },\n decls: 1,\n vars: 1,\n consts: [[4, \"ngFor\", \"ngForOf\"], [1, \"\"], [1, \"mb-3\", 3, \"opened\", \"closed\"], [1, \"text-center\", \"font-weight-bold\"], [\"class\", \"row justify-content-center mt-2\", 4, \"ngIf\"], [1, \"row\", \"justify-content-center\", \"mt-2\"], [\"mat-raised-button\", \"\", \"color\", \"primary\", 1, \"btn\", \"mr-2\", 3, \"click\"], [\"mat-raised-button\", \"\", \"color\", \"primary\", 1, \"btn\", \"ml-2\", 3, \"click\"]],\n template: function AssistanceListComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, AssistanceListComponent_div_0_Template, 12, 7, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.listOpenMessage);\n }\n },\n styles: [\".mat-form-field[_ngcontent-%COMP%] + .mat-form-field[_ngcontent-%COMP%]{margin-left:8px}\"]\n });\n }\n return AssistanceListComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}