@cauca-911/material 17.1.6 → 18.0.1-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/esm2022/lib/buttons/base-button.mjs +33 -0
  2. package/esm2022/lib/buttons/basic-button/basic-button.component.mjs +64 -0
  3. package/esm2022/lib/buttons/flat-button/flat-button.component.mjs +64 -0
  4. package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +28 -0
  5. package/esm2022/lib/buttons/menu-item/menu-item.component.mjs +68 -0
  6. package/esm2022/lib/buttons/raised-button/raised-button.component.mjs +64 -0
  7. package/esm2022/lib/buttons/stroked-button/stroked-button.component.mjs +71 -0
  8. package/esm2022/lib/cauca-material.component.mjs +7 -6
  9. package/esm2022/lib/cauca-material.module.mjs +13 -52
  10. package/esm2022/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.mjs +27 -22
  11. package/esm2022/lib/cauca-menu-vertical/cauca-menu-vertical.component.mjs +60 -52
  12. package/esm2022/lib/cauca-simple-dialog/cauca-simple-dialog.component.mjs +24 -20
  13. package/esm2022/lib/cauca-slideshow/cauca-slideshow.component.mjs +13 -13
  14. package/esm2022/lib/dialogs/alert-dialog/alert-dialog.component.mjs +57 -0
  15. package/esm2022/lib/dialogs/confirm-dialog/confirm-dialog.component.mjs +69 -0
  16. package/esm2022/lib/dialogs/services/dialog.service.mjs +52 -0
  17. package/esm2022/lib/inputs/cauca-date-time-picker/cauca-date-time-picker.component.mjs +137 -0
  18. package/esm2022/lib/inputs/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.mjs +49 -0
  19. package/esm2022/lib/inputs/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.mjs +358 -0
  20. package/esm2022/lib/inputs/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.mjs +74 -0
  21. package/esm2022/lib/inputs/cauca-date-time-picker/models/dialog-date-time-picker-data.mjs +2 -0
  22. package/esm2022/lib/inputs/cauca-input-file/cauca-input-file.component.mjs +147 -0
  23. package/esm2022/lib/inputs/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +99 -0
  24. package/esm2022/lib/inputs/password/models/password-validation.mjs +13 -0
  25. package/esm2022/lib/inputs/password/password-criteria/password-criteria.component.mjs +49 -0
  26. package/esm2022/lib/inputs/password/password-criteria-viewer/password-criteria-viewer.component.mjs +29 -0
  27. package/esm2022/lib/inputs/password/password-input/password-input.component.mjs +112 -0
  28. package/esm2022/lib/inputs/password/password-selection/password-selection.component.mjs +112 -0
  29. package/esm2022/lib/inputs/password/validators/password-validator.mjs +19 -0
  30. package/esm2022/lib/inputs/select-with-search/select-with-search.component.mjs +157 -0
  31. package/esm2022/lib/layout/expandable-panel/expandable-panel.component.mjs +75 -0
  32. package/esm2022/lib/layout/menu-expandable-panel/menu-expandable-panel.component.mjs +148 -0
  33. package/esm2022/lib/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.mjs +50 -0
  34. package/esm2022/lib/layout/page-title/page-title.component.mjs +86 -0
  35. package/esm2022/lib/notifications/snack-bar/snack-bar.component.mjs +75 -0
  36. package/esm2022/public-api.mjs +21 -4
  37. package/fesm2022/cauca-911-material.mjs +1984 -641
  38. package/fesm2022/cauca-911-material.mjs.map +1 -1
  39. package/lib/buttons/base-button.d.ts +21 -0
  40. package/lib/buttons/basic-button/basic-button.component.d.ts +6 -0
  41. package/lib/buttons/flat-button/flat-button.component.d.ts +6 -0
  42. package/lib/buttons/icon-button/icon-button.component.d.ts +6 -0
  43. package/lib/buttons/menu-item/menu-item.component.d.ts +9 -0
  44. package/lib/buttons/raised-button/raised-button.component.d.ts +6 -0
  45. package/lib/buttons/stroked-button/stroked-button.component.d.ts +6 -0
  46. package/lib/cauca-material.component.d.ts +1 -1
  47. package/lib/cauca-material.module.d.ts +4 -14
  48. package/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.d.ts +1 -1
  49. package/lib/cauca-menu-vertical/cauca-menu-vertical.component.d.ts +1 -1
  50. package/lib/cauca-simple-dialog/cauca-simple-dialog.component.d.ts +1 -1
  51. package/lib/cauca-slideshow/cauca-slideshow.component.d.ts +1 -1
  52. package/lib/dialogs/alert-dialog/alert-dialog.component.d.ts +18 -0
  53. package/lib/dialogs/confirm-dialog/confirm-dialog.component.d.ts +17 -0
  54. package/lib/dialogs/services/dialog.service.d.ts +26 -0
  55. package/lib/{cauca-input-file → inputs/cauca-input-file}/cauca-input-file.component.d.ts +1 -1
  56. package/lib/{cauca-input-multiple-langue → inputs/cauca-input-multiple-langue}/cauca-input-multiple-langue.component.d.ts +1 -1
  57. package/lib/inputs/password/models/password-validation.d.ts +9 -0
  58. package/lib/inputs/password/password-criteria/password-criteria.component.d.ts +9 -0
  59. package/lib/inputs/password/password-criteria-viewer/password-criteria-viewer.component.d.ts +9 -0
  60. package/lib/inputs/password/password-input/password-input.component.d.ts +25 -0
  61. package/lib/inputs/password/password-selection/password-selection.component.d.ts +20 -0
  62. package/lib/inputs/password/validators/password-validator.d.ts +9 -0
  63. package/lib/inputs/select-with-search/select-with-search.component.d.ts +32 -0
  64. package/lib/layout/expandable-panel/expandable-panel.component.d.ts +10 -0
  65. package/lib/layout/menu-expandable-panel/menu-expandable-panel.component.d.ts +29 -0
  66. package/lib/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.d.ts +13 -0
  67. package/lib/layout/page-title/page-title.component.d.ts +11 -0
  68. package/lib/notifications/snack-bar/snack-bar.component.d.ts +17 -0
  69. package/package.json +7 -6
  70. package/public-api.d.ts +20 -3
  71. package/esm2022/lib/cauca-date-time-picker/cauca-date-time-picker.component.mjs +0 -137
  72. package/esm2022/lib/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.mjs +0 -48
  73. package/esm2022/lib/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.mjs +0 -357
  74. package/esm2022/lib/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.mjs +0 -74
  75. package/esm2022/lib/cauca-date-time-picker/models/dialog-date-time-picker-data.mjs +0 -2
  76. package/esm2022/lib/cauca-input-file/cauca-input-file.component.mjs +0 -147
  77. package/esm2022/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +0 -87
  78. /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/cauca-date-time-picker.component.d.ts +0 -0
  79. /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/components/desktop-time-picker/desktop-time-picker.component.d.ts +0 -0
  80. /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
  81. /package/lib/{cauca-date-time-picker → inputs/cauca-date-time-picker}/components/mobile-time-picker/mobile-time-picker.component.d.ts +0 -0
  82. /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, Inject, EventEmitter, ViewChild, Output, Input, HostListener, NgModule } from '@angular/core';
3
- import * as i1 from '@ngx-translate/core';
4
- import * as i2 from '@angular/common';
5
- import { CommonModule, DatePipe } from '@angular/common';
6
- import * as i3 from '@angular/forms';
7
- import { Validators, UntypedFormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
8
- import * as i4 from '@angular/material/button';
9
- import { MatButtonModule } from '@angular/material/button';
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$2 from '@cauca-911/core';
21
- import { CaucaCoreForChildModule } from '@cauca-911/core';
22
- import * as i1$1 from '@angular/material/dialog';
11
+ import * as i1$3 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 * as i1$3 from '@angular/router';
25
- import { NavigationEnd } from '@angular/router';
26
- import { style, state, animate, transition, trigger } from '@angular/animations';
15
+ import { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';
16
+ import * as i1$4 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 i5$2 from '@angular/material/datepicker';
35
+ import * as i3$1 from '@angular/material/datepicker';
29
36
  import { MatDatepickerModule } from '@angular/material/datepicker';
30
- import * as i1$4 from '@angular/material/list';
37
+ import * as i1$5 from '@angular/material/list';
31
38
  import { MatListModule } from '@angular/material/list';
32
39
 
33
40
  class CaucaMaterialService {
@@ -43,321 +50,44 @@ 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");
50
57
  i0.ɵɵelementEnd();
51
58
  } if (rf & 2) {
52
- i0.ɵɵadvance(1);
59
+ i0.ɵɵadvance();
53
60
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "core.noGenericComponentOnThisLibrary"));
54
- } }, dependencies: [i1.TranslatePipe], encapsulation: 2 }); }
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: 8 }); })();
61
-
62
- class SimpleDialogData {
63
- constructor() {
64
- this.buttons = [];
65
- }
66
- }
67
-
68
- function CaucaSimpleDialogComponent_div_4_button_1_Template(rf, ctx) { if (rf & 1) {
69
- const _r5 = i0.ɵɵgetCurrentView();
70
- i0.ɵɵelementStart(0, "button", 6);
71
- i0.ɵɵlistener("click", function CaucaSimpleDialogComponent_div_4_button_1_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const i_r3 = restoredCtx.index; const ctx_r4 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r4.onClick(i_r3)); });
72
- i0.ɵɵtext(1);
73
- i0.ɵɵelementEnd();
74
- } if (rf & 2) {
75
- const label_r2 = ctx.$implicit;
76
- i0.ɵɵadvance(1);
77
- i0.ɵɵtextInterpolate(label_r2);
78
- } }
79
- function CaucaSimpleDialogComponent_div_4_Template(rf, ctx) { if (rf & 1) {
80
- i0.ɵɵelementStart(0, "div", 4);
81
- i0.ɵɵtemplate(1, CaucaSimpleDialogComponent_div_4_button_1_Template, 2, 1, "button", 5);
82
- i0.ɵɵelementEnd();
83
- } if (rf & 2) {
84
- const ctx_r0 = i0.ɵɵnextContext();
85
- i0.ɵɵadvance(1);
86
- i0.ɵɵproperty("ngForOf", ctx_r0.data.buttons);
87
- } }
88
- class CaucaSimpleDialogComponent {
89
- constructor(dialogRef, data) {
90
- this.dialogRef = dialogRef;
91
- this.data = data;
92
- }
93
- onClick(buttonIndex) {
94
- this.dialogRef.close(buttonIndex);
95
- }
96
- static { this.ɵfac = function CaucaSimpleDialogComponent_Factory(t) { return new (t || CaucaSimpleDialogComponent)(i0.ɵɵdirectiveInject(i1$1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
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(1);
107
- i0.ɵɵtextInterpolate(ctx.data.title);
108
- i0.ɵɵadvance(2);
109
- i0.ɵɵproperty("innerHTML", ctx.data.message, i0.ɵɵsanitizeHtml);
110
- i0.ɵɵadvance(1);
111
- i0.ɵɵproperty("ngIf", ctx.data.buttons);
112
- } }, dependencies: [i2.NgForOf, i2.NgIf, 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);
127
- i0.ɵɵelementEnd();
128
- } if (rf & 2) {
129
- const ctx_r0 = i0.ɵɵnextContext();
130
- i0.ɵɵadvance(1);
131
- i0.ɵɵtextInterpolate(ctx_r0.icon);
132
- } }
133
- function CaucaInputFileComponent_span_2_Template(rf, ctx) { if (rf & 1) {
134
- i0.ɵɵelementStart(0, "span");
135
- i0.ɵɵtext(1);
136
- i0.ɵɵelementEnd();
137
- } if (rf & 2) {
138
- const ctx_r1 = i0.ɵɵnextContext();
139
- i0.ɵɵadvance(1);
140
- i0.ɵɵtextInterpolate(ctx_r1.text);
141
- } }
142
- function CaucaInputFileComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
143
- const _r7 = i0.ɵɵgetCurrentView();
144
- i0.ɵɵelementContainerStart(0);
145
- i0.ɵɵelementStart(1, "input", 4, 5);
146
- i0.ɵɵlistener("change", function CaucaInputFileComponent_ng_container_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.onSelectFile($event)); });
147
- i0.ɵɵelementEnd();
148
- i0.ɵɵelementContainerEnd();
149
- } if (rf & 2) {
150
- const ctx_r2 = i0.ɵɵnextContext();
151
- i0.ɵɵadvance(1);
152
- i0.ɵɵproperty("accept", ctx_r2.accept);
153
- } }
154
- function CaucaInputFileComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
155
- const _r10 = i0.ɵɵgetCurrentView();
156
- i0.ɵɵelementStart(0, "input", 6, 5);
157
- i0.ɵɵlistener("change", function CaucaInputFileComponent_ng_template_4_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.onSelectFile($event)); });
158
- i0.ɵɵelementEnd();
159
- } if (rf & 2) {
160
- const ctx_r3 = i0.ɵɵnextContext();
161
- i0.ɵɵproperty("accept", ctx_r3.accept);
162
- } }
163
- class CaucaInputFileComponent {
164
- constructor(translateService, dialog) {
165
- this.translateService = translateService;
166
- this.dialog = dialog;
167
- this.readend = new EventEmitter();
168
- this.accept = '';
169
- this.multiple = false;
170
- this.icon = '';
171
- this.text = '';
172
- this.labels = {};
173
- }
174
- ngOnInit() {
175
- if (!this.icon && !this.text) {
176
- this.translateService.get(['material.select', 'material.dialogTitle', 'material.dialogMessage']).subscribe((labels) => {
177
- this.labels = labels;
178
- this.text = labels['material.select'];
179
- });
180
- }
181
- }
182
- onSelectFile(e) {
183
- for (let i = 0, j = e.target.files.length; i < j; i++) {
184
- const file = e.target.files[i];
185
- const reader = new FileReader();
186
- reader.onerror = ((error) => this.onError(error));
187
- reader.onload = ((event) => this.onReadEnd(file, event));
188
- reader.readAsDataURL(file);
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']
197
- }
198
- });
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
- });
220
- }
221
- static { this.ɵfac = function CaucaInputFileComponent_Factory(t) { return new (t || CaucaInputFileComponent)(i0.ɵɵdirectiveInject(i1$2.TranslateService), i0.ɵɵdirectiveInject(i1$1.MatDialog)); }; }
222
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputFileComponent, selectors: [["cauca-input-file"]], viewQuery: function CaucaInputFileComponent_Query(rf, ctx) { if (rf & 1) {
223
- i0.ɵɵviewQuery(_c0$3, 5);
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: [["mat-raised-button", "", 3, "click"], [4, "ngIf"], [4, "ngIf", "ngIfElse"], ["notMultipleInput", ""], ["type", "file", "multiple", "multiple", 3, "accept", "change"], ["file", ""], ["type", "file", 3, "accept", "change"]], template: function CaucaInputFileComponent_Template(rf, ctx) { if (rf & 1) {
228
- i0.ɵɵelementStart(0, "button", 0);
229
- i0.ɵɵlistener("click", function CaucaInputFileComponent_Template_button_click_0_listener($event) { return ctx.openDialog($event); });
230
- i0.ɵɵtemplate(1, CaucaInputFileComponent_mat_icon_1_Template, 2, 1, "mat-icon", 1)(2, CaucaInputFileComponent_span_2_Template, 2, 1, "span", 1);
231
- i0.ɵɵelementEnd();
232
- i0.ɵɵtemplate(3, CaucaInputFileComponent_ng_container_3_Template, 3, 1, "ng-container", 2)(4, CaucaInputFileComponent_ng_template_4_Template, 2, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
233
- } if (rf & 2) {
234
- const _r4 = i0.ɵɵreference(5);
235
- i0.ɵɵadvance(1);
236
- i0.ɵɵproperty("ngIf", ctx.icon);
237
- i0.ɵɵadvance(1);
238
- i0.ɵɵproperty("ngIf", ctx.text);
239
- i0.ɵɵadvance(1);
240
- i0.ɵɵproperty("ngIf", ctx.multiple)("ngIfElse", _r4);
241
- } }, dependencies: [i2.NgIf, i4.MatButton, i5.MatIcon], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:none}"] }); }
242
- }
243
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputFileComponent, [{
244
- type: Component,
245
- args: [{ selector: 'cauca-input-file', template: "<button mat-raised-button (click)=\"openDialog($event)\">\n <mat-icon *ngIf=\"icon\">{{icon}}</mat-icon>\n <span *ngIf=\"text\">{{text}}</span>\n</button>\n<ng-container *ngIf=\"multiple; else notMultipleInput\">\n <input #file type=\"file\" (change)=\"onSelectFile($event)\" [accept]=\"accept\" multiple=\"multiple\" />\n</ng-container>\n\n<ng-template #notMultipleInput>\n <input #file type=\"file\" (change)=\"onSelectFile($event)\" [accept]=\"accept\" />\n</ng-template>", styles: [":host input{display:none}\n"] }]
246
- }], () => [{ type: i1$2.TranslateService }, { type: i1$1.MatDialog }], { file: [{
247
- type: ViewChild,
248
- args: ['file', { static: false }]
249
- }], readend: [{
250
- type: Output
251
- }], accept: [{
252
- type: Input
253
- }], multiple: [{
254
- type: Input
255
- }], icon: [{
256
- type: Input
257
- }], text: [{
258
- type: Input
259
- }] }); })();
260
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputFileComponent, { className: "CaucaInputFileComponent", filePath: "lib\\cauca-input-file\\cauca-input-file.component.ts", lineNumber: 11 }); })();
261
-
262
- function CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template(rf, ctx) { if (rf & 1) {
263
- i0.ɵɵelementStart(0, "mat-error");
264
- i0.ɵɵtext(1);
265
- i0.ɵɵpipe(2, "translate");
266
- i0.ɵɵelementEnd();
267
- } if (rf & 2) {
268
- const i_r2 = i0.ɵɵnextContext().index;
269
- const ctx_r3 = i0.ɵɵnextContext();
270
- i0.ɵɵadvance(1);
271
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.getErrorMessage(i_r2)));
272
- } }
273
- function CaucaInputMultipleLangueComponent_mat_tab_1_Template(rf, ctx) { if (rf & 1) {
274
- i0.ɵɵelementStart(0, "mat-tab", 2)(1, "mat-form-field", 3);
275
- i0.ɵɵelement(2, "input", 4);
276
- i0.ɵɵtemplate(3, CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template, 3, 3, "mat-error", 5);
277
- i0.ɵɵelementEnd()();
278
- } if (rf & 2) {
279
- const lang_r1 = ctx.$implicit;
280
- const i_r2 = ctx.index;
281
- const ctx_r0 = i0.ɵɵnextContext();
282
- i0.ɵɵproperty("label", lang_r1);
283
- i0.ɵɵadvance(2);
284
- i0.ɵɵproperty("placeholder", lang_r1)("formControl", ctx_r0.forms[i_r2]);
285
- i0.ɵɵadvance(1);
286
- i0.ɵɵproperty("ngIf", ctx_r0.forms[i_r2].invalid);
287
- } }
288
- class CaucaInputMultipleLangueComponent {
289
- constructor(coreService, translate) {
290
- this.translate = translate;
291
- this.value = [];
292
- this.forms = [];
293
- this.labels = [];
294
- this.selectedIndex = 0;
295
- this.config = coreService.getConfig();
296
- }
297
- ngOnInit() {
298
- this.translate.get(this.config.languages).subscribe((labels) => {
299
- for (const i in labels) {
300
- if (labels[i]) {
301
- this.labels.push(labels[i]);
302
- }
303
- }
304
- this.initializeForms();
305
- });
306
- }
307
- onTagChanged(tabIndex) {
308
- console.log('cauca-material, onTabChanged', tabIndex);
309
- }
310
- getErrorMessage(index) {
311
- return this.forms[index].hasError('required') ? 'error.required' : '';
312
- }
313
- initializeForms() {
314
- this.labels.forEach((item, index) => {
315
- this.forms[index] = new UntypedFormControl('', [Validators.required]);
316
- this.forms[index].setValue(this.value[index] || '');
317
- });
318
- }
319
- static { this.ɵfac = function CaucaInputMultipleLangueComponent_Factory(t) { return new (t || CaucaInputMultipleLangueComponent)(i0.ɵɵdirectiveInject(i1$2.CaucaCoreService), i0.ɵɵdirectiveInject(i1$2.TranslateService)); }; }
320
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputMultipleLangueComponent, selectors: [["cauca-input-multiple-langue"]], inputs: { value: "value" }, decls: 2, vars: 2, consts: [[3, "selectedIndex", "selectedIndexChange"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label"], ["hideRequiredMarker", "never"], ["matInput", "", "required", "required", 3, "placeholder", "formControl"], [4, "ngIf"]], template: function CaucaInputMultipleLangueComponent_Template(rf, ctx) { if (rf & 1) {
321
- i0.ɵɵelementStart(0, "mat-tab-group", 0);
322
- i0.ɵɵlistener("selectedIndexChange", function CaucaInputMultipleLangueComponent_Template_mat_tab_group_selectedIndexChange_0_listener($event) { return ctx.onTagChanged($event); });
323
- i0.ɵɵtemplate(1, CaucaInputMultipleLangueComponent_mat_tab_1_Template, 4, 4, "mat-tab", 1);
324
- i0.ɵɵelementEnd();
325
- } if (rf & 2) {
326
- i0.ɵɵproperty("selectedIndex", ctx.selectedIndex);
327
- i0.ɵɵadvance(1);
328
- i0.ɵɵproperty("ngForOf", ctx.labels);
329
- } }, 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%}"] }); }
330
- }
331
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputMultipleLangueComponent, [{
332
- type: Component,
333
- 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"] }]
334
- }], () => [{ type: i1$2.CaucaCoreService }, { type: i1$2.TranslateService }], { value: [{
335
- type: Input
336
- }] }); })();
337
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputMultipleLangueComponent, { className: "CaucaInputMultipleLangueComponent", filePath: "lib\\cauca-input-multiple-langue\\cauca-input-multiple-langue.component.ts", lineNumber: 10 }); })();
67
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMaterialComponent, { className: "CaucaMaterialComponent", filePath: "lib\\cauca-material.component.ts", lineNumber: 10 }); })();
338
68
 
