@cauca-911/material 12.0.0 → 13.0.2
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/{esm2015/cauca-911-material.js → esm2020/cauca-911-material.mjs} +0 -0
- package/esm2020/lib/cauca-input-file/cauca-input-file.component.mjs +148 -0
- package/esm2020/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +88 -0
- package/{esm2015/lib/cauca-material.component.js → esm2020/lib/cauca-material.component.mjs} +2 -6
- package/{esm2015/lib/cauca-material.module.js → esm2020/lib/cauca-material.module.mjs} +0 -0
- package/{esm2015/lib/cauca-material.service.js → esm2020/lib/cauca-material.service.mjs} +1 -1
- package/esm2020/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.mjs +144 -0
- package/{esm2015/lib/cauca-menu-vertical/cauca-menu-vertical.component.js → esm2020/lib/cauca-menu-vertical/cauca-menu-vertical.component.mjs} +7 -16
- package/{esm2015/lib/cauca-simple-dialog/cauca-simple-dialog.component.js → esm2020/lib/cauca-simple-dialog/cauca-simple-dialog.component.mjs} +2 -6
- package/esm2020/lib/cauca-slideshow/cauca-slideshow.component.mjs +139 -0
- package/{esm2015/lib/shared/models/menu-item.js → esm2020/lib/shared/models/menu-item.mjs} +0 -0
- package/{esm2015/lib/shared/models/simple-dialog-data.js → esm2020/lib/shared/models/simple-dialog-data.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/fesm2015/cauca-911-material.mjs +984 -0
- package/fesm2015/cauca-911-material.mjs.map +1 -0
- package/{fesm2015/cauca-911-material.js → fesm2020/cauca-911-material.mjs} +31 -71
- package/fesm2020/cauca-911-material.mjs.map +1 -0
- package/lib/cauca-input-file/cauca-input-file.component.d.ts +1 -1
- package/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.d.ts +4 -4
- package/lib/cauca-slideshow/cauca-slideshow.component.d.ts +4 -4
- package/package.json +26 -13
- package/bundles/cauca-911-material.umd.js +0 -1078
- package/bundles/cauca-911-material.umd.js.map +0 -1
- package/esm2015/lib/cauca-input-file/cauca-input-file.component.js +0 -152
- package/esm2015/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.js +0 -94
- package/esm2015/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.js +0 -152
- package/esm2015/lib/cauca-slideshow/cauca-slideshow.component.js +0 -144
- package/fesm2015/cauca-911-material.js.map +0 -1
|
@@ -0,0 +1,984 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Component, Inject, EventEmitter, ViewChild, Output, Input, HostListener, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@ngx-translate/core';
|
|
4
|
+
import * as i2 from '@angular/common';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import * as i6 from '@angular/forms';
|
|
7
|
+
import { FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import * as i3 from '@angular/material/button';
|
|
9
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
10
|
+
import * as i4 from '@angular/material/form-field';
|
|
11
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
12
|
+
import * as i5 from '@angular/material/icon';
|
|
13
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
14
|
+
import * as i5$1 from '@angular/material/input';
|
|
15
|
+
import { MatInputModule } from '@angular/material/input';
|
|
16
|
+
import * as i2$1 from '@angular/material/tabs';
|
|
17
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
18
|
+
import * as i3$1 from '@fortawesome/angular-fontawesome';
|
|
19
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
20
|
+
import * as i1$2 from '@cauca-911/core';
|
|
21
|
+
import { CaucaCoreForChildModule } from '@cauca-911/core';
|
|
22
|
+
import * as i1$1 from '@angular/material/dialog';
|
|
23
|
+
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
24
|
+
import * as i1$3 from '@angular/router';
|
|
25
|
+
import { NavigationEnd } from '@angular/router';
|
|
26
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
27
|
+
|
|
28
|
+
class CaucaMaterialService {
|
|
29
|
+
constructor() { }
|
|
30
|
+
}
|
|
31
|
+
CaucaMaterialService.ɵfac = function CaucaMaterialService_Factory(t) { return new (t || CaucaMaterialService)(); };
|
|
32
|
+
CaucaMaterialService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaucaMaterialService, factory: CaucaMaterialService.ɵfac, providedIn: 'root' });
|
|
33
|
+
(function () {
|
|
34
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialService, [{
|
|
35
|
+
type: Injectable,
|
|
36
|
+
args: [{
|
|
37
|
+
providedIn: 'root'
|
|
38
|
+
}]
|
|
39
|
+
}], function () { return []; }, null);
|
|
40
|
+
})();
|
|
41
|
+
|
|
42
|
+
class CaucaMaterialComponent {
|
|
43
|
+
constructor() { }
|
|
44
|
+
ngOnInit() {
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
CaucaMaterialComponent.ɵfac = function CaucaMaterialComponent_Factory(t) { return new (t || CaucaMaterialComponent)(); };
|
|
48
|
+
CaucaMaterialComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMaterialComponent, selectors: [["cauca-material"]], decls: 3, vars: 3, template: function CaucaMaterialComponent_Template(rf, ctx) {
|
|
49
|
+
if (rf & 1) {
|
|
50
|
+
i0.ɵɵelementStart(0, "div");
|
|
51
|
+
i0.ɵɵtext(1);
|
|
52
|
+
i0.ɵɵpipe(2, "translate");
|
|
53
|
+
i0.ɵɵelementEnd();
|
|
54
|
+
}
|
|
55
|
+
if (rf & 2) {
|
|
56
|
+
i0.ɵɵadvance(1);
|
|
57
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "core.noGenericComponentOnThisLibrary"));
|
|
58
|
+
}
|
|
59
|
+
}, pipes: [i1.TranslatePipe], encapsulation: 2 });
|
|
60
|
+
(function () {
|
|
61
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialComponent, [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{ selector: 'cauca-material', styles: [], template: "<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>" }]
|
|
64
|
+
}], function () { return []; }, null);
|
|
65
|
+
})();
|
|
66
|
+
|
|
67
|
+
class SimpleDialogData {
|
|
68
|
+
constructor() {
|
|
69
|
+
this.buttons = [];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function CaucaSimpleDialogComponent_div_4_button_1_Template(rf, ctx) {
|
|
74
|
+
if (rf & 1) {
|
|
75
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
76
|
+
i0.ɵɵelementStart(0, "button", 6);
|
|
77
|
+
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); });
|
|
78
|
+
i0.ɵɵtext(1);
|
|
79
|
+
i0.ɵɵelementEnd();
|
|
80
|
+
}
|
|
81
|
+
if (rf & 2) {
|
|
82
|
+
const label_r2 = ctx.$implicit;
|
|
83
|
+
i0.ɵɵadvance(1);
|
|
84
|
+
i0.ɵɵtextInterpolate(label_r2);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function CaucaSimpleDialogComponent_div_4_Template(rf, ctx) {
|
|
88
|
+
if (rf & 1) {
|
|
89
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
90
|
+
i0.ɵɵtemplate(1, CaucaSimpleDialogComponent_div_4_button_1_Template, 2, 1, "button", 5);
|
|
91
|
+
i0.ɵɵelementEnd();
|
|
92
|
+
}
|
|
93
|
+
if (rf & 2) {
|
|
94
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
95
|
+
i0.ɵɵadvance(1);
|
|
96
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.data.buttons);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
class CaucaSimpleDialogComponent {
|
|
100
|
+
constructor(dialogRef, data) {
|
|
101
|
+
this.dialogRef = dialogRef;
|
|
102
|
+
this.data = data;
|
|
103
|
+
}
|
|
104
|
+
ngOnInit() { }
|
|
105
|
+
onClick(buttonIndex) {
|
|
106
|
+
this.dialogRef.close(buttonIndex);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
CaucaSimpleDialogComponent.ɵfac = function CaucaSimpleDialogComponent_Factory(t) { return new (t || CaucaSimpleDialogComponent)(i0.ɵɵdirectiveInject(i1$1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
110
|
+
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) {
|
|
111
|
+
if (rf & 1) {
|
|
112
|
+
i0.ɵɵelementStart(0, "h1", 0);
|
|
113
|
+
i0.ɵɵtext(1);
|
|
114
|
+
i0.ɵɵelementEnd();
|
|
115
|
+
i0.ɵɵelementStart(2, "div", 1);
|
|
116
|
+
i0.ɵɵelement(3, "div", 2);
|
|
117
|
+
i0.ɵɵelementEnd();
|
|
118
|
+
i0.ɵɵtemplate(4, CaucaSimpleDialogComponent_div_4_Template, 2, 1, "div", 3);
|
|
119
|
+
}
|
|
120
|
+
if (rf & 2) {
|
|
121
|
+
i0.ɵɵadvance(1);
|
|
122
|
+
i0.ɵɵtextInterpolate(ctx.data.title);
|
|
123
|
+
i0.ɵɵadvance(2);
|
|
124
|
+
i0.ɵɵproperty("innerHTML", ctx.data.message, i0.ɵɵsanitizeHtml);
|
|
125
|
+
i0.ɵɵadvance(1);
|
|
126
|
+
i0.ɵɵproperty("ngIf", ctx.data.buttons);
|
|
127
|
+
}
|
|
128
|
+
}, directives: [i2.NgIf, i2.NgForOf, i3.MatButton], styles: ["div[mat-dialog-actions][_ngcontent-%COMP%]{margin-top:20px;text-align:center}"] });
|
|
129
|
+
(function () {
|
|
130
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSimpleDialogComponent, [{
|
|
131
|
+
type: Component,
|
|
132
|
+
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"] }]
|
|
133
|
+
}], function () {
|
|
134
|
+
return [{ type: i1$1.MatDialogRef }, { type: SimpleDialogData, decorators: [{
|
|
135
|
+
type: Inject,
|
|
136
|
+
args: [MAT_DIALOG_DATA]
|
|
137
|
+
}] }];
|
|
138
|
+
}, null);
|
|
139
|
+
})();
|
|
140
|
+
|
|
141
|
+
const _c0$2 = ["file"];
|
|
142
|
+
function CaucaInputFileComponent_mat_icon_1_Template(rf, ctx) {
|
|
143
|
+
if (rf & 1) {
|
|
144
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
145
|
+
i0.ɵɵtext(1);
|
|
146
|
+
i0.ɵɵelementEnd();
|
|
147
|
+
}
|
|
148
|
+
if (rf & 2) {
|
|
149
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
150
|
+
i0.ɵɵadvance(1);
|
|
151
|
+
i0.ɵɵtextInterpolate(ctx_r0.icon);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function CaucaInputFileComponent_span_2_Template(rf, ctx) {
|
|
155
|
+
if (rf & 1) {
|
|
156
|
+
i0.ɵɵelementStart(0, "span");
|
|
157
|
+
i0.ɵɵtext(1);
|
|
158
|
+
i0.ɵɵelementEnd();
|
|
159
|
+
}
|
|
160
|
+
if (rf & 2) {
|
|
161
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
162
|
+
i0.ɵɵadvance(1);
|
|
163
|
+
i0.ɵɵtextInterpolate(ctx_r1.text);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function CaucaInputFileComponent_ng_container_3_Template(rf, ctx) {
|
|
167
|
+
if (rf & 1) {
|
|
168
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
169
|
+
i0.ɵɵelementContainerStart(0);
|
|
170
|
+
i0.ɵɵelementStart(1, "input", 4, 5);
|
|
171
|
+
i0.ɵɵlistener("change", function CaucaInputFileComponent_ng_container_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.onSelectFile($event); });
|
|
172
|
+
i0.ɵɵelementEnd();
|
|
173
|
+
i0.ɵɵelementContainerEnd();
|
|
174
|
+
}
|
|
175
|
+
if (rf & 2) {
|
|
176
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
177
|
+
i0.ɵɵadvance(1);
|
|
178
|
+
i0.ɵɵproperty("accept", ctx_r2.accept);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
function CaucaInputFileComponent_ng_template_4_Template(rf, ctx) {
|
|
182
|
+
if (rf & 1) {
|
|
183
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
184
|
+
i0.ɵɵelementStart(0, "input", 6, 5);
|
|
185
|
+
i0.ɵɵlistener("change", function CaucaInputFileComponent_ng_template_4_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.onSelectFile($event); });
|
|
186
|
+
i0.ɵɵelementEnd();
|
|
187
|
+
}
|
|
188
|
+
if (rf & 2) {
|
|
189
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
190
|
+
i0.ɵɵproperty("accept", ctx_r4.accept);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
class CaucaInputFileComponent {
|
|
194
|
+
constructor(translateService, dialog) {
|
|
195
|
+
this.translateService = translateService;
|
|
196
|
+
this.dialog = dialog;
|
|
197
|
+
this.readend = new EventEmitter();
|
|
198
|
+
this.accept = '';
|
|
199
|
+
this.multiple = false;
|
|
200
|
+
this.icon = '';
|
|
201
|
+
this.text = '';
|
|
202
|
+
this.labels = {};
|
|
203
|
+
}
|
|
204
|
+
ngOnInit() {
|
|
205
|
+
if (!this.icon && !this.text) {
|
|
206
|
+
this.translateService.get(['material.select', 'material.dialogTitle', 'material.dialogMessage']).subscribe((labels) => {
|
|
207
|
+
this.labels = labels;
|
|
208
|
+
this.text = labels['material.select'];
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
onSelectFile(e) {
|
|
213
|
+
for (let i = 0, j = e.target.files.length; i < j; i++) {
|
|
214
|
+
const file = e.target.files[i];
|
|
215
|
+
const reader = new FileReader();
|
|
216
|
+
reader.onerror = ((error) => this.onError(error));
|
|
217
|
+
reader.onload = ((event) => this.onReadEnd(file, event));
|
|
218
|
+
reader.readAsDataURL(file);
|
|
219
|
+
}
|
|
220
|
+
if (e.target.files.length) {
|
|
221
|
+
this.dialog.open(CaucaSimpleDialogComponent, {
|
|
222
|
+
width: '250px',
|
|
223
|
+
disableClose: true,
|
|
224
|
+
data: {
|
|
225
|
+
title: this.labels['material.dialogTitle'],
|
|
226
|
+
message: this.labels['material.dialogMessage']
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
openDialog(event) {
|
|
232
|
+
if (this.file) {
|
|
233
|
+
this.file.nativeElement.click();
|
|
234
|
+
}
|
|
235
|
+
event.stopPropagation();
|
|
236
|
+
}
|
|
237
|
+
onError(error) {
|
|
238
|
+
throw error;
|
|
239
|
+
}
|
|
240
|
+
onReadEnd(file, e) {
|
|
241
|
+
this.dialog.closeAll();
|
|
242
|
+
this.readend.emit({
|
|
243
|
+
name: file.name,
|
|
244
|
+
size: file.size,
|
|
245
|
+
type: file.type,
|
|
246
|
+
lastModifiedDate: file.lastModifiedDate,
|
|
247
|
+
content: e.target['result'],
|
|
248
|
+
file,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
CaucaInputFileComponent.ɵfac = function CaucaInputFileComponent_Factory(t) { return new (t || CaucaInputFileComponent)(i0.ɵɵdirectiveInject(i1$2.TranslateService), i0.ɵɵdirectiveInject(i1$1.MatDialog)); };
|
|
253
|
+
CaucaInputFileComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputFileComponent, selectors: [["cauca-input-file"]], viewQuery: function CaucaInputFileComponent_Query(rf, ctx) {
|
|
254
|
+
if (rf & 1) {
|
|
255
|
+
i0.ɵɵviewQuery(_c0$2, 5);
|
|
256
|
+
}
|
|
257
|
+
if (rf & 2) {
|
|
258
|
+
let _t;
|
|
259
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.file = _t.first);
|
|
260
|
+
}
|
|
261
|
+
}, inputs: { accept: "accept", multiple: "multiple", icon: "icon", text: "text" }, outputs: { readend: "readend" }, decls: 6, vars: 4, consts: [["mat-raised-button", "", 3, "click"], [4, "ngIf"], [4, "ngIf", "ngIfElse"], ["notMultipleInput", ""], ["type", "file", "multiple", "multiple", 3, "accept", "change"], ["file", ""], ["type", "file", 3, "accept", "change"]], template: function CaucaInputFileComponent_Template(rf, ctx) {
|
|
262
|
+
if (rf & 1) {
|
|
263
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
264
|
+
i0.ɵɵlistener("click", function CaucaInputFileComponent_Template_button_click_0_listener($event) { return ctx.openDialog($event); });
|
|
265
|
+
i0.ɵɵtemplate(1, CaucaInputFileComponent_mat_icon_1_Template, 2, 1, "mat-icon", 1);
|
|
266
|
+
i0.ɵɵtemplate(2, CaucaInputFileComponent_span_2_Template, 2, 1, "span", 1);
|
|
267
|
+
i0.ɵɵelementEnd();
|
|
268
|
+
i0.ɵɵtemplate(3, CaucaInputFileComponent_ng_container_3_Template, 3, 1, "ng-container", 2);
|
|
269
|
+
i0.ɵɵtemplate(4, CaucaInputFileComponent_ng_template_4_Template, 2, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
270
|
+
}
|
|
271
|
+
if (rf & 2) {
|
|
272
|
+
const _r3 = i0.ɵɵreference(5);
|
|
273
|
+
i0.ɵɵadvance(1);
|
|
274
|
+
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
275
|
+
i0.ɵɵadvance(1);
|
|
276
|
+
i0.ɵɵproperty("ngIf", ctx.text);
|
|
277
|
+
i0.ɵɵadvance(1);
|
|
278
|
+
i0.ɵɵproperty("ngIf", ctx.multiple)("ngIfElse", _r3);
|
|
279
|
+
}
|
|
280
|
+
}, directives: [i3.MatButton, i2.NgIf, i5.MatIcon], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:none}"] });
|
|
281
|
+
(function () {
|
|
282
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputFileComponent, [{
|
|
283
|
+
type: Component,
|
|
284
|
+
args: [{ selector: 'cauca-input-file', template: "<button mat-raised-button (click)=\"openDialog($event)\">\n <mat-icon *ngIf=\"icon\">{{icon}}</mat-icon>\n <span *ngIf=\"text\">{{text}}</span>\n</button>\n<ng-container *ngIf=\"multiple; else notMultipleInput\">\n <input #file type=\"file\" (change)=\"onSelectFile($event)\" [accept]=\"accept\" multiple=\"multiple\" />\n</ng-container>\n\n<ng-template #notMultipleInput>\n <input #file type=\"file\" (change)=\"onSelectFile($event)\" [accept]=\"accept\" />\n</ng-template>", styles: [":host input{display:none}\n"] }]
|
|
285
|
+
}], function () { return [{ type: i1$2.TranslateService }, { type: i1$1.MatDialog }]; }, { file: [{
|
|
286
|
+
type: ViewChild,
|
|
287
|
+
args: ['file', { static: false }]
|
|
288
|
+
}], readend: [{
|
|
289
|
+
type: Output
|
|
290
|
+
}], accept: [{
|
|
291
|
+
type: Input
|
|
292
|
+
}], multiple: [{
|
|
293
|
+
type: Input
|
|
294
|
+
}], icon: [{
|
|
295
|
+
type: Input
|
|
296
|
+
}], text: [{
|
|
297
|
+
type: Input
|
|
298
|
+
}] });
|
|
299
|
+
})();
|
|
300
|
+
|
|
301
|
+
function CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template(rf, ctx) {
|
|
302
|
+
if (rf & 1) {
|
|
303
|
+
i0.ɵɵelementStart(0, "mat-error");
|
|
304
|
+
i0.ɵɵtext(1);
|
|
305
|
+
i0.ɵɵpipe(2, "translate");
|
|
306
|
+
i0.ɵɵelementEnd();
|
|
307
|
+
}
|
|
308
|
+
if (rf & 2) {
|
|
309
|
+
const i_r2 = i0.ɵɵnextContext().index;
|
|
310
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
311
|
+
i0.ɵɵadvance(1);
|
|
312
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.getErrorMessage(i_r2)));
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
function CaucaInputMultipleLangueComponent_mat_tab_1_Template(rf, ctx) {
|
|
316
|
+
if (rf & 1) {
|
|
317
|
+
i0.ɵɵelementStart(0, "mat-tab", 2)(1, "mat-form-field", 3);
|
|
318
|
+
i0.ɵɵelement(2, "input", 4);
|
|
319
|
+
i0.ɵɵtemplate(3, CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template, 3, 3, "mat-error", 5);
|
|
320
|
+
i0.ɵɵelementEnd()();
|
|
321
|
+
}
|
|
322
|
+
if (rf & 2) {
|
|
323
|
+
const lang_r1 = ctx.$implicit;
|
|
324
|
+
const i_r2 = ctx.index;
|
|
325
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
326
|
+
i0.ɵɵproperty("label", lang_r1);
|
|
327
|
+
i0.ɵɵadvance(2);
|
|
328
|
+
i0.ɵɵproperty("placeholder", lang_r1)("formControl", ctx_r0.forms[i_r2]);
|
|
329
|
+
i0.ɵɵadvance(1);
|
|
330
|
+
i0.ɵɵproperty("ngIf", ctx_r0.forms[i_r2].invalid);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
class CaucaInputMultipleLangueComponent {
|
|
334
|
+
constructor(coreService, translate) {
|
|
335
|
+
this.translate = translate;
|
|
336
|
+
this.value = [];
|
|
337
|
+
this.forms = [];
|
|
338
|
+
this.labels = [];
|
|
339
|
+
this.selectedIndex = 0;
|
|
340
|
+
this.config = coreService.getConfig();
|
|
341
|
+
}
|
|
342
|
+
ngOnInit() {
|
|
343
|
+
this.translate.get(this.config.languages).subscribe((labels) => {
|
|
344
|
+
for (const i in labels) {
|
|
345
|
+
if (labels[i]) {
|
|
346
|
+
this.labels.push(labels[i]);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
this.initializeForms();
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
onTagChanged(tabIndex) {
|
|
353
|
+
console.log('cauca-material', tabIndex);
|
|
354
|
+
console.log('cauca-material', this.value);
|
|
355
|
+
console.log('cauca-material', this.forms);
|
|
356
|
+
}
|
|
357
|
+
getErrorMessage(index) {
|
|
358
|
+
return this.forms[index].hasError('required') ? 'error.required' : '';
|
|
359
|
+
}
|
|
360
|
+
initializeForms() {
|
|
361
|
+
this.labels.forEach((item, index) => {
|
|
362
|
+
this.forms[index] = new FormControl('', [Validators.required]);
|
|
363
|
+
this.forms[index].setValue(this.value[index] || '');
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
CaucaInputMultipleLangueComponent.ɵfac = function CaucaInputMultipleLangueComponent_Factory(t) { return new (t || CaucaInputMultipleLangueComponent)(i0.ɵɵdirectiveInject(i1$2.CaucaCoreService), i0.ɵɵdirectiveInject(i1$2.TranslateService)); };
|
|
368
|
+
CaucaInputMultipleLangueComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputMultipleLangueComponent, selectors: [["cauca-input-multiple-langue"]], inputs: { value: "value" }, decls: 2, vars: 2, consts: [[3, "selectedIndex", "selectedIndexChange"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label"], ["hideRequiredMarker", "never"], ["matInput", "", "required", "required", 3, "placeholder", "formControl"], [4, "ngIf"]], template: function CaucaInputMultipleLangueComponent_Template(rf, ctx) {
|
|
369
|
+
if (rf & 1) {
|
|
370
|
+
i0.ɵɵelementStart(0, "mat-tab-group", 0);
|
|
371
|
+
i0.ɵɵlistener("selectedIndexChange", function CaucaInputMultipleLangueComponent_Template_mat_tab_group_selectedIndexChange_0_listener($event) { return ctx.onTagChanged($event); });
|
|
372
|
+
i0.ɵɵtemplate(1, CaucaInputMultipleLangueComponent_mat_tab_1_Template, 4, 4, "mat-tab", 1);
|
|
373
|
+
i0.ɵɵelementEnd();
|
|
374
|
+
}
|
|
375
|
+
if (rf & 2) {
|
|
376
|
+
i0.ɵɵproperty("selectedIndex", ctx.selectedIndex);
|
|
377
|
+
i0.ɵɵadvance(1);
|
|
378
|
+
i0.ɵɵproperty("ngForOf", ctx.labels);
|
|
379
|
+
}
|
|
380
|
+
}, directives: [i2$1.MatTabGroup, i2.NgForOf, i2$1.MatTab, i4.MatFormField, i5$1.MatInput, i6.DefaultValueAccessor, i6.RequiredValidator, i6.NgControlStatus, i6.FormControlDirective, i2.NgIf, i4.MatError], pipes: [i1.TranslatePipe], styles: [".mat-form-field[_ngcontent-%COMP%]{width:100%}"] });
|
|
381
|
+
(function () {
|
|
382
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputMultipleLangueComponent, [{
|
|
383
|
+
type: Component,
|
|
384
|
+
args: [{ selector: 'cauca-input-multiple-langue', template: "<mat-tab-group [selectedIndex]=\"selectedIndex\" (selectedIndexChange)=\"onTagChanged($event)\">\n <mat-tab *ngFor=\"let lang of labels; let i = index\" [label]=\"lang\">\n <mat-form-field hideRequiredMarker=\"never\">\n <input matInput [placeholder]=\"lang\" [formControl]=\"forms[i]\" required=\"required\">\n <mat-error *ngIf=\"forms[i].invalid\">{{getErrorMessage(i) | translate}}</mat-error>\n </mat-form-field>\n </mat-tab>\n</mat-tab-group>", styles: [".mat-form-field{width:100%}\n"] }]
|
|
385
|
+
}], function () { return [{ type: i1$2.CaucaCoreService }, { type: i1$2.TranslateService }]; }, { value: [{
|
|
386
|
+
type: Input
|
|
387
|
+
}] });
|
|
388
|
+
})();
|
|
389
|
+
|
|
390
|
+
function CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template(rf, ctx) {
|
|
391
|
+
if (rf & 1) {
|
|
392
|
+
i0.ɵɵelement(0, "fa-icon", 8);
|
|
393
|
+
}
|
|
394
|
+
if (rf & 2) {
|
|
395
|
+
const menu_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
396
|
+
i0.ɵɵproperty("icon", menu_r1.icon);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
function CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template(rf, ctx) {
|
|
400
|
+
if (rf & 1) {
|
|
401
|
+
i0.ɵɵelement(0, "img", 9);
|
|
402
|
+
}
|
|
403
|
+
if (rf & 2) {
|
|
404
|
+
const menu_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
405
|
+
i0.ɵɵproperty("src", menu_r1.icon, i0.ɵɵsanitizeUrl);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
function CaucaMenuVerticalComponent_h4_0_div_2_Template(rf, ctx) {
|
|
409
|
+
if (rf & 1) {
|
|
410
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
411
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6);
|
|
412
|
+
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template, 1, 1, "img", 7);
|
|
413
|
+
i0.ɵɵelementEnd();
|
|
414
|
+
}
|
|
415
|
+
if (rf & 2) {
|
|
416
|
+
const menu_r1 = i0.ɵɵnextContext().$implicit;
|
|
417
|
+
i0.ɵɵadvance(1);
|
|
418
|
+
i0.ɵɵproperty("ngIf", menu_r1.icon.filter !== undefined);
|
|
419
|
+
i0.ɵɵadvance(1);
|
|
420
|
+
i0.ɵɵproperty("ngIf", menu_r1.icon.filter === undefined);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function CaucaMenuVerticalComponent_h4_0_div_3_Template(rf, ctx) {
|
|
424
|
+
if (rf & 1) {
|
|
425
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
426
|
+
i0.ɵɵtext(2);
|
|
427
|
+
i0.ɵɵpipe(3, "translate");
|
|
428
|
+
i0.ɵɵelementEnd()();
|
|
429
|
+
}
|
|
430
|
+
if (rf & 2) {
|
|
431
|
+
const menu_r1 = i0.ɵɵnextContext().$implicit;
|
|
432
|
+
i0.ɵɵadvance(2);
|
|
433
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, menu_r1.label));
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template(rf, ctx) {
|
|
437
|
+
if (rf & 1) {
|
|
438
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
439
|
+
i0.ɵɵtext(1, "\u2022");
|
|
440
|
+
i0.ɵɵelementEnd();
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template(rf, ctx) {
|
|
444
|
+
if (rf & 1) {
|
|
445
|
+
i0.ɵɵelement(0, "fa-icon", 8);
|
|
446
|
+
}
|
|
447
|
+
if (rf & 2) {
|
|
448
|
+
const submenu_r12 = i0.ɵɵnextContext(2).$implicit;
|
|
449
|
+
i0.ɵɵproperty("icon", submenu_r12.icon);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template(rf, ctx) {
|
|
453
|
+
if (rf & 1) {
|
|
454
|
+
i0.ɵɵelement(0, "img", 9);
|
|
455
|
+
}
|
|
456
|
+
if (rf & 2) {
|
|
457
|
+
const submenu_r12 = i0.ɵɵnextContext(2).$implicit;
|
|
458
|
+
i0.ɵɵproperty("src", submenu_r12.icon, i0.ɵɵsanitizeUrl);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template(rf, ctx) {
|
|
462
|
+
if (rf & 1) {
|
|
463
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
464
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6);
|
|
465
|
+
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template, 1, 1, "img", 7);
|
|
466
|
+
i0.ɵɵelementEnd();
|
|
467
|
+
}
|
|
468
|
+
if (rf & 2) {
|
|
469
|
+
const submenu_r12 = i0.ɵɵnextContext().$implicit;
|
|
470
|
+
i0.ɵɵadvance(1);
|
|
471
|
+
i0.ɵɵproperty("ngIf", submenu_r12.icon.filter !== undefined);
|
|
472
|
+
i0.ɵɵadvance(1);
|
|
473
|
+
i0.ɵɵproperty("ngIf", submenu_r12.icon.filter === undefined);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template(rf, ctx) {
|
|
477
|
+
if (rf & 1) {
|
|
478
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
479
|
+
i0.ɵɵtext(2);
|
|
480
|
+
i0.ɵɵpipe(3, "translate");
|
|
481
|
+
i0.ɵɵelementEnd()();
|
|
482
|
+
}
|
|
483
|
+
if (rf & 2) {
|
|
484
|
+
const submenu_r12 = i0.ɵɵnextContext().$implicit;
|
|
485
|
+
i0.ɵɵadvance(2);
|
|
486
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, submenu_r12.label));
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template(rf, ctx) {
|
|
490
|
+
if (rf & 1) {
|
|
491
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
492
|
+
i0.ɵɵelementStart(0, "div", 13);
|
|
493
|
+
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); });
|
|
494
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template, 2, 0, "div", 14);
|
|
495
|
+
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template, 3, 2, "div", 2);
|
|
496
|
+
i0.ɵɵtemplate(3, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template, 4, 3, "div", 3);
|
|
497
|
+
i0.ɵɵelementEnd();
|
|
498
|
+
}
|
|
499
|
+
if (rf & 2) {
|
|
500
|
+
const submenu_r12 = ctx.$implicit;
|
|
501
|
+
i0.ɵɵclassMap(submenu_r12.activated ? "menu selected" : "menu");
|
|
502
|
+
i0.ɵɵadvance(1);
|
|
503
|
+
i0.ɵɵproperty("ngIf", !submenu_r12.icon);
|
|
504
|
+
i0.ɵɵadvance(1);
|
|
505
|
+
i0.ɵɵproperty("ngIf", submenu_r12.icon);
|
|
506
|
+
i0.ɵɵadvance(1);
|
|
507
|
+
i0.ɵɵproperty("ngIf", submenu_r12.label);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_Template(rf, ctx) {
|
|
511
|
+
if (rf & 1) {
|
|
512
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
513
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template, 4, 5, "div", 12);
|
|
514
|
+
i0.ɵɵelementEnd();
|
|
515
|
+
}
|
|
516
|
+
if (rf & 2) {
|
|
517
|
+
const menu_r1 = i0.ɵɵnextContext().$implicit;
|
|
518
|
+
i0.ɵɵadvance(1);
|
|
519
|
+
i0.ɵɵproperty("ngForOf", menu_r1.childs);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
function CaucaMenuVerticalComponent_h4_0_Template(rf, ctx) {
|
|
523
|
+
if (rf & 1) {
|
|
524
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
525
|
+
i0.ɵɵelementStart(0, "h4")(1, "div", 1);
|
|
526
|
+
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); });
|
|
527
|
+
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_2_Template, 3, 2, "div", 2);
|
|
528
|
+
i0.ɵɵtemplate(3, CaucaMenuVerticalComponent_h4_0_div_3_Template, 4, 3, "div", 3);
|
|
529
|
+
i0.ɵɵelementEnd();
|
|
530
|
+
i0.ɵɵtemplate(4, CaucaMenuVerticalComponent_h4_0_div_4_Template, 2, 1, "div", 4);
|
|
531
|
+
i0.ɵɵelementEnd();
|
|
532
|
+
}
|
|
533
|
+
if (rf & 2) {
|
|
534
|
+
const menu_r1 = ctx.$implicit;
|
|
535
|
+
i0.ɵɵclassMap(menu_r1.activated ? "selected" : "");
|
|
536
|
+
i0.ɵɵadvance(2);
|
|
537
|
+
i0.ɵɵproperty("ngIf", menu_r1.icon);
|
|
538
|
+
i0.ɵɵadvance(1);
|
|
539
|
+
i0.ɵɵproperty("ngIf", menu_r1.label);
|
|
540
|
+
i0.ɵɵadvance(1);
|
|
541
|
+
i0.ɵɵproperty("ngIf", menu_r1.childs.length && menu_r1.activated);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
class CaucaMenuVerticalComponent {
|
|
545
|
+
constructor(router) {
|
|
546
|
+
this.router = router;
|
|
547
|
+
this.itemClick = new EventEmitter();
|
|
548
|
+
this.menuItems = [];
|
|
549
|
+
this.router.events.subscribe((route) => {
|
|
550
|
+
if (route instanceof NavigationEnd) {
|
|
551
|
+
this.selectActiveRoute(route);
|
|
552
|
+
}
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
ngOnInit() {
|
|
556
|
+
}
|
|
557
|
+
goTo(path, e) {
|
|
558
|
+
this.router.navigate([path]);
|
|
559
|
+
this.itemClick.emit();
|
|
560
|
+
e.stopPropagation();
|
|
561
|
+
}
|
|
562
|
+
selectActiveRoute(route) {
|
|
563
|
+
this.menuItems.forEach((menu) => {
|
|
564
|
+
if (route.url) {
|
|
565
|
+
menu.activated = (route.url === menu.path || (menu.childs.length && route.url.indexOf(menu.path) > -1));
|
|
566
|
+
}
|
|
567
|
+
menu.childs.forEach((subMenu) => {
|
|
568
|
+
if (route.url) {
|
|
569
|
+
subMenu.activated = (route.url === subMenu.path || route.urlAfterRedirects === subMenu.path);
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
CaucaMenuVerticalComponent.ɵfac = function CaucaMenuVerticalComponent_Factory(t) { return new (t || CaucaMenuVerticalComponent)(i0.ɵɵdirectiveInject(i1$3.Router)); };
|
|
576
|
+
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) {
|
|
577
|
+
if (rf & 1) {
|
|
578
|
+
i0.ɵɵtemplate(0, CaucaMenuVerticalComponent_h4_0_Template, 5, 5, "h4", 0);
|
|
579
|
+
}
|
|
580
|
+
if (rf & 2) {
|
|
581
|
+
i0.ɵɵproperty("ngForOf", ctx.menuItems);
|
|
582
|
+
}
|
|
583
|
+
}, directives: [i2.NgForOf, i2.NgIf, i3$1.FaIconComponent], pipes: [i1.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}"] });
|
|
584
|
+
(function () {
|
|
585
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuVerticalComponent, [{
|
|
586
|
+
type: Component,
|
|
587
|
+
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"] }]
|
|
588
|
+
}], function () { return [{ type: i1$3.Router }]; }, { itemClick: [{
|
|
589
|
+
type: Output
|
|
590
|
+
}], menuItems: [{
|
|
591
|
+
type: Input
|
|
592
|
+
}] });
|
|
593
|
+
})();
|
|
594
|
+
|
|
595
|
+
function CaucaMenuSidebarComponent_div_10_Template(rf, ctx) {
|
|
596
|
+
if (rf & 1) {
|
|
597
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
598
|
+
i0.ɵɵelementStart(0, "div", 4)(1, "div", 5);
|
|
599
|
+
i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_div_10_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.onToggleCollapse(); });
|
|
600
|
+
i0.ɵɵelementEnd();
|
|
601
|
+
i0.ɵɵelementStart(2, "span", 6);
|
|
602
|
+
i0.ɵɵtext(3);
|
|
603
|
+
i0.ɵɵpipe(4, "translate");
|
|
604
|
+
i0.ɵɵelementEnd();
|
|
605
|
+
i0.ɵɵelementStart(5, "span", 7);
|
|
606
|
+
i0.ɵɵtext(6);
|
|
607
|
+
i0.ɵɵelementEnd()();
|
|
608
|
+
}
|
|
609
|
+
if (rf & 2) {
|
|
610
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
611
|
+
i0.ɵɵadvance(3);
|
|
612
|
+
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(4, 3, "material.version"), " ", ctx_r1.version, "");
|
|
613
|
+
i0.ɵɵadvance(3);
|
|
614
|
+
i0.ɵɵtextInterpolate(ctx_r1.version);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
const _c0$1 = [[["", "header", ""]], [["", "beforeMenu", ""]], [["", "afterMenu", ""]]];
|
|
618
|
+
const _c1 = ["[header]", "[beforeMenu]", "[afterMenu]"];
|
|
619
|
+
class CaucaMenuSidebarComponent {
|
|
620
|
+
constructor(element) {
|
|
621
|
+
this.menuItems = [];
|
|
622
|
+
this.version = '';
|
|
623
|
+
this.keepMenuExpanded = false;
|
|
624
|
+
this.hostElement = element.nativeElement;
|
|
625
|
+
this.hostElement.addEventListener('mouseover', (e) => this.onMouseOver(e));
|
|
626
|
+
this.hostElement.addEventListener('mouseout', (e) => this.onMouseOut(e));
|
|
627
|
+
this.setDisplayMenu();
|
|
628
|
+
}
|
|
629
|
+
onResize(e) {
|
|
630
|
+
this.setDisplayMenu();
|
|
631
|
+
}
|
|
632
|
+
ngOnInit() {
|
|
633
|
+
}
|
|
634
|
+
onMenuItemClick() {
|
|
635
|
+
if (window.innerWidth < 1000) {
|
|
636
|
+
this.hideOnMobile();
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
hideOnMobile() {
|
|
640
|
+
this.hostElement.classList.remove('mobile');
|
|
641
|
+
this.hostElement.classList.add('hidden');
|
|
642
|
+
}
|
|
643
|
+
showOnMobile() {
|
|
644
|
+
this.hostElement.classList.remove('hidden');
|
|
645
|
+
this.hostElement.classList.add('mobile');
|
|
646
|
+
}
|
|
647
|
+
onToggleCollapse() {
|
|
648
|
+
if (this.keepMenuExpanded) {
|
|
649
|
+
this.onCollapseMenu();
|
|
650
|
+
this.hostElement.classList.remove('keepExpanded');
|
|
651
|
+
}
|
|
652
|
+
else {
|
|
653
|
+
this.onExpandedMenu();
|
|
654
|
+
this.hostElement.classList.add('keepExpanded');
|
|
655
|
+
}
|
|
656
|
+
this.keepMenuExpanded = !this.keepMenuExpanded;
|
|
657
|
+
localStorage.setItem('cauca-menu-status', this.keepMenuExpanded ? 'expanded' : 'collapsed');
|
|
658
|
+
}
|
|
659
|
+
setDisplayMenu() {
|
|
660
|
+
this.hostElement.className = '';
|
|
661
|
+
if (window.innerWidth < 1000) {
|
|
662
|
+
this.hostElement.classList.add('hidden');
|
|
663
|
+
}
|
|
664
|
+
else {
|
|
665
|
+
if (localStorage.getItem('cauca-menu-status') === 'expanded') {
|
|
666
|
+
this.keepMenuExpanded = true;
|
|
667
|
+
this.hostElement.classList.add('keepExpanded');
|
|
668
|
+
}
|
|
669
|
+
this.hostElement.classList.add(this.keepMenuExpanded ? 'expanded' : 'collapsed');
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
onMouseOver(e) {
|
|
673
|
+
if (!this.keepMenuExpanded) {
|
|
674
|
+
this.onExpandedMenu();
|
|
675
|
+
}
|
|
676
|
+
e.stopPropagation();
|
|
677
|
+
}
|
|
678
|
+
onMouseOut(e) {
|
|
679
|
+
if (!this.keepMenuExpanded) {
|
|
680
|
+
this.onCollapseMenu();
|
|
681
|
+
}
|
|
682
|
+
e.stopPropagation();
|
|
683
|
+
}
|
|
684
|
+
onExpandedMenu() {
|
|
685
|
+
if (window.innerWidth >= 1000) {
|
|
686
|
+
this.hostElement.classList.remove('collapsed');
|
|
687
|
+
this.hostElement.classList.add('expanded');
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
onCollapseMenu() {
|
|
691
|
+
if (window.innerWidth >= 1000) {
|
|
692
|
+
this.hostElement.classList.remove('expanded');
|
|
693
|
+
this.hostElement.classList.add('collapsed');
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
CaucaMenuSidebarComponent.ɵfac = function CaucaMenuSidebarComponent_Factory(t) { return new (t || CaucaMenuSidebarComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
698
|
+
CaucaMenuSidebarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuSidebarComponent, selectors: [["cauca-menu-sidebar"]], hostBindings: function CaucaMenuSidebarComponent_HostBindings(rf, ctx) {
|
|
699
|
+
if (rf & 1) {
|
|
700
|
+
i0.ɵɵlistener("resize", function CaucaMenuSidebarComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
|
|
701
|
+
}
|
|
702
|
+
}, inputs: { menuItems: "menuItems", version: "version" }, ngContentSelectors: _c1, decls: 11, vars: 2, consts: [["mat-icon-button", "", 1, "close", 3, "click"], [3, "menuItems", "itemClick"], ["menu", ""], ["class", "version", 4, "ngIf"], [1, "version"], [1, "double-arrow", 3, "click"], [1, "full"], [1, "abbr"]], template: function CaucaMenuSidebarComponent_Template(rf, ctx) {
|
|
703
|
+
if (rf & 1) {
|
|
704
|
+
i0.ɵɵprojectionDef(_c0$1);
|
|
705
|
+
i0.ɵɵelementStart(0, "div")(1, "button", 0);
|
|
706
|
+
i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_Template_button_click_1_listener() { return ctx.hideOnMobile(); });
|
|
707
|
+
i0.ɵɵelementStart(2, "mat-icon");
|
|
708
|
+
i0.ɵɵtext(3, "clear");
|
|
709
|
+
i0.ɵɵelementEnd()();
|
|
710
|
+
i0.ɵɵprojection(4);
|
|
711
|
+
i0.ɵɵelementEnd();
|
|
712
|
+
i0.ɵɵelementStart(5, "div");
|
|
713
|
+
i0.ɵɵprojection(6, 1);
|
|
714
|
+
i0.ɵɵelementStart(7, "cauca-menu-vertical", 1, 2);
|
|
715
|
+
i0.ɵɵlistener("itemClick", function CaucaMenuSidebarComponent_Template_cauca_menu_vertical_itemClick_7_listener() { return ctx.onMenuItemClick(); });
|
|
716
|
+
i0.ɵɵelementEnd();
|
|
717
|
+
i0.ɵɵprojection(9, 2);
|
|
718
|
+
i0.ɵɵelementEnd();
|
|
719
|
+
i0.ɵɵtemplate(10, CaucaMenuSidebarComponent_div_10_Template, 7, 5, "div", 3);
|
|
720
|
+
}
|
|
721
|
+
if (rf & 2) {
|
|
722
|
+
i0.ɵɵadvance(7);
|
|
723
|
+
i0.ɵɵproperty("menuItems", ctx.menuItems);
|
|
724
|
+
i0.ɵɵadvance(3);
|
|
725
|
+
i0.ɵɵproperty("ngIf", ctx.version);
|
|
726
|
+
}
|
|
727
|
+
}, directives: [i3.MatButton, i5.MatIcon, CaucaMenuVerticalComponent, i2.NgIf], pipes: [i1.TranslatePipe], styles: ["[_nghost-%COMP%]{height:100%;flex-direction:column;display:flex;transition:all .1s ease-out;overflow:hidden;scrollbar-width:5px;scrollbar-color:rgba(0,0,0,.1) rgba(0,0,0,.2)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-radius:5px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.1)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:5px;background-color:#0003;outline:1px solid slategrey}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{flex:0 0 auto}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){flex-grow:1;overflow:hidden auto}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child{max-height:1em}.hidden[_nghost-%COMP%]{width:0;min-width:0;max-width:0}.mobile[_nghost-%COMP%]{width:275px;min-width:275px;max-width:275px;position:absolute;z-index:10}.collapsed[_nghost-%COMP%]{width:75px;min-width:75px;max-width:75px}.expanded[_nghost-%COMP%]{width:275px;min-width:275px;max-width:275px}[_nghost-%COMP%] .close[_ngcontent-%COMP%]{display:none}.mobile[_nghost-%COMP%] .close[_ngcontent-%COMP%]{right:0;display:inline-block;position:absolute}.double-arrow[_ngcontent-%COMP%]{height:3em;line-height:3em;cursor:pointer;position:fixed;opacity:.25;margin-top:-1em}.double-arrow[_ngcontent-%COMP%]:hover{opacity:1}.expanded[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]:before, .collapsed[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]:before{font-family:Material Icons;content:\"double_arrow\";font-size:3em;text-align:right}.collapsed[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]{margin-left:10px}.expanded[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]{margin-left:200px}.collapsed[_nghost-%COMP%] .menu-caption, .collapsed[_nghost-%COMP%] .submenu{display:none}.keepExpanded[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]{transform:rotate(180deg);opacity:1}.version[_ngcontent-%COMP%]{bottom:0;padding:1em}.full[_ngcontent-%COMP%], .abbr[_ngcontent-%COMP%]{display:none}.collapsed[_nghost-%COMP%] .abbr[_ngcontent-%COMP%]{display:inline}.mobile[_nghost-%COMP%] .full[_ngcontent-%COMP%], .expanded[_nghost-%COMP%] .full[_ngcontent-%COMP%]{display:inline}@media only screen and (max-width: 1000px){.double-arrow[_ngcontent-%COMP%]{display:none}}"] });
|
|
728
|
+
(function () {
|
|
729
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuSidebarComponent, [{
|
|
730
|
+
type: Component,
|
|
731
|
+
args: [{ selector: 'cauca-menu-sidebar', template: "<div>\n <button mat-icon-button class=\"close\" (click)=\"hideOnMobile()\">\n <mat-icon>clear</mat-icon>\n </button>\n <ng-content select=\"[header]\"></ng-content>\n</div>\n<div>\n <ng-content select=\"[beforeMenu]\"></ng-content>\n <cauca-menu-vertical #menu [menuItems]=\"menuItems\" (itemClick)=\"onMenuItemClick()\"></cauca-menu-vertical>\n <ng-content select=\"[afterMenu]\"></ng-content>\n</div>\n<div *ngIf=\"version\" class=\"version\">\n <div class=\"double-arrow\" (click)=\"onToggleCollapse()\"></div>\n <span class=\"full\">{{'material.version' | translate}} {{version}}</span>\n <span class=\"abbr\">{{version}}</span>\n</div>\n", styles: [":host{height:100%;flex-direction:column;display:flex;transition:all .1s ease-out;overflow:hidden;scrollbar-width:5px;scrollbar-color:rgba(0,0,0,.1) rgba(0,0,0,.2)}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{border-radius:5px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.1)}::-webkit-scrollbar-thumb{border-radius:5px;background-color:#0003;outline:1px solid slategrey}:host>div{flex:1}:host>div:first-child{flex:0 0 auto}:host>div:nth-child(2){flex-grow:1;overflow:hidden auto}:host>div:last-child{max-height:1em}:host.hidden{width:0;min-width:0;max-width:0}:host.mobile{width:275px;min-width:275px;max-width:275px;position:absolute;z-index:10}:host.collapsed{width:75px;min-width:75px;max-width:75px}:host.expanded{width:275px;min-width:275px;max-width:275px}:host .close{display:none}:host.mobile .close{right:0;display:inline-block;position:absolute}.double-arrow{height:3em;line-height:3em;cursor:pointer;position:fixed;opacity:.25;margin-top:-1em}.double-arrow:hover{opacity:1}:host.expanded .double-arrow:before,:host.collapsed .double-arrow:before{font-family:Material Icons;content:\"double_arrow\";font-size:3em;text-align:right}:host.collapsed .double-arrow{margin-left:10px}:host.expanded .double-arrow{margin-left:200px}:host.collapsed ::ng-deep .menu-caption,:host.collapsed ::ng-deep .submenu{display:none}:host.keepExpanded .double-arrow{transform:rotate(180deg);opacity:1}.version{bottom:0;padding:1em}.full,.abbr{display:none}:host.collapsed .abbr{display:inline}:host.mobile .full,:host.expanded .full{display:inline}@media only screen and (max-width: 1000px){.double-arrow{display:none}}\n"] }]
|
|
732
|
+
}], function () { return [{ type: i0.ElementRef }]; }, { menuItems: [{
|
|
733
|
+
type: Input
|
|
734
|
+
}], version: [{
|
|
735
|
+
type: Input
|
|
736
|
+
}], onResize: [{
|
|
737
|
+
type: HostListener,
|
|
738
|
+
args: ['window:resize', ['$event']]
|
|
739
|
+
}] });
|
|
740
|
+
})();
|
|
741
|
+
|
|
742
|
+
const _c0 = ["container"];
|
|
743
|
+
function CaucaSlideshowComponent_div_2_Template(rf, ctx) {
|
|
744
|
+
if (rf & 1) {
|
|
745
|
+
i0.ɵɵelementStart(0, "div");
|
|
746
|
+
i0.ɵɵelement(1, "img", 3);
|
|
747
|
+
i0.ɵɵelementEnd();
|
|
748
|
+
}
|
|
749
|
+
if (rf & 2) {
|
|
750
|
+
const url_r2 = ctx.$implicit;
|
|
751
|
+
const index_r3 = ctx.index;
|
|
752
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
753
|
+
i0.ɵɵproperty("@slideLeftRight", ctx_r1.getState(index_r3));
|
|
754
|
+
i0.ɵɵadvance(1);
|
|
755
|
+
i0.ɵɵproperty("src", url_r2, i0.ɵɵsanitizeUrl);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
class CaucaSlideshowComponent {
|
|
759
|
+
constructor() {
|
|
760
|
+
this.height = '150px';
|
|
761
|
+
this.autoPlay = true;
|
|
762
|
+
this.timer = null;
|
|
763
|
+
this.items = [];
|
|
764
|
+
this.states = [];
|
|
765
|
+
this.selectedIndex = 0;
|
|
766
|
+
}
|
|
767
|
+
set images(list) {
|
|
768
|
+
this.items = list;
|
|
769
|
+
this.restart();
|
|
770
|
+
}
|
|
771
|
+
get images() {
|
|
772
|
+
return this.items;
|
|
773
|
+
}
|
|
774
|
+
ngOnInit() {
|
|
775
|
+
this.container.nativeElement.style.height = this.height;
|
|
776
|
+
this.container.nativeElement.style.width = '100%';
|
|
777
|
+
}
|
|
778
|
+
getState(index) {
|
|
779
|
+
if (this.states[index]) {
|
|
780
|
+
return this.states[index];
|
|
781
|
+
}
|
|
782
|
+
return (this.selectedIndex === index ? 'in' : 'out');
|
|
783
|
+
}
|
|
784
|
+
restart() {
|
|
785
|
+
if (this.timer) {
|
|
786
|
+
window.clearInterval(this.timer);
|
|
787
|
+
}
|
|
788
|
+
if (this.images && this.images.length) {
|
|
789
|
+
this.timer = window.setInterval(() => this.changed('next'), 5000);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
next() {
|
|
793
|
+
if (this.selectedIndex < this.items.length - 1) {
|
|
794
|
+
this.selectedIndex++;
|
|
795
|
+
}
|
|
796
|
+
else {
|
|
797
|
+
this.selectedIndex = 0;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
changed(action) {
|
|
801
|
+
this.states[this.selectedIndex] = 'out';
|
|
802
|
+
this[action]();
|
|
803
|
+
this.states[this.selectedIndex] = 'in';
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
CaucaSlideshowComponent.ɵfac = function CaucaSlideshowComponent_Factory(t) { return new (t || CaucaSlideshowComponent)(); };
|
|
807
|
+
CaucaSlideshowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSlideshowComponent, selectors: [["cauca-slideshow"]], viewQuery: function CaucaSlideshowComponent_Query(rf, ctx) {
|
|
808
|
+
if (rf & 1) {
|
|
809
|
+
i0.ɵɵviewQuery(_c0, 7);
|
|
810
|
+
}
|
|
811
|
+
if (rf & 2) {
|
|
812
|
+
let _t;
|
|
813
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
814
|
+
}
|
|
815
|
+
}, inputs: { height: "height", autoPlay: "autoPlay", images: "images" }, decls: 3, vars: 1, consts: [[1, "slideshow"], ["container", ""], [4, "ngFor", "ngForOf"], [3, "src"]], template: function CaucaSlideshowComponent_Template(rf, ctx) {
|
|
816
|
+
if (rf & 1) {
|
|
817
|
+
i0.ɵɵelementStart(0, "div", 0, 1);
|
|
818
|
+
i0.ɵɵtemplate(2, CaucaSlideshowComponent_div_2_Template, 2, 2, "div", 2);
|
|
819
|
+
i0.ɵɵelementEnd();
|
|
820
|
+
}
|
|
821
|
+
if (rf & 2) {
|
|
822
|
+
i0.ɵɵadvance(2);
|
|
823
|
+
i0.ɵɵproperty("ngForOf", ctx.images);
|
|
824
|
+
}
|
|
825
|
+
}, directives: [i2.NgForOf], styles: [".slideshow[_ngcontent-%COMP%]{margin:0 auto;position:relative;overflow:hidden}.slideshow[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute}img[_ngcontent-%COMP%]{max-height:100%;max-width:100%;margin:0 auto;display:block}"], data: { animation: [
|
|
826
|
+
trigger('slideUpDown', [
|
|
827
|
+
state('in', style({ transform: 'translateY(0%)' })),
|
|
828
|
+
state('out', style({ transform: 'translateY(-100%)' })),
|
|
829
|
+
transition('in => out', [
|
|
830
|
+
animate('500ms ease-in')
|
|
831
|
+
]),
|
|
832
|
+
transition('out => in', [
|
|
833
|
+
style({ transform: 'translateY(100%)' }),
|
|
834
|
+
animate('500ms ease-in')
|
|
835
|
+
]),
|
|
836
|
+
]),
|
|
837
|
+
trigger('slideLeftRight', [
|
|
838
|
+
state('in', style({ transform: 'translateX(0%)' })),
|
|
839
|
+
state('out', style({ transform: 'translateX(-100%)' })),
|
|
840
|
+
transition('in => out', [
|
|
841
|
+
animate('500ms ease-in')
|
|
842
|
+
]),
|
|
843
|
+
transition('out => in', [
|
|
844
|
+
style({ transform: 'translateX(100%)' }),
|
|
845
|
+
animate('500ms ease-in')
|
|
846
|
+
]),
|
|
847
|
+
]),
|
|
848
|
+
] } });
|
|
849
|
+
(function () {
|
|
850
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSlideshowComponent, [{
|
|
851
|
+
type: Component,
|
|
852
|
+
args: [{ selector: 'cauca-slideshow', animations: [
|
|
853
|
+
trigger('slideUpDown', [
|
|
854
|
+
state('in', style({ transform: 'translateY(0%)' })),
|
|
855
|
+
state('out', style({ transform: 'translateY(-100%)' })),
|
|
856
|
+
transition('in => out', [
|
|
857
|
+
animate('500ms ease-in')
|
|
858
|
+
]),
|
|
859
|
+
transition('out => in', [
|
|
860
|
+
style({ transform: 'translateY(100%)' }),
|
|
861
|
+
animate('500ms ease-in')
|
|
862
|
+
]),
|
|
863
|
+
]),
|
|
864
|
+
trigger('slideLeftRight', [
|
|
865
|
+
state('in', style({ transform: 'translateX(0%)' })),
|
|
866
|
+
state('out', style({ transform: 'translateX(-100%)' })),
|
|
867
|
+
transition('in => out', [
|
|
868
|
+
animate('500ms ease-in')
|
|
869
|
+
]),
|
|
870
|
+
transition('out => in', [
|
|
871
|
+
style({ transform: 'translateX(100%)' }),
|
|
872
|
+
animate('500ms ease-in')
|
|
873
|
+
]),
|
|
874
|
+
]),
|
|
875
|
+
], template: "<div #container class=\"slideshow\">\n <div *ngFor=\"let url of images; let index = index;\" [@slideLeftRight]=\"getState(index)\">\n <img [src]=\"url\" />\n </div>\n</div>", styles: [".slideshow{margin:0 auto;position:relative;overflow:hidden}.slideshow>div{width:100%;height:100%;position:absolute}img{max-height:100%;max-width:100%;margin:0 auto;display:block}\n"] }]
|
|
876
|
+
}], function () { return []; }, { container: [{
|
|
877
|
+
type: ViewChild,
|
|
878
|
+
args: ['container', { static: true }]
|
|
879
|
+
}], height: [{
|
|
880
|
+
type: Input
|
|
881
|
+
}], autoPlay: [{
|
|
882
|
+
type: Input
|
|
883
|
+
}], images: [{
|
|
884
|
+
type: Input
|
|
885
|
+
}] });
|
|
886
|
+
})();
|
|
887
|
+
|
|
888
|
+
class CaucaMaterialModule {
|
|
889
|
+
}
|
|
890
|
+
CaucaMaterialModule.ɵfac = function CaucaMaterialModule_Factory(t) { return new (t || CaucaMaterialModule)(); };
|
|
891
|
+
CaucaMaterialModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CaucaMaterialModule });
|
|
892
|
+
CaucaMaterialModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[
|
|
893
|
+
CommonModule,
|
|
894
|
+
CaucaCoreForChildModule,
|
|
895
|
+
FontAwesomeModule,
|
|
896
|
+
FormsModule,
|
|
897
|
+
ReactiveFormsModule,
|
|
898
|
+
MatButtonModule,
|
|
899
|
+
MatFormFieldModule,
|
|
900
|
+
MatIconModule,
|
|
901
|
+
MatInputModule,
|
|
902
|
+
MatTabsModule,
|
|
903
|
+
]] });
|
|
904
|
+
(function () {
|
|
905
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialModule, [{
|
|
906
|
+
type: NgModule,
|
|
907
|
+
args: [{
|
|
908
|
+
declarations: [
|
|
909
|
+
CaucaMaterialComponent,
|
|
910
|
+
CaucaInputFileComponent,
|
|
911
|
+
CaucaInputMultipleLangueComponent,
|
|
912
|
+
CaucaMenuSidebarComponent,
|
|
913
|
+
CaucaMenuVerticalComponent,
|
|
914
|
+
CaucaSimpleDialogComponent,
|
|
915
|
+
CaucaSlideshowComponent,
|
|
916
|
+
],
|
|
917
|
+
imports: [
|
|
918
|
+
CommonModule,
|
|
919
|
+
CaucaCoreForChildModule,
|
|
920
|
+
FontAwesomeModule,
|
|
921
|
+
FormsModule,
|
|
922
|
+
ReactiveFormsModule,
|
|
923
|
+
MatButtonModule,
|
|
924
|
+
MatFormFieldModule,
|
|
925
|
+
MatIconModule,
|
|
926
|
+
MatInputModule,
|
|
927
|
+
MatTabsModule,
|
|
928
|
+
],
|
|
929
|
+
exports: [
|
|
930
|
+
CaucaMaterialComponent,
|
|
931
|
+
CaucaInputFileComponent,
|
|
932
|
+
CaucaInputMultipleLangueComponent,
|
|
933
|
+
CaucaMenuSidebarComponent,
|
|
934
|
+
CaucaMenuVerticalComponent,
|
|
935
|
+
CaucaSimpleDialogComponent,
|
|
936
|
+
CaucaSlideshowComponent,
|
|
937
|
+
]
|
|
938
|
+
}]
|
|
939
|
+
}], null, null);
|
|
940
|
+
})();
|
|
941
|
+
(function () {
|
|
942
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CaucaMaterialModule, { declarations: [CaucaMaterialComponent,
|
|
943
|
+
CaucaInputFileComponent,
|
|
944
|
+
CaucaInputMultipleLangueComponent,
|
|
945
|
+
CaucaMenuSidebarComponent,
|
|
946
|
+
CaucaMenuVerticalComponent,
|
|
947
|
+
CaucaSimpleDialogComponent,
|
|
948
|
+
CaucaSlideshowComponent], imports: [CommonModule,
|
|
949
|
+
CaucaCoreForChildModule,
|
|
950
|
+
FontAwesomeModule,
|
|
951
|
+
FormsModule,
|
|
952
|
+
ReactiveFormsModule,
|
|
953
|
+
MatButtonModule,
|
|
954
|
+
MatFormFieldModule,
|
|
955
|
+
MatIconModule,
|
|
956
|
+
MatInputModule,
|
|
957
|
+
MatTabsModule], exports: [CaucaMaterialComponent,
|
|
958
|
+
CaucaInputFileComponent,
|
|
959
|
+
CaucaInputMultipleLangueComponent,
|
|
960
|
+
CaucaMenuSidebarComponent,
|
|
961
|
+
CaucaMenuVerticalComponent,
|
|
962
|
+
CaucaSimpleDialogComponent,
|
|
963
|
+
CaucaSlideshowComponent] });
|
|
964
|
+
})();
|
|
965
|
+
|
|
966
|
+
class MenuItem {
|
|
967
|
+
constructor(label, path, icon = '') {
|
|
968
|
+
this.label = label;
|
|
969
|
+
this.path = path;
|
|
970
|
+
this.icon = icon;
|
|
971
|
+
this.childs = [];
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/*
|
|
976
|
+
* Public API Surface of cauca-material
|
|
977
|
+
*/
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Generated bundle index. Do not edit.
|
|
981
|
+
*/
|
|
982
|
+
|
|
983
|
+
export { CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialModule, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, MenuItem };
|
|
984
|
+
//# sourceMappingURL=cauca-911-material.mjs.map
|