angular-matecu 1.0.4

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 (39) hide show
  1. package/README.md +166 -0
  2. package/angular-matecu.d.ts +5 -0
  3. package/bundles/angular-matecu.umd.js +561 -0
  4. package/bundles/angular-matecu.umd.js.map +1 -0
  5. package/esm2015/angular-matecu.js +5 -0
  6. package/esm2015/lib/modules/matecu-alert-box/components/matecu-alert-box/matecu-alert-box.component.js +69 -0
  7. package/esm2015/lib/modules/matecu-alert-box/components/matecu-alert-dialog/matecu-alert-dialog.component.js +55 -0
  8. package/esm2015/lib/modules/matecu-alert-box/matecu-alert-box.module.js +22 -0
  9. package/esm2015/lib/modules/matecu-alert-box/types/matecu-alert-dialog.js +2 -0
  10. package/esm2015/lib/modules/matecu-alert-box/types/matecu-altert-box-type.js +8 -0
  11. package/esm2015/lib/modules/matecu-spinner/components/matecu-spinner/matecu-spinner.component.js +61 -0
  12. package/esm2015/lib/modules/matecu-spinner/matecu-spinner.module.js +24 -0
  13. package/esm2015/lib/modules/matecu-spinner/services/matecu-spinner.service.js +44 -0
  14. package/esm2015/lib/modules/matecu-topbar-layout/components/matecu-topbar-body/matecu-topbar-body.component.js +23 -0
  15. package/esm2015/lib/modules/matecu-topbar-layout/components/matecu-topbar-fab/matecu-topbar-fab.component.js +33 -0
  16. package/esm2015/lib/modules/matecu-topbar-layout/components/matecu-topbar-layout/matecu-topbar-layout.component.js +115 -0
  17. package/esm2015/lib/modules/matecu-topbar-layout/components/matecu-topbar-title/matecu-topbar-title.component.js +23 -0
  18. package/esm2015/lib/modules/matecu-topbar-layout/matecu-topbar-layout.module.js +46 -0
  19. package/esm2015/public-api.js +26 -0
  20. package/fesm2015/angular-matecu.js +489 -0
  21. package/fesm2015/angular-matecu.js.map +1 -0
  22. package/lib/modules/matecu-alert-box/components/matecu-alert-box/matecu-alert-box.component.d.ts +19 -0
  23. package/lib/modules/matecu-alert-box/components/matecu-alert-dialog/matecu-alert-dialog.component.d.ts +22 -0
  24. package/lib/modules/matecu-alert-box/matecu-alert-box.module.d.ts +12 -0
  25. package/lib/modules/matecu-alert-box/types/matecu-alert-dialog.d.ts +9 -0
  26. package/lib/modules/matecu-alert-box/types/matecu-altert-box-type.d.ts +6 -0
  27. package/lib/modules/matecu-spinner/components/matecu-spinner/matecu-spinner.component.d.ts +20 -0
  28. package/lib/modules/matecu-spinner/matecu-spinner.module.d.ts +8 -0
  29. package/lib/modules/matecu-spinner/services/matecu-spinner.service.d.ts +15 -0
  30. package/lib/modules/matecu-topbar-layout/components/matecu-topbar-body/matecu-topbar-body.component.d.ts +9 -0
  31. package/lib/modules/matecu-topbar-layout/components/matecu-topbar-fab/matecu-topbar-fab.component.d.ts +12 -0
  32. package/lib/modules/matecu-topbar-layout/components/matecu-topbar-layout/matecu-topbar-layout.component.d.ts +32 -0
  33. package/lib/modules/matecu-topbar-layout/components/matecu-topbar-title/matecu-topbar-title.component.d.ts +9 -0
  34. package/lib/modules/matecu-topbar-layout/matecu-topbar-layout.module.d.ts +15 -0
  35. package/package.json +19 -0
  36. package/public-api.d.ts +22 -0
  37. package/src/css/main.css +1 -0
  38. package/src/scss/main.scss +2 -0
  39. package/src/scss/matecu-spinner-module/_matecu-spinner-component.scss +8 -0