339
69
  function CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
340
70
  i0.ɵɵelement(0, "fa-icon", 8);
341
71
  } if (rf & 2) {
342
- const menu_r1 = i0.ɵɵnextContext(2).$implicit;
343
- i0.ɵɵproperty("icon", menu_r1.icon);
72
+ const menu_r2 = i0.ɵɵnextContext(2).$implicit;
73
+ i0.ɵɵproperty("icon", menu_r2.icon);
344
74
  } }
345
75
  function CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
346
76
  i0.ɵɵelement(0, "img", 9);
347
77
  } if (rf & 2) {
348
- const menu_r1 = i0.ɵɵnextContext(2).$implicit;
349
- i0.ɵɵproperty("src", menu_r1.icon, i0.ɵɵsanitizeUrl);
78
+ const menu_r2 = i0.ɵɵnextContext(2).$implicit;
79
+ i0.ɵɵproperty("src", menu_r2.icon, i0.ɵɵsanitizeUrl);
350
80
  } }
351
81
  function CaucaMenuVerticalComponent_h4_0_div_2_Template(rf, ctx) { if (rf & 1) {
352
82
  i0.ɵɵelementStart(0, "div", 5);
353
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);
354
84
  i0.ɵɵelementEnd();
355
85
  } if (rf & 2) {
356
- const menu_r1 = i0.ɵɵnextContext().$implicit;
357
- i0.ɵɵadvance(1);
358
- i0.ɵɵproperty("ngIf", menu_r1.icon.filter !== undefined);
359
- i0.ɵɵadvance(1);
360
- i0.ɵɵproperty("ngIf", menu_r1.icon.filter === undefined);
86
+ const menu_r2 = i0.ɵɵnextContext().$implicit;
87
+ i0.ɵɵadvance();
88
+ i0.ɵɵproperty("ngIf", menu_r2.icon.filter !== undefined);
89
+ i0.ɵɵadvance();
90
+ i0.ɵɵproperty("ngIf", menu_r2.icon.filter === undefined);
361
91
  } }
362
92
  function CaucaMenuVerticalComponent_h4_0_div_3_Template(rf, ctx) { if (rf & 1) {
363
93
  i0.ɵɵelementStart(0, "div", 10)(1, "span");
@@ -365,9 +95,9 @@ function CaucaMenuVerticalComponent_h4_0_div_3_Template(rf, ctx) { if (rf & 1) {
365
95
  i0.ɵɵpipe(3, "translate");
366
96
  i0.ɵɵelementEnd()();
367
97
  } if (rf & 2) {
368
- const menu_r1 = i0.ɵɵnextContext().$implicit;
98
+ const menu_r2 = i0.ɵɵnextContext().$implicit;
369
99
  i0.ɵɵadvance(2);
370
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, menu_r1.label));
100
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, menu_r2.label));
371
101
  } }
372
102
  function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
373
103
  i0.ɵɵelementStart(0, "div", 15);
@@ -377,25 +107,25 @@ function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template(rf, ctx) { i
377
107
  function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
378
108
  i0.ɵɵelement(0, "fa-icon", 8);
379
109
  } if (rf & 2) {
380
- const submenu_r12 = i0.ɵɵnextContext(2).$implicit;
381
- i0.ɵɵproperty("icon", submenu_r12.icon);
110
+ const submenu_r5 = i0.ɵɵnextContext(2).$implicit;
111
+ i0.ɵɵproperty("icon", submenu_r5.icon);
382
112
  } }
383
113
  function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
384
114
  i0.ɵɵelement(0, "img", 9);
385
115
  } if (rf & 2) {
386
- const submenu_r12 = i0.ɵɵnextContext(2).$implicit;
387
- i0.ɵɵproperty("src", submenu_r12.icon, i0.ɵɵsanitizeUrl);
116
+ const submenu_r5 = i0.ɵɵnextContext(2).$implicit;
117
+ i0.ɵɵproperty("src", submenu_r5.icon, i0.ɵɵsanitizeUrl);
388
118
  } }
389
119
  function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
390
120
  i0.ɵɵelementStart(0, "div", 5);
391
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);
392
122
  i0.ɵɵelementEnd();
393
123
  } if (rf & 2) {
394
- const submenu_r12 = i0.ɵɵnextContext().$implicit;
395
- i0.ɵɵadvance(1);
396
- i0.ɵɵproperty("ngIf", submenu_r12.icon.filter !== undefined);
397
- i0.ɵɵadvance(1);
398
- i0.ɵɵproperty("ngIf", submenu_r12.icon.filter === undefined);
124
+ const submenu_r5 = i0.ɵɵnextContext().$implicit;
125
+ i0.ɵɵadvance();
126
+ i0.ɵɵproperty("ngIf", submenu_r5.icon.filter !== undefined);
127
+ i0.ɵɵadvance();
128
+ i0.ɵɵproperty("ngIf", submenu_r5.icon.filter === undefined);
399
129
  } }
400
130
  function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
401
131
  i0.ɵɵelementStart(0, "div", 10)(1, "span");
@@ -403,52 +133,52 @@ function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template(rf, ctx) { i
403
133
  i0.ɵɵpipe(3, "translate");
404
134
  i0.ɵɵelementEnd()();
405
135
  } if (rf & 2) {
406
- const submenu_r12 = i0.ɵɵnextContext().$implicit;
136
+ const submenu_r5 = i0.ɵɵnextContext().$implicit;
407
137
  i0.ɵɵadvance(2);
408
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, submenu_r12.label));
138
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, submenu_r5.label));
409
139
  } }
410
140
  function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template(rf, ctx) { if (rf & 1) {
411
- const _r23 = i0.ɵɵgetCurrentView();
141
+ const _r4 = i0.ɵɵgetCurrentView();
412
142
  i0.ɵɵelementStart(0, "div", 13);
413
- i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template_div_click_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r23); const submenu_r12 = restoredCtx.$implicit; const ctx_r22 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r22.goTo(submenu_r12.path, $event)); });
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)); });
414
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);
415
145
  i0.ɵɵelementEnd();
416
146
  } if (rf & 2) {
417
- const submenu_r12 = ctx.$implicit;
418
- i0.ɵɵclassMap(submenu_r12.activated ? "menu selected" : "menu");
419
- i0.ɵɵadvance(1);
420
- i0.ɵɵproperty("ngIf", !submenu_r12.icon);
421
- i0.ɵɵadvance(1);
422
- i0.ɵɵproperty("ngIf", submenu_r12.icon);
423
- i0.ɵɵadvance(1);
424
- i0.ɵɵproperty("ngIf", submenu_r12.label);
147
+ const submenu_r5 = ctx.$implicit;
148
+ i0.ɵɵclassMap(submenu_r5.activated ? "menu selected" : "menu");
149
+ i0.ɵɵadvance();
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);
425
155
  } }
426
156
  function CaucaMenuVerticalComponent_h4_0_div_4_Template(rf, ctx) { if (rf & 1) {
427
157
  i0.ɵɵelementStart(0, "div", 11);
428
158
  i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template, 4, 5, "div", 12);
429
159
  i0.ɵɵelementEnd();
430
160
  } if (rf & 2) {
431
- const menu_r1 = i0.ɵɵnextContext().$implicit;
432
- i0.ɵɵadvance(1);
433
- i0.ɵɵproperty("ngForOf", menu_r1.childs);
161
+ const menu_r2 = i0.ɵɵnextContext().$implicit;
162
+ i0.ɵɵadvance();
163
+ i0.ɵɵproperty("ngForOf", menu_r2.childs);
434
164
  } }
435
165
  function CaucaMenuVerticalComponent_h4_0_Template(rf, ctx) { if (rf & 1) {
436
- const _r26 = i0.ɵɵgetCurrentView();
166
+ const _r1 = i0.ɵɵgetCurrentView();
437
167
  i0.ɵɵelementStart(0, "h4")(1, "div", 1);
438
- i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_Template_div_click_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r26); const menu_r1 = restoredCtx.$implicit; const ctx_r25 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r25.goTo(menu_r1.path, $event)); });
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)); });
439
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);
440
170
  i0.ɵɵelementEnd();
441
171
  i0.ɵɵtemplate(4, CaucaMenuVerticalComponent_h4_0_div_4_Template, 2, 1, "div", 4);
442
172
  i0.ɵɵelementEnd();
443
173
  } if (rf & 2) {
444
- const menu_r1 = ctx.$implicit;
445
- i0.ɵɵclassMap(menu_r1.activated ? "selected" : "");
174
+ const menu_r2 = ctx.$implicit;
175
+ i0.ɵɵclassMap(menu_r2.activated ? "selected" : "");
446
176
  i0.ɵɵadvance(2);
447
- i0.ɵɵproperty("ngIf", menu_r1.icon);
448
- i0.ɵɵadvance(1);
449
- i0.ɵɵproperty("ngIf", menu_r1.label);
450
- i0.ɵɵadvance(1);
451
- i0.ɵɵproperty("ngIf", menu_r1.childs.length && menu_r1.activated);
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);
452
182
  } }
453
183
  class CaucaMenuVerticalComponent {
454
184
  constructor(router) {
@@ -478,27 +208,35 @@ class CaucaMenuVerticalComponent {
478
208
  });
479
209
  });
480
210
  }
481
- static { this.ɵfac = function CaucaMenuVerticalComponent_Factory(t) { return new (t || CaucaMenuVerticalComponent)(i0.ɵɵdirectiveInject(i1$3.Router)); }; }
482
- 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) {
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) {
483
213
  i0.ɵɵtemplate(0, CaucaMenuVerticalComponent_h4_0_Template, 5, 5, "h4", 0);
484
214
  } if (rf & 2) {
485
215
  i0.ɵɵproperty("ngForOf", ctx.menuItems);
486
- } }, dependencies: [i2.NgForOf, i2.NgIf, i3$1.FaIconComponent, i1.TranslatePipe], styles: [".menu[_ngcontent-%COMP%], .submenu[_ngcontent-%COMP%]{cursor:pointer}h4[_ngcontent-%COMP%]{margin:0;padding:0}h4[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{padding:1em 0;display:flex;flex-direction:row}h4[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 1 auto;align-self:center}.menu-dot[_ngcontent-%COMP%]{max-width:1.1em;text-align:center;margin-right:.5em;font-size:2em}.menu-icon[_ngcontent-%COMP%]{max-width:60px;text-align:center;margin-right:.5em}.submenu[_ngcontent-%COMP%]{margin-left:1em}.submenu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{padding:0;font-size:.9em;line-height:2.2em}.submenu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]:before{content:\"\";margin-left:1.1em;width:.1em;height:2.5em;position:relative;background:#ffffff;margin-right:-1.17em}"] }); }
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}"] }); }
487
218
  }
