@cauca-911/material 17.1.5 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/cauca-date-time-picker/cauca-date-time-picker.component.mjs +2 -2
- package/esm2022/lib/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.mjs +49 -0
- package/esm2022/lib/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.mjs +137 -93
- package/esm2022/lib/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.mjs +74 -0
- package/esm2022/lib/cauca-input-file/cauca-input-file.component.mjs +27 -26
- package/esm2022/lib/cauca-input-multiple-langue/cauca-input-multiple-langue.component.mjs +14 -14
- package/esm2022/lib/cauca-material.component.mjs +2 -2
- package/esm2022/lib/cauca-menu-sidebar/cauca-menu-sidebar.component.mjs +15 -14
- package/esm2022/lib/cauca-menu-vertical/cauca-menu-vertical.component.mjs +47 -47
- package/esm2022/lib/cauca-simple-dialog/cauca-simple-dialog.component.mjs +11 -11
- package/esm2022/lib/cauca-slideshow/cauca-slideshow.component.mjs +9 -9
- package/fesm2022/cauca-911-material.mjs +369 -213
- package/fesm2022/cauca-911-material.mjs.map +1 -1
- package/lib/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.d.ts +14 -0
- package/lib/cauca-date-time-picker/components/dialog-date-time-picker/dialog-date-time-picker.component.d.ts +6 -1
- package/lib/cauca-date-time-picker/components/mobile-time-picker/mobile-time-picker.component.d.ts +11 -0
- package/package.json +6 -6
|
@@ -4,7 +4,7 @@ import * as i1 from '@ngx-translate/core';
|
|
|
4
4
|
import * as i2 from '@angular/common';
|
|
5
5
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
6
6
|
import * as i3 from '@angular/forms';
|
|
7
|
-
import {
|
|
7
|
+
import { UntypedFormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
8
|
import * as i4 from '@angular/material/button';
|
|
9
9
|
import { MatButtonModule } from '@angular/material/button';
|
|
10
10
|
import * as i4$1 from '@angular/material/form-field';
|
|
@@ -23,11 +23,11 @@ import * as i1$1 from '@angular/material/dialog';
|
|
|
23
23
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
24
24
|
import * as i1$3 from '@angular/router';
|
|
25
25
|
import { NavigationEnd } from '@angular/router';
|
|
26
|
-
import {
|
|
26
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
27
27
|
import { MatNativeDateModule } from '@angular/material/core';
|
|
28
28
|
import * as i5$2 from '@angular/material/datepicker';
|
|
29
29
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
30
|
-
import * as
|
|
30
|
+
import * as i1$4 from '@angular/material/list';
|
|
31
31
|
import { MatListModule } from '@angular/material/list';
|
|
32
32
|
|
|
33
33
|
class CaucaMaterialService {
|
|
@@ -49,7 +49,7 @@ class CaucaMaterialComponent {
|
|
|
49
49
|
i0.ɵɵpipe(2, "translate");
|
|
50
50
|
i0.ɵɵelementEnd();
|
|
51
51
|
} if (rf & 2) {
|
|
52
|
-
i0.ɵɵadvance(
|
|
52
|
+
i0.ɵɵadvance();
|
|
53
53
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "core.noGenericComponentOnThisLibrary"));
|
|
54
54
|
} }, dependencies: [i1.TranslatePipe], encapsulation: 2 }); }
|
|
55
55
|
}
|
|
@@ -66,24 +66,24 @@ class SimpleDialogData {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
function CaucaSimpleDialogComponent_div_4_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
-
const
|
|
69
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
70
70
|
i0.ɵɵelementStart(0, "button", 6);
|
|
71
|
-
i0.ɵɵlistener("click", function CaucaSimpleDialogComponent_div_4_button_1_Template_button_click_0_listener() { const
|
|
71
|
+
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)); });
|
|
72
72
|
i0.ɵɵtext(1);
|
|
73
73
|
i0.ɵɵelementEnd();
|
|
74
74
|
} if (rf & 2) {
|
|
75
|
-
const
|
|
76
|
-
i0.ɵɵadvance(
|
|
77
|
-
i0.ɵɵtextInterpolate(
|
|
75
|
+
const label_r4 = ctx.$implicit;
|
|
76
|
+
i0.ɵɵadvance();
|
|
77
|
+
i0.ɵɵtextInterpolate(label_r4);
|
|
78
78
|
} }
|
|
79
79
|
function CaucaSimpleDialogComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
80
80
|
i0.ɵɵelementStart(0, "div", 4);
|
|
81
81
|
i0.ɵɵtemplate(1, CaucaSimpleDialogComponent_div_4_button_1_Template, 2, 1, "button", 5);
|
|
82
82
|
i0.ɵɵelementEnd();
|
|
83
83
|
} if (rf & 2) {
|
|
84
|
-
const
|
|
85
|
-
i0.ɵɵadvance(
|
|
86
|
-
i0.ɵɵproperty("ngForOf",
|
|
84
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
85
|
+
i0.ɵɵadvance();
|
|
86
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.data.buttons);
|
|
87
87
|
} }
|
|
88
88
|
class CaucaSimpleDialogComponent {
|
|
89
89
|
constructor(dialogRef, data) {
|
|
@@ -103,11 +103,11 @@ class CaucaSimpleDialogComponent {
|
|
|
103
103
|
i0.ɵɵelementEnd();
|
|
104
104
|
i0.ɵɵtemplate(4, CaucaSimpleDialogComponent_div_4_Template, 2, 1, "div", 3);
|
|
105
105
|
} if (rf & 2) {
|
|
106
|
-
i0.ɵɵadvance(
|
|
106
|
+
i0.ɵɵadvance();
|
|
107
107
|
i0.ɵɵtextInterpolate(ctx.data.title);
|
|
108
108
|
i0.ɵɵadvance(2);
|
|
109
109
|
i0.ɵɵproperty("innerHTML", ctx.data.message, i0.ɵɵsanitizeHtml);
|
|
110
|
-
i0.ɵɵadvance(
|
|
110
|
+
i0.ɵɵadvance();
|
|
111
111
|
i0.ɵɵproperty("ngIf", ctx.data.buttons);
|
|
112
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
113
|
}
|
|
@@ -120,15 +120,15 @@ class CaucaSimpleDialogComponent {
|
|
|
120
120
|
}] }], null); })();
|
|
121
121
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSimpleDialogComponent, { className: "CaucaSimpleDialogComponent", filePath: "lib\\cauca-simple-dialog\\cauca-simple-dialog.component.ts", lineNumber: 10 }); })();
|
|
122
122
|
|
|
123
|
-
const _c0$
|
|
123
|
+
const _c0$3 = ["file"];
|
|
124
124
|
function CaucaInputFileComponent_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
125
125
|
i0.ɵɵelementStart(0, "mat-icon");
|
|
126
126
|
i0.ɵɵtext(1);
|
|
127
127
|
i0.ɵɵelementEnd();
|
|
128
128
|
} if (rf & 2) {
|
|
129
|
-
const
|
|
130
|
-
i0.ɵɵadvance(
|
|
131
|
-
i0.ɵɵtextInterpolate(
|
|
129
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
130
|
+
i0.ɵɵadvance();
|
|
131
|
+
i0.ɵɵtextInterpolate(ctx_r1.icon);
|
|
132
132
|
} }
|
|
133
133
|
function CaucaInputFileComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
134
134
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -136,29 +136,29 @@ function CaucaInputFileComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
136
136
|
i0.ɵɵelementEnd();
|
|
137
137
|
} if (rf & 2) {
|
|
138
138
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
139
|
-
i0.ɵɵadvance(
|
|
139
|
+
i0.ɵɵadvance();
|
|
140
140
|
i0.ɵɵtextInterpolate(ctx_r1.text);
|
|
141
141
|
} }
|
|
142
142
|
function CaucaInputFileComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
143
|
-
const
|
|
143
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
144
144
|
i0.ɵɵelementContainerStart(0);
|
|
145
|
-
i0.ɵɵelementStart(1, "input",
|
|
146
|
-
i0.ɵɵlistener("change", function CaucaInputFileComponent_ng_container_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(
|
|
145
|
+
i0.ɵɵelementStart(1, "input", 5, 1);
|
|
146
|
+
i0.ɵɵlistener("change", function CaucaInputFileComponent_ng_container_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectFile($event)); });
|
|
147
147
|
i0.ɵɵelementEnd();
|
|
148
148
|
i0.ɵɵelementContainerEnd();
|
|
149
149
|
} if (rf & 2) {
|
|
150
|
-
const
|
|
151
|
-
i0.ɵɵadvance(
|
|
152
|
-
i0.ɵɵproperty("accept",
|
|
150
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
151
|
+
i0.ɵɵadvance();
|
|
152
|
+
i0.ɵɵproperty("accept", ctx_r1.accept);
|
|
153
153
|
} }
|
|
154
154
|
function CaucaInputFileComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
155
|
-
const
|
|
156
|
-
i0.ɵɵelementStart(0, "input", 6,
|
|
157
|
-
i0.ɵɵlistener("change", function CaucaInputFileComponent_ng_template_4_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(
|
|
155
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
156
|
+
i0.ɵɵelementStart(0, "input", 6, 1);
|
|
157
|
+
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)); });
|
|
158
158
|
i0.ɵɵelementEnd();
|
|
159
159
|
} if (rf & 2) {
|
|
160
|
-
const
|
|
161
|
-
i0.ɵɵproperty("accept",
|
|
160
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
161
|
+
i0.ɵɵproperty("accept", ctx_r1.accept);
|
|
162
162
|
} }
|
|
163
163
|
class CaucaInputFileComponent {
|
|
164
164
|
constructor(translateService, dialog) {
|
|
@@ -220,24 +220,25 @@ class CaucaInputFileComponent {
|
|
|
220
220
|
}
|
|
221
221
|
static { this.ɵfac = function CaucaInputFileComponent_Factory(t) { return new (t || CaucaInputFileComponent)(i0.ɵɵdirectiveInject(i1$2.TranslateService), i0.ɵɵdirectiveInject(i1$1.MatDialog)); }; }
|
|
222
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$
|
|
223
|
+
i0.ɵɵviewQuery(_c0$3, 5);
|
|
224
224
|
} if (rf & 2) {
|
|
225
225
|
let _t;
|
|
226
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"], ["
|
|
228
|
-
i0.ɵɵ
|
|
229
|
-
i0.ɵɵ
|
|
230
|
-
i0.ɵɵ
|
|
227
|
+
} }, inputs: { accept: "accept", multiple: "multiple", icon: "icon", text: "text" }, outputs: { readend: "readend" }, decls: 6, vars: 4, consts: [["notMultipleInput", ""], ["file", ""], ["mat-raised-button", "", 3, "click"], [4, "ngIf"], [4, "ngIf", "ngIfElse"], ["type", "file", "multiple", "multiple", 3, "change", "accept"], ["type", "file", 3, "change", "accept"]], template: function CaucaInputFileComponent_Template(rf, ctx) { if (rf & 1) {
|
|
228
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
229
|
+
i0.ɵɵelementStart(0, "button", 2);
|
|
230
|
+
i0.ɵɵlistener("click", function CaucaInputFileComponent_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.openDialog($event)); });
|
|
231
|
+
i0.ɵɵtemplate(1, CaucaInputFileComponent_mat_icon_1_Template, 2, 1, "mat-icon", 3)(2, CaucaInputFileComponent_span_2_Template, 2, 1, "span", 3);
|
|
231
232
|
i0.ɵɵelementEnd();
|
|
232
|
-
i0.ɵɵtemplate(3, CaucaInputFileComponent_ng_container_3_Template, 3, 1, "ng-container",
|
|
233
|
+
i0.ɵɵtemplate(3, CaucaInputFileComponent_ng_container_3_Template, 3, 1, "ng-container", 4)(4, CaucaInputFileComponent_ng_template_4_Template, 2, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
233
234
|
} if (rf & 2) {
|
|
234
|
-
const
|
|
235
|
-
i0.ɵɵadvance(
|
|
235
|
+
const notMultipleInput_r5 = i0.ɵɵreference(5);
|
|
236
|
+
i0.ɵɵadvance();
|
|
236
237
|
i0.ɵɵproperty("ngIf", ctx.icon);
|
|
237
|
-
i0.ɵɵadvance(
|
|
238
|
+
i0.ɵɵadvance();
|
|
238
239
|
i0.ɵɵproperty("ngIf", ctx.text);
|
|
239
|
-
i0.ɵɵadvance(
|
|
240
|
-
i0.ɵɵproperty("ngIf", ctx.multiple)("ngIfElse",
|
|
240
|
+
i0.ɵɵadvance();
|
|
241
|
+
i0.ɵɵproperty("ngIf", ctx.multiple)("ngIfElse", notMultipleInput_r5);
|
|
241
242
|
} }, dependencies: [i2.NgIf, i4.MatButton, i5.MatIcon], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:none}"] }); }
|
|
242
243
|
}
|
|
243
244
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaInputFileComponent, [{
|
|
@@ -265,10 +266,10 @@ function CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template(rf, ct
|
|
|
265
266
|
i0.ɵɵpipe(2, "translate");
|
|
266
267
|
i0.ɵɵelementEnd();
|
|
267
268
|
} if (rf & 2) {
|
|
268
|
-
const
|
|
269
|
-
const
|
|
270
|
-
i0.ɵɵadvance(
|
|
271
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
269
|
+
const i_r1 = i0.ɵɵnextContext().index;
|
|
270
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
271
|
+
i0.ɵɵadvance();
|
|
272
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.getErrorMessage(i_r1)));
|
|
272
273
|
} }
|
|
273
274
|
function CaucaInputMultipleLangueComponent_mat_tab_1_Template(rf, ctx) { if (rf & 1) {
|
|
274
275
|
i0.ɵɵelementStart(0, "mat-tab", 2)(1, "mat-form-field", 3);
|
|
@@ -276,14 +277,14 @@ function CaucaInputMultipleLangueComponent_mat_tab_1_Template(rf, ctx) { if (rf
|
|
|
276
277
|
i0.ɵɵtemplate(3, CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template, 3, 3, "mat-error", 5);
|
|
277
278
|
i0.ɵɵelementEnd()();
|
|
278
279
|
} if (rf & 2) {
|
|
279
|
-
const
|
|
280
|
-
const
|
|
281
|
-
const
|
|
282
|
-
i0.ɵɵproperty("label",
|
|
280
|
+
const lang_r3 = ctx.$implicit;
|
|
281
|
+
const i_r1 = ctx.index;
|
|
282
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
283
|
+
i0.ɵɵproperty("label", lang_r3);
|
|
283
284
|
i0.ɵɵadvance(2);
|
|
284
|
-
i0.ɵɵproperty("placeholder",
|
|
285
|
-
i0.ɵɵadvance(
|
|
286
|
-
i0.ɵɵproperty("ngIf",
|
|
285
|
+
i0.ɵɵproperty("placeholder", lang_r3)("formControl", ctx_r1.forms[i_r1]);
|
|
286
|
+
i0.ɵɵadvance();
|
|
287
|
+
i0.ɵɵproperty("ngIf", ctx_r1.forms[i_r1].invalid);
|
|
287
288
|
} }
|
|
288
289
|
class CaucaInputMultipleLangueComponent {
|
|
289
290
|
constructor(coreService, translate) {
|
|
@@ -317,14 +318,14 @@ class CaucaInputMultipleLangueComponent {
|
|
|
317
318
|
});
|
|
318
319
|
}
|
|
319
320
|
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, "
|
|
321
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaInputMultipleLangueComponent, selectors: [["cauca-input-multiple-langue"]], inputs: { value: "value" }, decls: 2, vars: 2, consts: [[3, "selectedIndexChange", "selectedIndex"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label"], ["hideRequiredMarker", "never"], ["matInput", "", "required", "required", 3, "placeholder", "formControl"], [4, "ngIf"]], template: function CaucaInputMultipleLangueComponent_Template(rf, ctx) { if (rf & 1) {
|
|
321
322
|
i0.ɵɵelementStart(0, "mat-tab-group", 0);
|
|
322
323
|
i0.ɵɵlistener("selectedIndexChange", function CaucaInputMultipleLangueComponent_Template_mat_tab_group_selectedIndexChange_0_listener($event) { return ctx.onTagChanged($event); });
|
|
323
324
|
i0.ɵɵtemplate(1, CaucaInputMultipleLangueComponent_mat_tab_1_Template, 4, 4, "mat-tab", 1);
|
|
324
325
|
i0.ɵɵelementEnd();
|
|
325
326
|
} if (rf & 2) {
|
|
326
327
|
i0.ɵɵproperty("selectedIndex", ctx.selectedIndex);
|
|
327
|
-
i0.ɵɵadvance(
|
|
328
|
+
i0.ɵɵadvance();
|
|
328
329
|
i0.ɵɵproperty("ngForOf", ctx.labels);
|
|
329
330
|
} }, dependencies: [i2.NgForOf, i2.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.RequiredValidator, i3.FormControlDirective, i4$1.MatFormField, i4$1.MatError, i5$1.MatInput, i6.MatTab, i6.MatTabGroup, i1.TranslatePipe], styles: [".mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"] }); }
|
|
330
331
|
}
|
|
@@ -339,25 +340,25 @@ class CaucaInputMultipleLangueComponent {
|
|
|
339
340
|
function CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
340
341
|
i0.ɵɵelement(0, "fa-icon", 8);
|
|
341
342
|
} if (rf & 2) {
|
|
342
|
-
const
|
|
343
|
-
i0.ɵɵproperty("icon",
|
|
343
|
+
const menu_r2 = i0.ɵɵnextContext(2).$implicit;
|
|
344
|
+
i0.ɵɵproperty("icon", menu_r2.icon);
|
|
344
345
|
} }
|
|
345
346
|
function CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
346
347
|
i0.ɵɵelement(0, "img", 9);
|
|
347
348
|
} if (rf & 2) {
|
|
348
|
-
const
|
|
349
|
-
i0.ɵɵproperty("src",
|
|
349
|
+
const menu_r2 = i0.ɵɵnextContext(2).$implicit;
|
|
350
|
+
i0.ɵɵproperty("src", menu_r2.icon, i0.ɵɵsanitizeUrl);
|
|
350
351
|
} }
|
|
351
352
|
function CaucaMenuVerticalComponent_h4_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
352
353
|
i0.ɵɵelementStart(0, "div", 5);
|
|
353
354
|
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6)(2, CaucaMenuVerticalComponent_h4_0_div_2_img_2_Template, 1, 1, "img", 7);
|
|
354
355
|
i0.ɵɵelementEnd();
|
|
355
356
|
} if (rf & 2) {
|
|
356
|
-
const
|
|
357
|
-
i0.ɵɵadvance(
|
|
358
|
-
i0.ɵɵproperty("ngIf",
|
|
359
|
-
i0.ɵɵadvance(
|
|
360
|
-
i0.ɵɵproperty("ngIf",
|
|
357
|
+
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
358
|
+
i0.ɵɵadvance();
|
|
359
|
+
i0.ɵɵproperty("ngIf", menu_r2.icon.filter !== undefined);
|
|
360
|
+
i0.ɵɵadvance();
|
|
361
|
+
i0.ɵɵproperty("ngIf", menu_r2.icon.filter === undefined);
|
|
361
362
|
} }
|
|
362
363
|
function CaucaMenuVerticalComponent_h4_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
363
364
|
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
@@ -365,9 +366,9 @@ function CaucaMenuVerticalComponent_h4_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
365
366
|
i0.ɵɵpipe(3, "translate");
|
|
366
367
|
i0.ɵɵelementEnd()();
|
|
367
368
|
} if (rf & 2) {
|
|
368
|
-
const
|
|
369
|
+
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
369
370
|
i0.ɵɵadvance(2);
|
|
370
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1,
|
|
371
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, menu_r2.label));
|
|
371
372
|
} }
|
|
372
373
|
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
373
374
|
i0.ɵɵelementStart(0, "div", 15);
|
|
@@ -377,25 +378,25 @@ function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template(rf, ctx) { i
|
|
|
377
378
|
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
378
379
|
i0.ɵɵelement(0, "fa-icon", 8);
|
|
379
380
|
} if (rf & 2) {
|
|
380
|
-
const
|
|
381
|
-
i0.ɵɵproperty("icon",
|
|
381
|
+
const submenu_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
382
|
+
i0.ɵɵproperty("icon", submenu_r5.icon);
|
|
382
383
|
} }
|
|
383
384
|
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
384
385
|
i0.ɵɵelement(0, "img", 9);
|
|
385
386
|
} if (rf & 2) {
|
|
386
|
-
const
|
|
387
|
-
i0.ɵɵproperty("src",
|
|
387
|
+
const submenu_r5 = i0.ɵɵnextContext(2).$implicit;
|
|
388
|
+
i0.ɵɵproperty("src", submenu_r5.icon, i0.ɵɵsanitizeUrl);
|
|
388
389
|
} }
|
|
389
390
|
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
390
391
|
i0.ɵɵelementStart(0, "div", 5);
|
|
391
392
|
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_fa_icon_1_Template, 1, 1, "fa-icon", 6)(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_img_2_Template, 1, 1, "img", 7);
|
|
392
393
|
i0.ɵɵelementEnd();
|
|
393
394
|
} if (rf & 2) {
|
|
394
|
-
const
|
|
395
|
-
i0.ɵɵadvance(
|
|
396
|
-
i0.ɵɵproperty("ngIf",
|
|
397
|
-
i0.ɵɵadvance(
|
|
398
|
-
i0.ɵɵproperty("ngIf",
|
|
395
|
+
const submenu_r5 = i0.ɵɵnextContext().$implicit;
|
|
396
|
+
i0.ɵɵadvance();
|
|
397
|
+
i0.ɵɵproperty("ngIf", submenu_r5.icon.filter !== undefined);
|
|
398
|
+
i0.ɵɵadvance();
|
|
399
|
+
i0.ɵɵproperty("ngIf", submenu_r5.icon.filter === undefined);
|
|
399
400
|
} }
|
|
400
401
|
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
401
402
|
i0.ɵɵelementStart(0, "div", 10)(1, "span");
|
|
@@ -403,52 +404,52 @@ function CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template(rf, ctx) { i
|
|
|
403
404
|
i0.ɵɵpipe(3, "translate");
|
|
404
405
|
i0.ɵɵelementEnd()();
|
|
405
406
|
} if (rf & 2) {
|
|
406
|
-
const
|
|
407
|
+
const submenu_r5 = i0.ɵɵnextContext().$implicit;
|
|
407
408
|
i0.ɵɵadvance(2);
|
|
408
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1,
|
|
409
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, submenu_r5.label));
|
|
409
410
|
} }
|
|
410
411
|
function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
411
|
-
const
|
|
412
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
412
413
|
i0.ɵɵelementStart(0, "div", 13);
|
|
413
|
-
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template_div_click_0_listener($event) { const
|
|
414
|
+
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template_div_click_0_listener($event) { const submenu_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.goTo(submenu_r5.path, $event)); });
|
|
414
415
|
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_1_Template, 2, 0, "div", 14)(2, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_2_Template, 3, 2, "div", 2)(3, CaucaMenuVerticalComponent_h4_0_div_4_div_1_div_3_Template, 4, 3, "div", 3);
|
|
415
416
|
i0.ɵɵelementEnd();
|
|
416
417
|
} if (rf & 2) {
|
|
417
|
-
const
|
|
418
|
-
i0.ɵɵclassMap(
|
|
419
|
-
i0.ɵɵadvance(
|
|
420
|
-
i0.ɵɵproperty("ngIf", !
|
|
421
|
-
i0.ɵɵadvance(
|
|
422
|
-
i0.ɵɵproperty("ngIf",
|
|
423
|
-
i0.ɵɵadvance(
|
|
424
|
-
i0.ɵɵproperty("ngIf",
|
|
418
|
+
const submenu_r5 = ctx.$implicit;
|
|
419
|
+
i0.ɵɵclassMap(submenu_r5.activated ? "menu selected" : "menu");
|
|
420
|
+
i0.ɵɵadvance();
|
|
421
|
+
i0.ɵɵproperty("ngIf", !submenu_r5.icon);
|
|
422
|
+
i0.ɵɵadvance();
|
|
423
|
+
i0.ɵɵproperty("ngIf", submenu_r5.icon);
|
|
424
|
+
i0.ɵɵadvance();
|
|
425
|
+
i0.ɵɵproperty("ngIf", submenu_r5.label);
|
|
425
426
|
} }
|
|
426
427
|
function CaucaMenuVerticalComponent_h4_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
427
428
|
i0.ɵɵelementStart(0, "div", 11);
|
|
428
429
|
i0.ɵɵtemplate(1, CaucaMenuVerticalComponent_h4_0_div_4_div_1_Template, 4, 5, "div", 12);
|
|
429
430
|
i0.ɵɵelementEnd();
|
|
430
431
|
} if (rf & 2) {
|
|
431
|
-
const
|
|
432
|
-
i0.ɵɵadvance(
|
|
433
|
-
i0.ɵɵproperty("ngForOf",
|
|
432
|
+
const menu_r2 = i0.ɵɵnextContext().$implicit;
|
|
433
|
+
i0.ɵɵadvance();
|
|
434
|
+
i0.ɵɵproperty("ngForOf", menu_r2.childs);
|
|
434
435
|
} }
|
|
435
436
|
function CaucaMenuVerticalComponent_h4_0_Template(rf, ctx) { if (rf & 1) {
|
|
436
|
-
const
|
|
437
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
437
438
|
i0.ɵɵelementStart(0, "h4")(1, "div", 1);
|
|
438
|
-
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_Template_div_click_1_listener($event) { const
|
|
439
|
+
i0.ɵɵlistener("click", function CaucaMenuVerticalComponent_h4_0_Template_div_click_1_listener($event) { const menu_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.goTo(menu_r2.path, $event)); });
|
|
439
440
|
i0.ɵɵtemplate(2, CaucaMenuVerticalComponent_h4_0_div_2_Template, 3, 2, "div", 2)(3, CaucaMenuVerticalComponent_h4_0_div_3_Template, 4, 3, "div", 3);
|
|
440
441
|
i0.ɵɵelementEnd();
|
|
441
442
|
i0.ɵɵtemplate(4, CaucaMenuVerticalComponent_h4_0_div_4_Template, 2, 1, "div", 4);
|
|
442
443
|
i0.ɵɵelementEnd();
|
|
443
444
|
} if (rf & 2) {
|
|
444
|
-
const
|
|
445
|
-
i0.ɵɵclassMap(
|
|
445
|
+
const menu_r2 = ctx.$implicit;
|
|
446
|
+
i0.ɵɵclassMap(menu_r2.activated ? "selected" : "");
|
|
446
447
|
i0.ɵɵadvance(2);
|
|
447
|
-
i0.ɵɵproperty("ngIf",
|
|
448
|
-
i0.ɵɵadvance(
|
|
449
|
-
i0.ɵɵproperty("ngIf",
|
|
450
|
-
i0.ɵɵadvance(
|
|
451
|
-
i0.ɵɵproperty("ngIf",
|
|
448
|
+
i0.ɵɵproperty("ngIf", menu_r2.icon);
|
|
449
|
+
i0.ɵɵadvance();
|
|
450
|
+
i0.ɵɵproperty("ngIf", menu_r2.label);
|
|
451
|
+
i0.ɵɵadvance();
|
|
452
|
+
i0.ɵɵproperty("ngIf", menu_r2.childs.length && menu_r2.activated);
|
|
452
453
|
} }
|
|
453
454
|
class CaucaMenuVerticalComponent {
|
|
454
455
|
constructor(router) {
|
|
@@ -483,11 +484,11 @@ class CaucaMenuVerticalComponent {
|
|
|
483
484
|
i0.ɵɵtemplate(0, CaucaMenuVerticalComponent_h4_0_Template, 5, 5, "h4", 0);
|
|
484
485
|
} if (rf & 2) {
|
|
485
486
|
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:#
|
|
487
|
+
} }, 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:#fff;margin-right:-1.17em}"] }); }
|
|
487
488
|
}
|
|
488
489
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaMenuVerticalComponent, [{
|
|
489
490
|
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\">•</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:#
|
|
491
|
+
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\">•</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"] }]
|
|
491
492
|
}], () => [{ type: i1$3.Router }], { itemClick: [{
|
|
492
493
|
type: Output
|
|
493
494
|
}], menuItems: [{
|
|
@@ -495,10 +496,12 @@ class CaucaMenuVerticalComponent {
|
|
|
495
496
|
}] }); })();
|
|
496
497
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuVerticalComponent, { className: "CaucaMenuVerticalComponent", filePath: "lib\\cauca-menu-vertical\\cauca-menu-vertical.component.ts", lineNumber: 10 }); })();
|
|
497
498
|
|
|
499
|
+
const _c0$2 = [[["", "header", ""]], [["", "beforeMenu", ""]], [["", "afterMenu", ""]], [["", "footer", ""]]];
|
|
500
|
+
const _c1 = ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"];
|
|
498
501
|
function CaucaMenuSidebarComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
499
|
-
const
|
|
502
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
500
503
|
i0.ɵɵelementStart(0, "div", 7)(1, "div", 8);
|
|
501
|
-
i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_div_12_Template_div_click_1_listener() { i0.ɵɵrestoreView(
|
|
504
|
+
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
505
|
i0.ɵɵelementEnd();
|
|
503
506
|
i0.ɵɵelementStart(2, "span", 9);
|
|
504
507
|
i0.ɵɵtext(3);
|
|
@@ -508,14 +511,12 @@ function CaucaMenuSidebarComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
508
511
|
i0.ɵɵtext(6);
|
|
509
512
|
i0.ɵɵelementEnd()();
|
|
510
513
|
} if (rf & 2) {
|
|
511
|
-
const
|
|
514
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
512
515
|
i0.ɵɵadvance(3);
|
|
513
|
-
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(4, 3, "material.version"), " ",
|
|
516
|
+
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(4, 3, "material.version"), " ", ctx_r2.version, "");
|
|
514
517
|
i0.ɵɵadvance(3);
|
|
515
|
-
i0.ɵɵtextInterpolate(
|
|
518
|
+
i0.ɵɵtextInterpolate(ctx_r2.version);
|
|
516
519
|
} }
|
|
517
|
-
const _c0$1 = [[["", "header", ""]], [["", "beforeMenu", ""]], [["", "afterMenu", ""]], [["", "footer", ""]]];
|
|
518
|
-
const _c1 = ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"];
|
|
519
520
|
class CaucaMenuSidebarComponent {
|
|
520
521
|
constructor(element) {
|
|
521
522
|
this.menuItems = [];
|
|
@@ -594,19 +595,20 @@ class CaucaMenuSidebarComponent {
|
|
|
594
595
|
static { this.ɵfac = function CaucaMenuSidebarComponent_Factory(t) { return new (t || CaucaMenuSidebarComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
|
|
595
596
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuSidebarComponent, selectors: [["cauca-menu-sidebar"]], hostBindings: function CaucaMenuSidebarComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
596
597
|
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, "
|
|
598
|
-
i0.ɵɵ
|
|
599
|
-
i0.ɵɵ
|
|
600
|
-
i0.ɵɵ
|
|
598
|
+
} }, inputs: { menuItems: "menuItems", version: "version" }, ngContentSelectors: _c1, decls: 13, vars: 2, consts: [["menu", ""], [1, "header"], ["mat-icon-button", "", 1, "close", 3, "click"], [1, "content"], [3, "itemClick", "menuItems"], [1, "footer"], ["class", "version", 4, "ngIf"], [1, "version"], [1, "double-arrow", 3, "click"], [1, "full"], [1, "abbr"]], template: function CaucaMenuSidebarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
599
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
600
|
+
i0.ɵɵprojectionDef(_c0$2);
|
|
601
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "button", 2);
|
|
602
|
+
i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.hideOnMobile()); });
|
|
601
603
|
i0.ɵɵelementStart(2, "mat-icon");
|
|
602
604
|
i0.ɵɵtext(3, "clear");
|
|
603
605
|
i0.ɵɵelementEnd()();
|
|
604
606
|
i0.ɵɵprojection(4);
|
|
605
607
|
i0.ɵɵelementEnd();
|
|
606
|
-
i0.ɵɵelementStart(5, "div",
|
|
608
|
+
i0.ɵɵelementStart(5, "div", 3);
|
|
607
609
|
i0.ɵɵprojection(6, 1);
|
|
608
|
-
i0.ɵɵelementStart(7, "cauca-menu-vertical",
|
|
609
|
-
i0.ɵɵlistener("itemClick", function CaucaMenuSidebarComponent_Template_cauca_menu_vertical_itemClick_7_listener() { return ctx.onMenuItemClick(); });
|
|
610
|
+
i0.ɵɵelementStart(7, "cauca-menu-vertical", 4, 0);
|
|
611
|
+
i0.ɵɵlistener("itemClick", function CaucaMenuSidebarComponent_Template_cauca_menu_vertical_itemClick_7_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onMenuItemClick()); });
|
|
610
612
|
i0.ɵɵelementEnd();
|
|
611
613
|
i0.ɵɵprojection(9, 2);
|
|
612
614
|
i0.ɵɵelementEnd();
|
|
@@ -634,18 +636,18 @@ class CaucaMenuSidebarComponent {
|
|
|
634
636
|
}] }); })();
|
|
635
637
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuSidebarComponent, { className: "CaucaMenuSidebarComponent", filePath: "lib\\cauca-menu-sidebar\\cauca-menu-sidebar.component.ts", lineNumber: 9 }); })();
|
|
636
638
|
|
|
637
|
-
const _c0 = ["container"];
|
|
639
|
+
const _c0$1 = ["container"];
|
|
638
640
|
function CaucaSlideshowComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
639
641
|
i0.ɵɵelementStart(0, "div");
|
|
640
642
|
i0.ɵɵelement(1, "img", 3);
|
|
641
643
|
i0.ɵɵelementEnd();
|
|
642
644
|
} if (rf & 2) {
|
|
643
|
-
const
|
|
644
|
-
const
|
|
645
|
-
const
|
|
646
|
-
i0.ɵɵproperty("@slideLeftRight",
|
|
647
|
-
i0.ɵɵadvance(
|
|
648
|
-
i0.ɵɵproperty("src",
|
|
645
|
+
const url_r1 = ctx.$implicit;
|
|
646
|
+
const index_r2 = ctx.index;
|
|
647
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
648
|
+
i0.ɵɵproperty("@slideLeftRight", ctx_r2.getState(index_r2));
|
|
649
|
+
i0.ɵɵadvance();
|
|
650
|
+
i0.ɵɵproperty("src", url_r1, i0.ɵɵsanitizeUrl);
|
|
649
651
|
} }
|
|
650
652
|
class CaucaSlideshowComponent {
|
|
651
653
|
constructor() {
|
|
@@ -696,12 +698,12 @@ class CaucaSlideshowComponent {
|
|
|
696
698
|
}
|
|
697
699
|
static { this.ɵfac = function CaucaSlideshowComponent_Factory(t) { return new (t || CaucaSlideshowComponent)(); }; }
|
|
698
700
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaSlideshowComponent, selectors: [["cauca-slideshow"]], viewQuery: function CaucaSlideshowComponent_Query(rf, ctx) { if (rf & 1) {
|
|
699
|
-
i0.ɵɵviewQuery(_c0, 7);
|
|
701
|
+
i0.ɵɵviewQuery(_c0$1, 7);
|
|
700
702
|
} if (rf & 2) {
|
|
701
703
|
let _t;
|
|
702
704
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
703
|
-
} }, inputs: { height: "height", autoPlay: "autoPlay", images: "images" }, decls: 3, vars: 1, consts: [[
|
|
704
|
-
i0.ɵɵelementStart(0, "div",
|
|
705
|
+
} }, inputs: { height: "height", autoPlay: "autoPlay", images: "images" }, decls: 3, vars: 1, consts: [["container", ""], [1, "slideshow"], [4, "ngFor", "ngForOf"], [3, "src"]], template: function CaucaSlideshowComponent_Template(rf, ctx) { if (rf & 1) {
|
|
706
|
+
i0.ɵɵelementStart(0, "div", 1, 0);
|
|
705
707
|
i0.ɵɵtemplate(2, CaucaSlideshowComponent_div_2_Template, 2, 2, "div", 2);
|
|
706
708
|
i0.ɵɵelementEnd();
|
|
707
709
|
} if (rf & 2) {
|
|
@@ -845,82 +847,214 @@ class CaucaMaterialModule {
|
|
|
845
847
|
CaucaSimpleDialogComponent,
|
|
846
848
|
CaucaSlideshowComponent] }); })();
|
|
847
849
|
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
850
|
+
class MobileTimePickerComponent {
|
|
851
|
+
constructor() {
|
|
852
|
+
this.valueChange = new EventEmitter();
|
|
853
|
+
}
|
|
854
|
+
valueUp() {
|
|
855
|
+
const currentIndex = this.options.indexOf(this.value);
|
|
856
|
+
let newValue = 0;
|
|
857
|
+
if (currentIndex === this.options.length - 1) {
|
|
858
|
+
newValue = this.options[0];
|
|
859
|
+
}
|
|
860
|
+
else {
|
|
861
|
+
newValue = this.options[currentIndex + 1];
|
|
862
|
+
}
|
|
863
|
+
this.valueChange.emit(newValue);
|
|
864
|
+
}
|
|
865
|
+
valueDown() {
|
|
866
|
+
const currentIndex = this.options.indexOf(this.value);
|
|
867
|
+
let newValue = 0;
|
|
868
|
+
if (currentIndex === 0) {
|
|
869
|
+
newValue = this.options[this.options.length - 1];
|
|
870
|
+
}
|
|
871
|
+
else {
|
|
872
|
+
newValue = this.options[currentIndex - 1];
|
|
873
|
+
}
|
|
874
|
+
this.valueChange.emit(newValue);
|
|
875
|
+
}
|
|
876
|
+
static { this.ɵfac = function MobileTimePickerComponent_Factory(t) { return new (t || MobileTimePickerComponent)(); }; }
|
|
877
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MobileTimePickerComponent, selectors: [["cauca-mobile-time-picker"]], inputs: { value: "value", options: "options" }, outputs: { valueChange: "valueChange" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 8, vars: 1, consts: [["mat-icon-button", "", 3, "click"]], template: function MobileTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
878
|
+
i0.ɵɵelementStart(0, "button", 0);
|
|
879
|
+
i0.ɵɵlistener("click", function MobileTimePickerComponent_Template_button_click_0_listener() { return ctx.valueUp(); });
|
|
880
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
881
|
+
i0.ɵɵtext(2, "keyboard_arrow_up");
|
|
882
|
+
i0.ɵɵelementEnd()();
|
|
883
|
+
i0.ɵɵelementStart(3, "div");
|
|
884
|
+
i0.ɵɵtext(4);
|
|
885
|
+
i0.ɵɵelementEnd();
|
|
886
|
+
i0.ɵɵelementStart(5, "button", 0);
|
|
887
|
+
i0.ɵɵlistener("click", function MobileTimePickerComponent_Template_button_click_5_listener() { return ctx.valueDown(); });
|
|
888
|
+
i0.ɵɵelementStart(6, "mat-icon");
|
|
889
|
+
i0.ɵɵtext(7, "keyboard_arrow_down");
|
|
890
|
+
i0.ɵɵelementEnd()();
|
|
891
|
+
} if (rf & 2) {
|
|
892
|
+
i0.ɵɵadvance(4);
|
|
893
|
+
i0.ɵɵtextInterpolate1("\n", (ctx.value < 10 ? "0" : "") + ctx.value, "\n");
|
|
894
|
+
} }, dependencies: [MatButtonModule, i4.MatIconButton, MatIconModule, i5.MatIcon, MatFormFieldModule,
|
|
895
|
+
MatInputModule], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:70px;font-family:var(--mat-form-field-container-text-font)}.mat-mdc-icon-button[_ngcontent-%COMP%]{height:24px;width:24px;line-height:24px;padding:0}"] }); }
|
|
896
|
+
}
|
|
897
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MobileTimePickerComponent, [{
|
|
898
|
+
type: Component,
|
|
899
|
+
args: [{ selector: 'cauca-mobile-time-picker', standalone: true, imports: [
|
|
900
|
+
MatButtonModule,
|
|
901
|
+
MatIconModule,
|
|
902
|
+
MatFormFieldModule,
|
|
903
|
+
MatInputModule
|
|
904
|
+
], template: "<button mat-icon-button (click)=\"valueUp()\">\n <mat-icon>keyboard_arrow_up</mat-icon>\n</button>\n<div>\n{{(value < 10 ? '0' : '' ) + value}}\n</div>\n<button mat-icon-button (click)=\"valueDown()\">\n <mat-icon>keyboard_arrow_down</mat-icon>\n</button>\n", styles: [":host{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{height:24px;width:24px;line-height:24px;padding:0}\n"] }]
|
|
905
|
+
}], null, { value: [{
|
|
906
|
+
type: Input,
|
|
907
|
+
args: [{ required: true }]
|
|
908
|
+
}], options: [{
|
|
909
|
+
type: Input,
|
|
910
|
+
args: [{ required: true }]
|
|
911
|
+
}], valueChange: [{
|
|
912
|
+
type: Output
|
|
913
|
+
}] }); })();
|
|
914
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MobileTimePickerComponent, { className: "MobileTimePickerComponent", filePath: "lib\\cauca-date-time-picker\\components\\mobile-time-picker\\mobile-time-picker.component.ts", lineNumber: 19 }); })();
|
|
915
|
+
|
|
916
|
+
function DesktopTimePickerComponent_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
917
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
918
|
+
i0.ɵɵelementStart(0, "mat-list-item", 2);
|
|
919
|
+
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)); });
|
|
852
920
|
i0.ɵɵtext(1);
|
|
853
921
|
i0.ɵɵelementEnd();
|
|
854
922
|
} if (rf & 2) {
|
|
855
|
-
const
|
|
856
|
-
const
|
|
857
|
-
i0.ɵɵproperty("activated",
|
|
858
|
-
i0.ɵɵadvance(
|
|
859
|
-
i0.ɵɵtextInterpolate((
|
|
923
|
+
const option_r2 = ctx.$implicit;
|
|
924
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
925
|
+
i0.ɵɵproperty("activated", ctx_r2.value === option_r2)("disabled", ctx_r2.disabled == null ? null : ctx_r2.disabled.someOptions.includes(option_r2));
|
|
926
|
+
i0.ɵɵadvance();
|
|
927
|
+
i0.ɵɵtextInterpolate((option_r2 < 10 ? "0" : "") + option_r2);
|
|
860
928
|
} }
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
929
|
+
class DesktopTimePickerComponent {
|
|
930
|
+
constructor() {
|
|
931
|
+
this.options = [];
|
|
932
|
+
this.valueChange = new EventEmitter();
|
|
933
|
+
}
|
|
934
|
+
static { this.ɵfac = function DesktopTimePickerComponent_Factory(t) { return new (t || DesktopTimePickerComponent)(); }; }
|
|
935
|
+
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) {
|
|
936
|
+
i0.ɵɵelementStart(0, "mat-list", 0);
|
|
937
|
+
i0.ɵɵrepeaterCreate(1, DesktopTimePickerComponent_For_2_Template, 2, 3, "mat-list-item", 1, i0.ɵɵrepeaterTrackByIdentity);
|
|
938
|
+
i0.ɵɵelementEnd();
|
|
939
|
+
} if (rf & 2) {
|
|
940
|
+
i0.ɵɵproperty("disabled", ctx.disabled == null ? null : ctx.disabled.all);
|
|
941
|
+
i0.ɵɵadvance();
|
|
942
|
+
i0.ɵɵrepeater(ctx.options);
|
|
943
|
+
} }, 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)}"] }); }
|
|
944
|
+
}
|
|
945
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DesktopTimePickerComponent, [{
|
|
946
|
+
type: Component,
|
|
947
|
+
args: [{ selector: 'cauca-desktop-time-picker', standalone: true, imports: [
|
|
948
|
+
MatListModule
|
|
949
|
+
], 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"] }]
|
|
950
|
+
}], null, { options: [{
|
|
951
|
+
type: Input
|
|
952
|
+
}], value: [{
|
|
953
|
+
type: Input
|
|
954
|
+
}], disabled: [{
|
|
955
|
+
type: Input
|
|
956
|
+
}], valueChange: [{
|
|
957
|
+
type: Output
|
|
958
|
+
}] }); })();
|
|
959
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DesktopTimePickerComponent, { className: "DesktopTimePickerComponent", filePath: "lib\\cauca-date-time-picker\\components\\desktop-time-picker\\desktop-time-picker.component.ts", lineNumber: 13 }); })();
|
|
960
|
+
|
|
961
|
+
const _c0 = (a0, a1) => ({ all: a0, someOptions: a1 });
|
|
962
|
+
function DialogDateTimePickerComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
963
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
964
|
+
i0.ɵɵelementStart(0, "div", 14)(1, "cauca-desktop-time-picker", 15);
|
|
965
|
+
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)); });
|
|
966
|
+
i0.ɵɵelementEnd()();
|
|
967
|
+
} if (rf & 2) {
|
|
968
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
969
|
+
i0.ɵɵadvance();
|
|
970
|
+
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0, ctx_r1.disabled.hours, ctx_r1.disabled.someHours))("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
|
|
971
|
+
} }
|
|
972
|
+
function DialogDateTimePickerComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
973
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
974
|
+
i0.ɵɵelementStart(0, "div", 14)(1, "cauca-mobile-time-picker", 16);
|
|
975
|
+
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)); });
|
|
976
|
+
i0.ɵɵelementEnd()();
|
|
977
|
+
} if (rf & 2) {
|
|
978
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
979
|
+
i0.ɵɵadvance();
|
|
980
|
+
i0.ɵɵproperty("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
|
|
981
|
+
} }
|
|
982
|
+
function DialogDateTimePickerComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
983
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
984
|
+
i0.ɵɵtext(1, ":");
|
|
866
985
|
i0.ɵɵelementEnd();
|
|
986
|
+
} }
|
|
987
|
+
function DialogDateTimePickerComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
988
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
989
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "cauca-desktop-time-picker", 15);
|
|
990
|
+
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)); });
|
|
991
|
+
i0.ɵɵelementEnd()();
|
|
867
992
|
} if (rf & 2) {
|
|
868
|
-
const minute_r13 = ctx.$implicit;
|
|
869
993
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
870
|
-
i0.ɵɵ
|
|
871
|
-
i0.ɵɵ
|
|
872
|
-
i0.ɵɵtextInterpolate((minute_r13 < 10 ? "0" : "") + minute_r13);
|
|
994
|
+
i0.ɵɵadvance();
|
|
995
|
+
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0, ctx_r1.disabled.minutes, ctx_r1.disabled.someMinutes))("options", ctx_r1.minutes)("value", ctx_r1.selectedMinute);
|
|
873
996
|
} }
|
|
874
|
-
function
|
|
875
|
-
const
|
|
876
|
-
i0.ɵɵelementStart(0, "
|
|
877
|
-
i0.ɵɵlistener("
|
|
878
|
-
i0.ɵɵ
|
|
997
|
+
function DialogDateTimePickerComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
998
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
999
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "cauca-mobile-time-picker", 16);
|
|
1000
|
+
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)); });
|
|
1001
|
+
i0.ɵɵelementEnd()();
|
|
1002
|
+
} if (rf & 2) {
|
|
1003
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1004
|
+
i0.ɵɵadvance();
|
|
1005
|
+
i0.ɵɵproperty("options", ctx_r1.minutes)("value", ctx_r1.selectedMinute);
|
|
1006
|
+
} }
|
|
1007
|
+
function DialogDateTimePickerComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
1008
|
+
i0.ɵɵelementStart(0, "div", 19);
|
|
1009
|
+
i0.ɵɵtext(1, ":");
|
|
879
1010
|
i0.ɵɵelementEnd();
|
|
1011
|
+
} }
|
|
1012
|
+
function DialogDateTimePickerComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
1013
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
1014
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "cauca-desktop-time-picker", 15);
|
|
1015
|
+
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)); });
|
|
1016
|
+
i0.ɵɵelementEnd()();
|
|
880
1017
|
} if (rf & 2) {
|
|
881
|
-
const
|
|
882
|
-
|
|
883
|
-
i0.ɵɵproperty("
|
|
884
|
-
i0.ɵɵadvance(1);
|
|
885
|
-
i0.ɵɵtextInterpolate((second_r21 < 10 ? "0" : "") + second_r21);
|
|
1018
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1019
|
+
i0.ɵɵadvance();
|
|
1020
|
+
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0, ctx_r1.disabled.seconds, ctx_r1.disabled.someSeconds))("options", ctx_r1.seconds)("value", ctx_r1.selectedSecond);
|
|
886
1021
|
} }
|
|
887
|
-
function
|
|
888
|
-
i0.ɵɵ
|
|
889
|
-
i0.ɵɵ
|
|
1022
|
+
function DialogDateTimePickerComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
1023
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
1024
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "cauca-mobile-time-picker", 16);
|
|
1025
|
+
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)); });
|
|
890
1026
|
i0.ɵɵelementEnd()();
|
|
891
1027
|
} if (rf & 2) {
|
|
892
|
-
const
|
|
893
|
-
i0.ɵɵadvance(
|
|
894
|
-
i0.ɵɵproperty("
|
|
895
|
-
i0.ɵɵadvance(1);
|
|
896
|
-
i0.ɵɵrepeater(ctx_r2.seconds);
|
|
1028
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1029
|
+
i0.ɵɵadvance();
|
|
1030
|
+
i0.ɵɵproperty("options", ctx_r1.seconds)("value", ctx_r1.selectedSecond);
|
|
897
1031
|
} }
|
|
898
|
-
function
|
|
1032
|
+
function DialogDateTimePickerComponent_button_13_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
899
1033
|
i0.ɵɵelementStart(0, "mat-icon");
|
|
900
1034
|
i0.ɵɵtext(1, "clear");
|
|
901
1035
|
i0.ɵɵelementEnd();
|
|
902
1036
|
} }
|
|
903
|
-
function
|
|
904
|
-
const
|
|
905
|
-
i0.ɵɵelementStart(0, "button",
|
|
906
|
-
i0.ɵɵlistener("click", function
|
|
907
|
-
i0.ɵɵtemplate(1,
|
|
1037
|
+
function DialogDateTimePickerComponent_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
1038
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
1039
|
+
i0.ɵɵelementStart(0, "button", 11);
|
|
1040
|
+
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()); });
|
|
1041
|
+
i0.ɵɵtemplate(1, DialogDateTimePickerComponent_button_13_mat_icon_1_Template, 2, 0, "mat-icon", 12);
|
|
908
1042
|
i0.ɵɵtext(2);
|
|
909
1043
|
i0.ɵɵpipe(3, "translate");
|
|
910
1044
|
i0.ɵɵelementEnd();
|
|
911
1045
|
} if (rf & 2) {
|
|
912
|
-
const
|
|
913
|
-
i0.ɵɵadvance(
|
|
914
|
-
i0.ɵɵproperty("ngIf",
|
|
915
|
-
i0.ɵɵadvance(
|
|
1046
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1047
|
+
i0.ɵɵadvance();
|
|
1048
|
+
i0.ɵɵproperty("ngIf", ctx_r1.showButtonIcons);
|
|
1049
|
+
i0.ɵɵadvance();
|
|
916
1050
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "material.clear"), " ");
|
|
917
1051
|
} }
|
|
918
|
-
function
|
|
1052
|
+
function DialogDateTimePickerComponent_mat_icon_15_Template(rf, ctx) { if (rf & 1) {
|
|
919
1053
|
i0.ɵɵelementStart(0, "mat-icon");
|
|
920
1054
|
i0.ɵɵtext(1, "cancel");
|
|
921
1055
|
i0.ɵɵelementEnd();
|
|
922
1056
|
} }
|
|
923
|
-
function
|
|
1057
|
+
function DialogDateTimePickerComponent_mat_icon_19_Template(rf, ctx) { if (rf & 1) {
|
|
924
1058
|
i0.ɵɵelementStart(0, "mat-icon");
|
|
925
1059
|
i0.ɵɵtext(1, "check");
|
|
926
1060
|
i0.ɵɵelementEnd();
|
|
@@ -942,6 +1076,7 @@ class DialogDateTimePickerComponent {
|
|
|
942
1076
|
this.hours = [...Array(24).keys()];
|
|
943
1077
|
this.minutes = [...Array(60).keys()];
|
|
944
1078
|
this.seconds = [...Array(60).keys()];
|
|
1079
|
+
this.showMobileUi = false;
|
|
945
1080
|
this.disabled = {
|
|
946
1081
|
hours: true,
|
|
947
1082
|
someHours: [],
|
|
@@ -962,6 +1097,12 @@ class DialogDateTimePickerComponent {
|
|
|
962
1097
|
this.setListHoursMinutes();
|
|
963
1098
|
this.initialEachComponentValue(options);
|
|
964
1099
|
}
|
|
1100
|
+
ngOnInit() {
|
|
1101
|
+
this.onWindowWithChange(window.innerWidth);
|
|
1102
|
+
}
|
|
1103
|
+
onResize(event) {
|
|
1104
|
+
this.onWindowWithChange(event.target.innerWidth);
|
|
1105
|
+
}
|
|
965
1106
|
dateChanged(date) {
|
|
966
1107
|
if (date) {
|
|
967
1108
|
this.selectedDate = date;
|
|
@@ -1013,6 +1154,9 @@ class DialogDateTimePickerComponent {
|
|
|
1013
1154
|
value: this.selectedDate
|
|
1014
1155
|
});
|
|
1015
1156
|
}
|
|
1157
|
+
onWindowWithChange(width) {
|
|
1158
|
+
this.showMobileUi = width && width <= 555;
|
|
1159
|
+
}
|
|
1016
1160
|
hourOfSelectedDateIsDisabled(hour) {
|
|
1017
1161
|
if (this.selectedDateIsTheMinimumDate()) {
|
|
1018
1162
|
return hour < this.minimumDate.getHours();
|
|
@@ -1073,56 +1217,63 @@ class DialogDateTimePickerComponent {
|
|
|
1073
1217
|
this.seconds = this.seconds.filter(seconde => seconde % this.step.seconds === 0);
|
|
1074
1218
|
}
|
|
1075
1219
|
static { this.ɵfac = function DialogDateTimePickerComponent_Factory(t) { return new (t || DialogDateTimePickerComponent)(i0.ɵɵdirectiveInject(i1$1.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
|
|
1076
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogDateTimePickerComponent, selectors: [["cauca-dialog-date-time-picker"]],
|
|
1077
|
-
i0.ɵɵ
|
|
1220
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogDateTimePickerComponent, selectors: [["cauca-dialog-date-time-picker"]], hostBindings: function DialogDateTimePickerComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
1221
|
+
i0.ɵɵlistener("resize", function DialogDateTimePickerComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
|
|
1222
|
+
} }, 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) {
|
|
1223
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "mat-calendar", 3);
|
|
1078
1224
|
i0.ɵɵlistener("selectedChange", function DialogDateTimePickerComponent_Template_mat_calendar_selectedChange_3_listener($event) { return ctx.dateChanged($event); });
|
|
1079
1225
|
i0.ɵɵelementEnd()();
|
|
1080
|
-
i0.ɵɵ
|
|
1081
|
-
i0.ɵɵrepeaterCreate(6, DialogDateTimePickerComponent_For_7_Template, 2, 3, "mat-list-item", 14, i0.ɵɵrepeaterTrackByIdentity);
|
|
1226
|
+
i0.ɵɵtemplate(4, DialogDateTimePickerComponent_div_4_Template, 2, 6, "div", 4)(5, DialogDateTimePickerComponent_div_5_Template, 2, 2, "div", 4)(6, DialogDateTimePickerComponent_div_6_Template, 2, 0, "div", 5)(7, DialogDateTimePickerComponent_div_7_Template, 2, 6, "div", 6)(8, DialogDateTimePickerComponent_div_8_Template, 2, 2, "div", 6)(9, DialogDateTimePickerComponent_div_9_Template, 2, 0, "div", 7)(10, DialogDateTimePickerComponent_div_10_Template, 2, 6, "div", 8)(11, DialogDateTimePickerComponent_div_11_Template, 2, 2, "div", 8);
|
|
1082
1227
|
i0.ɵɵelementEnd()();
|
|
1083
|
-
i0.ɵɵelementStart(
|
|
1084
|
-
i0.ɵɵ
|
|
1085
|
-
i0.ɵɵ
|
|
1086
|
-
i0.ɵɵ
|
|
1087
|
-
i0.ɵɵ
|
|
1088
|
-
i0.ɵɵ
|
|
1089
|
-
i0.ɵɵ
|
|
1090
|
-
i0.ɵɵelementStart(15, "button", 9);
|
|
1091
|
-
i0.ɵɵlistener("click", function DialogDateTimePickerComponent_Template_button_click_15_listener() { return ctx.cancel(); });
|
|
1092
|
-
i0.ɵɵtemplate(16, DialogDateTimePickerComponent_mat_icon_16_Template, 2, 0, "mat-icon", 10);
|
|
1093
|
-
i0.ɵɵtext(17);
|
|
1094
|
-
i0.ɵɵpipe(18, "translate");
|
|
1228
|
+
i0.ɵɵelementStart(12, "div", 9);
|
|
1229
|
+
i0.ɵɵtemplate(13, DialogDateTimePickerComponent_button_13_Template, 4, 4, "button", 10);
|
|
1230
|
+
i0.ɵɵelementStart(14, "button", 11);
|
|
1231
|
+
i0.ɵɵlistener("click", function DialogDateTimePickerComponent_Template_button_click_14_listener() { return ctx.cancel(); });
|
|
1232
|
+
i0.ɵɵtemplate(15, DialogDateTimePickerComponent_mat_icon_15_Template, 2, 0, "mat-icon", 12);
|
|
1233
|
+
i0.ɵɵtext(16);
|
|
1234
|
+
i0.ɵɵpipe(17, "translate");
|
|
1095
1235
|
i0.ɵɵelementEnd();
|
|
1096
|
-
i0.ɵɵelementStart(
|
|
1097
|
-
i0.ɵɵlistener("click", function
|
|
1098
|
-
i0.ɵɵtemplate(
|
|
1099
|
-
i0.ɵɵtext(
|
|
1100
|
-
i0.ɵɵpipe(
|
|
1236
|
+
i0.ɵɵelementStart(18, "button", 13);
|
|
1237
|
+
i0.ɵɵlistener("click", function DialogDateTimePickerComponent_Template_button_click_18_listener() { return ctx.confirm(); });
|
|
1238
|
+
i0.ɵɵtemplate(19, DialogDateTimePickerComponent_mat_icon_19_Template, 2, 0, "mat-icon", 12);
|
|
1239
|
+
i0.ɵɵtext(20);
|
|
1240
|
+
i0.ɵɵpipe(21, "translate");
|
|
1101
1241
|
i0.ɵɵelementEnd()();
|
|
1102
1242
|
} if (rf & 2) {
|
|
1103
|
-
i0.ɵɵadvance(
|
|
1104
|
-
i0.ɵɵproperty("
|
|
1105
|
-
i0.ɵɵadvance(2);
|
|
1106
|
-
i0.ɵɵproperty("disabled", ctx.disabled.hours);
|
|
1107
|
-
i0.ɵɵadvance(1);
|
|
1108
|
-
i0.ɵɵrepeater(ctx.hours);
|
|
1109
|
-
i0.ɵɵadvance(3);
|
|
1110
|
-
i0.ɵɵproperty("disabled", ctx.disabled.minutes);
|
|
1111
|
-
i0.ɵɵadvance(1);
|
|
1112
|
-
i0.ɵɵrepeater(ctx.minutes);
|
|
1243
|
+
i0.ɵɵadvance();
|
|
1244
|
+
i0.ɵɵproperty("ngClass", ctx.showSeconds ? "show-seconds" : "hide-seconds");
|
|
1113
1245
|
i0.ɵɵadvance(2);
|
|
1114
|
-
i0.ɵɵproperty("
|
|
1246
|
+
i0.ɵɵproperty("minDate", ctx.minimumDate)("maxDate", ctx.maximumDate)("selected", ctx.selectedDate);
|
|
1247
|
+
i0.ɵɵadvance();
|
|
1248
|
+
i0.ɵɵproperty("ngIf", !ctx.showMobileUi);
|
|
1249
|
+
i0.ɵɵadvance();
|
|
1250
|
+
i0.ɵɵproperty("ngIf", ctx.showMobileUi);
|
|
1251
|
+
i0.ɵɵadvance();
|
|
1252
|
+
i0.ɵɵproperty("ngIf", ctx.showMobileUi);
|
|
1253
|
+
i0.ɵɵadvance();
|
|
1254
|
+
i0.ɵɵproperty("ngIf", !ctx.showMobileUi);
|
|
1255
|
+
i0.ɵɵadvance();
|
|
1256
|
+
i0.ɵɵproperty("ngIf", ctx.showMobileUi);
|
|
1257
|
+
i0.ɵɵadvance();
|
|
1258
|
+
i0.ɵɵproperty("ngIf", ctx.showSeconds && ctx.showMobileUi);
|
|
1259
|
+
i0.ɵɵadvance();
|
|
1260
|
+
i0.ɵɵproperty("ngIf", ctx.showSeconds && !ctx.showMobileUi);
|
|
1261
|
+
i0.ɵɵadvance();
|
|
1262
|
+
i0.ɵɵproperty("ngIf", ctx.showSeconds && ctx.showMobileUi);
|
|
1115
1263
|
i0.ɵɵadvance(2);
|
|
1116
1264
|
i0.ɵɵproperty("ngIf", ctx.showClearButton);
|
|
1117
1265
|
i0.ɵɵadvance(2);
|
|
1118
1266
|
i0.ɵɵproperty("ngIf", ctx.showButtonIcons);
|
|
1119
|
-
i0.ɵɵadvance(
|
|
1120
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
1267
|
+
i0.ɵɵadvance();
|
|
1268
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 17, "material.cancel"), " ");
|
|
1121
1269
|
i0.ɵɵadvance(3);
|
|
1122
1270
|
i0.ɵɵproperty("ngIf", ctx.showButtonIcons);
|
|
1123
|
-
i0.ɵɵadvance(
|
|
1124
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
1125
|
-
} }, dependencies: [CommonModule, i2.NgIf, CaucaCoreForChildModule, i1.TranslatePipe, MatButtonModule, i4.MatButton, MatDatepickerModule, i5$2.MatCalendar, MatIconModule, i5.MatIcon, MatListModule,
|
|
1271
|
+
i0.ɵɵadvance();
|
|
1272
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 19, "material.ok"), " ");
|
|
1273
|
+
} }, dependencies: [CommonModule, i2.NgClass, i2.NgIf, CaucaCoreForChildModule, i1.TranslatePipe, MatButtonModule, i4.MatButton, MatDatepickerModule, i5$2.MatCalendar, MatIconModule, i5.MatIcon, MatListModule,
|
|
1274
|
+
MatNativeDateModule,
|
|
1275
|
+
MobileTimePickerComponent,
|
|
1276
|
+
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}}"] }); }
|
|
1126
1277
|
}
|
|
1127
1278
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogDateTimePickerComponent, [{
|
|
1128
1279
|
type: Component,
|
|
@@ -1134,12 +1285,17 @@ class DialogDateTimePickerComponent {
|
|
|
1134
1285
|
MatIconModule,
|
|
1135
1286
|
MatListModule,
|
|
1136
1287
|
MatNativeDateModule,
|
|
1137
|
-
|
|
1288
|
+
MobileTimePickerComponent,
|
|
1289
|
+
DesktopTimePickerComponent
|
|
1290
|
+
], 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"] }]
|
|
1138
1291
|
}], () => [{ type: i1$1.MatDialogRef }, { type: undefined, decorators: [{
|
|
1139
1292
|
type: Inject,
|
|
1140
1293
|
args: [MAT_DIALOG_DATA]
|
|
1141
|
-
}] }],
|
|
1142
|
-
|
|
1294
|
+
}] }], { onResize: [{
|
|
1295
|
+
type: HostListener,
|
|
1296
|
+
args: ['window:resize', ['$event']]
|
|
1297
|
+
}] }); })();
|
|
1298
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DialogDateTimePickerComponent, { className: "DialogDateTimePickerComponent", filePath: "lib\\cauca-date-time-picker\\components\\dialog-date-time-picker\\dialog-date-time-picker.component.ts", lineNumber: 31 }); })();
|
|
1143
1299
|
|
|
1144
1300
|
class CaucaDateTimePickerComponent {
|
|
1145
1301
|
constructor(elementRef, dialog, datePipe) {
|
|
@@ -1227,7 +1383,7 @@ class CaucaDateTimePickerComponent {
|
|
|
1227
1383
|
i0.ɵɵtext(4, "calendar_month");
|
|
1228
1384
|
i0.ɵɵelementEnd()()();
|
|
1229
1385
|
} if (rf & 2) {
|
|
1230
|
-
i0.ɵɵadvance(
|
|
1386
|
+
i0.ɵɵadvance();
|
|
1231
1387
|
i0.ɵɵproperty("value", ctx.stringDate);
|
|
1232
1388
|
} }, 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%}"] }); }
|
|
1233
1389
|
}
|