@@ -0,0 +1,489 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Component, HostBinding, Input, NgModule, EventEmitter, Output, Inject } from '@angular/core';
3
+ import * as i4 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import { BehaviorSubject, Subject, of, fromEvent } from 'rxjs';
6
+ import { tap, takeUntil, map } from 'rxjs/operators';
7
+ import * as i5 from '@angular/forms';
8
+ import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
9
+ import * as i1 from '@angular/material/toolbar';
10
+ import { MatToolbarModule } from '@angular/material/toolbar';
11
+ import * as i2 from '@angular/material/button';
12
+ import { MatButtonModule } from '@angular/material/button';
13
+ import * as i3 from '@angular/material/icon';
14
+ import { MatIconModule } from '@angular/material/icon';
15
+ import * as i1$1 from '@angular/material/dialog';
16
+ import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
17
+
18
+ class MatecuSpinnerService {
19
+ constructor() {
20
+ this.active$ = new BehaviorSubject(false);
21
+ this.requestsKeys = [];
22
+ }
23
+ watch() {
24
+ return this.active$.pipe();
25
+ }
26
+ add(customKey) {
27
+ const key = (typeof (customKey) === 'string' && customKey.length > 0) ? customKey : this.createKey();
28
+ this.requestsKeys.push(key);
29
+ this.updateStatus();
30
+ return key;
31
+ }
32
+ remove(key) {
33
+ this.requestsKeys = this.requestsKeys.filter((requestKey) => requestKey !== key);
34
+ this.updateStatus();
35
+ }
36
+ clear() {
37
+ this.requestsKeys = [];
38
+ this.updateStatus();
39
+ }
40
+ updateStatus() {
41
+ const active = this.requestsKeys.length > 0;
42
+ this.active$.next(active);
43
+ }
44
+ createKey() {
45
+ const time = new Date().getTime();
46
+ const complement = Math.random();
47
+ return `${time}__${complement}`;
48
+ }
49
+ }
50
+ MatecuSpinnerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuSpinnerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
51
+ MatecuSpinnerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuSpinnerService, providedIn: 'root' });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuSpinnerService, decorators: [{
53
+ type: Injectable,
54
+ args: [{
55
+ providedIn: 'root',
56
+ }]
57
+ }], ctorParameters: function () { return []; } });
58
+
59
+ class MatecuSpinnerComponent {
60
+ constructor(spinnerService) {
61
+ this.spinnerService = spinnerService;
62
+ this.destroy$ = new Subject();
63
+ this.hiddenClass = 'matecu-spinner--hidden';
64
+ this.activeCache = false;
65
+ this.className = 'matecu-spinner';
66
+ this.color = '#2196F3';
67
+ this.global = false;
68
+ this.size = '70px';
69
+ }
70
+ get active() {
71
+ return this.activeCache;
72
+ }
73
+ set active(value) {
74
+ if (this.global) {
75
+ return;
76
+ }
77
+ this.activeCache = value;
78
+ this.className = value
79
+ ? this.className.replace(` ${this.hiddenClass}`, '')
80
+ : (this.className += ` ${this.hiddenClass}`);
81
+ }
82
+ ngOnDestroy() {
83
+ this.destroy$.next();
84
+ this.destroy$.complete();
85
+ }
86
+ ngOnInit() {
87
+ if (this.global) {
88
+ this.spinnerService.watch().pipe(tap(value => this.activeCache = value), takeUntil(this.destroy$)).subscribe();
89
+ }
90
+ }
91
+ }
92
+ MatecuSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuSpinnerComponent, deps: [{ token: MatecuSpinnerService }], target: i0.ɵɵFactoryTarget.Component });
93
+ MatecuSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.4", type: MatecuSpinnerComponent, selector: "matecu-spinner", inputs: { color: "color", global: "global", active: "active", size: "size" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<ng-container *ngIf=\"active\">\n <svg xmlns:svg=\"http://www.w3.org/2000/svg\" [attr.width]=\"size\" [attr.height]=\"size\"\n xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.0\" viewBox=\"0 0 128 128\" xml:space=\"preserve\">\n <rect x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" fill=\"transparent\" />\n <g>\n <path class=\"matecu-spinner__100\" d=\"M122.5 69.25H96.47a33.1 33.1 0 0 0 0-10.5h26.05a5.25 5.25 0 0 1 0 10.5z\" [attr.fill]=\"color\"\n fill-opacity=\"1\" />\n <path class=\"matecu-spinner__30\" d=\"M112.04 97.83L89.47 84.8a33.1 33.1 0 0 0 5.25-9.1l22.57 13.03a5.25 5.25 0 0 1-5.28 9.1z\" [attr.fill]=\"color\"\n fill-opacity=\"0.3\" />\n <path class=\"matecu-spinner__30\" d=\"M88.68 117.35L75.65 94.78a33.1 33.1 0 0 0 9.1-5.25l13.02 22.57a5.25 5.25 0 1 1-9.1 5.25z\"\n [attr.fill]=\"color\" fill-opacity=\"0.3\" />\n <path class=\"matecu-spinner__30\" d=\"M58.7 122.57V96.5a33.1 33.1 0 0 0 10.5 0v26.07a5.25 5.25 0 0 1-10.5 0z\" [attr.fill]=\"color\"\n fill-opacity=\"0.3\" />\n <path class=\"matecu-spinner__30\" d=\"M30.1 112.1l13.04-22.57a33.1 33.1 0 0 0 9.1 5.25L39.2 117.35a5.25 5.25 0 1 1-9.1-5.25z\" [attr.fill]=\"color\"\n fill-opacity=\"0.3\" />\n <path class=\"matecu-spinner__30\" d=\"M10.6 88.74L33.16 75.7a33.1 33.1 0 0 0 5.25 9.1L15.88 97.83a5.25 5.25 0 1 1-5.25-9.1z\" [attr.fill]=\"color\"\n fill-opacity=\"0.3\" />\n <path class=\"matecu-spinner__40\" d=\"M5.37 58.75h26.06a33.1 33.1 0 0 0 0 10.5H5.37a5.25 5.25 0 0 1 0-10.5z\" [attr.fill]=\"color\"\n fill-opacity=\"0.4\" />\n <path class=\"matecu-spinner__50\" d=\"M15.85 30.17L38.4 43.2a33.1 33.1 0 0 0-5.24 9.1L10.6 39.25a5.25 5.25 0 1 1 5.25-9.1z\" [attr.fill]=\"color\"\n fill-opacity=\"0.5\" />\n <path class=\"matecu-spinner__60\" d=\"M39.2 10.65l13.03 22.57a33.1 33.1 0 0 0-9.1 5.25l-13-22.57a5.25 5.25 0 1 1 9.1-5.25z\" [attr.fill]=\"color\"\n fill-opacity=\"0.6\" />\n <path class=\"matecu-spinner__70\" d=\"M69.2 5.43V31.5a33.1 33.1 0 0 0-10.5 0V5.42a5.25 5.25 0 1 1 10.5 0z\" [attr.fill]=\"color\"\n fill-opacity=\"0.7\" />\n <path class=\"matecu-spinner__80\" d=\"M97.77 15.9L84.75 38.47a33.1 33.1 0 0 0-9.1-5.25l13.03-22.57a5.25 5.25 0 1 1 9.1 5.25z\" [attr.fill]=\"color\"\n fill-opacity=\"0.8\" />\n <path class=\"matecu-spinner__90\" d=\"M117.3 39.26L94.7 52.3a33.1 33.1 0 0 0-5.25-9.1l22.57-13.03a5.25 5.25 0 0 1 5.25 9.1z\" [attr.fill]=\"color\"\n fill-opacity=\"0.9\" />\n <animateTransform attributeName=\"transform\" type=\"rotate\"\n values=\"0 64 64;30 64 64;60 64 64;90 64 64;120 64 64;150 64 64;180 64 64;210 64 64;240 64 64;270 64 64;300 64 64;330 64 64\"\n calcMode=\"discrete\" dur=\"600ms\" repeatCount=\"indefinite\"></animateTransform>\n </g>\n</svg>\n</ng-container>", styles: [".matecu-spinner{display:flex;align-items:center;justify-content:center}.matecu-spinner>svg{width:80px;height:80px}.matecu-spinner__hidden{display:none}"], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuSpinnerComponent, decorators: [{
95
+ type: Component,
96
+ args: [{
97
+ selector: 'matecu-spinner',
98
+ templateUrl: './matecu-spinner.component.html',
99
+ styleUrls: ['./matecu-spinner.component.css']
100
+ }]
101
+ }], ctorParameters: function () { return [{ type: MatecuSpinnerService }]; }, propDecorators: { className: [{
102
+ type: HostBinding,
103
+ args: ['class']
104
+ }], color: [{
105
+ type: Input
106
+ }], global: [{
107
+ type: Input
108
+ }], active: [{
109
+ type: Input
110
+ }], size: [{
111
+ type: Input
112
+ }] } });
113
+
114
+ class MatecuSpinnerModule {
115
+ }
116
+ MatecuSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
117
+ MatecuSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuSpinnerModule, declarations: [MatecuSpinnerComponent], imports: [CommonModule], exports: [MatecuSpinnerComponent] });
118
+ MatecuSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuSpinnerModule, imports: [[
119
+ CommonModule
120
+ ]] });
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuSpinnerModule, decorators: [{
122
+ type: NgModule,
123
+ args: [{
124
+ declarations: [MatecuSpinnerComponent],
125
+ imports: [
126
+ CommonModule
127
+ ],
128
+ exports: [
129
+ MatecuSpinnerComponent
130
+ ]
131
+ }]
132
+ }] });
133
+
134
+ class MatecuTopbarLayoutComponent {
135
+ constructor() {
136
+ this.className = 'matecu-topbar-layout';
137
+ this.showSearchInput = false;
138
+ this.search = false;
139
+ this.searchInput = new FormControl();
140
+ this.isProminent = false;
141
+ this.scrollingClass = 'matecu-topbar-layout--scrolling';
142
+ this.prominentClass = 'matecu-topbar-layout--prominent';
143
+ this.searchPlaceholder = 'Buscar';
144
+ this.color = 'primary';
145
+ this.navMenu = true;
146
+ this.actionMenu = false;
147
+ this.clickNavMenu = new EventEmitter();
148
+ this.clickActionMenu = new EventEmitter();
149
+ }
150
+ set prominent(value) {
151
+ this.isProminent = value;
152
+ if (value) {
153
+ this.className += ' ' + this.prominentClass;
154
+ }
155
+ else {
156
+ const regex = new RegExp(this.prominentClass, 'ig');
157
+ this.className = this.className.replace(regex, '').trim();
158
+ }
159
+ }
160
+ set searchControl(value) {
161
+ if (!!value) {
162
+ this.searchInput = value;
163
+ this.search = true;
164
+ }
165
+ else {
166
+ this.searchInput = new FormControl();
167
+ this.search = false;
168
+ }
169
+ }
170
+ ngOnInit() {
171
+ this.spyScroll().subscribe();
172
+ }
173
+ toogleSearch() {
174
+ this.showSearchInput = !this.showSearchInput;
175
+ }
176
+ closeSearch() {
177
+ this.showSearchInput = false;
178
+ this.searchInput.reset();
179
+ }
180
+ onMenuClick() {
181
+ }
182
+ onClickNavMenu() {
183
+ this.clickNavMenu.emit();
184
+ }
185
+ onClickActionMenu() {
186
+ this.clickActionMenu.emit();
187
+ }
188
+ spyScroll() {
189
+ const scrollabe = document.querySelector('.matecu-topbar-layout__body');
190
+ if (!scrollabe) {
191
+ return of(null);
192
+ }
193
+ return fromEvent(scrollabe, 'scroll').pipe(tap(() => this.applyScrollStyles(scrollabe)), map(() => scrollabe));
194
+ }
195
+ applyScrollStyles(scrollabe) {
196
+ if (!scrollabe) {
197
+ return;
198
+ }
199
+ const scrollPosition = scrollabe.scrollTop;
200
+ if (scrollPosition > 30) {
201
+ this.className += ' ' + this.scrollingClass;
202
+ }
203
+ if (scrollPosition < 10) {
204
+ const regexp = new RegExp(this.scrollingClass, 'ig');
205
+ this.className = this.className.replace(regexp, '').trim();
206
+ }
207
+ }
208
+ }
209
+ MatecuTopbarLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
210
+ MatecuTopbarLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.4", type: MatecuTopbarLayoutComponent, selector: "matecu-topbar-layout", inputs: { searchPlaceholder: "searchPlaceholder", color: "color", navMenu: "navMenu", actionMenu: "actionMenu", prominent: "prominent", searchControl: "searchControl" }, outputs: { clickNavMenu: "clickNavMenu", clickActionMenu: "clickActionMenu" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<div>\n <mat-toolbar [color]=\"color\">\n <div *ngIf=\"navMenu\">\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"onClickNavMenu()\"\n >\n <mat-icon>menu</mat-icon>\n </button>\n </div>\n <div class=\"matecu-topbar-layout__fab\">\n <ng-content select=\"matecu-topbar-fab\"></ng-content>\n </div>\n <div class=\"matecu-topbar-layout__title\">\n <ng-content select=\"matecu-topbar-title\"></ng-content>\n </div>\n \n <div *ngIf=\"search\">\n <button type=\"button\" (click)=\"toogleSearch()\" mat-icon-button>\n <mat-icon>search</mat-icon>\n </button>\n </div>\n \n <div *ngIf=\"actionMenu\">\n <button type=\"button\" (click)=\"onClickActionMenu()\" mat-icon-button>\n <mat-icon>more_vert</mat-icon>\n </button>\n </div>\n \n <div\n class=\"matecu-topbar-layout__search\"\n [ngClass]=\"{ active: showSearchInput }\"\n >\n <input\n type=\"text\"\n [formControl]=\"searchInput\"\n [placeholder]=\"searchPlaceholder\"\n />\n <button mat-icon-button type=\"button\" (click)=\"closeSearch()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </mat-toolbar>\n \n \n</div>\n<div class=\"matecu-topbar-layout__body\" >\n <ng-content select=\"matecu-topbar-body\"></ng-content>\n</div>\n", styles: [".matecu-topbar-layout,:host{display:grid;height:100vh;grid-template-rows:auto 1fr;position:relative;overflow:hidden}.matecu-topbar-layout,.matecu-topbar-layout *,:host,:host *{box-sizing:border-box}.matecu-topbar-layout mat-toolbar,:host mat-toolbar{position:relative;height:64px;max-height:64px;transition:all .3s}.matecu-topbar-layout mat-toolbar>div,:host mat-toolbar>div{display:flex;align-items:flex-start;min-height:100%}.matecu-topbar-layout__title,:host__title{margin-right:auto;height:100%;padding-left:10px;align-items:center!important}.matecu-topbar-layout__fab,:host__fab{z-index:1;height:100%;display:flex;align-items:flex-end!important}@media screen and (max-width:425px){.matecu-topbar-layout__fab,:host__fab{position:fixed;bottom:20px;right:20px;height:auto!important;min-height:auto!important}}.matecu-topbar-layout__search,:host__search{position:absolute;top:0;left:0;width:100%;transform:translateY(-110%);overflow:hidden;transition:transform .2s ease-in-out;display:flex;align-items:center!important;height:64px;min-height:64px!important;box-shadow:0 4px 8px #00000080}.matecu-topbar-layout__search input,:host__search input{position:absolute;display:block;top:0;left:0;width:100%;bottom:0;padding:0 50px 0 10px;border:none;border-bottom:1px solid #ccc}.matecu-topbar-layout__search button,:host__search button{z-index:2;position:absolute;right:10px;color:#000}.matecu-topbar-layout__search.active,:host__search.active{transform:translateY(0)}.matecu-topbar-layout__body,:host__body{padding-top:50px;padding-bottom:50px;overflow-y:auto}:host.matecu-topbar-layout--prominent .mat-toolbar{height:128px;max-height:128px;align-items:flex-start}:host.matecu-topbar-layout--scrolling .mat-toolbar{height:64px!important;max-height:64px!important;align-items:center!important;box-shadow:0 4px 8px #00000080}"], components: [{ type: i1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarLayoutComponent, decorators: [{
212
+ type: Component,
213
+ args: [{
214
+ selector: 'matecu-topbar-layout',
215
+ templateUrl: './matecu-topbar-layout.component.html',
216
+ styleUrls: ['./matecu-topbar-layout.component.scss']
217
+ }]
218
+ }], ctorParameters: function () { return []; }, propDecorators: { className: [{
219
+ type: HostBinding,
220
+ args: ['class']
221
+ }], searchPlaceholder: [{
222
+ type: Input
223
+ }], color: [{
224
+ type: Input
225
+ }], navMenu: [{
226
+ type: Input
227
+ }], actionMenu: [{
228
+ type: Input
229
+ }], clickNavMenu: [{
230
+ type: Output
231
+ }], clickActionMenu: [{
232
+ type: Output
233
+ }], prominent: [{
234
+ type: Input
235
+ }], searchControl: [{
236
+ type: Input
237
+ }] } });
238
+
239
+ class MatecuTopbarTitleComponent {
240
+ constructor() {
241
+ this.className = 'title';
242
+ }
243
+ ngOnInit() {
244
+ }
245
+ }
246
+ MatecuTopbarTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
247
+ MatecuTopbarTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.4", type: MatecuTopbarTitleComponent, selector: "matecu-topbar-title", host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [""] });
248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarTitleComponent, decorators: [{
249
+ type: Component,
250
+ args: [{
251
+ selector: 'matecu-topbar-title',
252
+ templateUrl: './matecu-topbar-title.component.html',
253
+ styleUrls: ['./matecu-topbar-title.component.scss']
254
+ }]
255
+ }], ctorParameters: function () { return []; }, propDecorators: { className: [{
256
+ type: HostBinding,
257
+ args: ['class']
258
+ }] } });
259
+
260
+ class MatecuTopbarBodyComponent {
261
+ constructor() {
262
+ this.className = 'matecu-topbar-body';
263
+ }
264
+ ngOnInit() {
265
+ }
266
+ }
267
+ MatecuTopbarBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
268
+ MatecuTopbarBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.4", type: MatecuTopbarBodyComponent, selector: "matecu-topbar-body", host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{display:block}"] });
269
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarBodyComponent, decorators: [{
270
+ type: Component,
271
+ args: [{
272
+ selector: 'matecu-topbar-body',
273
+ templateUrl: './matecu-topbar-body.component.html',
274
+ styleUrls: ['./matecu-topbar-body.component.scss']
275
+ }]
276
+ }], ctorParameters: function () { return []; }, propDecorators: { className: [{
277
+ type: HostBinding,
278
+ args: ['class']
279
+ }] } });
280
+
281
+ class MatecuTopbarFabComponent {
282
+ constructor() {
283
+ this.color = 'accent';
284
+ this.clickAction = new EventEmitter();
285
+ this.className = 'matecu-topbar-fab';
286
+ }
287
+ ngOnInit() {
288
+ }
289
+ onClickAction() {
290
+ this.clickAction.emit();
291
+ }
292
+ }
293
+ MatecuTopbarFabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarFabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
294
+ MatecuTopbarFabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.4", type: MatecuTopbarFabComponent, selector: "matecu-topbar-fab", inputs: { color: "color" }, outputs: { clickAction: "clickAction" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<button type=\"button\" mat-raised-button [color]=\"color\" (click)=\"onClickAction()\">\n <ng-content></ng-content>\n</button>", styles: [".matecu-topbar-fab,:host{display:flex;justify-content:center;align-content:center}.matecu-topbar-fab button,:host button{transform:translateY(50%);height:4rem;box-sizing:border-box;border-radius:4rem}@media screen and (max-width:425px){.matecu-topbar-fab button,:host button{transform:translateY(0)}}"], components: [{ type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
295
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarFabComponent, decorators: [{
296
+ type: Component,
297
+ args: [{
298
+ selector: 'matecu-topbar-fab',
299
+ templateUrl: './matecu-topbar-fab.component.html',
300
+ styleUrls: ['./matecu-topbar-fab.component.scss']
301
+ }]
302
+ }], ctorParameters: function () { return []; }, propDecorators: { color: [{
303
+ type: Input
304
+ }], clickAction: [{
305
+ type: Output
306
+ }], className: [{
307
+ type: HostBinding,
308
+ args: ['class']
309
+ }] } });
310
+
311
+ class MatecuTopbarLayoutModule {
312
+ }
313
+ MatecuTopbarLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
314
+ MatecuTopbarLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarLayoutModule, declarations: [MatecuTopbarLayoutComponent, MatecuTopbarTitleComponent, MatecuTopbarBodyComponent, MatecuTopbarFabComponent], imports: [CommonModule,
315
+ MatToolbarModule,
316
+ MatIconModule,
317
+ FormsModule,
318
+ ReactiveFormsModule,
319
+ MatButtonModule], exports: [MatecuTopbarLayoutComponent, MatecuTopbarTitleComponent, MatecuTopbarBodyComponent, MatecuTopbarFabComponent] });
320
+ MatecuTopbarLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarLayoutModule, imports: [[
321
+ CommonModule,
322
+ MatToolbarModule,
323
+ MatIconModule,
324
+ FormsModule,
325
+ ReactiveFormsModule,
326
+ MatButtonModule
327
+ ]] });
328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuTopbarLayoutModule, decorators: [{
329
+ type: NgModule,
330
+ args: [{
331
+ declarations: [MatecuTopbarLayoutComponent, MatecuTopbarTitleComponent, MatecuTopbarBodyComponent, MatecuTopbarFabComponent],
332
+ imports: [
333
+ CommonModule,
334
+ MatToolbarModule,
335
+ MatIconModule,
336
+ FormsModule,
337
+ ReactiveFormsModule,
338
+ MatButtonModule
339
+ ],
340
+ exports: [
341
+ MatecuTopbarLayoutComponent, MatecuTopbarTitleComponent, MatecuTopbarBodyComponent, MatecuTopbarFabComponent
342
+ ]
343
+ }]
344
+ }] });
345
+
346
+ var MatecuAlertBoxType;
347
+ (function (MatecuAlertBoxType) {
348
+ MatecuAlertBoxType["warning"] = "warning";
349
+ MatecuAlertBoxType["success"] = "success";
350
+ MatecuAlertBoxType["danger"] = "danger";
351
+ MatecuAlertBoxType["info"] = "info";
352
+ })(MatecuAlertBoxType || (MatecuAlertBoxType = {}));
353
+
354
+ class MatecuAlertBoxComponent {
355
+ constructor() {
356
+ this.classNameBase = 'matecu-alert-box';
357
+ this.alertIcon = false;
358
+ this.className = this.classNameBase;
359
+ }
360
+ get color() {
361
+ return this.alertColor;
362
+ }
363
+ set color(value) {
364
+ this.alertColor = value;
365
+ if (!!value) {
366
+ this.className = `${this.classNameBase} ${this.classNameBase}--${value}`;
367
+ }
368
+ else {
369
+ this.className = this.classNameBase;
370
+ }
371
+ this.updateIcon();
372
+ }
373
+ get icon() {
374
+ return this.alertIcon;
375
+ }
376
+ set icon(value) {
377
+ this.alertIcon = value;
378
+ }
379
+ ngOnInit() { }
380
+ updateIcon() {
381
+ switch (this.color) {
382
+ case MatecuAlertBoxType.danger:
383
+ this.iconValue = 'dangerous';
384
+ break;
385
+ case MatecuAlertBoxType.warning:
386
+ this.iconValue = 'warning';
387
+ break;
388
+ case MatecuAlertBoxType.success:
389
+ this.iconValue = 'check_circle';
390
+ break;
391
+ case MatecuAlertBoxType.info:
392
+ this.iconValue = 'info';
393
+ break;
394
+ default:
395
+ this.iconValue = null;
396
+ break;
397
+ }
398
+ }
399
+ }
400
+ MatecuAlertBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuAlertBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
401
+ MatecuAlertBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.4", type: MatecuAlertBoxComponent, selector: "matecu-alert-box", inputs: { color: "color", icon: "icon" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<ng-container *ngIf=\"icon && iconValue\">\n <div class=\"matecu-alert-box__icon\">\n <mat-icon>{{iconValue}}</mat-icon>\n </div>\n</ng-container>\n<div class=\"matecu-alert-box__content\">\n <ng-content>\n\n\n </ng-content>\n</div>\n", styles: [":host.matecu-alert-box{display:flex;padding:1rem;border-radius:.25rem;position:relative;border:1px solid #e0e0e0;box-sizing:border-box;margin:1rem 0}:host.matecu-alert-box--success{color:#0f5032;background-color:#d2e6dc;border-color:#badccd}:host.matecu-alert-box--danger{color:#821e28;background-color:#f8d7da;border-color:#f5c2c7}:host.matecu-alert-box--warning{color:#644d03;background-color:#fff3cd;border-color:#ffecb4}:host.matecu-alert-box--info{color:#055160;background-color:#cff4fc;border-color:#b6effb}:host.matecu-alert-box .matecu-alert-box__icon{display:flex;margin-right:1rem}:host.matecu-alert-box .matecu-alert-box__content{align-self:center}"], components: [{ type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuAlertBoxComponent, decorators: [{
403
+ type: Component,
404
+ args: [{
405
+ selector: 'matecu-alert-box',
406
+ templateUrl: './matecu-alert-box.component.html',
407
+ styleUrls: ['./matecu-alert-box.component.scss'],
408
+ }]
409
+ }], ctorParameters: function () { return []; }, propDecorators: { color: [{
410
+ type: Input
411
+ }], icon: [{
412
+ type: Input
413
+ }], className: [{
414
+ type: HostBinding,
415
+ args: ['class']
416
+ }] } });
417
+
418
+ class MatecuAlertDialogComponent {
419
+ constructor(dialogData, dialogRef) {
420
+ this.dialogData = dialogData;
421
+ this.dialogRef = dialogRef;
422
+ this.hasTitle = false;
423
+ this.hasDismissBtn = false;
424
+ this.hasActionBtn = false;
425
+ this.showActions = false;
426
+ this.setHasTitle();
427
+ this.setHasDismissBtn();
428
+ this.setHasActionBtn();
429
+ this.setShowActions();
430
+ }
431
+ ngOnInit() { }
432
+ activateAction() {
433
+ this.dialogRef.close(true);
434
+ }
435
+ setHasTitle() {
436
+ this.hasTitle = this.isValidString(this.dialogData.title);
437
+ }
438
+ setHasDismissBtn() {
439
+ this.hasDismissBtn = this.isValidString(this.dialogData.dismissText);
440
+ }
441
+ setHasActionBtn() {
442
+ this.hasActionBtn = this.isValidString(this.dialogData.action);
443
+ }
444
+ setShowActions() {
445
+ this.showActions = this.hasActionBtn || this.hasDismissBtn;
446
+ }
447
+ isValidString(str) {
448
+ const isValid = typeof str === 'string' && str.trim().length > 0;
449
+ return isValid;
450
+ }
451
+ }
452
+ MatecuAlertDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuAlertDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
453
+ MatecuAlertDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.4", type: MatecuAlertDialogComponent, selector: "matecu-alert-dialog", ngImport: i0, template: "<h2 mat-dialog-title *ngIf=\"hasTitle\">{{dialogData.title}}</h2>\n<mat-dialog-content>\n\n <matecu-alert-box [color]=\"dialogData.type\" [icon]=\"!!dialogData.icon\">\n {{dialogData.message}}\n </matecu-alert-box>\n\n</mat-dialog-content>\n<mat-dialog-actions *ngIf=\"showActions\" align=\"end\">\n <button mat-button color=\"primary\" tabindex=\"-1\" mat-dialog-close\n *ngIf=\"hasDismissBtn\">{{dialogData.dismissText}}</button>\n <button mat-button color=\"primary\" tabindex=\"-2\" (click)=\"activateAction()\"\n *ngIf=\"hasActionBtn\">{{dialogData.action}}</button>\n</mat-dialog-actions>\n", styles: [""], components: [{ type: MatecuAlertBoxComponent, selector: "matecu-alert-box", inputs: ["color", "icon"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
454
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuAlertDialogComponent, decorators: [{
455
+ type: Component,
456
+ args: [{
457
+ selector: 'matecu-alert-dialog',
458
+ templateUrl: './matecu-alert-dialog.component.html',
459
+ styleUrls: ['./matecu-alert-dialog.component.scss'],
460
+ }]
461
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
462
+ type: Inject,
463
+ args: [MAT_DIALOG_DATA]
464
+ }] }, { type: i1$1.MatDialogRef }]; } });
465
+
466
+ class MatecuAlertBoxModule {
467
+ }
468
+ MatecuAlertBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuAlertBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
469
+ MatecuAlertBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuAlertBoxModule, declarations: [MatecuAlertBoxComponent, MatecuAlertDialogComponent], imports: [CommonModule, MatIconModule, MatDialogModule, MatButtonModule], exports: [MatecuAlertBoxComponent] });
470
+ MatecuAlertBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuAlertBoxModule, imports: [[CommonModule, MatIconModule, MatDialogModule, MatButtonModule]] });
471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0, type: MatecuAlertBoxModule, decorators: [{
472
+ type: NgModule,
473
+ args: [{
474
+ declarations: [MatecuAlertBoxComponent, MatecuAlertDialogComponent],
475
+ imports: [CommonModule, MatIconModule, MatDialogModule, MatButtonModule],
476
+ exports: [MatecuAlertBoxComponent],
477
+ }]
478
+ }] });
479
+
480
+ /*
481
+ * Public API Surface of angular-matecu
482
+ */
483
+
484
+ /**
485
+ * Generated bundle index. Do not edit.
486
+ */
487
+
488
+ export { MatecuAlertBoxComponent, MatecuAlertBoxModule, MatecuAlertBoxType, MatecuAlertDialogComponent, MatecuSpinnerComponent, MatecuSpinnerModule, MatecuSpinnerService, MatecuTopbarBodyComponent, MatecuTopbarFabComponent, MatecuTopbarLayoutComponent, MatecuTopbarLayoutModule, MatecuTopbarTitleComponent };
489
+ //# sourceMappingURL=angular-matecu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-matecu.js","sources":["../../../projects/angular-matecu/src/lib/modules/matecu-spinner/services/matecu-spinner.service.ts","../../../projects/angular-matecu/src/lib/modules/matecu-spinner/components/matecu-spinner/matecu-spinner.component.ts","../../../projects/angular-matecu/src/lib/modules/matecu-spinner/components/matecu-spinner/matecu-spinner.component.html","../../../projects/angular-matecu/src/lib/modules/matecu-spinner/matecu-spinner.module.ts","../../../projects/angular-matecu/src/lib/modules/matecu-topbar-layout/components/matecu-topbar-layout/matecu-topbar-layout.component.ts","../../../projects/angular-matecu/src/lib/modules/matecu-topbar-layout/components/matecu-topbar-layout/matecu-topbar-layout.component.html","../../../projects/angular-matecu/src/lib/modules/matecu-topbar-layout/components/matecu-topbar-title/matecu-topbar-title.component.ts","../../../projects/angular-matecu/src/lib/modules/matecu-topbar-layout/components/matecu-topbar-title/matecu-topbar-title.component.html","../../../projects/angular-matecu/src/lib/modules/matecu-topbar-layout/components/matecu-topbar-body/matecu-topbar-body.component.ts","../../../projects/angular-matecu/src/lib/modules/matecu-topbar-layout/components/matecu-topbar-body/matecu-topbar-body.component.html","../../../projects/angular-matecu/src/lib/modules/matecu-topbar-layout/components/matecu-topbar-fab/matecu-topbar-fab.component.ts","../../../projects/angular-matecu/src/lib/modules/matecu-topbar-layout/components/matecu-topbar-fab/matecu-topbar-fab.component.html","../../../projects/angular-matecu/src/lib/modules/matecu-topbar-layout/matecu-topbar-layout.module.ts","../../../projects/angular-matecu/src/lib/modules/matecu-alert-box/types/matecu-altert-box-type.ts","../../../projects/angular-matecu/src/lib/modules/matecu-alert-box/components/matecu-alert-box/matecu-alert-box.component.ts","../../../projects/angular-matecu/src/lib/modules/matecu-alert-box/components/matecu-alert-box/matecu-alert-box.component.html","../../../projects/angular-matecu/src/lib/modules/matecu-alert-box/components/matecu-alert-dialog/matecu-alert-dialog.component.ts","../../../projects/angular-matecu/src/lib/modules/matecu-alert-box/components/matecu-alert-dialog/matecu-alert-dialog.component.html","../../../projects/angular-matecu/src/lib/modules/matecu-alert-box/matecu-alert-box.module.ts","../../../projects/angular-matecu/src/public-api.ts","../../../projects/angular-matecu/src/angular-matecu.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class MatecuSpinnerService {\n private active$ = new BehaviorSubject<boolean>(false);\n private requestsKeys: string[] = [];\n constructor() {}\n\n watch(): Observable<boolean> {\n return this.active$.pipe();\n }\n add(customKey?: string): string {\n const key = (typeof(customKey) === 'string' && customKey.length > 0) ? customKey : this.createKey();\n this.requestsKeys.push(key);\n this.updateStatus();\n return key;\n }\n remove(key: string): void {\n this.requestsKeys = this.requestsKeys.filter(\n (requestKey) => requestKey !== key\n );\n this.updateStatus();\n }\n clear(): void {\n this.requestsKeys = [];\n this.updateStatus();\n }\n private updateStatus(): void {\n const active = this.requestsKeys.length > 0;\n this.active$.next(active);\n }\n private createKey(): string {\n const time = new Date().getTime();\n const complement = Math.random();\n return `${time}__${complement}`;\n }\n}\n","import { Component, HostBinding, Input, OnDestroy, OnInit } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { MatecuSpinnerService } from '../../services/matecu-spinner.service';\nimport { takeUntil, tap } from 'rxjs/operators';\n@Component({\n selector: 'matecu-spinner',\n templateUrl: './matecu-spinner.component.html',\n styleUrls: ['./matecu-spinner.component.css']\n})\nexport class MatecuSpinnerComponent implements OnInit, OnDestroy {\n\n private destroy$ = new Subject();\n private hiddenClass = 'matecu-spinner--hidden';\n private activeCache = false;\n @HostBinding('class') className = 'matecu-spinner';\n @Input() color = '#2196F3';\n @Input() global = false;\n get active(): boolean{\n return this.activeCache;\n }\n @Input() set active(value: boolean) {\n if (this.global) {\n return;\n }\n this.activeCache = value;\n this.className = value\n ? this.className.replace(` ${this.hiddenClass}`, '')\n : (this.className += ` ${this.hiddenClass}`);\n }\n @Input() size = '70px';\n\n constructor(\n private spinnerService: MatecuSpinnerService,\n ) {}\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n ngOnInit(): void {\n if (this.global) {\n this.spinnerService.watch().pipe(\n tap(value => this.activeCache = value),\n takeUntil(this.destroy$)\n ).subscribe();\n }\n }\n}\n","<ng-container *ngIf=\"active\">\n <svg xmlns:svg=\"http://www.w3.org/2000/svg\" [attr.width]=\"size\" [attr.height]=\"size\"\n xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.0\" viewBox=\"0 0 128 128\" xml:space=\"preserve\">\n <rect x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" fill=\"transparent\" />\n <g>\n <path class=\"matecu-spinner__100\" d=\"M122.5 69.25H96.47a33.1 33.1 0 0 0 0-10.5h26.05a5.25 5.25 0 0 1 0 10.5z\" [attr.fill]=\"color\"\n fill-opacity=\"1\" />\n <path class=\"matecu-spinner__30\" d=\"M112.04 97.83L89.47 84.8a33.1 33.1 0 0 0 5.25-9.1l22.57 13.03a5.25 5.25 0 0 1-5.28 9.1z\" [attr.fill]=\"color\"\n fill-opacity=\"0.3\" />\n <path class=\"matecu-spinner__30\" d=\"M88.68 117.35L75.65 94.78a33.1 33.1 0 0 0 9.1-5.25l13.02 22.57a5.25 5.25 0 1 1-9.1 5.25z\"\n [attr.fill]=\"color\" fill-opacity=\"0.3\" />\n <path class=\"matecu-spinner__30\" d=\"M58.7 122.57V96.5a33.1 33.1 0 0 0 10.5 0v26.07a5.25 5.25 0 0 1-10.5 0z\" [attr.fill]=\"color\"\n fill-opacity=\"0.3\" />\n <path class=\"matecu-spinner__30\" d=\"M30.1 112.1l13.04-22.57a33.1 33.1 0 0 0 9.1 5.25L39.2 117.35a5.25 5.25 0 1 1-9.1-5.25z\" [attr.fill]=\"color\"\n fill-opacity=\"0.3\" />\n <path class=\"matecu-spinner__30\" d=\"M10.6 88.74L33.16 75.7a33.1 33.1 0 0 0 5.25 9.1L15.88 97.83a5.25 5.25 0 1 1-5.25-9.1z\" [attr.fill]=\"color\"\n fill-opacity=\"0.3\" />\n <path class=\"matecu-spinner__40\" d=\"M5.37 58.75h26.06a33.1 33.1 0 0 0 0 10.5H5.37a5.25 5.25 0 0 1 0-10.5z\" [attr.fill]=\"color\"\n fill-opacity=\"0.4\" />\n <path class=\"matecu-spinner__50\" d=\"M15.85 30.17L38.4 43.2a33.1 33.1 0 0 0-5.24 9.1L10.6 39.25a5.25 5.25 0 1 1 5.25-9.1z\" [attr.fill]=\"color\"\n fill-opacity=\"0.5\" />\n <path class=\"matecu-spinner__60\" d=\"M39.2 10.65l13.03 22.57a33.1 33.1 0 0 0-9.1 5.25l-13-22.57a5.25 5.25 0 1 1 9.1-5.25z\" [attr.fill]=\"color\"\n fill-opacity=\"0.6\" />\n <path class=\"matecu-spinner__70\" d=\"M69.2 5.43V31.5a33.1 33.1 0 0 0-10.5 0V5.42a5.25 5.25 0 1 1 10.5 0z\" [attr.fill]=\"color\"\n fill-opacity=\"0.7\" />\n <path class=\"matecu-spinner__80\" d=\"M97.77 15.9L84.75 38.47a33.1 33.1 0 0 0-9.1-5.25l13.03-22.57a5.25 5.25 0 1 1 9.1 5.25z\" [attr.fill]=\"color\"\n fill-opacity=\"0.8\" />\n <path class=\"matecu-spinner__90\" d=\"M117.3 39.26L94.7 52.3a33.1 33.1 0 0 0-5.25-9.1l22.57-13.03a5.25 5.25 0 0 1 5.25 9.1z\" [attr.fill]=\"color\"\n fill-opacity=\"0.9\" />\n <animateTransform attributeName=\"transform\" type=\"rotate\"\n values=\"0 64 64;30 64 64;60 64 64;90 64 64;120 64 64;150 64 64;180 64 64;210 64 64;240 64 64;270 64 64;300 64 64;330 64 64\"\n calcMode=\"discrete\" dur=\"600ms\" repeatCount=\"indefinite\"></animateTransform>\n </g>\n</svg>\n</ng-container>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatecuSpinnerComponent } from './components/matecu-spinner/matecu-spinner.component';\nimport { MatecuSpinnerService } from './services/matecu-spinner.service';\n\n\n\n@NgModule({\n declarations: [MatecuSpinnerComponent],\n imports: [\n CommonModule\n ],\n exports: [\n MatecuSpinnerComponent\n ]\n})\nexport class MatecuSpinnerModule { }\n","import { Component, ElementRef, EventEmitter, HostBinding, Input, OnInit, Output, ViewChild } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { ParamMap } from '@angular/router';\nimport { fromEvent, Observable, of } from 'rxjs';\nimport { map, tap } from 'rxjs/operators';\n@Component({\n selector: 'matecu-topbar-layout',\n templateUrl: './matecu-topbar-layout.component.html',\n styleUrls: ['./matecu-topbar-layout.component.scss']\n})\nexport class MatecuTopbarLayoutComponent implements OnInit {\n\n @HostBinding('class') className = 'matecu-topbar-layout';\n showSearchInput = false;\n search = false;\n searchInput: FormControl = new FormControl();\n isProminent = false;\n private scrollingClass = 'matecu-topbar-layout--scrolling';\n private prominentClass = 'matecu-topbar-layout--prominent';\n @Input() searchPlaceholder = 'Buscar';\n @Input() color = 'primary';\n @Input() navMenu = true;\n @Input() actionMenu = false;\n @Output() clickNavMenu = new EventEmitter<void>();\n @Output() clickActionMenu = new EventEmitter<void>();\n @Input() set prominent(value: boolean) {\n this.isProminent = value;\n if (value) {\n this.className += ' ' + this.prominentClass;\n } else {\n const regex = new RegExp(this.prominentClass, 'ig');\n this.className = this.className.replace(regex, '').trim();\n }\n }\n @Input() set searchControl(value: FormControl | null) {\n if (!!value) {\n this.searchInput = value;\n this.search = true;\n } else {\n this.searchInput = new FormControl();\n this.search = false;\n }\n }\n constructor() { }\n\n ngOnInit(): void {\n this.spyScroll().subscribe();\n }\n\n toogleSearch(): void {\n this.showSearchInput = !this.showSearchInput;\n }\n closeSearch(): void {\n this.showSearchInput = false;\n this.searchInput.reset();\n }\n onMenuClick(): void {\n }\n onClickNavMenu(): void {\n this.clickNavMenu.emit();\n }\n onClickActionMenu(): void {\n this.clickActionMenu.emit();\n }\n spyScroll(): Observable<HTMLElement | null> {\n const scrollabe: HTMLElement | null = document.querySelector('.matecu-topbar-layout__body');\n if (!scrollabe) {\n return of(null);\n }\n return fromEvent(scrollabe, 'scroll').pipe(\n tap(() => this.applyScrollStyles(scrollabe)),\n map(() => scrollabe)\n );\n }\n applyScrollStyles(scrollabe: HTMLElement): void {\n if (!scrollabe) {\n return;\n }\n const scrollPosition = scrollabe.scrollTop;\n if (scrollPosition > 30) {\n this.className += ' ' + this.scrollingClass;\n }\n if (scrollPosition < 10) {\n const regexp = new RegExp(this.scrollingClass, 'ig');\n this.className = this.className.replace(regexp, '').trim();\n }\n }\n}\n","<div>\n <mat-toolbar [color]=\"color\">\n <div *ngIf=\"navMenu\">\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"onClickNavMenu()\"\n >\n <mat-icon>menu</mat-icon>\n </button>\n </div>\n <div class=\"matecu-topbar-layout__fab\">\n <ng-content select=\"matecu-topbar-fab\"></ng-content>\n </div>\n <div class=\"matecu-topbar-layout__title\">\n <ng-content select=\"matecu-topbar-title\"></ng-content>\n </div>\n \n <div *ngIf=\"search\">\n <button type=\"button\" (click)=\"toogleSearch()\" mat-icon-button>\n <mat-icon>search</mat-icon>\n </button>\n </div>\n \n <div *ngIf=\"actionMenu\">\n <button type=\"button\" (click)=\"onClickActionMenu()\" mat-icon-button>\n <mat-icon>more_vert</mat-icon>\n </button>\n </div>\n \n <div\n class=\"matecu-topbar-layout__search\"\n [ngClass]=\"{ active: showSearchInput }\"\n >\n <input\n type=\"text\"\n [formControl]=\"searchInput\"\n [placeholder]=\"searchPlaceholder\"\n />\n <button mat-icon-button type=\"button\" (click)=\"closeSearch()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </mat-toolbar>\n \n \n</div>\n<div class=\"matecu-topbar-layout__body\" >\n <ng-content select=\"matecu-topbar-body\"></ng-content>\n</div>\n","import { Component, HostBinding, OnInit } from '@angular/core';\n\n@Component({\n selector: 'matecu-topbar-title',\n templateUrl: './matecu-topbar-title.component.html',\n styleUrls: ['./matecu-topbar-title.component.scss']\n})\nexport class MatecuTopbarTitleComponent implements OnInit {\n\n @HostBinding('class') className = 'title';\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<ng-content></ng-content>","import { Component, HostBinding, OnInit } from '@angular/core';\n\n@Component({\n selector: 'matecu-topbar-body',\n templateUrl: './matecu-topbar-body.component.html',\n styleUrls: ['./matecu-topbar-body.component.scss']\n})\nexport class MatecuTopbarBodyComponent implements OnInit {\n\n @HostBinding('class') className = 'matecu-topbar-body';\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<ng-content></ng-content>","import { Component, EventEmitter, HostBinding, Input, OnInit, Output } from '@angular/core';\n\n@Component({\n selector: 'matecu-topbar-fab',\n templateUrl: './matecu-topbar-fab.component.html',\n styleUrls: ['./matecu-topbar-fab.component.scss']\n})\nexport class MatecuTopbarFabComponent implements OnInit {\n\n @Input() color = 'accent';\n @Output() clickAction = new EventEmitter<void>();\n constructor() { }\n\n @HostBinding('class') className = 'matecu-topbar-fab';\n ngOnInit(): void {\n }\n\n onClickAction(): void {\n this.clickAction.emit();\n }\n\n}\n","<button type=\"button\" mat-raised-button [color]=\"color\" (click)=\"onClickAction()\">\n <ng-content></ng-content>\n</button>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatecuTopbarLayoutComponent } from './components/matecu-topbar-layout/matecu-topbar-layout.component';\nimport { MatecuTopbarTitleComponent } from './components/matecu-topbar-title/matecu-topbar-title.component';\nimport { MatecuTopbarBodyComponent } from './components/matecu-topbar-body/matecu-topbar-body.component';\nimport {MatToolbarModule} from '@angular/material/toolbar';\nimport {MatIconModule} from '@angular/material/icon';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport {MatButtonModule} from '@angular/material/button';\nimport { MatecuTopbarFabComponent } from './components/matecu-topbar-fab/matecu-topbar-fab.component';\n\n\n\n\n@NgModule({\n declarations: [MatecuTopbarLayoutComponent, MatecuTopbarTitleComponent, MatecuTopbarBodyComponent, MatecuTopbarFabComponent],\n imports: [\n CommonModule,\n MatToolbarModule,\n MatIconModule,\n FormsModule,\n ReactiveFormsModule,\n MatButtonModule\n ],\n exports: [\n MatecuTopbarLayoutComponent, MatecuTopbarTitleComponent, MatecuTopbarBodyComponent, MatecuTopbarFabComponent\n ]\n})\nexport class MatecuTopbarLayoutModule { }\n","export enum MatecuAlertBoxType {\n warning = 'warning',\n success = 'success',\n danger = 'danger',\n info = 'info',\n}\n","import { Component, HostBinding, Input, OnInit } from '@angular/core';\nimport { MatecuAlertBoxType } from '../../types/matecu-altert-box-type';\n\n@Component({\n selector: 'matecu-alert-box',\n templateUrl: './matecu-alert-box.component.html',\n styleUrls: ['./matecu-alert-box.component.scss'],\n})\nexport class MatecuAlertBoxComponent implements OnInit {\n classNameBase = 'matecu-alert-box';\n alertColor?: MatecuAlertBoxType | undefined | string | null;\n iconValue?: string | null | undefined;\n private alertIcon = false;\n get color(): MatecuAlertBoxType | undefined | string | null {\n return this.alertColor;\n }\n @Input() set color(value: MatecuAlertBoxType | undefined | string | null) {\n this.alertColor = value;\n if (!!value) {\n this.className = `${this.classNameBase} ${this.classNameBase}--${value}`;\n } else {\n this.className = this.classNameBase;\n }\n this.updateIcon();\n }\n get icon(): boolean {\n return this.alertIcon;\n }\n @Input() set icon(value: boolean) {\n this.alertIcon = value;\n }\n @HostBinding('class') className = this.classNameBase;\n constructor() {}\n\n ngOnInit(): void {}\n\n private updateIcon(): void {\n switch (this.color) {\n case MatecuAlertBoxType.danger:\n this.iconValue = 'dangerous';\n break;\n case MatecuAlertBoxType.warning:\n this.iconValue = 'warning';\n break;\n case MatecuAlertBoxType.success:\n this.iconValue = 'check_circle';\n break;\n case MatecuAlertBoxType.info:\n this.iconValue = 'info';\n break;\n default:\n this.iconValue = null;\n break;\n }\n }\n}\n","<ng-container *ngIf=\"icon && iconValue\">\n <div class=\"matecu-alert-box__icon\">\n <mat-icon>{{iconValue}}</mat-icon>\n </div>\n</ng-container>\n<div class=\"matecu-alert-box__content\">\n <ng-content>\n\n\n </ng-content>\n</div>\n","import { Component, Inject, OnInit } from '@angular/core';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { MatecuAlertDialogData } from '../../types/matecu-alert-dialog';\n@Component({\n selector: 'matecu-alert-dialog',\n templateUrl: './matecu-alert-dialog.component.html',\n styleUrls: ['./matecu-alert-dialog.component.scss'],\n})\nexport class MatecuAlertDialogComponent implements OnInit {\n hasTitle = false;\n hasDismissBtn = false;\n hasActionBtn = false;\n showActions = false;\n constructor(\n @Inject(MAT_DIALOG_DATA) public dialogData: MatecuAlertDialogData,\n public dialogRef: MatDialogRef<MatecuAlertDialogComponent>\n ) {\n this.setHasTitle();\n this.setHasDismissBtn();\n this.setHasActionBtn();\n this.setShowActions();\n }\n\n ngOnInit(): void {}\n\n activateAction(): void {\n this.dialogRef.close(true);\n }\n\n private setHasTitle(): void {\n this.hasTitle = this.isValidString(this.dialogData.title);\n }\n private setHasDismissBtn(): void {\n this.hasDismissBtn = this.isValidString(this.dialogData.dismissText);\n }\n\n private setHasActionBtn(): void {\n this.hasActionBtn = this.isValidString(this.dialogData.action);\n }\n private setShowActions(): void {\n this.showActions = this.hasActionBtn || this.hasDismissBtn;\n }\n private isValidString(str: string | null | undefined): boolean {\n const isValid = typeof str === 'string' && str.trim().length > 0;\n return isValid;\n }\n}\n","<h2 mat-dialog-title *ngIf=\"hasTitle\">{{dialogData.title}}</h2>\n<mat-dialog-content>\n\n <matecu-alert-box [color]=\"dialogData.type\" [icon]=\"!!dialogData.icon\">\n {{dialogData.message}}\n </matecu-alert-box>\n\n</mat-dialog-content>\n<mat-dialog-actions *ngIf=\"showActions\" align=\"end\">\n <button mat-button color=\"primary\" tabindex=\"-1\" mat-dialog-close\n *ngIf=\"hasDismissBtn\">{{dialogData.dismissText}}</button>\n <button mat-button color=\"primary\" tabindex=\"-2\" (click)=\"activateAction()\"\n *ngIf=\"hasActionBtn\">{{dialogData.action}}</button>\n</mat-dialog-actions>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatecuAlertBoxComponent } from './components/matecu-alert-box/matecu-alert-box.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatecuAlertDialogComponent } from './components/matecu-alert-dialog/matecu-alert-dialog.component';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\n\n@NgModule({\n declarations: [MatecuAlertBoxComponent, MatecuAlertDialogComponent],\n imports: [CommonModule, MatIconModule, MatDialogModule, MatButtonModule],\n exports: [MatecuAlertBoxComponent],\n})\nexport class MatecuAlertBoxModule {}\n","/*\n * Public API Surface of angular-matecu\n */\n\n/**\n * Modulo spinner\n */\nexport * from './lib/modules/matecu-spinner/matecu-spinner.module';\nexport * from './lib/modules/matecu-spinner/components/matecu-spinner/matecu-spinner.component';\nexport * from './lib/modules/matecu-spinner/services/matecu-spinner.service';\n\n/**\n * Módulo topbar-layout\n */\n\nexport * from './lib/modules/matecu-topbar-layout/matecu-topbar-layout.module';\nexport * from './lib/modules/matecu-topbar-layout/components/matecu-topbar-body/matecu-topbar-body.component';\nexport * from './lib/modules/matecu-topbar-layout/components/matecu-topbar-fab/matecu-topbar-fab.component';\nexport * from './lib/modules/matecu-topbar-layout/components/matecu-topbar-layout/matecu-topbar-layout.component';\nexport * from './lib/modules/matecu-topbar-layout/components/matecu-topbar-title/matecu-topbar-title.component';\n\n/**\n * Módulo alert-box\n */\n\nexport * from './lib/modules/matecu-alert-box/matecu-alert-box.module';\nexport * from './lib/modules/matecu-alert-box/components/matecu-alert-box/matecu-alert-box.component';\nexport * from './lib/modules/matecu-alert-box/components/matecu-alert-dialog/matecu-alert-dialog.component';\nexport * from './lib/modules/matecu-alert-box/types/matecu-altert-box-type';\nexport * from './lib/modules/matecu-alert-box/types/matecu-alert-dialog';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MAMa,oBAAoB;IAG/B;QAFQ,YAAO,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC,CAAC;QAC9C,iBAAY,GAAa,EAAE,CAAC;KACpB;IAEhB,KAAK;QACH,OAA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IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,aAAa,CAAC;KAC5D;IACO,aAAa,CAAC,GAA8B;QAClD,MAAM,OAAO,GAAG,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;QACjE,OAAO,OAAO,CAAC;KAChB;;uHArCU,0BAA0B,kBAM3B,eAAe;2GANd,0BAA0B,2DCRvC,mmBAcA;2FDNa,0BAA0B;kBALtC,SAAS;mBAAC;oBACT,QAAQ,EAAE,qBAAqB;oBAC/B,WAAW,EAAE,sCAAsC;oBACnD,SAAS,EAAE,CAAC,sCAAsC,CAAC;iBACpD;;0BAOI,MAAM;2BAAC,eAAe;;;MEDd,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBAJhB,uBAAuB,EAAE,0BAA0B,aACxD,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,aAC7D,uBAAuB;kHAEtB,oBAAoB,YAHtB,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,CAAC;2FAG7D,oBAAoB;kBALhC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,uBAAuB,EAAE,0BAA0B,CAAC;oBACnE,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,CAAC;oBACxE,OAAO,EAAE,CAAC,uBAAuB,CAAC;iBACnC;;;ACZD;;;;ACAA;;;;;;"}
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MatecuAlertBoxType } from '../../types/matecu-altert-box-type';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MatecuAlertBoxComponent implements OnInit {
5
+ classNameBase: string;
6
+ alertColor?: MatecuAlertBoxType | undefined | string | null;
7
+ iconValue?: string | null | undefined;
8
+ private alertIcon;
9
+ get color(): MatecuAlertBoxType | undefined | string | null;
10
+ set color(value: MatecuAlertBoxType | undefined | string | null);
11
+ get icon(): boolean;
12
+ set icon(value: boolean);
13
+ className: string;
14
+ constructor();
15
+ ngOnInit(): void;
16
+ private updateIcon;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatecuAlertBoxComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatecuAlertBoxComponent, "matecu-alert-box", never, { "color": "color"; "icon": "icon"; }, {}, never, ["*"]>;
19
+ }
@@ -0,0 +1,22 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { MatecuAlertDialogData } from '../../types/matecu-alert-dialog';
4
+ import * as i0 from "@angular/core";
5
+ export declare class MatecuAlertDialogComponent implements OnInit {
6
+ dialogData: MatecuAlertDialogData;
7
+ dialogRef: MatDialogRef<MatecuAlertDialogComponent>;
8
+ hasTitle: boolean;
9
+ hasDismissBtn: boolean;
10
+ hasActionBtn: boolean;
11
+ showActions: boolean;
12
+ constructor(dialogData: MatecuAlertDialogData, dialogRef: MatDialogRef<MatecuAlertDialogComponent>);
13
+ ngOnInit(): void;
14
+ activateAction(): void;
15
+ private setHasTitle;
16
+ private setHasDismissBtn;
17
+ private setHasActionBtn;
18
+ private setShowActions;
19
+ private isValidString;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatecuAlertDialogComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatecuAlertDialogComponent, "matecu-alert-dialog", never, {}, {}, never, never>;
22
+ }