488
219
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuVerticalComponent, [{
489
220
  type: Component,
490
- args: [{ selector: 'cauca-menu-vertical', template: "<h4 *ngFor=\"let menu of menuItems\" [class]=\"menu.activated ? 'selected' : ''\">\n <div (click)=\"goTo(menu.path, $event)\" class=\"menu\">\n <div *ngIf=\"menu.icon\" class=\"menu-icon\">\n <fa-icon *ngIf=\"menu.icon.filter !== undefined\" [icon]=\"menu.icon\"></fa-icon>\n <img *ngIf=\"menu.icon.filter === undefined\" [src]=\"menu.icon\" />\n </div>\n <div *ngIf=\"menu.label\" class=\"menu-caption\">\n <span>{{menu.label | translate}}</span>\n </div>\n </div>\n <div *ngIf=\"menu.childs.length && menu.activated\" class=\"submenu\">\n <div\n *ngFor=\"let submenu of menu.childs\"\n [class]=\"submenu.activated ? 'menu selected' : 'menu'\"\n (click)=\"goTo(submenu.path, $event)\">\n <div *ngIf=\"!submenu.icon\" class=\"menu-dot\">&bull;</div>\n <div *ngIf=\"submenu.icon\" class=\"menu-icon\">\n <fa-icon *ngIf=\"submenu.icon.filter !== undefined\" [icon]=\"submenu.icon\"></fa-icon>\n <img *ngIf=\"submenu.icon.filter === undefined\" [src]=\"submenu.icon\" />\n </div>\n <div *ngIf=\"submenu.label\" class=\"menu-caption\">\n <span>{{submenu.label | translate}}</span>\n </div>\n </div>\n </div>\n</h4>\n", styles: [".menu,.submenu{cursor:pointer}h4{margin:0;padding:0}h4 .menu{padding:1em 0;display:flex;flex-direction:row}h4 .menu>div{flex:1 1 auto;align-self:center}.menu-dot{max-width:1.1em;text-align:center;margin-right:.5em;font-size:2em}.menu-icon{max-width:60px;text-align:center;margin-right:.5em}.submenu{margin-left:1em}.submenu .menu{padding:0;font-size:.9em;line-height:2.2em}.submenu .menu:before{content:\"\";margin-left:1.1em;width:.1em;height:2.5em;position:relative;background:#ffffff;margin-right:-1.17em}\n"] }]
491
- }], () => [{ type: i1$3.Router }], { itemClick: [{
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\">&bull;</div>\n <div *ngIf=\"submenu.icon\" class=\"menu-icon\">\n <fa-icon *ngIf=\"submenu.icon.filter !== undefined\" [icon]=\"submenu.icon\"></fa-icon>\n <img *ngIf=\"submenu.icon.filter === undefined\" [src]=\"submenu.icon\" />\n </div>\n <div *ngIf=\"submenu.label\" class=\"menu-caption\">\n <span>{{submenu.label | translate}}</span>\n </div>\n </div>\n </div>\n</h4>\n", styles: [".menu,.submenu{cursor:pointer}h4{margin:0;padding:0}h4 .menu{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: [{
492
228
  type: Output
493
229
  }], menuItems: [{
494
230
  type: Input
495
231
  }] }); })();
496
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuVerticalComponent, { className: "CaucaMenuVerticalComponent", filePath: "lib\\cauca-menu-vertical\\cauca-menu-vertical.component.ts", lineNumber: 10 }); })();
232
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuVerticalComponent, { className: "CaucaMenuVerticalComponent", filePath: "lib\\cauca-menu-vertical\\cauca-menu-vertical.component.ts", lineNumber: 20 }); })();
497
233
 
234
+ const _c0$7 = [[["", "header", ""]], [["", "beforeMenu", ""]], [["", "afterMenu", ""]], [["", "footer", ""]]];
235
+ const _c1$1 = ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"];
498
236
  function CaucaMenuSidebarComponent_div_12_Template(rf, ctx) { if (rf & 1) {
499
- const _r3 = i0.ɵɵgetCurrentView();
237
+ const _r2 = i0.ɵɵgetCurrentView();
500
238
  i0.ɵɵelementStart(0, "div", 7)(1, "div", 8);
501
- i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_div_12_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onToggleCollapse()); });
239
+ i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_div_12_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onToggleCollapse()); });
502
240
  i0.ɵɵelementEnd();
503
241
  i0.ɵɵelementStart(2, "span", 9);
504
242
  i0.ɵɵtext(3);
@@ -508,14 +246,12 @@ function CaucaMenuSidebarComponent_div_12_Template(rf, ctx) { if (rf & 1) {
508
246
  i0.ɵɵtext(6);
509
247
  i0.ɵɵelementEnd()();
510
248
  } if (rf & 2) {
511
- const ctx_r1 = i0.ɵɵnextContext();
249
+ const ctx_r2 = i0.ɵɵnextContext();
512
250
  i0.ɵɵadvance(3);
513
- i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(4, 3, "material.version"), " ", ctx_r1.version, "");
251
+ i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(4, 3, "material.version"), " ", ctx_r2.version, "");
514
252
  i0.ɵɵadvance(3);
515
- i0.ɵɵtextInterpolate(ctx_r1.version);
253
+ i0.ɵɵtextInterpolate(ctx_r2.version);
516
254
  } }
