@cauca-911/material 11.2.1 → 13.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/assets/i18n/cauca/es-material.json +9 -0
  2. package/assets/i18n/cauca/fr-material.json +1 -1
  3. package/cauca-911-material.d.ts +1 -1
  4. package/esm2020/cauca-911-material.mjs +5 -0
  5. package/esm2020/lib/cauca-input-file/cauca-input-file.component.mjs +148 -0
  6. package/esm2020/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +88 -0
  7. package/esm2020/lib/cauca-material.component.mjs +23 -0
  8. package/esm2020/lib/cauca-material.module.mjs +92 -0
  9. package/esm2020/lib/cauca-material.service.mjs +14 -0
  10. package/esm2020/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.mjs +144 -0
  11. package/esm2020/lib/cauca-menu-vertical/cauca-menu-vertical.component.mjs +172 -0
  12. package/esm2020/lib/cauca-simple-dialog/cauca-simple-dialog.component.mjs +62 -0
  13. package/esm2020/lib/cauca-slideshow/cauca-slideshow.component.mjs +139 -0
  14. package/esm2020/lib/shared/models/menu-item.mjs +9 -0
  15. package/esm2020/lib/shared/models/simple-dialog-data.mjs +6 -0
  16. package/{esm2015/public-api.js → esm2020/public-api.mjs} +1 -1
  17. package/fesm2015/cauca-911-material.mjs +984 -0
  18. package/fesm2015/cauca-911-material.mjs.map +1 -0
  19. package/fesm2020/cauca-911-material.mjs +868 -0
  20. package/fesm2020/cauca-911-material.mjs.map +1 -0
  21. package/lib/cauca-input-file/cauca-input-file.component.d.ts +4 -1
  22. package/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.d.ts +3 -0
  23. package/lib/cauca-material.component.d.ts +3 -0
  24. package/lib/cauca-material.module.d.ts +20 -0
  25. package/lib/cauca-material.service.d.ts +3 -0
  26. package/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.d.ts +7 -4
  27. package/lib/cauca-menu-vertical/cauca-menu-vertical.component.d.ts +3 -0
  28. package/lib/cauca-simple-dialog/cauca-simple-dialog.component.d.ts +3 -0
  29. package/lib/cauca-slideshow/cauca-slideshow.component.d.ts +7 -4
  30. package/package.json +31 -16
  31. package/bundles/cauca-911-material.umd.js +0 -513
  32. package/bundles/cauca-911-material.umd.js.map +0 -1
  33. package/bundles/cauca-911-material.umd.min.js +0 -2
  34. package/bundles/cauca-911-material.umd.min.js.map +0 -1
  35. package/cauca-911-material.metadata.json +0 -1
  36. package/esm2015/cauca-911-material.js +0 -6
  37. package/esm2015/lib/cauca-input-file/cauca-input-file.component.js +0 -83
  38. package/esm2015/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.js +0 -52
  39. package/esm2015/lib/cauca-material.component.js +0 -14
  40. package/esm2015/lib/cauca-material.module.js +0 -54
  41. package/esm2015/lib/cauca-material.service.js +0 -13
  42. package/esm2015/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.js +0 -95
  43. package/esm2015/lib/cauca-menu-vertical/cauca-menu-vertical.component.js +0 -48
  44. package/esm2015/lib/cauca-simple-dialog/cauca-simple-dialog.component.js +0 -25
  45. package/esm2015/lib/cauca-slideshow/cauca-slideshow.component.js +0 -89
  46. package/esm2015/lib/shared/models/menu-item.js +0 -9
  47. package/esm2015/lib/shared/models/simple-dialog-data.js +0 -6
  48. package/fesm2015/cauca-911-material.js +0 -477
  49. package/fesm2015/cauca-911-material.js.map +0 -1
