@cauca-911/material 13.0.0 → 13.0.1
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.
- package/assets/i18n/cauca/es-material.json +9 -0
- package/assets/i18n/cauca/fr-material.json +1 -1
- package/cauca-911-material.d.ts +5 -5
- package/esm2020/cauca-911-material.mjs +4 -4
- package/esm2020/lib/cauca-input-file/cauca-input-file.component.mjs +147 -147
- package/esm2020/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +87 -87
- package/esm2020/lib/cauca-material.component.mjs +22 -22
- package/esm2020/lib/cauca-material.module.mjs +91 -91
- package/esm2020/lib/cauca-material.service.mjs +13 -13
- package/esm2020/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.mjs +143 -143
- package/esm2020/lib/cauca-menu-vertical/cauca-menu-vertical.component.mjs +171 -171
- package/esm2020/lib/cauca-simple-dialog/cauca-simple-dialog.component.mjs +61 -61
- package/esm2020/lib/cauca-slideshow/cauca-slideshow.component.mjs +138 -138
- package/esm2020/lib/shared/models/menu-item.mjs +8 -8
- package/esm2020/lib/shared/models/simple-dialog-data.mjs +5 -5
- package/esm2020/public-api.mjs +13 -13
- package/fesm2015/cauca-911-material.mjs +929 -929
- package/fesm2015/cauca-911-material.mjs.map +1 -1
- package/fesm2020/cauca-911-material.mjs +813 -813
- package/fesm2020/cauca-911-material.mjs.map +1 -1
- package/lib/cauca-input-file/cauca-input-file.component.d.ts +23 -23
- package/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.d.ts +19 -19
- package/lib/cauca-material.component.d.ts +8 -8
- package/lib/cauca-material.module.d.ts +22 -22
- package/lib/cauca-material.service.d.ts +6 -6
- package/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.d.ts +23 -23
- package/lib/cauca-menu-vertical/cauca-menu-vertical.component.d.ts +15 -15
- package/lib/cauca-simple-dialog/cauca-simple-dialog.component.d.ts +13 -13
- package/lib/cauca-slideshow/cauca-slideshow.component.d.ts +21 -21
- package/lib/shared/models/menu-item.d.ts +8 -8
- package/lib/shared/models/simple-dialog-data.d.ts +5 -5
- package/package.json +1 -1
- package/public-api.d.ts +10 -10
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { NavigationEnd } from '@angular/router';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/router";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
import * as i3 from "@fortawesome/angular-fontawesome";
|
|
7
|
-
import * as i4 from "@ngx-translate/core";
|
|
8
|
-
function CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
i0.ɵɵelement(0, "fa-icon", 8);
|
|
10
|
-
} if (rf & 2) {
|
|
11
|
-
const menu_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
12
|
-
i0.ɵɵproperty("icon", menu_r1.icon);
|
|
13
|
-
} }
|
|
14
|
-
function CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
-
i0.ɵɵelement(0, "img", 9);
|
|
16
|
-
} if (rf & 2) {
|
|
17
|
-
const menu_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
18
|
-
i0.ɵɵproperty("src", menu_r1.icon, i0.ɵɵsanitizeUrl);
|
|
19
|
-
} }
|
|
20
|
-
function CaucaMenuVerticalComponent_h4_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
22
|
-
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6);
|
|
23
|
-
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template, 1, 1, "img", 7);
|
|
24
|
-
i0.ɵɵelementEnd();
|
|
25
|
-
} if (rf & 2) {
|
|
26
|
-
const menu_r1 = i0.ɵɵnextContext().$implicit;
|
|
27
|
-
i0.ɵɵadvance(1);
|
|
28
|
-
i0.ɵɵproperty("ngIf", menu_r1.icon.filter !== undefined);
|
|
29
|
-
i0.ɵɵadvance(1);
|
|
30
|
-
i0.ɵɵproperty("ngIf", menu_r1.icon.filter === undefined);
|
|
31
|
-
} }
|
|
32
|
-
function CaucaMenuVerticalComponent_h4_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
-
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
34
|
-
i0.ɵɵtext(2);
|
|
35
|
-
i0.ɵɵpipe(3, "translate");
|
|
36
|
-
i0.ɵɵelementEnd()();
|
|
37
|
-
} if (rf & 2) {
|
|
38
|
-
const menu_r1 = i0.ɵɵnextContext().$implicit;
|
|
39
|
-
i0.ɵɵadvance(2);
|
|
40
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, menu_r1.label));
|
|
41
|
-
} }
|
|
42
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
-
i0.ɵɵelementStart(0, "div", 15);
|
|
44
|
-
i0.ɵɵtext(1, "\u2022");
|
|
45
|
-
i0.ɵɵelementEnd();
|
|
46
|
-
} }
|
|
47
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
48
|
-
i0.ɵɵelement(0, "fa-icon", 8);
|
|
49
|
-
} if (rf & 2) {
|
|
50
|
-
const submenu_r12 = i0.ɵɵnextContext(2).$implicit;
|
|
51
|
-
i0.ɵɵproperty("icon", submenu_r12.icon);
|
|
52
|
-
} }
|
|
53
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
-
i0.ɵɵelement(0, "img", 9);
|
|
55
|
-
} if (rf & 2) {
|
|
56
|
-
const submenu_r12 = i0.ɵɵnextContext(2).$implicit;
|
|
57
|
-
i0.ɵɵproperty("src", submenu_r12.icon, i0.ɵɵsanitizeUrl);
|
|
58
|
-
} }
|
|
59
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
61
|
-
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6);
|
|
62
|
-
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template, 1, 1, "img", 7);
|
|
63
|
-
i0.ɵɵelementEnd();
|
|
64
|
-
} if (rf & 2) {
|
|
65
|
-
const submenu_r12 = i0.ɵɵnextContext().$implicit;
|
|
66
|
-
i0.ɵɵadvance(1);
|
|
67
|
-
i0.ɵɵproperty("ngIf", submenu_r12.icon.filter !== undefined);
|
|
68
|
-
i0.ɵɵadvance(1);
|
|
69
|
-
i0.ɵɵproperty("ngIf", submenu_r12.icon.filter === undefined);
|
|
70
|
-
} }
|
|
71
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
72
|
-
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
73
|
-
i0.ɵɵtext(2);
|
|
74
|
-
i0.ɵɵpipe(3, "translate");
|
|
75
|
-
i0.ɵɵelementEnd()();
|
|
76
|
-
} if (rf & 2) {
|
|
77
|
-
const submenu_r12 = i0.ɵɵnextContext().$implicit;
|
|
78
|
-
i0.ɵɵadvance(2);
|
|
79
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, submenu_r12.label));
|
|
80
|
-
} }
|
|
81
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
-
const _r23 = i0.ɵɵgetCurrentView();
|
|
83
|
-
i0.ɵɵelementStart(0, "div", 13);
|
|
84
|
-
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template_div_click_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r23); const submenu_r12 = restoredCtx.$implicit; const ctx_r22 = i0.ɵɵnextContext(3); return ctx_r22.goTo(submenu_r12.path, $event); });
|
|
85
|
-
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template, 2, 0, "div", 14);
|
|
86
|
-
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template, 3, 2, "div", 2);
|
|
87
|
-
i0.ɵɵtemplate(3, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template, 4, 3, "div", 3);
|
|
88
|
-
i0.ɵɵelementEnd();
|
|
89
|
-
} if (rf & 2) {
|
|
90
|
-
const submenu_r12 = ctx.$implicit;
|
|
91
|
-
i0.ɵɵclassMap(submenu_r12.activated ? "menu selected" : "menu");
|
|
92
|
-
i0.ɵɵadvance(1);
|
|
93
|
-
i0.ɵɵproperty("ngIf", !submenu_r12.icon);
|
|
94
|
-
i0.ɵɵadvance(1);
|
|
95
|
-
i0.ɵɵproperty("ngIf", submenu_r12.icon);
|
|
96
|
-
i0.ɵɵadvance(1);
|
|
97
|
-
i0.ɵɵproperty("ngIf", submenu_r12.label);
|
|
98
|
-
} }
|
|
99
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
100
|
-
i0.ɵɵelementStart(0, "div", 11);
|
|
101
|
-
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template, 4, 5, "div", 12);
|
|
102
|
-
i0.ɵɵelementEnd();
|
|
103
|
-
} if (rf & 2) {
|
|
104
|
-
const menu_r1 = i0.ɵɵnextContext().$implicit;
|
|
105
|
-
i0.ɵɵadvance(1);
|
|
106
|
-
i0.ɵɵproperty("ngForOf", menu_r1.childs);
|
|
107
|
-
} }
|
|
108
|
-
function CaucaMenuVerticalComponent_h4_0_Template(rf, ctx) { if (rf & 1) {
|
|
109
|
-
const _r26 = i0.ɵɵgetCurrentView();
|
|
110
|
-
i0.ɵɵelementStart(0, "h4")(1, "div", 1);
|
|
111
|
-
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_Template_div_click_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r26); const menu_r1 = restoredCtx.$implicit; const ctx_r25 = i0.ɵɵnextContext(); return ctx_r25.goTo(menu_r1.path, $event); });
|
|
112
|
-
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_2_Template, 3, 2, "div", 2);
|
|
113
|
-
i0.ɵɵtemplate(3, CaucaMenuVerticalComponent_h4_0_div_3_Template, 4, 3, "div", 3);
|
|
114
|
-
i0.ɵɵelementEnd();
|
|
115
|
-
i0.ɵɵtemplate(4, CaucaMenuVerticalComponent_h4_0_div_4_Template, 2, 1, "div", 4);
|
|
116
|
-
i0.ɵɵelementEnd();
|
|
117
|
-
} if (rf & 2) {
|
|
118
|
-
const menu_r1 = ctx.$implicit;
|
|
119
|
-
i0.ɵɵclassMap(menu_r1.activated ? "selected" : "");
|
|
120
|
-
i0.ɵɵadvance(2);
|
|
121
|
-
i0.ɵɵproperty("ngIf", menu_r1.icon);
|
|
122
|
-
i0.ɵɵadvance(1);
|
|
123
|
-
i0.ɵɵproperty("ngIf", menu_r1.label);
|
|
124
|
-
i0.ɵɵadvance(1);
|
|
125
|
-
i0.ɵɵproperty("ngIf", menu_r1.childs.length && menu_r1.activated);
|
|
126
|
-
} }
|
|
127
|
-
export class CaucaMenuVerticalComponent {
|
|
128
|
-
constructor(router) {
|
|
129
|
-
this.router = router;
|
|
130
|
-
this.itemClick = new EventEmitter();
|
|
131
|
-
this.menuItems = [];
|
|
132
|
-
this.router.events.subscribe((route) => {
|
|
133
|
-
if (route instanceof NavigationEnd) {
|
|
134
|
-
this.selectActiveRoute(route);
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
ngOnInit() {
|
|
139
|
-
}
|
|
140
|
-
goTo(path, e) {
|
|
141
|
-
this.router.navigate([path]);
|
|
142
|
-
this.itemClick.emit();
|
|
143
|
-
e.stopPropagation();
|
|
144
|
-
}
|
|
145
|
-
selectActiveRoute(route) {
|
|
146
|
-
this.menuItems.forEach((menu) => {
|
|
147
|
-
if (route.url) {
|
|
148
|
-
menu.activated = (route.url === menu.path || (menu.childs.length && route.url.indexOf(menu.path) > -1));
|
|
149
|
-
}
|
|
150
|
-
menu.childs.forEach((subMenu) => {
|
|
151
|
-
if (route.url) {
|
|
152
|
-
subMenu.activated = (route.url === subMenu.path || route.urlAfterRedirects === subMenu.path);
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
CaucaMenuVerticalComponent.ɵfac = function CaucaMenuVerticalComponent_Factory(t) { return new (t || CaucaMenuVerticalComponent)(i0.ɵɵdirectiveInject(i1.Router)); };
|
|
159
|
-
CaucaMenuVerticalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuVerticalComponent, selectors: [["cauca-menu-vertical"]], inputs: { menuItems: "menuItems" }, outputs: { itemClick: "itemClick" }, decls: 1, vars: 1, consts: [[3, "class", 4, "ngFor", "ngForOf"], [1, "menu", 3, "click"], ["class", "menu-icon", 4, "ngIf"], ["class", "menu-caption", 4, "ngIf"], ["class", "submenu", 4, "ngIf"], [1, "menu-icon"], [3, "icon", 4, "ngIf"], [3, "src", 4, "ngIf"], [3, "icon"], [3, "src"], [1, "menu-caption"], [1, "submenu"], [3, "class", "click", 4, "ngFor", "ngForOf"], [3, "click"], ["class", "menu-dot", 4, "ngIf"], [1, "menu-dot"]], template: function CaucaMenuVerticalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
160
|
-
i0.ɵɵtemplate(0, CaucaMenuVerticalComponent_h4_0_Template, 5, 5, "h4", 0);
|
|
161
|
-
} if (rf & 2) {
|
|
162
|
-
i0.ɵɵproperty("ngForOf", ctx.menuItems);
|
|
163
|
-
} }, directives: [i2.NgForOf, i2.NgIf, i3.FaIconComponent], pipes: [i4.TranslatePipe], styles: [".menu[_ngcontent-%COMP%], .submenu[_ngcontent-%COMP%]{cursor:pointer}h4[_ngcontent-%COMP%]{margin:0;padding:0}h4[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{padding:1em 0;display:flex;flex-direction:row}h4[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 1 auto;align-self:center}.menu-dot[_ngcontent-%COMP%]{max-width:1.1em;text-align:center;margin-right:.5em;font-size:2em}.menu-icon[_ngcontent-%COMP%]{max-width:60px;text-align:center;margin-right:.5em}.submenu[_ngcontent-%COMP%]{margin-left:1em}.submenu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{padding:0;font-size:.9em;line-height:2.2em}.submenu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]:before{content:\"\";margin-left:1.1em;width:.1em;height:2.5em;position:relative;background:#ffffff;margin-right:-1.17em}"] });
|
|
164
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuVerticalComponent, [{
|
|
165
|
-
type: Component,
|
|
166
|
-
args: [{ selector: 'cauca-menu-vertical', template: "<h4 *ngFor=\"let menu of menuItems\" [class]=\"menu.activated ? 'selected' : ''\">\n <div (click)=\"goTo(menu.path, $event)\" class=\"menu\">\n <div *ngIf=\"menu.icon\" class=\"menu-icon\">\n <fa-icon *ngIf=\"menu.icon.filter !== undefined\" [icon]=\"menu.icon\"></fa-icon>\n <img *ngIf=\"menu.icon.filter === undefined\" [src]=\"menu.icon\" />\n </div>\n <div *ngIf=\"menu.label\" class=\"menu-caption\">\n <span>{{menu.label | translate}}</span>\n </div>\n </div>\n <div *ngIf=\"menu.childs.length && menu.activated\" class=\"submenu\">\n <div\n *ngFor=\"let submenu of menu.childs\"\n [class]=\"submenu.activated ? 'menu selected' : 'menu'\"\n (click)=\"goTo(submenu.path, $event)\">\n <div *ngIf=\"!submenu.icon\" class=\"menu-dot\">•</div>\n <div *ngIf=\"submenu.icon\" class=\"menu-icon\">\n <fa-icon *ngIf=\"submenu.icon.filter !== undefined\" [icon]=\"submenu.icon\"></fa-icon>\n <img *ngIf=\"submenu.icon.filter === undefined\" [src]=\"submenu.icon\" />\n </div>\n <div *ngIf=\"submenu.label\" class=\"menu-caption\">\n <span>{{submenu.label | translate}}</span>\n </div>\n </div>\n </div>\n</h4>\n", styles: [".menu,.submenu{cursor:pointer}h4{margin:0;padding:0}h4 .menu{padding:1em 0;display:flex;flex-direction:row}h4 .menu>div{flex:1 1 auto;align-self:center}.menu-dot{max-width:1.1em;text-align:center;margin-right:.5em;font-size:2em}.menu-icon{max-width:60px;text-align:center;margin-right:.5em}.submenu{margin-left:1em}.submenu .menu{padding:0;font-size:.9em;line-height:2.2em}.submenu .menu:before{content:\"\";margin-left:1.1em;width:.1em;height:2.5em;position:relative;background:#ffffff;margin-right:-1.17em}\n"] }]
|
|
167
|
-
}], function () { return [{ type: i1.Router }]; }, { itemClick: [{
|
|
168
|
-
type: Output
|
|
169
|
-
}], menuItems: [{
|
|
170
|
-
type: Input
|
|
171
|
-
}] }); })();
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { NavigationEnd } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/router";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@fortawesome/angular-fontawesome";
|
|
7
|
+
import * as i4 from "@ngx-translate/core";
|
|
8
|
+
function CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
i0.ɵɵelement(0, "fa-icon", 8);
|
|
10
|
+
} if (rf & 2) {
|
|
11
|
+
const menu_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
12
|
+
i0.ɵɵproperty("icon", menu_r1.icon);
|
|
13
|
+
} }
|
|
14
|
+
function CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
+
i0.ɵɵelement(0, "img", 9);
|
|
16
|
+
} if (rf & 2) {
|
|
17
|
+
const menu_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
18
|
+
i0.ɵɵproperty("src", menu_r1.icon, i0.ɵɵsanitizeUrl);
|
|
19
|
+
} }
|
|
20
|
+
function CaucaMenuVerticalComponent_h4_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
22
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6);
|
|
23
|
+
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template, 1, 1, "img", 7);
|
|
24
|
+
i0.ɵɵelementEnd();
|
|
25
|
+
} if (rf & 2) {
|
|
26
|
+
const menu_r1 = i0.ɵɵnextContext().$implicit;
|
|
27
|
+
i0.ɵɵadvance(1);
|
|
28
|
+
i0.ɵɵproperty("ngIf", menu_r1.icon.filter !== undefined);
|
|
29
|
+
i0.ɵɵadvance(1);
|
|
30
|
+
i0.ɵɵproperty("ngIf", menu_r1.icon.filter === undefined);
|
|
31
|
+
} }
|
|
32
|
+
function CaucaMenuVerticalComponent_h4_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
34
|
+
i0.ɵɵtext(2);
|
|
35
|
+
i0.ɵɵpipe(3, "translate");
|
|
36
|
+
i0.ɵɵelementEnd()();
|
|
37
|
+
} if (rf & 2) {
|
|
38
|
+
const menu_r1 = i0.ɵɵnextContext().$implicit;
|
|
39
|
+
i0.ɵɵadvance(2);
|
|
40
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, menu_r1.label));
|
|
41
|
+
} }
|
|
42
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
44
|
+
i0.ɵɵtext(1, "\u2022");
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
} }
|
|
47
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
48
|
+
i0.ɵɵelement(0, "fa-icon", 8);
|
|
49
|
+
} if (rf & 2) {
|
|
50
|
+
const submenu_r12 = i0.ɵɵnextContext(2).$implicit;
|
|
51
|
+
i0.ɵɵproperty("icon", submenu_r12.icon);
|
|
52
|
+
} }
|
|
53
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
+
i0.ɵɵelement(0, "img", 9);
|
|
55
|
+
} if (rf & 2) {
|
|
56
|
+
const submenu_r12 = i0.ɵɵnextContext(2).$implicit;
|
|
57
|
+
i0.ɵɵproperty("src", submenu_r12.icon, i0.ɵɵsanitizeUrl);
|
|
58
|
+
} }
|
|
59
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
61
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6);
|
|
62
|
+
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template, 1, 1, "img", 7);
|
|
63
|
+
i0.ɵɵelementEnd();
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
const submenu_r12 = i0.ɵɵnextContext().$implicit;
|
|
66
|
+
i0.ɵɵadvance(1);
|
|
67
|
+
i0.ɵɵproperty("ngIf", submenu_r12.icon.filter !== undefined);
|
|
68
|
+
i0.ɵɵadvance(1);
|
|
69
|
+
i0.ɵɵproperty("ngIf", submenu_r12.icon.filter === undefined);
|
|
70
|
+
} }
|
|
71
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
72
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
73
|
+
i0.ɵɵtext(2);
|
|
74
|
+
i0.ɵɵpipe(3, "translate");
|
|
75
|
+
i0.ɵɵelementEnd()();
|
|
76
|
+
} if (rf & 2) {
|
|
77
|
+
const submenu_r12 = i0.ɵɵnextContext().$implicit;
|
|
78
|
+
i0.ɵɵadvance(2);
|
|
79
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, submenu_r12.label));
|
|
80
|
+
} }
|
|
81
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
83
|
+
i0.ɵɵelementStart(0, "div", 13);
|
|
84
|
+
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template_div_click_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r23); const submenu_r12 = restoredCtx.$implicit; const ctx_r22 = i0.ɵɵnextContext(3); return ctx_r22.goTo(submenu_r12.path, $event); });
|
|
85
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template, 2, 0, "div", 14);
|
|
86
|
+
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template, 3, 2, "div", 2);
|
|
87
|
+
i0.ɵɵtemplate(3, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template, 4, 3, "div", 3);
|
|
88
|
+
i0.ɵɵelementEnd();
|
|
89
|
+
} if (rf & 2) {
|
|
90
|
+
const submenu_r12 = ctx.$implicit;
|
|
91
|
+
i0.ɵɵclassMap(submenu_r12.activated ? "menu selected" : "menu");
|
|
92
|
+
i0.ɵɵadvance(1);
|
|
93
|
+
i0.ɵɵproperty("ngIf", !submenu_r12.icon);
|
|
94
|
+
i0.ɵɵadvance(1);
|
|
95
|
+
i0.ɵɵproperty("ngIf", submenu_r12.icon);
|
|
96
|
+
i0.ɵɵadvance(1);
|
|
97
|
+
i0.ɵɵproperty("ngIf", submenu_r12.label);
|
|
98
|
+
} }
|
|
99
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
100
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
101
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template, 4, 5, "div", 12);
|
|
102
|
+
i0.ɵɵelementEnd();
|
|
103
|
+
} if (rf & 2) {
|
|
104
|
+
const menu_r1 = i0.ɵɵnextContext().$implicit;
|
|
105
|
+
i0.ɵɵadvance(1);
|
|
106
|
+
i0.ɵɵproperty("ngForOf", menu_r1.childs);
|
|
107
|
+
} }
|
|
108
|
+
function CaucaMenuVerticalComponent_h4_0_Template(rf, ctx) { if (rf & 1) {
|
|
109
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
110
|
+
i0.ɵɵelementStart(0, "h4")(1, "div", 1);
|
|
111
|
+
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_Template_div_click_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r26); const menu_r1 = restoredCtx.$implicit; const ctx_r25 = i0.ɵɵnextContext(); return ctx_r25.goTo(menu_r1.path, $event); });
|
|
112
|
+
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_2_Template, 3, 2, "div", 2);
|
|
113
|
+
i0.ɵɵtemplate(3, CaucaMenuVerticalComponent_h4_0_div_3_Template, 4, 3, "div", 3);
|
|
114
|
+
i0.ɵɵelementEnd();
|
|
115
|
+
i0.ɵɵtemplate(4, CaucaMenuVerticalComponent_h4_0_div_4_Template, 2, 1, "div", 4);
|
|
116
|
+
i0.ɵɵelementEnd();
|
|
117
|
+
} if (rf & 2) {
|
|
118
|
+
const menu_r1 = ctx.$implicit;
|
|
119
|
+
i0.ɵɵclassMap(menu_r1.activated ? "selected" : "");
|
|
120
|
+
i0.ɵɵadvance(2);
|
|
121
|
+
i0.ɵɵproperty("ngIf", menu_r1.icon);
|
|
122
|
+
i0.ɵɵadvance(1);
|
|
123
|
+
i0.ɵɵproperty("ngIf", menu_r1.label);
|
|
124
|
+
i0.ɵɵadvance(1);
|
|
125
|
+
i0.ɵɵproperty("ngIf", menu_r1.childs.length && menu_r1.activated);
|
|
126
|
+
} }
|
|
127
|
+
export class CaucaMenuVerticalComponent {
|
|
128
|
+
constructor(router) {
|
|
129
|
+
this.router = router;
|
|
130
|
+
this.itemClick = new EventEmitter();
|
|
131
|
+
this.menuItems = [];
|
|
132
|
+
this.router.events.subscribe((route) => {
|
|
133
|
+
if (route instanceof NavigationEnd) {
|
|
134
|
+
this.selectActiveRoute(route);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
ngOnInit() {
|
|
139
|
+
}
|
|
140
|
+
goTo(path, e) {
|
|
141
|
+
this.router.navigate([path]);
|
|
142
|
+
this.itemClick.emit();
|
|
143
|
+
e.stopPropagation();
|
|
144
|
+
}
|
|
145
|
+
selectActiveRoute(route) {
|
|
146
|
+
this.menuItems.forEach((menu) => {
|
|
147
|
+
if (route.url) {
|
|
148
|
+
menu.activated = (route.url === menu.path || (menu.childs.length && route.url.indexOf(menu.path) > -1));
|
|
149
|
+
}
|
|
150
|
+
menu.childs.forEach((subMenu) => {
|
|
151
|
+
if (route.url) {
|
|
152
|
+
subMenu.activated = (route.url === subMenu.path || route.urlAfterRedirects === subMenu.path);
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
CaucaMenuVerticalComponent.ɵfac = function CaucaMenuVerticalComponent_Factory(t) { return new (t || CaucaMenuVerticalComponent)(i0.ɵɵdirectiveInject(i1.Router)); };
|
|
159
|
+
CaucaMenuVerticalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuVerticalComponent, selectors: [["cauca-menu-vertical"]], inputs: { menuItems: "menuItems" }, outputs: { itemClick: "itemClick" }, decls: 1, vars: 1, consts: [[3, "class", 4, "ngFor", "ngForOf"], [1, "menu", 3, "click"], ["class", "menu-icon", 4, "ngIf"], ["class", "menu-caption", 4, "ngIf"], ["class", "submenu", 4, "ngIf"], [1, "menu-icon"], [3, "icon", 4, "ngIf"], [3, "src", 4, "ngIf"], [3, "icon"], [3, "src"], [1, "menu-caption"], [1, "submenu"], [3, "class", "click", 4, "ngFor", "ngForOf"], [3, "click"], ["class", "menu-dot", 4, "ngIf"], [1, "menu-dot"]], template: function CaucaMenuVerticalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
160
|
+
i0.ɵɵtemplate(0, CaucaMenuVerticalComponent_h4_0_Template, 5, 5, "h4", 0);
|
|
161
|
+
} if (rf & 2) {
|
|
162
|
+
i0.ɵɵproperty("ngForOf", ctx.menuItems);
|
|
163
|
+
} }, directives: [i2.NgForOf, i2.NgIf, i3.FaIconComponent], pipes: [i4.TranslatePipe], styles: [".menu[_ngcontent-%COMP%], .submenu[_ngcontent-%COMP%]{cursor:pointer}h4[_ngcontent-%COMP%]{margin:0;padding:0}h4[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{padding:1em 0;display:flex;flex-direction:row}h4[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 1 auto;align-self:center}.menu-dot[_ngcontent-%COMP%]{max-width:1.1em;text-align:center;margin-right:.5em;font-size:2em}.menu-icon[_ngcontent-%COMP%]{max-width:60px;text-align:center;margin-right:.5em}.submenu[_ngcontent-%COMP%]{margin-left:1em}.submenu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{padding:0;font-size:.9em;line-height:2.2em}.submenu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]:before{content:\"\";margin-left:1.1em;width:.1em;height:2.5em;position:relative;background:#ffffff;margin-right:-1.17em}"] });
|
|
164
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuVerticalComponent, [{
|
|
165
|
+
type: Component,
|
|
166
|
+
args: [{ selector: 'cauca-menu-vertical', template: "<h4 *ngFor=\"let menu of menuItems\" [class]=\"menu.activated ? 'selected' : ''\">\n <div (click)=\"goTo(menu.path, $event)\" class=\"menu\">\n <div *ngIf=\"menu.icon\" class=\"menu-icon\">\n <fa-icon *ngIf=\"menu.icon.filter !== undefined\" [icon]=\"menu.icon\"></fa-icon>\n <img *ngIf=\"menu.icon.filter === undefined\" [src]=\"menu.icon\" />\n </div>\n <div *ngIf=\"menu.label\" class=\"menu-caption\">\n <span>{{menu.label | translate}}</span>\n </div>\n </div>\n <div *ngIf=\"menu.childs.length && menu.activated\" class=\"submenu\">\n <div\n *ngFor=\"let submenu of menu.childs\"\n [class]=\"submenu.activated ? 'menu selected' : 'menu'\"\n (click)=\"goTo(submenu.path, $event)\">\n <div *ngIf=\"!submenu.icon\" class=\"menu-dot\">•</div>\n <div *ngIf=\"submenu.icon\" class=\"menu-icon\">\n <fa-icon *ngIf=\"submenu.icon.filter !== undefined\" [icon]=\"submenu.icon\"></fa-icon>\n <img *ngIf=\"submenu.icon.filter === undefined\" [src]=\"submenu.icon\" />\n </div>\n <div *ngIf=\"submenu.label\" class=\"menu-caption\">\n <span>{{submenu.label | translate}}</span>\n </div>\n </div>\n </div>\n</h4>\n", styles: [".menu,.submenu{cursor:pointer}h4{margin:0;padding:0}h4 .menu{padding:1em 0;display:flex;flex-direction:row}h4 .menu>div{flex:1 1 auto;align-self:center}.menu-dot{max-width:1.1em;text-align:center;margin-right:.5em;font-size:2em}.menu-icon{max-width:60px;text-align:center;margin-right:.5em}.submenu{margin-left:1em}.submenu .menu{padding:0;font-size:.9em;line-height:2.2em}.submenu .menu:before{content:\"\";margin-left:1.1em;width:.1em;height:2.5em;position:relative;background:#ffffff;margin-right:-1.17em}\n"] }]
|
|
167
|
+
}], function () { return [{ type: i1.Router }]; }, { itemClick: [{
|
|
168
|
+
type: Output
|
|
169
|
+
}], menuItems: [{
|
|
170
|
+
type: Input
|
|
171
|
+
}] }); })();
|
|
172
172
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F1Y2EtbWVudS12ZXJ0aWNhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXVjYS1tYXRlcmlhbC9zcmMvbGliL2NhdWNhLW1lbnUtdmVydGljYWwvY2F1Y2EtbWVudS12ZXJ0aWNhbC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXVjYS1tYXRlcmlhbC9zcmMvbGliL2NhdWNhLW1lbnUtdmVydGljYWwvY2F1Y2EtbWVudS12ZXJ0aWNhbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzdFLE9BQU8sRUFBQyxhQUFhLEVBQVMsTUFBTSxpQkFBaUIsQ0FBQzs7Ozs7OztJQ0UxQyw2QkFBNkU7OztJQUE3QixtQ0FBa0I7OztJQUNsRSx5QkFBZ0U7OztJQUFwQixvREFBaUI7OztJQUZqRSw4QkFBeUM7SUFDckMsOEZBQTZFO0lBQzdFLHNGQUFnRTtJQUNwRSxpQkFBTTs7O0lBRlEsZUFBb0M7SUFB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hbj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbjwvaDQ+XG4iXX0=
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { Component, Inject } from '@angular/core';
|
|
2
|
-
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/material/dialog";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
import * as i3 from "@angular/material/button";
|
|
7
|
-
import * as i4 from "../shared/models/simple-dialog-data";
|
|
8
|
-
function CaucaSimpleDialogComponent_div_4_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
10
|
-
i0.ɵɵelementStart(0, "button", 6);
|
|
11
|
-
i0.ɵɵlistener("click", function CaucaSimpleDialogComponent_div_4_button_1_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const i_r3 = restoredCtx.index; const ctx_r4 = i0.ɵɵnextContext(2); return ctx_r4.onClick(i_r3); });
|
|
12
|
-
i0.ɵɵtext(1);
|
|
13
|
-
i0.ɵɵelementEnd();
|
|
14
|
-
} if (rf & 2) {
|
|
15
|
-
const label_r2 = ctx.$implicit;
|
|
16
|
-
i0.ɵɵadvance(1);
|
|
17
|
-
i0.ɵɵtextInterpolate(label_r2);
|
|
18
|
-
} }
|
|
19
|
-
function CaucaSimpleDialogComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
-
i0.ɵɵelementStart(0, "div", 4);
|
|
21
|
-
i0.ɵɵtemplate(1, CaucaSimpleDialogComponent_div_4_button_1_Template, 2, 1, "button", 5);
|
|
22
|
-
i0.ɵɵelementEnd();
|
|
23
|
-
} if (rf & 2) {
|
|
24
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
25
|
-
i0.ɵɵadvance(1);
|
|
26
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.data.buttons);
|
|
27
|
-
} }
|
|
28
|
-
export class CaucaSimpleDialogComponent {
|
|
29
|
-
constructor(dialogRef, data) {
|
|
30
|
-
this.dialogRef = dialogRef;
|
|
31
|
-
this.data = data;
|
|
32
|
-
}
|
|
33
|
-
ngOnInit() { }
|
|
34
|
-
onClick(buttonIndex) {
|
|
35
|
-
this.dialogRef.close(buttonIndex);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
CaucaSimpleDialogComponent.ɵfac = function CaucaSimpleDialogComponent_Factory(t) { return new (t || CaucaSimpleDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
39
|
-
CaucaSimpleDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSimpleDialogComponent, selectors: [["cauca-simple-dialog"]], decls: 5, vars: 3, consts: [["mat-dialog-title", ""], ["mat-dialog-content", ""], [3, "innerHTML"], ["mat-dialog-actions", "", 4, "ngIf"], ["mat-dialog-actions", ""], ["mat-raised-button", "", 3, "click", 4, "ngFor", "ngForOf"], ["mat-raised-button", "", 3, "click"]], template: function CaucaSimpleDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
-
i0.ɵɵelementStart(0, "h1", 0);
|
|
41
|
-
i0.ɵɵtext(1);
|
|
42
|
-
i0.ɵɵelementEnd();
|
|
43
|
-
i0.ɵɵelementStart(2, "div", 1);
|
|
44
|
-
i0.ɵɵelement(3, "div", 2);
|
|
45
|
-
i0.ɵɵelementEnd();
|
|
46
|
-
i0.ɵɵtemplate(4, CaucaSimpleDialogComponent_div_4_Template, 2, 1, "div", 3);
|
|
47
|
-
} if (rf & 2) {
|
|
48
|
-
i0.ɵɵadvance(1);
|
|
49
|
-
i0.ɵɵtextInterpolate(ctx.data.title);
|
|
50
|
-
i0.ɵɵadvance(2);
|
|
51
|
-
i0.ɵɵproperty("innerHTML", ctx.data.message, i0.ɵɵsanitizeHtml);
|
|
52
|
-
i0.ɵɵadvance(1);
|
|
53
|
-
i0.ɵɵproperty("ngIf", ctx.data.buttons);
|
|
54
|
-
} }, directives: [i2.NgIf, i2.NgForOf, i3.MatButton], styles: ["div[mat-dialog-actions][_ngcontent-%COMP%]{margin-top:20px;text-align:center}"] });
|
|
55
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSimpleDialogComponent, [{
|
|
56
|
-
type: Component,
|
|
57
|
-
args: [{ selector: 'cauca-simple-dialog', template: "<h1 mat-dialog-title>{{data.title}}</h1>\n<div mat-dialog-content>\n <div [innerHTML]=\"data.message\"></div>\n</div>\n<div mat-dialog-actions *ngIf=\"data.buttons\">\n <button *ngFor=\"let label of data.buttons; let i = index\" mat-raised-button (click)=\"onClick(i)\">{{label}}</button>\n</div>", styles: ["div[mat-dialog-actions]{margin-top:20px;text-align:center}\n"] }]
|
|
58
|
-
}], function () { return [{ type: i1.MatDialogRef }, { type: i4.SimpleDialogData, decorators: [{
|
|
59
|
-
type: Inject,
|
|
60
|
-
args: [MAT_DIALOG_DATA]
|
|
61
|
-
}] }]; }, null); })();
|
|
1
|
+
import { Component, Inject } from '@angular/core';
|
|
2
|
+
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/dialog";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/material/button";
|
|
7
|
+
import * as i4 from "../shared/models/simple-dialog-data";
|
|
8
|
+
function CaucaSimpleDialogComponent_div_4_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
10
|
+
i0.ɵɵelementStart(0, "button", 6);
|
|
11
|
+
i0.ɵɵlistener("click", function CaucaSimpleDialogComponent_div_4_button_1_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const i_r3 = restoredCtx.index; const ctx_r4 = i0.ɵɵnextContext(2); return ctx_r4.onClick(i_r3); });
|
|
12
|
+
i0.ɵɵtext(1);
|
|
13
|
+
i0.ɵɵelementEnd();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const label_r2 = ctx.$implicit;
|
|
16
|
+
i0.ɵɵadvance(1);
|
|
17
|
+
i0.ɵɵtextInterpolate(label_r2);
|
|
18
|
+
} }
|
|
19
|
+
function CaucaSimpleDialogComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
21
|
+
i0.ɵɵtemplate(1, CaucaSimpleDialogComponent_div_4_button_1_Template, 2, 1, "button", 5);
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
} if (rf & 2) {
|
|
24
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
25
|
+
i0.ɵɵadvance(1);
|
|
26
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.data.buttons);
|
|
27
|
+
} }
|
|
28
|
+
export class CaucaSimpleDialogComponent {
|
|
29
|
+
constructor(dialogRef, data) {
|
|
30
|
+
this.dialogRef = dialogRef;
|
|
31
|
+
this.data = data;
|
|
32
|
+
}
|
|
33
|
+
ngOnInit() { }
|
|
34
|
+
onClick(buttonIndex) {
|
|
35
|
+
this.dialogRef.close(buttonIndex);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
CaucaSimpleDialogComponent.ɵfac = function CaucaSimpleDialogComponent_Factory(t) { return new (t || CaucaSimpleDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
39
|
+
CaucaSimpleDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSimpleDialogComponent, selectors: [["cauca-simple-dialog"]], decls: 5, vars: 3, consts: [["mat-dialog-title", ""], ["mat-dialog-content", ""], [3, "innerHTML"], ["mat-dialog-actions", "", 4, "ngIf"], ["mat-dialog-actions", ""], ["mat-raised-button", "", 3, "click", 4, "ngFor", "ngForOf"], ["mat-raised-button", "", 3, "click"]], template: function CaucaSimpleDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
i0.ɵɵelementStart(0, "h1", 0);
|
|
41
|
+
i0.ɵɵtext(1);
|
|
42
|
+
i0.ɵɵelementEnd();
|
|
43
|
+
i0.ɵɵelementStart(2, "div", 1);
|
|
44
|
+
i0.ɵɵelement(3, "div", 2);
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
i0.ɵɵtemplate(4, CaucaSimpleDialogComponent_div_4_Template, 2, 1, "div", 3);
|
|
47
|
+
} if (rf & 2) {
|
|
48
|
+
i0.ɵɵadvance(1);
|
|
49
|
+
i0.ɵɵtextInterpolate(ctx.data.title);
|
|
50
|
+
i0.ɵɵadvance(2);
|
|
51
|
+
i0.ɵɵproperty("innerHTML", ctx.data.message, i0.ɵɵsanitizeHtml);
|
|
52
|
+
i0.ɵɵadvance(1);
|
|
53
|
+
i0.ɵɵproperty("ngIf", ctx.data.buttons);
|
|
54
|
+
} }, directives: [i2.NgIf, i2.NgForOf, i3.MatButton], styles: ["div[mat-dialog-actions][_ngcontent-%COMP%]{margin-top:20px;text-align:center}"] });
|
|
55
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSimpleDialogComponent, [{
|
|
56
|
+
type: Component,
|
|
57
|
+
args: [{ selector: 'cauca-simple-dialog', template: "<h1 mat-dialog-title>{{data.title}}</h1>\n<div mat-dialog-content>\n <div [innerHTML]=\"data.message\"></div>\n</div>\n<div mat-dialog-actions *ngIf=\"data.buttons\">\n <button *ngFor=\"let label of data.buttons; let i = index\" mat-raised-button (click)=\"onClick(i)\">{{label}}</button>\n</div>", styles: ["div[mat-dialog-actions]{margin-top:20px;text-align:center}\n"] }]
|
|
58
|
+
}], function () { return [{ type: i1.MatDialogRef }, { type: i4.SimpleDialogData, decor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