517
- const _c0$2 = [[["", "header", ""]], [["", "beforeMenu", ""]], [["", "afterMenu", ""]], [["", "footer", ""]]];
518
- const _c1 = ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"];
519
255
  class CaucaMenuSidebarComponent {
520
256
  constructor(element) {
521
257
  this.menuItems = [];
@@ -594,19 +330,20 @@ class CaucaMenuSidebarComponent {
594
330
  static { this.ɵfac = function CaucaMenuSidebarComponent_Factory(t) { return new (t || CaucaMenuSidebarComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
595
331
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuSidebarComponent, selectors: [["cauca-menu-sidebar"]], hostBindings: function CaucaMenuSidebarComponent_HostBindings(rf, ctx) { if (rf & 1) {
596
332
  i0.ɵɵlistener("resize", function CaucaMenuSidebarComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
597
- } }, inputs: { menuItems: "menuItems", version: "version" }, ngContentSelectors: _c1, decls: 13, vars: 2, consts: [[1, "header"], ["mat-icon-button", "", 1, "close", 3, "click"], [1, "content"], [3, "menuItems", "itemClick"], ["menu", ""], [1, "footer"], ["class", "version", 4, "ngIf"], [1, "version"], [1, "double-arrow", 3, "click"], [1, "full"], [1, "abbr"]], template: function CaucaMenuSidebarComponent_Template(rf, ctx) { if (rf & 1) {
598
- i0.ɵɵprojectionDef(_c0$2);
599
- i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
600
- i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_Template_button_click_1_listener() { return ctx.hideOnMobile(); });
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) {
334
+ const _r1 = i0.ɵɵgetCurrentView();
335
+ i0.ɵɵprojectionDef(_c0$7);
336
+ i0.ɵɵelementStart(0, "div", 1)(1, "button", 2);
337
+ i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.hideOnMobile()); });
601
338
  i0.ɵɵelementStart(2, "mat-icon");
602
339
  i0.ɵɵtext(3, "clear");
603
340
  i0.ɵɵelementEnd()();
604
341
  i0.ɵɵprojection(4);
605
342
  i0.ɵɵelementEnd();
606
- i0.ɵɵelementStart(5, "div", 2);
343
+ i0.ɵɵelementStart(5, "div", 3);
607
344
  i0.ɵɵprojection(6, 1);
608
- i0.ɵɵelementStart(7, "cauca-menu-vertical", 3, 4);
609
- i0.ɵɵlistener("itemClick", function CaucaMenuSidebarComponent_Template_cauca_menu_vertical_itemClick_7_listener() { return ctx.onMenuItemClick(); });
345
+ i0.ɵɵelementStart(7, "cauca-menu-vertical", 4, 0);
346
+ i0.ɵɵlistener("itemClick", function CaucaMenuSidebarComponent_Template_cauca_menu_vertical_itemClick_7_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onMenuItemClick()); });
610
347
  i0.ɵɵelementEnd();
611
348
  i0.ɵɵprojection(9, 2);
612
349
  i0.ɵɵelementEnd();
@@ -619,231 +356,1616 @@ class CaucaMenuSidebarComponent {
619
356
  i0.ɵɵproperty("menuItems", ctx.menuItems);
620
357
  i0.ɵɵadvance(5);
621
358
  i0.ɵɵproperty("ngIf", ctx.version);
622
- } }, dependencies: [i2.NgIf, i4.MatIconButton, i5.MatIcon, CaucaMenuVerticalComponent, i1.TranslatePipe], styles: ["[_nghost-%COMP%]{height:100%;flex-direction:column;display:flex;transition:all .1s ease-out;overflow:hidden;scrollbar-width:5px;scrollbar-color:rgba(0,0,0,.1) rgba(0,0,0,.2)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-radius:5px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.1)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:5px;background-color:#0003;outline:1px solid slategrey}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] > .header[_ngcontent-%COMP%], [_nghost-%COMP%] > .footer[_ngcontent-%COMP%]{flex:0 0 auto}[_nghost-%COMP%] > .content[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden auto}[_nghost-%COMP%] > .version[_ngcontent-%COMP%]{max-height:1em}.hidden[_nghost-%COMP%]{width:0;min-width:0;max-width:0}.mobile[_nghost-%COMP%]{width:275px;min-width:275px;max-width:275px;position:absolute;z-index:10}.collapsed[_nghost-%COMP%]{width:75px;min-width:75px;max-width:75px}.expanded[_nghost-%COMP%]{width:275px;min-width:275px;max-width:275px}[_nghost-%COMP%] .close[_ngcontent-%COMP%]{display:none}.mobile[_nghost-%COMP%] .close[_ngcontent-%COMP%]{right:0;display:inline-block;position:absolute}.double-arrow[_ngcontent-%COMP%]{height:3em;line-height:3em;cursor:pointer;position:fixed;opacity:.25;margin-top:-1em}.double-arrow[_ngcontent-%COMP%]:hover{opacity:1}.expanded[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]:before, .collapsed[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]:before{font-family:Material Icons;content:\"double_arrow\";font-size:3em;text-align:right}.collapsed[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]{margin-left:10px}.expanded[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]{margin-left:200px}.collapsed[_nghost-%COMP%] .menu-caption, .collapsed[_nghost-%COMP%] .submenu{display:none}.keepExpanded[_nghost-%COMP%] .double-arrow[_ngcontent-%COMP%]{transform:rotate(180deg);opacity:1}.version[_ngcontent-%COMP%]{bottom:0;padding:1em}.full[_ngcontent-%COMP%], .abbr[_ngcontent-%COMP%]{display:none}.collapsed[_nghost-%COMP%] .abbr[_ngcontent-%COMP%]{display:inline}.mobile[_nghost-%COMP%] .full[_ngcontent-%COMP%], .expanded[_nghost-%COMP%] .full[_ngcontent-%COMP%]{display:inline}@media only screen and (max-width: 1000px){.double-arrow[_ngcontent-%COMP%]{display:none}}"] }); }
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
+ class CaucaMaterialModule {
581
+ static { this.ɵfac = function CaucaMaterialModule_Factory(t) { return new (t || CaucaMaterialModule)(); }; }
582
+ static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CaucaMaterialModule }); }
583
+ static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CaucaInputFileComponent,
584
+ CaucaMaterialComponent,
585
+ CaucaInputMultipleLangueComponent,
586
+ CaucaMenuSidebarComponent,
587
+ CaucaMenuVerticalComponent,
588
+ CaucaSimpleDialogComponent] }); }
589
+ }
590
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialModule, [{
591
+ type: NgModule,
592
+ args: [{
593
+ imports: [
594
+ CaucaInputFileComponent,
595
+ CaucaMaterialComponent,
596
+ CaucaInputMultipleLangueComponent,
597
+ CaucaMenuSidebarComponent,
598
+ CaucaMenuVerticalComponent,
599
+ CaucaSimpleDialogComponent,
600
+ CaucaSlideshowComponent,
601
+ ],
602
+ exports: [
603
+ CaucaMaterialComponent,
604
+ CaucaInputFileComponent,
605
+ CaucaInputMultipleLangueComponent,
606
+ CaucaMenuSidebarComponent,
607
+ CaucaMenuVerticalComponent,
608
+ CaucaSimpleDialogComponent,
609
+ CaucaSlideshowComponent,
610
+ ],
611
+ }]
612
+ }], null, null); })();
613
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CaucaMaterialModule, { imports: [CaucaInputFileComponent,
614
+ CaucaMaterialComponent,
615
+ CaucaInputMultipleLangueComponent,
616
+ CaucaMenuSidebarComponent,
617
+ CaucaMenuVerticalComponent,
618
+ CaucaSimpleDialogComponent,
619
+ CaucaSlideshowComponent], exports: [CaucaMaterialComponent,
620
+ CaucaInputFileComponent,
621
+ CaucaInputMultipleLangueComponent,
622
+ CaucaMenuSidebarComponent,
623
+ CaucaMenuVerticalComponent,
624
+ CaucaSimpleDialogComponent,
625
+ CaucaSlideshowComponent] }); })();
626
+
627
+ class BaseButton {
628
+ constructor() {
629
+ this.color = input(undefined);
630
+ this.icon = input();
631
+ this.iconAlignment = input('left');
632
+ this.isDisabled = input(false);
633
+ this.isInProgress = input(false);
634
+ this.showIcon = computed(() => !!this.icon() || this.isInProgress());
635
+ this.iconToShow = computed(() => this.isInProgress() ? 'update' : this.icon());
636
+ this.buttonDisabled = computed(() => this.isDisabled() || this.isInProgress());
637
+ this.buttonClick = output();
638
+ }
639
+ static { this.ɵfac = function BaseButton_Factory(t) { return new (t || BaseButton)(); }; }
640
+ 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" } }); }
641
+ }
642
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButton, [{
643
+ type: Directive
644
+ }], null, null); })();
645
+ class BaseButtonWithLabel extends BaseButton {
646
+ constructor() {
647
+ super(...arguments);
648
+ this.translateLabel = input(true);
649
+ this.label = input();
650
+ }
651
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBaseButtonWithLabel_BaseFactory; return function BaseButtonWithLabel_Factory(t) { return (ɵBaseButtonWithLabel_BaseFactory || (ɵBaseButtonWithLabel_BaseFactory = i0.ɵɵgetInheritedFactory(BaseButtonWithLabel)))(t || BaseButtonWithLabel); }; })(); }
652
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseButtonWithLabel, inputs: { translateLabel: [1, "translateLabel"], label: [1, "label"] }, features: [i0.ɵɵInheritDefinitionFeature] }); }
653
+ }
654
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseButtonWithLabel, [{
655
+ type: Directive
656
+ }], null, null); })();
657
+
658
+ function BasicButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
659
+ i0.ɵɵelementStart(0, "mat-icon");
660
+ i0.ɵɵtext(1);
661
+ i0.ɵɵelementEnd();
662
+ } if (rf & 2) {
663
+ const ctx_r0 = i0.ɵɵnextContext();
664
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
665
+ i0.ɵɵadvance();
666
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
667
+ } }
668
+ function BasicButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
669
+ i0.ɵɵtext(0);
670
+ i0.ɵɵpipe(1, "translate");
671
+ } if (rf & 2) {
672
+ const ctx_r0 = i0.ɵɵnextContext();
673
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
674
+ } }
675
+ function BasicButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
676
+ i0.ɵɵtext(0);
677
+ } if (rf & 2) {
678
+ const ctx_r0 = i0.ɵɵnextContext();
679
+ i0.ɵɵtextInterpolate(ctx_r0.label());
680
+ } }
681
+ function BasicButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
682
+ i0.ɵɵelementStart(0, "mat-icon");
683
+ i0.ɵɵtext(1);
684
+ i0.ɵɵelementEnd();
685
+ } if (rf & 2) {
686
+ const ctx_r0 = i0.ɵɵnextContext();
687
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
688
+ i0.ɵɵadvance();
689
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
690
+ } }
691
+ class BasicButtonComponent extends BaseButtonWithLabel {
692
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBasicButtonComponent_BaseFactory; return function BasicButtonComponent_Factory(t) { return (ɵBasicButtonComponent_BaseFactory || (ɵBasicButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BasicButtonComponent)))(t || BasicButtonComponent); }; })(); }
693
+ 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) {
694
+ i0.ɵɵelementStart(0, "button", 0);
695
+ i0.ɵɵlistener("click", function BasicButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
696
+ 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);
697
+ i0.ɵɵelementEnd();
698
+ } if (rf & 2) {
699
+ i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
700
+ i0.ɵɵadvance();
701
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
702
+ i0.ɵɵadvance();
703
+ i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
704
+ i0.ɵɵadvance(2);
705
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
706
+ } }, 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 }); }
707
+ }
708
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BasicButtonComponent, [{
709
+ type: Component,
710
+ 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"] }]
711
+ }], null, null); })();
712
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BasicButtonComponent, { className: "BasicButtonComponent", filePath: "lib\\buttons\\basic-button\\basic-button.component.ts", lineNumber: 16 }); })();
713
+
714
+ function FlatButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
715
+ i0.ɵɵelementStart(0, "mat-icon");
716
+ i0.ɵɵtext(1);
717
+ i0.ɵɵelementEnd();
718
+ } if (rf & 2) {
719
+ const ctx_r0 = i0.ɵɵnextContext();
720
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
721
+ i0.ɵɵadvance();
722
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
723
+ } }
724
+ function FlatButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
725
+ i0.ɵɵtext(0);
726
+ i0.ɵɵpipe(1, "translate");
727
+ } if (rf & 2) {
728
+ const ctx_r0 = i0.ɵɵnextContext();
729
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
730
+ } }
731
+ function FlatButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
732
+ i0.ɵɵtext(0);
733
+ } if (rf & 2) {
734
+ const ctx_r0 = i0.ɵɵnextContext();
735
+ i0.ɵɵtextInterpolate(ctx_r0.label());
736
+ } }
737
+ function FlatButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
738
+ i0.ɵɵelementStart(0, "mat-icon");
739
+ i0.ɵɵtext(1);
740
+ i0.ɵɵelementEnd();
741
+ } if (rf & 2) {
742
+ const ctx_r0 = i0.ɵɵnextContext();
743
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
744
+ i0.ɵɵadvance();
745
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
746
+ } }
747
+ class FlatButtonComponent extends BaseButtonWithLabel {
748
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵFlatButtonComponent_BaseFactory; return function FlatButtonComponent_Factory(t) { return (ɵFlatButtonComponent_BaseFactory || (ɵFlatButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FlatButtonComponent)))(t || FlatButtonComponent); }; })(); }
749
+ 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) {
750
+ i0.ɵɵelementStart(0, "button", 0);
751
+ i0.ɵɵlistener("click", function FlatButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
752
+ 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);
753
+ i0.ɵɵelementEnd();
754
+ } if (rf & 2) {
755
+ i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
756
+ i0.ɵɵadvance();
757
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
758
+ i0.ɵɵadvance();
759
+ i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
760
+ i0.ɵɵadvance(2);
761
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
762
+ } }, 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 }); }
763
+ }
764
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FlatButtonComponent, [{
765
+ type: Component,
766
+ 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"] }]
767
+ }], null, null); })();
768
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FlatButtonComponent, { className: "FlatButtonComponent", filePath: "lib\\buttons\\flat-button\\flat-button.component.ts", lineNumber: 16 }); })();
769
+
770
+ function StrokedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
771
+ i0.ɵɵelementStart(0, "mat-icon");
772
+ i0.ɵɵtext(1);
773
+ i0.ɵɵelementEnd();
774
+ } if (rf & 2) {
775
+ const ctx_r0 = i0.ɵɵnextContext();
776
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
777
+ i0.ɵɵadvance();
778
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
779
+ } }
780
+ function StrokedButtonComponent_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
781
+ i0.ɵɵtext(0);
782
+ i0.ɵɵpipe(1, "translate");
783
+ } if (rf & 2) {
784
+ const ctx_r0 = i0.ɵɵnextContext(2);
785
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
786
+ } }
787
+ function StrokedButtonComponent_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
788
+ i0.ɵɵtext(0);
789
+ } if (rf & 2) {
790
+ const ctx_r0 = i0.ɵɵnextContext(2);
791
+ i0.ɵɵtextInterpolate(ctx_r0.label());
792
+ } }
793
+ function StrokedButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
794
+ i0.ɵɵtemplate(0, StrokedButtonComponent_Conditional_2_Conditional_0_Template, 2, 3)(1, StrokedButtonComponent_Conditional_2_Conditional_1_Template, 1, 1);
795
+ } if (rf & 2) {
796
+ const ctx_r0 = i0.ɵɵnextContext();
797
+ i0.ɵɵconditional(ctx_r0.translateLabel() ? 0 : 1);
798
+ } }
799
+ function StrokedButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
800
+ i0.ɵɵelementStart(0, "mat-icon");
801
+ i0.ɵɵtext(1);
802
+ i0.ɵɵelementEnd();
803
+ } if (rf & 2) {
804
+ const ctx_r0 = i0.ɵɵnextContext();
805
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
806
+ i0.ɵɵadvance();
807
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
808
+ } }
809
+ class StrokedButtonComponent extends BaseButtonWithLabel {
810
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵStrokedButtonComponent_BaseFactory; return function StrokedButtonComponent_Factory(t) { return (ɵStrokedButtonComponent_BaseFactory || (ɵStrokedButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(StrokedButtonComponent)))(t || StrokedButtonComponent); }; })(); }
811
+ 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) {
812
+ i0.ɵɵelementStart(0, "button", 0);
813
+ i0.ɵɵlistener("click", function StrokedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
814
+ 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);
815
+ i0.ɵɵelementEnd();
816
+ } if (rf & 2) {
817
+ i0.ɵɵclassProp("icon-only", !ctx.label());
818
+ i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
819
+ i0.ɵɵadvance();
820
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
821
+ i0.ɵɵadvance();
822
+ i0.ɵɵconditional(ctx.label() ? 2 : -1);
823
+ i0.ɵɵadvance();
824
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 3 : -1);
825
+ } }, 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 }); }
826
+ }
827
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StrokedButtonComponent, [{
828
+ type: Component,
829
+ 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"] }]
830
+ }], null, null); })();
831
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StrokedButtonComponent, { className: "StrokedButtonComponent", filePath: "lib\\buttons\\stroked-button\\stroked-button.component.ts", lineNumber: 15 }); })();
832
+
833
+ function RaisedButtonComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
834
+ i0.ɵɵelementStart(0, "mat-icon");
835
+ i0.ɵɵtext(1);
836
+ i0.ɵɵelementEnd();
837
+ } if (rf & 2) {
838
+ const ctx_r0 = i0.ɵɵnextContext();
839
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
840
+ i0.ɵɵadvance();
841
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
842
+ } }
843
+ function RaisedButtonComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
844
+ i0.ɵɵtext(0);
845
+ i0.ɵɵpipe(1, "translate");
846
+ } if (rf & 2) {
847
+ const ctx_r0 = i0.ɵɵnextContext();
848
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
849
+ } }
850
+ function RaisedButtonComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
851
+ i0.ɵɵtext(0);
852
+ } if (rf & 2) {
853
+ const ctx_r0 = i0.ɵɵnextContext();
854
+ i0.ɵɵtextInterpolate(ctx_r0.label());
855
+ } }
856
+ function RaisedButtonComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
857
+ i0.ɵɵelementStart(0, "mat-icon");
858
+ i0.ɵɵtext(1);
859
+ i0.ɵɵelementEnd();
860
+ } if (rf & 2) {
861
+ const ctx_r0 = i0.ɵɵnextContext();
862
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
863
+ i0.ɵɵadvance();
864
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
865
+ } }
866
+ class RaisedButtonComponent extends BaseButtonWithLabel {
867
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵRaisedButtonComponent_BaseFactory; return function RaisedButtonComponent_Factory(t) { return (ɵRaisedButtonComponent_BaseFactory || (ɵRaisedButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(RaisedButtonComponent)))(t || RaisedButtonComponent); }; })(); }
868
+ 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) {
869
+ i0.ɵɵelementStart(0, "button", 0);
870
+ i0.ɵɵlistener("click", function RaisedButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
871
+ 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);
872
+ i0.ɵɵelementEnd();
873
+ } if (rf & 2) {
874
+ i0.ɵɵproperty("color", ctx.color())("disabled", ctx.buttonDisabled());
875
+ i0.ɵɵadvance();
876
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
877
+ i0.ɵɵadvance();
878
+ i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
879
+ i0.ɵɵadvance(2);
880
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
881
+ } }, 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 }); }
882
+ }
883
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RaisedButtonComponent, [{
884
+ type: Component,
885
+ 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"] }]
886
+ }], null, null); })();
887
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RaisedButtonComponent, { className: "RaisedButtonComponent", filePath: "lib\\buttons\\raised-button\\raised-button.component.ts", lineNumber: 15 }); })();
888
+
889
+ class IconButtonComponent extends BaseButton {
890
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵIconButtonComponent_BaseFactory; return function IconButtonComponent_Factory(t) { return (ɵIconButtonComponent_BaseFactory || (ɵIconButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(IconButtonComponent)))(t || IconButtonComponent); }; })(); }
891
+ 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) {
892
+ i0.ɵɵelementStart(0, "button", 0);
893
+ i0.ɵɵlistener("click", function IconButtonComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
894
+ i0.ɵɵelementStart(1, "mat-icon");
895
+ i0.ɵɵtext(2);
896
+ i0.ɵɵelementEnd()();
897
+ } if (rf & 2) {
898
+ i0.ɵɵproperty("disabled", ctx.buttonDisabled());
899
+ i0.ɵɵadvance();
900
+ i0.ɵɵstyleProp("color", ctx.color());
901
+ i0.ɵɵclassProp("button-spin", ctx.isInProgress());
902
+ i0.ɵɵadvance();
903
+ i0.ɵɵtextInterpolate(ctx.iconToShow());
904
+ } }, 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 }); }
905
+ }
906
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IconButtonComponent, [{
907
+ type: Component,
908
+ 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"] }]
909
+ }], null, null); })();
910
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(IconButtonComponent, { className: "IconButtonComponent", filePath: "lib\\buttons\\icon-button\\icon-button.component.ts", lineNumber: 14 }); })();
911
+
912
+ function MenuItemComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
913
+ i0.ɵɵelementStart(0, "mat-icon");
914
+ i0.ɵɵtext(1);
915
+ i0.ɵɵelementEnd();
916
+ } if (rf & 2) {
917
+ const ctx_r0 = i0.ɵɵnextContext();
918
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
919
+ i0.ɵɵadvance();
920
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
921
+ } }
922
+ function MenuItemComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
923
+ i0.ɵɵtext(0);
924
+ i0.ɵɵpipe(1, "translate");
925
+ } if (rf & 2) {
926
+ const ctx_r0 = i0.ɵɵnextContext();
927
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, ctx_r0.label()));
928
+ } }
929
+ function MenuItemComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
930
+ i0.ɵɵtext(0);
931
+ } if (rf & 2) {
932
+ const ctx_r0 = i0.ɵɵnextContext();
933
+ i0.ɵɵtextInterpolate(ctx_r0.label());
934
+ } }
935
+ function MenuItemComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
936
+ i0.ɵɵelementStart(0, "mat-icon");
937
+ i0.ɵɵtext(1);
938
+ i0.ɵɵelementEnd();
939
+ } if (rf & 2) {
940
+ const ctx_r0 = i0.ɵɵnextContext();
941
+ i0.ɵɵclassProp("button-spin", ctx_r0.isInProgress());
942
+ i0.ɵɵadvance();
943
+ i0.ɵɵtextInterpolate(ctx_r0.iconToShow());
944
+ } }
945
+ class MenuItemComponent extends BaseButtonWithLabel {
946
+ constructor() {
947
+ super(...arguments);
948
+ this.translateLabel = input(false);
949
+ this.trigger = input();
950
+ }
951
+ static { this.ɵfac = /*@__PURE__*/ (() => { let ɵMenuItemComponent_BaseFactory; return function MenuItemComponent_Factory(t) { return (ɵMenuItemComponent_BaseFactory || (ɵMenuItemComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MenuItemComponent)))(t || MenuItemComponent); }; })(); }
952
+ 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) {
953
+ i0.ɵɵelementStart(0, "button", 0);
954
+ i0.ɵɵlistener("click", function MenuItemComponent_Template_button_click_0_listener() { return ctx.buttonClick.emit(); });
955
+ 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);
956
+ i0.ɵɵelementEnd();
957
+ } if (rf & 2) {
958
+ i0.ɵɵproperty("matMenuTriggerFor", ctx.trigger())("disabled", ctx.buttonDisabled());
959
+ i0.ɵɵadvance();
960
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "left" ? 1 : -1);
961
+ i0.ɵɵadvance();
962
+ i0.ɵɵconditional(ctx.translateLabel() ? 2 : 3);
963
+ i0.ɵɵadvance(2);
964
+ i0.ɵɵconditional(ctx.showIcon() && ctx.iconAlignment() === "right" ? 4 : -1);
965
+ } }, dependencies: [MatMenuItem, TranslateModule, i2.TranslatePipe, MatIcon, MatMenuTrigger], changeDetection: 0 }); }
966
+ }
967
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuItemComponent, [{
968
+ type: Component,
969
+ 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>" }]
970
+ }], null, null); })();
971
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuItemComponent, { className: "MenuItemComponent", filePath: "lib\\buttons\\menu-item\\menu-item.component.ts", lineNumber: 15 }); })();
972
+
973
+ const _c0$5 = ["*"];
974
+ const DEFAULT_DURATION$1 = 500;
975
+ class ExpandablePanelComponent {
976
+ constructor() {
977
+ this.isCollapsed = model(false);
978
+ this.title = input('');
979
+ this.subTitle = input('');
980
+ }
981
+ changeState() {
982
+ this.isCollapsed.update(value => !value);
983
+ }
984
+ static { this.ɵfac = function ExpandablePanelComponent_Factory(t) { return new (t || ExpandablePanelComponent)(); }; }
985
+ 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$5, 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) {
986
+ i0.ɵɵprojectionDef();
987
+ i0.ɵɵelementStart(0, "section")(1, "div", 0);
988
+ i0.ɵɵlistener("click", function ExpandablePanelComponent_Template_div_click_1_listener() { return ctx.changeState(); });
989
+ i0.ɵɵelementStart(2, "mat-icon");
990
+ i0.ɵɵtext(3, "expand_less");
991
+ i0.ɵɵelementEnd();
992
+ i0.ɵɵelementStart(4, "div")(5, "div", 1);
993
+ i0.ɵɵtext(6);
994
+ i0.ɵɵelementEnd();
995
+ i0.ɵɵelementStart(7, "div", 2);
996
+ i0.ɵɵtext(8);
997
+ i0.ɵɵelementEnd()()();
998
+ i0.ɵɵelementStart(9, "div", 3);
999
+ i0.ɵɵprojection(10);
1000
+ i0.ɵɵelementEnd()();
1001
+ } if (rf & 2) {
1002
+ i0.ɵɵadvance(2);
1003
+ i0.ɵɵproperty("@arrow-collapse", ctx.isCollapsed());
1004
+ i0.ɵɵadvance(4);
1005
+ i0.ɵɵtextInterpolate(ctx.title());
1006
+ i0.ɵɵadvance(2);
1007
+ i0.ɵɵtextInterpolate(ctx.subTitle());
1008
+ i0.ɵɵadvance();
1009
+ i0.ɵɵproperty("@collapse", ctx.isCollapsed());
1010
+ } }, 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: [
1011
+ trigger('collapse', [
1012
+ state('false', style({ height: AUTO_STYLE, opacity: 1, visibility: AUTO_STYLE })),
1013
+ state('true', style({ height: '0', opacity: 0, visibility: 'hidden' })),
1014
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
1015
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
1016
+ ]),
1017
+ trigger('arrow-collapse', [
1018
+ state('false', style({ transform: 'rotate(0deg)' })),
1019
+ state('true', style({ transform: 'rotate(180deg)' })),
1020
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
1021
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
1022
+ ])
1023
+ ] }, changeDetection: 0 }); }
1024
+ }
1025
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExpandablePanelComponent, [{
1026
+ type: Component,
1027
+ args: [{ selector: 'app-expandable-panel', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon], animations: [
1028
+ trigger('collapse', [
1029
+ state('false', style({ height: AUTO_STYLE, opacity: 1, visibility: AUTO_STYLE })),
1030
+ state('true', style({ height: '0', opacity: 0, visibility: 'hidden' })),
1031
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
1032
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
1033
+ ]),
1034
+ trigger('arrow-collapse', [
1035
+ state('false', style({ transform: 'rotate(0deg)' })),
1036
+ state('true', style({ transform: 'rotate(180deg)' })),
1037
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
1038
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
1039
+ ])
1040
+ ], 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"] }]
1041
+ }], null, null); })();
1042
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ExpandablePanelComponent, { className: "ExpandablePanelComponent", filePath: "lib\\layout\\expandable-panel\\expandable-panel.component.ts", lineNumber: 29 }); })();
1043
+
1044
+ class MenuExpandablePanelItemComponent {
1045
+ constructor() {
1046
+ this.icon = input();
1047
+ this.title = input();
1048
+ this.route = input();
1049
+ this.isSubItem = input(false);
1050
+ this.action = input(null);
1051
+ this.router = inject(Router);
1052
+ }
1053
+ openRoute() {
1054
+ if (this.action()) {
1055
+ this.action()();
1056
+ }
1057
+ else {
1058
+ this.router.navigate(this.route());
1059
+ }
1060
+ }
1061
+ static { this.ɵfac = function MenuExpandablePanelItemComponent_Factory(t) { return new (t || MenuExpandablePanelItemComponent)(); }; }
1062
+ 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) {
1063
+ i0.ɵɵelementStart(0, "section", 0);
1064
+ i0.ɵɵlistener("click", function MenuExpandablePanelItemComponent_Template_section_click_0_listener() { return ctx.openRoute(); });
1065
+ i0.ɵɵelementStart(1, "mat-icon");
1066
+ i0.ɵɵtext(2);
1067
+ i0.ɵɵelementEnd();
1068
+ i0.ɵɵelementStart(3, "div");
1069
+ i0.ɵɵtext(4);
1070
+ i0.ɵɵpipe(5, "translate");
1071
+ i0.ɵɵelementEnd()();
1072
+ } if (rf & 2) {
1073
+ i0.ɵɵadvance(2);
1074
+ i0.ɵɵtextInterpolate(ctx.icon());
1075
+ i0.ɵɵadvance();
1076
+ i0.ɵɵclassMap(ctx.isSubItem() ? "subtitle2" : "subtitle1");
1077
+ i0.ɵɵadvance();
1078
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, ctx.title()));
1079
+ } }, dependencies: [MatIconModule, i1$1.MatIcon, TranslateModule, i2.TranslatePipe], styles: ["section[_ngcontent-%COMP%]{display:flex;gap:16px;padding:16px 24px}"] }); }
1080
+ }
1081
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelItemComponent, [{
1082
+ type: Component,
1083
+ 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"] }]
1084
+ }], null, null); })();
1085
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelItemComponent, { className: "MenuExpandablePanelItemComponent", filePath: "lib\\layout\\menu-expandable-panel-item\\menu-expandable-panel-item.component.ts", lineNumber: 13 }); })();
1086
+
1087
+ const _forTrack0 = ($index, $item) => $item.title;
1088
+ function MenuExpandablePanelComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
1089
+ i0.ɵɵelementStart(0, "div", 2);
1090
+ i0.ɵɵtext(1);
1091
+ i0.ɵɵpipe(2, "translate");
1092
+ i0.ɵɵelementEnd();
1093
+ } if (rf & 2) {
1094
+ const ctx_r0 = i0.ɵɵnextContext();
1095
+ i0.ɵɵadvance();
1096
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.subTitle()));
1097
+ } }
1098
+ function MenuExpandablePanelComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
1099
+ i0.ɵɵelementStart(0, "mat-icon");
1100
+ i0.ɵɵtext(1, "arrow_forward_ios");
1101
+ i0.ɵɵelementEnd();
1102
+ } if (rf & 2) {
1103
+ const ctx_r0 = i0.ɵɵnextContext();
1104
+ i0.ɵɵproperty("@arrow-collapse", ctx_r0.opened());
1105
+ } }
1106
+ function MenuExpandablePanelComponent_Conditional_9_For_1_Template(rf, ctx) { if (rf & 1) {
1107
+ i0.ɵɵelement(0, "app-menu-expandable-panel-item", 3);
1108
+ } if (rf & 2) {
1109
+ const item_r2 = ctx.$implicit;
1110
+ i0.ɵɵproperty("icon", item_r2.icon)("title", item_r2.title)("route", item_r2.route)("isSubItem", true)("action", item_r2.action);
1111
+ } }
1112
+ function MenuExpandablePanelComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
1113
+ i0.ɵɵrepeaterCreate(0, MenuExpandablePanelComponent_Conditional_9_For_1_Template, 1, 5, "app-menu-expandable-panel-item", 3, _forTrack0);
1114
+ } if (rf & 2) {
1115
+ const ctx_r0 = i0.ɵɵnextContext();
1116
+ i0.ɵɵrepeater(ctx_r0.items());
1117
+ } }
1118
+ const DEFAULT_DURATION = 200;
1119
+ class MenuExpandablePanelComponent {
1120
+ constructor() {
1121
+ this.title = input();
1122
+ this.isSubItem = input(false);
1123
+ this.subTitle = input();
1124
+ this.menuIcon = input();
1125
+ this.showExpansionIcon = input(true);
1126
+ this.addTopBorderRadius = input(false);
1127
+ this.bottomBorder = input(false);
1128
+ this.addBottomBorderRadius = input(false);
1129
+ this.route = input([]);
1130
+ this.items = input([]);
1131
+ this.opened = signal(false);
1132
+ this.router = inject(Router);
1133
+ }
1134
+ get topLeftRadius() {
1135
+ return this.addTopBorderRadius() ? '12px' : '0px';
1136
+ }
1137
+ get topRightRadius() {
1138
+ return this.addTopBorderRadius() ? '12px' : '0px';
1139
+ }
1140
+ get bottomLeftRadius() {
1141
+ return this.addBottomBorderRadius() ? '12px' : '0px';
1142
+ }
1143
+ get bottomRightRadius() {
1144
+ return this.addBottomBorderRadius() ? '12px' : '0px';
1145
+ }
1146
+ get bottomBorderClass() {
1147
+ return this.bottomBorder();
1148
+ }
1149
+ handleClick() {
1150
+ if (this.route().length > 0 && this.items().length === 0) {
1151
+ this.router.navigate(this.route());
1152
+ }
1153
+ else {
1154
+ this.opened.set(!this.opened());
1155
+ }
1156
+ }
1157
+ static { this.ɵfac = function MenuExpandablePanelComponent_Factory(t) { return new (t || MenuExpandablePanelComponent)(); }; }
1158
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuExpandablePanelComponent, selectors: [["app-menu-expandable-panel"]], hostVars: 10, hostBindings: function MenuExpandablePanelComponent_HostBindings(rf, ctx) { if (rf & 2) {
1159
+ 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);
1160
+ i0.ɵɵclassProp("bottom-border", ctx.bottomBorderClass);
1161
+ } }, 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) {
1162
+ i0.ɵɵelementStart(0, "section", 0);
1163
+ i0.ɵɵlistener("click", function MenuExpandablePanelComponent_Template_section_click_0_listener() { return ctx.handleClick(); });
1164
+ i0.ɵɵelementStart(1, "mat-icon");
1165
+ i0.ɵɵtext(2);
1166
+ i0.ɵɵelementEnd();
1167
+ i0.ɵɵelementStart(3, "div")(4, "div", 1);
1168
+ i0.ɵɵtext(5);
1169
+ i0.ɵɵpipe(6, "translate");
1170
+ i0.ɵɵelementEnd();
1171
+ i0.ɵɵtemplate(7, MenuExpandablePanelComponent_Conditional_7_Template, 3, 3, "div", 2);
1172
+ i0.ɵɵelementEnd();
1173
+ i0.ɵɵtemplate(8, MenuExpandablePanelComponent_Conditional_8_Template, 2, 1, "mat-icon");
1174
+ i0.ɵɵelementEnd();
1175
+ i0.ɵɵtemplate(9, MenuExpandablePanelComponent_Conditional_9_Template, 2, 0);
1176
+ } if (rf & 2) {
1177
+ i0.ɵɵproperty("ngClass", ctx.opened() ? "bottom-padding" : "");
1178
+ i0.ɵɵadvance(2);
1179
+ i0.ɵɵtextInterpolate(ctx.menuIcon());
1180
+ i0.ɵɵadvance(3);
1181
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6, ctx.title()));
1182
+ i0.ɵɵadvance(2);
1183
+ i0.ɵɵconditional(ctx.subTitle() ? 7 : -1);
1184
+ i0.ɵɵadvance();
1185
+ i0.ɵɵconditional(ctx.showExpansionIcon() ? 8 : -1);
1186
+ i0.ɵɵadvance();
1187
+ i0.ɵɵconditional(ctx.opened() ? 9 : -1);
1188
+ } }, 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: [
1189
+ trigger('arrow-collapse', [
1190
+ state('false', style({ transform: 'rotate(0deg)' })),
1191
+ state('true', style({ transform: 'rotate(-90deg)' })),
1192
+ transition('false => true', animate(DEFAULT_DURATION + 'ms ease-in-out')),
1193
+ transition('true => false', animate(DEFAULT_DURATION + 'ms ease-in-out'))
1194
+ ])
1195
+ ] } }); }
1196
+ }
1197
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelComponent, [{
1198
+ type: Component,
1199
+ args: [{ selector: 'app-menu-expandable-panel', standalone: true, imports: [MatIconModule, TranslateModule, MenuExpandablePanelItemComponent, NgClass], animations: [
1200
+ trigger('arrow-collapse', [
1201
+ state('false', style({ transform: 'rotate(0deg)' })),
1202
+ state('true', style({ transform: 'rotate(-90deg)' })),
1203
+ transition('false => true', animate(DEFAULT_DURATION + 'ms ease-in-out')),
1204
+ transition('true => false', animate(DEFAULT_DURATION + 'ms ease-in-out'))
1205
+ ])
1206
+ ], 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"] }]
1207
+ }], null, { topLeftRadius: [{
1208
+ type: HostBinding,
1209
+ args: ['style.border-top-left-radius']
1210
+ }], topRightRadius: [{
1211
+ type: HostBinding,
1212
+ args: ['style.border-top-right-radius']
1213
+ }], bottomLeftRadius: [{
1214
+ type: HostBinding,
1215
+ args: ['style.border-bottom-left-radius']
1216
+ }], bottomRightRadius: [{
1217
+ type: HostBinding,
1218
+ args: ['style.border-bottom-right-radius']
1219
+ }], bottomBorderClass: [{
1220
+ type: HostBinding,
1221
+ args: ['class.bottom-border']
1222
+ }] }); })();
1223
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelComponent, { className: "MenuExpandablePanelComponent", filePath: "lib\\layout\\menu-expandable-panel\\menu-expandable-panel.component.ts", lineNumber: 26 }); })();
1224
+
1225
+ function PageTitleComponent_div_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
1226
+ i0.ɵɵelementContainerStart(0);
1227
+ i0.ɵɵelementStart(1, "a", 6);
1228
+ i0.ɵɵtext(2);
1229
+ i0.ɵɵpipe(3, "translate");
1230
+ i0.ɵɵelementEnd();
1231
+ i0.ɵɵelementStart(4, "span");
1232
+ i0.ɵɵtext(5, "/");
1233
+ i0.ɵɵelementEnd();
1234
+ i0.ɵɵelementContainerEnd();
1235
+ } if (rf & 2) {
1236
+ const location_r1 = ctx.$implicit;
1237
+ const ctx_r1 = i0.ɵɵnextContext(2);
1238
+ i0.ɵɵadvance();
1239
+ i0.ɵɵproperty("routerLink", ctx_r1.currentLocationLink());
1240
+ i0.ɵɵadvance();
1241
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, location_r1));
1242
+ } }
1243
+ function PageTitleComponent_div_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1244
+ i0.ɵɵelementStart(0, "span", 5);
1245
+ i0.ɵɵtext(1);
1246
+ i0.ɵɵpipe(2, "translate");
1247
+ i0.ɵɵelementEnd();
1248
+ } if (rf & 2) {
1249
+ const ctx_r1 = i0.ɵɵnextContext(2);
1250
+ i0.ɵɵadvance();
1251
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.breadcrumb()));
1252
+ } }
1253
+ function PageTitleComponent_div_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
1254
+ i0.ɵɵelementStart(0, "span", 5);
1255
+ i0.ɵɵtext(1);
1256
+ i0.ɵɵelementEnd();
1257
+ } if (rf & 2) {
1258
+ const ctx_r1 = i0.ɵɵnextContext(2);
1259
+ i0.ɵɵadvance();
1260
+ i0.ɵɵtextInterpolate(ctx_r1.breadcrumb());
1261
+ } }
1262
+ function PageTitleComponent_div_4_Template(rf, ctx) { if (rf & 1) {
1263
+ i0.ɵɵelementStart(0, "div", 3);
1264
+ 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);
1265
+ i0.ɵɵelementEnd();
1266
+ } if (rf & 2) {
1267
+ const ctx_r1 = i0.ɵɵnextContext();
1268
+ i0.ɵɵadvance();
1269
+ i0.ɵɵproperty("ngForOf", ctx_r1.currentLocation());
1270
+ i0.ɵɵadvance();
1271
+ i0.ɵɵconditional(ctx_r1.translateBreadcrumb() ? 2 : 3);
1272
+ } }
1273
+ class PageTitleComponent {
1274
+ constructor() {
1275
+ this.title = input('');
1276
+ this.currentLocation = input([]);
1277
+ this.currentLocationLink = input(null);
1278
+ this.breadcrumb = input('');
1279
+ this.showBreadcrumb = input(false);
1280
+ this.translateBreadcrumb = input(false);
1281
+ }
1282
+ static { this.ɵfac = function PageTitleComponent_Factory(t) { return new (t || PageTitleComponent)(); }; }
1283
+ 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) {
1284
+ i0.ɵɵelementStart(0, "div", 0)(1, "h4", 1);
1285
+ i0.ɵɵtext(2);
1286
+ i0.ɵɵpipe(3, "translate");
1287
+ i0.ɵɵelementEnd();
1288
+ i0.ɵɵtemplate(4, PageTitleComponent_div_4_Template, 4, 2, "div", 2);
1289
+ i0.ɵɵelementEnd();
1290
+ } if (rf & 2) {
1291
+ i0.ɵɵadvance(2);
1292
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, ctx.title()));
1293
+ i0.ɵɵadvance(2);
1294
+ i0.ɵɵproperty("ngIf", ctx.showBreadcrumb);
1295
+ } }, dependencies: [CommonModule, i1$3.NgForOf, i1$3.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 }); }
1296
+ }
1297
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageTitleComponent, [{
1298
+ type: Component,
1299
+ 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"] }]
1300
+ }], null, null); })();
1301
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib\\layout\\page-title\\page-title.component.ts", lineNumber: 14 }); })();
1302
+
1303
+ const _c0$4 = ["file"];
1304
+ function CaucaInputFileComponent_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
1305
+ i0.ɵɵelementStart(0, "mat-icon");
1306
+ i0.ɵɵtext(1);
1307
+ i0.ɵɵelementEnd();
1308
+ } if (rf & 2) {
1309
+ const ctx_r1 = i0.ɵɵnextContext();
1310
+ i0.ɵɵadvance();
1311
+ i0.ɵɵtextInterpolate(ctx_r1.icon);
1312
+ } }
1313
+ function CaucaInputFileComponent_span_2_Template(rf, ctx) { if (rf & 1) {
1314
+ i0.ɵɵelementStart(0, "span");
1315
+ i0.ɵɵtext(1);
1316
+ i0.ɵɵelementEnd();
1317
+ } if (rf & 2) {
1318
+ const ctx_r1 = i0.ɵɵnextContext();
1319
+ i0.ɵɵadvance();
1320
+ i0.ɵɵtextInterpolate(ctx_r1.text);
1321
+ } }
1322
+ function CaucaInputFileComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
1323
+ const _r3 = i0.ɵɵgetCurrentView();
1324
+ i0.ɵɵelementContainerStart(0);
1325
+ i0.ɵɵelementStart(1, "input", 5, 1);
1326
+ 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)); });
1327
+ i0.ɵɵelementEnd();
1328
+ i0.ɵɵelementContainerEnd();
1329
+ } if (rf & 2) {
1330
+ const ctx_r1 = i0.ɵɵnextContext();
1331
+ i0.ɵɵadvance();
1332
+ i0.ɵɵproperty("accept", ctx_r1.accept);
1333
+ } }
1334
+ function CaucaInputFileComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
1335
+ const _r4 = i0.ɵɵgetCurrentView();
1336
+ i0.ɵɵelementStart(0, "input", 6, 1);
1337
+ 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)); });
1338
+ i0.ɵɵelementEnd();
1339
+ } if (rf & 2) {
1340
+ const ctx_r1 = i0.ɵɵnextContext();
1341
+ i0.ɵɵproperty("accept", ctx_r1.accept);
1342
+ } }
1343
+ class CaucaInputFileComponent {
1344
+ constructor(translateService, dialog) {
1345
+ this.translateService = translateService;
1346
+ this.dialog = dialog;
1347
+ this.readend = new EventEmitter();
1348
+ this.accept = '';
1349
+ this.multiple = false;
1350
+ this.icon = '';
1351
+ this.text = '';
1352
+ this.labels = {};
1353
+ }
1354
+ ngOnInit() {
1355
+ if (!this.icon && !this.text) {
1356
+ this.translateService.get(['material.select', 'material.dialogTitle', 'material.dialogMessage']).subscribe((labels) => {
1357
+ this.labels = labels;
1358
+ this.text = labels['material.select'];
1359
+ });
1360
+ }
1361
+ }
1362
+ onSelectFile(e) {
1363
+ for (let i = 0, j = e.target.files.length; i < j; i++) {
1364
+ const file = e.target.files[i];
1365
+ const reader = new FileReader();
1366
+ reader.onerror = ((error) => this.onError(error));
1367
+ reader.onload = ((event) => this.onReadEnd(file, event));
1368
+ reader.readAsDataURL(file);
1369
+ }
1370
+ if (e.target.files.length) {
1371
+ this.dialog.open(CaucaSimpleDialogComponent, {
1372
+ width: '250px',
1373
+ disableClose: true,
1374
+ data: {
1375
+ title: this.labels['material.dialogTitle'],
1376
+ message: this.labels['material.dialogMessage']
1377
+ }
1378
+ });
1379
+ }
1380
+ }
1381
+ openDialog(event) {
1382
+ if (this.file) {
1383
+ this.file.nativeElement.click();
1384
+ }
1385
+ event.stopPropagation();
1386
+ }
1387
+ onError(error) {
1388
+ throw error;
1389
+ }
1390
+ onReadEnd(file, e) {
1391
+ this.dialog.closeAll();
1392
+ this.readend.emit({
1393
+ name: file.name,
1394
+ size: file.size,
1395
+ type: file.type,
1396
+ lastModifiedDate: file.lastModifiedDate,
1397
+ content: e.target['result'],
1398
+ file,
1399
+ });
1400
+ }
1401
+ static { this.ɵfac = function CaucaInputFileComponent_Factory(t) { return new (t || CaucaInputFileComponent)(i0.ɵɵdirectiveInject(i1$4.TranslateService), i0.ɵɵdirectiveInject(i1$2.MatDialog)); }; }
1402
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputFileComponent, selectors: [["cauca-input-file"]], viewQuery: function CaucaInputFileComponent_Query(rf, ctx) { if (rf & 1) {
1403
+ i0.ɵɵviewQuery(_c0$4, 5);
1404
+ } if (rf & 2) {
1405
+ let _t;
1406
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.file = _t.first);
1407
+ } }, 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) {
1408
+ const _r1 = i0.ɵɵgetCurrentView();
1409
+ i0.ɵɵelementStart(0, "button", 2);
1410
+ i0.ɵɵlistener("click", function CaucaInputFileComponent_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.openDialog($event)); });
1411
+ i0.ɵɵtemplate(1, CaucaInputFileComponent_mat_icon_1_Template, 2, 1, "mat-icon", 3)(2, CaucaInputFileComponent_span_2_Template, 2, 1, "span", 3);
1412
+ i0.ɵɵelementEnd();
1413
+ 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);
1414
+ } if (rf & 2) {
1415
+ const notMultipleInput_r5 = i0.ɵɵreference(5);
1416
+ i0.ɵɵadvance();
1417
+ i0.ɵɵproperty("ngIf", ctx.icon);
1418
+ i0.ɵɵadvance();
1419
+ i0.ɵɵproperty("ngIf", ctx.text);
1420
+ i0.ɵɵadvance();
1421
+ i0.ɵɵproperty("ngIf", ctx.multiple)("ngIfElse", notMultipleInput_r5);
1422
+ } }, dependencies: [MatIconModule, i1$1.MatIcon], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:none}"] }); }
1423
+ }
1424
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputFileComponent, [{
1425
+ type: Component,
1426
+ 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"] }]
1427
+ }], () => [{ type: i1$4.TranslateService }, { type: i1$2.MatDialog }], { file: [{
1428
+ type: ViewChild,
1429
+ args: ['file', { static: false }]
1430
+ }], readend: [{
1431
+ type: Output
1432
+ }], accept: [{
1433
+ type: Input
1434
+ }], multiple: [{
1435
+ type: Input
1436
+ }], icon: [{
1437
+ type: Input
1438
+ }], text: [{
1439
+ type: Input
1440
+ }] }); })();
1441
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputFileComponent, { className: "CaucaInputFileComponent", filePath: "lib\\inputs\\cauca-input-file\\cauca-input-file.component.ts", lineNumber: 14 }); })();
1442
+
1443
+ function CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template(rf, ctx) { if (rf & 1) {
1444
+ i0.ɵɵelementStart(0, "mat-error");
1445
+ i0.ɵɵtext(1);
1446
+ i0.ɵɵpipe(2, "translate");
1447
+ i0.ɵɵelementEnd();
1448
+ } if (rf & 2) {
1449
+ const i_r1 = i0.ɵɵnextContext().index;
1450
+ const ctx_r1 = i0.ɵɵnextContext();
1451
+ i0.ɵɵadvance();
1452
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.getErrorMessage(i_r1)));
1453
+ } }
1454
+ function CaucaInputMultipleLangueComponent_mat_tab_1_Template(rf, ctx) { if (rf & 1) {
1455
+ i0.ɵɵelementStart(0, "mat-tab", 2)(1, "mat-form-field", 3);
1456
+ i0.ɵɵelement(2, "input", 4);
1457
+ i0.ɵɵtemplate(3, CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template, 3, 3, "mat-error", 5);
1458
+ i0.ɵɵelementEnd()();
1459
+ } if (rf & 2) {
1460
+ const lang_r3 = ctx.$implicit;
1461
+ const i_r1 = ctx.index;
1462
+ const ctx_r1 = i0.ɵɵnextContext();
1463
+ i0.ɵɵproperty("label", lang_r3);
1464
+ i0.ɵɵadvance(2);
1465
+ i0.ɵɵproperty("placeholder", lang_r3)("formControl", ctx_r1.forms[i_r1]);
1466
+ i0.ɵɵadvance();
1467
+ i0.ɵɵproperty("ngIf", ctx_r1.forms[i_r1].invalid);
1468
+ } }
1469
+ class CaucaInputMultipleLangueComponent {
1470
+ constructor(coreService, translate) {
1471
+ this.translate = translate;
1472
+ this.value = [];
1473
+ this.forms = [];
1474
+ this.labels = [];
1475
+ this.selectedIndex = 0;
1476
+ this.config = coreService.getConfig();
1477
+ }
1478
+ ngOnInit() {
1479
+ this.translate.get(this.config.languages).subscribe((labels) => {
1480
+ for (const i in labels) {
1481
+ if (labels[i]) {
1482
+ this.labels.push(labels[i]);
1483
+ }
1484
+ }
1485
+ this.initializeForms();
1486
+ });
1487
+ }
1488
+ onTagChanged(tabIndex) {
1489
+ console.log('cauca-material, onTabChanged', tabIndex);
1490
+ }
1491
+ getErrorMessage(index) {
1492
+ return this.forms[index].hasError('required') ? 'error.required' : '';
1493
+ }
1494
+ initializeForms() {
1495
+ this.labels.forEach((item, index) => {
1496
+ this.forms[index] = new UntypedFormControl('', [Validators.required]);
1497
+ this.forms[index].setValue(this.value[index] || '');
1498
+ });
1499
+ }
1500
+ static { this.ɵfac = function CaucaInputMultipleLangueComponent_Factory(t) { return new (t || CaucaInputMultipleLangueComponent)(i0.ɵɵdirectiveInject(i1$4.CaucaCoreService), i0.ɵɵdirectiveInject(i1$4.TranslateService)); }; }
1501
+ 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) {
1502
+ i0.ɵɵelementStart(0, "mat-tab-group", 0);
1503
+ i0.ɵɵlistener("selectedIndexChange", function CaucaInputMultipleLangueComponent_Template_mat_tab_group_selectedIndexChange_0_listener($event) { return ctx.onTagChanged($event); });
1504
+ i0.ɵɵtemplate(1, CaucaInputMultipleLangueComponent_mat_tab_1_Template, 4, 4, "mat-tab", 1);
1505
+ i0.ɵɵelementEnd();
1506
+ } if (rf & 2) {
1507
+ i0.ɵɵproperty("selectedIndex", ctx.selectedIndex);
1508
+ i0.ɵɵadvance();
1509
+ i0.ɵɵproperty("ngForOf", ctx.labels);
1510
+ } }, dependencies: [MatTabsModule, i2$2.MatTab, i2$2.MatTabGroup, MatFormFieldModule, i2$3.MatFormField, i2$3.MatError, MatInputModule, i4.MatInput, NgIf,
1511
+ ReactiveFormsModule, i5.DefaultValueAccessor, i5.NgControlStatus, i5.RequiredValidator, i5.FormControlDirective, TranslateModule, i2.TranslatePipe], styles: [".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"] }); }
1512
+ }
1513
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputMultipleLangueComponent, [{
1514
+ type: Component,
1515
+ args: [{ standalone: true, imports: [
1516
+ MatTabsModule,
1517
+ MatFormFieldModule,
1518
+ MatInputModule,
1519
+ NgIf,
1520
+ ReactiveFormsModule,
1521
+ TranslateModule
1522
+ ], 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"] }]
1523
+ }], () => [{ type: i1$4.CaucaCoreService }, { type: i1$4.TranslateService }], { value: [{
1524
+ type: Input
1525
+ }] }); })();
1526
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputMultipleLangueComponent, { className: "CaucaInputMultipleLangueComponent", filePath: "lib\\inputs\\cauca-input-multiple-langue\\cauca-input-multiple-langue.component.ts", lineNumber: 24 }); })();
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}"] }); }
623
1805
  }