@@ -1,513 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/button'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/tabs'), require('@fortawesome/angular-fontawesome'), require('@cauca-911/core'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/animations')) :
3
- typeof define === 'function' && define.amd ? define('@cauca-911/material', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/button', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/tabs', '@fortawesome/angular-fontawesome', '@cauca-911/core', '@angular/material/dialog', '@angular/router', '@angular/animations'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['cauca-911'] = global['cauca-911'] || {}, global['cauca-911'].material = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.button, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.tabs, global['@fortawesome/angular-fontawesome'], global['@cauca-911/core'], global.ng.material.dialog, global.ng.router, global.ng.animations));
5
- }(this, (function (exports, i0, common, forms, button, formField, icon, input, tabs, angularFontawesome, core, dialog, router, animations) { 'use strict';
6
-
7
- var CaucaMaterialService = /** @class */ (function () {
8
- function CaucaMaterialService() {
9
- }
10
- return CaucaMaterialService;
11
- }());
12
- CaucaMaterialService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CaucaMaterialService_Factory() { return new CaucaMaterialService(); }, token: CaucaMaterialService, providedIn: "root" });
13
- CaucaMaterialService.decorators = [
14
- { type: i0.Injectable, args: [{
15
- providedIn: 'root'
16
- },] }
17
- ];
18
- CaucaMaterialService.ctorParameters = function () { return []; };
19
-
20
- var CaucaMaterialComponent = /** @class */ (function () {
21
- function CaucaMaterialComponent() {
22
- }
23
- CaucaMaterialComponent.prototype.ngOnInit = function () {
24
- };
25
- return CaucaMaterialComponent;
26
- }());
27
- CaucaMaterialComponent.decorators = [
28
- { type: i0.Component, args: [{
29
- selector: 'cauca-material',
30
- template: "<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>"
31
- },] }
32
- ];
33
- CaucaMaterialComponent.ctorParameters = function () { return []; };
34
-
35
- var SimpleDialogData = /** @class */ (function () {
36
- function SimpleDialogData() {
37
- this.buttons = [];
38
- }
39
- return SimpleDialogData;
40
- }());
41
-
42
- var CaucaSimpleDialogComponent = /** @class */ (function () {
43
- function CaucaSimpleDialogComponent(dialogRef, data) {
44
- this.dialogRef = dialogRef;
45
- this.data = data;
46
- }
47
- CaucaSimpleDialogComponent.prototype.ngOnInit = function () { };
48
- CaucaSimpleDialogComponent.prototype.onClick = function (buttonIndex) {
49
- this.dialogRef.close(buttonIndex);
50
- };
51
- return CaucaSimpleDialogComponent;
52
- }());
53
- CaucaSimpleDialogComponent.decorators = [
54
- { type: i0.Component, args: [{
55
- selector: 'cauca-simple-dialog',
56
- 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>",
57
- styles: ["div[mat-dialog-actions]{margin-top:20px;text-align:center}"]
58
- },] }
59
- ];
60
- CaucaSimpleDialogComponent.ctorParameters = function () { return [
61
- { type: dialog.MatDialogRef },
62
- { type: SimpleDialogData, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
63
- ]; };
64
-
65
- var CaucaInputFileComponent = /** @class */ (function () {
66
- function CaucaInputFileComponent(translateService, dialog) {
67
- this.translateService = translateService;
68
- this.dialog = dialog;
69
- this.labels = {};
70
- this.readend = new i0.EventEmitter();
71
- this.accept = '';
72
- this.multiple = false;
73
- this.icon = '';
74
- this.text = '';
75
- }
76
- CaucaInputFileComponent.prototype.ngOnInit = function () {
77
- var _this = this;
78
- if (!this.icon && !this.text) {
79
- this.translateService.get(['material.select', 'material.dialogTitle', 'material.dialogMessage']).subscribe(function (labels) {
80
- _this.labels = labels;
81
- _this.text = labels['material.select'];
82
- });
83
- }
84
- };
85
- CaucaInputFileComponent.prototype.onSelectFile = function (e) {
86
- var _this = this;
87
- var _loop_1 = function (i, j) {
88
- var file = e.target.files[i];
89
- var reader = new FileReader();
90
- reader.onerror = (function (error) { return _this.onError(error); });
91
- reader.onload = (function (event) { return _this.onReadEnd(file, event); });
92
- reader.readAsDataURL(file);
93
- };
94
- for (var i = 0, j = e.target.files.length; i < j; i++) {
95
- _loop_1(i, j);
96
- }
97
- if (e.target.files.length) {
98
- this.dialog.open(CaucaSimpleDialogComponent, {
99
- width: '250px',
100
- disableClose: true,
101
- data: {
102
- title: this.labels['material.dialogTitle'],
103
- message: this.labels['material.dialogMessage']
104
- }
105
- });
106
- }
107
- };
108
- CaucaInputFileComponent.prototype.openDialog = function (event) {
109
- if (this.file) {
110
- this.file.nativeElement.click();
111
- }
112
- event.stopPropagation();
113
- };
114
- CaucaInputFileComponent.prototype.onError = function (error) {
115
- throw error;
116
- };
117
- CaucaInputFileComponent.prototype.onReadEnd = function (file, e) {
118
- this.dialog.closeAll();
119
- this.readend.emit({
120
- name: file.name,
121
- size: file.size,
122
- type: file.type,
123
- lastModifiedDate: file.lastModifiedDate,
124
- content: e.target['result'],
125
- file: file,
126
- });
127
- };
128
- return CaucaInputFileComponent;
129
- }());
130
- CaucaInputFileComponent.decorators = [
131
- { type: i0.Component, args: [{
132
- selector: 'cauca-input-file',
133
- 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>",
134
- styles: [":host input{display:none}"]
135
- },] }
136
- ];
137
- CaucaInputFileComponent.ctorParameters = function () { return [
138
- { type: core.TranslateService },
139
- { type: dialog.MatDialog }
140
- ]; };
141
- CaucaInputFileComponent.propDecorators = {
142
- file: [{ type: i0.ViewChild, args: ['file', { static: false },] }],
143
- readend: [{ type: i0.Output }],
144
- accept: [{ type: i0.Input }],
145
- multiple: [{ type: i0.Input }],
146
- icon: [{ type: i0.Input }],
147
- text: [{ type: i0.Input }]
148
- };
149
-
150
- var CaucaInputMultipleLangueComponent = /** @class */ (function () {
151
- function CaucaInputMultipleLangueComponent(coreService, translate) {
152
- this.translate = translate;
153
- this.value = [];
154
- this.forms = [];
155
- this.labels = [];
156
- this.selectedIndex = 0;
157
- this.config = coreService.getConfig();
158
- }
159
- CaucaInputMultipleLangueComponent.prototype.ngOnInit = function () {
160
- var _this = this;
161
- this.translate.get(this.config.languages).subscribe(function (labels) {
162
- for (var i in labels) {
163
- if (labels[i]) {
164
- _this.labels.push(labels[i]);
165
- }
166
- }
167
- _this.initializeForms();
168
- });
169
- };
170
- CaucaInputMultipleLangueComponent.prototype.onTagChanged = function (tabIndex) {
171
- console.log('cauca-material', tabIndex);
172
- console.log('cauca-material', this.value);
173
- console.log('cauca-material', this.forms);
174
- };
175
- CaucaInputMultipleLangueComponent.prototype.getErrorMessage = function (index) {
176
- return this.forms[index].hasError('required') ? 'error.required' : '';
177
- };
178
- CaucaInputMultipleLangueComponent.prototype.initializeForms = function () {
179
- var _this = this;
180
- this.labels.forEach(function (item, index) {
181
- _this.forms[index] = new forms.FormControl('', [forms.Validators.required]);
182
- _this.forms[index].setValue(_this.value[index] || '');
183
- });
184
- };
185
- return CaucaInputMultipleLangueComponent;
186
- }());
187
- CaucaInputMultipleLangueComponent.decorators = [
188
- { type: i0.Component, args: [{
189
- selector: 'cauca-input-multiple-langue',
190
- 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>",
191
- styles: [".mat-form-field{width:100%}"]
192
- },] }
193
- ];
194
- CaucaInputMultipleLangueComponent.ctorParameters = function () { return [
195
- { type: core.CaucaCoreService },
196
- { type: core.TranslateService }
197
- ]; };
198
- CaucaInputMultipleLangueComponent.propDecorators = {
199
- value: [{ type: i0.Input }]
200
- };
201
-
202
- var CaucaMenuSidebarComponent = /** @class */ (function () {
203
- function CaucaMenuSidebarComponent(element) {
204
- var _this = this;
205
- this.keepMenuExpanded = false;
206
- this.menuItems = [];
207
- this.version = '';
208
- this.hostElement = element.nativeElement;
209
- this.hostElement.addEventListener('mouseover', function (e) { return _this.onMouseOver(e); });
210
- this.hostElement.addEventListener('mouseout', function (e) { return _this.onMouseOut(e); });
211
- this.setDisplayMenu();
212
- }
213
- CaucaMenuSidebarComponent.prototype.ngOnInit = function () {
214
- };
215
- CaucaMenuSidebarComponent.prototype.onResize = function (e) {
216
- this.setDisplayMenu();
217
- };
218
- CaucaMenuSidebarComponent.prototype.onMenuItemClick = function () {
219
- if (window.innerWidth < 1000) {
220
- this.hideOnMobile();
221
- }
222
- };
223
- CaucaMenuSidebarComponent.prototype.hideOnMobile = function () {
224
- this.hostElement.classList.remove('mobile');
225
- this.hostElement.classList.add('hidden');
226
- };
227
- CaucaMenuSidebarComponent.prototype.showOnMobile = function () {
228
- this.hostElement.classList.remove('hidden');
229
- this.hostElement.classList.add('mobile');
230
- };
231
- CaucaMenuSidebarComponent.prototype.onToggleCollapse = function () {
232
- if (this.keepMenuExpanded) {
233
- this.onCollpseMenu();
234
- this.hostElement.classList.remove('keepExpanded');
235
- }
236
- else {
237
- this.onExpandedMenu();
238
- this.hostElement.classList.add('keepExpanded');
239
- }
240
- this.keepMenuExpanded = !this.keepMenuExpanded;
241
- localStorage.setItem('cauca-menu-status', this.keepMenuExpanded ? 'expanded' : 'collapsed');
242
- };
243
- CaucaMenuSidebarComponent.prototype.setDisplayMenu = function () {
244
- this.hostElement.className = '';
245
- if (window.innerWidth < 1000) {
246
- this.hostElement.classList.add('hidden');
247
- }
248
- else {
249
- if (localStorage.getItem('cauca-menu-status') === 'expanded') {
250
- this.keepMenuExpanded = true;
251
- this.hostElement.classList.add('keepExpanded');
252
- }
253
- this.hostElement.classList.add(this.keepMenuExpanded ? 'expanded' : 'collapsed');
254
- }
255
- };
256
- CaucaMenuSidebarComponent.prototype.onMouseOver = function (e) {
257
- if (!this.keepMenuExpanded) {
258
- this.onExpandedMenu();
259
- }
260
- e.stopPropagation();
261
- };
262
- CaucaMenuSidebarComponent.prototype.onMouseOut = function (e) {
263
- if (!this.keepMenuExpanded) {
264
- this.onCollpseMenu();
265
- }
266
- e.stopPropagation();
267
- };
268
- CaucaMenuSidebarComponent.prototype.onExpandedMenu = function () {
269
- if (window.innerWidth >= 1000) {
270
- this.hostElement.classList.remove('collapsed');
271
- this.hostElement.classList.add('expanded');
272
- }
273
- };
274
- CaucaMenuSidebarComponent.prototype.onCollpseMenu = function () {
275
- if (window.innerWidth >= 1000) {
276
- this.hostElement.classList.remove('expanded');
277
- this.hostElement.classList.add('collapsed');
278
- }
279
- };
280
- return CaucaMenuSidebarComponent;
281
- }());
282
- CaucaMenuSidebarComponent.decorators = [
283
- { type: i0.Component, args: [{
284
- selector: 'cauca-menu-sidebar',
285
- 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",
286
- styles: [":host{display:flex;flex-direction:column;height:100%;overflow:hidden;scrollbar-color:rgba(0,0,0,.1) rgba(0,0,0,.2);scrollbar-width:5px;transition:all .1s ease-out}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.1);border-radius:5px}::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);border-radius:5px;outline:1px solid #708090}: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{max-width:0;min-width:0;width:0}:host.mobile{max-width:275px;min-width:275px;position:absolute;width:275px;z-index:10}:host.collapsed{max-width:75px;min-width:75px;width:75px}:host.expanded{max-width:275px;min-width:275px;width:275px}:host .close{display:none}:host.mobile .close{display:inline-block;position:absolute;right:0}.double-arrow{cursor:pointer;height:2.9em;line-height:2.9em;margin-top:-1em;opacity:.25;position:absolute}.double-arrow:hover{opacity:1}:host.collapsed .double-arrow:before,:host.expanded .double-arrow:before{content:\"double_arrow\";font-family:Material Icons;font-size:2.9em;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{opacity:1;transform:rotate(180deg)}.version{bottom:0;padding:1em}.abbr,.full{display:none}:host.collapsed .abbr,:host.expanded .full,:host.mobile .full{display:inline}@media only screen and (max-width:1000px){.double-arrow{display:none}}"]
287
- },] }
288
- ];
289
- CaucaMenuSidebarComponent.ctorParameters = function () { return [
290
- { type: i0.ElementRef }
291
- ]; };
292
- CaucaMenuSidebarComponent.propDecorators = {
293
- menuItems: [{ type: i0.Input }],
294
- version: [{ type: i0.Input }],
295
- onResize: [{ type: i0.HostListener, args: ['window:resize', ['$event'],] }]
296
- };
297
-
298
- var CaucaMenuVerticalComponent = /** @class */ (function () {
299
- function CaucaMenuVerticalComponent(router$1) {
300
- var _this = this;
301
- this.router = router$1;
302
- this.itemClick = new i0.EventEmitter();
303
- this.menuItems = [];
304
- this.router.events.subscribe(function (route) {
305
- if (route instanceof router.NavigationEnd) {
306
- _this.selectActiveRoute(route);
307
- }
308
- });
309
- }
310
- CaucaMenuVerticalComponent.prototype.ngOnInit = function () {
311
- };
312
- CaucaMenuVerticalComponent.prototype.goTo = function (path, e) {
313
- this.router.navigate([path]);
314
- this.itemClick.emit();
315
- e.stopPropagation();
316
- };
317
- CaucaMenuVerticalComponent.prototype.selectActiveRoute = function (route) {
318
- this.menuItems.forEach(function (menu) {
319
- if (route.url) {
320
- menu.activated = (route.url === menu.path || (menu.childs.length && route.url.indexOf(menu.path) > -1));
321
- }
322
- menu.childs.forEach(function (subMenu) {
323
- if (route.url) {
324
- subMenu.activated = (route.url === subMenu.path || route.urlAfterRedirects === subMenu.path);
325
- }
326
- });
327
- });
328
- };
329
- return CaucaMenuVerticalComponent;
330
- }());
331
- CaucaMenuVerticalComponent.decorators = [
332
- { type: i0.Component, args: [{
333
- selector: 'cauca-menu-vertical',
334
- 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\">&bull;</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",
335
- styles: [".menu,.submenu{cursor:pointer}h4{margin:0;padding:0}h4 .menu{display:flex;flex-direction:row;padding:1em 0}h4 .menu>div{-ms-grid-row-align:center;align-self:center;flex:1 1 auto}.menu-dot{font-size:2em;max-width:1.1em}.menu-dot,.menu-icon{margin-right:.5em;text-align:center}.menu-icon{max-width:60px}.submenu{margin-left:1em}.submenu .menu{font-size:.9em;line-height:2.2em;padding:0}.submenu .menu:before{background:#fff;content:\"\";height:2.5em;margin-left:1.1em;margin-right:-1.17em;position:relative;width:.1em}"]
336
- },] }
337
- ];
338
- CaucaMenuVerticalComponent.ctorParameters = function () { return [
339
- { type: router.Router }
340
- ]; };
341
- CaucaMenuVerticalComponent.propDecorators = {
342
- itemClick: [{ type: i0.Output }],
343
- menuItems: [{ type: i0.Input }]
344
- };
345
-
346
- var CaucaSlideshowComponent = /** @class */ (function () {
347
- function CaucaSlideshowComponent() {
348
- this.timer = null;
349
- this.items = [];
350
- this.states = [];
351
- this.selectedIndex = 0;
352
- this.height = '150px';
353
- this.autoPlay = true;
354
- }
355
- Object.defineProperty(CaucaSlideshowComponent.prototype, "images", {
356
- get: function () {
357
- return this.items;
358
- },
359
- set: function (list) {
360
- this.items = list;
361
- this.restart();
362
- },
363
- enumerable: false,
364
- configurable: true
365
- });
366
- CaucaSlideshowComponent.prototype.ngOnInit = function () {
367
- this.container.nativeElement.style.height = this.height;
368
- this.container.nativeElement.style.width = '100%';
369
- };
370
- CaucaSlideshowComponent.prototype.getState = function (index) {
371
- if (this.states[index]) {
372
- return this.states[index];
373
- }
374
- return (this.selectedIndex === index ? 'in' : 'out');
375
- };
376
- CaucaSlideshowComponent.prototype.restart = function () {
377
- var _this = this;
378
- if (this.timer) {
379
- window.clearInterval(this.timer);
380
- }
381
- if (this.images && this.images.length) {
382
- this.timer = window.setInterval(function () { return _this.changed('next'); }, 5000);
383
- }
384
- };
385
- CaucaSlideshowComponent.prototype.next = function () {
386
- if (this.selectedIndex < this.items.length - 1) {
387
- this.selectedIndex++;
388
- }
389
- else {
390
- this.selectedIndex = 0;
391
- }
392
- };
393
- CaucaSlideshowComponent.prototype.changed = function (action) {
394
- this.states[this.selectedIndex] = 'out';
395
- this[action]();
396
- this.states[this.selectedIndex] = 'in';
397
- };
398
- return CaucaSlideshowComponent;
399
- }());
400
- CaucaSlideshowComponent.decorators = [
401
- { type: i0.Component, args: [{
402
- selector: 'cauca-slideshow',
403
- 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>",
404
- animations: [
405
- animations.trigger('slideUpDown', [
406
- animations.state('in', animations.style({ transform: 'translateY(0%)' })),
407
- animations.state('out', animations.style({ transform: 'translateY(-100%)' })),
408
- animations.transition('in => out', [
409
- animations.animate('500ms ease-in')
410
- ]),
411
- animations.transition('out => in', [
412
- animations.style({ transform: 'translateY(100%)' }),
413
- animations.animate('500ms ease-in')
414
- ]),
415
- ]),
416
- animations.trigger('slideLeftRight', [
417
- animations.state('in', animations.style({ transform: 'translateX(0%)' })),
418
- animations.state('out', animations.style({ transform: 'translateX(-100%)' })),
419
- animations.transition('in => out', [
420
- animations.animate('500ms ease-in')
421
- ]),
422
- animations.transition('out => in', [
423
- animations.style({ transform: 'translateX(100%)' }),
424
- animations.animate('500ms ease-in')
425
- ]),
426
- ]),
427
- ],
428
- styles: [".slideshow{margin:0 auto;overflow:hidden;position:relative}.slideshow>div{height:100%;position:absolute;width:100%}img{display:block;margin:0 auto;max-height:100%;max-width:100%}"]
429
- },] }
430
- ];
431
- CaucaSlideshowComponent.ctorParameters = function () { return []; };
432
- CaucaSlideshowComponent.propDecorators = {
433
- container: [{ type: i0.ViewChild, args: ['container', { static: true },] }],
434
- height: [{ type: i0.Input }],
435
- autoPlay: [{ type: i0.Input }],
436
- images: [{ type: i0.Input }]
437
- };
438
-
439
- var CaucaMaterialModule = /** @class */ (function () {
440
- function CaucaMaterialModule() {
441
- }
442
- return CaucaMaterialModule;
443
- }());
444
- CaucaMaterialModule.decorators = [
445
- { type: i0.NgModule, args: [{
446
- declarations: [
447
- CaucaMaterialComponent,
448
- CaucaInputFileComponent,
449
- CaucaInputMultipleLangueComponent,
450
- CaucaMenuSidebarComponent,
451
- CaucaMenuVerticalComponent,
452
- CaucaSimpleDialogComponent,
453
- CaucaSlideshowComponent,
454
- ],
455
- imports: [
456
- common.CommonModule,
457
- core.CaucaCoreForChildModule,
458
- angularFontawesome.FontAwesomeModule,
459
- forms.FormsModule,
460
- forms.ReactiveFormsModule,
461
- button.MatButtonModule,
462
- formField.MatFormFieldModule,
463
- icon.MatIconModule,
464
- input.MatInputModule,
465
- tabs.MatTabsModule,
466
- ],
467
- exports: [
468
- CaucaMaterialComponent,
469
- CaucaInputFileComponent,
470
- CaucaInputMultipleLangueComponent,
471
- CaucaMenuSidebarComponent,
472
- CaucaMenuVerticalComponent,
473
- CaucaSimpleDialogComponent,
474
- CaucaSlideshowComponent,
475
- ]
476
- },] }
477
- ];
478
-
479
- var MenuItem = /** @class */ (function () {
480
- function MenuItem(label, path, icon) {
481
- if (icon === void 0) { icon = ''; }
482
- this.label = label;
483
- this.path = path;
484
- this.icon = icon;
485
- this.childs = [];
486
- }
487
- return MenuItem;
488
- }());
489
-
490
- /*
491
- * Public API Surface of cauca-material
492
- */
493
-
494
- /**
495
- * Generated bundle index. Do not edit.
496
- */
497
-
498
- exports.CaucaInputFileComponent = CaucaInputFileComponent;
499
- exports.CaucaInputMultipleLangueComponent = CaucaInputMultipleLangueComponent;
500
- exports.CaucaMaterialComponent = CaucaMaterialComponent;
501
- exports.CaucaMaterialModule = CaucaMaterialModule;
502
- exports.CaucaMaterialService = CaucaMaterialService;
503
- exports.CaucaMenuSidebarComponent = CaucaMenuSidebarComponent;
504
- exports.CaucaMenuVerticalComponent = CaucaMenuVerticalComponent;
505
- exports.CaucaSimpleDialogComponent = CaucaSimpleDialogComponent;
506
- exports.CaucaSlideshowComponent = CaucaSlideshowComponent;
507
- exports.MenuItem = MenuItem;
508
- exports.ɵa = SimpleDialogData;
509
-
510
- Object.defineProperty(exports, '__esModule', { value: true });
511
-
512
- })));
513
- //# sourceMappingURL=cauca-911-material.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cauca-911-material.umd.js","sources":["../../projects/cauca-material/src/lib/cauca-material.service.ts","../../projects/cauca-material/src/lib/cauca-material.component.ts","../esm2015/projects/cauca-material/src/lib/shared/models/simple-dialog-data.ts","../projects/cauca-material/src/lib/cauca-simple-dialog/cauca-simple-dialog.component.ts","../projects/cauca-material/src/lib/cauca-input-file/cauca-input-file.component.ts","../projects/cauca-material/src/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.ts","../projects/cauca-material/src/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.ts","../projects/cauca-material/src/lib/cauca-menu-vertical/cauca-menu-vertical.component.ts","../projects/cauca-material/src/lib/cauca-slideshow/cauca-slideshow.component.ts","../../projects/cauca-material/src/lib/cauca-material.module.ts","../esm2015/projects/cauca-material/src/lib/shared/models/menu-item.ts","../../../projects/cauca-material/src/public-api.ts","../../../projects/cauca-material/src/cauca-911-material.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class CaucaMaterialService {\n\n constructor() { }\n}\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'cauca-material',\n templateUrl: './cauca-material.component.html',\n styles: []\n})\nexport class CaucaMaterialComponent implements OnInit {\n\n constructor() { }\n\n public ngOnInit(): void {\n }\n\n}\n","export class SimpleDialogData {\n public title: string;\n public message: string;\n public buttons: string[] = [];\n}\n","import { Component, Inject, OnInit } from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { SimpleDialogData } from '../shared/models/simple-dialog-data';\n\n@Component({\n selector: 'cauca-simple-dialog',\n templateUrl: './cauca-simple-dialog.component.html',\n styleUrls: ['./cauca-simple-dialog.component.scss']\n})\nexport class CaucaSimpleDialogComponent implements OnInit {\n\n constructor(\n private dialogRef: MatDialogRef<CaucaSimpleDialogComponent>,\n @Inject(MAT_DIALOG_DATA) public data: SimpleDialogData,\n ) { }\n\n public ngOnInit(): void { }\n\n public onClick(buttonIndex: number): void {\n this.dialogRef.close(buttonIndex);\n }\n}\n","import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { TranslateService } from '@cauca-911/core';\nimport { CaucaSimpleDialogComponent } from '../cauca-simple-dialog/cauca-simple-dialog.component';\n\n@Component({\n selector: 'cauca-input-file',\n templateUrl: './cauca-input-file.component.html',\n styleUrls: ['./cauca-input-file.component.scss']\n})\nexport class CaucaInputFileComponent implements OnInit {\n private labels: any = {};\n\n @ViewChild('file', {static: false})\n public file: ElementRef;\n @Output()\n public readend = new EventEmitter();\n @Input()\n public accept = '';\n @Input()\n public multiple = false;\n @Input()\n public icon = '';\n @Input()\n public text = '';\n\n constructor(\n private translateService: TranslateService,\n private dialog: MatDialog,\n ) {\n }\n\n public ngOnInit(): void {\n if (!this.icon && !this.text) {\n this.translateService.get(\n ['material.select', 'material.dialogTitle', 'material.dialogMessage']\n ).subscribe((labels: any) => {\n this.labels = labels;\n this.text = labels['material.select'];\n });\n }\n }\n\n public onSelectFile(e: any): void {\n for (let i = 0, j = e.target.files.length; i < j; i++) {\n const file = e.target.files[i];\n const reader = new FileReader();\n reader.onerror = ((error: any) => this.onError(error));\n reader.onload = ((event: any) => this.onReadEnd(file, event));\n reader.readAsDataURL(file);\n }\n\n if (e.target.files.length) {\n this.dialog.open(CaucaSimpleDialogComponent, {\n width: '250px',\n disableClose: true,\n data: {\n title: this.labels['material.dialogTitle'],\n message: this.labels['material.dialogMessage']\n }\n });\n }\n }\n\n public openDialog(event: any): void {\n if (this.file) {\n this.file.nativeElement.click();\n }\n event.stopPropagation();\n }\n\n private onError(error: any): void {\n throw error;\n }\n\n private onReadEnd(file: any, e: any): void {\n this.dialog.closeAll();\n this.readend.emit({\n name: file.name,\n size: file.size,\n type: file.type,\n lastModifiedDate: file.lastModifiedDate,\n content: e.target['result'],\n file: file,\n });\n }\n}\n","import {Component, Input, OnInit} from '@angular/core';\nimport {FormControl, Validators} from '@angular/forms';\nimport {Configuration, CaucaCoreService, TranslateService} from '@cauca-911/core';\n\n@Component({\n selector: 'cauca-input-multiple-langue',\n templateUrl: './cauca-input-multiple-langue.component.html',\n styleUrls: ['./cauca-input-multiple-langue.component.scss']\n})\nexport class CaucaInputMultipleLangueComponent implements OnInit {\n @Input()\n public value: string[] = [];\n public config: Configuration;\n public forms: FormControl[] = [];\n public labels: string[] = [];\n public selectedIndex = 0;\n\n constructor(\n coreService: CaucaCoreService,\n private translate: TranslateService,\n ) {\n this.config = coreService.getConfig();\n }\n\n public ngOnInit(): void {\n this.translate.get(this.config.languages).subscribe((labels: any) => {\n for (const i in labels) {\n if (labels[i]) {\n this.labels.push(labels[i]);\n }\n }\n this.initializeForms();\n });\n }\n\n public onTagChanged(tabIndex: number): void {\n console.log('cauca-material', tabIndex);\n console.log('cauca-material', this.value);\n console.log('cauca-material', this.forms);\n }\n\n public getErrorMessage(index: any): string {\n return this.forms[index].hasError('required') ? 'error.required' : '';\n }\n\n private initializeForms(): void {\n this.labels.forEach((item: any, index: number) => {\n this.forms[index] = new FormControl('', [Validators.required]);\n this.forms[index].setValue(this.value[index] || '');\n });\n }\n}\n","import { Component, ElementRef, HostListener, Input, OnInit } from '@angular/core';\nimport { MenuItem } from '../shared/models/menu-item';\n\n@Component({\n selector: 'cauca-menu-sidebar',\n templateUrl: './cauca-menu-sidebar.component.html',\n styleUrls: ['./cauca-menu-sidebar.component.scss']\n})\nexport class CaucaMenuSidebarComponent implements OnInit {\n private hostElement: HTMLDivElement;\n private keepMenuExpanded = false;\n\n @Input()\n public menuItems: MenuItem[] = [];\n @Input()\n public version = '';\n\n constructor(element: ElementRef) {\n this.hostElement = element.nativeElement as HTMLDivElement;\n this.hostElement.addEventListener('mouseover', (e: any) => this.onMouseOver(e));\n this.hostElement.addEventListener('mouseout', (e: any) => this.onMouseOut(e));\n\n this.setDisplayMenu();\n }\n\n public ngOnInit(): void {\n }\n\n @HostListener('window:resize', ['$event'])\n public onResize(e: any): void {\n this.setDisplayMenu();\n }\n\n public onMenuItemClick(): void {\n if (window.innerWidth < 1000) {\n this.hideOnMobile();\n }\n }\n\n public hideOnMobile(): void {\n this.hostElement.classList.remove('mobile');\n this.hostElement.classList.add('hidden');\n }\n\n public showOnMobile(): void {\n this.hostElement.classList.remove('hidden');\n this.hostElement.classList.add('mobile');\n }\n\n public onToggleCollapse(): void {\n if (this.keepMenuExpanded) {\n this.onCollpseMenu();\n this.hostElement.classList.remove('keepExpanded');\n } else {\n this.onExpandedMenu();\n this.hostElement.classList.add('keepExpanded');\n }\n\n this.keepMenuExpanded = !this.keepMenuExpanded;\n localStorage.setItem('cauca-menu-status', this.keepMenuExpanded ? 'expanded' : 'collapsed');\n }\n\n private setDisplayMenu(): void {\n this.hostElement.className = '';\n\n if (window.innerWidth < 1000) {\n this.hostElement.classList.add('hidden');\n } else {\n if (localStorage.getItem('cauca-menu-status') === 'expanded') {\n this.keepMenuExpanded = true;\n this.hostElement.classList.add('keepExpanded');\n }\n\n this.hostElement.classList.add(this.keepMenuExpanded ? 'expanded' : 'collapsed');\n }\n }\n\n private onMouseOver(e: any): void {\n if (!this.keepMenuExpanded) {\n this.onExpandedMenu();\n }\n\n e.stopPropagation();\n }\n\n private onMouseOut(e: any): void {\n if (!this.keepMenuExpanded) {\n this.onCollpseMenu();\n }\n\n e.stopPropagation();\n }\n\n private onExpandedMenu(): void {\n if (window.innerWidth >= 1000) {\n this.hostElement.classList.remove('collapsed');\n this.hostElement.classList.add('expanded');\n }\n }\n\n private onCollpseMenu(): void {\n if (window.innerWidth >= 1000) {\n this.hostElement.classList.remove('expanded');\n this.hostElement.classList.add('collapsed');\n }\n }\n}\n","import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\nimport {NavigationEnd, Router} from '@angular/router';\nimport {MenuItem} from '../shared/models/menu-item';\n\n@Component({\n selector: 'cauca-menu-vertical',\n templateUrl: './cauca-menu-vertical.component.html',\n styleUrls: ['./cauca-menu-vertical.component.scss']\n})\nexport class CaucaMenuVerticalComponent implements OnInit {\n @Output()\n public itemClick = new EventEmitter();\n @Input()\n public menuItems: MenuItem[] = [];\n\n constructor(\n private router: Router,\n ) {\n this.router.events.subscribe((route: NavigationEnd) => {\n if (route instanceof NavigationEnd) {\n this.selectActiveRoute(route);\n }\n });\n }\n\n public ngOnInit(): void {\n }\n\n public goTo(path: string, e: any): void {\n this.router.navigate([path]);\n this.itemClick.emit();\n\n e.stopPropagation();\n }\n\n private selectActiveRoute(route: NavigationEnd): void {\n this.menuItems.forEach((menu: MenuItem) => {\n if (route.url) {\n menu.activated = (route.url === menu.path || (menu.childs.length && route.url.indexOf(menu.path) > -1));\n }\n\n menu.childs.forEach((subMenu: MenuItem) => {\n if (route.url) {\n subMenu.activated = (route.url === subMenu.path || route.urlAfterRedirects === subMenu.path);\n }\n });\n });\n }\n}\n","import { Component, OnInit, ElementRef, Input, ViewChild } from '@angular/core';\nimport { animate, state, style, transition, trigger } from '@angular/animations';\n\n@Component({\n selector: 'cauca-slideshow',\n templateUrl: './cauca-slideshow.component.html',\n styleUrls: ['./cauca-slideshow.component.scss'],\n animations: [\n trigger('slideUpDown', [\n state('in', style({ transform: 'translateY(0%)' })),\n state('out', style({ transform: 'translateY(-100%)' })),\n transition('in => out', [\n animate('500ms ease-in')\n ]),\n transition('out => in', [\n style({ transform: 'translateY(100%)' }),\n animate('500ms ease-in')\n ]),\n ]),\n trigger('slideLeftRight', [\n state('in', style({ transform: 'translateX(0%)' })),\n state('out', style({ transform: 'translateX(-100%)' })),\n transition('in => out', [\n animate('500ms ease-in')\n ]),\n transition('out => in', [\n style({ transform: 'translateX(100%)' }),\n animate('500ms ease-in')\n ]),\n ]),\n ],\n})\nexport class CaucaSlideshowComponent implements OnInit {\n private timer = null;\n private items = [];\n private states = [];\n private selectedIndex = 0;\n\n @ViewChild('container', { static: true })\n public container: ElementRef;\n @Input()\n public height = '150px';\n @Input()\n public autoPlay = true;\n\n @Input()\n set images(list: string[]) {\n this.items = list;\n this.restart();\n }\n get images(): string[] {\n return this.items;\n }\n\n constructor() { }\n\n public ngOnInit(): void {\n this.container.nativeElement.style.height = this.height;\n this.container.nativeElement.style.width = '100%';\n }\n\n public getState(index: number): string {\n if (this.states[index]) {\n return this.states[index];\n }\n\n return (this.selectedIndex === index ? 'in' : 'out');\n }\n\n public restart(): void {\n if (this.timer) {\n window.clearInterval(this.timer);\n }\n if (this.images && this.images.length) {\n this.timer = window.setInterval(() => this.changed('next'), 5000);\n }\n }\n\n public next(): void {\n if (this.selectedIndex < this.items.length - 1) {\n this.selectedIndex++;\n } else {\n this.selectedIndex = 0;\n }\n }\n\n private changed(action: string): void {\n this.states[this.selectedIndex] = 'out';\n this[action]();\n this.states[this.selectedIndex] = 'in';\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { CaucaCoreForChildModule } from '@cauca-911/core';\nimport { CaucaMaterialComponent } from './cauca-material.component';\nimport { CaucaInputFileComponent } from './cauca-input-file/cauca-input-file.component';\nimport { CaucaInputMultipleLangueComponent } from './cauca-input-multiple-langue/cauca-input-multiple-langue.component';\nimport { CaucaMenuSidebarComponent } from './cauca-menu-sidebar/cauca-menu-sidebar.component';\nimport { CaucaMenuVerticalComponent } from './cauca-menu-vertical/cauca-menu-vertical.component';\nimport { CaucaSimpleDialogComponent } from './cauca-simple-dialog/cauca-simple-dialog.component';\nimport { CaucaSlideshowComponent } from './cauca-slideshow/cauca-slideshow.component';\n\n@NgModule({\n declarations: [\n CaucaMaterialComponent,\n CaucaInputFileComponent,\n CaucaInputMultipleLangueComponent,\n CaucaMenuSidebarComponent,\n CaucaMenuVerticalComponent,\n CaucaSimpleDialogComponent,\n CaucaSlideshowComponent,\n ],\n imports: [\n CommonModule,\n CaucaCoreForChildModule,\n FontAwesomeModule,\n FormsModule,\n ReactiveFormsModule,\n MatButtonModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule,\n MatTabsModule,\n ],\n exports: [\n CaucaMaterialComponent,\n CaucaInputFileComponent,\n CaucaInputMultipleLangueComponent,\n CaucaMenuSidebarComponent,\n CaucaMenuVerticalComponent,\n CaucaSimpleDialogComponent,\n CaucaSlideshowComponent,\n ]\n})\nexport class CaucaMaterialModule { }\n","export class MenuItem {\n public activated: boolean;\n public childs: MenuItem[] = [];\n\n public constructor(\n public label: string,\n public path: string,\n public icon: string | string[] = '',\n ) {\n }\n}\n","/*\n * Public API Surface of cauca-material\n */\n\nexport * from './lib/cauca-material.service';\nexport * from './lib/cauca-material.component';\nexport * from './lib/cauca-material.module';\nexport * from './lib/cauca-input-file/cauca-input-file.component';\nexport * from './lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component';\nexport * from './lib/cauca-menu-sidebar/cauca-menu-sidebar.component';\nexport * from './lib/cauca-menu-vertical/cauca-menu-vertical.component';\nexport * from './lib/cauca-simple-dialog/cauca-simple-dialog.component';\nexport * from './lib/cauca-slideshow/cauca-slideshow.component';\n\nexport { MenuItem } from './lib/shared/models/menu-item';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {SimpleDialogData as ɵa} from './lib/shared/models/simple-dialog-data';"],"names":["Injectable","Component","MatDialogRef","Inject","MAT_DIALOG_DATA","EventEmitter","TranslateService","MatDialog","ViewChild","Output","Input","FormControl","Validators","CaucaCoreService","ElementRef","HostListener","router","NavigationEnd","Router","trigger","state","style","transition","animate","NgModule","CommonModule","CaucaCoreForChildModule","FontAwesomeModule","FormsModule","ReactiveFormsModule","MatButtonModule","MatFormFieldModule","MatIconModule","MatInputModule","MatTabsModule"],"mappings":";;;;;;;QAOE;SAAiB;;;;;gBALlBA,aAAU,SAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;;;QCKC;SAAiB;QAEV,yCAAQ,GAAR;SACN;;;;gBAVFC,YAAS,SAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,6EAA8C;iBAE/C;;;;;QCND;YAGW,YAAO,GAAa,EAAE,CAAC;SACjC;+BAAA;KAAA;;;QCOC,oCACU,SAAmD,EAC3B,IAAsB;YAD9C,cAAS,GAAT,SAAS,CAA0C;YAC3B,SAAI,GAAJ,IAAI,CAAkB;SACnD;QAEE,6CAAQ,GAAR,eAAoB;QAEpB,4CAAO,GAAP,UAAQ,WAAmB;YAChC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;SACnC;;;;gBAhBFA,YAAS,SAAC;oBACT,QAAQ,EAAE,qBAAqB;oBAC/B,sTAAmD;;iBAEpD;;;gBAPyBC,mBAAY;gBAC7B,gBAAgB,uBAWpBC,SAAM,SAACC,sBAAe;;;;QCavB,iCACY,gBAAkC,EAClC,MAAiB;YADjB,qBAAgB,GAAhB,gBAAgB,CAAkB;YAClC,WAAM,GAAN,MAAM,CAAW;YAjBrB,WAAM,GAAQ,EAAE,CAAC;YAKlB,YAAO,GAAG,IAAIC,eAAY,EAAE,CAAC;YAE7B,WAAM,GAAG,EAAE,CAAC;YAEZ,aAAQ,GAAG,KAAK,CAAC;YAEjB,SAAI,GAAG,EAAE,CAAC;YAEV,SAAI,GAAG,EAAE,CAAC;SAMhB;QAEM,0CAAQ,GAAR;YAAA,iBASN;YARG,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;gBAC1B,I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kBAAa;qBACd;oBACD,OAAO,EAAE;wBACP,sBAAsB;wBACtB,uBAAuB;wBACvB,iCAAiC;wBACjC,yBAAyB;wBACzB,0BAA0B;wBAC1B,0BAA0B;wBAC1B,uBAAuB;qBACxB;iBACF;;;;QC7CG,kBACW,KAAa,EACb,IAAY,EACZ,IAA4B;YAA5B,qBAAA,EAAA,SAA4B;YAF5B,UAAK,GAAL,KAAK,CAAQ;YACb,SAAI,GAAJ,IAAI,CAAQ;YACZ,SAAI,GAAJ,IAAI,CAAwB;YALhC,WAAM,GAAe,EAAE,CAAC;SAO9B;uBACJ;KAAA;;ICVD;;;;ICAA;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("@angular/material/button"),require("@angular/material/form-field"),require("@angular/material/icon"),require("@angular/material/input"),require("@angular/material/tabs"),require("@fortawesome/angular-fontawesome"),require("@cauca-911/core"),require("@angular/material/dialog"),require("@angular/router"),require("@angular/animations")):"function"==typeof define&&define.amd?define("@cauca-911/material",["exports","@angular/core","@angular/common","@angular/forms","@angular/material/button","@angular/material/form-field","@angular/material/icon","@angular/material/input","@angular/material/tabs","@fortawesome/angular-fontawesome","@cauca-911/core","@angular/material/dialog","@angular/router","@angular/animations"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["cauca-911"]=e["cauca-911"]||{},e["cauca-911"].material={}),e.ng.core,e.ng.common,e.ng.forms,e.ng.material.button,e.ng.material.formField,e.ng.material.icon,e.ng.material.input,e.ng.material.tabs,e["@fortawesome/angular-fontawesome"],e["@cauca-911/core"],e.ng.material.dialog,e.ng.router,e.ng.animations)}(this,(function(e,t,n,i,a,o,s,r,l,u,c,d,m,p){"use strict";var h=function(){};h.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new h},token:h,providedIn:"root"}),h.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],h.ctorParameters=function(){return[]};var g=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();g.decorators=[{type:t.Component,args:[{selector:"cauca-material",template:"<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>"}]}],g.ctorParameters=function(){return[]};var f=function(){this.buttons=[]},v=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.ngOnInit=function(){},e.prototype.onClick=function(e){this.dialogRef.close(e)},e}();v.decorators=[{type:t.Component,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}"]}]}],v.ctorParameters=function(){return[{type:d.MatDialogRef},{type:f,decorators:[{type:t.Inject,args:[d.MAT_DIALOG_DATA]}]}]};var b=function(){function e(e,n){this.translateService=e,this.dialog=n,this.labels={},this.readend=new t.EventEmitter,this.accept="",this.multiple=!1,this.icon="",this.text=""}return e.prototype.ngOnInit=function(){var e=this;this.icon||this.text||this.translateService.get(["material.select","material.dialogTitle","material.dialogMessage"]).subscribe((function(t){e.labels=t,e.text=t["material.select"]}))},e.prototype.onSelectFile=function(e){for(var t=this,n=function(n,i){var a=e.target.files[n],o=new FileReader;o.onerror=function(e){return t.onError(e)},o.onload=function(e){return t.onReadEnd(a,e)},o.readAsDataURL(a)},i=0,a=e.target.files.length;i<a;i++)n(i);e.target.files.length&&this.dialog.open(v,{width:"250px",disableClose:!0,data:{title:this.labels["material.dialogTitle"],message:this.labels["material.dialogMessage"]}})},e.prototype.openDialog=function(e){this.file&&this.file.nativeElement.click(),e.stopPropagation()},e.prototype.onError=function(e){throw e},e.prototype.onReadEnd=function(e,t){this.dialog.closeAll(),this.readend.emit({name:e.name,size:e.size,type:e.type,lastModifiedDate:e.lastModifiedDate,content:t.target.result,file:e})},e}();b.decorators=[{type:t.Component,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}"]}]}],b.ctorParameters=function(){return[{type:c.TranslateService},{type:d.MatDialog}]},b.propDecorators={file:[{type:t.ViewChild,args:["file",{static:!1}]}],readend:[{type:t.Output}],accept:[{type:t.Input}],multiple:[{type:t.Input}],icon:[{type:t.Input}],text:[{type:t.Input}]};var y=function(){function e(e,t){this.translate=t,this.value=[],this.forms=[],this.labels=[],this.selectedIndex=0,this.config=e.getConfig()}return e.prototype.ngOnInit=function(){var e=this;this.translate.get(this.config.languages).subscribe((function(t){for(var n in t)t[n]&&e.labels.push(t[n]);e.initializeForms()}))},e.prototype.onTagChanged=function(e){console.log("cauca-material",e),console.log("cauca-material",this.value),console.log("cauca-material",this.forms)},e.prototype.getErrorMessage=function(e){return this.forms[e].hasError("required")?"error.required":""},e.prototype.initializeForms=function(){var e=this;this.labels.forEach((function(t,n){e.forms[n]=new i.FormControl("",[i.Validators.required]),e.forms[n].setValue(e.value[n]||"")}))},e}();y.decorators=[{type:t.Component,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%}"]}]}],y.ctorParameters=function(){return[{type:c.CaucaCoreService},{type:c.TranslateService}]},y.propDecorators={value:[{type:t.Input}]};var x=function(){function e(e){var t=this;this.keepMenuExpanded=!1,this.menuItems=[],this.version="",this.hostElement=e.nativeElement,this.hostElement.addEventListener("mouseover",(function(e){return t.onMouseOver(e)})),this.hostElement.addEventListener("mouseout",(function(e){return t.onMouseOut(e)})),this.setDisplayMenu()}return e.prototype.ngOnInit=function(){},e.prototype.onResize=function(e){this.setDisplayMenu()},e.prototype.onMenuItemClick=function(){window.innerWidth<1e3&&this.hideOnMobile()},e.prototype.hideOnMobile=function(){this.hostElement.classList.remove("mobile"),this.hostElement.classList.add("hidden")},e.prototype.showOnMobile=function(){this.hostElement.classList.remove("hidden"),this.hostElement.classList.add("mobile")},e.prototype.onToggleCollapse=function(){this.keepMenuExpanded?(this.onCollpseMenu(),this.hostElement.classList.remove("keepExpanded")):(this.onExpandedMenu(),this.hostElement.classList.add("keepExpanded")),this.keepMenuExpanded=!this.keepMenuExpanded,localStorage.setItem("cauca-menu-status",this.keepMenuExpanded?"expanded":"collapsed")},e.prototype.setDisplayMenu=function(){this.hostElement.className="",window.innerWidth<1e3?this.hostElement.classList.add("hidden"):("expanded"===localStorage.getItem("cauca-menu-status")&&(this.keepMenuExpanded=!0,this.hostElement.classList.add("keepExpanded")),this.hostElement.classList.add(this.keepMenuExpanded?"expanded":"collapsed"))},e.prototype.onMouseOver=function(e){this.keepMenuExpanded||this.onExpandedMenu(),e.stopPropagation()},e.prototype.onMouseOut=function(e){this.keepMenuExpanded||this.onCollpseMenu(),e.stopPropagation()},e.prototype.onExpandedMenu=function(){window.innerWidth>=1e3&&(this.hostElement.classList.remove("collapsed"),this.hostElement.classList.add("expanded"))},e.prototype.onCollpseMenu=function(){window.innerWidth>=1e3&&(this.hostElement.classList.remove("expanded"),this.hostElement.classList.add("collapsed"))},e}();x.decorators=[{type:t.Component,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{display:flex;flex-direction:column;height:100%;overflow:hidden;scrollbar-color:rgba(0,0,0,.1) rgba(0,0,0,.2);scrollbar-width:5px;transition:all .1s ease-out}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.1);border-radius:5px}::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);border-radius:5px;outline:1px solid #708090}: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{max-width:0;min-width:0;width:0}:host.mobile{max-width:275px;min-width:275px;position:absolute;width:275px;z-index:10}:host.collapsed{max-width:75px;min-width:75px;width:75px}:host.expanded{max-width:275px;min-width:275px;width:275px}:host .close{display:none}:host.mobile .close{display:inline-block;position:absolute;right:0}.double-arrow{cursor:pointer;height:2.9em;line-height:2.9em;margin-top:-1em;opacity:.25;position:absolute}.double-arrow:hover{opacity:1}:host.collapsed .double-arrow:before,:host.expanded .double-arrow:before{content:"double_arrow";font-family:Material Icons;font-size:2.9em;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{opacity:1;transform:rotate(180deg)}.version{bottom:0;padding:1em}.abbr,.full{display:none}:host.collapsed .abbr,:host.expanded .full,:host.mobile .full{display:inline}@media only screen and (max-width:1000px){.double-arrow{display:none}}']}]}],x.ctorParameters=function(){return[{type:t.ElementRef}]},x.propDecorators={menuItems:[{type:t.Input}],version:[{type:t.Input}],onResize:[{type:t.HostListener,args:["window:resize",["$event"]]}]};var w=function(){function e(e){var n=this;this.router=e,this.itemClick=new t.EventEmitter,this.menuItems=[],this.router.events.subscribe((function(e){e instanceof m.NavigationEnd&&n.selectActiveRoute(e)}))}return e.prototype.ngOnInit=function(){},e.prototype.goTo=function(e,t){this.router.navigate([e]),this.itemClick.emit(),t.stopPropagation()},e.prototype.selectActiveRoute=function(e){this.menuItems.forEach((function(t){e.url&&(t.activated=e.url===t.path||t.childs.length&&e.url.indexOf(t.path)>-1),t.childs.forEach((function(t){e.url&&(t.activated=e.url===t.path||e.urlAfterRedirects===t.path)}))}))},e}();w.decorators=[{type:t.Component,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">&bull;</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{display:flex;flex-direction:row;padding:1em 0}h4 .menu>div{-ms-grid-row-align:center;align-self:center;flex:1 1 auto}.menu-dot{font-size:2em;max-width:1.1em}.menu-dot,.menu-icon{margin-right:.5em;text-align:center}.menu-icon{max-width:60px}.submenu{margin-left:1em}.submenu .menu{font-size:.9em;line-height:2.2em;padding:0}.submenu .menu:before{background:#fff;content:"";height:2.5em;margin-left:1.1em;margin-right:-1.17em;position:relative;width:.1em}']}]}],w.ctorParameters=function(){return[{type:m.Router}]},w.propDecorators={itemClick:[{type:t.Output}],menuItems:[{type:t.Input}]};var I=function(){function e(){this.timer=null,this.items=[],this.states=[],this.selectedIndex=0,this.height="150px",this.autoPlay=!0}return Object.defineProperty(e.prototype,"images",{get:function(){return this.items},set:function(e){this.items=e,this.restart()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.container.nativeElement.style.height=this.height,this.container.nativeElement.style.width="100%"},e.prototype.getState=function(e){return this.states[e]?this.states[e]:this.selectedIndex===e?"in":"out"},e.prototype.restart=function(){var e=this;this.timer&&window.clearInterval(this.timer),this.images&&this.images.length&&(this.timer=window.setInterval((function(){return e.changed("next")}),5e3))},e.prototype.next=function(){this.selectedIndex<this.items.length-1?this.selectedIndex++:this.selectedIndex=0},e.prototype.changed=function(e){this.states[this.selectedIndex]="out",this[e](),this.states[this.selectedIndex]="in"},e}();I.decorators=[{type:t.Component,args:[{selector:"cauca-slideshow",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>',animations:[p.trigger("slideUpDown",[p.state("in",p.style({transform:"translateY(0%)"})),p.state("out",p.style({transform:"translateY(-100%)"})),p.transition("in => out",[p.animate("500ms ease-in")]),p.transition("out => in",[p.style({transform:"translateY(100%)"}),p.animate("500ms ease-in")])]),p.trigger("slideLeftRight",[p.state("in",p.style({transform:"translateX(0%)"})),p.state("out",p.style({transform:"translateX(-100%)"})),p.transition("in => out",[p.animate("500ms ease-in")]),p.transition("out => in",[p.style({transform:"translateX(100%)"}),p.animate("500ms ease-in")])])],styles:[".slideshow{margin:0 auto;overflow:hidden;position:relative}.slideshow>div{height:100%;position:absolute;width:100%}img{display:block;margin:0 auto;max-height:100%;max-width:100%}"]}]}],I.ctorParameters=function(){return[]},I.propDecorators={container:[{type:t.ViewChild,args:["container",{static:!0}]}],height:[{type:t.Input}],autoPlay:[{type:t.Input}],images:[{type:t.Input}]};var M=function(){};M.decorators=[{type:t.NgModule,args:[{declarations:[g,b,y,x,w,v,I],imports:[n.CommonModule,c.CaucaCoreForChildModule,u.FontAwesomeModule,i.FormsModule,i.ReactiveFormsModule,a.MatButtonModule,o.MatFormFieldModule,s.MatIconModule,r.MatInputModule,l.MatTabsModule],exports:[g,b,y,x,w,v,I]}]}];var E=function(e,t,n){void 0===n&&(n=""),this.label=e,this.path=t,this.icon=n,this.childs=[]};e.CaucaInputFileComponent=b,e.CaucaInputMultipleLangueComponent=y,e.CaucaMaterialComponent=g,e.CaucaMaterialModule=M,e.CaucaMaterialService=h,e.CaucaMenuSidebarComponent=x,e.CaucaMenuVerticalComponent=w,e.CaucaSimpleDialogComponent=v,e.CaucaSlideshowComponent=I,e.MenuItem=E,e.ɵa=f,Object.defineProperty(e,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=cauca-911-material.umd.min.js.map