@cauca-911/material 14.0.2 → 16.0.0
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/{esm2020 → esm2022}/lib/cauca-input-file/cauca-input-file.component.mjs +24 -24
- package/{esm2020 → esm2022}/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +13 -13
- package/{esm2020 → esm2022}/lib/cauca-material.component.mjs +11 -11
- package/{esm2020 → esm2022}/lib/cauca-material.module.mjs +13 -13
- package/{esm2020 → esm2022}/lib/cauca-material.service.mjs +3 -3
- package/{esm2020 → esm2022}/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.mjs +30 -30
- package/{esm2020 → esm2022}/lib/cauca-menu-vertical/cauca-menu-vertical.component.mjs +7 -7
- package/{esm2020 → esm2022}/lib/cauca-simple-dialog/cauca-simple-dialog.component.mjs +18 -18
- package/esm2022/lib/cauca-slideshow/cauca-slideshow.component.mjs +139 -0
- package/{fesm2020 → fesm2022}/cauca-911-material.mjs +147 -147
- package/fesm2022/cauca-911-material.mjs.map +1 -0
- package/lib/cauca-input-file/cauca-input-file.component.d.ts +1 -1
- package/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.d.ts +1 -1
- package/lib/cauca-material.component.d.ts +1 -1
- package/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.d.ts +1 -1
- package/lib/cauca-menu-vertical/cauca-menu-vertical.component.d.ts +1 -1
- package/lib/cauca-simple-dialog/cauca-simple-dialog.component.d.ts +1 -1
- package/lib/cauca-slideshow/cauca-slideshow.component.d.ts +1 -1
- package/package.json +12 -18
- package/esm2020/lib/cauca-slideshow/cauca-slideshow.component.mjs +0 -139
- package/fesm2015/cauca-911-material.mjs +0 -985
- package/fesm2015/cauca-911-material.mjs.map +0 -1
- package/fesm2020/cauca-911-material.mjs.map +0 -1
- /package/{esm2020 → esm2022}/cauca-911-material.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/shared/models/menu-item.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/shared/models/simple-dialog-data.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Component, Input, ViewChild } from '@angular/core';
|
|
2
|
+
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
const _c0 = ["container"];
|
|
6
|
+
function CaucaSlideshowComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
+
i0.ɵɵelementStart(0, "div");
|
|
8
|
+
i0.ɵɵelement(1, "img", 3);
|
|
9
|
+
i0.ɵɵelementEnd();
|
|
10
|
+
} if (rf & 2) {
|
|
11
|
+
const url_r2 = ctx.$implicit;
|
|
12
|
+
const index_r3 = ctx.index;
|
|
13
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
14
|
+
i0.ɵɵproperty("@slideLeftRight", ctx_r1.getState(index_r3));
|
|
15
|
+
i0.ɵɵadvance(1);
|
|
16
|
+
i0.ɵɵproperty("src", url_r2, i0.ɵɵsanitizeUrl);
|
|
17
|
+
} }
|
|
18
|
+
export class CaucaSlideshowComponent {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.height = '150px';
|
|
21
|
+
this.autoPlay = true;
|
|
22
|
+
this.timer = null;
|
|
23
|
+
this.items = [];
|
|
24
|
+
this.states = [];
|
|
25
|
+
this.selectedIndex = 0;
|
|
26
|
+
}
|
|
27
|
+
set images(list) {
|
|
28
|
+
this.items = list;
|
|
29
|
+
this.restart();
|
|
30
|
+
}
|
|
31
|
+
get images() {
|
|
32
|
+
return this.items;
|
|
33
|
+
}
|
|
34
|
+
ngOnInit() {
|
|
35
|
+
this.container.nativeElement.style.height = this.height;
|
|
36
|
+
this.container.nativeElement.style.width = '100%';
|
|
37
|
+
}
|
|
38
|
+
getState(index) {
|
|
39
|
+
if (this.states[index]) {
|
|
40
|
+
return this.states[index];
|
|
41
|
+
}
|
|
42
|
+
return (this.selectedIndex === index ? 'in' : 'out');
|
|
43
|
+
}
|
|
44
|
+
restart() {
|
|
45
|
+
if (this.timer) {
|
|
46
|
+
window.clearInterval(this.timer);
|
|
47
|
+
}
|
|
48
|
+
if (this.images && this.images.length) {
|
|
49
|
+
this.timer = window.setInterval(() => this.changed('next'), 5000);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
next() {
|
|
53
|
+
if (this.selectedIndex < this.items.length - 1) {
|
|
54
|
+
this.selectedIndex++;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.selectedIndex = 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
changed(action) {
|
|
61
|
+
this.states[this.selectedIndex] = 'out';
|
|
62
|
+
this[action]();
|
|
63
|
+
this.states[this.selectedIndex] = 'in';
|
|
64
|
+
}
|
|
65
|
+
static { this.ɵfac = function CaucaSlideshowComponent_Factory(t) { return new (t || CaucaSlideshowComponent)(); }; }
|
|
66
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSlideshowComponent, selectors: [["cauca-slideshow"]], viewQuery: function CaucaSlideshowComponent_Query(rf, ctx) { if (rf & 1) {
|
|
67
|
+
i0.ɵɵviewQuery(_c0, 7);
|
|
68
|
+
} if (rf & 2) {
|
|
69
|
+
let _t;
|
|
70
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
71
|
+
} }, 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) { if (rf & 1) {
|
|
72
|
+
i0.ɵɵelementStart(0, "div", 0, 1);
|
|
73
|
+
i0.ɵɵtemplate(2, CaucaSlideshowComponent_div_2_Template, 2, 2, "div", 2);
|
|
74
|
+
i0.ɵɵelementEnd();
|
|
75
|
+
} if (rf & 2) {
|
|
76
|
+
i0.ɵɵadvance(2);
|
|
77
|
+
i0.ɵɵproperty("ngForOf", ctx.images);
|
|
78
|
+
} }, dependencies: [i1.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: [
|
|
79
|
+
trigger('slideUpDown', [
|
|
80
|
+
state('in', style({ transform: 'translateY(0%)' })),
|
|
81
|
+
state('out', style({ transform: 'translateY(-100%)' })),
|
|
82
|
+
transition('in => out', [
|
|
83
|
+
animate('500ms ease-in')
|
|
84
|
+
]),
|
|
85
|
+
transition('out => in', [
|
|
86
|
+
style({ transform: 'translateY(100%)' }),
|
|
87
|
+
animate('500ms ease-in')
|
|
88
|
+
]),
|
|
89
|
+
]),
|
|
90
|
+
trigger('slideLeftRight', [
|
|
91
|
+
state('in', style({ transform: 'translateX(0%)' })),
|
|
92
|
+
state('out', style({ transform: 'translateX(-100%)' })),
|
|
93
|
+
transition('in => out', [
|
|
94
|
+
animate('500ms ease-in')
|
|
95
|
+
]),
|
|
96
|
+
transition('out => in', [
|
|
97
|
+
style({ transform: 'translateX(100%)' }),
|
|
98
|
+
animate('500ms ease-in')
|
|
99
|
+
]),
|
|
100
|
+
]),
|
|
101
|
+
] } }); }
|
|
102
|
+
}
|
|
103
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSlideshowComponent, [{
|
|
104
|
+
type: Component,
|
|
105
|
+
args: [{ selector: 'cauca-slideshow', animations: [
|
|
106
|
+
trigger('slideUpDown', [
|
|
107
|
+
state('in', style({ transform: 'translateY(0%)' })),
|
|
108
|
+
state('out', style({ transform: 'translateY(-100%)' })),
|
|
109
|
+
transition('in => out', [
|
|
110
|
+
animate('500ms ease-in')
|
|
111
|
+
]),
|
|
112
|
+
transition('out => in', [
|
|
113
|
+
style({ transform: 'translateY(100%)' }),
|
|
114
|
+
animate('500ms ease-in')
|
|
115
|
+
]),
|
|
116
|
+
]),
|
|
117
|
+
trigger('slideLeftRight', [
|
|
118
|
+
state('in', style({ transform: 'translateX(0%)' })),
|
|
119
|
+
state('out', style({ transform: 'translateX(-100%)' })),
|
|
120
|
+
transition('in => out', [
|
|
121
|
+
animate('500ms ease-in')
|
|
122
|
+
]),
|
|
123
|
+
transition('out => in', [
|
|
124
|
+
style({ transform: 'translateX(100%)' }),
|
|
125
|
+
animate('500ms ease-in')
|
|
126
|
+
]),
|
|
127
|
+
]),
|
|
128
|
+
], 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"] }]
|
|
129
|
+
}], function () { return []; }, { container: [{
|
|
130
|
+
type: ViewChild,
|
|
131
|
+
args: ['container', { static: true }]
|
|
132
|
+
}], height: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], autoPlay: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], images: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}] }); })();
|
|
139
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F1Y2Etc2xpZGVzaG93LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhdWNhLW1hdGVyaWFsL3NyYy9saWIvY2F1Y2Etc2xpZGVzaG93L2NhdWNhLXNsaWRlc2hvdy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYXVjYS1tYXRlcmlh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gd2luZG93LnNldEludGVydmFsKCgpID0+IHRoaXMuY2hhbmdlZCgnbmV4dCcpLCA1MDAwKTtcbiAgICB9XG4gIH1cblxuICBwdWJsaWMgbmV4dCgpOiB2b2lkIHtcbiAgICBpZiAodGhpcy5zZWxlY3RlZEluZGV4IDwgdGhpcy5pdGVtcy5sZW5ndGggLSAxKSB7XG4gICAgICB0aGlzLnNlbGVjdGVkSW5kZXgrKztcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5zZWxlY3RlZEluZGV4ID0gMDtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIGNoYW5nZWQoYWN0aW9uOiBzdHJpbmcpOiB2b2lkIHtcbiAgICB0aGlzLnN0YXRlc1t0aGlzLnNlbGVjdGVkSW5kZXhdID0gJ291dCc7XG4gICAgdGhpc1thY3Rpb25dKCk7XG4gICAgdGhpcy5zdGF0ZXNbdGhpcy5zZWxlY3RlZEluZGV4XSA9ICdpbic7XG4gIH1cbn1cbiIsIjxkaXYgI2NvbnRhaW5lciBjbGFzcz1cInNsaWRlc2hvd1wiPlxuICA8ZGl2ICpuZ0Zvcj1cImxldCB1cmwgb2YgaW1hZ2VzOyBsZXQgaW5kZXggPSBpbmRleDtcIiBbQHNsaWRlTGVmdFJpZ2h0XT1cImdldFN0YXRlKGluZGV4KVwiPlxuICAgIDxpbWcgW3NyY109XCJ1cmxcIiAvPlxuICA8L2Rpdj5cbjwvZGl2PiJdfQ==
|
|
@@ -27,9 +27,9 @@ import { trigger, state, style, transition, animate } from '@angular/animations'
|
|
|
27
27
|
|
|
28
28
|
class CaucaMaterialService {
|
|
29
29
|
constructor() { }
|
|
30
|
+
static { this.ɵfac = function CaucaMaterialService_Factory(t) { return new (t || CaucaMaterialService)(); }; }
|
|
31
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaucaMaterialService, factory: CaucaMaterialService.ɵfac, providedIn: 'root' }); }
|
|
30
32
|
}
|
|
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
33
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialService, [{
|
|
34
34
|
type: Injectable,
|
|
35
35
|
args: [{
|
|
@@ -41,17 +41,17 @@ class CaucaMaterialComponent {
|
|
|
41
41
|
constructor() { }
|
|
42
42
|
ngOnInit() {
|
|
43
43
|
}
|
|
44
|
+
static { this.ɵfac = function CaucaMaterialComponent_Factory(t) { return new (t || CaucaMaterialComponent)(); }; }
|
|
45
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMaterialComponent, selectors: [["cauca-material"]], decls: 3, vars: 3, template: function CaucaMaterialComponent_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
+
i0.ɵɵelementStart(0, "div");
|
|
47
|
+
i0.ɵɵtext(1);
|
|
48
|
+
i0.ɵɵpipe(2, "translate");
|
|
49
|
+
i0.ɵɵelementEnd();
|
|
50
|
+
} if (rf & 2) {
|
|
51
|
+
i0.ɵɵadvance(1);
|
|
52
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "core.noGenericComponentOnThisLibrary"));
|
|
53
|
+
} }, dependencies: [i1.TranslatePipe], encapsulation: 2 }); }
|
|
44
54
|
}
|
|
45
|
-
CaucaMaterialComponent.ɵfac = function CaucaMaterialComponent_Factory(t) { return new (t || CaucaMaterialComponent)(); };
|
|
46
|
-
CaucaMaterialComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMaterialComponent, selectors: [["cauca-material"]], decls: 3, vars: 3, template: function CaucaMaterialComponent_Template(rf, ctx) { if (rf & 1) {
|
|
47
|
-
i0.ɵɵelementStart(0, "div");
|
|
48
|
-
i0.ɵɵtext(1);
|
|
49
|
-
i0.ɵɵpipe(2, "translate");
|
|
50
|
-
i0.ɵɵelementEnd();
|
|
51
|
-
} if (rf & 2) {
|
|
52
|
-
i0.ɵɵadvance(1);
|
|
53
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "core.noGenericComponentOnThisLibrary"));
|
|
54
|
-
} }, dependencies: [i1.TranslatePipe], encapsulation: 2 });
|
|
55
55
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialComponent, [{
|
|
56
56
|
type: Component,
|
|
57
57
|
args: [{ selector: 'cauca-material', template: "<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>" }]
|
|
@@ -92,24 +92,24 @@ class CaucaSimpleDialogComponent {
|
|
|
92
92
|
onClick(buttonIndex) {
|
|
93
93
|
this.dialogRef.close(buttonIndex);
|
|
94
94
|
}
|
|
95
|
+
static { this.ɵfac = function CaucaSimpleDialogComponent_Factory(t) { return new (t || CaucaSimpleDialogComponent)(i0.ɵɵdirectiveInject(i1$1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
|
|
96
|
+
static { this.ɵ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) {
|
|
97
|
+
i0.ɵɵelementStart(0, "h1", 0);
|
|
98
|
+
i0.ɵɵtext(1);
|
|
99
|
+
i0.ɵɵelementEnd();
|
|
100
|
+
i0.ɵɵelementStart(2, "div", 1);
|
|
101
|
+
i0.ɵɵelement(3, "div", 2);
|
|
102
|
+
i0.ɵɵelementEnd();
|
|
103
|
+
i0.ɵɵtemplate(4, CaucaSimpleDialogComponent_div_4_Template, 2, 1, "div", 3);
|
|
104
|
+
} if (rf & 2) {
|
|
105
|
+
i0.ɵɵadvance(1);
|
|
106
|
+
i0.ɵɵtextInterpolate(ctx.data.title);
|
|
107
|
+
i0.ɵɵadvance(2);
|
|
108
|
+
i0.ɵɵproperty("innerHTML", ctx.data.message, i0.ɵɵsanitizeHtml);
|
|
109
|
+
i0.ɵɵadvance(1);
|
|
110
|
+
i0.ɵɵproperty("ngIf", ctx.data.buttons);
|
|
111
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i3.MatButton], styles: ["div[mat-dialog-actions][_ngcontent-%COMP%]{margin-top:20px;text-align:center}"] }); }
|
|
95
112
|
}
|
|
96
|
-
CaucaSimpleDialogComponent.ɵfac = function CaucaSimpleDialogComponent_Factory(t) { return new (t || CaucaSimpleDialogComponent)(i0.ɵɵdirectiveInject(i1$1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
97
|
-
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) {
|
|
98
|
-
i0.ɵɵelementStart(0, "h1", 0);
|
|
99
|
-
i0.ɵɵtext(1);
|
|
100
|
-
i0.ɵɵelementEnd();
|
|
101
|
-
i0.ɵɵelementStart(2, "div", 1);
|
|
102
|
-
i0.ɵɵelement(3, "div", 2);
|
|
103
|
-
i0.ɵɵelementEnd();
|
|
104
|
-
i0.ɵɵtemplate(4, CaucaSimpleDialogComponent_div_4_Template, 2, 1, "div", 3);
|
|
105
|
-
} if (rf & 2) {
|
|
106
|
-
i0.ɵɵadvance(1);
|
|
107
|
-
i0.ɵɵtextInterpolate(ctx.data.title);
|
|
108
|
-
i0.ɵɵadvance(2);
|
|
109
|
-
i0.ɵɵproperty("innerHTML", ctx.data.message, i0.ɵɵsanitizeHtml);
|
|
110
|
-
i0.ɵɵadvance(1);
|
|
111
|
-
i0.ɵɵproperty("ngIf", ctx.data.buttons);
|
|
112
|
-
} }, dependencies: [i2.NgForOf, i2.NgIf, i3.MatButton], styles: ["div[mat-dialog-actions][_ngcontent-%COMP%]{margin-top:20px;text-align:center}"] });
|
|
113
113
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSimpleDialogComponent, [{
|
|
114
114
|
type: Component,
|
|
115
115
|
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"] }]
|
|
@@ -216,30 +216,30 @@ class CaucaInputFileComponent {
|
|
|
216
216
|
file,
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
+
static { this.ɵfac = function CaucaInputFileComponent_Factory(t) { return new (t || CaucaInputFileComponent)(i0.ɵɵdirectiveInject(i1$2.TranslateService), i0.ɵɵdirectiveInject(i1$1.MatDialog)); }; }
|
|
220
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputFileComponent, selectors: [["cauca-input-file"]], viewQuery: function CaucaInputFileComponent_Query(rf, ctx) { if (rf & 1) {
|
|
221
|
+
i0.ɵɵviewQuery(_c0$2, 5);
|
|
222
|
+
} if (rf & 2) {
|
|
223
|
+
let _t;
|
|
224
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.file = _t.first);
|
|
225
|
+
} }, 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) { if (rf & 1) {
|
|
226
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
227
|
+
i0.ɵɵlistener("click", function CaucaInputFileComponent_Template_button_click_0_listener($event) { return ctx.openDialog($event); });
|
|
228
|
+
i0.ɵɵtemplate(1, CaucaInputFileComponent_mat_icon_1_Template, 2, 1, "mat-icon", 1);
|
|
229
|
+
i0.ɵɵtemplate(2, CaucaInputFileComponent_span_2_Template, 2, 1, "span", 1);
|
|
230
|
+
i0.ɵɵelementEnd();
|
|
231
|
+
i0.ɵɵtemplate(3, CaucaInputFileComponent_ng_container_3_Template, 3, 1, "ng-container", 2);
|
|
232
|
+
i0.ɵɵtemplate(4, CaucaInputFileComponent_ng_template_4_Template, 2, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
233
|
+
} if (rf & 2) {
|
|
234
|
+
const _r3 = i0.ɵɵreference(5);
|
|
235
|
+
i0.ɵɵadvance(1);
|
|
236
|
+
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
237
|
+
i0.ɵɵadvance(1);
|
|
238
|
+
i0.ɵɵproperty("ngIf", ctx.text);
|
|
239
|
+
i0.ɵɵadvance(1);
|
|
240
|
+
i0.ɵɵproperty("ngIf", ctx.multiple)("ngIfElse", _r3);
|
|
241
|
+
} }, dependencies: [i2.NgIf, i3.MatButton, i5.MatIcon], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:none}"] }); }
|
|
219
242
|
}
|
|
220
|
-
CaucaInputFileComponent.ɵfac = function CaucaInputFileComponent_Factory(t) { return new (t || CaucaInputFileComponent)(i0.ɵɵdirectiveInject(i1$2.TranslateService), i0.ɵɵdirectiveInject(i1$1.MatDialog)); };
|
|
221
|
-
CaucaInputFileComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputFileComponent, selectors: [["cauca-input-file"]], viewQuery: function CaucaInputFileComponent_Query(rf, ctx) { if (rf & 1) {
|
|
222
|
-
i0.ɵɵviewQuery(_c0$2, 5);
|
|
223
|
-
} if (rf & 2) {
|
|
224
|
-
let _t;
|
|
225
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.file = _t.first);
|
|
226
|
-
} }, 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) { if (rf & 1) {
|
|
227
|
-
i0.ɵɵelementStart(0, "button", 0);
|
|
228
|
-
i0.ɵɵlistener("click", function CaucaInputFileComponent_Template_button_click_0_listener($event) { return ctx.openDialog($event); });
|
|
229
|
-
i0.ɵɵtemplate(1, CaucaInputFileComponent_mat_icon_1_Template, 2, 1, "mat-icon", 1);
|
|
230
|
-
i0.ɵɵtemplate(2, CaucaInputFileComponent_span_2_Template, 2, 1, "span", 1);
|
|
231
|
-
i0.ɵɵelementEnd();
|
|
232
|
-
i0.ɵɵtemplate(3, CaucaInputFileComponent_ng_container_3_Template, 3, 1, "ng-container", 2);
|
|
233
|
-
i0.ɵɵtemplate(4, CaucaInputFileComponent_ng_template_4_Template, 2, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
234
|
-
} if (rf & 2) {
|
|
235
|
-
const _r3 = i0.ɵɵreference(5);
|
|
236
|
-
i0.ɵɵadvance(1);
|
|
237
|
-
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
238
|
-
i0.ɵɵadvance(1);
|
|
239
|
-
i0.ɵɵproperty("ngIf", ctx.text);
|
|
240
|
-
i0.ɵɵadvance(1);
|
|
241
|
-
i0.ɵɵproperty("ngIf", ctx.multiple)("ngIfElse", _r3);
|
|
242
|
-
} }, dependencies: [i2.NgIf, i3.MatButton, i5.MatIcon], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:none}"] });
|
|
243
243
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputFileComponent, [{
|
|
244
244
|
type: Component,
|
|
245
245
|
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"] }]
|
|
@@ -317,21 +317,21 @@ class CaucaInputMultipleLangueComponent {
|
|
|
317
317
|
this.forms[index].setValue(this.value[index] || '');
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
+
static { this.ɵfac = function CaucaInputMultipleLangueComponent_Factory(t) { return new (t || CaucaInputMultipleLangueComponent)(i0.ɵɵdirectiveInject(i1$2.CaucaCoreService), i0.ɵɵdirectiveInject(i1$2.TranslateService)); }; }
|
|
321
|
+
static { this.ɵ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) { if (rf & 1) {
|
|
322
|
+
i0.ɵɵelementStart(0, "mat-tab-group", 0);
|
|
323
|
+
i0.ɵɵlistener("selectedIndexChange", function CaucaInputMultipleLangueComponent_Template_mat_tab_group_selectedIndexChange_0_listener($event) { return ctx.onTagChanged($event); });
|
|
324
|
+
i0.ɵɵtemplate(1, CaucaInputMultipleLangueComponent_mat_tab_1_Template, 4, 4, "mat-tab", 1);
|
|
325
|
+
i0.ɵɵelementEnd();
|
|
326
|
+
} if (rf & 2) {
|
|
327
|
+
i0.ɵɵproperty("selectedIndex", ctx.selectedIndex);
|
|
328
|
+
i0.ɵɵadvance(1);
|
|
329
|
+
i0.ɵɵproperty("ngForOf", ctx.labels);
|
|
330
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i3$1.DefaultValueAccessor, i3$1.NgControlStatus, i3$1.RequiredValidator, i3$1.FormControlDirective, i4.MatFormField, i4.MatError, i5$1.MatInput, i6.MatTab, i6.MatTabGroup, i1.TranslatePipe], styles: [".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"] }); }
|
|
320
331
|
}
|
|
321
|
-
CaucaInputMultipleLangueComponent.ɵfac = function CaucaInputMultipleLangueComponent_Factory(t) { return new (t || CaucaInputMultipleLangueComponent)(i0.ɵɵdirectiveInject(i1$2.CaucaCoreService), i0.ɵɵdirectiveInject(i1$2.TranslateService)); };
|
|
322
|
-
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) { if (rf & 1) {
|
|
323
|
-
i0.ɵɵelementStart(0, "mat-tab-group", 0);
|
|
324
|
-
i0.ɵɵlistener("selectedIndexChange", function CaucaInputMultipleLangueComponent_Template_mat_tab_group_selectedIndexChange_0_listener($event) { return ctx.onTagChanged($event); });
|
|
325
|
-
i0.ɵɵtemplate(1, CaucaInputMultipleLangueComponent_mat_tab_1_Template, 4, 4, "mat-tab", 1);
|
|
326
|
-
i0.ɵɵelementEnd();
|
|
327
|
-
} if (rf & 2) {
|
|
328
|
-
i0.ɵɵproperty("selectedIndex", ctx.selectedIndex);
|
|
329
|
-
i0.ɵɵadvance(1);
|
|
330
|
-
i0.ɵɵproperty("ngForOf", ctx.labels);
|
|
331
|
-
} }, dependencies: [i2.NgForOf, i2.NgIf, i3$1.DefaultValueAccessor, i3$1.NgControlStatus, i3$1.RequiredValidator, i3$1.FormControlDirective, i4.MatError, i4.MatFormField, i5$1.MatInput, i6.MatTabGroup, i6.MatTab, i1.TranslatePipe], styles: [".mat-form-field[_ngcontent-%COMP%]{width:100%}"] });
|
|
332
332
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputMultipleLangueComponent, [{
|
|
333
333
|
type: Component,
|
|
334
|
-
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"] }]
|
|
334
|
+
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-mdc-form-field{width:100%}\n"] }]
|
|
335
335
|
}], function () { return [{ type: i1$2.CaucaCoreService }, { type: i1$2.TranslateService }]; }, { value: [{
|
|
336
336
|
type: Input
|
|
337
337
|
}] }); })();
|
|
@@ -485,13 +485,13 @@ class CaucaMenuVerticalComponent {
|
|
|
485
485
|
});
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
+
static { this.ɵfac = function CaucaMenuVerticalComponent_Factory(t) { return new (t || CaucaMenuVerticalComponent)(i0.ɵɵdirectiveInject(i1$3.Router)); }; }
|
|
489
|
+
static { this.ɵ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) {
|
|
490
|
+
i0.ɵɵtemplate(0, CaucaMenuVerticalComponent_h4_0_Template, 5, 5, "h4", 0);
|
|
491
|
+
} if (rf & 2) {
|
|
492
|
+
i0.ɵɵproperty("ngForOf", ctx.menuItems);
|
|
493
|
+
} }, dependencies: [i2.NgForOf, i2.NgIf, i3$2.FaIconComponent, 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}"] }); }
|
|
488
494
|
}
|
|
489
|
-
CaucaMenuVerticalComponent.ɵfac = function CaucaMenuVerticalComponent_Factory(t) { return new (t || CaucaMenuVerticalComponent)(i0.ɵɵdirectiveInject(i1$3.Router)); };
|
|
490
|
-
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) {
|
|
491
|
-
i0.ɵɵtemplate(0, CaucaMenuVerticalComponent_h4_0_Template, 5, 5, "h4", 0);
|
|
492
|
-
} if (rf & 2) {
|
|
493
|
-
i0.ɵɵproperty("ngForOf", ctx.menuItems);
|
|
494
|
-
} }, dependencies: [i2.NgForOf, i2.NgIf, i3$2.FaIconComponent, 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}"] });
|
|
495
495
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuVerticalComponent, [{
|
|
496
496
|
type: Component,
|
|
497
497
|
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"] }]
|
|
@@ -599,36 +599,36 @@ class CaucaMenuSidebarComponent {
|
|
|
599
599
|
this.hostElement.classList.add('collapsed');
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
+
static { this.ɵfac = function CaucaMenuSidebarComponent_Factory(t) { return new (t || CaucaMenuSidebarComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
|
|
603
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuSidebarComponent, selectors: [["cauca-menu-sidebar"]], hostBindings: function CaucaMenuSidebarComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
604
|
+
i0.ɵɵlistener("resize", function CaucaMenuSidebarComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
|
|
605
|
+
} }, inputs: { menuItems: "menuItems", version: "version" }, ngContentSelectors: _c1, decls: 13, vars: 2, consts: [[1, "header"], ["mat-icon-button", "", 1, "close", 3, "click"], [1, "content"], [3, "menuItems", "itemClick"], ["menu", ""], [1, "footer"], ["class", "version", 4, "ngIf"], [1, "version"], [1, "double-arrow", 3, "click"], [1, "full"], [1, "abbr"]], template: function CaucaMenuSidebarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
606
|
+
i0.ɵɵprojectionDef(_c0$1);
|
|
607
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
|
|
608
|
+
i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_Template_button_click_1_listener() { return ctx.hideOnMobile(); });
|
|
609
|
+
i0.ɵɵelementStart(2, "mat-icon");
|
|
610
|
+
i0.ɵɵtext(3, "clear");
|
|
611
|
+
i0.ɵɵelementEnd()();
|
|
612
|
+
i0.ɵɵprojection(4);
|
|
613
|
+
i0.ɵɵelementEnd();
|
|
614
|
+
i0.ɵɵelementStart(5, "div", 2);
|
|
615
|
+
i0.ɵɵprojection(6, 1);
|
|
616
|
+
i0.ɵɵelementStart(7, "cauca-menu-vertical", 3, 4);
|
|
617
|
+
i0.ɵɵlistener("itemClick", function CaucaMenuSidebarComponent_Template_cauca_menu_vertical_itemClick_7_listener() { return ctx.onMenuItemClick(); });
|
|
618
|
+
i0.ɵɵelementEnd();
|
|
619
|
+
i0.ɵɵprojection(9, 2);
|
|
620
|
+
i0.ɵɵelementEnd();
|
|
621
|
+
i0.ɵɵelementStart(10, "div", 5);
|
|
622
|
+
i0.ɵɵprojection(11, 3);
|
|
623
|
+
i0.ɵɵelementEnd();
|
|
624
|
+
i0.ɵɵtemplate(12, CaucaMenuSidebarComponent_div_12_Template, 7, 5, "div", 6);
|
|
625
|
+
} if (rf & 2) {
|
|
626
|
+
i0.ɵɵadvance(7);
|
|
627
|
+
i0.ɵɵproperty("menuItems", ctx.menuItems);
|
|
628
|
+
i0.ɵɵadvance(5);
|
|
629
|
+
i0.ɵɵproperty("ngIf", ctx.version);
|
|
630
|
+
} }, dependencies: [i2.NgIf, i3.MatIconButton, i5.MatIcon, CaucaMenuVerticalComponent, 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%] > .header[_ngcontent-%COMP%], [_nghost-%COMP%] > .footer[_ngcontent-%COMP%]{flex:0 0 auto}[_nghost-%COMP%] > .content[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden auto}[_nghost-%COMP%] > .version[_ngcontent-%COMP%]{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}}"] }); }
|
|
602
631
|
}
|
|
603
|
-
CaucaMenuSidebarComponent.ɵfac = function CaucaMenuSidebarComponent_Factory(t) { return new (t || CaucaMenuSidebarComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
604
|
-
CaucaMenuSidebarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuSidebarComponent, selectors: [["cauca-menu-sidebar"]], hostBindings: function CaucaMenuSidebarComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
605
|
-
i0.ɵɵlistener("resize", function CaucaMenuSidebarComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
|
|
606
|
-
} }, inputs: { menuItems: "menuItems", version: "version" }, ngContentSelectors: _c1, decls: 13, vars: 2, consts: [[1, "header"], ["mat-icon-button", "", 1, "close", 3, "click"], [1, "content"], [3, "menuItems", "itemClick"], ["menu", ""], [1, "footer"], ["class", "version", 4, "ngIf"], [1, "version"], [1, "double-arrow", 3, "click"], [1, "full"], [1, "abbr"]], template: function CaucaMenuSidebarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
607
|
-
i0.ɵɵprojectionDef(_c0$1);
|
|
608
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
|
|
609
|
-
i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_Template_button_click_1_listener() { return ctx.hideOnMobile(); });
|
|
610
|
-
i0.ɵɵelementStart(2, "mat-icon");
|
|
611
|
-
i0.ɵɵtext(3, "clear");
|
|
612
|
-
i0.ɵɵelementEnd()();
|
|
613
|
-
i0.ɵɵprojection(4);
|
|
614
|
-
i0.ɵɵelementEnd();
|
|
615
|
-
i0.ɵɵelementStart(5, "div", 2);
|
|
616
|
-
i0.ɵɵprojection(6, 1);
|
|
617
|
-
i0.ɵɵelementStart(7, "cauca-menu-vertical", 3, 4);
|
|
618
|
-
i0.ɵɵlistener("itemClick", function CaucaMenuSidebarComponent_Template_cauca_menu_vertical_itemClick_7_listener() { return ctx.onMenuItemClick(); });
|
|
619
|
-
i0.ɵɵelementEnd();
|
|
620
|
-
i0.ɵɵprojection(9, 2);
|
|
621
|
-
i0.ɵɵelementEnd();
|
|
622
|
-
i0.ɵɵelementStart(10, "div", 5);
|
|
623
|
-
i0.ɵɵprojection(11, 3);
|
|
624
|
-
i0.ɵɵelementEnd();
|
|
625
|
-
i0.ɵɵtemplate(12, CaucaMenuSidebarComponent_div_12_Template, 7, 5, "div", 6);
|
|
626
|
-
} if (rf & 2) {
|
|
627
|
-
i0.ɵɵadvance(7);
|
|
628
|
-
i0.ɵɵproperty("menuItems", ctx.menuItems);
|
|
629
|
-
i0.ɵɵadvance(5);
|
|
630
|
-
i0.ɵɵproperty("ngIf", ctx.version);
|
|
631
|
-
} }, dependencies: [i2.NgIf, i3.MatButton, i5.MatIcon, CaucaMenuVerticalComponent, 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%] > .header[_ngcontent-%COMP%], [_nghost-%COMP%] > .footer[_ngcontent-%COMP%]{flex:0 0 auto}[_nghost-%COMP%] > .content[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden auto}[_nghost-%COMP%] > .version[_ngcontent-%COMP%]{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}}"] });
|
|
632
632
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuSidebarComponent, [{
|
|
633
633
|
type: Component,
|
|
634
634
|
args: [{ selector: 'cauca-menu-sidebar', template: "<div class=\"header\">\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 class=\"content\">\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 class=\"footer\">\n <ng-content select=\"[footer]\"></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>.header,:host>.footer{flex:0 0 auto}:host>.content{flex-grow:1;overflow:hidden auto}:host>.version{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"] }]
|
|
@@ -701,44 +701,44 @@ class CaucaSlideshowComponent {
|
|
|
701
701
|
this[action]();
|
|
702
702
|
this.states[this.selectedIndex] = 'in';
|
|
703
703
|
}
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
]),
|
|
729
|
-
]),
|
|
730
|
-
trigger('slideLeftRight', [
|
|
731
|
-
state('in', style({ transform: 'translateX(0%)' })),
|
|
732
|
-
state('out', style({ transform: 'translateX(-100%)' })),
|
|
733
|
-
transition('in => out', [
|
|
734
|
-
animate('500ms ease-in')
|
|
704
|
+
static { this.ɵfac = function CaucaSlideshowComponent_Factory(t) { return new (t || CaucaSlideshowComponent)(); }; }
|
|
705
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSlideshowComponent, selectors: [["cauca-slideshow"]], viewQuery: function CaucaSlideshowComponent_Query(rf, ctx) { if (rf & 1) {
|
|
706
|
+
i0.ɵɵviewQuery(_c0, 7);
|
|
707
|
+
} if (rf & 2) {
|
|
708
|
+
let _t;
|
|
709
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
710
|
+
} }, 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) { if (rf & 1) {
|
|
711
|
+
i0.ɵɵelementStart(0, "div", 0, 1);
|
|
712
|
+
i0.ɵɵtemplate(2, CaucaSlideshowComponent_div_2_Template, 2, 2, "div", 2);
|
|
713
|
+
i0.ɵɵelementEnd();
|
|
714
|
+
} if (rf & 2) {
|
|
715
|
+
i0.ɵɵadvance(2);
|
|
716
|
+
i0.ɵɵproperty("ngForOf", ctx.images);
|
|
717
|
+
} }, dependencies: [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: [
|
|
718
|
+
trigger('slideUpDown', [
|
|
719
|
+
state('in', style({ transform: 'translateY(0%)' })),
|
|
720
|
+
state('out', style({ transform: 'translateY(-100%)' })),
|
|
721
|
+
transition('in => out', [
|
|
722
|
+
animate('500ms ease-in')
|
|
723
|
+
]),
|
|
724
|
+
transition('out => in', [
|
|
725
|
+
style({ transform: 'translateY(100%)' }),
|
|
726
|
+
animate('500ms ease-in')
|
|
727
|
+
]),
|
|
735
728
|
]),
|
|
736
|
-
|
|
737
|
-
style({ transform: 'translateX(
|
|
738
|
-
|
|
729
|
+
trigger('slideLeftRight', [
|
|
730
|
+
state('in', style({ transform: 'translateX(0%)' })),
|
|
731
|
+
state('out', style({ transform: 'translateX(-100%)' })),
|
|
732
|
+
transition('in => out', [
|
|
733
|
+
animate('500ms ease-in')
|
|
734
|
+
]),
|
|
735
|
+
transition('out => in', [
|
|
736
|
+
style({ transform: 'translateX(100%)' }),
|
|
737
|
+
animate('500ms ease-in')
|
|
738
|
+
]),
|
|
739
739
|
]),
|
|
740
|
-
])
|
|
741
|
-
|
|
740
|
+
] } }); }
|
|
741
|
+
}
|
|
742
742
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSlideshowComponent, [{
|
|
743
743
|
type: Component,
|
|
744
744
|
args: [{ selector: 'cauca-slideshow', animations: [
|
|
@@ -777,19 +777,19 @@ CaucaSlideshowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Cau
|
|
|
777
777
|
}] }); })();
|
|
778
778
|
|
|
779
779
|
class CaucaMaterialModule {
|
|
780
|
+
static { this.ɵfac = function CaucaMaterialModule_Factory(t) { return new (t || CaucaMaterialModule)(); }; }
|
|
781
|
+
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CaucaMaterialModule }); }
|
|
782
|
+
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
783
|
+
CaucaCoreForChildModule,
|
|
784
|
+
FontAwesomeModule,
|
|
785
|
+
FormsModule,
|
|
786
|
+
ReactiveFormsModule,
|
|
787
|
+
MatButtonModule,
|
|
788
|
+
MatFormFieldModule,
|
|
789
|
+
MatIconModule,
|
|
790
|
+
MatInputModule,
|
|
791
|
+
MatTabsModule] }); }
|
|
780
792
|
}
|
|
781
|
-
CaucaMaterialModule.ɵfac = function CaucaMaterialModule_Factory(t) { return new (t || CaucaMaterialModule)(); };
|
|
782
|
-
CaucaMaterialModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CaucaMaterialModule });
|
|
783
|
-
CaucaMaterialModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
784
|
-
CaucaCoreForChildModule,
|
|
785
|
-
FontAwesomeModule,
|
|
786
|
-
FormsModule,
|
|
787
|
-
ReactiveFormsModule,
|
|
788
|
-
MatButtonModule,
|
|
789
|
-
MatFormFieldModule,
|
|
790
|
-
MatIconModule,
|
|
791
|
-
MatInputModule,
|
|
792
|
-
MatTabsModule] });
|
|
793
793
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialModule, [{
|
|
794
794
|
type: NgModule,
|
|
795
795
|
args: [{
|