624
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuSidebarComponent, [{
1806
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PasswordSelectionComponent, [{
625
1807
  type: Component,
626
- args: [{ selector: 'cauca-menu-sidebar', template: "<div class=\"header\">\n <button mat-icon-button class=\"close\" (click)=\"hideOnMobile()\">\n <mat-icon>clear</mat-icon>\n </button>\n <ng-content select=\"[header]\"></ng-content>\n</div>\n<div class=\"content\">\n <ng-content select=\"[beforeMenu]\"></ng-content>\n <cauca-menu-vertical #menu [menuItems]=\"menuItems\" (itemClick)=\"onMenuItemClick()\"></cauca-menu-vertical>\n <ng-content select=\"[afterMenu]\"></ng-content>\n</div>\n<div class=\"footer\">\n <ng-content select=\"[footer]\"></ng-content>\n</div>\n<div *ngIf=\"version\" class=\"version\">\n <div class=\"double-arrow\" (click)=\"onToggleCollapse()\"></div>\n <span class=\"full\">{{'material.version' | translate}} {{version}}</span>\n <span class=\"abbr\">{{version}}</span>\n</div>\n", styles: [":host{height:100%;flex-direction:column;display:flex;transition:all .1s ease-out;overflow:hidden;scrollbar-width:5px;scrollbar-color:rgba(0,0,0,.1) rgba(0,0,0,.2)}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{border-radius:5px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.1)}::-webkit-scrollbar-thumb{border-radius:5px;background-color:#0003;outline:1px solid slategrey}:host>div{flex:1}:host>.header,:host>.footer{flex:0 0 auto}:host>.content{flex-grow:1;overflow:hidden auto}:host>.version{max-height:1em}:host.hidden{width:0;min-width:0;max-width:0}:host.mobile{width:275px;min-width:275px;max-width:275px;position:absolute;z-index:10}:host.collapsed{width:75px;min-width:75px;max-width:75px}:host.expanded{width:275px;min-width:275px;max-width:275px}:host .close{display:none}:host.mobile .close{right:0;display:inline-block;position:absolute}.double-arrow{height:3em;line-height:3em;cursor:pointer;position:fixed;opacity:.25;margin-top:-1em}.double-arrow:hover{opacity:1}:host.expanded .double-arrow:before,:host.collapsed .double-arrow:before{font-family:Material Icons;content:\"double_arrow\";font-size:3em;text-align:right}:host.collapsed .double-arrow{margin-left:10px}:host.expanded .double-arrow{margin-left:200px}:host.collapsed ::ng-deep .menu-caption,:host.collapsed ::ng-deep .submenu{display:none}:host.keepExpanded .double-arrow{transform:rotate(180deg);opacity:1}.version{bottom:0;padding:1em}.full,.abbr{display:none}:host.collapsed .abbr{display:inline}:host.mobile .full,:host.expanded .full{display:inline}@media only screen and (max-width: 1000px){.double-arrow{display:none}}\n"] }]
627
- }], () => [{ type: i0.ElementRef }], { menuItems: [{
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: [{
628
1816
  type: Input
629
- }], version: [{
1817
+ }, {
1818
+ type: HostBinding,
1819
+ args: ['style.flex-direction']
1820
+ }], formWidth: [{
630
1821
  type: Input
631
- }], onResize: [{
632
- type: HostListener,
633
- args: ['window:resize', ['$event']]
1822
+ }, {
1823
+ type: HostBinding,
1824
+ args: ['style.form.width']
634
1825
  }] }); })();
635
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuSidebarComponent, { className: "CaucaMenuSidebarComponent", filePath: "lib\\cauca-menu-sidebar\\cauca-menu-sidebar.component.ts", lineNumber: 9 }); })();
1826
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PasswordSelectionComponent, { className: "PasswordSelectionComponent", filePath: "lib\\inputs\\password\\password-selection\\password-selection.component.ts", lineNumber: 24 }); })();
636
1827
 
