angular-matecu 2.0.12 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +54 -37
- package/esm2020/lib/components/matecu-alert-box/matecu-alert-box.component.mjs +67 -0
- package/esm2020/lib/components/matecu-alert-dialog/matecu-alert-dialog.component.mjs +54 -0
- package/esm2020/lib/components/matecu-alert-snack-bar/matecu-alert-snack-bar.component.mjs +43 -0
- package/esm2020/lib/components/matecu-spinner/matecu-spinner.component.mjs +58 -0
- package/esm2020/lib/components/matecu-topbar-action/matecu-topbar-action.component.mjs +13 -0
- package/esm2020/lib/components/matecu-topbar-body/matecu-topbar-body.component.mjs +28 -0
- package/esm2020/lib/components/matecu-topbar-fab/matecu-topbar-fab.component.mjs +34 -0
- package/esm2020/lib/components/matecu-topbar-header-row/matecu-topbar-header-row.component.mjs +13 -0
- package/esm2020/lib/components/matecu-topbar-layout/matecu-topbar-layout.component.mjs +101 -0
- package/esm2020/lib/components/matecu-topbar-search/matecu-topbar-search.component.mjs +84 -0
- package/esm2020/lib/components/matecu-topbar-title/matecu-topbar-title.component.mjs +19 -0
- package/esm2020/lib/modules/matecu-alert-box/matecu-alert-box.module.mjs +13 -10
- package/esm2020/lib/modules/matecu-spinner/matecu-spinner.module.mjs +11 -10
- package/esm2020/lib/modules/matecu-topbar-layout/matecu-topbar-layout.module.mjs +43 -30
- package/esm2020/lib/services/matecu-snack-bar.service.mjs +66 -0
- package/esm2020/lib/services/matecu-spinner.service.mjs +44 -0
- package/esm2020/lib/types/matecu-alert-dialog.mjs +2 -0
- package/esm2020/lib/types/matecu-alert-snackbar.mjs +2 -0
- package/esm2020/lib/types/matecu-altert-box-type.mjs +8 -0
- package/esm2020/public-api.mjs +19 -18
- package/fesm2015/angular-matecu.mjs +151 -126
- package/fesm2015/angular-matecu.mjs.map +1 -1
- package/fesm2020/angular-matecu.mjs +151 -126
- package/fesm2020/angular-matecu.mjs.map +1 -1
- package/{angular-matecu.d.ts → index.d.ts} +0 -0
- package/lib/{modules/matecu-alert-box/components → components}/matecu-alert-box/matecu-alert-box.component.d.ts +1 -1
- package/lib/{modules/matecu-alert-box/components → components}/matecu-alert-dialog/matecu-alert-dialog.component.d.ts +1 -1
- package/lib/{modules/matecu-alert-box/components → components}/matecu-alert-snack-bar/matecu-alert-snack-bar.component.d.ts +1 -1
- package/lib/{modules/matecu-spinner/components → components}/matecu-spinner/matecu-spinner.component.d.ts +1 -1
- package/lib/components/matecu-topbar-action/matecu-topbar-action.component.d.ts +8 -0
- package/lib/{modules/matecu-topbar-layout/components → components}/matecu-topbar-body/matecu-topbar-body.component.d.ts +1 -1
- package/lib/{modules/matecu-topbar-layout/components → components}/matecu-topbar-fab/matecu-topbar-fab.component.d.ts +1 -1
- package/lib/components/matecu-topbar-header-row/matecu-topbar-header-row.component.d.ts +5 -0
- package/lib/components/matecu-topbar-layout/matecu-topbar-layout.component.d.ts +29 -0
- package/lib/{modules/matecu-topbar-layout/components → components}/matecu-topbar-search/matecu-topbar-search.component.d.ts +3 -3
- package/lib/{modules/matecu-topbar-layout/components → components}/matecu-topbar-title/matecu-topbar-title.component.d.ts +1 -1
- package/lib/modules/matecu-alert-box/matecu-alert-box.module.d.ts +12 -9
- package/lib/modules/matecu-spinner/matecu-spinner.module.d.ts +6 -3
- package/lib/modules/matecu-topbar-layout/matecu-topbar-layout.module.d.ts +16 -12
- package/lib/{modules/matecu-alert-box/services → services}/matecu-snack-bar.service.d.ts +0 -0
- package/lib/{modules/matecu-spinner/services → services}/matecu-spinner.service.d.ts +0 -0
- package/lib/{modules/matecu-alert-box/types → types}/matecu-alert-dialog.d.ts +0 -0
- package/lib/{modules/matecu-alert-box/types → types}/matecu-alert-snackbar.d.ts +0 -0
- package/lib/{modules/matecu-alert-box/types → types}/matecu-altert-box-type.d.ts +0 -0
- package/package.json +6 -6
- package/public-api.d.ts +18 -17
- package/src/scss/matecu-topbar-layout/_variables.scss +2 -0
- package/esm2020/lib/modules/matecu-alert-box/components/matecu-alert-box/matecu-alert-box.component.mjs +0 -65
- package/esm2020/lib/modules/matecu-alert-box/components/matecu-alert-dialog/matecu-alert-dialog.component.mjs +0 -51
- package/esm2020/lib/modules/matecu-alert-box/components/matecu-alert-snack-bar/matecu-alert-snack-bar.component.mjs +0 -41
- package/esm2020/lib/modules/matecu-alert-box/services/matecu-snack-bar.service.mjs +0 -66
- package/esm2020/lib/modules/matecu-alert-box/types/matecu-alert-dialog.mjs +0 -2
- package/esm2020/lib/modules/matecu-alert-box/types/matecu-alert-snackbar.mjs +0 -2
- package/esm2020/lib/modules/matecu-alert-box/types/matecu-altert-box-type.mjs +0 -8
- package/esm2020/lib/modules/matecu-spinner/components/matecu-spinner/matecu-spinner.component.mjs +0 -57
- package/esm2020/lib/modules/matecu-spinner/services/matecu-spinner.service.mjs +0 -44
- package/esm2020/lib/modules/matecu-topbar-layout/components/matecu-topbar-actions/matecu-topbar-actions.component.mjs +0 -13
- package/esm2020/lib/modules/matecu-topbar-layout/components/matecu-topbar-body/matecu-topbar-body.component.mjs +0 -28
- package/esm2020/lib/modules/matecu-topbar-layout/components/matecu-topbar-fab/matecu-topbar-fab.component.mjs +0 -32
- package/esm2020/lib/modules/matecu-topbar-layout/components/matecu-topbar-layout/matecu-topbar-layout.component.mjs +0 -99
- package/esm2020/lib/modules/matecu-topbar-layout/components/matecu-topbar-search/matecu-topbar-search.component.mjs +0 -81
- package/esm2020/lib/modules/matecu-topbar-layout/components/matecu-topbar-title/matecu-topbar-title.component.mjs +0 -19
- package/lib/modules/matecu-topbar-layout/components/matecu-topbar-actions/matecu-topbar-actions.component.d.ts +0 -8
- package/lib/modules/matecu-topbar-layout/components/matecu-topbar-layout/matecu-topbar-layout.component.d.ts +0 -30
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Component, HostBinding, Input, NgModule, EventEmitter, Output, Inject } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { BehaviorSubject, Subject, of, fromEvent } from 'rxjs';
|
|
6
6
|
import { tap, takeUntil, map, debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
|
7
|
-
import * as
|
|
8
|
-
import {
|
|
9
|
-
import * as
|
|
10
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
11
|
-
import * as i1$1 from '@angular/material/button';
|
|
7
|
+
import * as i2$1 from '@angular/forms';
|
|
8
|
+
import { UntypedFormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import * as i3 from '@angular/material/button';
|
|
12
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
13
|
-
import * as i3 from '@angular/material/icon';
|
|
11
|
+
import * as i3$1 from '@angular/material/icon';
|
|
14
12
|
import { MatIconModule } from '@angular/material/icon';
|
|
15
|
-
import * as
|
|
13
|
+
import * as i2 from '@angular/material/toolbar';
|
|
14
|
+
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
15
|
+
import * as i1$1 from '@angular/material/dialog';
|
|
16
16
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
17
|
-
import * as i1$
|
|
17
|
+
import * as i1$2 from '@angular/material/snack-bar';
|
|
18
18
|
import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
19
19
|
|
|
20
20
|
class MatecuSpinnerService {
|
|
@@ -49,9 +49,9 @@ class MatecuSpinnerService {
|
|
|
49
49
|
return `${time}__${complement}`;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
MatecuSpinnerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
53
|
-
MatecuSpinnerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
52
|
+
MatecuSpinnerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSpinnerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
53
|
+
MatecuSpinnerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSpinnerService, providedIn: 'root' });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSpinnerService, decorators: [{
|
|
55
55
|
type: Injectable,
|
|
56
56
|
args: [{
|
|
57
57
|
providedIn: 'root',
|
|
@@ -91,11 +91,11 @@ class MatecuSpinnerComponent {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
MatecuSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
95
|
-
MatecuSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
94
|
+
MatecuSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSpinnerComponent, deps: [{ token: MatecuSpinnerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
95
|
+
MatecuSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuSpinnerComponent, isStandalone: true, 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}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSpinnerComponent, decorators: [{
|
|
97
97
|
type: Component,
|
|
98
|
-
args: [{ selector: 'matecu-spinner', 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}\n"] }]
|
|
98
|
+
args: [{ selector: 'matecu-spinner', standalone: true, imports: [CommonModule], 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}\n"] }]
|
|
99
99
|
}], ctorParameters: function () { return [{ type: MatecuSpinnerService }]; }, propDecorators: { className: [{
|
|
100
100
|
type: HostBinding,
|
|
101
101
|
args: ['class']
|
|
@@ -109,19 +109,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
109
109
|
type: Input
|
|
110
110
|
}] } });
|
|
111
111
|
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated Usar stanalone components
|
|
114
|
+
*/
|
|
112
115
|
class MatecuSpinnerModule {
|
|
113
116
|
}
|
|
114
|
-
MatecuSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
115
|
-
MatecuSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
116
|
-
MatecuSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
117
|
-
|
|
118
|
-
]] });
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MatecuSpinnerModule, decorators: [{
|
|
117
|
+
MatecuSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
118
|
+
MatecuSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.2", ngImport: i0, type: MatecuSpinnerModule, imports: [CommonModule, MatecuSpinnerComponent], exports: [MatecuSpinnerComponent] });
|
|
119
|
+
MatecuSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSpinnerModule, imports: [CommonModule, MatecuSpinnerComponent] });
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSpinnerModule, decorators: [{
|
|
120
121
|
type: NgModule,
|
|
121
122
|
args: [{
|
|
122
|
-
declarations: [
|
|
123
|
+
declarations: [],
|
|
123
124
|
imports: [
|
|
124
|
-
CommonModule
|
|
125
|
+
CommonModule, MatecuSpinnerComponent
|
|
125
126
|
],
|
|
126
127
|
exports: [
|
|
127
128
|
MatecuSpinnerComponent
|
|
@@ -134,28 +135,29 @@ class MatecuTopbarLayoutComponent {
|
|
|
134
135
|
this.className = 'matecu-topbar-layout';
|
|
135
136
|
this.showSearchInput = false;
|
|
136
137
|
this.search = false;
|
|
137
|
-
this.searchInput = new
|
|
138
|
+
this.searchInput = new UntypedFormControl();
|
|
138
139
|
this.isProminent = false;
|
|
140
|
+
this.hasTwoRows = false;
|
|
141
|
+
this.destroySpyScroll$ = new Subject();
|
|
139
142
|
this.scrollingClass = 'matecu-topbar-layout--scrolling';
|
|
140
143
|
this.prominentClass = 'matecu-topbar-layout--prominent';
|
|
141
144
|
this.color = 'primary';
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
145
|
+
}
|
|
146
|
+
set twoRows(value) {
|
|
147
|
+
this.hasTwoRows = value;
|
|
148
|
+
this.setProminentClassValue();
|
|
146
149
|
}
|
|
147
150
|
set prominent(value) {
|
|
148
151
|
this.isProminent = value;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
this.className = this.className.replace(regex, '').trim();
|
|
155
|
-
}
|
|
152
|
+
this.setProminentClassValue();
|
|
153
|
+
}
|
|
154
|
+
ngOnDestroy() {
|
|
155
|
+
this.destroySpyScroll$.next();
|
|
156
|
+
this.destroySpyScroll$.complete();
|
|
156
157
|
}
|
|
157
158
|
ngAfterViewInit() {
|
|
158
|
-
this.
|
|
159
|
+
this.destroySpyScroll$.next();
|
|
160
|
+
this.spyScroll().pipe(takeUntil(this.destroySpyScroll$)).subscribe();
|
|
159
161
|
}
|
|
160
162
|
toogleSearch() {
|
|
161
163
|
this.showSearchInput = !this.showSearchInput;
|
|
@@ -165,17 +167,13 @@ class MatecuTopbarLayoutComponent {
|
|
|
165
167
|
this.searchInput.reset();
|
|
166
168
|
}
|
|
167
169
|
onMenuClick() { }
|
|
168
|
-
onClickNavMenu() {
|
|
169
|
-
this.clickNavMenu.emit();
|
|
170
|
-
}
|
|
171
|
-
onClickActionMenu() {
|
|
172
|
-
this.clickActionMenu.emit();
|
|
173
|
-
}
|
|
174
170
|
spyScroll() {
|
|
175
|
-
const
|
|
176
|
-
if (!
|
|
171
|
+
const scrollabes = document.querySelectorAll('.matecu-topbar-body');
|
|
172
|
+
if (!scrollabes || scrollabes.length === 0) {
|
|
177
173
|
return of(null);
|
|
178
174
|
}
|
|
175
|
+
const lastindex = scrollabes.length - 1;
|
|
176
|
+
const scrollabe = scrollabes[lastindex];
|
|
179
177
|
return fromEvent(scrollabe, 'scroll').pipe(tap(() => this.applyScrollStyles(scrollabe)), map(() => scrollabe));
|
|
180
178
|
}
|
|
181
179
|
applyScrollStyles(scrollabe) {
|
|
@@ -196,25 +194,28 @@ class MatecuTopbarLayoutComponent {
|
|
|
196
194
|
this.className = this.className.replace(regexp, '').trim();
|
|
197
195
|
}
|
|
198
196
|
}
|
|
197
|
+
setProminentClassValue() {
|
|
198
|
+
if (this.isProminent && !this.hasTwoRows) {
|
|
199
|
+
this.className += ' ' + this.prominentClass;
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
const regex = new RegExp(this.prominentClass, 'ig');
|
|
203
|
+
this.className = this.className.replace(regex, '').trim();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
199
206
|
}
|
|
200
|
-
MatecuTopbarLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
201
|
-
MatecuTopbarLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
207
|
+
MatecuTopbarLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
208
|
+
MatecuTopbarLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuTopbarLayoutComponent, isStandalone: true, selector: "matecu-topbar-layout", inputs: { color: "color", twoRows: "twoRows", prominent: "prominent" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: " <mat-toolbar [color]=\"color\">\n \n <mat-toolbar-row>\n <ng-content select=\"matecu-topbar-header-row:not([position])\"></ng-content>\n <ng-content select=\"matecu-topbar-header-row[position='first']\"></ng-content>\n </mat-toolbar-row>\n <mat-toolbar-row *ngIf=\"hasTwoRows\">\n <ng-content select=\"matecu-topbar-header-row[position='second']\"></ng-content>\n </mat-toolbar-row>\n </mat-toolbar>\n <ng-content select=\"matecu-topbar-body\"></ng-content>\n", styles: [":host,.matecu-topbar-layout{display:grid;height:100vh;max-width:100vw;grid-template-rows:auto 1fr;position:relative;overflow:hidden}:host,:host *,.matecu-topbar-layout,.matecu-topbar-layout *{box-sizing:border-box}:host mat-toolbar,.matecu-topbar-layout mat-toolbar{display:block;position:relative;transition:all .3s;min-height:auto!important}:host matecu-topbar-row,.matecu-topbar-layout matecu-topbar-row{white-space:normal;justify-content:space-between;column-gap:1px}:host matecu-topbar-row:first-of-type,.matecu-topbar-layout matecu-topbar-row:first-of-type{min-height:100%}:host.matecu-topbar-layout--prominent .mat-toolbar{height:128px;max-height:128px}:host.matecu-topbar-layout--prominent mat-toolbar-row{align-items:flex-start;min-height:100%}:host.matecu-topbar-layout--scrolling .mat-toolbar{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}:host.matecu-topbar-layout--scrolling.matecu-topbar-layout--prominent .mat-toolbar{height:64px;max-height:64px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i2.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }] });
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarLayoutComponent, decorators: [{
|
|
203
210
|
type: Component,
|
|
204
|
-
args: [{ selector: 'matecu-topbar-layout', template: " <mat-toolbar [color]=\"color\">\n
|
|
211
|
+
args: [{ selector: 'matecu-topbar-layout', standalone: true, imports: [CommonModule, MatButtonModule, MatIconModule, MatToolbarModule], template: " <mat-toolbar [color]=\"color\">\n \n <mat-toolbar-row>\n <ng-content select=\"matecu-topbar-header-row:not([position])\"></ng-content>\n <ng-content select=\"matecu-topbar-header-row[position='first']\"></ng-content>\n </mat-toolbar-row>\n <mat-toolbar-row *ngIf=\"hasTwoRows\">\n <ng-content select=\"matecu-topbar-header-row[position='second']\"></ng-content>\n </mat-toolbar-row>\n </mat-toolbar>\n <ng-content select=\"matecu-topbar-body\"></ng-content>\n", styles: [":host,.matecu-topbar-layout{display:grid;height:100vh;max-width:100vw;grid-template-rows:auto 1fr;position:relative;overflow:hidden}:host,:host *,.matecu-topbar-layout,.matecu-topbar-layout *{box-sizing:border-box}:host mat-toolbar,.matecu-topbar-layout mat-toolbar{display:block;position:relative;transition:all .3s;min-height:auto!important}:host matecu-topbar-row,.matecu-topbar-layout matecu-topbar-row{white-space:normal;justify-content:space-between;column-gap:1px}:host matecu-topbar-row:first-of-type,.matecu-topbar-layout matecu-topbar-row:first-of-type{min-height:100%}:host.matecu-topbar-layout--prominent .mat-toolbar{height:128px;max-height:128px}:host.matecu-topbar-layout--prominent mat-toolbar-row{align-items:flex-start;min-height:100%}:host.matecu-topbar-layout--scrolling .mat-toolbar{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}:host.matecu-topbar-layout--scrolling.matecu-topbar-layout--prominent .mat-toolbar{height:64px;max-height:64px}\n"] }]
|
|
205
212
|
}], ctorParameters: function () { return []; }, propDecorators: { className: [{
|
|
206
213
|
type: HostBinding,
|
|
207
214
|
args: ['class']
|
|
208
215
|
}], color: [{
|
|
209
216
|
type: Input
|
|
210
|
-
}],
|
|
211
|
-
type: Input
|
|
212
|
-
}], actionMenu: [{
|
|
217
|
+
}], twoRows: [{
|
|
213
218
|
type: Input
|
|
214
|
-
}], clickNavMenu: [{
|
|
215
|
-
type: Output
|
|
216
|
-
}], clickActionMenu: [{
|
|
217
|
-
type: Output
|
|
218
219
|
}], prominent: [{
|
|
219
220
|
type: Input
|
|
220
221
|
}] } });
|
|
@@ -226,11 +227,11 @@ class MatecuTopbarTitleComponent {
|
|
|
226
227
|
ngOnInit() {
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
|
-
MatecuTopbarTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
230
|
-
MatecuTopbarTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
230
|
+
MatecuTopbarTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
231
|
+
MatecuTopbarTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuTopbarTitleComponent, isStandalone: true, selector: "matecu-topbar-title", host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{flex-grow:5;display:flex;align-items:center;margin-right:auto;padding:7px 1rem;max-height:100%;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;align-self:center}\n"] });
|
|
232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarTitleComponent, decorators: [{
|
|
232
233
|
type: Component,
|
|
233
|
-
args: [{ selector: 'matecu-topbar-title', template: "<ng-content></ng-content>", styles: [":host{display:flex;align-items:center;margin-right:auto;padding:7px 1rem;
|
|
234
|
+
args: [{ selector: 'matecu-topbar-title', standalone: true, template: "<ng-content></ng-content>", styles: [":host{flex-grow:5;display:flex;align-items:center;margin-right:auto;padding:7px 1rem;max-height:100%;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;align-self:center}\n"] }]
|
|
234
235
|
}], ctorParameters: function () { return []; }, propDecorators: { className: [{
|
|
235
236
|
type: HostBinding,
|
|
236
237
|
args: ['class']
|
|
@@ -252,11 +253,11 @@ class MatecuTopbarBodyComponent {
|
|
|
252
253
|
}
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
|
-
MatecuTopbarBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
256
|
-
MatecuTopbarBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
256
|
+
MatecuTopbarBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarBodyComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
257
|
+
MatecuTopbarBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuTopbarBodyComponent, isStandalone: true, selector: "matecu-topbar-body", host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{display:block;padding:0;padding-top:2rem;overflow-y:auto}@media screen and (max-width: 770px){:host{padding-bottom:80px}}\n"] });
|
|
258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarBodyComponent, decorators: [{
|
|
258
259
|
type: Component,
|
|
259
|
-
args: [{ selector: 'matecu-topbar-body', template: "<ng-content></ng-content>", styles: [":host{display:block;padding:0;padding-top:2rem;overflow-y:auto}@media screen and (max-width: 770px){:host{padding-bottom:80px}}\n"] }]
|
|
260
|
+
args: [{ selector: 'matecu-topbar-body', standalone: true, template: "<ng-content></ng-content>", styles: [":host{display:block;padding:0;padding-top:2rem;overflow-y:auto}@media screen and (max-width: 770px){:host{padding-bottom:80px}}\n"] }]
|
|
260
261
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { className: [{
|
|
261
262
|
type: HostBinding,
|
|
262
263
|
args: ['class']
|
|
@@ -274,11 +275,11 @@ class MatecuTopbarFabComponent {
|
|
|
274
275
|
this.clickAction.emit();
|
|
275
276
|
}
|
|
276
277
|
}
|
|
277
|
-
MatecuTopbarFabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
278
|
-
MatecuTopbarFabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
278
|
+
MatecuTopbarFabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarFabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
279
|
+
MatecuTopbarFabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuTopbarFabComponent, isStandalone: true, selector: "matecu-topbar-fab", inputs: { color: "color", extended: "extended" }, outputs: { clickAction: "clickAction" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: " <button type=\"button\" mat-fab [ngClass]=\"{'extended': extended}\" [color]=\"color\" (click)=\"onClickAction()\">\n <ng-content></ng-content>\n </button>\n", styles: [":host{display:flex;align-items:flex-end;height:100%;position:relative;z-index:2}:host button{transform:translateY(50%)}:host button.extended{border-radius:27px;height:55px;width:auto;padding:0 1rem!important}@media screen and (max-width: 768px){:host{height:auto;position:fixed;bottom:1rem;right:1rem;transform:initial}:host button{transform:translateY(0)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatFabButton, selector: "button[mat-fab]", inputs: ["disabled", "disableRipple", "color", "tabIndex", "extended"], exportAs: ["matButton"] }] });
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarFabComponent, decorators: [{
|
|
280
281
|
type: Component,
|
|
281
|
-
args: [{ selector: 'matecu-topbar-fab', template: " <button type=\"button\" mat-fab [ngClass]=\"{'extended': extended}\" [color]=\"color\" (click)=\"onClickAction()\">\n <ng-content></ng-content>\n </button>\n", styles: [":host{display:flex;align-items:flex-end;height:100%;position:relative;z-index:2}:host button{transform:translateY(50%)}:host button.extended{border-radius:27px;height:55px;width:auto;padding:0 1rem!important}@media screen and (max-width: 768px){:host{height:auto;position:fixed;bottom:1rem;right:1rem;transform:initial}:host button{transform:translateY(0)}}\n"] }]
|
|
282
|
+
args: [{ selector: 'matecu-topbar-fab', standalone: true, imports: [CommonModule, MatButtonModule], template: " <button type=\"button\" mat-fab [ngClass]=\"{'extended': extended}\" [color]=\"color\" (click)=\"onClickAction()\">\n <ng-content></ng-content>\n </button>\n", styles: [":host{display:flex;align-items:flex-end;height:100%;position:relative;z-index:2}:host button{transform:translateY(50%)}:host button.extended{border-radius:27px;height:55px;width:auto;padding:0 1rem!important}@media screen and (max-width: 768px){:host{height:auto;position:fixed;bottom:1rem;right:1rem;transform:initial}:host button{transform:translateY(0)}}\n"] }]
|
|
282
283
|
}], ctorParameters: function () { return []; }, propDecorators: { color: [{
|
|
283
284
|
type: Input
|
|
284
285
|
}], extended: [{
|
|
@@ -293,7 +294,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
293
294
|
class MatecuTopbarSearchComponent {
|
|
294
295
|
constructor() {
|
|
295
296
|
this.showMobileInput = false;
|
|
296
|
-
this.searchInput = new
|
|
297
|
+
this.searchInput = new UntypedFormControl();
|
|
297
298
|
this.showDescktopCleanBtn = false;
|
|
298
299
|
this.destroy = new Subject();
|
|
299
300
|
this.searchPlaceholder = 'Buscar';
|
|
@@ -338,11 +339,11 @@ class MatecuTopbarSearchComponent {
|
|
|
338
339
|
this.showDescktopCleanBtn = typeof value === 'string' && value.length > 0;
|
|
339
340
|
}
|
|
340
341
|
}
|
|
341
|
-
MatecuTopbarSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
342
|
-
MatecuTopbarSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
342
|
+
MatecuTopbarSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
343
|
+
MatecuTopbarSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuTopbarSearchComponent, isStandalone: true, selector: "matecu-topbar-search", inputs: { searchPlaceholder: "searchPlaceholder", debounceTime: "debounceTime", inputType: "inputType", cleanWhenClose: "cleanWhenClose", value: "value" }, outputs: { valueChange: "valueChange", whenSearchChanges: "whenSearchChanges" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<button mat-icon-button class=\"only-mobile\" (click)=\"toogleSearch()\">\n <mat-icon>search</mat-icon>\n</button>\n\n<div class=\"matecu-topbar-search__input\" [ngClass]=\"{'mobile-input-active': showMobileInput}\">\n <mat-icon>search</mat-icon>\n <input [type]=\"inputType\" [formControl]=\"searchInput\" [placeholder]=\"searchPlaceholder\" />\n <button mat-icon-button (click)=\"closeMobile()\" [ngClass]=\"{'show-btn': showDescktopCleanBtn}\">\n <mat-icon>close</mat-icon>\n </button>\n\n</div>\n", styles: [":host{flex-grow:1;display:flex;justify-content:flex-end;align-items:center;position:relative;padding:7px;min-height:64px;max-height:64px;box-sizing:border-box}:host .matecu-topbar-search__input{display:block;position:relative;z-index:2}:host .matecu-topbar-search__input input{border:transparent;border-radius:4px;padding:5px 35px 5px 40px;background-color:#ffffff4d;min-width:200px;width:200px;transition:all .3s ease-in-out;height:39px;color:currentColor}:host .matecu-topbar-search__input input:focus{min-width:290px}:host .matecu-topbar-search__input input::placeholder{color:currentColor}:host .matecu-topbar-search__input input[type=search]::-webkit-search-decoration,:host .matecu-topbar-search__input input[type=search]::-webkit-search-cancel-button,:host .matecu-topbar-search__input input[type=search]::-webkit-search-results-button,:host .matecu-topbar-search__input input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}:host .matecu-topbar-search__input>mat-icon{position:absolute;left:12px;top:10px}:host .matecu-topbar-search__input button{position:absolute;right:0;top:0;transform:scale(0);transition:transform .3s ease-in-out}:host .matecu-topbar-search__input button mat-icon{font-size:20px}:host .matecu-topbar-search__input button.show-btn{transform:scale(1)}@media screen and (max-width: 768px){:host .matecu-topbar-search__input{position:fixed;top:0;left:0;right:0;height:64px;color:#333;transform:translateY(-110%);transition:all .3s ease-in-out}:host .matecu-topbar-search__input input{width:100%;height:100%;background-color:#fff;border-radius:0;padding-right:30px}:host .matecu-topbar-search__input input:focus{min-width:100%}:host .matecu-topbar-search__input>mat-icon{top:20px}:host .matecu-topbar-search__input button{position:absolute;right:5px;top:10px;transform:scale(1)}}:host .matecu-topbar-search__input.mobile-input-active{transform:translateY(0)}@media screen and (max-width: 768px){:host .matecu-topbar-search__input.mobile-input-active{display:block}}:host .only-mobile{display:none}@media screen and (max-width: 768px){:host .only-mobile{display:block}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
|
|
344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarSearchComponent, decorators: [{
|
|
344
345
|
type: Component,
|
|
345
|
-
args: [{ selector: 'matecu-topbar-search', template: "<button mat-icon-button class=\"only-mobile\" (click)=\"toogleSearch()\">\n <mat-icon>search</mat-icon>\n</button>\n\n<div class=\"matecu-topbar-search__input\" [ngClass]=\"{'mobile-input-active': showMobileInput}\">\n <mat-icon>search</mat-icon>\n <input [type]=\"inputType\" [formControl]=\"searchInput\" [placeholder]=\"searchPlaceholder\" />\n <button mat-icon-button (click)=\"closeMobile()\" [ngClass]=\"{'show-btn': showDescktopCleanBtn}\">\n <mat-icon>close</mat-icon>\n </button>\n\n</div>\n", styles: [":host{display:flex;align-items:center;position:relative;padding:7px;min-height:64px;box-sizing:border-box}:host .matecu-topbar-search__input{display:block;position:relative;z-index:2}:host .matecu-topbar-search__input input{border:transparent;border-radius:4px;padding:5px 35px 5px 40px;background-color:#ffffff4d;min-width:200px;width:200px;transition:all .3s ease-in-out;height:39px;color:currentColor}:host .matecu-topbar-search__input input:focus{min-width:290px}:host .matecu-topbar-search__input input::placeholder{color:currentColor}:host .matecu-topbar-search__input input[type=search]::-webkit-search-decoration,:host .matecu-topbar-search__input input[type=search]::-webkit-search-cancel-button,:host .matecu-topbar-search__input input[type=search]::-webkit-search-results-button,:host .matecu-topbar-search__input input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}:host .matecu-topbar-search__input>mat-icon{position:absolute;left:12px;top:10px}:host .matecu-topbar-search__input button{position:absolute;right:
|
|
346
|
+
args: [{ selector: 'matecu-topbar-search', standalone: true, imports: [CommonModule, FormsModule, ReactiveFormsModule, MatIconModule, MatButtonModule], template: "<button mat-icon-button class=\"only-mobile\" (click)=\"toogleSearch()\">\n <mat-icon>search</mat-icon>\n</button>\n\n<div class=\"matecu-topbar-search__input\" [ngClass]=\"{'mobile-input-active': showMobileInput}\">\n <mat-icon>search</mat-icon>\n <input [type]=\"inputType\" [formControl]=\"searchInput\" [placeholder]=\"searchPlaceholder\" />\n <button mat-icon-button (click)=\"closeMobile()\" [ngClass]=\"{'show-btn': showDescktopCleanBtn}\">\n <mat-icon>close</mat-icon>\n </button>\n\n</div>\n", styles: [":host{flex-grow:1;display:flex;justify-content:flex-end;align-items:center;position:relative;padding:7px;min-height:64px;max-height:64px;box-sizing:border-box}:host .matecu-topbar-search__input{display:block;position:relative;z-index:2}:host .matecu-topbar-search__input input{border:transparent;border-radius:4px;padding:5px 35px 5px 40px;background-color:#ffffff4d;min-width:200px;width:200px;transition:all .3s ease-in-out;height:39px;color:currentColor}:host .matecu-topbar-search__input input:focus{min-width:290px}:host .matecu-topbar-search__input input::placeholder{color:currentColor}:host .matecu-topbar-search__input input[type=search]::-webkit-search-decoration,:host .matecu-topbar-search__input input[type=search]::-webkit-search-cancel-button,:host .matecu-topbar-search__input input[type=search]::-webkit-search-results-button,:host .matecu-topbar-search__input input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}:host .matecu-topbar-search__input>mat-icon{position:absolute;left:12px;top:10px}:host .matecu-topbar-search__input button{position:absolute;right:0;top:0;transform:scale(0);transition:transform .3s ease-in-out}:host .matecu-topbar-search__input button mat-icon{font-size:20px}:host .matecu-topbar-search__input button.show-btn{transform:scale(1)}@media screen and (max-width: 768px){:host .matecu-topbar-search__input{position:fixed;top:0;left:0;right:0;height:64px;color:#333;transform:translateY(-110%);transition:all .3s ease-in-out}:host .matecu-topbar-search__input input{width:100%;height:100%;background-color:#fff;border-radius:0;padding-right:30px}:host .matecu-topbar-search__input input:focus{min-width:100%}:host .matecu-topbar-search__input>mat-icon{top:20px}:host .matecu-topbar-search__input button{position:absolute;right:5px;top:10px;transform:scale(1)}}:host .matecu-topbar-search__input.mobile-input-active{transform:translateY(0)}@media screen and (max-width: 768px){:host .matecu-topbar-search__input.mobile-input-active{display:block}}:host .only-mobile{display:none}@media screen and (max-width: 768px){:host .only-mobile{display:block}}\n"] }]
|
|
346
347
|
}], ctorParameters: function () { return []; }, propDecorators: { searchPlaceholder: [{
|
|
347
348
|
type: Input
|
|
348
349
|
}], debounceTime: [{
|
|
@@ -362,55 +363,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
362
363
|
args: ['class']
|
|
363
364
|
}] } });
|
|
364
365
|
|
|
365
|
-
class
|
|
366
|
+
class MatecuTopbarActionComponent {
|
|
366
367
|
constructor() { }
|
|
367
368
|
ngOnInit() { }
|
|
368
369
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
370
|
+
MatecuTopbarActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
371
|
+
MatecuTopbarActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuTopbarActionComponent, isStandalone: true, selector: "matecu-topbar-action", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;align-items:center;min-height:64px;max-height:64px}\n"] });
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarActionComponent, decorators: [{
|
|
372
373
|
type: Component,
|
|
373
|
-
args: [{ selector: 'matecu-topbar-
|
|
374
|
+
args: [{ selector: 'matecu-topbar-action', standalone: true, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;align-items:center;min-height:64px;max-height:64px}\n"] }]
|
|
374
375
|
}], ctorParameters: function () { return []; } });
|
|
375
376
|
|
|
377
|
+
class MatecuTopbarHeaderRowComponent {
|
|
378
|
+
}
|
|
379
|
+
MatecuTopbarHeaderRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarHeaderRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
380
|
+
MatecuTopbarHeaderRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuTopbarHeaderRowComponent, isStandalone: true, selector: "matecu-topbar-header-row", ngImport: i0, template: " <ng-content select=\"matecu-topbar-action[position='left']\"></ng-content>\n <ng-content select=\"matecu-topbar-fab\"></ng-content>\n <ng-content select=\"matecu-topbar-action[position='after-fab']\"></ng-content>\n <ng-content select=\"matecu-topbar-title\"></ng-content>\n <ng-content select=\"matecu-topbar-action[position='before-search']\"></ng-content>\n <ng-content select=\"matecu-topbar-search\"></ng-content>\n <ng-content select=\"matecu-topbar-action:not([position])\"></ng-content>\n <ng-content select=\"matecu-topbar-action[position='right']\"></ng-content>", styles: [":host{display:flex;white-space:normal;justify-content:space-between;column-gap:1px;width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatToolbarModule }] });
|
|
381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarHeaderRowComponent, decorators: [{
|
|
382
|
+
type: Component,
|
|
383
|
+
args: [{ selector: 'matecu-topbar-header-row', standalone: true, imports: [CommonModule, MatToolbarModule], template: " <ng-content select=\"matecu-topbar-action[position='left']\"></ng-content>\n <ng-content select=\"matecu-topbar-fab\"></ng-content>\n <ng-content select=\"matecu-topbar-action[position='after-fab']\"></ng-content>\n <ng-content select=\"matecu-topbar-title\"></ng-content>\n <ng-content select=\"matecu-topbar-action[position='before-search']\"></ng-content>\n <ng-content select=\"matecu-topbar-search\"></ng-content>\n <ng-content select=\"matecu-topbar-action:not([position])\"></ng-content>\n <ng-content select=\"matecu-topbar-action[position='right']\"></ng-content>", styles: [":host{display:flex;white-space:normal;justify-content:space-between;column-gap:1px;width:100%;height:100%}\n"] }]
|
|
384
|
+
}] });
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @deprecated Usar stanalone components
|
|
388
|
+
*/
|
|
376
389
|
class MatecuTopbarLayoutModule {
|
|
377
390
|
}
|
|
378
|
-
MatecuTopbarLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
379
|
-
MatecuTopbarLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
391
|
+
MatecuTopbarLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
392
|
+
MatecuTopbarLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarLayoutModule, imports: [CommonModule,
|
|
393
|
+
MatToolbarModule,
|
|
394
|
+
MatIconModule,
|
|
395
|
+
FormsModule,
|
|
396
|
+
ReactiveFormsModule,
|
|
397
|
+
MatButtonModule,
|
|
398
|
+
MatecuTopbarLayoutComponent,
|
|
399
|
+
MatecuTopbarTitleComponent,
|
|
400
|
+
MatecuTopbarBodyComponent,
|
|
401
|
+
MatecuTopbarFabComponent,
|
|
402
|
+
MatecuTopbarSearchComponent,
|
|
403
|
+
MatecuTopbarActionComponent,
|
|
404
|
+
MatecuTopbarHeaderRowComponent], exports: [MatecuTopbarLayoutComponent,
|
|
380
405
|
MatecuTopbarTitleComponent,
|
|
381
406
|
MatecuTopbarBodyComponent,
|
|
382
407
|
MatecuTopbarFabComponent,
|
|
383
408
|
MatecuTopbarSearchComponent,
|
|
384
|
-
|
|
409
|
+
MatecuTopbarActionComponent,
|
|
410
|
+
MatecuTopbarHeaderRowComponent] });
|
|
411
|
+
MatecuTopbarLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarLayoutModule, imports: [CommonModule,
|
|
385
412
|
MatToolbarModule,
|
|
386
413
|
MatIconModule,
|
|
387
414
|
FormsModule,
|
|
388
415
|
ReactiveFormsModule,
|
|
389
|
-
MatButtonModule
|
|
416
|
+
MatButtonModule,
|
|
417
|
+
MatecuTopbarLayoutComponent,
|
|
390
418
|
MatecuTopbarTitleComponent,
|
|
391
419
|
MatecuTopbarBodyComponent,
|
|
392
420
|
MatecuTopbarFabComponent,
|
|
393
421
|
MatecuTopbarSearchComponent,
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
MatToolbarModule,
|
|
398
|
-
MatIconModule,
|
|
399
|
-
FormsModule,
|
|
400
|
-
ReactiveFormsModule,
|
|
401
|
-
MatButtonModule,
|
|
402
|
-
]] });
|
|
403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: MatecuTopbarLayoutModule, decorators: [{
|
|
422
|
+
MatecuTopbarActionComponent,
|
|
423
|
+
MatecuTopbarHeaderRowComponent] });
|
|
424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuTopbarLayoutModule, decorators: [{
|
|
404
425
|
type: NgModule,
|
|
405
426
|
args: [{
|
|
406
|
-
declarations: [
|
|
407
|
-
MatecuTopbarLayoutComponent,
|
|
408
|
-
MatecuTopbarTitleComponent,
|
|
409
|
-
MatecuTopbarBodyComponent,
|
|
410
|
-
MatecuTopbarFabComponent,
|
|
411
|
-
MatecuTopbarSearchComponent,
|
|
412
|
-
MatecuTopbarActionsComponent,
|
|
413
|
-
],
|
|
427
|
+
declarations: [],
|
|
414
428
|
imports: [
|
|
415
429
|
CommonModule,
|
|
416
430
|
MatToolbarModule,
|
|
@@ -418,6 +432,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
418
432
|
FormsModule,
|
|
419
433
|
ReactiveFormsModule,
|
|
420
434
|
MatButtonModule,
|
|
435
|
+
MatecuTopbarLayoutComponent,
|
|
436
|
+
MatecuTopbarTitleComponent,
|
|
437
|
+
MatecuTopbarBodyComponent,
|
|
438
|
+
MatecuTopbarFabComponent,
|
|
439
|
+
MatecuTopbarSearchComponent,
|
|
440
|
+
MatecuTopbarActionComponent,
|
|
441
|
+
MatecuTopbarHeaderRowComponent
|
|
421
442
|
],
|
|
422
443
|
exports: [
|
|
423
444
|
MatecuTopbarLayoutComponent,
|
|
@@ -425,7 +446,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
425
446
|
MatecuTopbarBodyComponent,
|
|
426
447
|
MatecuTopbarFabComponent,
|
|
427
448
|
MatecuTopbarSearchComponent,
|
|
428
|
-
|
|
449
|
+
MatecuTopbarActionComponent,
|
|
450
|
+
MatecuTopbarHeaderRowComponent
|
|
429
451
|
],
|
|
430
452
|
}]
|
|
431
453
|
}] });
|
|
@@ -484,11 +506,11 @@ class MatecuAlertBoxComponent {
|
|
|
484
506
|
}
|
|
485
507
|
}
|
|
486
508
|
}
|
|
487
|
-
MatecuAlertBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
488
|
-
MatecuAlertBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
509
|
+
MatecuAlertBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuAlertBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
510
|
+
MatecuAlertBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuAlertBoxComponent, isStandalone: true, 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 rgb(224,224,224);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}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuAlertBoxComponent, decorators: [{
|
|
490
512
|
type: Component,
|
|
491
|
-
args: [{ selector: 'matecu-alert-box', 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
|
|
513
|
+
args: [{ selector: 'matecu-alert-box', standalone: true, imports: [CommonModule, MatIconModule], 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 rgb(224,224,224);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}\n"] }]
|
|
492
514
|
}], ctorParameters: function () { return []; }, propDecorators: { color: [{
|
|
493
515
|
type: Input
|
|
494
516
|
}], icon: [{
|
|
@@ -532,15 +554,15 @@ class MatecuAlertDialogComponent {
|
|
|
532
554
|
return isValid;
|
|
533
555
|
}
|
|
534
556
|
}
|
|
535
|
-
MatecuAlertDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
536
|
-
MatecuAlertDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
557
|
+
MatecuAlertDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuAlertDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
558
|
+
MatecuAlertDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuAlertDialogComponent, isStandalone: true, 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: [":host matecu-alert-box{max-width:900px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: MatecuAlertBoxComponent, selector: "matecu-alert-box", inputs: ["color", "icon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
|
|
559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuAlertDialogComponent, decorators: [{
|
|
538
560
|
type: Component,
|
|
539
|
-
args: [{ selector: 'matecu-alert-dialog', 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: [":host matecu-alert-box{max-width:900px}\n"] }]
|
|
561
|
+
args: [{ selector: 'matecu-alert-dialog', standalone: true, imports: [CommonModule, MatDialogModule, MatIconModule, MatecuAlertBoxComponent, MatButtonModule], 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: [":host matecu-alert-box{max-width:900px}\n"] }]
|
|
540
562
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
541
563
|
type: Inject,
|
|
542
564
|
args: [MAT_DIALOG_DATA]
|
|
543
|
-
}] }, { type: i1$
|
|
565
|
+
}] }, { type: i1$1.MatDialogRef }]; } });
|
|
544
566
|
|
|
545
567
|
class MatecuAlertSnackBarComponent {
|
|
546
568
|
constructor(data, snackBarRef) {
|
|
@@ -564,29 +586,32 @@ class MatecuAlertSnackBarComponent {
|
|
|
564
586
|
this.snackBarRef.dismissWithAction();
|
|
565
587
|
}
|
|
566
588
|
}
|
|
567
|
-
MatecuAlertSnackBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
568
|
-
MatecuAlertSnackBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
589
|
+
MatecuAlertSnackBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuAlertSnackBarComponent, deps: [{ token: MAT_SNACK_BAR_DATA }, { token: i1$2.MatSnackBarRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
590
|
+
MatecuAlertSnackBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: MatecuAlertSnackBarComponent, isStandalone: true, selector: "matecu-alert-snack-bar", host: { properties: { "class": "this.className" } }, ngImport: i0, template: "<div>\n <strong>{{title}}</strong> \n <span>{{message}}</span>\n</div>\n<div *ngIf=\"!!action?.length\">\n\n <button mat-button color=\"accent\" (click)=\"dismiss()\">{{action}}</button>\n</div>", styles: [":host.matecu-alert-snackbar{display:flex;align-items:center}:host.matecu-alert-snackbar>*:not(:first-child){margin-left:10px}:host.matecu-alert-snackbar--success strong{color:#20db20}:host.matecu-alert-snackbar--danger strong{color:red}:host.matecu-alert-snackbar--warning strong{color:orange}:host.matecu-alert-snackbar--info strong{color:#07a0ed}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatSnackBarModule }] });
|
|
591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuAlertSnackBarComponent, decorators: [{
|
|
570
592
|
type: Component,
|
|
571
|
-
args: [{ selector: 'matecu-alert-snack-bar', template: "<div>\n <strong>{{title}}</strong> \n <span>{{message}}</span>\n</div>\n<div *ngIf=\"!!action?.length\">\n\n <button mat-button color=\"accent\" (click)=\"dismiss()\">{{action}}</button>\n</div>", styles: [":host.matecu-alert-snackbar{display:flex;align-items:center}:host.matecu-alert-snackbar>*:not(:first-child){margin-left:10px}:host.matecu-alert-snackbar--success strong{color:#20db20}:host.matecu-alert-snackbar--danger strong{color:red}:host.matecu-alert-snackbar--warning strong{color:orange}:host.matecu-alert-snackbar--info strong{color:#07a0ed}\n"] }]
|
|
593
|
+
args: [{ selector: 'matecu-alert-snack-bar', standalone: true, imports: [CommonModule, MatButtonModule, MatSnackBarModule], template: "<div>\n <strong>{{title}}</strong> \n <span>{{message}}</span>\n</div>\n<div *ngIf=\"!!action?.length\">\n\n <button mat-button color=\"accent\" (click)=\"dismiss()\">{{action}}</button>\n</div>", styles: [":host.matecu-alert-snackbar{display:flex;align-items:center}:host.matecu-alert-snackbar>*:not(:first-child){margin-left:10px}:host.matecu-alert-snackbar--success strong{color:#20db20}:host.matecu-alert-snackbar--danger strong{color:red}:host.matecu-alert-snackbar--warning strong{color:orange}:host.matecu-alert-snackbar--info strong{color:#07a0ed}\n"] }]
|
|
572
594
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
573
595
|
type: Inject,
|
|
574
596
|
args: [MAT_SNACK_BAR_DATA]
|
|
575
|
-
}] }, { type: i1$
|
|
597
|
+
}] }, { type: i1$2.MatSnackBarRef }]; }, propDecorators: { className: [{
|
|
576
598
|
type: HostBinding,
|
|
577
599
|
args: ['class']
|
|
578
600
|
}] } });
|
|
579
601
|
|
|
602
|
+
/**
|
|
603
|
+
* @deprecated Usar stanalone components
|
|
604
|
+
*/
|
|
580
605
|
class MatecuAlertBoxModule {
|
|
581
606
|
}
|
|
582
|
-
MatecuAlertBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
583
|
-
MatecuAlertBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
584
|
-
MatecuAlertBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
585
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
607
|
+
MatecuAlertBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuAlertBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
608
|
+
MatecuAlertBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.2", ngImport: i0, type: MatecuAlertBoxModule, imports: [CommonModule, MatIconModule, MatDialogModule, MatButtonModule, MatSnackBarModule, MatecuAlertBoxComponent, MatecuAlertDialogComponent, MatecuAlertSnackBarComponent], exports: [MatecuAlertBoxComponent] });
|
|
609
|
+
MatecuAlertBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuAlertBoxModule, imports: [CommonModule, MatIconModule, MatDialogModule, MatButtonModule, MatSnackBarModule, MatecuAlertBoxComponent, MatecuAlertDialogComponent, MatecuAlertSnackBarComponent] });
|
|
610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuAlertBoxModule, decorators: [{
|
|
586
611
|
type: NgModule,
|
|
587
612
|
args: [{
|
|
588
|
-
declarations: [
|
|
589
|
-
imports: [CommonModule, MatIconModule, MatDialogModule, MatButtonModule, MatSnackBarModule],
|
|
613
|
+
declarations: [],
|
|
614
|
+
imports: [CommonModule, MatIconModule, MatDialogModule, MatButtonModule, MatSnackBarModule, MatecuAlertBoxComponent, MatecuAlertDialogComponent, MatecuAlertSnackBarComponent],
|
|
590
615
|
exports: [MatecuAlertBoxComponent]
|
|
591
616
|
}]
|
|
592
617
|
}] });
|
|
@@ -643,14 +668,14 @@ class MatecuSnackBarService {
|
|
|
643
668
|
return '';
|
|
644
669
|
}
|
|
645
670
|
}
|
|
646
|
-
MatecuSnackBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
647
|
-
MatecuSnackBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
671
|
+
MatecuSnackBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSnackBarService, deps: [{ token: i1$2.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
672
|
+
MatecuSnackBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSnackBarService, providedIn: 'root' });
|
|
673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: MatecuSnackBarService, decorators: [{
|
|
649
674
|
type: Injectable,
|
|
650
675
|
args: [{
|
|
651
676
|
providedIn: 'root'
|
|
652
677
|
}]
|
|
653
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
678
|
+
}], ctorParameters: function () { return [{ type: i1$2.MatSnackBar }]; } });
|
|
654
679
|
|
|
655
680
|
/*
|
|
656
681
|
* Public API Surface of angular-matecu
|
|
@@ -660,5 +685,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
660
685
|
* Generated bundle index. Do not edit.
|
|
661
686
|
*/
|
|
662
687
|
|
|
663
|
-
export { MatecuAlertBoxComponent, MatecuAlertBoxModule, MatecuAlertBoxType, MatecuAlertDialogComponent, MatecuAlertSnackBarComponent, MatecuSnackBarService, MatecuSpinnerComponent, MatecuSpinnerModule, MatecuSpinnerService,
|
|
688
|
+
export { MatecuAlertBoxComponent, MatecuAlertBoxModule, MatecuAlertBoxType, MatecuAlertDialogComponent, MatecuAlertSnackBarComponent, MatecuSnackBarService, MatecuSpinnerComponent, MatecuSpinnerModule, MatecuSpinnerService, MatecuTopbarActionComponent, MatecuTopbarBodyComponent, MatecuTopbarFabComponent, MatecuTopbarHeaderRowComponent, MatecuTopbarLayoutComponent, MatecuTopbarLayoutModule, MatecuTopbarSearchComponent, MatecuTopbarTitleComponent };
|
|
664
689
|
//# sourceMappingURL=angular-matecu.mjs.map
|