@cauca-911/material 18.0.0 → 18.0.1-beta2
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/esm2022/lib/buttons/base-button.mjs +33 -0
- package/esm2022/lib/buttons/basic-button/basic-button.component.mjs +64 -0
- package/esm2022/lib/buttons/flat-button/flat-button.component.mjs +64 -0
- package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +28 -0
- package/esm2022/lib/buttons/menu-item/menu-item.component.mjs +68 -0
- package/esm2022/lib/buttons/raised-button/raised-button.component.mjs +64 -0
- package/esm2022/lib/buttons/stroked-button/stroked-button.component.mjs +71 -0
- package/esm2022/lib/cauca-material.component.mjs +6 -5
- package/esm2022/lib/cauca-material.module.mjs +14 -52
- package/esm2022/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.mjs +14 -10
- package/esm2022/lib/cauca-menu-vertical/cauca-menu-vertical.component.mjs +16 -8
- package/esm2022/lib/cauca-simple-dialog/cauca-simple-dialog.component.mjs +14 -10
- package/esm2022/lib/cauca-slideshow/cauca-slideshow.component.mjs +6 -6
- package/esm2022/lib/dialogs/alert-dialog/alert-dialog.component.mjs +57 -0
- package/esm2022/lib/dialogs/confirm-dialog/confirm-dialog.component.mjs +69 -0
- package/esm2022/lib/dialogs/services/dialog.service.mjs +52 -0
- package/esm2022/lib/inputs/cauca-date-time-picker/cauca-date-time-picker.component.mjs +137 -0
- package/esm2022/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/components/desktop-time-picker/desktop-time-picker.component.mjs +2 -2
- package/esm2022/lib/inputs/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.mjs +358 -0
- package/esm2022/lib/inputs/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.mjs +74 -0
- package/esm2022/lib/inputs/cauca-date-time-picker/models/dialog-date-time-picker-data.mjs +2 -0
- package/esm2022/lib/inputs/cauca-input-file/cauca-input-file.component.mjs +147 -0
- package/esm2022/lib/inputs/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +99 -0
- package/esm2022/lib/inputs/password/models/password-validation.mjs +13 -0
- package/esm2022/lib/inputs/password/password-criteria/password-criteria.component.mjs +49 -0
- package/esm2022/lib/inputs/password/password-criteria-viewer/password-criteria-viewer.component.mjs +29 -0
- package/esm2022/lib/inputs/password/password-input/password-input.component.mjs +112 -0
- package/esm2022/lib/inputs/password/password-selection/password-selection.component.mjs +112 -0
- package/esm2022/lib/inputs/password/validators/password-validator.mjs +19 -0
- package/esm2022/lib/inputs/select-with-search/select-with-search.component.mjs +157 -0
- package/esm2022/lib/layout/expandable-panel/expandable-panel.component.mjs +75 -0
- package/esm2022/lib/layout/menu-expandable-panel/menu-expandable-panel.component.mjs +148 -0
- package/esm2022/lib/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.mjs +50 -0
- package/esm2022/lib/layout/page-title/page-title.component.mjs +86 -0
- package/esm2022/lib/notifications/snack-bar/snack-bar.component.mjs +75 -0
- package/esm2022/public-api.mjs +21 -4
- package/fesm2022/cauca-911-material.mjs +1988 -648
- package/fesm2022/cauca-911-material.mjs.map +1 -1
- package/lib/buttons/base-button.d.ts +21 -0
- package/lib/buttons/basic-button/basic-button.component.d.ts +6 -0
- package/lib/buttons/flat-button/flat-button.component.d.ts +6 -0
- package/lib/buttons/icon-button/icon-button.component.d.ts +6 -0
- package/lib/buttons/menu-item/menu-item.component.d.ts +9 -0
- package/lib/buttons/raised-button/raised-button.component.d.ts +6 -0
- package/lib/buttons/stroked-button/stroked-button.component.d.ts +6 -0
- package/lib/cauca-material.component.d.ts +1 -1
- package/lib/cauca-material.module.d.ts +4 -14
- package/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.d.ts +1 -1
- package/lib/cauca-menu-vertical/cauca-menu-vertical.component.d.ts +1 -1
- package/lib/cauca-simple-dialog/cauca-simple-dialog.component.d.ts +1 -1
- package/lib/cauca-slideshow/cauca-slideshow.component.d.ts +1 -1
- package/lib/dialogs/alert-dialog/alert-dialog.component.d.ts +18 -0
- package/lib/dialogs/confirm-dialog/confirm-dialog.component.d.ts +17 -0
- package/lib/dialogs/services/dialog.service.d.ts +26 -0
- package/lib/{cauca-input-file → inputs/cauca-input-file}/cauca-input-file.component.d.ts +1 -1
- package/lib/{cauca-input-multiple-langue → inputs/cauca-input-multiple-langue}/cauca-input-multiple-langue.component.d.ts +1 -1
- package/lib/inputs/password/models/password-validation.d.ts +9 -0
- package/lib/inputs/password/password-criteria/password-criteria.component.d.ts +9 -0
- package/lib/inputs/password/password-criteria-viewer/password-criteria-viewer.component.d.ts +9 -0
- package/lib/inputs/password/password-input/password-input.component.d.ts +25 -0
- package/lib/inputs/password/password-selection/password-selection.component.d.ts +20 -0
- package/lib/inputs/password/validators/password-validator.d.ts +9 -0
- package/lib/inputs/select-with-search/select-with-search.component.d.ts +32 -0
- package/lib/layout/expandable-panel/expandable-panel.component.d.ts +10 -0
- package/lib/layout/menu-expandable-panel/menu-expandable-panel.component.d.ts +29 -0
- package/lib/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.d.ts +13 -0
- package/lib/layout/page-title/page-title.component.d.ts +11 -0
- package/lib/notifications/snack-bar/snack-bar.component.d.ts +17 -0
- package/package.json +3 -2
- package/public-api.d.ts +20 -3
- package/esm2022/lib/cauca-date-time-picker/cauca-date-time-picker.component.mjs +0 -137
- package/esm2022/lib/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.mjs +0 -357
- package/esm2022/lib/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.mjs +0 -74
- package/esm2022/lib/cauca-date-time-picker/models/dialog-date-time-picker-data.mjs +0 -2
- package/esm2022/lib/cauca-input-file/cauca-input-file.component.mjs +0 -148
- package/esm2022/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +0 -87
- /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/cauca-date-time-picker.component.d.ts +0 -0
- /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/components/desktop-time-picker/desktop-time-picker.component.d.ts +0 -0
- /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/components/dialog-date-time-picker/dialog-date-time-picker.component.d.ts +0 -0
- /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/components/mobile-time-picker/mobile-time-picker.component.d.ts +0 -0
- /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/models/dialog-date-time-picker-data.d.ts +0 -0
|
@@ -1,33 +1,40 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component,
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import * as i4$1 from '@angular/material/form-field';
|
|
11
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
12
|
-
import * as i5 from '@angular/material/icon';
|
|
13
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
14
|
-
import * as i5$1 from '@angular/material/input';
|
|
15
|
-
import { MatInputModule } from '@angular/material/input';
|
|
16
|
-
import * as i6 from '@angular/material/tabs';
|
|
17
|
-
import { MatTabsModule } from '@angular/material/tabs';
|
|
18
|
-
import * as i3$1 from '@fortawesome/angular-fontawesome';
|
|
2
|
+
import { Injectable, Component, EventEmitter, Output, Input, HostListener, Inject, ViewChild, NgModule, input, computed, output, Directive, ChangeDetectionStrategy, model, inject, signal, HostBinding, forwardRef } from '@angular/core';
|
|
3
|
+
import * as i2 from '@ngx-translate/core';
|
|
4
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
+
import * as i1$1 from '@angular/material/icon';
|
|
6
|
+
import { MatIconModule, MatIcon } from '@angular/material/icon';
|
|
7
|
+
import * as i1 from '@angular/router';
|
|
8
|
+
import { NavigationEnd, Router, RouterModule } from '@angular/router';
|
|
9
|
+
import * as i2$1 from '@fortawesome/angular-fontawesome';
|
|
19
10
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
20
|
-
import * as i1$
|
|
21
|
-
import {
|
|
22
|
-
import * as i1$
|
|
11
|
+
import * as i1$4 from '@angular/common';
|
|
12
|
+
import { NgFor, NgIf, NgClass, CommonModule, NgForOf, AsyncPipe, DatePipe } from '@angular/common';
|
|
13
|
+
import * as i1$2 from '@angular/material/dialog';
|
|
23
14
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
15
|
+
import { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';
|
|
16
|
+
import * as i1$3 from '@cauca-911/core';
|
|
17
|
+
import * as i5 from '@angular/forms';
|
|
18
|
+
import { UntypedFormControl, Validators, ReactiveFormsModule, FormControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
19
|
+
import * as i2$3 from '@angular/material/form-field';
|
|
20
|
+
import { MatFormFieldModule, MatError } from '@angular/material/form-field';
|
|
21
|
+
import * as i4 from '@angular/material/input';
|
|
22
|
+
import { MatInputModule } from '@angular/material/input';
|
|
23
|
+
import * as i2$2 from '@angular/material/tabs';
|
|
24
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
25
|
+
import * as i4$1 from '@angular/material/button';
|
|
26
|
+
import { MatButton, MatIconButton, MatButtonModule } from '@angular/material/button';
|
|
27
|
+
import { MatMenuItem, MatMenuTrigger } from '@angular/material/menu';
|
|
28
|
+
import { filter, ReplaySubject, Subject, takeUntil, firstValueFrom } from 'rxjs';
|
|
29
|
+
import * as i2$4 from '@angular/material/select';
|
|
30
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
31
|
+
import * as i6 from 'ngx-mat-select-search';
|
|
32
|
+
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
33
|
+
import * as i3 from '@angular/material/core';
|
|
27
34
|
import { MatNativeDateModule } from '@angular/material/core';
|
|
28
|
-
import * as
|
|
35
|
+
import * as i3$1 from '@angular/material/datepicker';
|
|
29
36
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
30
|
-
import * as i1$
|
|
37
|
+
import * as i1$5 from '@angular/material/list';
|
|
31
38
|
import { MatListModule } from '@angular/material/list';
|
|
32
39
|
|
|
33
40
|
class CaucaMaterialService {
|
|
@@ -43,7 +50,7 @@ class CaucaMaterialService {
|
|
|
43
50
|
|
|
44
51
|
class CaucaMaterialComponent {
|
|
45
52
|
static { this.ɵfac = function CaucaMaterialComponent_Factory(t) { return new (t || CaucaMaterialComponent)(); }; }
|
|
46
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMaterialComponent, selectors: [["cauca-material"]], decls: 3, vars: 3, template: function CaucaMaterialComponent_Template(rf, ctx) { if (rf & 1) {
|
|
53
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMaterialComponent, selectors: [["cauca-material"]], standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 3, vars: 3, template: function CaucaMaterialComponent_Template(rf, ctx) { if (rf & 1) {
|
|
47
54
|
i0.ɵɵelementStart(0, "div");
|
|
48
55
|
i0.ɵɵtext(1);
|
|
49
56
|
i0.ɵɵpipe(2, "translate");
|
|
@@ -51,453 +58,181 @@ class CaucaMaterialComponent {
|
|
|
51
58
|
} if (rf & 2) {
|
|
52
59
|
i0.ɵɵadvance();
|
|
53
60
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "core.noGenericComponentOnThisLibrary"));
|
|
54
|
-
} }, dependencies: [
|
|
61
|
+
} }, dependencies: [TranslateModule, i2.TranslatePipe], encapsulation: 2 }); }
|
|
55
62
|
}
|
|
56
63
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialComponent, [{
|
|
57
64
|
type: Component,
|
|
58
|
-
args: [{ selector: 'cauca-material', template: "<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>" }]
|
|
65
|
+
args: [{ selector: 'cauca-material', imports: [TranslateModule], standalone: true, template: "<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>" }]
|
|
59
66
|
}], null, null); })();
|
|
60
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMaterialComponent, { className: "CaucaMaterialComponent", filePath: "lib\\cauca-material.component.ts", lineNumber:
|
|
61
|
-
|
|
62
|
-
class SimpleDialogData {
|
|
63
|
-
constructor() {
|
|
64
|
-
this.buttons = [];
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMaterialComponent, { className: "CaucaMaterialComponent", filePath: "lib\\cauca-material.component.ts", lineNumber: 10 }); })();
|
|
67
68
|
|
|
68
|
-
function
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
i0.ɵɵ
|
|
69
|
+
function CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
70
|
+
i0.ɵɵelement(0, "fa-icon", 8);
|
|
71
|
+
} if (rf & 2) {
|
|
72
|
+
const menu_r2 = i0.ɵɵnextContext(2).$implicit;
|
|
73
|
+
i0.ɵɵproperty("icon", menu_r2.icon);
|
|
74
|
+
} }
|
|
75
|
+
function CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
+
i0.ɵɵelement(0, "img", 9);
|
|
77
|
+
} if (rf & 2) {
|
|
78
|
+
const menu_r2 = i0.ɵɵnextContext(2).$implicit;
|
|
79
|
+
i0.ɵɵproperty("src", menu_r2.icon, i0.ɵɵsanitizeUrl);
|
|
80
|
+
} }
|
|
81
|
+
function CaucaMenuVerticalComponent_h4_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
83
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6)(2, CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template, 1, 1, "img", 7);
|
|
73
84
|
i0.ɵɵelementEnd();
|
|
74
85
|
} if (rf & 2) {
|
|
75
|
-
const
|
|
86
|
+
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
76
87
|
i0.ɵɵadvance();
|
|
77
|
-
i0.ɵɵ
|
|
88
|
+
i0.ɵɵproperty("ngIf", menu_r2.icon.filter !== undefined);
|
|
89
|
+
i0.ɵɵadvance();
|
|
90
|
+
i0.ɵɵproperty("ngIf", menu_r2.icon.filter === undefined);
|
|
78
91
|
} }
|
|
79
|
-
function
|
|
80
|
-
i0.ɵɵelementStart(0, "div",
|
|
81
|
-
i0.ɵɵ
|
|
92
|
+
function CaucaMenuVerticalComponent_h4_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
93
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
94
|
+
i0.ɵɵtext(2);
|
|
95
|
+
i0.ɵɵpipe(3, "translate");
|
|
96
|
+
i0.ɵɵelementEnd()();
|
|
97
|
+
} if (rf & 2) {
|
|
98
|
+
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
99
|
+
i0.ɵɵadvance(2);
|
|
100
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, menu_r2.label));
|
|
101
|
+
} }
|
|
102
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
103
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
104
|
+
i0.ɵɵtext(1, "\u2022");
|
|
82
105
|
i0.ɵɵelementEnd();
|
|
106
|
+
} }
|
|
107
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
108
|
+
i0.ɵɵelement(0, "fa-icon", 8);
|
|
83
109
|
} if (rf & 2) {
|
|
84
|
-
const
|
|
85
|
-
i0.ɵɵ
|
|
86
|
-
i0.ɵɵproperty("ngForOf", ctx_r2.data.buttons);
|
|
110
|
+
const submenu_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
111
|
+
i0.ɵɵproperty("icon", submenu_r5.icon);
|
|
87
112
|
} }
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSimpleDialogComponent, selectors: [["cauca-simple-dialog"]], decls: 5, vars: 3, consts: [["mat-dialog-title", ""], ["mat-dialog-content", ""], [3, "innerHTML"], ["mat-dialog-actions", "", 4, "ngIf"], ["mat-dialog-actions", ""], ["mat-raised-button", "", 3, "click", 4, "ngFor", "ngForOf"], ["mat-raised-button", "", 3, "click"]], template: function CaucaSimpleDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
98
|
-
i0.ɵɵelementStart(0, "h1", 0);
|
|
99
|
-
i0.ɵɵtext(1);
|
|
100
|
-
i0.ɵɵelementEnd();
|
|
101
|
-
i0.ɵɵelementStart(2, "div", 1);
|
|
102
|
-
i0.ɵɵelement(3, "div", 2);
|
|
103
|
-
i0.ɵɵelementEnd();
|
|
104
|
-
i0.ɵɵtemplate(4, CaucaSimpleDialogComponent_div_4_Template, 2, 1, "div", 3);
|
|
105
|
-
} if (rf & 2) {
|
|
106
|
-
i0.ɵɵadvance();
|
|
107
|
-
i0.ɵɵtextInterpolate(ctx.data.title);
|
|
108
|
-
i0.ɵɵadvance(2);
|
|
109
|
-
i0.ɵɵproperty("innerHTML", ctx.data.message, i0.ɵɵsanitizeHtml);
|
|
110
|
-
i0.ɵɵadvance();
|
|
111
|
-
i0.ɵɵproperty("ngIf", ctx.data.buttons);
|
|
112
|
-
} }, dependencies: [i2.NgForOf, i2.NgIf, i4.MatButton, i1$1.MatDialogTitle, i1$1.MatDialogActions, i1$1.MatDialogContent], styles: ["div[mat-dialog-actions][_ngcontent-%COMP%]{margin-top:20px;text-align:center}"] }); }
|
|
113
|
-
}
|
|
114
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSimpleDialogComponent, [{
|
|
115
|
-
type: Component,
|
|
116
|
-
args: [{ selector: 'cauca-simple-dialog', template: "<h1 mat-dialog-title>{{data.title}}</h1>\n<div mat-dialog-content>\n <div [innerHTML]=\"data.message\"></div>\n</div>\n<div mat-dialog-actions *ngIf=\"data.buttons\">\n <button *ngFor=\"let label of data.buttons; let i = index\" mat-raised-button (click)=\"onClick(i)\">{{label}}</button>\n</div>", styles: ["div[mat-dialog-actions]{margin-top:20px;text-align:center}\n"] }]
|
|
117
|
-
}], () => [{ type: i1$1.MatDialogRef }, { type: SimpleDialogData, decorators: [{
|
|
118
|
-
type: Inject,
|
|
119
|
-
args: [MAT_DIALOG_DATA]
|
|
120
|
-
}] }], null); })();
|
|
121
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSimpleDialogComponent, { className: "CaucaSimpleDialogComponent", filePath: "lib\\cauca-simple-dialog\\cauca-simple-dialog.component.ts", lineNumber: 10 }); })();
|
|
122
|
-
|
|
123
|
-
const _c0$3 = ["file"];
|
|
124
|
-
function CaucaInputFileComponent_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
125
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
|
126
|
-
i0.ɵɵtext(1);
|
|
113
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
114
|
+
i0.ɵɵelement(0, "img", 9);
|
|
115
|
+
} if (rf & 2) {
|
|
116
|
+
const submenu_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
117
|
+
i0.ɵɵproperty("src", submenu_r5.icon, i0.ɵɵsanitizeUrl);
|
|
118
|
+
} }
|
|
119
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
120
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
121
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6)(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template, 1, 1, "img", 7);
|
|
127
122
|
i0.ɵɵelementEnd();
|
|
128
123
|
} if (rf & 2) {
|
|
129
|
-
const
|
|
124
|
+
const submenu_r5 = i0.ɵɵnextContext().$implicit;
|
|
130
125
|
i0.ɵɵadvance();
|
|
131
|
-
i0.ɵɵ
|
|
126
|
+
i0.ɵɵproperty("ngIf", submenu_r5.icon.filter !== undefined);
|
|
127
|
+
i0.ɵɵadvance();
|
|
128
|
+
i0.ɵɵproperty("ngIf", submenu_r5.icon.filter === undefined);
|
|
132
129
|
} }
|
|
133
|
-
function
|
|
134
|
-
i0.ɵɵelementStart(0, "span");
|
|
135
|
-
i0.ɵɵtext(
|
|
130
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
131
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
132
|
+
i0.ɵɵtext(2);
|
|
133
|
+
i0.ɵɵpipe(3, "translate");
|
|
134
|
+
i0.ɵɵelementEnd()();
|
|
135
|
+
} if (rf & 2) {
|
|
136
|
+
const submenu_r5 = i0.ɵɵnextContext().$implicit;
|
|
137
|
+
i0.ɵɵadvance(2);
|
|
138
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, submenu_r5.label));
|
|
139
|
+
} }
|
|
140
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
141
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
142
|
+
i0.ɵɵelementStart(0, "div", 13);
|
|
143
|
+
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template_div_click_0_listener($event) { const submenu_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.goTo(submenu_r5.path, $event)); });
|
|
144
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template, 2, 0, "div", 14)(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template, 3, 2, "div", 2)(3, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template, 4, 3, "div", 3);
|
|
136
145
|
i0.ɵɵelementEnd();
|
|
137
146
|
} if (rf & 2) {
|
|
138
|
-
const
|
|
147
|
+
const submenu_r5 = ctx.$implicit;
|
|
148
|
+
i0.ɵɵclassMap(submenu_r5.activated ? "menu selected" : "menu");
|
|
139
149
|
i0.ɵɵadvance();
|
|
140
|
-
i0.ɵɵ
|
|
150
|
+
i0.ɵɵproperty("ngIf", !submenu_r5.icon);
|
|
151
|
+
i0.ɵɵadvance();
|
|
152
|
+
i0.ɵɵproperty("ngIf", submenu_r5.icon);
|
|
153
|
+
i0.ɵɵadvance();
|
|
154
|
+
i0.ɵɵproperty("ngIf", submenu_r5.label);
|
|
141
155
|
} }
|
|
142
|
-
function
|
|
143
|
-
|
|
144
|
-
i0.ɵɵ
|
|
145
|
-
i0.ɵɵelementStart(1, "input", 5, 1);
|
|
146
|
-
i0.ɵɵlistener("change", function CaucaInputFileComponent_ng_container_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectFile($event)); });
|
|
156
|
+
function CaucaMenuVerticalComponent_h4_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
157
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
158
|
+
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template, 4, 5, "div", 12);
|
|
147
159
|
i0.ɵɵelementEnd();
|
|
148
|
-
i0.ɵɵelementContainerEnd();
|
|
149
160
|
} if (rf & 2) {
|
|
150
|
-
const
|
|
161
|
+
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
151
162
|
i0.ɵɵadvance();
|
|
152
|
-
i0.ɵɵproperty("
|
|
163
|
+
i0.ɵɵproperty("ngForOf", menu_r2.childs);
|
|
153
164
|
} }
|
|
154
|
-
function
|
|
155
|
-
const
|
|
156
|
-
i0.ɵɵelementStart(0, "
|
|
157
|
-
i0.ɵɵlistener("
|
|
165
|
+
function CaucaMenuVerticalComponent_h4_0_Template(rf, ctx) { if (rf & 1) {
|
|
166
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
167
|
+
i0.ɵɵelementStart(0, "h4")(1, "div", 1);
|
|
168
|
+
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_Template_div_click_1_listener($event) { const menu_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.goTo(menu_r2.path, $event)); });
|
|
169
|
+
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_2_Template, 3, 2, "div", 2)(3, CaucaMenuVerticalComponent_h4_0_div_3_Template, 4, 3, "div", 3);
|
|
170
|
+
i0.ɵɵelementEnd();
|
|
171
|
+
i0.ɵɵtemplate(4, CaucaMenuVerticalComponent_h4_0_div_4_Template, 2, 1, "div", 4);
|
|
158
172
|
i0.ɵɵelementEnd();
|
|
159
173
|
} if (rf & 2) {
|
|
160
|
-
const
|
|
161
|
-
i0.ɵɵ
|
|
174
|
+
const menu_r2 = ctx.$implicit;
|
|
175
|
+
i0.ɵɵclassMap(menu_r2.activated ? "selected" : "");
|
|
176
|
+
i0.ɵɵadvance(2);
|
|
177
|
+
i0.ɵɵproperty("ngIf", menu_r2.icon);
|
|
178
|
+
i0.ɵɵadvance();
|
|
179
|
+
i0.ɵɵproperty("ngIf", menu_r2.label);
|
|
180
|
+
i0.ɵɵadvance();
|
|
181
|
+
i0.ɵɵproperty("ngIf", menu_r2.childs.length && menu_r2.activated);
|
|
162
182
|
} }
|
|
163
|
-
class
|
|
164
|
-
constructor(
|
|
165
|
-
this.
|
|
166
|
-
this.
|
|
167
|
-
this.
|
|
168
|
-
this.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
183
|
+
class CaucaMenuVerticalComponent {
|
|
184
|
+
constructor(router) {
|
|
185
|
+
this.router = router;
|
|
186
|
+
this.itemClick = new EventEmitter();
|
|
187
|
+
this.menuItems = [];
|
|
188
|
+
this.router.events.subscribe((route) => {
|
|
189
|
+
if (route instanceof NavigationEnd) {
|
|
190
|
+
this.selectActiveRoute(route);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
173
193
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
this.text = labels['material.select'];
|
|
179
|
-
});
|
|
180
|
-
}
|
|
194
|
+
goTo(path, e) {
|
|
195
|
+
this.router.navigate([path]);
|
|
196
|
+
this.itemClick.emit();
|
|
197
|
+
e.stopPropagation();
|
|
181
198
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if (e.target.files.length) {
|
|
191
|
-
this.dialog.open(CaucaSimpleDialogComponent, {
|
|
192
|
-
width: '250px',
|
|
193
|
-
disableClose: true,
|
|
194
|
-
data: {
|
|
195
|
-
title: this.labels['material.dialogTitle'],
|
|
196
|
-
message: this.labels['material.dialogMessage']
|
|
199
|
+
selectActiveRoute(route) {
|
|
200
|
+
this.menuItems.forEach((menu) => {
|
|
201
|
+
if (route.url) {
|
|
202
|
+
menu.activated = (route.url === menu.path || (menu.childs.length && route.url.indexOf(menu.path) > -1));
|
|
203
|
+
}
|
|
204
|
+
menu.childs.forEach((subMenu) => {
|
|
205
|
+
if (route.url) {
|
|
206
|
+
subMenu.activated = (route.url === subMenu.path || route.urlAfterRedirects === subMenu.path);
|
|
197
207
|
}
|
|
198
208
|
});
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
openDialog(event) {
|
|
202
|
-
if (this.file) {
|
|
203
|
-
this.file.nativeElement.click();
|
|
204
|
-
}
|
|
205
|
-
event.stopPropagation();
|
|
206
|
-
}
|
|
207
|
-
onError(error) {
|
|
208
|
-
throw error;
|
|
209
|
-
}
|
|
210
|
-
onReadEnd(file, e) {
|
|
211
|
-
this.dialog.closeAll();
|
|
212
|
-
this.readend.emit({
|
|
213
|
-
name: file.name,
|
|
214
|
-
size: file.size,
|
|
215
|
-
type: file.type,
|
|
216
|
-
lastModifiedDate: file.lastModifiedDate,
|
|
217
|
-
content: e.target['result'],
|
|
218
|
-
file,
|
|
219
209
|
});
|
|
220
210
|
}
|
|
221
|
-
static { this.ɵfac = function
|
|
222
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
223
|
-
i0.ɵɵ
|
|
224
|
-
} if (rf & 2) {
|
|
225
|
-
let _t;
|
|
226
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.file = _t.first);
|
|
227
|
-
} }, inputs: { accept: "accept", multiple: "multiple", icon: "icon", text: "text" }, outputs: { readend: "readend" }, decls: 6, vars: 4, consts: [["notMultipleInput", ""], ["file", ""], ["mat-raised-button", "", 3, "click"], [4, "ngIf"], [4, "ngIf", "ngIfElse"], ["type", "file", "multiple", "multiple", 3, "change", "accept"], ["type", "file", 3, "change", "accept"]], template: function CaucaInputFileComponent_Template(rf, ctx) { if (rf & 1) {
|
|
228
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
229
|
-
i0.ɵɵelementStart(0, "button", 2);
|
|
230
|
-
i0.ɵɵlistener("click", function CaucaInputFileComponent_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.openDialog($event)); });
|
|
231
|
-
i0.ɵɵtemplate(1, CaucaInputFileComponent_mat_icon_1_Template, 2, 1, "mat-icon", 3)(2, CaucaInputFileComponent_span_2_Template, 2, 1, "span", 3);
|
|
232
|
-
i0.ɵɵelementEnd();
|
|
233
|
-
i0.ɵɵtemplate(3, CaucaInputFileComponent_ng_container_3_Template, 3, 1, "ng-container", 4)(4, CaucaInputFileComponent_ng_template_4_Template, 2, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
234
|
-
} if (rf & 2) {
|
|
235
|
-
const notMultipleInput_r5 = i0.ɵɵreference(5);
|
|
236
|
-
i0.ɵɵadvance();
|
|
237
|
-
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
238
|
-
i0.ɵɵadvance();
|
|
239
|
-
i0.ɵɵproperty("ngIf", ctx.text);
|
|
240
|
-
i0.ɵɵadvance();
|
|
241
|
-
i0.ɵɵproperty("ngIf", ctx.multiple)("ngIfElse", notMultipleInput_r5);
|
|
242
|
-
} }, dependencies: [i2.NgIf, i4.MatButton, i5.MatIcon], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:none}"] }); }
|
|
243
|
-
}
|
|
244
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputFileComponent, [{
|
|
245
|
-
type: Component,
|
|
246
|
-
args: [{ selector: 'cauca-input-file', template: "<button mat-raised-button (click)=\"openDialog($event)\">\n <mat-icon *ngIf=\"icon\">{{icon}}</mat-icon>\n <span *ngIf=\"text\">{{text}}</span>\n</button>\n<ng-container *ngIf=\"multiple; else notMultipleInput\">\n <input #file type=\"file\" (change)=\"onSelectFile($event)\" [accept]=\"accept\" multiple=\"multiple\" />\n</ng-container>\n\n<ng-template #notMultipleInput>\n <input #file type=\"file\" (change)=\"onSelectFile($event)\" [accept]=\"accept\" />\n</ng-template>", styles: [":host input{display:none}\n"] }]
|
|
247
|
-
}], () => [{ type: i1$2.TranslateService }, { type: i1$1.MatDialog }], { file: [{
|
|
248
|
-
type: ViewChild,
|
|
249
|
-
args: ['file', { static: false }]
|
|
250
|
-
}], readend: [{
|
|
251
|
-
type: Output
|
|
252
|
-
}], accept: [{
|
|
253
|
-
type: Input
|
|
254
|
-
}], multiple: [{
|
|
255
|
-
type: Input
|
|
256
|
-
}], icon: [{
|
|
257
|
-
type: Input
|
|
258
|
-
}], text: [{
|
|
259
|
-
type: Input
|
|
260
|
-
}] }); })();
|
|
261
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputFileComponent, { className: "CaucaInputFileComponent", filePath: "lib\\cauca-input-file\\cauca-input-file.component.ts", lineNumber: 11 }); })();
|
|
262
|
-
|
|
263
|
-
function CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template(rf, ctx) { if (rf & 1) {
|
|
264
|
-
i0.ɵɵelementStart(0, "mat-error");
|
|
265
|
-
i0.ɵɵtext(1);
|
|
266
|
-
i0.ɵɵpipe(2, "translate");
|
|
267
|
-
i0.ɵɵelementEnd();
|
|
268
|
-
} if (rf & 2) {
|
|
269
|
-
const i_r1 = i0.ɵɵnextContext().index;
|
|
270
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
271
|
-
i0.ɵɵadvance();
|
|
272
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.getErrorMessage(i_r1)));
|
|
273
|
-
} }
|
|
274
|
-
function CaucaInputMultipleLangueComponent_mat_tab_1_Template(rf, ctx) { if (rf & 1) {
|
|
275
|
-
i0.ɵɵelementStart(0, "mat-tab", 2)(1, "mat-form-field", 3);
|
|
276
|
-
i0.ɵɵelement(2, "input", 4);
|
|
277
|
-
i0.ɵɵtemplate(3, CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template, 3, 3, "mat-error", 5);
|
|
278
|
-
i0.ɵɵelementEnd()();
|
|
279
|
-
} if (rf & 2) {
|
|
280
|
-
const lang_r3 = ctx.$implicit;
|
|
281
|
-
const i_r1 = ctx.index;
|
|
282
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
283
|
-
i0.ɵɵproperty("label", lang_r3);
|
|
284
|
-
i0.ɵɵadvance(2);
|
|
285
|
-
i0.ɵɵproperty("placeholder", lang_r3)("formControl", ctx_r1.forms[i_r1]);
|
|
286
|
-
i0.ɵɵadvance();
|
|
287
|
-
i0.ɵɵproperty("ngIf", ctx_r1.forms[i_r1].invalid);
|
|
288
|
-
} }
|
|
289
|
-
class CaucaInputMultipleLangueComponent {
|
|
290
|
-
constructor(coreService, translate) {
|
|
291
|
-
this.translate = translate;
|
|
292
|
-
this.value = [];
|
|
293
|
-
this.forms = [];
|
|
294
|
-
this.labels = [];
|
|
295
|
-
this.selectedIndex = 0;
|
|
296
|
-
this.config = coreService.getConfig();
|
|
297
|
-
}
|
|
298
|
-
ngOnInit() {
|
|
299
|
-
this.translate.get(this.config.languages).subscribe((labels) => {
|
|
300
|
-
for (const i in labels) {
|
|
301
|
-
if (labels[i]) {
|
|
302
|
-
this.labels.push(labels[i]);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
this.initializeForms();
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
onTagChanged(tabIndex) {
|
|
309
|
-
console.log('cauca-material, onTabChanged', tabIndex);
|
|
310
|
-
}
|
|
311
|
-
getErrorMessage(index) {
|
|
312
|
-
return this.forms[index].hasError('required') ? 'error.required' : '';
|
|
313
|
-
}
|
|
314
|
-
initializeForms() {
|
|
315
|
-
this.labels.forEach((item, index) => {
|
|
316
|
-
this.forms[index] = new UntypedFormControl('', [Validators.required]);
|
|
317
|
-
this.forms[index].setValue(this.value[index] || '');
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
static { this.ɵfac = function CaucaInputMultipleLangueComponent_Factory(t) { return new (t || CaucaInputMultipleLangueComponent)(i0.ɵɵdirectiveInject(i1$2.CaucaCoreService), i0.ɵɵdirectiveInject(i1$2.TranslateService)); }; }
|
|
321
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputMultipleLangueComponent, selectors: [["cauca-input-multiple-langue"]], inputs: { value: "value" }, decls: 2, vars: 2, consts: [[3, "selectedIndexChange", "selectedIndex"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label"], ["hideRequiredMarker", "never"], ["matInput", "", "required", "required", 3, "placeholder", "formControl"], [4, "ngIf"]], template: function CaucaInputMultipleLangueComponent_Template(rf, ctx) { if (rf & 1) {
|
|
322
|
-
i0.ɵɵelementStart(0, "mat-tab-group", 0);
|
|
323
|
-
i0.ɵɵlistener("selectedIndexChange", function CaucaInputMultipleLangueComponent_Template_mat_tab_group_selectedIndexChange_0_listener($event) { return ctx.onTagChanged($event); });
|
|
324
|
-
i0.ɵɵtemplate(1, CaucaInputMultipleLangueComponent_mat_tab_1_Template, 4, 4, "mat-tab", 1);
|
|
325
|
-
i0.ɵɵelementEnd();
|
|
326
|
-
} if (rf & 2) {
|
|
327
|
-
i0.ɵɵproperty("selectedIndex", ctx.selectedIndex);
|
|
328
|
-
i0.ɵɵadvance();
|
|
329
|
-
i0.ɵɵproperty("ngForOf", ctx.labels);
|
|
330
|
-
} }, dependencies: [i2.NgForOf, i2.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.RequiredValidator, i3.FormControlDirective, i4$1.MatFormField, i4$1.MatError, i5$1.MatInput, i6.MatTab, i6.MatTabGroup, i1.TranslatePipe], styles: [".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"] }); }
|
|
331
|
-
}
|
|
332
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputMultipleLangueComponent, [{
|
|
333
|
-
type: Component,
|
|
334
|
-
args: [{ selector: 'cauca-input-multiple-langue', template: "<mat-tab-group [selectedIndex]=\"selectedIndex\" (selectedIndexChange)=\"onTagChanged($event)\">\n <mat-tab *ngFor=\"let lang of labels; let i = index\" [label]=\"lang\">\n <mat-form-field hideRequiredMarker=\"never\">\n <input matInput [placeholder]=\"lang\" [formControl]=\"forms[i]\" required=\"required\">\n <mat-error *ngIf=\"forms[i].invalid\">{{getErrorMessage(i) | translate}}</mat-error>\n </mat-form-field>\n </mat-tab>\n</mat-tab-group>", styles: [".mat-mdc-form-field{width:100%}\n"] }]
|
|
335
|
-
}], () => [{ type: i1$2.CaucaCoreService }, { type: i1$2.TranslateService }], { value: [{
|
|
336
|
-
type: Input
|
|
337
|
-
}] }); })();
|
|
338
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputMultipleLangueComponent, { className: "CaucaInputMultipleLangueComponent", filePath: "lib\\cauca-input-multiple-langue\\cauca-input-multiple-langue.component.ts", lineNumber: 10 }); })();
|
|
339
|
-
|
|
340
|
-
function CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
341
|
-
i0.ɵɵelement(0, "fa-icon", 8);
|
|
342
|
-
} if (rf & 2) {
|
|
343
|
-
const menu_r2 = i0.ɵɵnextContext(2).$implicit;
|
|
344
|
-
i0.ɵɵproperty("icon", menu_r2.icon);
|
|
345
|
-
} }
|
|
346
|
-
function CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
347
|
-
i0.ɵɵelement(0, "img", 9);
|
|
348
|
-
} if (rf & 2) {
|
|
349
|
-
const menu_r2 = i0.ɵɵnextContext(2).$implicit;
|
|
350
|
-
i0.ɵɵproperty("src", menu_r2.icon, i0.ɵɵsanitizeUrl);
|
|
351
|
-
} }
|
|
352
|
-
function CaucaMenuVerticalComponent_h4_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
353
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
354
|
-
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6)(2, CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template, 1, 1, "img", 7);
|
|
355
|
-
i0.ɵɵelementEnd();
|
|
356
|
-
} if (rf & 2) {
|
|
357
|
-
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
358
|
-
i0.ɵɵadvance();
|
|
359
|
-
i0.ɵɵproperty("ngIf", menu_r2.icon.filter !== undefined);
|
|
360
|
-
i0.ɵɵadvance();
|
|
361
|
-
i0.ɵɵproperty("ngIf", menu_r2.icon.filter === undefined);
|
|
362
|
-
} }
|
|
363
|
-
function CaucaMenuVerticalComponent_h4_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
364
|
-
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
365
|
-
i0.ɵɵtext(2);
|
|
366
|
-
i0.ɵɵpipe(3, "translate");
|
|
367
|
-
i0.ɵɵelementEnd()();
|
|
368
|
-
} if (rf & 2) {
|
|
369
|
-
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
370
|
-
i0.ɵɵadvance(2);
|
|
371
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, menu_r2.label));
|
|
372
|
-
} }
|
|
373
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
374
|
-
i0.ɵɵelementStart(0, "div", 15);
|
|
375
|
-
i0.ɵɵtext(1, "\u2022");
|
|
376
|
-
i0.ɵɵelementEnd();
|
|
377
|
-
} }
|
|
378
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
379
|
-
i0.ɵɵelement(0, "fa-icon", 8);
|
|
380
|
-
} if (rf & 2) {
|
|
381
|
-
const submenu_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
382
|
-
i0.ɵɵproperty("icon", submenu_r5.icon);
|
|
383
|
-
} }
|
|
384
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
385
|
-
i0.ɵɵelement(0, "img", 9);
|
|
386
|
-
} if (rf & 2) {
|
|
387
|
-
const submenu_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
388
|
-
i0.ɵɵproperty("src", submenu_r5.icon, i0.ɵɵsanitizeUrl);
|
|
389
|
-
} }
|
|
390
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
391
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
392
|
-
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6)(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template, 1, 1, "img", 7);
|
|
393
|
-
i0.ɵɵelementEnd();
|
|
394
|
-
} if (rf & 2) {
|
|
395
|
-
const submenu_r5 = i0.ɵɵnextContext().$implicit;
|
|
396
|
-
i0.ɵɵadvance();
|
|
397
|
-
i0.ɵɵproperty("ngIf", submenu_r5.icon.filter !== undefined);
|
|
398
|
-
i0.ɵɵadvance();
|
|
399
|
-
i0.ɵɵproperty("ngIf", submenu_r5.icon.filter === undefined);
|
|
400
|
-
} }
|
|
401
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
402
|
-
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
403
|
-
i0.ɵɵtext(2);
|
|
404
|
-
i0.ɵɵpipe(3, "translate");
|
|
405
|
-
i0.ɵɵelementEnd()();
|
|
406
|
-
} if (rf & 2) {
|
|
407
|
-
const submenu_r5 = i0.ɵɵnextContext().$implicit;
|
|
408
|
-
i0.ɵɵadvance(2);
|
|
409
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, submenu_r5.label));
|
|
410
|
-
} }
|
|
411
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
412
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
413
|
-
i0.ɵɵelementStart(0, "div", 13);
|
|
414
|
-
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template_div_click_0_listener($event) { const submenu_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.goTo(submenu_r5.path, $event)); });
|
|
415
|
-
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template, 2, 0, "div", 14)(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template, 3, 2, "div", 2)(3, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template, 4, 3, "div", 3);
|
|
416
|
-
i0.ɵɵelementEnd();
|
|
417
|
-
} if (rf & 2) {
|
|
418
|
-
const submenu_r5 = ctx.$implicit;
|
|
419
|
-
i0.ɵɵclassMap(submenu_r5.activated ? "menu selected" : "menu");
|
|
420
|
-
i0.ɵɵadvance();
|
|
421
|
-
i0.ɵɵproperty("ngIf", !submenu_r5.icon);
|
|
422
|
-
i0.ɵɵadvance();
|
|
423
|
-
i0.ɵɵproperty("ngIf", submenu_r5.icon);
|
|
424
|
-
i0.ɵɵadvance();
|
|
425
|
-
i0.ɵɵproperty("ngIf", submenu_r5.label);
|
|
426
|
-
} }
|
|
427
|
-
function CaucaMenuVerticalComponent_h4_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
428
|
-
i0.ɵɵelementStart(0, "div", 11);
|
|
429
|
-
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template, 4, 5, "div", 12);
|
|
430
|
-
i0.ɵɵelementEnd();
|
|
431
|
-
} if (rf & 2) {
|
|
432
|
-
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
433
|
-
i0.ɵɵadvance();
|
|
434
|
-
i0.ɵɵproperty("ngForOf", menu_r2.childs);
|
|
435
|
-
} }
|
|
436
|
-
function CaucaMenuVerticalComponent_h4_0_Template(rf, ctx) { if (rf & 1) {
|
|
437
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
438
|
-
i0.ɵɵelementStart(0, "h4")(1, "div", 1);
|
|
439
|
-
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_Template_div_click_1_listener($event) { const menu_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.goTo(menu_r2.path, $event)); });
|
|
440
|
-
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_2_Template, 3, 2, "div", 2)(3, CaucaMenuVerticalComponent_h4_0_div_3_Template, 4, 3, "div", 3);
|
|
441
|
-
i0.ɵɵelementEnd();
|
|
442
|
-
i0.ɵɵtemplate(4, CaucaMenuVerticalComponent_h4_0_div_4_Template, 2, 1, "div", 4);
|
|
443
|
-
i0.ɵɵelementEnd();
|
|
444
|
-
} if (rf & 2) {
|
|
445
|
-
const menu_r2 = ctx.$implicit;
|
|
446
|
-
i0.ɵɵclassMap(menu_r2.activated ? "selected" : "");
|
|
447
|
-
i0.ɵɵadvance(2);
|
|
448
|
-
i0.ɵɵproperty("ngIf", menu_r2.icon);
|
|
449
|
-
i0.ɵɵadvance();
|
|
450
|
-
i0.ɵɵproperty("ngIf", menu_r2.label);
|
|
451
|
-
i0.ɵɵadvance();
|
|
452
|
-
i0.ɵɵproperty("ngIf", menu_r2.childs.length && menu_r2.activated);
|
|
453
|
-
} }
|
|
454
|
-
class CaucaMenuVerticalComponent {
|
|
455
|
-
constructor(router) {
|
|
456
|
-
this.router = router;
|
|
457
|
-
this.itemClick = new EventEmitter();
|
|
458
|
-
this.menuItems = [];
|
|
459
|
-
this.router.events.subscribe((route) => {
|
|
460
|
-
if (route instanceof NavigationEnd) {
|
|
461
|
-
this.selectActiveRoute(route);
|
|
462
|
-
}
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
goTo(path, e) {
|
|
466
|
-
this.router.navigate([path]);
|
|
467
|
-
this.itemClick.emit();
|
|
468
|
-
e.stopPropagation();
|
|
469
|
-
}
|
|
470
|
-
selectActiveRoute(route) {
|
|
471
|
-
this.menuItems.forEach((menu) => {
|
|
472
|
-
if (route.url) {
|
|
473
|
-
menu.activated = (route.url === menu.path || (menu.childs.length && route.url.indexOf(menu.path) > -1));
|
|
474
|
-
}
|
|
475
|
-
menu.childs.forEach((subMenu) => {
|
|
476
|
-
if (route.url) {
|
|
477
|
-
subMenu.activated = (route.url === subMenu.path || route.urlAfterRedirects === subMenu.path);
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
static { this.ɵfac = function CaucaMenuVerticalComponent_Factory(t) { return new (t || CaucaMenuVerticalComponent)(i0.ɵɵdirectiveInject(i1$3.Router)); }; }
|
|
483
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuVerticalComponent, selectors: [["cauca-menu-vertical"]], inputs: { menuItems: "menuItems" }, outputs: { itemClick: "itemClick" }, decls: 1, vars: 1, consts: [[3, "class", 4, "ngFor", "ngForOf"], [1, "menu", 3, "click"], ["class", "menu-icon", 4, "ngIf"], ["class", "menu-caption", 4, "ngIf"], ["class", "submenu", 4, "ngIf"], [1, "menu-icon"], [3, "icon", 4, "ngIf"], [3, "src", 4, "ngIf"], [3, "icon"], [3, "src"], [1, "menu-caption"], [1, "submenu"], [3, "class", "click", 4, "ngFor", "ngForOf"], [3, "click"], ["class", "menu-dot", 4, "ngIf"], [1, "menu-dot"]], template: function CaucaMenuVerticalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
484
|
-
i0.ɵɵtemplate(0, CaucaMenuVerticalComponent_h4_0_Template, 5, 5, "h4", 0);
|
|
211
|
+
static { this.ɵfac = function CaucaMenuVerticalComponent_Factory(t) { return new (t || CaucaMenuVerticalComponent)(i0.ɵɵdirectiveInject(i1.Router)); }; }
|
|
212
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuVerticalComponent, selectors: [["cauca-menu-vertical"]], inputs: { menuItems: "menuItems" }, outputs: { itemClick: "itemClick" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 1, vars: 1, consts: [[3, "class", 4, "ngFor", "ngForOf"], [1, "menu", 3, "click"], ["class", "menu-icon", 4, "ngIf"], ["class", "menu-caption", 4, "ngIf"], ["class", "submenu", 4, "ngIf"], [1, "menu-icon"], [3, "icon", 4, "ngIf"], [3, "src", 4, "ngIf"], [3, "icon"], [3, "src"], [1, "menu-caption"], [1, "submenu"], [3, "class", "click", 4, "ngFor", "ngForOf"], [3, "click"], ["class", "menu-dot", 4, "ngIf"], [1, "menu-dot"]], template: function CaucaMenuVerticalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
213
|
+
i0.ɵɵtemplate(0, CaucaMenuVerticalComponent_h4_0_Template, 5, 5, "h4", 0);
|
|
485
214
|
} if (rf & 2) {
|
|
486
215
|
i0.ɵɵproperty("ngForOf", ctx.menuItems);
|
|
487
|
-
} }, dependencies: [
|
|
216
|
+
} }, dependencies: [FontAwesomeModule, i2$1.FaIconComponent, TranslateModule, i2.TranslatePipe, NgFor,
|
|
217
|
+
NgIf], styles: [".menu[_ngcontent-%COMP%], .submenu[_ngcontent-%COMP%]{cursor:pointer}h4[_ngcontent-%COMP%]{margin:0;padding:0}h4[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{padding:1em 0;display:flex;flex-direction:row}h4[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 1 auto;align-self:center}.menu-dot[_ngcontent-%COMP%]{max-width:1.1em;text-align:center;margin-right:.5em;font-size:2em}.menu-icon[_ngcontent-%COMP%]{max-width:60px;text-align:center;margin-right:.5em}.submenu[_ngcontent-%COMP%]{margin-left:1em}.submenu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{padding:0;font-size:.9em;line-height:2.2em}.submenu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]:before{content:\"\";margin-left:1.1em;width:.1em;height:2.5em;position:relative;background:#fff;margin-right:-1.17em}"] }); }
|
|
488
218
|
}
|
|
489
219
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuVerticalComponent, [{
|
|
490
220
|
type: Component,
|
|
491
|
-
args: [{ selector: 'cauca-menu-vertical',
|
|
492
|
-
|
|
221
|
+
args: [{ selector: 'cauca-menu-vertical', standalone: true, imports: [
|
|
222
|
+
FontAwesomeModule,
|
|
223
|
+
TranslateModule,
|
|
224
|
+
NgFor,
|
|
225
|
+
NgIf
|
|
226
|
+
], template: "<h4 *ngFor=\"let menu of menuItems\" [class]=\"menu.activated ? 'selected' : ''\">\n <div (click)=\"goTo(menu.path, $event)\" class=\"menu\">\n <div *ngIf=\"menu.icon\" class=\"menu-icon\">\n <fa-icon *ngIf=\"menu.icon.filter !== undefined\" [icon]=\"menu.icon\"></fa-icon>\n <img *ngIf=\"menu.icon.filter === undefined\" [src]=\"menu.icon\" />\n </div>\n <div *ngIf=\"menu.label\" class=\"menu-caption\">\n <span>{{menu.label | translate}}</span>\n </div>\n </div>\n <div *ngIf=\"menu.childs.length && menu.activated\" class=\"submenu\">\n <div\n *ngFor=\"let submenu of menu.childs\"\n [class]=\"submenu.activated ? 'menu selected' : 'menu'\"\n (click)=\"goTo(submenu.path, $event)\">\n <div *ngIf=\"!submenu.icon\" class=\"menu-dot\">•</div>\n <div *ngIf=\"submenu.icon\" class=\"menu-icon\">\n <fa-icon *ngIf=\"submenu.icon.filter !== undefined\" [icon]=\"submenu.icon\"></fa-icon>\n <img *ngIf=\"submenu.icon.filter === undefined\" [src]=\"submenu.icon\" />\n </div>\n <div *ngIf=\"submenu.label\" class=\"menu-caption\">\n <span>{{submenu.label | translate}}</span>\n </div>\n </div>\n </div>\n</h4>\n", styles: [".menu,.submenu{cursor:pointer}h4{margin:0;padding:0}h4 .menu{padding:1em 0;display:flex;flex-direction:row}h4 .menu>div{flex:1 1 auto;align-self:center}.menu-dot{max-width:1.1em;text-align:center;margin-right:.5em;font-size:2em}.menu-icon{max-width:60px;text-align:center;margin-right:.5em}.submenu{margin-left:1em}.submenu .menu{padding:0;font-size:.9em;line-height:2.2em}.submenu .menu:before{content:\"\";margin-left:1.1em;width:.1em;height:2.5em;position:relative;background:#fff;margin-right:-1.17em}\n"] }]
|
|
227
|
+
}], () => [{ type: i1.Router }], { itemClick: [{
|
|
493
228
|
type: Output
|
|
494
229
|
}], menuItems: [{
|
|
495
230
|
type: Input
|
|
496
231
|
}] }); })();
|
|
497
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuVerticalComponent, { className: "CaucaMenuVerticalComponent", filePath: "lib\\cauca-menu-vertical\\cauca-menu-vertical.component.ts", lineNumber:
|
|
232
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuVerticalComponent, { className: "CaucaMenuVerticalComponent", filePath: "lib\\cauca-menu-vertical\\cauca-menu-vertical.component.ts", lineNumber: 20 }); })();
|
|
498
233
|
|
|
499
|
-
const _c0$
|
|
500
|
-
const _c1 = ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"];
|
|
234
|
+
const _c0$7 = [[["", "header", ""]], [["", "beforeMenu", ""]], [["", "afterMenu", ""]], [["", "footer", ""]]];
|
|
235
|
+
const _c1$1 = ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"];
|
|
501
236
|
function CaucaMenuSidebarComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
502
237
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
503
238
|
i0.ɵɵelementStart(0, "div", 7)(1, "div", 8);
|
|
@@ -595,9 +330,9 @@ class CaucaMenuSidebarComponent {
|
|
|
595
330
|
static { this.ɵfac = function CaucaMenuSidebarComponent_Factory(t) { return new (t || CaucaMenuSidebarComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
|
|
596
331
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuSidebarComponent, selectors: [["cauca-menu-sidebar"]], hostBindings: function CaucaMenuSidebarComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
597
332
|
i0.ɵɵlistener("resize", function CaucaMenuSidebarComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
|
|
598
|
-
} }, inputs: { menuItems: "menuItems", version: "version" }, ngContentSelectors: _c1, decls: 13, vars: 2, consts: [["menu", ""], [1, "header"], ["mat-icon-button", "", 1, "close", 3, "click"], [1, "content"], [3, "itemClick", "menuItems"], [1, "footer"], ["class", "version", 4, "ngIf"], [1, "version"], [1, "double-arrow", 3, "click"], [1, "full"], [1, "abbr"]], template: function CaucaMenuSidebarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
333
|
+
} }, inputs: { menuItems: "menuItems", version: "version" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c1$1, decls: 13, vars: 2, consts: [["menu", ""], [1, "header"], ["mat-icon-button", "", 1, "close", 3, "click"], [1, "content"], [3, "itemClick", "menuItems"], [1, "footer"], ["class", "version", 4, "ngIf"], [1, "version"], [1, "double-arrow", 3, "click"], [1, "full"], [1, "abbr"]], template: function CaucaMenuSidebarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
599
334
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
600
|
-
i0.ɵɵprojectionDef(_c0$
|
|
335
|
+
i0.ɵɵprojectionDef(_c0$7);
|
|
601
336
|
i0.ɵɵelementStart(0, "div", 1)(1, "button", 2);
|
|
602
337
|
i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.hideOnMobile()); });
|
|
603
338
|
i0.ɵɵelementStart(2, "mat-icon");
|
|
@@ -617,235 +352,1620 @@ class CaucaMenuSidebarComponent {
|
|
|
617
352
|
i0.ɵɵelementEnd();
|
|
618
353
|
i0.ɵɵtemplate(12, CaucaMenuSidebarComponent_div_12_Template, 7, 5, "div", 6);
|
|
619
354
|
} if (rf & 2) {
|
|
620
|
-
i0.ɵɵadvance(7);
|
|
621
|
-
i0.ɵɵproperty("menuItems", ctx.menuItems);
|
|
622
|
-
i0.ɵɵadvance(5);
|
|
623
|
-
i0.ɵɵproperty("ngIf", ctx.version);
|
|
624
|
-
} }, dependencies: [
|
|
355
|
+
i0.ɵɵadvance(7);
|
|
356
|
+
i0.ɵɵproperty("menuItems", ctx.menuItems);
|
|
357
|
+
i0.ɵɵadvance(5);
|
|
358
|
+
i0.ɵɵproperty("ngIf", ctx.version);
|
|
359
|
+
} }, dependencies: [MatIconModule, i1$1.MatIcon, TranslateModule, i2.TranslatePipe, CaucaMenuVerticalComponent], styles: ["[_nghost-%COMP%]{height:100%;flex-direction:column;display:flex;transition:all .1s ease-out;overflow:hidden;scrollbar-width:5px;scrollbar-color:rgba(0,0,0,.1) rgba(0,0,0,.2)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-radius:5px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.1)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:5px;background-color:#0003;outline:1px solid slategrey}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] > .header[_ngcontent-%COMP%], [_nghost-%COMP%] > .footer[_ngcontent-%COMP%]{flex:0 0 auto}[_nghost-%COMP%] > .content[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden auto}[_nghost-%COMP%] > .version[_ngcontent-%COMP%]{max-height:1em}.hidden[_nghost-%COMP%]{width:0;min-width:0;max-width:0}.mobile[_nghost-%COMP%]{width:275px;min-width:275px;max-width:275px;position:absolute;z-index:10}.collapsed[_nghost-%COMP%]{width:75px;min-width:75px;max-width:75px}.expanded[_nghost-%COMP%]{width:275px;min-width:275px;max-width:275px}[_nghost-%COMP%] .close[_ngcontent-%COMP%]{display:none}.mobile[_nghost-%COMP%] .close[_ngcontent-%COMP%]{right:0;display:inline-block;position:absolute}.double-arrow[_ngcontent-%COMP%]{height:3em;line-height:3em;cursor:pointer;position:fixed;opacity:.25;margin-top:-1em}.double-arrow[_ngcontent-%COMP%]:hover{opacity:1}.expanded[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]:before, .collapsed[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]:before{font-family:Material Icons;content:\"double_arrow\";font-size:3em;text-align:right}.collapsed[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]{margin-left:10px}.expanded[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]{margin-left:200px}.collapsed[_nghost-%COMP%] .menu-caption, .collapsed[_nghost-%COMP%] .submenu{display:none}.keepExpanded[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]{transform:rotate(180deg);opacity:1}.version[_ngcontent-%COMP%]{bottom:0;padding:1em}.full[_ngcontent-%COMP%], .abbr[_ngcontent-%COMP%]{display:none}.collapsed[_nghost-%COMP%] .abbr[_ngcontent-%COMP%]{display:inline}.mobile[_nghost-%COMP%] .full[_ngcontent-%COMP%], .expanded[_nghost-%COMP%] .full[_ngcontent-%COMP%]{display:inline}@media only screen and (max-width: 1000px){.double-arrow[_ngcontent-%COMP%]{display:none}}"] }); }
|
|
360
|
+
}
|
|
361
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuSidebarComponent, [{
|
|
362
|
+
type: Component,
|
|
363
|
+
args: [{ selector: 'cauca-menu-sidebar', standalone: true, imports: [
|
|
364
|
+
MatIconModule,
|
|
365
|
+
TranslateModule,
|
|
366
|
+
CaucaMenuVerticalComponent,
|
|
367
|
+
], template: "<div class=\"header\">\n <button mat-icon-button class=\"close\" (click)=\"hideOnMobile()\">\n <mat-icon>clear</mat-icon>\n </button>\n <ng-content select=\"[header]\"></ng-content>\n</div>\n<div class=\"content\">\n <ng-content select=\"[beforeMenu]\"></ng-content>\n <cauca-menu-vertical #menu [menuItems]=\"menuItems\" (itemClick)=\"onMenuItemClick()\"></cauca-menu-vertical>\n <ng-content select=\"[afterMenu]\"></ng-content>\n</div>\n<div class=\"footer\">\n <ng-content select=\"[footer]\"></ng-content>\n</div>\n<div *ngIf=\"version\" class=\"version\">\n <div class=\"double-arrow\" (click)=\"onToggleCollapse()\"></div>\n <span class=\"full\">{{'material.version' | translate}} {{version}}</span>\n <span class=\"abbr\">{{version}}</span>\n</div>\n", styles: [":host{height:100%;flex-direction:column;display:flex;transition:all .1s ease-out;overflow:hidden;scrollbar-width:5px;scrollbar-color:rgba(0,0,0,.1) rgba(0,0,0,.2)}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{border-radius:5px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.1)}::-webkit-scrollbar-thumb{border-radius:5px;background-color:#0003;outline:1px solid slategrey}:host>div{flex:1}:host>.header,:host>.footer{flex:0 0 auto}:host>.content{flex-grow:1;overflow:hidden auto}:host>.version{max-height:1em}:host.hidden{width:0;min-width:0;max-width:0}:host.mobile{width:275px;min-width:275px;max-width:275px;position:absolute;z-index:10}:host.collapsed{width:75px;min-width:75px;max-width:75px}:host.expanded{width:275px;min-width:275px;max-width:275px}:host .close{display:none}:host.mobile .close{right:0;display:inline-block;position:absolute}.double-arrow{height:3em;line-height:3em;cursor:pointer;position:fixed;opacity:.25;margin-top:-1em}.double-arrow:hover{opacity:1}:host.expanded .double-arrow:before,:host.collapsed .double-arrow:before{font-family:Material Icons;content:\"double_arrow\";font-size:3em;text-align:right}:host.collapsed .double-arrow{margin-left:10px}:host.expanded .double-arrow{margin-left:200px}:host.collapsed ::ng-deep .menu-caption,:host.collapsed ::ng-deep .submenu{display:none}:host.keepExpanded .double-arrow{transform:rotate(180deg);opacity:1}.version{bottom:0;padding:1em}.full,.abbr{display:none}:host.collapsed .abbr{display:inline}:host.mobile .full,:host.expanded .full{display:inline}@media only screen and (max-width: 1000px){.double-arrow{display:none}}\n"] }]
|
|
368
|
+
}], () => [{ type: i0.ElementRef }], { menuItems: [{
|
|
369
|
+
type: Input
|
|
370
|
+
}], version: [{
|
|
371
|
+
type: Input
|
|
372
|
+
}], onResize: [{
|
|
373
|
+
type: HostListener,
|
|
374
|
+
args: ['window:resize', ['$event']]
|
|
375
|
+
}] }); })();
|
|
376
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuSidebarComponent, { className: "CaucaMenuSidebarComponent", filePath: "lib\\cauca-menu-sidebar\\cauca-menu-sidebar.component.ts", lineNumber: 18 }); })();
|
|
377
|
+
|
|
378
|
+
class SimpleDialogData {
|
|
379
|
+
constructor() {
|
|
380
|
+
this.buttons = [];
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
function CaucaSimpleDialogComponent_div_4_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
385
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
386
|
+
i0.ɵɵelementStart(0, "button", 6);
|
|
387
|
+
i0.ɵɵlistener("click", function CaucaSimpleDialogComponent_div_4_button_1_Template_button_click_0_listener() { const i_r2 = i0.ɵɵrestoreView(_r1).index; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onClick(i_r2)); });
|
|
388
|
+
i0.ɵɵtext(1);
|
|
389
|
+
i0.ɵɵelementEnd();
|
|
390
|
+
} if (rf & 2) {
|
|
391
|
+
const label_r4 = ctx.$implicit;
|
|
392
|
+
i0.ɵɵadvance();
|
|
393
|
+
i0.ɵɵtextInterpolate(label_r4);
|
|
394
|
+
} }
|
|
395
|
+
function CaucaSimpleDialogComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
396
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
397
|
+
i0.ɵɵtemplate(1, CaucaSimpleDialogComponent_div_4_button_1_Template, 2, 1, "button", 5);
|
|
398
|
+
i0.ɵɵelementEnd();
|
|
399
|
+
} if (rf & 2) {
|
|
400
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
401
|
+
i0.ɵɵadvance();
|
|
402
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.data.buttons);
|
|
403
|
+
} }
|
|
404
|
+
class CaucaSimpleDialogComponent {
|
|
405
|
+
constructor(dialogRef, data) {
|
|
406
|
+
this.dialogRef = dialogRef;
|
|
407
|
+
this.data = data;
|
|
408
|
+
}
|
|
409
|
+
onClick(buttonIndex) {
|
|
410
|
+
this.dialogRef.close(buttonIndex);
|
|
411
|
+
}
|
|
412
|
+
static { this.ɵfac = function CaucaSimpleDialogComponent_Factory(t) { return new (t || CaucaSimpleDialogComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
|
|
413
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSimpleDialogComponent, selectors: [["cauca-simple-dialog"]], standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 5, vars: 3, consts: [["mat-dialog-title", ""], ["mat-dialog-content", ""], [3, "innerHTML"], ["mat-dialog-actions", "", 4, "ngIf"], ["mat-dialog-actions", ""], ["mat-raised-button", "", 3, "click", 4, "ngFor", "ngForOf"], ["mat-raised-button", "", 3, "click"]], template: function CaucaSimpleDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
414
|
+
i0.ɵɵelementStart(0, "h1", 0);
|
|
415
|
+
i0.ɵɵtext(1);
|
|
416
|
+
i0.ɵɵelementEnd();
|
|
417
|
+
i0.ɵɵelementStart(2, "div", 1);
|
|
418
|
+
i0.ɵɵelement(3, "div", 2);
|
|
419
|
+
i0.ɵɵelementEnd();
|
|
420
|
+
i0.ɵɵtemplate(4, CaucaSimpleDialogComponent_div_4_Template, 2, 1, "div", 3);
|
|
421
|
+
} if (rf & 2) {
|
|
422
|
+
i0.ɵɵadvance();
|
|
423
|
+
i0.ɵɵtextInterpolate(ctx.data.title);
|
|
424
|
+
i0.ɵɵadvance(2);
|
|
425
|
+
i0.ɵɵproperty("innerHTML", ctx.data.message, i0.ɵɵsanitizeHtml);
|
|
426
|
+
i0.ɵɵadvance();
|
|
427
|
+
i0.ɵɵproperty("ngIf", ctx.data.buttons);
|
|
428
|
+
} }, dependencies: [MatDialogModule, i1$2.MatDialogTitle, i1$2.MatDialogActions, i1$2.MatDialogContent, NgIf,
|
|
429
|
+
NgFor], styles: ["div[mat-dialog-actions][_ngcontent-%COMP%]{margin-top:20px;text-align:center}"] }); }
|
|
430
|
+
}
|
|
431
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSimpleDialogComponent, [{
|
|
432
|
+
type: Component,
|
|
433
|
+
args: [{ selector: 'cauca-simple-dialog', standalone: true, imports: [
|
|
434
|
+
MatDialogModule,
|
|
435
|
+
NgIf,
|
|
436
|
+
NgFor,
|
|
437
|
+
], template: "<h1 mat-dialog-title>{{data.title}}</h1>\n<div mat-dialog-content>\n <div [innerHTML]=\"data.message\"></div>\n</div>\n<div mat-dialog-actions *ngIf=\"data.buttons\">\n <button *ngFor=\"let label of data.buttons; let i = index\" mat-raised-button (click)=\"onClick(i)\">{{label}}</button>\n</div>", styles: ["div[mat-dialog-actions]{margin-top:20px;text-align:center}\n"] }]
|
|
438
|
+
}], () => [{ type: i1$2.MatDialogRef }, { type: SimpleDialogData, decorators: [{
|
|
439
|
+
type: Inject,
|
|
440
|
+
args: [MAT_DIALOG_DATA]
|
|
441
|
+
}] }], null); })();
|
|
442
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSimpleDialogComponent, { className: "CaucaSimpleDialogComponent", filePath: "lib\\cauca-simple-dialog\\cauca-simple-dialog.component.ts", lineNumber: 17 }); })();
|
|
443
|
+
|
|
444
|
+
const _c0$6 = ["container"];
|
|
445
|
+
function CaucaSlideshowComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
446
|
+
i0.ɵɵelementStart(0, "div");
|
|
447
|
+
i0.ɵɵelement(1, "img", 3);
|
|
448
|
+
i0.ɵɵelementEnd();
|
|
449
|
+
} if (rf & 2) {
|
|
450
|
+
const url_r1 = ctx.$implicit;
|
|
451
|
+
const index_r2 = ctx.index;
|
|
452
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
453
|
+
i0.ɵɵproperty("@slideLeftRight", ctx_r2.getState(index_r2));
|
|
454
|
+
i0.ɵɵadvance();
|
|
455
|
+
i0.ɵɵproperty("src", url_r1, i0.ɵɵsanitizeUrl);
|
|
456
|
+
} }
|
|
457
|
+
class CaucaSlideshowComponent {
|
|
458
|
+
constructor() {
|
|
459
|
+
this.height = '150px';
|
|
460
|
+
this.autoPlay = true;
|
|
461
|
+
this.timer = null;
|
|
462
|
+
this.items = [];
|
|
463
|
+
this.states = [];
|
|
464
|
+
this.selectedIndex = 0;
|
|
465
|
+
}
|
|
466
|
+
set images(list) {
|
|
467
|
+
this.items = list;
|
|
468
|
+
this.restart();
|
|
469
|
+
}
|
|
470
|
+
get images() {
|
|
471
|
+
return this.items;
|
|
472
|
+
}
|
|
473
|
+
ngOnInit() {
|
|
474
|
+
this.container.nativeElement.style.height = this.height;
|
|
475
|
+
this.container.nativeElement.style.width = '100%';
|
|
476
|
+
}
|
|
477
|
+
getState(index) {
|
|
478
|
+
if (this.states[index]) {
|
|
479
|
+
return this.states[index];
|
|
480
|
+
}
|
|
481
|
+
return (this.selectedIndex === index ? 'in' : 'out');
|
|
482
|
+
}
|
|
483
|
+
restart() {
|
|
484
|
+
if (this.timer) {
|
|
485
|
+
window.clearInterval(this.timer);
|
|
486
|
+
}
|
|
487
|
+
if (this.images && this.images.length) {
|
|
488
|
+
this.timer = window.setInterval(() => this.changed('next'), 5000);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
next() {
|
|
492
|
+
if (this.selectedIndex < this.items.length - 1) {
|
|
493
|
+
this.selectedIndex++;
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
this.selectedIndex = 0;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
changed(action) {
|
|
500
|
+
this.states[this.selectedIndex] = 'out';
|
|
501
|
+
this[action]();
|
|
502
|
+
this.states[this.selectedIndex] = 'in';
|
|
503
|
+
}
|
|
504
|
+
static { this.ɵfac = function CaucaSlideshowComponent_Factory(t) { return new (t || CaucaSlideshowComponent)(); }; }
|
|
505
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSlideshowComponent, selectors: [["cauca-slideshow"]], viewQuery: function CaucaSlideshowComponent_Query(rf, ctx) { if (rf & 1) {
|
|
506
|
+
i0.ɵɵviewQuery(_c0$6, 7);
|
|
507
|
+
} if (rf & 2) {
|
|
508
|
+
let _t;
|
|
509
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
510
|
+
} }, inputs: { height: "height", autoPlay: "autoPlay", images: "images" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 3, vars: 1, consts: [["container", ""], [1, "slideshow"], [4, "ngFor", "ngForOf"], [3, "src"]], template: function CaucaSlideshowComponent_Template(rf, ctx) { if (rf & 1) {
|
|
511
|
+
i0.ɵɵelementStart(0, "div", 1, 0);
|
|
512
|
+
i0.ɵɵtemplate(2, CaucaSlideshowComponent_div_2_Template, 2, 2, "div", 2);
|
|
513
|
+
i0.ɵɵelementEnd();
|
|
514
|
+
} if (rf & 2) {
|
|
515
|
+
i0.ɵɵadvance(2);
|
|
516
|
+
i0.ɵɵproperty("ngForOf", ctx.images);
|
|
517
|
+
} }, dependencies: [NgFor], styles: [".slideshow[_ngcontent-%COMP%]{margin:0 auto;position:relative;overflow:hidden}.slideshow[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute}img[_ngcontent-%COMP%]{max-height:100%;max-width:100%;margin:0 auto;display:block}"], data: { animation: [
|
|
518
|
+
trigger('slideUpDown', [
|
|
519
|
+
state('in', style({ transform: 'translateY(0%)' })),
|
|
520
|
+
state('out', style({ transform: 'translateY(-100%)' })),
|
|
521
|
+
transition('in => out', [
|
|
522
|
+
animate('500ms ease-in')
|
|
523
|
+
]),
|
|
524
|
+
transition('out => in', [
|
|
525
|
+
style({ transform: 'translateY(100%)' }),
|
|
526
|
+
animate('500ms ease-in')
|
|
527
|
+
]),
|
|
528
|
+
]),
|
|
529
|
+
trigger('slideLeftRight', [
|
|
530
|
+
state('in', style({ transform: 'translateX(0%)' })),
|
|
531
|
+
state('out', style({ transform: 'translateX(-100%)' })),
|
|
532
|
+
transition('in => out', [
|
|
533
|
+
animate('500ms ease-in')
|
|
534
|
+
]),
|
|
535
|
+
transition('out => in', [
|
|
536
|
+
style({ transform: 'translateX(100%)' }),
|
|
537
|
+
animate('500ms ease-in')
|
|
538
|
+
]),
|
|
539
|
+
]),
|
|
540
|
+
] } }); }
|
|
541
|
+
}
|
|
542
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSlideshowComponent, [{
|
|
543
|
+
type: Component,
|
|
544
|
+
args: [{ selector: 'cauca-slideshow', animations: [
|
|
545
|
+
trigger('slideUpDown', [
|
|
546
|
+
state('in', style({ transform: 'translateY(0%)' })),
|
|
547
|
+
state('out', style({ transform: 'translateY(-100%)' })),
|
|
548
|
+
transition('in => out', [
|
|
549
|
+
animate('500ms ease-in')
|
|
550
|
+
]),
|
|
551
|
+
transition('out => in', [
|
|
552
|
+
style({ transform: 'translateY(100%)' }),
|
|
553
|
+
animate('500ms ease-in')
|
|
554
|
+
]),
|
|
555
|
+
]),
|
|
556
|
+
trigger('slideLeftRight', [
|
|
557
|
+
state('in', style({ transform: 'translateX(0%)' })),
|
|
558
|
+
state('out', style({ transform: 'translateX(-100%)' })),
|
|
559
|
+
transition('in => out', [
|
|
560
|
+
animate('500ms ease-in')
|
|
561
|
+
]),
|
|
562
|
+
transition('out => in', [
|
|
563
|
+
style({ transform: 'translateX(100%)' }),
|
|
564
|
+
animate('500ms ease-in')
|
|
565
|
+
]),
|
|
566
|
+
]),
|
|
567
|
+
], standalone: true, imports: [NgFor], template: "<div #container class=\"slideshow\">\n <div *ngFor=\"let url of images; let index = index;\" [@slideLeftRight]=\"getState(index)\">\n <img [src]=\"url\" />\n </div>\n</div>", styles: [".slideshow{margin:0 auto;position:relative;overflow:hidden}.slideshow>div{width:100%;height:100%;position:absolute}img{max-height:100%;max-width:100%;margin:0 auto;display:block}\n"] }]
|
|
568
|
+
}], null, { container: [{
|
|
569
|
+
type: ViewChild,
|
|
570
|
+
args: ['container', { static: true }]
|
|
571
|
+
}], height: [{
|
|
572
|
+
type: Input
|
|
573
|
+
}], autoPlay: [{
|
|
574
|
+
type: Input
|
|
575
|
+
}], images: [{
|
|
576
|
+
type: Input
|
|
577
|
+
}] }); })();
|
|
578
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSlideshowComponent, { className: "CaucaSlideshowComponent", filePath: "lib\\cauca-slideshow\\cauca-slideshow.component.ts", lineNumber: 36 }); })();
|
|
579
|
+
|
|
580
|
+
const _c0$5 = ["file"];
|
|
581
|
+
function CaucaInputFileComponent_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
582
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
583
|
+
i0.ɵɵtext(1);
|
|
584
|
+
i0.ɵɵelementEnd();
|
|
585
|
+
} if (rf & 2) {
|
|
586
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
587
|
+
i0.ɵɵadvance();
|
|
588
|
+
i0.ɵɵtextInterpolate(ctx_r1.icon);
|
|
589
|
+
} }
|
|
590
|
+
function CaucaInputFileComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
591
|
+
i0.ɵɵelementStart(0, "span");
|
|
592
|
+
i0.ɵɵtext(1);
|
|
593
|
+
i0.ɵɵelementEnd();
|
|
594
|
+
} if (rf & 2) {
|
|
595
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
596
|
+
i0.ɵɵadvance();
|
|
597
|
+
i0.ɵɵtextInterpolate(ctx_r1.text);
|
|
598
|
+
} }
|
|
599
|
+
function CaucaInputFileComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
600
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
601
|
+
i0.ɵɵelementContainerStart(0);
|
|
602
|
+
i0.ɵɵelementStart(1, "input", 5, 1);
|
|
603
|
+
i0.ɵɵlistener("change", function CaucaInputFileComponent_ng_container_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectFile($event)); });
|
|
604
|
+
i0.ɵɵelementEnd();
|
|
605
|
+
i0.ɵɵelementContainerEnd();
|
|
606
|
+
} if (rf & 2) {
|
|
607
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
608
|
+
i0.ɵɵadvance();
|
|
609
|
+
i0.ɵɵproperty("accept", ctx_r1.accept);
|
|
610
|
+
} }
|
|
611
|
+
function CaucaInputFileComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
612
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
613
|
+
i0.ɵɵelementStart(0, "input", 6, 1);
|
|
614
|
+
i0.ɵɵlistener("change", function CaucaInputFileComponent_ng_template_4_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectFile($event)); });
|
|
615
|
+
i0.ɵɵelementEnd();
|
|
616
|
+
} if (rf & 2) {
|
|
617
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
618
|
+
i0.ɵɵproperty("accept", ctx_r1.accept);
|
|
619
|
+
} }
|
|
620
|
+
class CaucaInputFileComponent {
|
|
621
|
+
constructor(translateService, dialog) {
|
|
622
|
+
this.translateService = translateService;
|
|
623
|
+
this.dialog = dialog;
|
|
624
|
+
this.readend = new EventEmitter();
|
|
625
|
+
this.accept = '';
|
|
626
|
+
this.multiple = false;
|
|
627
|
+
this.icon = '';
|
|
628
|
+
this.text = '';
|
|
629
|
+
this.labels = {};
|
|
630
|
+
}
|
|
631
|
+
ngOnInit() {
|
|
632
|
+
if (!this.icon && !this.text) {
|
|
633
|
+
this.translateService.get(['material.select', 'material.dialogTitle', 'material.dialogMessage']).subscribe((labels) => {
|
|
634
|
+
this.labels = labels;
|
|
635
|
+
this.text = labels['material.select'];
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
onSelectFile(e) {
|
|
640
|
+
for (let i = 0, j = e.target.files.length; i < j; i++) {
|
|
641
|
+
const file = e.target.files[i];
|
|
642
|
+
const reader = new FileReader();
|
|
643
|
+
reader.onerror = ((error) => this.onError(error));
|
|
644
|
+
reader.onload = ((event) => this.onReadEnd(file, event));
|
|
645
|
+
reader.readAsDataURL(file);
|
|
646
|
+
}
|
|
647
|
+
if (e.target.files.length) {
|
|
648
|
+
this.dialog.open(CaucaSimpleDialogComponent, {
|
|
649
|
+
width: '250px',
|
|
650
|
+
disableClose: true,
|
|
651
|
+
data: {
|
|
652
|
+
title: this.labels['material.dialogTitle'],
|
|
653
|
+
message: this.labels['material.dialogMessage']
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
openDialog(event) {
|
|
659
|
+
if (this.file) {
|
|
660
|
+
this.file.nativeElement.click();
|
|
661
|
+
}
|
|
662
|
+
event.stopPropagation();
|
|
663
|
+
}
|
|
664
|
+
onError(error) {
|
|
665
|
+
throw error;
|
|
666
|
+
}
|
|
667
|
+
onReadEnd(file, e) {
|
|
668
|
+
this.dialog.closeAll();
|
|
669
|
+
this.readend.emit({
|
|
670
|
+
name: file.name,
|
|
671
|
+
size: file.size,
|
|
672
|
+
type: file.type,
|
|
673
|
+
lastModifiedDate: file.lastModifiedDate,
|
|
674
|
+
content: e.target['result'],
|
|
675
|
+
file,
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
static { this.ɵfac = function CaucaInputFileComponent_Factory(t) { return new (t || CaucaInputFileComponent)(i0.ɵɵdirectiveInject(i1$3.TranslateService), i0.ɵɵdirectiveInject(i1$2.MatDialog)); }; }
|
|
679
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputFileComponent, selectors: [["cauca-input-file"]], viewQuery: function CaucaInputFileComponent_Query(rf, ctx) { if (rf & 1) {
|
|
680
|
+
i0.ɵɵviewQuery(_c0$5, 5);
|
|
681
|
+
} if (rf & 2) {
|
|
682
|
+
let _t;
|
|
683
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.file = _t.first);
|
|
684
|
+
} }, inputs: { accept: "accept", multiple: "multiple", icon: "icon", text: "text" }, outputs: { readend: "readend" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 6, vars: 4, consts: [["notMultipleInput", ""], ["file", ""], ["mat-raised-button", "", 3, "click"], [4, "ngIf"], [4, "ngIf", "ngIfElse"], ["type", "file", "multiple", "multiple", 3, "change", "accept"], ["type", "file", 3, "change", "accept"]], template: function CaucaInputFileComponent_Template(rf, ctx) { if (rf & 1) {
|
|
685
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
686
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
687
|
+
i0.ɵɵlistener("click", function CaucaInputFileComponent_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.openDialog($event)); });
|
|
688
|
+
i0.ɵɵtemplate(1, CaucaInputFileComponent_mat_icon_1_Template, 2, 1, "mat-icon", 3)(2, CaucaInputFileComponent_span_2_Template, 2, 1, "span", 3);
|
|
689
|
+
i0.ɵɵelementEnd();
|
|
690
|
+
i0.ɵɵtemplate(3, CaucaInputFileComponent_ng_container_3_Template, 3, 1, "ng-container", 4)(4, CaucaInputFileComponent_ng_template_4_Template, 2, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
691
|
+
} if (rf & 2) {
|
|
692
|
+
const notMultipleInput_r5 = i0.ɵɵreference(5);
|
|
693
|
+
i0.ɵɵadvance();
|
|
694
|
+
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
695
|
+
i0.ɵɵadvance();
|
|
696
|
+
i0.ɵɵproperty("ngIf", ctx.text);
|
|
697
|
+
i0.ɵɵadvance();
|
|
698
|
+
i0.ɵɵproperty("ngIf", ctx.multiple)("ngIfElse", notMultipleInput_r5);
|
|
699
|
+
} }, dependencies: [MatIconModule, i1$1.MatIcon], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:none}"] }); }
|
|
700
|
+
}
|
|
701
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputFileComponent, [{
|
|
702
|
+
type: Component,
|
|
703
|
+
args: [{ standalone: true, imports: [MatIconModule], selector: 'cauca-input-file', template: "<button mat-raised-button (click)=\"openDialog($event)\">\n <mat-icon *ngIf=\"icon\">{{icon}}</mat-icon>\n <span *ngIf=\"text\">{{text}}</span>\n</button>\n<ng-container *ngIf=\"multiple; else notMultipleInput\">\n <input #file type=\"file\" (change)=\"onSelectFile($event)\" [accept]=\"accept\" multiple=\"multiple\" />\n</ng-container>\n\n<ng-template #notMultipleInput>\n <input #file type=\"file\" (change)=\"onSelectFile($event)\" [accept]=\"accept\" />\n</ng-template>", styles: [":host input{display:none}\n"] }]
|
|
704
|
+
}], () => [{ type: i1$3.TranslateService }, { type: i1$2.MatDialog }], { file: [{
|
|
705
|
+
type: ViewChild,
|
|
706
|
+
args: ['file', { static: false }]
|
|
707
|
+
}], readend: [{
|
|
708
|
+
type: Output
|
|
709
|
+
}], accept: [{
|
|
710
|
+
type: Input
|
|
711
|
+
}], multiple: [{
|
|
712
|
+
type: Input
|
|
713
|
+
}], icon: [{
|
|
714
|
+
type: Input
|
|
715
|
+
}], text: [{
|
|
716
|
+
type: Input
|
|
717
|
+
}] }); })();
|
|
718
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputFileComponent, { className: "CaucaInputFileComponent", filePath: "lib\\inputs\\cauca-input-file\\cauca-input-file.component.ts", lineNumber: 14 }); })();
|
|
719
|
+
|
|
720
|
+
function CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template(rf, ctx) { if (rf & 1) {
|
|
721
|
+
i0.ɵɵelementStart(0, "mat-error");
|
|
722
|
+
i0.ɵɵtext(1);
|
|
723
|
+
i0.ɵɵpipe(2, "translate");
|
|
724
|
+
i0.ɵɵelementEnd();
|
|
725
|
+
} if (rf & 2) {
|
|
726
|
+
const i_r1 = i0.ɵɵnextContext().index;
|
|
727
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
728
|
+
i0.ɵɵadvance();
|
|
729
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.getErrorMessage(i_r1)));
|
|
730
|
+
} }
|
|
731
|
+
function CaucaInputMultipleLangueComponent_mat_tab_1_Template(rf, ctx) { if (rf & 1) {
|
|
732
|
+
i0.ɵɵelementStart(0, "mat-tab", 2)(1, "mat-form-field", 3);
|
|
733
|
+
i0.ɵɵelement(2, "input", 4);
|
|
734
|
+
i0.ɵɵtemplate(3, CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template, 3, 3, "mat-error", 5);
|
|
735
|
+
i0.ɵɵelementEnd()();
|
|
736
|
+
} if (rf & 2) {
|
|
737
|
+
const lang_r3 = ctx.$implicit;
|
|
738
|
+
const i_r1 = ctx.index;
|
|
739
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
740
|
+
i0.ɵɵproperty("label", lang_r3);
|
|
741
|
+
i0.ɵɵadvance(2);
|
|
742
|
+
i0.ɵɵproperty("placeholder", lang_r3)("formControl", ctx_r1.forms[i_r1]);
|
|
743
|
+
i0.ɵɵadvance();
|
|
744
|
+
i0.ɵɵproperty("ngIf", ctx_r1.forms[i_r1].invalid);
|
|
745
|
+
} }
|
|
746
|
+
class CaucaInputMultipleLangueComponent {
|
|
747
|
+
constructor(coreService, translate) {
|
|
748
|
+
this.translate = translate;
|
|
749
|
+
this.value = [];
|
|
750
|
+
this.forms = [];
|
|
751
|
+
this.labels = [];
|
|
752
|
+
this.selectedIndex = 0;
|
|
753
|
+
this.config = coreService.getConfig();
|
|
754
|
+
}
|
|
755
|
+
ngOnInit() {
|
|
756
|
+
this.translate.get(this.config.languages).subscribe((labels) => {
|
|
757
|
+
for (const i in labels) {
|
|
758
|
+
if (labels[i]) {
|
|
759
|
+
this.labels.push(labels[i]);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
this.initializeForms();
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
onTagChanged(tabIndex) {
|
|
766
|
+
console.log('cauca-material, onTabChanged', tabIndex);
|
|
767
|
+
}
|
|
768
|
+
getErrorMessage(index) {
|
|
769
|
+
return this.forms[index].hasError('required') ? 'error.required' : '';
|
|
770
|
+
}
|
|
771
|
+
initializeForms() {
|
|
772
|
+
this.labels.forEach((item, index) => {
|
|
773
|
+
this.forms[index] = new UntypedFormControl('', [Validators.required]);
|
|
774
|
+
this.forms[index].setValue(this.value[index] || '');
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
static { this.ɵfac = function CaucaInputMultipleLangueComponent_Factory(t) { return new (t || CaucaInputMultipleLangueComponent)(i0.ɵɵdirectiveInject(i1$3.CaucaCoreService), i0.ɵɵdirectiveInject(i1$3.TranslateService)); }; }
|
|
778
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputMultipleLangueComponent, selectors: [["cauca-input-multiple-langue"]], inputs: { value: "value" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 2, vars: 2, consts: [[3, "selectedIndexChange", "selectedIndex"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label"], ["hideRequiredMarker", "never"], ["matInput", "", "required", "required", 3, "placeholder", "formControl"], [4, "ngIf"]], template: function CaucaInputMultipleLangueComponent_Template(rf, ctx) { if (rf & 1) {
|
|
779
|
+
i0.ɵɵelementStart(0, "mat-tab-group", 0);
|
|
780
|
+
i0.ɵɵlistener("selectedIndexChange", function CaucaInputMultipleLangueComponent_Template_mat_tab_group_selectedIndexChange_0_listener($event) { return ctx.onTagChanged($event); });
|
|
781
|
+
i0.ɵɵtemplate(1, CaucaInputMultipleLangueComponent_mat_tab_1_Template, 4, 4, "mat-tab", 1);
|
|
782
|
+
i0.ɵɵelementEnd();
|
|
783
|
+
} if (rf & 2) {
|
|
784
|
+
i0.ɵɵproperty("selectedIndex", ctx.selectedIndex);
|
|
785
|
+
i0.ɵɵadvance();
|
|
786
|
+
i0.ɵɵproperty("ngForOf", ctx.labels);
|
|
787
|
+
} }, dependencies: [MatTabsModule, i2$2.MatTab, i2$2.MatTabGroup, MatFormFieldModule, i2$3.MatFormField, i2$3.MatError, MatInputModule, i4.MatInput, NgIf,
|
|
788
|
+
ReactiveFormsModule, i5.DefaultValueAccessor, i5.NgControlStatus, i5.RequiredValidator, i5.FormControlDirective, TranslateModule, i2.TranslatePipe], styles: [".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"] }); }
|
|
789
|
+
}
|
|
790
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputMultipleLangueComponent, [{
|
|
791
|
+
type: Component,
|
|
792
|
+
args: [{ standalone: true, imports: [
|
|
793
|
+
MatTabsModule,
|
|
794
|
+
MatFormFieldModule,
|
|
795
|
+
MatInputModule,
|
|
796
|
+
NgIf,
|
|
797
|
+
ReactiveFormsModule,
|
|
798
|
+
TranslateModule
|
|
799
|
+
], selector: 'cauca-input-multiple-langue', template: "<mat-tab-group [selectedIndex]=\"selectedIndex\" (selectedIndexChange)=\"onTagChanged($event)\">\n <mat-tab *ngFor=\"let lang of labels; let i = index\" [label]=\"lang\">\n <mat-form-field hideRequiredMarker=\"never\">\n <input matInput [placeholder]=\"lang\" [formControl]=\"forms[i]\" required=\"required\">\n <mat-error *ngIf=\"forms[i].invalid\">{{getErrorMessage(i) | translate}}</mat-error>\n </mat-form-field>\n </mat-tab>\n</mat-tab-group>", styles: [".mat-mdc-form-field{width:100%}\n"] }]
|
|
800
|
+
}], () => [{ type: i1$3.CaucaCoreService }, { type: i1$3.TranslateService }], { value: [{
|
|
801
|
+
type: Input
|
|
802
|
+
}] }); })();
|
|
803
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputMultipleLangueComponent, { className: "CaucaInputMultipleLangueComponent", filePath: "lib\\inputs\\cauca-input-multiple-langue\\cauca-input-multiple-langue.component.ts", lineNumber: 24 }); })();
|
|
804
|
+
|
|
805
|
+
class CaucaMaterialModule {
|
|
806
|
+
static { this.ɵfac = function CaucaMaterialModule_Factory(t) { return new (t || CaucaMaterialModule)(); }; }
|
|
807
|
+
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CaucaMaterialModule }); }
|
|
808
|
+
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CaucaInputFileComponent,
|
|
809
|
+
CaucaMaterialComponent,
|
|
810
|
+
CaucaInputMultipleLangueComponent,
|
|
811
|
+
CaucaMenuSidebarComponent,
|
|
812
|
+
CaucaMenuVerticalComponent,
|
|
813
|
+
CaucaSimpleDialogComponent] }); }
|
|
814
|
+
}
|
|
815
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialModule, [{
|
|
816
|
+
type: NgModule,
|
|
817
|
+
args: [{
|
|
818
|
+
imports: [
|
|
819
|
+
CaucaInputFileComponent,
|
|
820
|
+
CaucaMaterialComponent,
|
|
821
|
+
CaucaInputMultipleLangueComponent,
|
|
822
|
+
CaucaMenuSidebarComponent,
|
|
823
|
+
CaucaMenuVerticalComponent,
|
|
824
|
+
CaucaSimpleDialogComponent,
|
|
825
|
+
CaucaSlideshowComponent,
|
|
826
|
+
],
|
|
827
|
+
exports: [
|
|
828
|
+
CaucaMaterialComponent,
|
|
829
|
+
CaucaInputFileComponent,
|
|
830
|
+
CaucaInputMultipleLangueComponent,
|
|
831
|
+
CaucaMenuSidebarComponent,
|
|
832
|
+
CaucaMenuVerticalComponent,
|
|
833
|
+
CaucaSimpleDialogComponent,
|
|
834
|
+
CaucaSlideshowComponent,
|
|
835
|
+
],
|
|
836
|
+
}]
|
|
837
|
+
}], null, null); })();
|
|
838
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CaucaMaterialModule, { imports: [CaucaInputFileComponent,
|
|
839
|
+
CaucaMaterialComponent,
|
|
840
|
+
CaucaInputMultipleLangueComponent,
|
|
841
|
+
CaucaMenuSidebarComponent,
|
|
842
|
+
CaucaMenuVerticalComponent,
|
|
843
|
+
CaucaSimpleDialogComponent,
|
|
844
|
+
CaucaSlideshowComponent], exports: [CaucaMaterialComponent,
|
|
845
|
+
CaucaInputFileComponent,
|
|
846
|
+
CaucaInputMultipleLangueComponent,
|
|
847
|
+
CaucaMenuSidebarComponent,
|
|
848
|
+
CaucaMenuVerticalComponent,
|
|
849
|
+
CaucaSimpleDialogComponent,
|
|
850
|
+
CaucaSlideshowComponent] }); })();
|
|
851
|
+
|
|
852
|
+
class BaseButton {
|
|
853
|
+
constructor() {
|
|
854
|
+
this.color = input(undefined);
|
|
855
|
+
this.icon = input();
|
|
856
|
+
this.iconAlignment = input('left');
|
|
857
|
+
this.isDisabled = input(false);
|
|
858
|
+
this.isInProgress = input(false);
|
|
859
|
+
this.showIcon = computed(() => !!this.icon() || this.isInProgress());
|
|
860
|
+
this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon());
|
|
861
|
+
this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress());
|
|
862
|
+
this.buttonClick = output();
|
|
863
|
+
}
|
|
864
|
+
static { this.ɵfac = function BaseButton_Factory(t) { return new (t || BaseButton)(); }; }
|
|
865
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButton, inputs: { color: [1, "color"], icon: [1, "icon"], iconAlignment: [1, "iconAlignment"], isDisabled: [1, "isDisabled"], isInProgress: [1, "isInProgress"] }, outputs: { buttonClick: "buttonClick" } }); }
|
|
866
|
+
}
|
|
867
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButton, [{
|
|
868
|
+
type: Directive
|
|
869
|
+
}], null, null); })();
|
|
870
|
+
class BaseButtonWithLabel extends BaseButton {
|
|
871
|
+
constructor() {
|
|
872
|
+
super(...arguments);
|
|
873
|
+
this.translateLabel = input(true);
|
|
874
|
+
this.label = input();
|
|
875
|
+
}
|
|
876
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBaseButtonWithLabel_BaseFactory; return function BaseButtonWithLabel_Factory(t) { return (ɵBaseButtonWithLabel_BaseFactory || (ɵBaseButtonWithLabel_BaseFactory = i0.ɵɵgetInheritedFactory(BaseButtonWithLabel)))(t || BaseButtonWithLabel); }; })(); }
|
|
877
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButtonWithLabel, inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"] }, features: [i0.ɵɵInheritDefinitionFeature] }); }
|
|
878
|
+
}
|
|
879
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButtonWithLabel, [{
|
|
880
|
+
type: Directive
|
|
881
|
+
}], null, null); })();
|
|
882
|
+
|
|
883
|
+
function BasicButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
884
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
885
|
+
i0.ɵɵtext(1);
|
|
886
|
+
i0.ɵɵelementEnd();
|
|
887
|
+
} if (rf & 2) {
|
|
888
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
889
|
+
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
890
|
+
i0.ɵɵadvance();
|
|
891
|
+
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
892
|
+
} }
|
|
893
|
+
function BasicButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
894
|
+
i0.ɵɵtext(0);
|
|
895
|
+
i0.ɵɵpipe(1, "translate");
|
|
896
|
+
} if (rf & 2) {
|
|
897
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
898
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
|
|
899
|
+
} }
|
|
900
|
+
function BasicButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
901
|
+
i0.ɵɵtext(0);
|
|
902
|
+
} if (rf & 2) {
|
|
903
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
904
|
+
i0.ɵɵtextInterpolate(ctx_r0.label());
|
|
905
|
+
} }
|
|
906
|
+
function BasicButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
907
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
908
|
+
i0.ɵɵtext(1);
|
|
909
|
+
i0.ɵɵelementEnd();
|
|
910
|
+
} if (rf & 2) {
|
|
911
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
912
|
+
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
913
|
+
i0.ɵɵadvance();
|
|
914
|
+
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
915
|
+
} }
|
|
916
|
+
class BasicButtonComponent extends BaseButtonWithLabel {
|
|
917
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBasicButtonComponent_BaseFactory; return function BasicButtonComponent_Factory(t) { return (ɵBasicButtonComponent_BaseFactory || (ɵBasicButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BasicButtonComponent)))(t || BasicButtonComponent); }; })(); }
|
|
918
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BasicButtonComponent, selectors: [["app-basic-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-button", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "button-spin"]], template: function BasicButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
919
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
920
|
+
i0.ɵɵlistener("click", function BasicButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
921
|
+
i0.ɵɵtemplate(1, BasicButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1)(2, BasicButtonComponent_Conditional_2_Template, 2, 3)(3, BasicButtonComponent_Conditional_3_Template, 1, 1)(4, BasicButtonComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
|
|
922
|
+
i0.ɵɵelementEnd();
|
|
923
|
+
} if (rf & 2) {
|
|
924
|
+
i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
|
|
925
|
+
i0.ɵɵadvance();
|
|
926
|
+
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
|
|
927
|
+
i0.ɵɵadvance();
|
|
928
|
+
i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
|
|
929
|
+
i0.ɵɵadvance(2);
|
|
930
|
+
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
|
|
931
|
+
} }, dependencies: [MatIcon, MatButton, TranslateModule, i2.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}"], changeDetection: 0 }); }
|
|
932
|
+
}
|
|
933
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BasicButtonComponent, [{
|
|
934
|
+
type: Component,
|
|
935
|
+
args: [{ selector: 'app-basic-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgIf, MatIcon, MatButton, TranslateModule], template: "<button mat-button [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}\n"] }]
|
|
936
|
+
}], null, null); })();
|
|
937
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BasicButtonComponent, { className: "BasicButtonComponent", filePath: "lib\\buttons\\basic-button\\basic-button.component.ts", lineNumber: 16 }); })();
|
|
938
|
+
|
|
939
|
+
function FlatButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
940
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
941
|
+
i0.ɵɵtext(1);
|
|
942
|
+
i0.ɵɵelementEnd();
|
|
943
|
+
} if (rf & 2) {
|
|
944
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
945
|
+
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
946
|
+
i0.ɵɵadvance();
|
|
947
|
+
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
948
|
+
} }
|
|
949
|
+
function FlatButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
950
|
+
i0.ɵɵtext(0);
|
|
951
|
+
i0.ɵɵpipe(1, "translate");
|
|
952
|
+
} if (rf & 2) {
|
|
953
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
954
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
|
|
955
|
+
} }
|
|
956
|
+
function FlatButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
957
|
+
i0.ɵɵtext(0);
|
|
958
|
+
} if (rf & 2) {
|
|
959
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
960
|
+
i0.ɵɵtextInterpolate(ctx_r0.label());
|
|
961
|
+
} }
|
|
962
|
+
function FlatButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
963
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
964
|
+
i0.ɵɵtext(1);
|
|
965
|
+
i0.ɵɵelementEnd();
|
|
966
|
+
} if (rf & 2) {
|
|
967
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
968
|
+
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
969
|
+
i0.ɵɵadvance();
|
|
970
|
+
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
971
|
+
} }
|
|
972
|
+
class FlatButtonComponent extends BaseButtonWithLabel {
|
|
973
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵFlatButtonComponent_BaseFactory; return function FlatButtonComponent_Factory(t) { return (ɵFlatButtonComponent_BaseFactory || (ɵFlatButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FlatButtonComponent)))(t || FlatButtonComponent); }; })(); }
|
|
974
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FlatButtonComponent, selectors: [["app-flat-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-flat-button", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "button-spin"]], template: function FlatButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
975
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
976
|
+
i0.ɵɵlistener("click", function FlatButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
977
|
+
i0.ɵɵtemplate(1, FlatButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1)(2, FlatButtonComponent_Conditional_2_Template, 2, 3)(3, FlatButtonComponent_Conditional_3_Template, 1, 1)(4, FlatButtonComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
|
|
978
|
+
i0.ɵɵelementEnd();
|
|
979
|
+
} if (rf & 2) {
|
|
980
|
+
i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
|
|
981
|
+
i0.ɵɵadvance();
|
|
982
|
+
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
|
|
983
|
+
i0.ɵɵadvance();
|
|
984
|
+
i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
|
|
985
|
+
i0.ɵɵadvance(2);
|
|
986
|
+
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
|
|
987
|
+
} }, dependencies: [MatIcon, MatButton, TranslateModule, i2.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}"], changeDetection: 0 }); }
|
|
988
|
+
}
|
|
989
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FlatButtonComponent, [{
|
|
990
|
+
type: Component,
|
|
991
|
+
args: [{ selector: 'app-flat-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgIf, MatIcon, MatButton, TranslateModule], template: "<button mat-flat-button [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit();\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}\n"] }]
|
|
992
|
+
}], null, null); })();
|
|
993
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FlatButtonComponent, { className: "FlatButtonComponent", filePath: "lib\\buttons\\flat-button\\flat-button.component.ts", lineNumber: 16 }); })();
|
|
994
|
+
|
|
995
|
+
function StrokedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
996
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
997
|
+
i0.ɵɵtext(1);
|
|
998
|
+
i0.ɵɵelementEnd();
|
|
999
|
+
} if (rf & 2) {
|
|
1000
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1001
|
+
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
1002
|
+
i0.ɵɵadvance();
|
|
1003
|
+
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
1004
|
+
} }
|
|
1005
|
+
function StrokedButtonComponent_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
1006
|
+
i0.ɵɵtext(0);
|
|
1007
|
+
i0.ɵɵpipe(1, "translate");
|
|
1008
|
+
} if (rf & 2) {
|
|
1009
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
1010
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
|
|
1011
|
+
} }
|
|
1012
|
+
function StrokedButtonComponent_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1013
|
+
i0.ɵɵtext(0);
|
|
1014
|
+
} if (rf & 2) {
|
|
1015
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
1016
|
+
i0.ɵɵtextInterpolate(ctx_r0.label());
|
|
1017
|
+
} }
|
|
1018
|
+
function StrokedButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1019
|
+
i0.ɵɵtemplate(0, StrokedButtonComponent_Conditional_2_Conditional_0_Template, 2, 3)(1, StrokedButtonComponent_Conditional_2_Conditional_1_Template, 1, 1);
|
|
1020
|
+
} if (rf & 2) {
|
|
1021
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1022
|
+
i0.ɵɵconditional(ctx_r0.translateLabel() ? 0 : 1);
|
|
1023
|
+
} }
|
|
1024
|
+
function StrokedButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1025
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
1026
|
+
i0.ɵɵtext(1);
|
|
1027
|
+
i0.ɵɵelementEnd();
|
|
1028
|
+
} if (rf & 2) {
|
|
1029
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1030
|
+
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
1031
|
+
i0.ɵɵadvance();
|
|
1032
|
+
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
1033
|
+
} }
|
|
1034
|
+
class StrokedButtonComponent extends BaseButtonWithLabel {
|
|
1035
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵStrokedButtonComponent_BaseFactory; return function StrokedButtonComponent_Factory(t) { return (ɵStrokedButtonComponent_BaseFactory || (ɵStrokedButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(StrokedButtonComponent)))(t || StrokedButtonComponent); }; })(); }
|
|
1036
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StrokedButtonComponent, selectors: [["app-stroked-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 4, vars: 7, consts: [["mat-stroked-button", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "button-spin"]], template: function StrokedButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1037
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
1038
|
+
i0.ɵɵlistener("click", function StrokedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
1039
|
+
i0.ɵɵtemplate(1, StrokedButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1)(2, StrokedButtonComponent_Conditional_2_Template, 2, 1)(3, StrokedButtonComponent_Conditional_3_Template, 2, 3, "mat-icon", 1);
|
|
1040
|
+
i0.ɵɵelementEnd();
|
|
1041
|
+
} if (rf & 2) {
|
|
1042
|
+
i0.ɵɵclassProp("icon-only", !ctx.label());
|
|
1043
|
+
i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
|
|
1044
|
+
i0.ɵɵadvance();
|
|
1045
|
+
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
|
|
1046
|
+
i0.ɵɵadvance();
|
|
1047
|
+
i0.ɵɵconditional(ctx.label() ? 2 : -1);
|
|
1048
|
+
i0.ɵɵadvance();
|
|
1049
|
+
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 3 : -1);
|
|
1050
|
+
} }, dependencies: [MatButton, MatIconModule, i1$1.MatIcon, TranslateModule, i2.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}.icon-only[_ngcontent-%COMP%]{width:36px;height:36px;min-width:38px;padding:0}.icon-only[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0}"], changeDetection: 0 }); }
|
|
1051
|
+
}
|
|
1052
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StrokedButtonComponent, [{
|
|
1053
|
+
type: Component,
|
|
1054
|
+
args: [{ selector: 'app-stroked-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, MatIconModule, TranslateModule], template: "<button mat-stroked-button [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\" [class.icon-only]=\"!label()\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (label()) { @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}} }\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}.icon-only{width:36px;height:36px;min-width:38px;padding:0}.icon-only mat-icon{margin:0}\n"] }]
|
|
1055
|
+
}], null, null); })();
|
|
1056
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StrokedButtonComponent, { className: "StrokedButtonComponent", filePath: "lib\\buttons\\stroked-button\\stroked-button.component.ts", lineNumber: 15 }); })();
|
|
1057
|
+
|
|
1058
|
+
function RaisedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1059
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
1060
|
+
i0.ɵɵtext(1);
|
|
1061
|
+
i0.ɵɵelementEnd();
|
|
1062
|
+
} if (rf & 2) {
|
|
1063
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1064
|
+
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
1065
|
+
i0.ɵɵadvance();
|
|
1066
|
+
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
1067
|
+
} }
|
|
1068
|
+
function RaisedButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1069
|
+
i0.ɵɵtext(0);
|
|
1070
|
+
i0.ɵɵpipe(1, "translate");
|
|
1071
|
+
} if (rf & 2) {
|
|
1072
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1073
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
|
|
1074
|
+
} }
|
|
1075
|
+
function RaisedButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1076
|
+
i0.ɵɵtext(0);
|
|
1077
|
+
} if (rf & 2) {
|
|
1078
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1079
|
+
i0.ɵɵtextInterpolate(ctx_r0.label());
|
|
1080
|
+
} }
|
|
1081
|
+
function RaisedButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
1082
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
1083
|
+
i0.ɵɵtext(1);
|
|
1084
|
+
i0.ɵɵelementEnd();
|
|
1085
|
+
} if (rf & 2) {
|
|
1086
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1087
|
+
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
1088
|
+
i0.ɵɵadvance();
|
|
1089
|
+
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
1090
|
+
} }
|
|
1091
|
+
class RaisedButtonComponent extends BaseButtonWithLabel {
|
|
1092
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵRaisedButtonComponent_BaseFactory; return function RaisedButtonComponent_Factory(t) { return (ɵRaisedButtonComponent_BaseFactory || (ɵRaisedButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RaisedButtonComponent)))(t || RaisedButtonComponent); }; })(); }
|
|
1093
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RaisedButtonComponent, selectors: [["app-raised-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-raised-button", "", "onclick", "this.blur()", 3, "click", "color", "disabled"], [3, "button-spin"]], template: function RaisedButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1094
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
1095
|
+
i0.ɵɵlistener("click", function RaisedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
1096
|
+
i0.ɵɵtemplate(1, RaisedButtonComponent_Conditional_1_Template, 2, 3, "mat-icon", 1)(2, RaisedButtonComponent_Conditional_2_Template, 2, 3)(3, RaisedButtonComponent_Conditional_3_Template, 1, 1)(4, RaisedButtonComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
|
|
1097
|
+
i0.ɵɵelementEnd();
|
|
1098
|
+
} if (rf & 2) {
|
|
1099
|
+
i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
|
|
1100
|
+
i0.ɵɵadvance();
|
|
1101
|
+
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
|
|
1102
|
+
i0.ɵɵadvance();
|
|
1103
|
+
i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
|
|
1104
|
+
i0.ɵɵadvance(2);
|
|
1105
|
+
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
|
|
1106
|
+
} }, dependencies: [MatButton, MatIconModule, i1$1.MatIcon, TranslateModule, i2.TranslatePipe], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}"], changeDetection: 0 }); }
|
|
1107
|
+
}
|
|
1108
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RaisedButtonComponent, [{
|
|
1109
|
+
type: Component,
|
|
1110
|
+
args: [{ selector: 'app-raised-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, MatIconModule, TranslateModule], template: "<button mat-raised-button [color]=\"color()\" onclick=\"this.blur()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if (showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if (showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}\n"] }]
|
|
1111
|
+
}], null, null); })();
|
|
1112
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RaisedButtonComponent, { className: "RaisedButtonComponent", filePath: "lib\\buttons\\raised-button\\raised-button.component.ts", lineNumber: 15 }); })();
|
|
1113
|
+
|
|
1114
|
+
class IconButtonComponent extends BaseButton {
|
|
1115
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵIconButtonComponent_BaseFactory; return function IconButtonComponent_Factory(t) { return (ɵIconButtonComponent_BaseFactory || (ɵIconButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(IconButtonComponent)))(t || IconButtonComponent); }; })(); }
|
|
1116
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IconButtonComponent, selectors: [["app-icon-button"]], standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 3, vars: 6, consts: [["mat-icon-button", "", "onclick", "this.blur()", 3, "click", "disabled"]], template: function IconButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1117
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
1118
|
+
i0.ɵɵlistener("click", function IconButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
1119
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
1120
|
+
i0.ɵɵtext(2);
|
|
1121
|
+
i0.ɵɵelementEnd()();
|
|
1122
|
+
} if (rf & 2) {
|
|
1123
|
+
i0.ɵɵproperty("disabled", ctx.buttonDisabled());
|
|
1124
|
+
i0.ɵɵadvance();
|
|
1125
|
+
i0.ɵɵstyleProp("color", ctx.color());
|
|
1126
|
+
i0.ɵɵclassProp("button-spin", ctx.isInProgress());
|
|
1127
|
+
i0.ɵɵadvance();
|
|
1128
|
+
i0.ɵɵtextInterpolate(ctx.iconToShow());
|
|
1129
|
+
} }, dependencies: [MatIconButton, MatIcon], styles: [".mdc-button.mat-white[_ngcontent-%COMP%], .mat-stroked-button.mat-white[_ngcontent-%COMP%]{color:#fff;border-color:#fff}.mdc-button.mat-white[_ngcontent-%COMP%]:hover, .mat-mdc-outlined-button.mat-white[_ngcontent-%COMP%]:hover{background-color:transparent}.mat-mdc-button-disabled[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#12101461}"], changeDetection: 0 }); }
|
|
1130
|
+
}
|
|
1131
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IconButtonComponent, [{
|
|
1132
|
+
type: Component,
|
|
1133
|
+
args: [{ selector: 'app-icon-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIconButton, MatIcon], template: "<button mat-icon-button onclick=\"this.blur()\" (click)=\"buttonClick.emit();\" [disabled]=\"buttonDisabled()\">\r\n <mat-icon [style.color]=\"color()\" [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon>\r\n</button>", styles: [".mdc-button.mat-white,.mat-stroked-button.mat-white{color:#fff;border-color:#fff}.mdc-button.mat-white:hover,.mat-mdc-outlined-button.mat-white:hover{background-color:transparent}.mat-mdc-button-disabled .mat-icon{color:#12101461}\n"] }]
|
|
1134
|
+
}], null, null); })();
|
|
1135
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IconButtonComponent, { className: "IconButtonComponent", filePath: "lib\\buttons\\icon-button\\icon-button.component.ts", lineNumber: 14 }); })();
|
|
1136
|
+
|
|
1137
|
+
function MenuItemComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1138
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
1139
|
+
i0.ɵɵtext(1);
|
|
1140
|
+
i0.ɵɵelementEnd();
|
|
1141
|
+
} if (rf & 2) {
|
|
1142
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1143
|
+
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
1144
|
+
i0.ɵɵadvance();
|
|
1145
|
+
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
1146
|
+
} }
|
|
1147
|
+
function MenuItemComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1148
|
+
i0.ɵɵtext(0);
|
|
1149
|
+
i0.ɵɵpipe(1, "translate");
|
|
1150
|
+
} if (rf & 2) {
|
|
1151
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1152
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
|
|
1153
|
+
} }
|
|
1154
|
+
function MenuItemComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1155
|
+
i0.ɵɵtext(0);
|
|
1156
|
+
} if (rf & 2) {
|
|
1157
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1158
|
+
i0.ɵɵtextInterpolate(ctx_r0.label());
|
|
1159
|
+
} }
|
|
1160
|
+
function MenuItemComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
1161
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
1162
|
+
i0.ɵɵtext(1);
|
|
1163
|
+
i0.ɵɵelementEnd();
|
|
1164
|
+
} if (rf & 2) {
|
|
1165
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1166
|
+
i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
|
|
1167
|
+
i0.ɵɵadvance();
|
|
1168
|
+
i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
|
|
1169
|
+
} }
|
|
1170
|
+
class MenuItemComponent extends BaseButtonWithLabel {
|
|
1171
|
+
constructor() {
|
|
1172
|
+
super(...arguments);
|
|
1173
|
+
this.translateLabel = input(false);
|
|
1174
|
+
this.trigger = input();
|
|
1175
|
+
}
|
|
1176
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵMenuItemComponent_BaseFactory; return function MenuItemComponent_Factory(t) { return (ɵMenuItemComponent_BaseFactory || (ɵMenuItemComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MenuItemComponent)))(t || MenuItemComponent); }; })(); }
|
|
1177
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuItemComponent, selectors: [["app-menu-item"]], inputs: { translateLabel: [1, "translateLabel"], trigger: [1, "trigger"] }, standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 5, vars: 5, consts: [["mat-menu-item", "", 1, "change-password-menu-item", 3, "click", "matMenuTriggerFor", "disabled"], [3, "button-spin"]], template: function MenuItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1178
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
1179
|
+
i0.ɵɵlistener("click", function MenuItemComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
|
|
1180
|
+
i0.ɵɵtemplate(1, MenuItemComponent_Conditional_1_Template, 2, 3, "mat-icon", 1)(2, MenuItemComponent_Conditional_2_Template, 2, 3)(3, MenuItemComponent_Conditional_3_Template, 1, 1)(4, MenuItemComponent_Conditional_4_Template, 2, 3, "mat-icon", 1);
|
|
1181
|
+
i0.ɵɵelementEnd();
|
|
1182
|
+
} if (rf & 2) {
|
|
1183
|
+
i0.ɵɵproperty("matMenuTriggerFor", ctx.trigger())("disabled", ctx.buttonDisabled());
|
|
1184
|
+
i0.ɵɵadvance();
|
|
1185
|
+
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
|
|
1186
|
+
i0.ɵɵadvance();
|
|
1187
|
+
i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
|
|
1188
|
+
i0.ɵɵadvance(2);
|
|
1189
|
+
i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
|
|
1190
|
+
} }, dependencies: [MatMenuItem, TranslateModule, i2.TranslatePipe, MatIcon, MatMenuTrigger], changeDetection: 0 }); }
|
|
1191
|
+
}
|
|
1192
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuItemComponent, [{
|
|
1193
|
+
type: Component,
|
|
1194
|
+
args: [{ selector: 'app-menu-item', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatMenuItem, TranslateModule, MatIcon, MatMenuTrigger], template: "<button mat-menu-item class=\"change-password-menu-item\" [matMenuTriggerFor]=\"trigger()\" [disabled]=\"buttonDisabled()\" (click)=\"buttonClick.emit()\">\r\n @if(showIcon() && iconAlignment() === 'left') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n @if (translateLabel()) {{{label()|translate}}} @else {{{label()}}}\r\n @if(showIcon() && iconAlignment() === 'right') { <mat-icon [class.button-spin]=\"isInProgress()\">{{iconToShow()}}</mat-icon> }\r\n</button>" }]
|
|
1195
|
+
}], null, null); })();
|
|
1196
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuItemComponent, { className: "MenuItemComponent", filePath: "lib\\buttons\\menu-item\\menu-item.component.ts", lineNumber: 15 }); })();
|
|
1197
|
+
|
|
1198
|
+
const _c0$4 = ["*"];
|
|
1199
|
+
const DEFAULT_DURATION$1 = 500;
|
|
1200
|
+
class ExpandablePanelComponent {
|
|
1201
|
+
constructor() {
|
|
1202
|
+
this.isCollapsed = model(false);
|
|
1203
|
+
this.title = input('');
|
|
1204
|
+
this.subTitle = input('');
|
|
1205
|
+
}
|
|
1206
|
+
changeState() {
|
|
1207
|
+
this.isCollapsed.update(value => !value);
|
|
1208
|
+
}
|
|
1209
|
+
static { this.ɵfac = function ExpandablePanelComponent_Factory(t) { return new (t || ExpandablePanelComponent)(); }; }
|
|
1210
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExpandablePanelComponent, selectors: [["app-expandable-panel"]], inputs: { isCollapsed: [1, "isCollapsed"], title: [1, "title"], subTitle: [1, "subTitle"] }, outputs: { isCollapsed: "isCollapsedChange" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$4, decls: 11, vars: 4, consts: [[1, "expansion-button", 3, "click"], [1, "primary"], [1, "body2"], [1, "expansion-panel"]], template: function ExpandablePanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1211
|
+
i0.ɵɵprojectionDef();
|
|
1212
|
+
i0.ɵɵelementStart(0, "section")(1, "div", 0);
|
|
1213
|
+
i0.ɵɵlistener("click", function ExpandablePanelComponent_Template_div_click_1_listener() { return ctx.changeState(); });
|
|
1214
|
+
i0.ɵɵelementStart(2, "mat-icon");
|
|
1215
|
+
i0.ɵɵtext(3, "expand_less");
|
|
1216
|
+
i0.ɵɵelementEnd();
|
|
1217
|
+
i0.ɵɵelementStart(4, "div")(5, "div", 1);
|
|
1218
|
+
i0.ɵɵtext(6);
|
|
1219
|
+
i0.ɵɵelementEnd();
|
|
1220
|
+
i0.ɵɵelementStart(7, "div", 2);
|
|
1221
|
+
i0.ɵɵtext(8);
|
|
1222
|
+
i0.ɵɵelementEnd()()();
|
|
1223
|
+
i0.ɵɵelementStart(9, "div", 3);
|
|
1224
|
+
i0.ɵɵprojection(10);
|
|
1225
|
+
i0.ɵɵelementEnd()();
|
|
1226
|
+
} if (rf & 2) {
|
|
1227
|
+
i0.ɵɵadvance(2);
|
|
1228
|
+
i0.ɵɵproperty("@arrow-collapse", ctx.isCollapsed());
|
|
1229
|
+
i0.ɵɵadvance(4);
|
|
1230
|
+
i0.ɵɵtextInterpolate(ctx.title());
|
|
1231
|
+
i0.ɵɵadvance(2);
|
|
1232
|
+
i0.ɵɵtextInterpolate(ctx.subTitle());
|
|
1233
|
+
i0.ɵɵadvance();
|
|
1234
|
+
i0.ɵɵproperty("@collapse", ctx.isCollapsed());
|
|
1235
|
+
} }, dependencies: [MatIcon], styles: ["section[_ngcontent-%COMP%]{display:flex;padding:16px 0}.primary[_ngcontent-%COMP%]{font-weight:600}.body2[_ngcontent-%COMP%]{width:fit-content;white-space:nowrap}.expansion-button[_ngcontent-%COMP%]{display:flex;gap:4px;width:240px;padding:0 16px 8px 0;cursor:pointer;height:fit-content}.expansion-panel[_ngcontent-%COMP%]{overflow:hidden;flex:1}"], data: { animation: [
|
|
1236
|
+
trigger('collapse', [
|
|
1237
|
+
state('false', style({ height: AUTO_STYLE, opacity: 1, visibility: AUTO_STYLE })),
|
|
1238
|
+
state('true', style({ height: '0', opacity: 0, visibility: 'hidden' })),
|
|
1239
|
+
transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
|
|
1240
|
+
transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
|
|
1241
|
+
]),
|
|
1242
|
+
trigger('arrow-collapse', [
|
|
1243
|
+
state('false', style({ transform: 'rotate(0deg)' })),
|
|
1244
|
+
state('true', style({ transform: 'rotate(180deg)' })),
|
|
1245
|
+
transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
|
|
1246
|
+
transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
|
|
1247
|
+
])
|
|
1248
|
+
] }, changeDetection: 0 }); }
|
|
1249
|
+
}
|
|
1250
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExpandablePanelComponent, [{
|
|
1251
|
+
type: Component,
|
|
1252
|
+
args: [{ selector: 'app-expandable-panel', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon], animations: [
|
|
1253
|
+
trigger('collapse', [
|
|
1254
|
+
state('false', style({ height: AUTO_STYLE, opacity: 1, visibility: AUTO_STYLE })),
|
|
1255
|
+
state('true', style({ height: '0', opacity: 0, visibility: 'hidden' })),
|
|
1256
|
+
transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
|
|
1257
|
+
transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
|
|
1258
|
+
]),
|
|
1259
|
+
trigger('arrow-collapse', [
|
|
1260
|
+
state('false', style({ transform: 'rotate(0deg)' })),
|
|
1261
|
+
state('true', style({ transform: 'rotate(180deg)' })),
|
|
1262
|
+
transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
|
|
1263
|
+
transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
|
|
1264
|
+
])
|
|
1265
|
+
], template: "<section>\r\n <div class=\"expansion-button\" (click)=\"changeState()\">\r\n <mat-icon [@arrow-collapse]=\"isCollapsed()\">expand_less</mat-icon>\r\n <div>\r\n <div class=\"primary\">{{title()}}</div>\r\n <div class=\"body2\">{{subTitle()}}</div>\r\n </div>\r\n </div>\r\n <div class=\"expansion-panel\" [@collapse]=\"isCollapsed()\">\r\n <ng-content></ng-content>\r\n </div>\r\n</section>", styles: ["section{display:flex;padding:16px 0}.primary{font-weight:600}.body2{width:fit-content;white-space:nowrap}.expansion-button{display:flex;gap:4px;width:240px;padding:0 16px 8px 0;cursor:pointer;height:fit-content}.expansion-panel{overflow:hidden;flex:1}\n"] }]
|
|
1266
|
+
}], null, null); })();
|
|
1267
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ExpandablePanelComponent, { className: "ExpandablePanelComponent", filePath: "lib\\layout\\expandable-panel\\expandable-panel.component.ts", lineNumber: 29 }); })();
|
|
1268
|
+
|
|
1269
|
+
class MenuExpandablePanelItemComponent {
|
|
1270
|
+
constructor() {
|
|
1271
|
+
this.icon = input();
|
|
1272
|
+
this.title = input();
|
|
1273
|
+
this.route = input();
|
|
1274
|
+
this.isSubItem = input(false);
|
|
1275
|
+
this.action = input(null);
|
|
1276
|
+
this.router = inject(Router);
|
|
1277
|
+
}
|
|
1278
|
+
openRoute() {
|
|
1279
|
+
if (this.action()) {
|
|
1280
|
+
this.action()();
|
|
1281
|
+
}
|
|
1282
|
+
else {
|
|
1283
|
+
this.router.navigate(this.route());
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
static { this.ɵfac = function MenuExpandablePanelItemComponent_Factory(t) { return new (t || MenuExpandablePanelItemComponent)(); }; }
|
|
1287
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuExpandablePanelItemComponent, selectors: [["app-menu-expandable-panel-item"]], inputs: { icon: [1, "icon"], title: [1, "title"], route: [1, "route"], isSubItem: [1, "isSubItem"], action: [1, "action"] }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 6, vars: 6, consts: [[3, "click"]], template: function MenuExpandablePanelItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1288
|
+
i0.ɵɵelementStart(0, "section", 0);
|
|
1289
|
+
i0.ɵɵlistener("click", function MenuExpandablePanelItemComponent_Template_section_click_0_listener() { return ctx.openRoute(); });
|
|
1290
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
1291
|
+
i0.ɵɵtext(2);
|
|
1292
|
+
i0.ɵɵelementEnd();
|
|
1293
|
+
i0.ɵɵelementStart(3, "div");
|
|
1294
|
+
i0.ɵɵtext(4);
|
|
1295
|
+
i0.ɵɵpipe(5, "translate");
|
|
1296
|
+
i0.ɵɵelementEnd()();
|
|
1297
|
+
} if (rf & 2) {
|
|
1298
|
+
i0.ɵɵadvance(2);
|
|
1299
|
+
i0.ɵɵtextInterpolate(ctx.icon());
|
|
1300
|
+
i0.ɵɵadvance();
|
|
1301
|
+
i0.ɵɵclassMap(ctx.isSubItem() ? "subtitle2" : "subtitle1");
|
|
1302
|
+
i0.ɵɵadvance();
|
|
1303
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, ctx.title()));
|
|
1304
|
+
} }, dependencies: [MatIconModule, i1$1.MatIcon, TranslateModule, i2.TranslatePipe], styles: ["section[_ngcontent-%COMP%]{display:flex;gap:16px;padding:16px 24px}"] }); }
|
|
1305
|
+
}
|
|
1306
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelItemComponent, [{
|
|
1307
|
+
type: Component,
|
|
1308
|
+
args: [{ selector: 'app-menu-expandable-panel-item', standalone: true, imports: [MatIconModule, TranslateModule], template: "<section (click)=\"openRoute()\">\r\n <mat-icon>{{icon()}}</mat-icon>\r\n <div [class]=\"isSubItem() ? 'subtitle2' : 'subtitle1'\">{{title() | translate}}</div>\r\n</section>", styles: ["section{display:flex;gap:16px;padding:16px 24px}\n"] }]
|
|
1309
|
+
}], null, null); })();
|
|
1310
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelItemComponent, { className: "MenuExpandablePanelItemComponent", filePath: "lib\\layout\\menu-expandable-panel-item\\menu-expandable-panel-item.component.ts", lineNumber: 13 }); })();
|
|
1311
|
+
|
|
1312
|
+
const _forTrack0 = ($index, $item) => $item.title;
|
|
1313
|
+
function MenuExpandablePanelComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
1314
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
1315
|
+
i0.ɵɵtext(1);
|
|
1316
|
+
i0.ɵɵpipe(2, "translate");
|
|
1317
|
+
i0.ɵɵelementEnd();
|
|
1318
|
+
} if (rf & 2) {
|
|
1319
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1320
|
+
i0.ɵɵadvance();
|
|
1321
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.subTitle()));
|
|
1322
|
+
} }
|
|
1323
|
+
function MenuExpandablePanelComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
1324
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
1325
|
+
i0.ɵɵtext(1, "arrow_forward_ios");
|
|
1326
|
+
i0.ɵɵelementEnd();
|
|
1327
|
+
} if (rf & 2) {
|
|
1328
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1329
|
+
i0.ɵɵproperty("@arrow-collapse", ctx_r0.opened());
|
|
1330
|
+
} }
|
|
1331
|
+
function MenuExpandablePanelComponent_Conditional_9_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
1332
|
+
i0.ɵɵelement(0, "app-menu-expandable-panel-item", 3);
|
|
1333
|
+
} if (rf & 2) {
|
|
1334
|
+
const item_r2 = ctx.$implicit;
|
|
1335
|
+
i0.ɵɵproperty("icon", item_r2.icon)("title", item_r2.title)("route", item_r2.route)("isSubItem", true)("action", item_r2.action);
|
|
1336
|
+
} }
|
|
1337
|
+
function MenuExpandablePanelComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
1338
|
+
i0.ɵɵrepeaterCreate(0, MenuExpandablePanelComponent_Conditional_9_For_1_Template, 1, 5, "app-menu-expandable-panel-item", 3, _forTrack0);
|
|
1339
|
+
} if (rf & 2) {
|
|
1340
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1341
|
+
i0.ɵɵrepeater(ctx_r0.items());
|
|
1342
|
+
} }
|
|
1343
|
+
const DEFAULT_DURATION = 200;
|
|
1344
|
+
class MenuExpandablePanelComponent {
|
|
1345
|
+
constructor() {
|
|
1346
|
+
this.title = input();
|
|
1347
|
+
this.isSubItem = input(false);
|
|
1348
|
+
this.subTitle = input();
|
|
1349
|
+
this.menuIcon = input();
|
|
1350
|
+
this.showExpansionIcon = input(true);
|
|
1351
|
+
this.addTopBorderRadius = input(false);
|
|
1352
|
+
this.bottomBorder = input(false);
|
|
1353
|
+
this.addBottomBorderRadius = input(false);
|
|
1354
|
+
this.route = input([]);
|
|
1355
|
+
this.items = input([]);
|
|
1356
|
+
this.opened = signal(false);
|
|
1357
|
+
this.router = inject(Router);
|
|
1358
|
+
}
|
|
1359
|
+
get topLeftRadius() {
|
|
1360
|
+
return this.addTopBorderRadius() ? '12px' : '0px';
|
|
1361
|
+
}
|
|
1362
|
+
get topRightRadius() {
|
|
1363
|
+
return this.addTopBorderRadius() ? '12px' : '0px';
|
|
1364
|
+
}
|
|
1365
|
+
get bottomLeftRadius() {
|
|
1366
|
+
return this.addBottomBorderRadius() ? '12px' : '0px';
|
|
1367
|
+
}
|
|
1368
|
+
get bottomRightRadius() {
|
|
1369
|
+
return this.addBottomBorderRadius() ? '12px' : '0px';
|
|
1370
|
+
}
|
|
1371
|
+
get bottomBorderClass() {
|
|
1372
|
+
return this.bottomBorder();
|
|
1373
|
+
}
|
|
1374
|
+
handleClick() {
|
|
1375
|
+
if (this.route().length > 0 && this.items().length === 0) {
|
|
1376
|
+
this.router.navigate(this.route());
|
|
1377
|
+
}
|
|
1378
|
+
else {
|
|
1379
|
+
this.opened.set(!this.opened());
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
static { this.ɵfac = function MenuExpandablePanelComponent_Factory(t) { return new (t || MenuExpandablePanelComponent)(); }; }
|
|
1383
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuExpandablePanelComponent, selectors: [["app-menu-expandable-panel"]], hostVars: 10, hostBindings: function MenuExpandablePanelComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
1384
|
+
i0.ɵɵstyleProp("border-top-left-radius", ctx.topLeftRadius)("border-top-right-radius", ctx.topRightRadius)("border-bottom-left-radius", ctx.bottomLeftRadius)("border-bottom-right-radius", ctx.bottomRightRadius);
|
|
1385
|
+
i0.ɵɵclassProp("bottom-border", ctx.bottomBorderClass);
|
|
1386
|
+
} }, inputs: { title: [1, "title"], isSubItem: [1, "isSubItem"], subTitle: [1, "subTitle"], menuIcon: [1, "menuIcon"], showExpansionIcon: [1, "showExpansionIcon"], addTopBorderRadius: [1, "addTopBorderRadius"], bottomBorder: [1, "bottomBorder"], addBottomBorderRadius: [1, "addBottomBorderRadius"], route: [1, "route"], items: [1, "items"] }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 10, vars: 8, consts: [[3, "click", "ngClass"], [1, "subtitle1"], [1, "body2"], [3, "icon", "title", "route", "isSubItem", "action"]], template: function MenuExpandablePanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1387
|
+
i0.ɵɵelementStart(0, "section", 0);
|
|
1388
|
+
i0.ɵɵlistener("click", function MenuExpandablePanelComponent_Template_section_click_0_listener() { return ctx.handleClick(); });
|
|
1389
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
1390
|
+
i0.ɵɵtext(2);
|
|
1391
|
+
i0.ɵɵelementEnd();
|
|
1392
|
+
i0.ɵɵelementStart(3, "div")(4, "div", 1);
|
|
1393
|
+
i0.ɵɵtext(5);
|
|
1394
|
+
i0.ɵɵpipe(6, "translate");
|
|
1395
|
+
i0.ɵɵelementEnd();
|
|
1396
|
+
i0.ɵɵtemplate(7, MenuExpandablePanelComponent_Conditional_7_Template, 3, 3, "div", 2);
|
|
1397
|
+
i0.ɵɵelementEnd();
|
|
1398
|
+
i0.ɵɵtemplate(8, MenuExpandablePanelComponent_Conditional_8_Template, 2, 1, "mat-icon");
|
|
1399
|
+
i0.ɵɵelementEnd();
|
|
1400
|
+
i0.ɵɵtemplate(9, MenuExpandablePanelComponent_Conditional_9_Template, 2, 0);
|
|
1401
|
+
} if (rf & 2) {
|
|
1402
|
+
i0.ɵɵproperty("ngClass", ctx.opened() ? "bottom-padding" : "");
|
|
1403
|
+
i0.ɵɵadvance(2);
|
|
1404
|
+
i0.ɵɵtextInterpolate(ctx.menuIcon());
|
|
1405
|
+
i0.ɵɵadvance(3);
|
|
1406
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6, ctx.title()));
|
|
1407
|
+
i0.ɵɵadvance(2);
|
|
1408
|
+
i0.ɵɵconditional(ctx.subTitle() ? 7 : -1);
|
|
1409
|
+
i0.ɵɵadvance();
|
|
1410
|
+
i0.ɵɵconditional(ctx.showExpansionIcon() ? 8 : -1);
|
|
1411
|
+
i0.ɵɵadvance();
|
|
1412
|
+
i0.ɵɵconditional(ctx.opened() ? 9 : -1);
|
|
1413
|
+
} }, dependencies: [MatIconModule, i1$1.MatIcon, TranslateModule, i2.TranslatePipe, MenuExpandablePanelItemComponent, NgClass], styles: ["[_nghost-%COMP%]{padding:10px 12px;background-color:#fff;cursor:pointer;display:block}section[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:center}section.bottom-padding[_ngcontent-%COMP%]{padding-bottom:10px}div[_ngcontent-%COMP%]{flex:1}"], data: { animation: [
|
|
1414
|
+
trigger('arrow-collapse', [
|
|
1415
|
+
state('false', style({ transform: 'rotate(0deg)' })),
|
|
1416
|
+
state('true', style({ transform: 'rotate(-90deg)' })),
|
|
1417
|
+
transition('false => true', animate(DEFAULT_DURATION + 'ms ease-in-out')),
|
|
1418
|
+
transition('true => false', animate(DEFAULT_DURATION + 'ms ease-in-out'))
|
|
1419
|
+
])
|
|
1420
|
+
] } }); }
|
|
1421
|
+
}
|
|
1422
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelComponent, [{
|
|
1423
|
+
type: Component,
|
|
1424
|
+
args: [{ selector: 'app-menu-expandable-panel', standalone: true, imports: [MatIconModule, TranslateModule, MenuExpandablePanelItemComponent, NgClass], animations: [
|
|
1425
|
+
trigger('arrow-collapse', [
|
|
1426
|
+
state('false', style({ transform: 'rotate(0deg)' })),
|
|
1427
|
+
state('true', style({ transform: 'rotate(-90deg)' })),
|
|
1428
|
+
transition('false => true', animate(DEFAULT_DURATION + 'ms ease-in-out')),
|
|
1429
|
+
transition('true => false', animate(DEFAULT_DURATION + 'ms ease-in-out'))
|
|
1430
|
+
])
|
|
1431
|
+
], template: "<section [ngClass]=\"opened() ? 'bottom-padding' : ''\" (click)=\"handleClick()\">\r\n <mat-icon>{{menuIcon()}}</mat-icon>\r\n <div>\r\n <div class=\"subtitle1\">{{title() | translate}}</div>\r\n @if(subTitle()) {<div class=\"body2\">{{subTitle() | translate}}</div>}\r\n </div>\r\n @if (showExpansionIcon()) {<mat-icon [@arrow-collapse]=\"opened()\">arrow_forward_ios</mat-icon>}\r\n</section>\r\n@if(opened()) {\r\n @for (item of items(); track item.title) {\r\n <app-menu-expandable-panel-item [icon]=\"item.icon\" [title]=\"item.title\" [route]=\"item.route\" [isSubItem]=\"true\" [action]=\"item.action\" />\r\n }\r\n}", styles: [":host{padding:10px 12px;background-color:#fff;cursor:pointer;display:block}section{display:flex;gap:16px;align-items:center}section.bottom-padding{padding-bottom:10px}div{flex:1}\n"] }]
|
|
1432
|
+
}], null, { topLeftRadius: [{
|
|
1433
|
+
type: HostBinding,
|
|
1434
|
+
args: ['style.border-top-left-radius']
|
|
1435
|
+
}], topRightRadius: [{
|
|
1436
|
+
type: HostBinding,
|
|
1437
|
+
args: ['style.border-top-right-radius']
|
|
1438
|
+
}], bottomLeftRadius: [{
|
|
1439
|
+
type: HostBinding,
|
|
1440
|
+
args: ['style.border-bottom-left-radius']
|
|
1441
|
+
}], bottomRightRadius: [{
|
|
1442
|
+
type: HostBinding,
|
|
1443
|
+
args: ['style.border-bottom-right-radius']
|
|
1444
|
+
}], bottomBorderClass: [{
|
|
1445
|
+
type: HostBinding,
|
|
1446
|
+
args: ['class.bottom-border']
|
|
1447
|
+
}] }); })();
|
|
1448
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelComponent, { className: "MenuExpandablePanelComponent", filePath: "lib\\layout\\menu-expandable-panel\\menu-expandable-panel.component.ts", lineNumber: 26 }); })();
|
|
1449
|
+
|
|
1450
|
+
function PageTitleComponent_div_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
1451
|
+
i0.ɵɵelementContainerStart(0);
|
|
1452
|
+
i0.ɵɵelementStart(1, "a", 6);
|
|
1453
|
+
i0.ɵɵtext(2);
|
|
1454
|
+
i0.ɵɵpipe(3, "translate");
|
|
1455
|
+
i0.ɵɵelementEnd();
|
|
1456
|
+
i0.ɵɵelementStart(4, "span");
|
|
1457
|
+
i0.ɵɵtext(5, "/");
|
|
1458
|
+
i0.ɵɵelementEnd();
|
|
1459
|
+
i0.ɵɵelementContainerEnd();
|
|
1460
|
+
} if (rf & 2) {
|
|
1461
|
+
const location_r1 = ctx.$implicit;
|
|
1462
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1463
|
+
i0.ɵɵadvance();
|
|
1464
|
+
i0.ɵɵproperty("routerLink", ctx_r1.currentLocationLink());
|
|
1465
|
+
i0.ɵɵadvance();
|
|
1466
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, location_r1));
|
|
1467
|
+
} }
|
|
1468
|
+
function PageTitleComponent_div_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1469
|
+
i0.ɵɵelementStart(0, "span", 5);
|
|
1470
|
+
i0.ɵɵtext(1);
|
|
1471
|
+
i0.ɵɵpipe(2, "translate");
|
|
1472
|
+
i0.ɵɵelementEnd();
|
|
1473
|
+
} if (rf & 2) {
|
|
1474
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1475
|
+
i0.ɵɵadvance();
|
|
1476
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.breadcrumb()));
|
|
1477
|
+
} }
|
|
1478
|
+
function PageTitleComponent_div_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1479
|
+
i0.ɵɵelementStart(0, "span", 5);
|
|
1480
|
+
i0.ɵɵtext(1);
|
|
1481
|
+
i0.ɵɵelementEnd();
|
|
1482
|
+
} if (rf & 2) {
|
|
1483
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1484
|
+
i0.ɵɵadvance();
|
|
1485
|
+
i0.ɵɵtextInterpolate(ctx_r1.breadcrumb());
|
|
1486
|
+
} }
|
|
1487
|
+
function PageTitleComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
1488
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
1489
|
+
i0.ɵɵtemplate(1, PageTitleComponent_div_4_ng_container_1_Template, 6, 4, "ng-container", 4)(2, PageTitleComponent_div_4_Conditional_2_Template, 3, 3, "span", 5)(3, PageTitleComponent_div_4_Conditional_3_Template, 2, 1, "span", 5);
|
|
1490
|
+
i0.ɵɵelementEnd();
|
|
1491
|
+
} if (rf & 2) {
|
|
1492
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1493
|
+
i0.ɵɵadvance();
|
|
1494
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.currentLocation());
|
|
1495
|
+
i0.ɵɵadvance();
|
|
1496
|
+
i0.ɵɵconditional(ctx_r1.translateBreadcrumb() ? 2 : 3);
|
|
1497
|
+
} }
|
|
1498
|
+
class PageTitleComponent {
|
|
1499
|
+
constructor() {
|
|
1500
|
+
this.title = input('');
|
|
1501
|
+
this.currentLocation = input([]);
|
|
1502
|
+
this.currentLocationLink = input(null);
|
|
1503
|
+
this.breadcrumb = input('');
|
|
1504
|
+
this.showBreadcrumb = input(false);
|
|
1505
|
+
this.translateBreadcrumb = input(false);
|
|
1506
|
+
}
|
|
1507
|
+
static { this.ɵfac = function PageTitleComponent_Factory(t) { return new (t || PageTitleComponent)(); }; }
|
|
1508
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PageTitleComponent, selectors: [["app-page-title"]], inputs: { title: [1, "title"], currentLocation: [1, "currentLocation"], currentLocationLink: [1, "currentLocationLink"], breadcrumb: [1, "breadcrumb"], showBreadcrumb: [1, "showBreadcrumb"], translateBreadcrumb: [1, "translateBreadcrumb"] }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 5, vars: 4, consts: [[1, "title-section"], [1, "title-label"], ["class", "breadcrumb", 4, "ngIf"], [1, "breadcrumb"], [4, "ngFor", "ngForOf"], [1, "breadcrumb-current"], [3, "routerLink"]], template: function PageTitleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1509
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "h4", 1);
|
|
1510
|
+
i0.ɵɵtext(2);
|
|
1511
|
+
i0.ɵɵpipe(3, "translate");
|
|
1512
|
+
i0.ɵɵelementEnd();
|
|
1513
|
+
i0.ɵɵtemplate(4, PageTitleComponent_div_4_Template, 4, 2, "div", 2);
|
|
1514
|
+
i0.ɵɵelementEnd();
|
|
1515
|
+
} if (rf & 2) {
|
|
1516
|
+
i0.ɵɵadvance(2);
|
|
1517
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, ctx.title()));
|
|
1518
|
+
i0.ɵɵadvance(2);
|
|
1519
|
+
i0.ɵɵproperty("ngIf", ctx.showBreadcrumb);
|
|
1520
|
+
} }, dependencies: [CommonModule, i1$4.NgForOf, i1$4.NgIf, TranslateModule, i2.TranslatePipe, RouterModule, i1.RouterLink], styles: [".title-section[_ngcontent-%COMP%]{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch}.breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}h4[_ngcontent-%COMP%]{padding:0}"], changeDetection: 0 }); }
|
|
1521
|
+
}
|
|
1522
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageTitleComponent, [{
|
|
1523
|
+
type: Component,
|
|
1524
|
+
args: [{ selector: 'app-page-title', standalone: true, imports: [CommonModule, TranslateModule, RouterModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"title-section\">\n\n <h4 class=\"title-label\">{{title() | translate }}</h4>\n\n <div class=\"breadcrumb\" *ngIf=\"showBreadcrumb\">\n\n <ng-container *ngFor=\"let location of currentLocation()\">\n <a [routerLink]=\"currentLocationLink()\">{{location | translate }}</a>\n <span>/</span>\n </ng-container>\n\n @if (translateBreadcrumb()) {\n <span class=\"breadcrumb-current\">{{ breadcrumb() | translate }}</span>\n } @else {\n <span class=\"breadcrumb-current\">{{ breadcrumb() }}</span>\n }\n\n </div>\n\n</div>", styles: [".title-section{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch}.breadcrumb{display:flex;align-items:center;gap:8px}h4{padding:0}\n"] }]
|
|
1525
|
+
}], null, null); })();
|
|
1526
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib\\layout\\page-title\\page-title.component.ts", lineNumber: 14 }); })();
|
|
1527
|
+
|
|
1528
|
+
function PasswordCriteriaComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
1529
|
+
i0.ɵɵelementStart(0, "mat-icon", 0);
|
|
1530
|
+
i0.ɵɵtext(1, "check_circle");
|
|
1531
|
+
i0.ɵɵelementEnd();
|
|
1532
|
+
} if (rf & 2) {
|
|
1533
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1534
|
+
i0.ɵɵproperty("ngClass", ctx_r0.disabled() ? "disabled" : "");
|
|
1535
|
+
} }
|
|
1536
|
+
function PasswordCriteriaComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1537
|
+
i0.ɵɵelementStart(0, "mat-icon", 1);
|
|
1538
|
+
i0.ɵɵtext(1, "cancel");
|
|
1539
|
+
i0.ɵɵelementEnd();
|
|
1540
|
+
} if (rf & 2) {
|
|
1541
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1542
|
+
i0.ɵɵproperty("ngClass", ctx_r0.disabled() ? "disabled" : "");
|
|
1543
|
+
} }
|
|
1544
|
+
class PasswordCriteriaComponent {
|
|
1545
|
+
constructor() {
|
|
1546
|
+
this.label = input.required();
|
|
1547
|
+
this.condition = input(false);
|
|
1548
|
+
this.disabled = input(false);
|
|
1549
|
+
}
|
|
1550
|
+
static { this.ɵfac = function PasswordCriteriaComponent_Factory(t) { return new (t || PasswordCriteriaComponent)(); }; }
|
|
1551
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PasswordCriteriaComponent, selectors: [["app-password-criteria"]], inputs: { label: [1, "label"], condition: [1, "condition"], disabled: [1, "disabled"] }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 4, vars: 3, consts: [[1, "green", 3, "ngClass"], [1, "red", 3, "ngClass"], ["translate", "", 1, "body2", 3, "ngClass"]], template: function PasswordCriteriaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1552
|
+
i0.ɵɵtemplate(0, PasswordCriteriaComponent_Conditional_0_Template, 2, 1, "mat-icon", 0)(1, PasswordCriteriaComponent_Conditional_1_Template, 2, 1, "mat-icon", 1);
|
|
1553
|
+
i0.ɵɵelementStart(2, "label", 2);
|
|
1554
|
+
i0.ɵɵtext(3);
|
|
1555
|
+
i0.ɵɵelementEnd();
|
|
1556
|
+
} if (rf & 2) {
|
|
1557
|
+
i0.ɵɵconditional(ctx.condition() ? 0 : 1);
|
|
1558
|
+
i0.ɵɵadvance(2);
|
|
1559
|
+
i0.ɵɵproperty("ngClass", ctx.disabled() ? "disabled" : "");
|
|
1560
|
+
i0.ɵɵadvance();
|
|
1561
|
+
i0.ɵɵtextInterpolate(ctx.label());
|
|
1562
|
+
} }, dependencies: [MatIconModule, i1$1.MatIcon, TranslateModule, i2.TranslateDirective, NgClass], styles: ["[_nghost-%COMP%]{display:flex;align-items:center;gap:8px}.green[_ngcontent-%COMP%]{fill:#81c784;color:#81c784}.red[_ngcontent-%COMP%]{fill:#e57373;color:#e57373}label[_ngcontent-%COMP%]{color:#000}.disabled[_ngcontent-%COMP%]{opacity:.5}"] }); }
|
|
1563
|
+
}
|
|
1564
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PasswordCriteriaComponent, [{
|
|
1565
|
+
type: Component,
|
|
1566
|
+
args: [{ selector: 'app-password-criteria', standalone: true, imports: [MatIconModule, TranslateModule, NgClass], template: "@if (condition()) {\r\n<mat-icon [ngClass]=\"disabled() ? 'disabled' : ''\" class=\"green\">check_circle</mat-icon>\r\n}@else {\r\n<mat-icon [ngClass]=\"disabled() ? 'disabled' : ''\" class=\"red\">cancel</mat-icon>\r\n}\r\n<label [ngClass]=\"disabled() ? 'disabled' : ''\" class=\"body2\" translate>{{label()}}</label>", styles: [":host{display:flex;align-items:center;gap:8px}.green{fill:#81c784;color:#81c784}.red{fill:#e57373;color:#e57373}label{color:#000}.disabled{opacity:.5}\n"] }]
|
|
1567
|
+
}], null, null); })();
|
|
1568
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PasswordCriteriaComponent, { className: "PasswordCriteriaComponent", filePath: "lib\\inputs\\password\\password-criteria\\password-criteria.component.ts", lineNumber: 13 }); })();
|
|
1569
|
+
|
|
1570
|
+
function PasswordInputComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1571
|
+
i0.ɵɵelementStart(0, "mat-label");
|
|
1572
|
+
i0.ɵɵtext(1);
|
|
1573
|
+
i0.ɵɵpipe(2, "translate");
|
|
1574
|
+
i0.ɵɵelementEnd();
|
|
1575
|
+
} if (rf & 2) {
|
|
1576
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1577
|
+
i0.ɵɵadvance();
|
|
1578
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.label()));
|
|
1579
|
+
} }
|
|
1580
|
+
function PasswordInputComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1581
|
+
i0.ɵɵelementStart(0, "mat-label");
|
|
1582
|
+
i0.ɵɵtext(1);
|
|
1583
|
+
i0.ɵɵelementEnd();
|
|
1584
|
+
} if (rf & 2) {
|
|
1585
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1586
|
+
i0.ɵɵadvance();
|
|
1587
|
+
i0.ɵɵtextInterpolate(ctx_r1.label());
|
|
1588
|
+
} }
|
|
1589
|
+
class PasswordInputComponent {
|
|
1590
|
+
constructor() {
|
|
1591
|
+
this.autocomplete = input('password');
|
|
1592
|
+
this.translateLabel = input(true);
|
|
1593
|
+
this.label = input();
|
|
1594
|
+
this.translatePlaceholder = input(true);
|
|
1595
|
+
this.placeholder = input();
|
|
1596
|
+
this.required = input(false);
|
|
1597
|
+
this.enterKeyDown = output();
|
|
1598
|
+
this.passwordControl = new FormControl('');
|
|
1599
|
+
this.disabled = signal(false);
|
|
1600
|
+
this.showPassword = signal(false);
|
|
1601
|
+
this.inputType = computed(() => this.showPassword() ? 'text' : 'password');
|
|
1602
|
+
this.onChange = (value) => value;
|
|
1603
|
+
this.onTouched = () => { };
|
|
1604
|
+
this.passwordControl.valueChanges.subscribe(value => {
|
|
1605
|
+
this.onChange(value);
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
writeValue(value) {
|
|
1609
|
+
this.passwordControl.setValue(value);
|
|
1610
|
+
}
|
|
1611
|
+
registerOnChange(fn) {
|
|
1612
|
+
this.onChange = fn;
|
|
1613
|
+
}
|
|
1614
|
+
registerOnTouched(fn) {
|
|
1615
|
+
this.onTouched = fn;
|
|
1616
|
+
}
|
|
1617
|
+
setDisabledState(isDisabled) {
|
|
1618
|
+
this.disabled.set(isDisabled);
|
|
1619
|
+
if (isDisabled) {
|
|
1620
|
+
this.passwordControl.disable();
|
|
1621
|
+
}
|
|
1622
|
+
else {
|
|
1623
|
+
this.passwordControl.enable();
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
static { this.ɵfac = function PasswordInputComponent_Factory(t) { return new (t || PasswordInputComponent)(); }; }
|
|
1627
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PasswordInputComponent, selectors: [["app-password-input"]], inputs: { autocomplete: [1, "autocomplete"], translateLabel: [1, "translateLabel"], label: [1, "label"], translatePlaceholder: [1, "translatePlaceholder"], placeholder: [1, "placeholder"], required: [1, "required"] }, outputs: { enterKeyDown: "enterKeyDown" }, standalone: true, features: [i0.ɵɵProvidersFeature([
|
|
1628
|
+
{
|
|
1629
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1630
|
+
multi: true,
|
|
1631
|
+
useExisting: forwardRef(() => PasswordInputComponent),
|
|
1632
|
+
},
|
|
1633
|
+
]), i0.ɵɵStandaloneFeature], decls: 8, vars: 10, consts: [["password", ""], ["subscriptSizing", "dynamic"], ["matInput", "", 1, "password", 3, "keydown.enter", "autocomplete", "type", "formControl", "required", "placeholder"], ["matSuffix", "", 2, "cursor", "pointer", 3, "click", "ngClass"]], template: function PasswordInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1634
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
1635
|
+
i0.ɵɵelementStart(0, "mat-form-field", 1);
|
|
1636
|
+
i0.ɵɵtemplate(1, PasswordInputComponent_Conditional_1_Template, 3, 3, "mat-label")(2, PasswordInputComponent_Conditional_2_Template, 2, 1, "mat-label");
|
|
1637
|
+
i0.ɵɵelementStart(3, "input", 2, 0);
|
|
1638
|
+
i0.ɵɵpipe(5, "translate");
|
|
1639
|
+
i0.ɵɵlistener("keydown.enter", function PasswordInputComponent_Template_input_keydown_enter_3_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.enterKeyDown.emit()); });
|
|
1640
|
+
i0.ɵɵelementEnd();
|
|
1641
|
+
i0.ɵɵelementStart(6, "mat-icon", 3);
|
|
1642
|
+
i0.ɵɵlistener("click", function PasswordInputComponent_Template_mat_icon_click_6_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.showPassword.set(!ctx.showPassword())); });
|
|
1643
|
+
i0.ɵɵtext(7);
|
|
1644
|
+
i0.ɵɵelementEnd()();
|
|
1645
|
+
} if (rf & 2) {
|
|
1646
|
+
const password_r3 = i0.ɵɵreference(4);
|
|
1647
|
+
i0.ɵɵadvance();
|
|
1648
|
+
i0.ɵɵconditional(ctx.translateLabel() ? 1 : 2);
|
|
1649
|
+
i0.ɵɵadvance(2);
|
|
1650
|
+
i0.ɵɵproperty("autocomplete", ctx.autocomplete())("type", ctx.inputType())("formControl", ctx.passwordControl)("required", ctx.required())("placeholder", ctx.translatePlaceholder() ? i0.ɵɵpipeBind1(5, 8, ctx.placeholder()) : ctx.placeholder());
|
|
1651
|
+
i0.ɵɵadvance(3);
|
|
1652
|
+
i0.ɵɵproperty("ngClass", ctx.disabled() ? "disabled" : "");
|
|
1653
|
+
i0.ɵɵadvance();
|
|
1654
|
+
i0.ɵɵtextInterpolate1(" ", password_r3.type === "password" ? "visibility_off" : "visibility", " ");
|
|
1655
|
+
} }, dependencies: [TranslateModule, i2.TranslatePipe, NgClass, MatFormFieldModule, i2$3.MatFormField, i2$3.MatLabel, i2$3.MatSuffix, MatIconModule, i1$1.MatIcon, MatInputModule, i4.MatInput, ReactiveFormsModule, i5.DefaultValueAccessor, i5.NgControlStatus, i5.RequiredValidator, i5.FormControlDirective], styles: ["[_nghost-%COMP%]{width:100%}mat-form-field[_ngcontent-%COMP%]{width:100%}.disabled[_ngcontent-%COMP%]{opacity:.5}"] }); }
|
|
1656
|
+
}
|
|
1657
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PasswordInputComponent, [{
|
|
1658
|
+
type: Component,
|
|
1659
|
+
args: [{ selector: 'app-password-input', standalone: true, imports: [TranslateModule, NgClass, MatFormFieldModule, MatIconModule, MatInputModule, ReactiveFormsModule], providers: [
|
|
1660
|
+
{
|
|
1661
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1662
|
+
multi: true,
|
|
1663
|
+
useExisting: forwardRef(() => PasswordInputComponent),
|
|
1664
|
+
},
|
|
1665
|
+
], template: "<mat-form-field subscriptSizing=\"dynamic\">\r\n @if(translateLabel()) {<mat-label>{{label() | translate}}</mat-label>}\r\n @else {<mat-label>{{label()}}</mat-label>}\r\n <input (keydown.enter)=\"enterKeyDown.emit()\" [autocomplete]=\"autocomplete()\" #password class=\"password\"\r\n [type]=\"inputType()\" [formControl]=\"passwordControl\" matInput [required]=\"required()\"\r\n [placeholder]=\"translatePlaceholder() ? (placeholder() | translate) : placeholder()\" />\r\n <mat-icon [ngClass]=\"disabled() ? 'disabled' : ''\" style=\"cursor: pointer\" matSuffix\r\n (click)=\"showPassword.set(!showPassword())\">\r\n {{ password.type === \"password\" ? \"visibility_off\" : \"visibility\" }}\r\n </mat-icon>\r\n</mat-form-field>", styles: [":host{width:100%}mat-form-field{width:100%}.disabled{opacity:.5}\n"] }]
|
|
1666
|
+
}], () => [], null); })();
|
|
1667
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PasswordInputComponent, { className: "PasswordInputComponent", filePath: "lib\\inputs\\password\\password-input\\password-input.component.ts", lineNumber: 23 }); })();
|
|
1668
|
+
|
|
1669
|
+
class PasswordCriteriaViewerComponent {
|
|
1670
|
+
constructor() {
|
|
1671
|
+
this.passwordValidation = input.required();
|
|
1672
|
+
this.disabled = input(false);
|
|
1673
|
+
}
|
|
1674
|
+
static { this.ɵfac = function PasswordCriteriaViewerComponent_Factory(t) { return new (t || PasswordCriteriaViewerComponent)(); }; }
|
|
1675
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PasswordCriteriaViewerComponent, selectors: [["app-password-criteria-viewer"]], inputs: { passwordValidation: [1, "passwordValidation"], disabled: [1, "disabled"] }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 5, vars: 10, consts: [["label", "error.minimumCharacters", 3, "disabled", "condition"], ["label", "error.minimumNumeric", 3, "disabled", "condition"], ["label", "error.minimumSpecialCharacter", 3, "disabled", "condition"], ["label", "error.minimumUpperAndLowercase", 3, "disabled", "condition"], ["label", "error.identicalPassword", 3, "disabled", "condition"]], template: function PasswordCriteriaViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1676
|
+
i0.ɵɵelement(0, "app-password-criteria", 0)(1, "app-password-criteria", 1)(2, "app-password-criteria", 2)(3, "app-password-criteria", 3)(4, "app-password-criteria", 4);
|
|
1677
|
+
} if (rf & 2) {
|
|
1678
|
+
i0.ɵɵproperty("disabled", ctx.disabled())("condition", ctx.passwordValidation().hasMinimumCharacters);
|
|
1679
|
+
i0.ɵɵadvance();
|
|
1680
|
+
i0.ɵɵproperty("disabled", ctx.disabled())("condition", ctx.passwordValidation().hasMinimumNumeric);
|
|
1681
|
+
i0.ɵɵadvance();
|
|
1682
|
+
i0.ɵɵproperty("disabled", ctx.disabled())("condition", ctx.passwordValidation().hasSpecialCharacter);
|
|
1683
|
+
i0.ɵɵadvance();
|
|
1684
|
+
i0.ɵɵproperty("disabled", ctx.disabled())("condition", ctx.passwordValidation().hasLowerAndUppercase);
|
|
1685
|
+
i0.ɵɵadvance();
|
|
1686
|
+
i0.ɵɵproperty("disabled", ctx.disabled())("condition", ctx.passwordValidation().hasIdenticalPassword);
|
|
1687
|
+
} }, dependencies: [PasswordCriteriaComponent], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{flex-grow:1}"] }); }
|
|
1688
|
+
}
|
|
1689
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PasswordCriteriaViewerComponent, [{
|
|
1690
|
+
type: Component,
|
|
1691
|
+
args: [{ selector: 'app-password-criteria-viewer', standalone: true, imports: [PasswordCriteriaComponent], template: "<app-password-criteria [disabled]=\"disabled()\" label=\"error.minimumCharacters\" [condition]=\"passwordValidation().hasMinimumCharacters\"/>\r\n<app-password-criteria [disabled]=\"disabled()\" label=\"error.minimumNumeric\" [condition]=\"passwordValidation().hasMinimumNumeric\"/>\r\n<app-password-criteria [disabled]=\"disabled()\" label=\"error.minimumSpecialCharacter\" [condition]=\"passwordValidation().hasSpecialCharacter\"/>\r\n<app-password-criteria [disabled]=\"disabled()\" label=\"error.minimumUpperAndLowercase\" [condition]=\"passwordValidation().hasLowerAndUppercase\"/>\r\n<app-password-criteria [disabled]=\"disabled()\" label=\"error.identicalPassword\" [condition]=\"passwordValidation().hasIdenticalPassword\"/>", styles: [":host{display:flex;flex-direction:column}:host>*{flex-grow:1}\n"] }]
|
|
1692
|
+
}], null, null); })();
|
|
1693
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PasswordCriteriaViewerComponent, { className: "PasswordCriteriaViewerComponent", filePath: "lib\\inputs\\password\\password-criteria-viewer\\password-criteria-viewer.component.ts", lineNumber: 12 }); })();
|
|
1694
|
+
|
|
1695
|
+
class PasswordValidation {
|
|
1696
|
+
constructor(hasMinimumCharacters = false, hasMinimumNumeric = false, hasLowerAndUppercase = false, hasSpecialCharacter = false, hasIdenticalPassword = false) {
|
|
1697
|
+
this.hasMinimumCharacters = hasMinimumCharacters;
|
|
1698
|
+
this.hasMinimumNumeric = hasMinimumNumeric;
|
|
1699
|
+
this.hasLowerAndUppercase = hasLowerAndUppercase;
|
|
1700
|
+
this.hasSpecialCharacter = hasSpecialCharacter;
|
|
1701
|
+
this.hasIdenticalPassword = hasIdenticalPassword;
|
|
1702
|
+
}
|
|
1703
|
+
isValid() {
|
|
1704
|
+
return this.hasMinimumCharacters && this.hasMinimumNumeric && this.hasLowerAndUppercase && this.hasSpecialCharacter && this.hasIdenticalPassword;
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
class PasswordValidator {
|
|
1709
|
+
static { this.passwordMinLength = 13; }
|
|
1710
|
+
static validate(formGroup) {
|
|
1711
|
+
const password = formGroup.controls['password'].value;
|
|
1712
|
+
const confirmedPassword = formGroup.controls['confirmation'].value;
|
|
1713
|
+
return new PasswordValidation(password.length >= this.passwordMinLength, this.hasNumeric(password), this.hasLowerCaseAndUpperCase(password), this.hasSpecialCharacter(password), password && password === confirmedPassword);
|
|
1714
|
+
}
|
|
1715
|
+
static hasLowerCaseAndUpperCase(password) {
|
|
1716
|
+
return /^(?=.*[a-z])(?=.*[A-Z])/.test(password);
|
|
1717
|
+
}
|
|
1718
|
+
static hasNumeric(password) {
|
|
1719
|
+
return /(?=.*\d)/.test(password);
|
|
1720
|
+
}
|
|
1721
|
+
static hasSpecialCharacter(password) {
|
|
1722
|
+
return new RegExp(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/).test(password);
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
const _c0$3 = ["*"];
|
|
1727
|
+
class PasswordSelectionComponent {
|
|
1728
|
+
constructor(formBuilder) {
|
|
1729
|
+
this.passwordValidation = new PasswordValidation();
|
|
1730
|
+
this.disabled = false;
|
|
1731
|
+
this.direction = 'row';
|
|
1732
|
+
this.formWidth = '50%';
|
|
1733
|
+
this.lastPasswordValidationSent = false;
|
|
1734
|
+
this.onChange = (value) => value;
|
|
1735
|
+
this.onTouched = () => { };
|
|
1736
|
+
this.form = formBuilder.group({
|
|
1737
|
+
password: ['', Validators.required],
|
|
1738
|
+
confirmation: ['', Validators.required]
|
|
1739
|
+
}, { validators: (formGroup) => {
|
|
1740
|
+
this.passwordValidation = PasswordValidator.validate(formGroup);
|
|
1741
|
+
if (!this.passwordValidation.isValid()) {
|
|
1742
|
+
return ({ validation: this.passwordValidation });
|
|
1743
|
+
}
|
|
1744
|
+
return null;
|
|
1745
|
+
} });
|
|
1746
|
+
this.form.valueChanges.pipe(filter(_ => this.form.valid != this.lastPasswordValidationSent)).subscribe(form => {
|
|
1747
|
+
this.lastPasswordValidationSent = this.form.valid;
|
|
1748
|
+
if (this.form.valid) {
|
|
1749
|
+
this.onChange(form.password);
|
|
1750
|
+
}
|
|
1751
|
+
else {
|
|
1752
|
+
this.onChange('');
|
|
1753
|
+
}
|
|
1754
|
+
});
|
|
1755
|
+
}
|
|
1756
|
+
writeValue(value) {
|
|
1757
|
+
this.form.get('password').setValue(value);
|
|
1758
|
+
this.form.get('confirmation').setValue(value);
|
|
1759
|
+
}
|
|
1760
|
+
registerOnChange(fn) {
|
|
1761
|
+
this.onChange = fn;
|
|
1762
|
+
}
|
|
1763
|
+
registerOnTouched(fn) {
|
|
1764
|
+
this.onTouched = fn;
|
|
1765
|
+
}
|
|
1766
|
+
setDisabledState(isDisabled) {
|
|
1767
|
+
this.disabled = isDisabled;
|
|
1768
|
+
if (isDisabled) {
|
|
1769
|
+
this.form.get('password').disable();
|
|
1770
|
+
this.form.get('confirmation').disable();
|
|
1771
|
+
}
|
|
1772
|
+
else {
|
|
1773
|
+
this.form.get('password').enable();
|
|
1774
|
+
this.form.get('confirmation').enable();
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
static { this.ɵfac = function PasswordSelectionComponent_Factory(t) { return new (t || PasswordSelectionComponent)(i0.ɵɵdirectiveInject(i5.UntypedFormBuilder)); }; }
|
|
1778
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PasswordSelectionComponent, selectors: [["app-password-selection"]], hostVars: 4, hostBindings: function PasswordSelectionComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
1779
|
+
i0.ɵɵstyleProp("flex-direction", ctx.direction)("form", ctx.formWidth, "width");
|
|
1780
|
+
} }, inputs: { direction: "direction", formWidth: "formWidth" }, standalone: true, features: [i0.ɵɵProvidersFeature([
|
|
1781
|
+
{
|
|
1782
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1783
|
+
multi: true,
|
|
1784
|
+
useExisting: forwardRef(() => PasswordSelectionComponent),
|
|
1785
|
+
},
|
|
1786
|
+
]), i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$3, decls: 7, vars: 9, consts: [[3, "formGroup"], [1, "passwords"], ["autocomplete", "new-password", "label", "password", "formControlName", "password", 3, "translateLabel", "required"], ["autocomplete", "new-password", "label", "passwordConfirmation", "formControlName", "confirmation", 3, "translateLabel", "required"], [1, "errors"], [3, "disabled", "passwordValidation"]], template: function PasswordSelectionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1787
|
+
i0.ɵɵprojectionDef();
|
|
1788
|
+
i0.ɵɵelementStart(0, "form", 0)(1, "div", 1);
|
|
1789
|
+
i0.ɵɵelement(2, "app-password-input", 2)(3, "app-password-input", 3);
|
|
1790
|
+
i0.ɵɵelementEnd();
|
|
1791
|
+
i0.ɵɵelementStart(4, "div", 4);
|
|
1792
|
+
i0.ɵɵprojection(5);
|
|
1793
|
+
i0.ɵɵelementEnd()();
|
|
1794
|
+
i0.ɵɵelement(6, "app-password-criteria-viewer", 5);
|
|
1795
|
+
} if (rf & 2) {
|
|
1796
|
+
i0.ɵɵclassProp("full-width-form", ctx.direction === "column");
|
|
1797
|
+
i0.ɵɵproperty("formGroup", ctx.form);
|
|
1798
|
+
i0.ɵɵadvance(2);
|
|
1799
|
+
i0.ɵɵproperty("translateLabel", true)("required", true);
|
|
1800
|
+
i0.ɵɵadvance();
|
|
1801
|
+
i0.ɵɵproperty("translateLabel", true)("required", true);
|
|
1802
|
+
i0.ɵɵadvance(3);
|
|
1803
|
+
i0.ɵɵproperty("disabled", ctx.disabled)("passwordValidation", ctx.passwordValidation);
|
|
1804
|
+
} }, dependencies: [PasswordInputComponent, FormsModule, i5.ɵNgNoValidate, i5.NgControlStatus, i5.NgControlStatusGroup, i5.RequiredValidator, ReactiveFormsModule, i5.FormGroupDirective, i5.FormControlName, TranslateModule, PasswordCriteriaViewerComponent], styles: ["[_nghost-%COMP%]{display:flex;gap:20px}form[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column}.full-width-form[_ngcontent-%COMP%]{width:100%}.passwords[_ngcontent-%COMP%]{gap:16px;display:flex;flex-direction:column}.criteria[_ngcontent-%COMP%]{flex-grow:1}.disabled[_ngcontent-%COMP%]{opacity:.5}.errors[_ngcontent-%COMP%]{padding:0 16px}"] }); }
|
|
625
1805
|
}
|
|
626
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
1806
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PasswordSelectionComponent, [{
|
|
627
1807
|
type: Component,
|
|
628
|
-
args: [{ selector: '
|
|
629
|
-
|
|
1808
|
+
args: [{ selector: 'app-password-selection', standalone: true, imports: [PasswordInputComponent, FormsModule, ReactiveFormsModule, TranslateModule, PasswordCriteriaViewerComponent], providers: [
|
|
1809
|
+
{
|
|
1810
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1811
|
+
multi: true,
|
|
1812
|
+
useExisting: forwardRef(() => PasswordSelectionComponent),
|
|
1813
|
+
},
|
|
1814
|
+
], template: "<form [formGroup]=\"form\" [class.full-width-form]=\"direction === 'column'\">\r\n <div class=\"passwords\">\r\n <app-password-input autocomplete=\"new-password\" label=\"password\" [translateLabel]=\"true\" [required]=\"true\" formControlName=\"password\" />\r\n <app-password-input autocomplete=\"new-password\" label=\"passwordConfirmation\" [translateLabel]=\"true\" [required]=\"true\" formControlName=\"confirmation\" />\r\n </div>\r\n <div class=\"errors\">\r\n <ng-content></ng-content>\r\n </div>\r\n</form>\r\n<app-password-criteria-viewer [disabled]=\"disabled\" [passwordValidation]=\"passwordValidation\"></app-password-criteria-viewer>", styles: [":host{display:flex;gap:20px}form{width:50%;display:flex;flex-direction:column}.full-width-form{width:100%}.passwords{gap:16px;display:flex;flex-direction:column}.criteria{flex-grow:1}.disabled{opacity:.5}.errors{padding:0 16px}\n"] }]
|
|
1815
|
+
}], () => [{ type: i5.UntypedFormBuilder }], { direction: [{
|
|
630
1816
|
type: Input
|
|
631
|
-
}
|
|
1817
|
+
}, {
|
|
1818
|
+
type: HostBinding,
|
|
1819
|
+
args: ['style.flex-direction']
|
|
1820
|
+
}], formWidth: [{
|
|
632
1821
|
type: Input
|
|
633
|
-
}
|
|
634
|
-
type:
|
|
635
|
-
args: ['
|
|
1822
|
+
}, {
|
|
1823
|
+
type: HostBinding,
|
|
1824
|
+
args: ['style.form.width']
|
|
636
1825
|
}] }); })();
|
|
637
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(
|
|
1826
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PasswordSelectionComponent, { className: "PasswordSelectionComponent", filePath: "lib\\inputs\\password\\password-selection\\password-selection.component.ts", lineNumber: 24 }); })();
|
|
638
1827
|
|
|
639
|
-
const _c0$
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
i0.ɵɵ
|
|
1828
|
+
const _c0$2 = ["singleSelect"];
|
|
1829
|
+
const _c1 = ["*"];
|
|
1830
|
+
function SelectWithSearchComponent_mat_option_10_Template(rf, ctx) { if (rf & 1) {
|
|
1831
|
+
i0.ɵɵelementStart(0, "mat-option", 4);
|
|
1832
|
+
i0.ɵɵtext(1);
|
|
643
1833
|
i0.ɵɵelementEnd();
|
|
644
1834
|
} if (rf & 2) {
|
|
645
|
-
const
|
|
646
|
-
|
|
647
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
648
|
-
i0.ɵɵproperty("@slideLeftRight", ctx_r2.getState(index_r2));
|
|
1835
|
+
const option_r1 = ctx.$implicit;
|
|
1836
|
+
i0.ɵɵproperty("value", option_r1.id);
|
|
649
1837
|
i0.ɵɵadvance();
|
|
650
|
-
i0.ɵɵ
|
|
1838
|
+
i0.ɵɵtextInterpolate1(" ", option_r1.name, " ");
|
|
651
1839
|
} }
|
|
652
|
-
class
|
|
1840
|
+
class SelectWithSearchComponent {
|
|
653
1841
|
constructor() {
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
1842
|
+
this.selectFirstOptionByDefault = false;
|
|
1843
|
+
this.optionFilterControl = new FormControl('');
|
|
1844
|
+
this.filteredOptions = new ReplaySubject();
|
|
1845
|
+
this.isDisabled = true;
|
|
1846
|
+
this.valueChanged = new EventEmitter();
|
|
1847
|
+
this._onDestroy = new Subject();
|
|
1848
|
+
this.allOptions = [];
|
|
1849
|
+
}
|
|
1850
|
+
set options(newOptions) {
|
|
1851
|
+
if (newOptions) {
|
|
1852
|
+
this.allOptions = newOptions;
|
|
1853
|
+
this.filteredOptions.next(newOptions.slice());
|
|
1854
|
+
this.setInitialSelectedOption();
|
|
1855
|
+
this.isDisabled = (this.options.length < 1);
|
|
1856
|
+
}
|
|
1857
|
+
else {
|
|
1858
|
+
this.allOptions = [];
|
|
1859
|
+
this.isDisabled = (this.options.length < 1);
|
|
1860
|
+
}
|
|
660
1861
|
}
|
|
661
|
-
|
|
662
|
-
this.
|
|
663
|
-
this.restart();
|
|
1862
|
+
get options() {
|
|
1863
|
+
return this.allOptions;
|
|
664
1864
|
}
|
|
665
|
-
|
|
666
|
-
|
|
1865
|
+
set value(newValue) {
|
|
1866
|
+
if (newValue !== this.selectedOptionId) {
|
|
1867
|
+
this.selectedOptionId = newValue;
|
|
1868
|
+
this.valueChanged.emit(this.value);
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
get value() {
|
|
1872
|
+
return this.selectedOptionId;
|
|
667
1873
|
}
|
|
668
1874
|
ngOnInit() {
|
|
669
|
-
this.
|
|
670
|
-
|
|
1875
|
+
this.optionFilterControl.valueChanges
|
|
1876
|
+
.pipe(takeUntil(this._onDestroy))
|
|
1877
|
+
.subscribe(() => {
|
|
1878
|
+
this.filterCities();
|
|
1879
|
+
});
|
|
671
1880
|
}
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
}
|
|
676
|
-
return (this.selectedIndex === index ? 'in' : 'out');
|
|
1881
|
+
ngOnDestroy() {
|
|
1882
|
+
this._onDestroy.next();
|
|
1883
|
+
this._onDestroy.complete();
|
|
677
1884
|
}
|
|
678
|
-
|
|
679
|
-
if (this.
|
|
680
|
-
|
|
681
|
-
}
|
|
682
|
-
if (this.images && this.images.length) {
|
|
683
|
-
this.timer = window.setInterval(() => this.changed('next'), 5000);
|
|
1885
|
+
filterCities() {
|
|
1886
|
+
if (!this.options) {
|
|
1887
|
+
return;
|
|
684
1888
|
}
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
1889
|
+
let filter = this.optionFilterControl.value;
|
|
1890
|
+
if (!filter) {
|
|
1891
|
+
this.filteredOptions.next(this.options.slice());
|
|
1892
|
+
return;
|
|
689
1893
|
}
|
|
690
1894
|
else {
|
|
691
|
-
|
|
1895
|
+
filter = filter.toLowerCase();
|
|
1896
|
+
}
|
|
1897
|
+
this.filteredOptions.next(this.options
|
|
1898
|
+
.filter(option => option.name.toLowerCase().indexOf(filter) > -1));
|
|
1899
|
+
}
|
|
1900
|
+
setInitialSelectedOption() {
|
|
1901
|
+
if (this.value) {
|
|
1902
|
+
const city = this.options.find((c) => c.id === this.value);
|
|
1903
|
+
if (!city) {
|
|
1904
|
+
this.selectFirstOption();
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
else if (this.options.length > 0 && this.selectFirstOptionByDefault) {
|
|
1908
|
+
this.selectFirstOption();
|
|
692
1909
|
}
|
|
693
1910
|
}
|
|
694
|
-
|
|
695
|
-
this.
|
|
696
|
-
this[action]();
|
|
697
|
-
this.states[this.selectedIndex] = 'in';
|
|
1911
|
+
selectFirstOption() {
|
|
1912
|
+
this.value = this.options[0].id;
|
|
698
1913
|
}
|
|
699
|
-
static { this.ɵfac = function
|
|
700
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
701
|
-
i0.ɵɵviewQuery(_c0$
|
|
1914
|
+
static { this.ɵfac = function SelectWithSearchComponent_Factory(t) { return new (t || SelectWithSearchComponent)(); }; }
|
|
1915
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectWithSearchComponent, selectors: [["app-select-with-search"]], viewQuery: function SelectWithSearchComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1916
|
+
i0.ɵɵviewQuery(_c0$2, 7);
|
|
702
1917
|
} if (rf & 2) {
|
|
703
1918
|
let _t;
|
|
704
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
|
705
|
-
} }, inputs: {
|
|
706
|
-
i0.ɵɵ
|
|
707
|
-
i0.ɵɵ
|
|
1919
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.singleSelect = _t.first);
|
|
1920
|
+
} }, inputs: { label: "label", selectFirstOptionByDefault: "selectFirstOptionByDefault", options: "options", value: "value" }, outputs: { valueChanged: "valueChanged" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c1, decls: 12, vars: 15, consts: [["subscriptSizing", "dynamic", 1, "full-width-field", "header", "dense"], [3, "valueChange", "value", "disabled"], [3, "formControl", "placeholderLabel", "noEntriesFoundLabel"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function SelectWithSearchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1921
|
+
i0.ɵɵprojectionDef();
|
|
1922
|
+
i0.ɵɵelementStart(0, "mat-form-field", 0);
|
|
1923
|
+
i0.ɵɵprojection(1);
|
|
1924
|
+
i0.ɵɵelementStart(2, "mat-label");
|
|
1925
|
+
i0.ɵɵtext(3);
|
|
1926
|
+
i0.ɵɵpipe(4, "translate");
|
|
1927
|
+
i0.ɵɵelementEnd();
|
|
1928
|
+
i0.ɵɵelementStart(5, "mat-select", 1);
|
|
1929
|
+
i0.ɵɵtwoWayListener("valueChange", function SelectWithSearchComponent_Template_mat_select_valueChange_5_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return $event; });
|
|
1930
|
+
i0.ɵɵelementStart(6, "mat-option");
|
|
1931
|
+
i0.ɵɵelement(7, "ngx-mat-select-search", 2);
|
|
1932
|
+
i0.ɵɵpipe(8, "translate");
|
|
1933
|
+
i0.ɵɵpipe(9, "translate");
|
|
708
1934
|
i0.ɵɵelementEnd();
|
|
1935
|
+
i0.ɵɵtemplate(10, SelectWithSearchComponent_mat_option_10_Template, 2, 2, "mat-option", 3);
|
|
1936
|
+
i0.ɵɵpipe(11, "async");
|
|
1937
|
+
i0.ɵɵelementEnd()();
|
|
709
1938
|
} if (rf & 2) {
|
|
1939
|
+
i0.ɵɵadvance(3);
|
|
1940
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, ctx.label));
|
|
710
1941
|
i0.ɵɵadvance(2);
|
|
711
|
-
i0.ɵɵ
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
]),
|
|
719
|
-
transition('out => in', [
|
|
720
|
-
style({ transform: 'translateY(100%)' }),
|
|
721
|
-
animate('500ms ease-in')
|
|
722
|
-
]),
|
|
723
|
-
]),
|
|
724
|
-
trigger('slideLeftRight', [
|
|
725
|
-
state('in', style({ transform: 'translateX(0%)' })),
|
|
726
|
-
state('out', style({ transform: 'translateX(-100%)' })),
|
|
727
|
-
transition('in => out', [
|
|
728
|
-
animate('500ms ease-in')
|
|
729
|
-
]),
|
|
730
|
-
transition('out => in', [
|
|
731
|
-
style({ transform: 'translateX(100%)' }),
|
|
732
|
-
animate('500ms ease-in')
|
|
733
|
-
]),
|
|
734
|
-
]),
|
|
735
|
-
] } }); }
|
|
1942
|
+
i0.ɵɵtwoWayProperty("value", ctx.value);
|
|
1943
|
+
i0.ɵɵproperty("disabled", ctx.isDisabled);
|
|
1944
|
+
i0.ɵɵadvance(2);
|
|
1945
|
+
i0.ɵɵproperty("formControl", ctx.optionFilterControl)("placeholderLabel", i0.ɵɵpipeBind1(8, 9, "search"))("noEntriesFoundLabel", i0.ɵɵpipeBind1(9, 11, "noResult"));
|
|
1946
|
+
i0.ɵɵadvance(3);
|
|
1947
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(11, 13, ctx.filteredOptions));
|
|
1948
|
+
} }, dependencies: [NgForOf, AsyncPipe, MatSelectModule, i2$3.MatFormField, i2$3.MatLabel, i2$4.MatSelect, i3.MatOption, TranslateModule, i2.TranslatePipe, MatFormFieldModule, ReactiveFormsModule, i5.NgControlStatus, i5.FormControlDirective, FormsModule, NgxMatSelectSearchModule, i6.MatSelectSearchComponent] }); }
|
|
736
1949
|
}
|
|
737
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
1950
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectWithSearchComponent, [{
|
|
738
1951
|
type: Component,
|
|
739
|
-
args: [{ selector: '
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
animate('500ms ease-in')
|
|
745
|
-
]),
|
|
746
|
-
transition('out => in', [
|
|
747
|
-
style({ transform: 'translateY(100%)' }),
|
|
748
|
-
animate('500ms ease-in')
|
|
749
|
-
]),
|
|
750
|
-
]),
|
|
751
|
-
trigger('slideLeftRight', [
|
|
752
|
-
state('in', style({ transform: 'translateX(0%)' })),
|
|
753
|
-
state('out', style({ transform: 'translateX(-100%)' })),
|
|
754
|
-
transition('in => out', [
|
|
755
|
-
animate('500ms ease-in')
|
|
756
|
-
]),
|
|
757
|
-
transition('out => in', [
|
|
758
|
-
style({ transform: 'translateX(100%)' }),
|
|
759
|
-
animate('500ms ease-in')
|
|
760
|
-
]),
|
|
761
|
-
]),
|
|
762
|
-
], template: "<div #container class=\"slideshow\">\n <div *ngFor=\"let url of images; let index = index;\" [@slideLeftRight]=\"getState(index)\">\n <img [src]=\"url\" />\n </div>\n</div>", styles: [".slideshow{margin:0 auto;position:relative;overflow:hidden}.slideshow>div{width:100%;height:100%;position:absolute}img{max-height:100%;max-width:100%;margin:0 auto;display:block}\n"] }]
|
|
763
|
-
}], null, { container: [{
|
|
764
|
-
type: ViewChild,
|
|
765
|
-
args: ['container', { static: true }]
|
|
766
|
-
}], height: [{
|
|
1952
|
+
args: [{ selector: 'app-select-with-search', standalone: true, imports: [NgForOf, AsyncPipe, MatError, MatSelectModule, TranslateModule, MatFormFieldModule, ReactiveFormsModule, FormsModule, NgxMatSelectSearchModule], template: "<mat-form-field class=\"full-width-field header dense\" subscriptSizing=\"dynamic\">\r\n <ng-content></ng-content>\r\n <mat-label>{{ label | translate }}</mat-label>\r\n <mat-select [(value)]=\"value\" [disabled]=\"isDisabled\">\r\n <mat-option>\r\n <ngx-mat-select-search [formControl]=\"optionFilterControl\" [placeholderLabel]=\"'search' | translate\"\r\n [noEntriesFoundLabel]=\"'noResult' | translate\">\r\n </ngx-mat-select-search>\r\n </mat-option>\r\n <mat-option *ngFor=\"let option of filteredOptions | async\" [value]=\"option.id\">\r\n {{option.name}}\r\n </mat-option>\r\n </mat-select>\r\n\r\n</mat-form-field>" }]
|
|
1953
|
+
}], null, { label: [{
|
|
1954
|
+
type: Input,
|
|
1955
|
+
args: [{ required: true }]
|
|
1956
|
+
}], selectFirstOptionByDefault: [{
|
|
767
1957
|
type: Input
|
|
768
|
-
}],
|
|
1958
|
+
}], singleSelect: [{
|
|
1959
|
+
type: ViewChild,
|
|
1960
|
+
args: ['singleSelect', { static: true }]
|
|
1961
|
+
}], valueChanged: [{
|
|
1962
|
+
type: Output
|
|
1963
|
+
}], options: [{
|
|
769
1964
|
type: Input
|
|
770
|
-
}],
|
|
1965
|
+
}], value: [{
|
|
771
1966
|
type: Input
|
|
772
1967
|
}] }); })();
|
|
773
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(
|
|
774
|
-
|
|
775
|
-
class CaucaMaterialModule {
|
|
776
|
-
static { this.ɵfac = function CaucaMaterialModule_Factory(t) { return new (t || CaucaMaterialModule)(); }; }
|
|
777
|
-
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CaucaMaterialModule }); }
|
|
778
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
779
|
-
CaucaCoreForChildModule,
|
|
780
|
-
FontAwesomeModule,
|
|
781
|
-
FormsModule,
|
|
782
|
-
ReactiveFormsModule,
|
|
783
|
-
MatButtonModule,
|
|
784
|
-
MatFormFieldModule,
|
|
785
|
-
MatIconModule,
|
|
786
|
-
MatInputModule,
|
|
787
|
-
MatTabsModule,
|
|
788
|
-
MatDialogModule] }); }
|
|
789
|
-
}
|
|
790
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialModule, [{
|
|
791
|
-
type: NgModule,
|
|
792
|
-
args: [{
|
|
793
|
-
declarations: [
|
|
794
|
-
CaucaMaterialComponent,
|
|
795
|
-
CaucaInputFileComponent,
|
|
796
|
-
CaucaInputMultipleLangueComponent,
|
|
797
|
-
CaucaMenuSidebarComponent,
|
|
798
|
-
CaucaMenuVerticalComponent,
|
|
799
|
-
CaucaSimpleDialogComponent,
|
|
800
|
-
CaucaSlideshowComponent,
|
|
801
|
-
],
|
|
802
|
-
imports: [
|
|
803
|
-
CommonModule,
|
|
804
|
-
CaucaCoreForChildModule,
|
|
805
|
-
FontAwesomeModule,
|
|
806
|
-
FormsModule,
|
|
807
|
-
ReactiveFormsModule,
|
|
808
|
-
MatButtonModule,
|
|
809
|
-
MatFormFieldModule,
|
|
810
|
-
MatIconModule,
|
|
811
|
-
MatInputModule,
|
|
812
|
-
MatTabsModule,
|
|
813
|
-
MatDialogModule,
|
|
814
|
-
],
|
|
815
|
-
exports: [
|
|
816
|
-
CaucaMaterialComponent,
|
|
817
|
-
CaucaInputFileComponent,
|
|
818
|
-
CaucaInputMultipleLangueComponent,
|
|
819
|
-
CaucaMenuSidebarComponent,
|
|
820
|
-
CaucaMenuVerticalComponent,
|
|
821
|
-
CaucaSimpleDialogComponent,
|
|
822
|
-
CaucaSlideshowComponent,
|
|
823
|
-
],
|
|
824
|
-
}]
|
|
825
|
-
}], null, null); })();
|
|
826
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CaucaMaterialModule, { declarations: [CaucaMaterialComponent,
|
|
827
|
-
CaucaInputFileComponent,
|
|
828
|
-
CaucaInputMultipleLangueComponent,
|
|
829
|
-
CaucaMenuSidebarComponent,
|
|
830
|
-
CaucaMenuVerticalComponent,
|
|
831
|
-
CaucaSimpleDialogComponent,
|
|
832
|
-
CaucaSlideshowComponent], imports: [CommonModule,
|
|
833
|
-
CaucaCoreForChildModule,
|
|
834
|
-
FontAwesomeModule,
|
|
835
|
-
FormsModule,
|
|
836
|
-
ReactiveFormsModule,
|
|
837
|
-
MatButtonModule,
|
|
838
|
-
MatFormFieldModule,
|
|
839
|
-
MatIconModule,
|
|
840
|
-
MatInputModule,
|
|
841
|
-
MatTabsModule,
|
|
842
|
-
MatDialogModule], exports: [CaucaMaterialComponent,
|
|
843
|
-
CaucaInputFileComponent,
|
|
844
|
-
CaucaInputMultipleLangueComponent,
|
|
845
|
-
CaucaMenuSidebarComponent,
|
|
846
|
-
CaucaMenuVerticalComponent,
|
|
847
|
-
CaucaSimpleDialogComponent,
|
|
848
|
-
CaucaSlideshowComponent] }); })();
|
|
1968
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectWithSearchComponent, { className: "SelectWithSearchComponent", filePath: "lib\\inputs\\select-with-search\\select-with-search.component.ts", lineNumber: 22 }); })();
|
|
849
1969
|
|
|
850
1970
|
class MobileTimePickerComponent {
|
|
851
1971
|
constructor() {
|
|
@@ -891,7 +2011,7 @@ class MobileTimePickerComponent {
|
|
|
891
2011
|
} if (rf & 2) {
|
|
892
2012
|
i0.ɵɵadvance(4);
|
|
893
2013
|
i0.ɵɵtextInterpolate1("\n", (ctx.value < 10 ? "0" : "") + ctx.value, "\n");
|
|
894
|
-
} }, dependencies: [MatButtonModule, i4.MatIconButton, MatIconModule,
|
|
2014
|
+
} }, dependencies: [MatButtonModule, i4$1.MatIconButton, MatIconModule, i1$1.MatIcon, MatFormFieldModule,
|
|
895
2015
|
MatInputModule], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:70px;font-family:var(--mat-form-field-container-text-font)}.mat-mdc-icon-button[_ngcontent-%COMP%]{height:24px;width:24px;line-height:24px;padding:0}"] }); }
|
|
896
2016
|
}
|
|
897
2017
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MobileTimePickerComponent, [{
|
|
@@ -911,7 +2031,7 @@ class MobileTimePickerComponent {
|
|
|
911
2031
|
}], valueChange: [{
|
|
912
2032
|
type: Output
|
|
913
2033
|
}] }); })();
|
|
914
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MobileTimePickerComponent, { className: "MobileTimePickerComponent", filePath: "lib\\cauca-date-time-picker\\components\\mobile-time-picker\\mobile-time-picker.component.ts", lineNumber: 19 }); })();
|
|
2034
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MobileTimePickerComponent, { className: "MobileTimePickerComponent", filePath: "lib\\inputs\\cauca-date-time-picker\\components\\mobile-time-picker\\mobile-time-picker.component.ts", lineNumber: 19 }); })();
|
|
915
2035
|
|
|
916
2036
|
function DesktopTimePickerComponent_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
917
2037
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -940,7 +2060,7 @@ class DesktopTimePickerComponent {
|
|
|
940
2060
|
i0.ɵɵproperty("disabled", ctx.disabled == null ? null : ctx.disabled.all);
|
|
941
2061
|
i0.ɵɵadvance();
|
|
942
2062
|
i0.ɵɵrepeater(ctx.options);
|
|
943
|
-
} }, dependencies: [MatListModule, i1$
|
|
2063
|
+
} }, dependencies: [MatListModule, i1$5.MatList, i1$5.MatListItem], styles: ["mat-list[_ngcontent-%COMP%]{width:50px;padding:0}mat-list[_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]:not(.mat-mdc-list-item-interactive){cursor:pointer} > div[_ngcontent-%COMP%]::-webkit-scrollbar{display:none} .mdc-list-item__primary-text{font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)} .mdc-list-item--activated{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color)} .mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mat-datepicker-calendar-date-selected-state-text-color)}"] }); }
|
|
944
2064
|
}
|
|
945
2065
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DesktopTimePickerComponent, [{
|
|
946
2066
|
type: Component,
|
|
@@ -956,9 +2076,9 @@ class DesktopTimePickerComponent {
|
|
|
956
2076
|
}], valueChange: [{
|
|
957
2077
|
type: Output
|
|
958
2078
|
}] }); })();
|
|
959
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DesktopTimePickerComponent, { className: "DesktopTimePickerComponent", filePath: "lib\\cauca-date-time-picker\\components\\desktop-time-picker\\desktop-time-picker.component.ts", lineNumber: 13 }); })();
|
|
2079
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DesktopTimePickerComponent, { className: "DesktopTimePickerComponent", filePath: "lib\\inputs\\cauca-date-time-picker\\components\\desktop-time-picker\\desktop-time-picker.component.ts", lineNumber: 13 }); })();
|
|
960
2080
|
|
|
961
|
-
const _c0 = (a0, a1) => ({ all: a0, someOptions: a1 });
|
|
2081
|
+
const _c0$1 = (a0, a1) => ({ all: a0, someOptions: a1 });
|
|
962
2082
|
function DialogDateTimePickerComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
963
2083
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
964
2084
|
i0.ɵɵelementStart(0, "div", 14)(1, "cauca-desktop-time-picker", 15);
|
|
@@ -967,7 +2087,7 @@ function DialogDateTimePickerComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
967
2087
|
} if (rf & 2) {
|
|
968
2088
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
969
2089
|
i0.ɵɵadvance();
|
|
970
|
-
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0, ctx_r1.disabled.hours, ctx_r1.disabled.someHours))("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
|
|
2090
|
+
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$1, ctx_r1.disabled.hours, ctx_r1.disabled.someHours))("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
|
|
971
2091
|
} }
|
|
972
2092
|
function DialogDateTimePickerComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
973
2093
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -992,7 +2112,7 @@ function DialogDateTimePickerComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
992
2112
|
} if (rf & 2) {
|
|
993
2113
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
994
2114
|
i0.ɵɵadvance();
|
|
995
|
-
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0, ctx_r1.disabled.minutes, ctx_r1.disabled.someMinutes))("options", ctx_r1.minutes)("value", ctx_r1.selectedMinute);
|
|
2115
|
+
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$1, ctx_r1.disabled.minutes, ctx_r1.disabled.someMinutes))("options", ctx_r1.minutes)("value", ctx_r1.selectedMinute);
|
|
996
2116
|
} }
|
|
997
2117
|
function DialogDateTimePickerComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
998
2118
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
@@ -1017,7 +2137,7 @@ function DialogDateTimePickerComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
1017
2137
|
} if (rf & 2) {
|
|
1018
2138
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
1019
2139
|
i0.ɵɵadvance();
|
|
1020
|
-
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0, ctx_r1.disabled.seconds, ctx_r1.disabled.someSeconds))("options", ctx_r1.seconds)("value", ctx_r1.selectedSecond);
|
|
2140
|
+
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$1, ctx_r1.disabled.seconds, ctx_r1.disabled.someSeconds))("options", ctx_r1.seconds)("value", ctx_r1.selectedSecond);
|
|
1021
2141
|
} }
|
|
1022
2142
|
function DialogDateTimePickerComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
1023
2143
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -1216,7 +2336,7 @@ class DialogDateTimePickerComponent {
|
|
|
1216
2336
|
this.minutes = this.minutes.filter(minute => minute % this.step.minutes === 0);
|
|
1217
2337
|
this.seconds = this.seconds.filter(seconde => seconde % this.step.seconds === 0);
|
|
1218
2338
|
}
|
|
1219
|
-
static { this.ɵfac = function DialogDateTimePickerComponent_Factory(t) { return new (t || DialogDateTimePickerComponent)(i0.ɵɵdirectiveInject(i1$
|
|
2339
|
+
static { this.ɵfac = function DialogDateTimePickerComponent_Factory(t) { return new (t || DialogDateTimePickerComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
|
|
1220
2340
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogDateTimePickerComponent, selectors: [["cauca-dialog-date-time-picker"]], hostBindings: function DialogDateTimePickerComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
1221
2341
|
i0.ɵɵlistener("resize", function DialogDateTimePickerComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
|
|
1222
2342
|
} }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 22, vars: 21, consts: [["mat-dialog-content", ""], [1, "date-time-picker", 3, "ngClass"], [1, "calendar"], [3, "selectedChange", "minDate", "maxDate", "selected"], ["class", "hours", 4, "ngIf"], ["class", "hour-and-minute-separator", 4, "ngIf"], ["class", "minutes", 4, "ngIf"], ["class", "minute-and-second-separator", 4, "ngIf"], ["class", "seconds", 4, "ngIf"], ["mat-dialog-actions", "", "align", "end"], ["mat-stroked-button", "", 3, "click", 4, "ngIf"], ["mat-stroked-button", "", 3, "click"], [4, "ngIf"], ["color", "primary", "mat-raised-button", "", "cdkFocusInitial", "", 3, "click"], [1, "hours"], [3, "valueChange", "disabled", "options", "value"], [3, "valueChange", "options", "value"], [1, "hour-and-minute-separator"], [1, "minutes"], [1, "minute-and-second-separator"], [1, "seconds"]], template: function DialogDateTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1270,32 +2390,34 @@ class DialogDateTimePickerComponent {
|
|
|
1270
2390
|
i0.ɵɵproperty("ngIf", ctx.showButtonIcons);
|
|
1271
2391
|
i0.ɵɵadvance();
|
|
1272
2392
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 19, "material.ok"), " ");
|
|
1273
|
-
} }, dependencies: [
|
|
2393
|
+
} }, dependencies: [MatButtonModule, i4$1.MatButton, MatDatepickerModule, i3$1.MatCalendar, MatIconModule, i1$1.MatIcon, MatListModule,
|
|
1274
2394
|
MatNativeDateModule,
|
|
1275
2395
|
MobileTimePickerComponent,
|
|
1276
|
-
DesktopTimePickerComponent
|
|
2396
|
+
DesktopTimePickerComponent,
|
|
2397
|
+
NgClass,
|
|
2398
|
+
TranslateModule, i2.TranslatePipe], styles: ["div[mat-dialog-actions][_ngcontent-%COMP%]{padding:8px;border-top:1px solid #ccc}div[mat-dialog-actions][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:2px}.date-time-picker[_ngcontent-%COMP%]{display:grid;grid-template-areas:\"calendar hours minutes seconds\";height:350px;overflow:hidden;justify-content:center}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{overflow:auto;flex:1;max-width:50px;scrollbar-width:none;border-left:1px solid #ccc}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{flex:4;max-width:290px;border-left:none}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child mat-calendar[_ngcontent-%COMP%]{width:290px;height:350px}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.date-time-picker[_ngcontent-%COMP%] .mdc-list-item__primary-text{font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.date-time-picker[_ngcontent-%COMP%] .mdc-list-item--activated{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color)}.date-time-picker[_ngcontent-%COMP%] .mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.calendar[_ngcontent-%COMP%]{grid-area:calendar}.hours[_ngcontent-%COMP%]{grid-area:hours}.minutes[_ngcontent-%COMP%]{grid-area:minutes}.seconds[_ngcontent-%COMP%]{grid-area:seconds}.hour-and-minute-separator[_ngcontent-%COMP%]{grid-area:hour-and-minute-separator;display:flex;align-items:center;justify-content:center;font-weight:700}.minute-and-second-separator[_ngcontent-%COMP%]{grid-area:minute-and-second-separator;display:flex;align-items:center;justify-content:center;font-weight:700}@media only screen and (max-width: 555px){.show-seconds[_ngcontent-%COMP%]{grid-template-areas:\"calendar calendar calendar calendar calendar calendar calendar\" \". hours hour-and-minute-separator minutes minute-and-second-separator seconds .\";grid-template-columns:auto 40px 2px 40px 2px 40px auto}.hide-seconds[_ngcontent-%COMP%]{grid-template-areas:\"calendar calendar calendar calendar calendar\" \". hours hour-and-minute-separator minutes .\";grid-template-columns:auto 40px 2px 40px auto}.date-time-picker[_ngcontent-%COMP%]{grid-template-rows:auto auto;height:450px}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-left:none}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){height:70px}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{overflow:initial;flex:4;max-width:290px;border-left:none}}"] }); }
|
|
1277
2399
|
}
|
|
1278
2400
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogDateTimePickerComponent, [{
|
|
1279
2401
|
type: Component,
|
|
1280
2402
|
args: [{ selector: 'cauca-dialog-date-time-picker', standalone: true, imports: [
|
|
1281
|
-
CommonModule,
|
|
1282
|
-
CaucaCoreForChildModule,
|
|
1283
2403
|
MatButtonModule,
|
|
1284
2404
|
MatDatepickerModule,
|
|
1285
2405
|
MatIconModule,
|
|
1286
2406
|
MatListModule,
|
|
1287
2407
|
MatNativeDateModule,
|
|
1288
2408
|
MobileTimePickerComponent,
|
|
1289
|
-
DesktopTimePickerComponent
|
|
2409
|
+
DesktopTimePickerComponent,
|
|
2410
|
+
NgClass,
|
|
2411
|
+
TranslateModule
|
|
1290
2412
|
], template: "<div mat-dialog-content>\n <div [ngClass]=\"showSeconds ? 'show-seconds' : 'hide-seconds'\" class=\"date-time-picker\">\n <div class=\"calendar\">\n <mat-calendar\n [minDate]=\"minimumDate\"\n [maxDate]=\"maximumDate\"\n [selected]=\"selectedDate\"\n (selectedChange)=\"dateChanged($event)\"\n ></mat-calendar>\n </div>\n\n <div class=\"hours\" *ngIf=\"!showMobileUi\">\n <cauca-desktop-time-picker [disabled]=\"{all: disabled.hours, someOptions: disabled.someHours}\" (valueChange)=\"hourChanged($event)\" [options]=\"hours\" [value]=\"selectedHour\"/>\n </div>\n <div class=\"hours\" *ngIf=\"showMobileUi\">\n <cauca-mobile-time-picker (valueChange)=\"hourChanged($event)\" [options]=\"hours\" [value]=\"selectedHour\" />\n </div>\n\n <div class=\"hour-and-minute-separator\" *ngIf=\"showMobileUi\">:</div>\n\n <div class=\"minutes\" *ngIf=\"!showMobileUi\">\n <cauca-desktop-time-picker [disabled]=\"{all: disabled.minutes, someOptions: disabled.someMinutes}\" (valueChange)=\"minuteChanged($event)\" [options]=\"minutes\" [value]=\"selectedMinute\"/>\n </div>\n <div class=\"minutes\" *ngIf=\"showMobileUi\">\n <cauca-mobile-time-picker (valueChange)=\"minuteChanged($event)\" [options]=\"minutes\" [value]=\"selectedMinute\" />\n </div>\n\n <div class=\"minute-and-second-separator\" *ngIf=\"showSeconds && showMobileUi\">:</div>\n <div class=\"seconds\" *ngIf=\"showSeconds && !showMobileUi\">\n <cauca-desktop-time-picker [disabled]=\"{all: disabled.seconds, someOptions: disabled.someSeconds}\" (valueChange)=\"secondChanged($event)\" [options]=\"seconds\" [value]=\"selectedSecond\"/>\n </div>\n <div class=\"seconds\" *ngIf=\"showSeconds && showMobileUi\">\n <cauca-mobile-time-picker (valueChange)=\"secondChanged($event)\" [options]=\"seconds\" [value]=\"selectedSecond\" />\n </div>\n </div>\n</div>\n\n<div mat-dialog-actions align=\"end\">\n <button mat-stroked-button (click)=\"clear()\" *ngIf=\"showClearButton\">\n <mat-icon *ngIf=\"showButtonIcons\">clear</mat-icon>\n {{'material.clear' | translate}}\n </button>\n <button mat-stroked-button (click)=\"cancel()\">\n <mat-icon *ngIf=\"showButtonIcons\">cancel</mat-icon>\n {{'material.cancel' | translate}}\n </button>\n <button color=\"primary\" mat-raised-button cdkFocusInitial (click)=\"confirm()\">\n <mat-icon *ngIf=\"showButtonIcons\">check</mat-icon>\n {{'material.ok' | translate}}\n </button>\n</div>", styles: ["div[mat-dialog-actions]{padding:8px;border-top:1px solid #ccc}div[mat-dialog-actions] button{margin:2px}.date-time-picker{display:grid;grid-template-areas:\"calendar hours minutes seconds\";height:350px;overflow:hidden;justify-content:center}.date-time-picker>div{overflow:auto;flex:1;max-width:50px;scrollbar-width:none;border-left:1px solid #ccc}.date-time-picker>div:first-child{flex:4;max-width:290px;border-left:none}.date-time-picker>div:first-child mat-calendar{width:290px;height:350px}.date-time-picker>div::-webkit-scrollbar{display:none}.date-time-picker ::ng-deep .mdc-list-item__primary-text{font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.date-time-picker ::ng-deep .mdc-list-item--activated{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color)}.date-time-picker ::ng-deep .mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.calendar{grid-area:calendar}.hours{grid-area:hours}.minutes{grid-area:minutes}.seconds{grid-area:seconds}.hour-and-minute-separator{grid-area:hour-and-minute-separator;display:flex;align-items:center;justify-content:center;font-weight:700}.minute-and-second-separator{grid-area:minute-and-second-separator;display:flex;align-items:center;justify-content:center;font-weight:700}@media only screen and (max-width: 555px){.show-seconds{grid-template-areas:\"calendar calendar calendar calendar calendar calendar calendar\" \". hours hour-and-minute-separator minutes minute-and-second-separator seconds .\";grid-template-columns:auto 40px 2px 40px 2px 40px auto}.hide-seconds{grid-template-areas:\"calendar calendar calendar calendar calendar\" \". hours hour-and-minute-separator minutes .\";grid-template-columns:auto 40px 2px 40px auto}.date-time-picker{grid-template-rows:auto auto;height:450px}.date-time-picker>div{border-left:none}.date-time-picker>div:not(:first-child){height:70px}.date-time-picker>div:first-child{overflow:initial;flex:4;max-width:290px;border-left:none}}\n"] }]
|
|
1291
|
-
}], () => [{ type: i1$
|
|
2413
|
+
}], () => [{ type: i1$2.MatDialogRef }, { type: undefined, decorators: [{
|
|
1292
2414
|
type: Inject,
|
|
1293
2415
|
args: [MAT_DIALOG_DATA]
|
|
1294
2416
|
}] }], { onResize: [{
|
|
1295
2417
|
type: HostListener,
|
|
1296
2418
|
args: ['window:resize', ['$event']]
|
|
1297
2419
|
}] }); })();
|
|
1298
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DialogDateTimePickerComponent, { className: "DialogDateTimePickerComponent", filePath: "lib\\cauca-date-time-picker\\components\\dialog-date-time-picker\\dialog-date-time-picker.component.ts", lineNumber: 31 }); })();
|
|
2420
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DialogDateTimePickerComponent, { className: "DialogDateTimePickerComponent", filePath: "lib\\inputs\\cauca-date-time-picker\\components\\dialog-date-time-picker\\dialog-date-time-picker.component.ts", lineNumber: 31 }); })();
|
|
1299
2421
|
|
|
1300
2422
|
class CaucaDateTimePickerComponent {
|
|
1301
2423
|
constructor(elementRef, dialog, datePipe) {
|
|
@@ -1371,7 +2493,7 @@ class CaucaDateTimePickerComponent {
|
|
|
1371
2493
|
bottom: `${bottom}px`,
|
|
1372
2494
|
};
|
|
1373
2495
|
}
|
|
1374
|
-
static { this.ɵfac = function CaucaDateTimePickerComponent_Factory(t) { return new (t || CaucaDateTimePickerComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$
|
|
2496
|
+
static { this.ɵfac = function CaucaDateTimePickerComponent_Factory(t) { return new (t || CaucaDateTimePickerComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$2.MatDialog), i0.ɵɵdirectiveInject(i1$4.DatePipe)); }; }
|
|
1375
2497
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaDateTimePickerComponent, selectors: [["cauca-date-time-picker"]], inputs: { stepHours: "stepHours", stepMinutes: "stepMinutes", stepSecondes: "stepSecondes", minimumDate: "minimumDate", maximumDate: "maximumDate", showSeconds: "showSeconds", showFormat: "showFormat", showClearButton: "showClearButton", showButtonIcons: "showButtonIcons", value: "value" }, outputs: { selectedChange: "selectedChange" }, standalone: true, features: [i0.ɵɵProvidersFeature([
|
|
1376
2498
|
DatePipe,
|
|
1377
2499
|
]), i0.ɵɵStandaloneFeature], decls: 5, vars: 1, consts: [["matInput", "", "readonly", "readonly", 3, "value"], ["matSuffix", "", "mat-icon-button", "", 3, "click"]], template: function CaucaDateTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1385,7 +2507,7 @@ class CaucaDateTimePickerComponent {
|
|
|
1385
2507
|
} if (rf & 2) {
|
|
1386
2508
|
i0.ɵɵadvance();
|
|
1387
2509
|
i0.ɵɵproperty("value", ctx.stringDate);
|
|
1388
|
-
} }, dependencies: [MatButtonModule, i4.MatIconButton, MatIconModule,
|
|
2510
|
+
} }, dependencies: [MatButtonModule, i4$1.MatIconButton, MatIconModule, i1$1.MatIcon, MatInputModule, i4.MatInput, i2$3.MatFormField, i2$3.MatSuffix], styles: ["[_nghost-%COMP%]{display:block}mat-form-field[_ngcontent-%COMP%]{width:100%}"] }); }
|
|
1389
2511
|
}
|
|
1390
2512
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaDateTimePickerComponent, [{
|
|
1391
2513
|
type: Component,
|
|
@@ -1396,7 +2518,7 @@ class CaucaDateTimePickerComponent {
|
|
|
1396
2518
|
], providers: [
|
|
1397
2519
|
DatePipe,
|
|
1398
2520
|
], template: "<mat-form-field>\n <input matInput [value]=\"stringDate\" readonly=\"readonly\">\n <button matSuffix mat-icon-button (click)=\"showDialog()\">\n <mat-icon>calendar_month</mat-icon>\n </button>\n</mat-form-field>", styles: [":host{display:block}mat-form-field{width:100%}\n"] }]
|
|
1399
|
-
}], () => [{ type: i0.ElementRef }, { type: i1$
|
|
2521
|
+
}], () => [{ type: i0.ElementRef }, { type: i1$2.MatDialog }, { type: i1$4.DatePipe }], { stepHours: [{
|
|
1400
2522
|
type: Input
|
|
1401
2523
|
}], stepMinutes: [{
|
|
1402
2524
|
type: Input
|
|
@@ -1419,7 +2541,225 @@ class CaucaDateTimePickerComponent {
|
|
|
1419
2541
|
}], value: [{
|
|
1420
2542
|
type: Input
|
|
1421
2543
|
}] }); })();
|
|
1422
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaDateTimePickerComponent, { className: "CaucaDateTimePickerComponent", filePath: "lib\\cauca-date-time-picker\\cauca-date-time-picker.component.ts", lineNumber: 24 }); })();
|
|
2544
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaDateTimePickerComponent, { className: "CaucaDateTimePickerComponent", filePath: "lib\\inputs\\cauca-date-time-picker\\cauca-date-time-picker.component.ts", lineNumber: 24 }); })();
|
|
2545
|
+
|
|
2546
|
+
const _c0 = ["*"];
|
|
2547
|
+
function SnackBarComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
2548
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
2549
|
+
i0.ɵɵelementStart(0, "app-stroked-button", 7);
|
|
2550
|
+
i0.ɵɵlistener("click", function SnackBarComponent_Conditional_10_Template_app_stroked_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.buttonClick.emit()); });
|
|
2551
|
+
i0.ɵɵelementEnd();
|
|
2552
|
+
} if (rf & 2) {
|
|
2553
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
2554
|
+
i0.ɵɵproperty("color", ctx_r1.buttonColor())("label", ctx_r1.buttonLabel());
|
|
2555
|
+
} }
|
|
2556
|
+
function SnackBarComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
2557
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
2558
|
+
i0.ɵɵelementStart(0, "app-icon-button", 8);
|
|
2559
|
+
i0.ɵɵlistener("click", function SnackBarComponent_Conditional_11_Template_app_icon_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closeClick.emit()); });
|
|
2560
|
+
i0.ɵɵelementEnd();
|
|
2561
|
+
} }
|
|
2562
|
+
class SnackBarComponent {
|
|
2563
|
+
constructor() {
|
|
2564
|
+
this.icon = input('info_outlined');
|
|
2565
|
+
this.title = input('');
|
|
2566
|
+
this.showButton = input(false);
|
|
2567
|
+
this.buttonLabel = input('');
|
|
2568
|
+
this.showCloseButton = input(false);
|
|
2569
|
+
this.type = input('info');
|
|
2570
|
+
this.variant = input('standard');
|
|
2571
|
+
this.appearanceClasses = computed(() => `${this.type()} ${this.variant()}`);
|
|
2572
|
+
this.buttonColor = computed(() => this.variant() === 'filled' ? 'white' : undefined);
|
|
2573
|
+
this.closeClick = new EventEmitter();
|
|
2574
|
+
this.buttonClick = new EventEmitter();
|
|
2575
|
+
}
|
|
2576
|
+
static { this.ɵfac = function SnackBarComponent_Factory(t) { return new (t || SnackBarComponent)(); }; }
|
|
2577
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SnackBarComponent, selectors: [["app-snackbar"]], inputs: { icon: [1, "icon"], title: [1, "title"], showButton: [1, "showButton"], buttonLabel: [1, "buttonLabel"], showCloseButton: [1, "showCloseButton"], type: [1, "type"], variant: [1, "variant"] }, outputs: { closeClick: "closeClick", buttonClick: "buttonClick" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0, decls: 12, vars: 7, consts: [[1, "container", 3, "ngClass"], [1, "icon-container"], [1, "text-container"], [1, "title", "alert-title"], [1, "message", "body2"], [3, "color", "label"], ["icon", "close"], [3, "click", "color", "label"], ["icon", "close", 3, "click"]], template: function SnackBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2578
|
+
i0.ɵɵprojectionDef();
|
|
2579
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "mat-icon");
|
|
2580
|
+
i0.ɵɵtext(3);
|
|
2581
|
+
i0.ɵɵelementEnd()();
|
|
2582
|
+
i0.ɵɵelementStart(4, "div", 2)(5, "div", 3);
|
|
2583
|
+
i0.ɵɵtext(6);
|
|
2584
|
+
i0.ɵɵpipe(7, "translate");
|
|
2585
|
+
i0.ɵɵelementEnd();
|
|
2586
|
+
i0.ɵɵelementStart(8, "div", 4);
|
|
2587
|
+
i0.ɵɵprojection(9);
|
|
2588
|
+
i0.ɵɵelementEnd()();
|
|
2589
|
+
i0.ɵɵtemplate(10, SnackBarComponent_Conditional_10_Template, 1, 2, "app-stroked-button", 5)(11, SnackBarComponent_Conditional_11_Template, 1, 0, "app-icon-button", 6);
|
|
2590
|
+
i0.ɵɵelementEnd();
|
|
2591
|
+
} if (rf & 2) {
|
|
2592
|
+
i0.ɵɵproperty("ngClass", ctx.appearanceClasses());
|
|
2593
|
+
i0.ɵɵadvance(3);
|
|
2594
|
+
i0.ɵɵtextInterpolate(ctx.icon());
|
|
2595
|
+
i0.ɵɵadvance(3);
|
|
2596
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 5, ctx.title()));
|
|
2597
|
+
i0.ɵɵadvance(4);
|
|
2598
|
+
i0.ɵɵconditional(ctx.showButton() ? 10 : -1);
|
|
2599
|
+
i0.ɵɵadvance();
|
|
2600
|
+
i0.ɵɵconditional(ctx.showCloseButton() ? 11 : -1);
|
|
2601
|
+
} }, dependencies: [MatIcon, StrokedButtonComponent, IconButtonComponent, NgClass, TranslateModule, i2.TranslatePipe], styles: [".info[_ngcontent-%COMP%]{--darkBackgroundColor: #0288D1;--lightBackgroundColor: #E5F6FD;--lightColor: white;--darkColor: #014361}.warning[_ngcontent-%COMP%]{--darkBackgroundColor: #ED6C02;--lightBackgroundColor: #FFF4E5;--lightColor: white;--darkColor: #663C00}.success[_ngcontent-%COMP%]{--darkBackgroundColor: #2E7D32;--lightBackgroundColor: #EDF7ED;--lightColor: white;--darkColor: #1E4620}.error[_ngcontent-%COMP%]{--darkBackgroundColor: #D32F2F;--lightBackgroundColor: #FDEDED;--lightColor: white;--darkColor: #5F2120}.filled[_ngcontent-%COMP%]{--textColor: var(--lightColor);--iconColor: var(--lightColor);background-color:var(--darkBackgroundColor)}.standard[_ngcontent-%COMP%], .outlined[_ngcontent-%COMP%]{--textColor: var(--darkColor);--iconColor: var(--darkBackgroundColor)}.container[_ngcontent-%COMP%]{display:flex;padding:6px 16px;align-items:flex-start;border-radius:4px}.text-container[_ngcontent-%COMP%]{display:flex;padding:8px 0;flex-direction:column;align-items:flex-start;gap:4px;flex:1 0 0}.icon-container[_ngcontent-%COMP%]{display:flex;padding:7px 12px 7px 0;align-items:flex-start}.icon-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--iconColor)}.message[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]{color:var(--textColor)}.standard[_ngcontent-%COMP%]{background-color:var(--lightBackgroundColor)}.outlined[_ngcontent-%COMP%]{background-color:transparent;border:1px solid var(--darkBackgroundColor)}.standard[_ngcontent-%COMP%] .outlined[_ngcontent-%COMP%]{color:var(--darkColor)}"], changeDetection: 0 }); }
|
|
2602
|
+
}
|
|
2603
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SnackBarComponent, [{
|
|
2604
|
+
type: Component,
|
|
2605
|
+
args: [{ selector: 'app-snackbar', standalone: true, imports: [MatIcon, StrokedButtonComponent, IconButtonComponent, NgClass, TranslateModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"container\" [ngClass]=\"appearanceClasses()\">\r\n\r\n <div class=\"icon-container\">\r\n <mat-icon>{{icon()}}</mat-icon>\r\n </div>\r\n\r\n <div class=\"text-container\">\r\n <div class=\"title alert-title\">{{title()|translate}}</div>\r\n <div class=\"message body2\"><ng-content></ng-content></div>\r\n </div>\r\n\r\n @if (showButton()) {<app-stroked-button [color]=\"buttonColor()\" [label]=\"buttonLabel()\" (click)=\"buttonClick.emit()\" />}\r\n\r\n @if (showCloseButton()) {<app-icon-button icon=\"close\" (click)=\"closeClick.emit()\" />}\r\n\r\n</div>", styles: [".info{--darkBackgroundColor: #0288D1;--lightBackgroundColor: #E5F6FD;--lightColor: white;--darkColor: #014361}.warning{--darkBackgroundColor: #ED6C02;--lightBackgroundColor: #FFF4E5;--lightColor: white;--darkColor: #663C00}.success{--darkBackgroundColor: #2E7D32;--lightBackgroundColor: #EDF7ED;--lightColor: white;--darkColor: #1E4620}.error{--darkBackgroundColor: #D32F2F;--lightBackgroundColor: #FDEDED;--lightColor: white;--darkColor: #5F2120}.filled{--textColor: var(--lightColor);--iconColor: var(--lightColor);background-color:var(--darkBackgroundColor)}.standard,.outlined{--textColor: var(--darkColor);--iconColor: var(--darkBackgroundColor)}.container{display:flex;padding:6px 16px;align-items:flex-start;border-radius:4px}.text-container{display:flex;padding:8px 0;flex-direction:column;align-items:flex-start;gap:4px;flex:1 0 0}.icon-container{display:flex;padding:7px 12px 7px 0;align-items:flex-start}.icon-container mat-icon{color:var(--iconColor)}.message,.title{color:var(--textColor)}.standard{background-color:var(--lightBackgroundColor)}.outlined{background-color:transparent;border:1px solid var(--darkBackgroundColor)}.standard .outlined{color:var(--darkColor)}\n"] }]
|
|
2606
|
+
}], null, { closeClick: [{
|
|
2607
|
+
type: Output
|
|
2608
|
+
}], buttonClick: [{
|
|
2609
|
+
type: Output
|
|
2610
|
+
}] }); })();
|
|
2611
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SnackBarComponent, { className: "SnackBarComponent", filePath: "lib\\notifications\\snack-bar\\snack-bar.component.ts", lineNumber: 16 }); })();
|
|
2612
|
+
|
|
2613
|
+
class AlertDialogComponent {
|
|
2614
|
+
constructor(dialogRef, data) {
|
|
2615
|
+
this.dialogRef = dialogRef;
|
|
2616
|
+
this.data = data;
|
|
2617
|
+
this.title = '';
|
|
2618
|
+
this.message = '';
|
|
2619
|
+
this.title = data.title;
|
|
2620
|
+
this.message = data.message;
|
|
2621
|
+
}
|
|
2622
|
+
closeClick() {
|
|
2623
|
+
this.dialogRef.close();
|
|
2624
|
+
}
|
|
2625
|
+
static { this.ɵfac = function AlertDialogComponent_Factory(t) { return new (t || AlertDialogComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
|
|
2626
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertDialogComponent, selectors: [["app-alert-dialog"]], standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 15, vars: 9, consts: [["mat-dialog-title", ""], [1, "h6"], ["id", "closeButton", "mat-icon-button", "", "mat-dialog-close", ""], ["mat-dialog-content", ""], ["mat-dialog-actions", "", "align", "end"], ["mat-raised-button", "", "id", "okButton", "color", "primary", "mat-dialog-close", ""]], template: function AlertDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2627
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
2628
|
+
i0.ɵɵtext(2);
|
|
2629
|
+
i0.ɵɵpipe(3, "translate");
|
|
2630
|
+
i0.ɵɵelementEnd();
|
|
2631
|
+
i0.ɵɵelementStart(4, "button", 2)(5, "mat-icon");
|
|
2632
|
+
i0.ɵɵtext(6, "close");
|
|
2633
|
+
i0.ɵɵelementEnd()()();
|
|
2634
|
+
i0.ɵɵelementStart(7, "div", 3)(8, "p");
|
|
2635
|
+
i0.ɵɵtext(9);
|
|
2636
|
+
i0.ɵɵpipe(10, "translate");
|
|
2637
|
+
i0.ɵɵelementEnd()();
|
|
2638
|
+
i0.ɵɵelementStart(11, "div", 4)(12, "button", 5);
|
|
2639
|
+
i0.ɵɵtext(13);
|
|
2640
|
+
i0.ɵɵpipe(14, "translate");
|
|
2641
|
+
i0.ɵɵelementEnd()();
|
|
2642
|
+
} if (rf & 2) {
|
|
2643
|
+
i0.ɵɵadvance(2);
|
|
2644
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, ctx.title));
|
|
2645
|
+
i0.ɵɵadvance(7);
|
|
2646
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 5, ctx.message));
|
|
2647
|
+
i0.ɵɵadvance(4);
|
|
2648
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 7, "ok"));
|
|
2649
|
+
} }, dependencies: [TranslateModule, i2.TranslatePipe, MatDialogModule, i1$2.MatDialogClose, i1$2.MatDialogTitle, i1$2.MatDialogActions, i1$2.MatDialogContent, MatIconModule, i1$1.MatIcon, MatButtonModule, i4$1.MatButton, i4$1.MatIconButton], styles: ["[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]:first-child{flex:1}"] }); }
|
|
2650
|
+
}
|
|
2651
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertDialogComponent, [{
|
|
2652
|
+
type: Component,
|
|
2653
|
+
args: [{ selector: 'app-alert-dialog', standalone: true, imports: [TranslateModule, MatDialogModule, MatIconModule, MatButtonModule], template: "<div mat-dialog-title>\n <div class=\"h6\">{{ title | translate }}</div>\n <button id=\"closeButton\" mat-icon-button mat-dialog-close>\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div mat-dialog-content>\n <p>{{ message | translate }}</p>\n</div>\n<div mat-dialog-actions align=\"end\">\n <button mat-raised-button id=\"okButton\" color=\"primary\" mat-dialog-close>{{'ok' | translate}}</button>\n</div>", styles: [":host>div:first-child{display:flex;align-items:center}:host>div:first-child div:first-child{flex:1}\n"] }]
|
|
2654
|
+
}], () => [{ type: i1$2.MatDialogRef }, { type: undefined, decorators: [{
|
|
2655
|
+
type: Inject,
|
|
2656
|
+
args: [MAT_DIALOG_DATA]
|
|
2657
|
+
}] }], null); })();
|
|
2658
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertDialogComponent, { className: "AlertDialogComponent", filePath: "lib\\dialogs\\alert-dialog\\alert-dialog.component.ts", lineNumber: 15 }); })();
|
|
2659
|
+
|
|
2660
|
+
class ConfirmDialogComponent {
|
|
2661
|
+
constructor(dialogRef, data) {
|
|
2662
|
+
this.dialogRef = dialogRef;
|
|
2663
|
+
this.data = data;
|
|
2664
|
+
this.title = '';
|
|
2665
|
+
this.message = '';
|
|
2666
|
+
this.title = data.title;
|
|
2667
|
+
this.message = data.message;
|
|
2668
|
+
this.options = data.options;
|
|
2669
|
+
}
|
|
2670
|
+
noClick() {
|
|
2671
|
+
this.dialogRef.close(ConfirmationResult.No);
|
|
2672
|
+
}
|
|
2673
|
+
yesClick() {
|
|
2674
|
+
this.dialogRef.close(ConfirmationResult.Yes);
|
|
2675
|
+
}
|
|
2676
|
+
cancelClick() {
|
|
2677
|
+
this.dialogRef.close(ConfirmationResult.Cancel);
|
|
2678
|
+
}
|
|
2679
|
+
static { this.ɵfac = function ConfirmDialogComponent_Factory(t) { return new (t || ConfirmDialogComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
|
|
2680
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmDialogComponent, selectors: [["app-confirm-dialog"]], standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 12, vars: 11, consts: [["mat-dialog-title", ""], [1, "h6", "title"], ["id", "close-button", "icon", "close", 3, "buttonClick"], ["mat-dialog-content", ""], [1, "message"], ["mat-dialog-actions", "", "align", "end"], [1, "no-button", 3, "buttonClick", "label", "color"], [1, "yes-button", 3, "buttonClick", "label", "color"]], template: function ConfirmDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2681
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
2682
|
+
i0.ɵɵtext(2);
|
|
2683
|
+
i0.ɵɵpipe(3, "translate");
|
|
2684
|
+
i0.ɵɵelementEnd();
|
|
2685
|
+
i0.ɵɵelementStart(4, "app-icon-button", 2);
|
|
2686
|
+
i0.ɵɵlistener("buttonClick", function ConfirmDialogComponent_Template_app_icon_button_buttonClick_4_listener() { return ctx.cancelClick(); });
|
|
2687
|
+
i0.ɵɵelementEnd()();
|
|
2688
|
+
i0.ɵɵelementStart(5, "div", 3)(6, "p", 4);
|
|
2689
|
+
i0.ɵɵtext(7);
|
|
2690
|
+
i0.ɵɵpipe(8, "translate");
|
|
2691
|
+
i0.ɵɵelementEnd()();
|
|
2692
|
+
i0.ɵɵelementStart(9, "div", 5)(10, "app-stroked-button", 6);
|
|
2693
|
+
i0.ɵɵlistener("buttonClick", function ConfirmDialogComponent_Template_app_stroked_button_buttonClick_10_listener() { return ctx.noClick(); });
|
|
2694
|
+
i0.ɵɵelementEnd();
|
|
2695
|
+
i0.ɵɵelementStart(11, "app-raised-button", 7);
|
|
2696
|
+
i0.ɵɵlistener("buttonClick", function ConfirmDialogComponent_Template_app_raised_button_buttonClick_11_listener() { return ctx.yesClick(); });
|
|
2697
|
+
i0.ɵɵelementEnd()();
|
|
2698
|
+
} if (rf & 2) {
|
|
2699
|
+
i0.ɵɵadvance(2);
|
|
2700
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, ctx.title));
|
|
2701
|
+
i0.ɵɵadvance(5);
|
|
2702
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 8, ctx.message, ctx.options.messageArgs));
|
|
2703
|
+
i0.ɵɵadvance(3);
|
|
2704
|
+
i0.ɵɵproperty("label", ctx.options.noText)("color", ctx.options.noColor);
|
|
2705
|
+
i0.ɵɵadvance();
|
|
2706
|
+
i0.ɵɵproperty("label", ctx.options.yesText)("color", ctx.options.yesColor);
|
|
2707
|
+
} }, dependencies: [TranslateModule, i2.TranslatePipe, MatDialogModule, i1$2.MatDialogTitle, i1$2.MatDialogActions, i1$2.MatDialogContent, RaisedButtonComponent, StrokedButtonComponent, IconButtonComponent], styles: ["[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]:first-child{flex:1}.yes-button[_ngcontent-%COMP%]{padding-left:8px}.message[_ngcontent-%COMP%]{white-space:pre-wrap}"] }); }
|
|
2708
|
+
}
|
|
2709
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmDialogComponent, [{
|
|
2710
|
+
type: Component,
|
|
2711
|
+
args: [{ selector: 'app-confirm-dialog', standalone: true, imports: [TranslateModule, MatDialogModule, MatIcon, RaisedButtonComponent, StrokedButtonComponent, IconButtonComponent], template: "<div mat-dialog-title>\n <div class=\"h6 title\">{{ title | translate }}</div>\n <app-icon-button id=\"close-button\" (buttonClick)=\"cancelClick()\" icon=\"close\" />\n </div>\n <div mat-dialog-content>\n <p class=\"message\">{{ message | translate: options.messageArgs }}</p>\n </div>\n <div mat-dialog-actions align=\"end\">\n <app-stroked-button class=\"no-button\" [label]=\"options.noText\" [color]=\"options.noColor\" (buttonClick)=\"noClick()\" />\n <app-raised-button class=\"yes-button\" [label]=\"options.yesText\" [color]=\"options.yesColor\" (buttonClick)=\"yesClick()\" />\n </div>", styles: [":host>div:first-child{display:flex;align-items:center}:host>div:first-child div:first-child{flex:1}.yes-button{padding-left:8px}.message{white-space:pre-wrap}\n"] }]
|
|
2712
|
+
}], () => [{ type: i1$2.MatDialogRef }, { type: undefined, decorators: [{
|
|
2713
|
+
type: Inject,
|
|
2714
|
+
args: [MAT_DIALOG_DATA]
|
|
2715
|
+
}] }], null); })();
|
|
2716
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmDialogComponent, { className: "ConfirmDialogComponent", filePath: "lib\\dialogs\\confirm-dialog\\confirm-dialog.component.ts", lineNumber: 18 }); })();
|
|
2717
|
+
|
|
2718
|
+
class DialogService {
|
|
2719
|
+
constructor(dialog) {
|
|
2720
|
+
this.dialog = dialog;
|
|
2721
|
+
this.defaultConfirmationOptions = {
|
|
2722
|
+
noText: 'no',
|
|
2723
|
+
noColor: 'primary',
|
|
2724
|
+
yesText: 'yes',
|
|
2725
|
+
messageArgs: null,
|
|
2726
|
+
yesColor: 'primary'
|
|
2727
|
+
};
|
|
2728
|
+
}
|
|
2729
|
+
async showDialog(title, message) {
|
|
2730
|
+
const dialogRef = this.dialog.open(AlertDialogComponent, {
|
|
2731
|
+
data: { title, message },
|
|
2732
|
+
autoFocus: false
|
|
2733
|
+
});
|
|
2734
|
+
return await firstValueFrom(dialogRef.afterClosed());
|
|
2735
|
+
}
|
|
2736
|
+
async showCustomDialog(component, args, options = { autoFocus: false }) {
|
|
2737
|
+
const config = { ...options, ...{ data: args } };
|
|
2738
|
+
return await this.dialog.open(component, config)
|
|
2739
|
+
.afterClosed();
|
|
2740
|
+
}
|
|
2741
|
+
async askForConfirmation(title, message, args = null, options = { autoFocus: false }) {
|
|
2742
|
+
args = { ...this.defaultConfirmationOptions, ...(args || {}) };
|
|
2743
|
+
const data = { options: args, title, message };
|
|
2744
|
+
const config = { ...options, ...{ data } };
|
|
2745
|
+
const dialogRef = this.dialog.open(ConfirmDialogComponent, config);
|
|
2746
|
+
return await dialogRef.afterClosed();
|
|
2747
|
+
}
|
|
2748
|
+
static { this.ɵfac = function DialogService_Factory(t) { return new (t || DialogService)(i0.ɵɵinject(i1$2.MatDialog)); }; }
|
|
2749
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: DialogService, factory: DialogService.ɵfac, providedIn: 'root' }); }
|
|
2750
|
+
}
|
|
2751
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogService, [{
|
|
2752
|
+
type: Injectable,
|
|
2753
|
+
args: [{
|
|
2754
|
+
providedIn: 'root'
|
|
2755
|
+
}]
|
|
2756
|
+
}], () => [{ type: i1$2.MatDialog }], null); })();
|
|
2757
|
+
var ConfirmationResult;
|
|
2758
|
+
(function (ConfirmationResult) {
|
|
2759
|
+
ConfirmationResult[ConfirmationResult["Cancel"] = 0] = "Cancel";
|
|
2760
|
+
ConfirmationResult[ConfirmationResult["Yes"] = 1] = "Yes";
|
|
2761
|
+
ConfirmationResult[ConfirmationResult["No"] = 2] = "No";
|
|
2762
|
+
})(ConfirmationResult || (ConfirmationResult = {}));
|
|
1423
2763
|
|
|
1424
2764
|
class MenuItem {
|
|
1425
2765
|
constructor(label, path, icon = '') {
|
|
@@ -1438,5 +2778,5 @@ class MenuItem {
|
|
|
1438
2778
|
* Generated bundle index. Do not edit.
|
|
1439
2779
|
*/
|
|
1440
2780
|
|
|
1441
|
-
export { CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialModule, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, MenuItem };
|
|
2781
|
+
export { BasicButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialModule, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ConfirmationResult, DialogService, ExpandablePanelComponent, FlatButtonComponent, IconButtonComponent, MenuExpandablePanelComponent, MenuExpandablePanelItemComponent, MenuItem, MenuItemComponent, PageTitleComponent, PasswordCriteriaComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, SelectWithSearchComponent, SnackBarComponent, StrokedButtonComponent };
|
|
1442
2782
|
//# sourceMappingURL=cauca-911-material.mjs.map
|