637
- const _c0$1 = ["container"];
638
- function CaucaSlideshowComponent_div_2_Template(rf, ctx) { if (rf & 1) {
639
- i0.ɵɵelementStart(0, "div");
640
- i0.ɵɵelement(1, "img", 3);
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);
641
1833
  i0.ɵɵelementEnd();
642
1834
  } if (rf & 2) {
643
- const url_r2 = ctx.$implicit;
644
- const index_r3 = ctx.index;
645
- const ctx_r1 = i0.ɵɵnextContext();
646
- i0.ɵɵproperty("@slideLeftRight", ctx_r1.getState(index_r3));
647
- i0.ɵɵadvance(1);
648
- i0.ɵɵproperty("src", url_r2, i0.ɵɵsanitizeUrl);
1835
+ const option_r1 = ctx.$implicit;
1836
+ i0.ɵɵproperty("value", option_r1.id);
1837
+ i0.ɵɵadvance();
1838
+ i0.ɵɵtextInterpolate1(" ", option_r1.name, " ");
649
1839
  } }
650
- class CaucaSlideshowComponent {
1840
+ class SelectWithSearchComponent {
651
1841
  constructor() {
652
- this.height = '150px';
653
- this.autoPlay = true;
654
- this.timer = null;
655
- this.items = [];
656
- this.states = [];
657
- this.selectedIndex = 0;
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
+ }
658
1861
  }
659
- set images(list) {
660
- this.items = list;
661
- this.restart();
1862
+ get options() {
1863
+ return this.allOptions;
662
1864
  }
663
- get images() {
664
- return this.items;
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;
665
1873
  }
666
1874
  ngOnInit() {
667
- this.container.nativeElement.style.height = this.height;
668
- this.container.nativeElement.style.width = '100%';
1875
+ this.optionFilterControl.valueChanges
1876
+ .pipe(takeUntil(this._onDestroy))
1877
+ .subscribe(() => {
1878
+ this.filterCities();
1879
+ });
669
1880
  }
670
- getState(index) {
671
- if (this.states[index]) {
672
- return this.states[index];
673
- }
674
- return (this.selectedIndex === index ? 'in' : 'out');
1881
+ ngOnDestroy() {
1882
+ this._onDestroy.next();
1883
+ this._onDestroy.complete();
675
1884
  }
676
- restart() {
677
- if (this.timer) {
678
- window.clearInterval(this.timer);
679
- }
680
- if (this.images && this.images.length) {
681
- this.timer = window.setInterval(() => this.changed('next'), 5000);
1885
+ filterCities() {
1886
+ if (!this.options) {
1887
+ return;
682
1888
  }
683
- }
684
- next() {
685
- if (this.selectedIndex < this.items.length - 1) {
686
- this.selectedIndex++;
1889
+ let filter = this.optionFilterControl.value;
1890
+ if (!filter) {
1891
+ this.filteredOptions.next(this.options.slice());
1892
+ return;
687
1893
  }
688
1894
  else {
689
- this.selectedIndex = 0;
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();
690
1909
  }
691
1910
  }
692
- changed(action) {
693
- this.states[this.selectedIndex] = 'out';
694
- this[action]();
695
- this.states[this.selectedIndex] = 'in';
1911
+ selectFirstOption() {
1912
+ this.value = this.options[0].id;
696
1913
  }
697
- static { this.ɵfac = function CaucaSlideshowComponent_Factory(t) { return new (t || CaucaSlideshowComponent)(); }; }
698
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSlideshowComponent, selectors: [["cauca-slideshow"]], viewQuery: function CaucaSlideshowComponent_Query(rf, ctx) { if (rf & 1) {
699
- i0.ɵɵviewQuery(_c0$1, 7);
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);
700
1917
  } if (rf & 2) {
701
1918
  let _t;
702
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
703
- } }, inputs: { height: "height", autoPlay: "autoPlay", images: "images" }, decls: 3, vars: 1, consts: [[1, "slideshow"], ["container", ""], [4, "ngFor", "ngForOf"], [3, "src"]], template: function CaucaSlideshowComponent_Template(rf, ctx) { if (rf & 1) {
704
- i0.ɵɵelementStart(0, "div", 0, 1);
705
- i0.ɵɵtemplate(2, CaucaSlideshowComponent_div_2_Template, 2, 2, "div", 2);
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");
706
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");
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()();
707
1938
  } if (rf & 2) {
1939
+ i0.ɵɵadvance(3);
1940
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, ctx.label));
708
1941
  i0.ɵɵadvance(2);
709
- i0.ɵɵproperty("ngForOf", ctx.images);
710
- } }, dependencies: [i2.NgForOf], styles: [".slideshow[_ngcontent-%COMP%]{margin:0 auto;position:relative;overflow:hidden}.slideshow[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute}img[_ngcontent-%COMP%]{max-height:100%;max-width:100%;margin:0 auto;display:block}"], data: { animation: [
711
- trigger('slideUpDown', [
712
- state('in', style({ transform: 'translateY(0%)' })),
713
- state('out', style({ transform: 'translateY(-100%)' })),
714
- transition('in => out', [
715
- animate('500ms ease-in')
716
- ]),
717
- transition('out => in', [
718
- style({ transform: 'translateY(100%)' }),
719
- animate('500ms ease-in')
720
- ]),
721
- ]),
722
- trigger('slideLeftRight', [
723
- state('in', style({ transform: 'translateX(0%)' })),
724
- state('out', style({ transform: 'translateX(-100%)' })),
725
- transition('in => out', [
726
- animate('500ms ease-in')
727
- ]),
728
- transition('out => in', [
729
- style({ transform: 'translateX(100%)' }),
730
- animate('500ms ease-in')
731
- ]),
732
- ]),
733
- ] } }); }
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] }); }
734
1949
  }
735
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSlideshowComponent, [{
1950
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectWithSearchComponent, [{
736
1951
  type: Component,
737
- args: [{ selector: 'cauca-slideshow', animations: [
738
- trigger('slideUpDown', [
739
- state('in', style({ transform: 'translateY(0%)' })),
740
- state('out', style({ transform: 'translateY(-100%)' })),
741
- transition('in => out', [
742
- animate('500ms ease-in')
743
- ]),
744
- transition('out => in', [
745
- style({ transform: 'translateY(100%)' }),
746
- animate('500ms ease-in')
747
- ]),
748
- ]),
749
- trigger('slideLeftRight', [
750
- state('in', style({ transform: 'translateX(0%)' })),
751
- state('out', style({ transform: 'translateX(-100%)' })),
752
- transition('in => out', [
753
- animate('500ms ease-in')
754
- ]),
755
- transition('out => in', [
756
- style({ transform: 'translateX(100%)' }),
757
- animate('500ms ease-in')
758
- ]),
759
- ]),
760
- ], 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"] }]
761
- }], null, { container: [{
762
- type: ViewChild,
763
- args: ['container', { static: true }]
764
- }], 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: [{
765
1957
  type: Input
766
- }], autoPlay: [{
1958
+ }], singleSelect: [{
1959
+ type: ViewChild,
1960
+ args: ['singleSelect', { static: true }]
1961
+ }], valueChanged: [{
1962
+ type: Output
1963
+ }], options: [{
767
1964
  type: Input
768
- }], images: [{
1965
+ }], value: [{
769
1966
  type: Input
770
1967
  }] }); })();
771
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSlideshowComponent, { className: "CaucaSlideshowComponent", filePath: "lib\\cauca-slideshow\\cauca-slideshow.component.ts", lineNumber: 33 }); })();
772
-
773
- class CaucaMaterialModule {
774
- static { this.ɵfac = function CaucaMaterialModule_Factory(t) { return new (t || CaucaMaterialModule)(); }; }
775
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CaucaMaterialModule }); }
776
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
777
- CaucaCoreForChildModule,
778
- FontAwesomeModule,
779
- FormsModule,
780
- ReactiveFormsModule,
781
- MatButtonModule,
782
- MatFormFieldModule,
783
- MatIconModule,
784
- MatInputModule,
785
- MatTabsModule,
786
- MatDialogModule] }); }
787
- }
788
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMaterialModule, [{
789
- type: NgModule,
790
- args: [{
791
- declarations: [
792
- CaucaMaterialComponent,
793
- CaucaInputFileComponent,
794
- CaucaInputMultipleLangueComponent,
795
- CaucaMenuSidebarComponent,
796
- CaucaMenuVerticalComponent,
797
- CaucaSimpleDialogComponent,
798
- CaucaSlideshowComponent,
799
- ],
800
- imports: [
801
- CommonModule,
802
- CaucaCoreForChildModule,
803
- FontAwesomeModule,
804
- FormsModule,
805
- ReactiveFormsModule,
806
- MatButtonModule,
807
- MatFormFieldModule,
808
- MatIconModule,
809
- MatInputModule,
810
- MatTabsModule,
811
- MatDialogModule,
812
- ],
813
- exports: [
814
- CaucaMaterialComponent,
815
- CaucaInputFileComponent,
816
- CaucaInputMultipleLangueComponent,
817
- CaucaMenuSidebarComponent,
818
- CaucaMenuVerticalComponent,
819
- CaucaSimpleDialogComponent,
820
- CaucaSlideshowComponent,
821
- ],
822
- }]
823
- }], null, null); })();
824
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CaucaMaterialModule, { declarations: [CaucaMaterialComponent,
825
- CaucaInputFileComponent,
826
- CaucaInputMultipleLangueComponent,
827
- CaucaMenuSidebarComponent,
828
- CaucaMenuVerticalComponent,
829
- CaucaSimpleDialogComponent,
830
- CaucaSlideshowComponent], imports: [CommonModule,
831
- CaucaCoreForChildModule,
832
- FontAwesomeModule,
833
- FormsModule,
834
- ReactiveFormsModule,
835
- MatButtonModule,
836
- MatFormFieldModule,
837
- MatIconModule,
838
- MatInputModule,
839
- MatTabsModule,
840
- MatDialogModule], exports: [CaucaMaterialComponent,
841
- CaucaInputFileComponent,
842
- CaucaInputMultipleLangueComponent,
843
- CaucaMenuSidebarComponent,
844
- CaucaMenuVerticalComponent,
845
- CaucaSimpleDialogComponent,
846
- CaucaSlideshowComponent] }); })();
1968
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectWithSearchComponent, { className: "SelectWithSearchComponent", filePath: "lib\\inputs\\select-with-search\\select-with-search.component.ts", lineNumber: 22 }); })();
847
1969
 
848
1970
  class MobileTimePickerComponent {
849
1971
  constructor() {
@@ -889,7 +2011,7 @@ class MobileTimePickerComponent {
889
2011
  } if (rf & 2) {
890
2012
  i0.ɵɵadvance(4);
891
2013
  i0.ɵɵtextInterpolate1("\n", (ctx.value < 10 ? "0" : "") + ctx.value, "\n");
892
- } }, dependencies: [MatButtonModule, i4.MatIconButton, MatIconModule, i5.MatIcon, MatFormFieldModule,
2014
+ } }, dependencies: [MatButtonModule, i4$1.MatIconButton, MatIconModule, i1$1.MatIcon, MatFormFieldModule,
893
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}"] }); }
894
2016
  }
895
2017
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MobileTimePickerComponent, [{
@@ -909,41 +2031,42 @@ class MobileTimePickerComponent {
909
2031
  }], valueChange: [{
910
2032
  type: Output
911
2033
  }] }); })();
912
- (() => { (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 }); })();
913
2035
 
914
2036
  function DesktopTimePickerComponent_For_2_Template(rf, ctx) { if (rf & 1) {
915
- const _r7 = i0.ɵɵgetCurrentView();
916
- i0.ɵɵelementStart(0, "mat-list-item", 1);
917
- i0.ɵɵlistener("click", function DesktopTimePickerComponent_For_2_Template_mat_list_item_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r7); const option_r1 = restoredCtx.$implicit; const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.valueChange.emit(option_r1)); });
2037
+ const _r1 = i0.ɵɵgetCurrentView();
2038
+ i0.ɵɵelementStart(0, "mat-list-item", 2);
2039
+ i0.ɵɵlistener("click", function DesktopTimePickerComponent_For_2_Template_mat_list_item_click_0_listener() { const option_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.valueChange.emit(option_r2)); });
918
2040
  i0.ɵɵtext(1);
919
2041
  i0.ɵɵelementEnd();
920
2042
  } if (rf & 2) {
921
- const option_r1 = ctx.$implicit;
922
- const ctx_r0 = i0.ɵɵnextContext();
923
- i0.ɵɵproperty("activated", ctx_r0.value === option_r1)("disabled", ctx_r0.disabled.someOptions.includes(option_r1));
924
- i0.ɵɵadvance(1);
925
- i0.ɵɵtextInterpolate((option_r1 < 10 ? "0" : "") + option_r1);
2043
+ const option_r2 = ctx.$implicit;
2044
+ const ctx_r2 = i0.ɵɵnextContext();
2045
+ i0.ɵɵproperty("activated", ctx_r2.value === option_r2)("disabled", ctx_r2.disabled == null ? null : ctx_r2.disabled.someOptions.includes(option_r2));
2046
+ i0.ɵɵadvance();
2047
+ i0.ɵɵtextInterpolate((option_r2 < 10 ? "0" : "") + option_r2);
926
2048
  } }
927
2049
  class DesktopTimePickerComponent {
928
2050
  constructor() {
2051
+ this.options = [];
929
2052
  this.valueChange = new EventEmitter();
930
2053
  }
931
2054
  static { this.ɵfac = function DesktopTimePickerComponent_Factory(t) { return new (t || DesktopTimePickerComponent)(); }; }
932
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DesktopTimePickerComponent, selectors: [["cauca-desktop-time-picker"]], inputs: { options: "options", value: "value", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 3, vars: 1, consts: [[3, "disabled"], [3, "activated", "disabled", "click"], [3, "activated", "disabled"]], template: function DesktopTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
2055
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DesktopTimePickerComponent, selectors: [["cauca-desktop-time-picker"]], inputs: { options: "options", value: "value", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 3, vars: 1, consts: [[3, "disabled"], [3, "activated", "disabled"], [3, "click", "activated", "disabled"]], template: function DesktopTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
933
2056
  i0.ɵɵelementStart(0, "mat-list", 0);
934
- i0.ɵɵrepeaterCreate(1, DesktopTimePickerComponent_For_2_Template, 2, 3, "mat-list-item", 2, i0.ɵɵrepeaterTrackByIdentity);
2057
+ i0.ɵɵrepeaterCreate(1, DesktopTimePickerComponent_For_2_Template, 2, 3, "mat-list-item", 1, i0.ɵɵrepeaterTrackByIdentity);
935
2058
  i0.ɵɵelementEnd();
936
2059
  } if (rf & 2) {
937
- i0.ɵɵproperty("disabled", ctx.disabled.all);
938
- i0.ɵɵadvance(1);
2060
+ i0.ɵɵproperty("disabled", ctx.disabled == null ? null : ctx.disabled.all);
2061
+ i0.ɵɵadvance();
939
2062
  i0.ɵɵrepeater(ctx.options);
940
- } }, dependencies: [MatListModule, i1$4.MatList, i1$4.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)}"] }); }
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)}"] }); }
941
2064
  }
942
2065
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DesktopTimePickerComponent, [{
943
2066
  type: Component,
944
2067
  args: [{ selector: 'cauca-desktop-time-picker', standalone: true, imports: [
945
2068
  MatListModule
946
- ], template: "<mat-list [disabled]=\"disabled.all\">\n @for (option of options; track option) {\n <mat-list-item [activated]=\"value === option\" [disabled]=\"disabled.someOptions.includes(option)\"\n (click)=\"valueChange.emit(option)\">{{(option < 10 ? '0' : '' ) + option}}</mat-list-item>\n }\n</mat-list>", styles: ["mat-list{width:50px;padding:0}mat-list .mat-mdc-list-item:not(.mat-mdc-list-item-interactive){cursor:pointer}>div::-webkit-scrollbar{display:none}::ng-deep .mdc-list-item__primary-text{font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}::ng-deep .mdc-list-item--activated{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color)}::ng-deep .mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mat-datepicker-calendar-date-selected-state-text-color)}\n"] }]
2069
+ ], template: "<mat-list [disabled]=\"disabled?.all\">\n @for (option of options; track option) {\n <mat-list-item [activated]=\"value === option\" [disabled]=\"disabled?.someOptions.includes(option)\"\n (click)=\"valueChange.emit(option)\">{{(option < 10 ? '0' : '' ) + option}}</mat-list-item>\n }\n</mat-list>", styles: ["mat-list{width:50px;padding:0}mat-list .mat-mdc-list-item:not(.mat-mdc-list-item-interactive){cursor:pointer}>div::-webkit-scrollbar{display:none}::ng-deep .mdc-list-item__primary-text{font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}::ng-deep .mdc-list-item--activated{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color)}::ng-deep .mdc-list-item--activated .mdc-list-item__primary-text{color:var(--mat-datepicker-calendar-date-selected-state-text-color)}\n"] }]
947
2070
  }], null, { options: [{
948
2071
  type: Input
949
2072
  }], value: [{
@@ -953,27 +2076,27 @@ class DesktopTimePickerComponent {
953
2076
  }], valueChange: [{
954
2077
  type: Output
955
2078
  }] }); })();
956
- (() => { (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 }); })();
957
2080
 
958
- const _c0 = (a0, a1) => ({ all: a0, someOptions: a1 });
2081
+ const _c0$1 = (a0, a1) => ({ all: a0, someOptions: a1 });
959
2082
  function DialogDateTimePickerComponent_div_4_Template(rf, ctx) { if (rf & 1) {
960
- const _r12 = i0.ɵɵgetCurrentView();
2083
+ const _r1 = i0.ɵɵgetCurrentView();
961
2084
  i0.ɵɵelementStart(0, "div", 14)(1, "cauca-desktop-time-picker", 15);
962
- i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_4_Template_cauca_desktop_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.hourChanged($event)); });
2085
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_4_Template_cauca_desktop_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.hourChanged($event)); });
963
2086
  i0.ɵɵelementEnd()();
964
2087
  } if (rf & 2) {
965
- const ctx_r0 = i0.ɵɵnextContext();
966
- i0.ɵɵadvance(1);
967
- i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0, ctx_r0.disabled.hours, ctx_r0.disabled.someHours))("options", ctx_r0.hours)("value", ctx_r0.selectedHour);
2088
+ const ctx_r1 = i0.ɵɵnextContext();
2089
+ i0.ɵɵadvance();
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);
968
2091
  } }
969
2092
  function DialogDateTimePickerComponent_div_5_Template(rf, ctx) { if (rf & 1) {
970
- const _r14 = i0.ɵɵgetCurrentView();
2093
+ const _r3 = i0.ɵɵgetCurrentView();
971
2094
  i0.ɵɵelementStart(0, "div", 14)(1, "cauca-mobile-time-picker", 16);
972
- i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_5_Template_cauca_mobile_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.hourChanged($event)); });
2095
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_5_Template_cauca_mobile_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.hourChanged($event)); });
973
2096
  i0.ɵɵelementEnd()();
974
2097
  } if (rf & 2) {
975
2098
  const ctx_r1 = i0.ɵɵnextContext();
976
- i0.ɵɵadvance(1);
2099
+ i0.ɵɵadvance();
977
2100
  i0.ɵɵproperty("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
978
2101
  } }
979
2102
  function DialogDateTimePickerComponent_div_6_Template(rf, ctx) { if (rf & 1) {
@@ -982,24 +2105,24 @@ function DialogDateTimePickerComponent_div_6_Template(rf, ctx) { if (rf & 1) {
982
2105
  i0.ɵɵelementEnd();
983
2106
  } }
984
2107
  function DialogDateTimePickerComponent_div_7_Template(rf, ctx) { if (rf & 1) {
985
- const _r16 = i0.ɵɵgetCurrentView();
2108
+ const _r4 = i0.ɵɵgetCurrentView();
986
2109
  i0.ɵɵelementStart(0, "div", 18)(1, "cauca-desktop-time-picker", 15);
987
- i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_7_Template_cauca_desktop_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.minuteChanged($event)); });
2110
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_7_Template_cauca_desktop_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.minuteChanged($event)); });
988
2111
  i0.ɵɵelementEnd()();
989
2112
  } if (rf & 2) {
990
- const ctx_r3 = i0.ɵɵnextContext();
991
- i0.ɵɵadvance(1);
992
- i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0, ctx_r3.disabled.minutes, ctx_r3.disabled.someMinutes))("options", ctx_r3.minutes)("value", ctx_r3.selectedMinute);
2113
+ const ctx_r1 = i0.ɵɵnextContext();
2114
+ i0.ɵɵadvance();
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);
993
2116
  } }
994
2117
  function DialogDateTimePickerComponent_div_8_Template(rf, ctx) { if (rf & 1) {
995
- const _r18 = i0.ɵɵgetCurrentView();
2118
+ const _r5 = i0.ɵɵgetCurrentView();
996
2119
  i0.ɵɵelementStart(0, "div", 18)(1, "cauca-mobile-time-picker", 16);
997
- i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_8_Template_cauca_mobile_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r17.minuteChanged($event)); });
2120
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_8_Template_cauca_mobile_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.minuteChanged($event)); });
998
2121
  i0.ɵɵelementEnd()();
999
2122
  } if (rf & 2) {
1000
- const ctx_r4 = i0.ɵɵnextContext();
1001
- i0.ɵɵadvance(1);
1002
- i0.ɵɵproperty("options", ctx_r4.minutes)("value", ctx_r4.selectedMinute);
2123
+ const ctx_r1 = i0.ɵɵnextContext();
2124
+ i0.ɵɵadvance();
2125
+ i0.ɵɵproperty("options", ctx_r1.minutes)("value", ctx_r1.selectedMinute);
1003
2126
  } }
1004
2127
  function DialogDateTimePickerComponent_div_9_Template(rf, ctx) { if (rf & 1) {
1005
2128
  i0.ɵɵelementStart(0, "div", 19);
@@ -1007,24 +2130,24 @@ function DialogDateTimePickerComponent_div_9_Template(rf, ctx) { if (rf & 1) {
1007
2130
  i0.ɵɵelementEnd();
1008
2131
  } }
1009
2132
  function DialogDateTimePickerComponent_div_10_Template(rf, ctx) { if (rf & 1) {
1010
- const _r20 = i0.ɵɵgetCurrentView();
2133
+ const _r6 = i0.ɵɵgetCurrentView();
1011
2134
  i0.ɵɵelementStart(0, "div", 20)(1, "cauca-desktop-time-picker", 15);
1012
- i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_10_Template_cauca_desktop_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r19.secondChanged($event)); });
2135
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_10_Template_cauca_desktop_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.secondChanged($event)); });
1013
2136
  i0.ɵɵelementEnd()();
1014
2137
  } if (rf & 2) {
1015
- const ctx_r6 = i0.ɵɵnextContext();
1016
- i0.ɵɵadvance(1);
1017
- i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0, ctx_r6.disabled.seconds, ctx_r6.disabled.someSeconds))("options", ctx_r6.seconds)("value", ctx_r6.selectedSecond);
2138
+ const ctx_r1 = i0.ɵɵnextContext();
2139
+ i0.ɵɵadvance();
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);
1018
2141
  } }
1019
2142
  function DialogDateTimePickerComponent_div_11_Template(rf, ctx) { if (rf & 1) {
1020
- const _r22 = i0.ɵɵgetCurrentView();
2143
+ const _r7 = i0.ɵɵgetCurrentView();
1021
2144
  i0.ɵɵelementStart(0, "div", 20)(1, "cauca-mobile-time-picker", 16);
1022
- i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_11_Template_cauca_mobile_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r21.secondChanged($event)); });
2145
+ i0.ɵɵlistener("valueChange", function DialogDateTimePickerComponent_div_11_Template_cauca_mobile_time_picker_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.secondChanged($event)); });
1023
2146
  i0.ɵɵelementEnd()();
1024
2147
  } if (rf & 2) {
1025
- const ctx_r7 = i0.ɵɵnextContext();
1026
- i0.ɵɵadvance(1);
1027
- i0.ɵɵproperty("options", ctx_r7.seconds)("value", ctx_r7.selectedSecond);
2148
+ const ctx_r1 = i0.ɵɵnextContext();
2149
+ i0.ɵɵadvance();
2150
+ i0.ɵɵproperty("options", ctx_r1.seconds)("value", ctx_r1.selectedSecond);
1028
2151
  } }
1029
2152
  function DialogDateTimePickerComponent_button_13_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
1030
2153
  i0.ɵɵelementStart(0, "mat-icon");
@@ -1032,18 +2155,18 @@ function DialogDateTimePickerComponent_button_13_mat_icon_1_Template(rf, ctx) {
1032
2155
  i0.ɵɵelementEnd();
1033
2156
  } }
1034
2157
  function DialogDateTimePickerComponent_button_13_Template(rf, ctx) { if (rf & 1) {
1035
- const _r25 = i0.ɵɵgetCurrentView();
2158
+ const _r8 = i0.ɵɵgetCurrentView();
1036
2159
  i0.ɵɵelementStart(0, "button", 11);
1037
- i0.ɵɵlistener("click", function DialogDateTimePickerComponent_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25); const ctx_r24 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r24.clear()); });
2160
+ i0.ɵɵlistener("click", function DialogDateTimePickerComponent_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.clear()); });
1038
2161
  i0.ɵɵtemplate(1, DialogDateTimePickerComponent_button_13_mat_icon_1_Template, 2, 0, "mat-icon", 12);
1039
2162
  i0.ɵɵtext(2);
1040
2163
  i0.ɵɵpipe(3, "translate");
1041
2164
  i0.ɵɵelementEnd();
1042
2165
  } if (rf & 2) {
1043
- const ctx_r8 = i0.ɵɵnextContext();
1044
- i0.ɵɵadvance(1);
1045
- i0.ɵɵproperty("ngIf", ctx_r8.showButtonIcons);
1046
- i0.ɵɵadvance(1);
2166
+ const ctx_r1 = i0.ɵɵnextContext();
2167
+ i0.ɵɵadvance();
2168
+ i0.ɵɵproperty("ngIf", ctx_r1.showButtonIcons);
2169
+ i0.ɵɵadvance();
1047
2170
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "material.clear"), " ");
1048
2171
  } }
1049
2172
  function DialogDateTimePickerComponent_mat_icon_15_Template(rf, ctx) { if (rf & 1) {
@@ -1213,10 +2336,10 @@ class DialogDateTimePickerComponent {
1213
2336
  this.minutes = this.minutes.filter(minute => minute % this.step.minutes === 0);
1214
2337
  this.seconds = this.seconds.filter(seconde => seconde % this.step.seconds === 0);
1215
2338
  }
1216
- static { this.ɵfac = function DialogDateTimePickerComponent_Factory(t) { return new (t || DialogDateTimePickerComponent)(i0.ɵɵdirectiveInject(i1$1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
2339
+ static { this.ɵfac = function DialogDateTimePickerComponent_Factory(t) { return new (t || DialogDateTimePickerComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
1217
2340
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogDateTimePickerComponent, selectors: [["cauca-dialog-date-time-picker"]], hostBindings: function DialogDateTimePickerComponent_HostBindings(rf, ctx) { if (rf & 1) {
1218
2341
  i0.ɵɵlistener("resize", function DialogDateTimePickerComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
1219
- } }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 22, vars: 21, consts: [["mat-dialog-content", ""], [1, "date-time-picker", 3, "ngClass"], [1, "calendar"], [3, "minDate", "maxDate", "selected", "selectedChange"], ["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, "disabled", "options", "value", "valueChange"], [3, "options", "value", "valueChange"], [1, "hour-and-minute-separator"], [1, "minutes"], [1, "minute-and-second-separator"], [1, "seconds"]], template: function DialogDateTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
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) {
1220
2343
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "mat-calendar", 3);
1221
2344
  i0.ɵɵlistener("selectedChange", function DialogDateTimePickerComponent_Template_mat_calendar_selectedChange_3_listener($event) { return ctx.dateChanged($event); });
1222
2345
  i0.ɵɵelementEnd()();
@@ -1237,62 +2360,64 @@ class DialogDateTimePickerComponent {
1237
2360
  i0.ɵɵpipe(21, "translate");
1238
2361
  i0.ɵɵelementEnd()();
1239
2362
  } if (rf & 2) {
1240
- i0.ɵɵadvance(1);
2363
+ i0.ɵɵadvance();
1241
2364
  i0.ɵɵproperty("ngClass", ctx.showSeconds ? "show-seconds" : "hide-seconds");
1242
2365
  i0.ɵɵadvance(2);
1243
2366
  i0.ɵɵproperty("minDate", ctx.minimumDate)("maxDate", ctx.maximumDate)("selected", ctx.selectedDate);
1244
- i0.ɵɵadvance(1);
2367
+ i0.ɵɵadvance();
1245
2368
  i0.ɵɵproperty("ngIf", !ctx.showMobileUi);
1246
- i0.ɵɵadvance(1);
2369
+ i0.ɵɵadvance();
1247
2370
  i0.ɵɵproperty("ngIf", ctx.showMobileUi);
1248
- i0.ɵɵadvance(1);
2371
+ i0.ɵɵadvance();
1249
2372
  i0.ɵɵproperty("ngIf", ctx.showMobileUi);
1250
- i0.ɵɵadvance(1);
2373
+ i0.ɵɵadvance();
1251
2374
  i0.ɵɵproperty("ngIf", !ctx.showMobileUi);
1252
- i0.ɵɵadvance(1);
2375
+ i0.ɵɵadvance();
1253
2376
  i0.ɵɵproperty("ngIf", ctx.showMobileUi);
1254
- i0.ɵɵadvance(1);
2377
+ i0.ɵɵadvance();
1255
2378
  i0.ɵɵproperty("ngIf", ctx.showSeconds && ctx.showMobileUi);
1256
- i0.ɵɵadvance(1);
2379
+ i0.ɵɵadvance();
1257
2380
  i0.ɵɵproperty("ngIf", ctx.showSeconds && !ctx.showMobileUi);
1258
- i0.ɵɵadvance(1);
2381
+ i0.ɵɵadvance();
1259
2382
  i0.ɵɵproperty("ngIf", ctx.showSeconds && ctx.showMobileUi);
1260
2383
  i0.ɵɵadvance(2);
1261
2384
  i0.ɵɵproperty("ngIf", ctx.showClearButton);
1262
2385
  i0.ɵɵadvance(2);
1263
2386
  i0.ɵɵproperty("ngIf", ctx.showButtonIcons);
1264
- i0.ɵɵadvance(1);
2387
+ i0.ɵɵadvance();
1265
2388
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 17, "material.cancel"), " ");
1266
2389
  i0.ɵɵadvance(3);
1267
2390
  i0.ɵɵproperty("ngIf", ctx.showButtonIcons);
1268
- i0.ɵɵadvance(1);
2391
+ i0.ɵɵadvance();
1269
2392
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 19, "material.ok"), " ");
1270
- } }, dependencies: [CommonModule, i2.NgClass, i2.NgIf, CaucaCoreForChildModule, i1.TranslatePipe, MatButtonModule, i4.MatButton, MatDatepickerModule, i5$2.MatCalendar, MatIconModule, i5.MatIcon, MatListModule,
2393
+ } }, dependencies: [MatButtonModule, i4$1.MatButton, MatDatepickerModule, i3$1.MatCalendar, MatIconModule, i1$1.MatIcon, MatListModule,
1271
2394
  MatNativeDateModule,
1272
2395
  MobileTimePickerComponent,
1273
- DesktopTimePickerComponent], 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}}"] }); }
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}}"] }); }
1274
2399
  }
1275
2400
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogDateTimePickerComponent, [{
1276
2401
  type: Component,
1277
2402
  args: [{ selector: 'cauca-dialog-date-time-picker', standalone: true, imports: [
1278
- CommonModule,
1279
- CaucaCoreForChildModule,
1280
2403
  MatButtonModule,
1281
2404
  MatDatepickerModule,
1282
2405
  MatIconModule,
1283
2406
  MatListModule,
1284
2407
  MatNativeDateModule,
1285
2408
  MobileTimePickerComponent,
1286
- DesktopTimePickerComponent
2409
+ DesktopTimePickerComponent,
2410
+ NgClass,
2411
+ TranslateModule
1287
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"] }]
1288
- }], () => [{ type: i1$1.MatDialogRef }, { type: undefined, decorators: [{
2413
+ }], () => [{ type: i1$2.MatDialogRef }, { type: undefined, decorators: [{
1289
2414
  type: Inject,
1290
2415
  args: [MAT_DIALOG_DATA]
1291
2416
  }] }], { onResize: [{
1292
2417
  type: HostListener,
1293
2418
  args: ['window:resize', ['$event']]
1294
2419
  }] }); })();
1295
- (() => { (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 }); })();
1296
2421
 
1297
2422
  class CaucaDateTimePickerComponent {
1298
2423
  constructor(elementRef, dialog, datePipe) {
@@ -1368,7 +2493,7 @@ class CaucaDateTimePickerComponent {
1368
2493
  bottom: `${bottom}px`,
1369
2494
  };
1370
2495
  }
1371
- static { this.ɵfac = function CaucaDateTimePickerComponent_Factory(t) { return new (t || CaucaDateTimePickerComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.MatDialog), i0.ɵɵdirectiveInject(i2.DatePipe)); }; }
2496
+ static { this.ɵfac = function CaucaDateTimePickerComponent_Factory(t) { return new (t || CaucaDateTimePickerComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$2.MatDialog), i0.ɵɵdirectiveInject(i1$3.DatePipe)); }; }
1372
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([
1373
2498
  DatePipe,
1374
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) {
@@ -1380,9 +2505,9 @@ class CaucaDateTimePickerComponent {
1380
2505
  i0.ɵɵtext(4, "calendar_month");
1381
2506
  i0.ɵɵelementEnd()()();
1382
2507
  } if (rf & 2) {
1383
- i0.ɵɵadvance(1);
2508
+ i0.ɵɵadvance();
1384
2509
  i0.ɵɵproperty("value", ctx.stringDate);
1385
- } }, dependencies: [MatButtonModule, i4.MatIconButton, MatIconModule, i5.MatIcon, MatInputModule, i5$1.MatInput, i4$1.MatFormField, i4$1.MatSuffix], styles: ["[_nghost-%COMP%]{display:block}mat-form-field[_ngcontent-%COMP%]{width:100%}"] }); }
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%}"] }); }
1386
2511
  }
1387
2512
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaDateTimePickerComponent, [{
1388
2513
  type: Component,
@@ -1393,7 +2518,7 @@ class CaucaDateTimePickerComponent {
1393
2518
  ], providers: [
1394
2519
  DatePipe,
1395
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"] }]
1396
- }], () => [{ type: i0.ElementRef }, { type: i1$1.MatDialog }, { type: i2.DatePipe }], { stepHours: [{
2521
+ }], () => [{ type: i0.ElementRef }, { type: i1$2.MatDialog }, { type: i1$3.DatePipe }], { stepHours: [{
1397
2522
  type: Input
1398
2523
  }], stepMinutes: [{
1399
2524
  type: Input
@@ -1416,7 +2541,225 @@ class CaucaDateTimePickerComponent {
1416
2541
  }], value: [{
1417
2542
  type: Input
1418
2543
  }] }); })();
1419
- (() => { (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 = {}));
1420
2763
 
1421
2764
  class MenuItem {
1422
2765
  constructor(label, path, icon = '') {
@@ -1435,5 +2778,5 @@ class MenuItem {
1435
2778
  * Generated bundle index. Do not edit.
1436
2779
  */
1437
2780
 
1438
- 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 };
1439
2782
  //# sourceMappingURL=cauca-911-material.mjs.map