@cauca-911/material 17.1.4 → 17.1.6

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.
@@ -27,7 +27,7 @@ import { style, state, animate, transition, trigger } 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 i7 from '@angular/material/list';
30
+ import * as i1$4 from '@angular/material/list';
31
31
  import { MatListModule } from '@angular/material/list';
32
32
 
33
33
  class CaucaMaterialService {
@@ -57,7 +57,7 @@ class CaucaMaterialComponent {
57
57
  type: Component,
58
58
  args: [{ selector: 'cauca-material', template: "<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>" }]
59
59
  }], null, null); })();
60
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMaterialComponent, { className: "CaucaMaterialComponent", filePath: "lib/cauca-material.component.ts", lineNumber: 8 }); })();
60
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMaterialComponent, { className: "CaucaMaterialComponent", filePath: "lib\\cauca-material.component.ts", lineNumber: 8 }); })();
61
61
 
62
62
  class SimpleDialogData {
63
63
  constructor() {
@@ -118,9 +118,9 @@ class CaucaSimpleDialogComponent {
118
118
  type: Inject,
119
119
  args: [MAT_DIALOG_DATA]
120
120
  }] }], null); })();
121
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSimpleDialogComponent, { className: "CaucaSimpleDialogComponent", filePath: "lib/cauca-simple-dialog/cauca-simple-dialog.component.ts", lineNumber: 10 }); })();
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$2 = ["file"];
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);
@@ -220,7 +220,7 @@ 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$2, 5);
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);
@@ -257,7 +257,7 @@ class CaucaInputFileComponent {
257
257
  }], text: [{
258
258
  type: Input
259
259
  }] }); })();
260
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputFileComponent, { className: "CaucaInputFileComponent", filePath: "lib/cauca-input-file/cauca-input-file.component.ts", lineNumber: 11 }); })();
260
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputFileComponent, { className: "CaucaInputFileComponent", filePath: "lib\\cauca-input-file\\cauca-input-file.component.ts", lineNumber: 11 }); })();
261
261
 
262
262
  function CaucaInputMultipleLangueComponent_mat_tab_1_mat_error_3_Template(rf, ctx) { if (rf & 1) {
263
263
  i0.ɵɵelementStart(0, "mat-error");
@@ -334,7 +334,7 @@ class CaucaInputMultipleLangueComponent {
334
334
  }], () => [{ type: i1$2.CaucaCoreService }, { type: i1$2.TranslateService }], { value: [{
335
335
  type: Input
336
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 }); })();
337
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaInputMultipleLangueComponent, { className: "CaucaInputMultipleLangueComponent", filePath: "lib\\cauca-input-multiple-langue\\cauca-input-multiple-langue.component.ts", lineNumber: 10 }); })();
338
338
 
339
339
  function CaucaMenuVerticalComponent_h4_0_div_2_fa_icon_1_Template(rf, ctx) { if (rf & 1) {
340
340
  i0.ɵɵelement(0, "fa-icon", 8);
@@ -493,7 +493,7 @@ class CaucaMenuVerticalComponent {
493
493
  }], menuItems: [{
494
494
  type: Input
495
495
  }] }); })();
496
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuVerticalComponent, { className: "CaucaMenuVerticalComponent", filePath: "lib/cauca-menu-vertical/cauca-menu-vertical.component.ts", lineNumber: 10 }); })();
496
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuVerticalComponent, { className: "CaucaMenuVerticalComponent", filePath: "lib\\cauca-menu-vertical\\cauca-menu-vertical.component.ts", lineNumber: 10 }); })();
497
497
 
498
498
  function CaucaMenuSidebarComponent_div_12_Template(rf, ctx) { if (rf & 1) {
499
499
  const _r3 = i0.ɵɵgetCurrentView();
@@ -514,7 +514,7 @@ function CaucaMenuSidebarComponent_div_12_Template(rf, ctx) { if (rf & 1) {
514
514
  i0.ɵɵadvance(3);
515
515
  i0.ɵɵtextInterpolate(ctx_r1.version);
516
516
  } }
517
- const _c0$1 = [[["", "header", ""]], [["", "beforeMenu", ""]], [["", "afterMenu", ""]], [["", "footer", ""]]];
517
+ const _c0$2 = [[["", "header", ""]], [["", "beforeMenu", ""]], [["", "afterMenu", ""]], [["", "footer", ""]]];
518
518
  const _c1 = ["[header]", "[beforeMenu]", "[afterMenu]", "[footer]"];
519
519
  class CaucaMenuSidebarComponent {
520
520
  constructor(element) {
@@ -595,7 +595,7 @@ class CaucaMenuSidebarComponent {
595
595
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaMenuSidebarComponent, selectors: [["cauca-menu-sidebar"]], hostBindings: function CaucaMenuSidebarComponent_HostBindings(rf, ctx) { if (rf & 1) {
596
596
  i0.ɵɵlistener("resize", function CaucaMenuSidebarComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
597
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$1);
598
+ i0.ɵɵprojectionDef(_c0$2);
599
599
  i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
600
600
  i0.ɵɵlistener("click", function CaucaMenuSidebarComponent_Template_button_click_1_listener() { return ctx.hideOnMobile(); });
601
601
  i0.ɵɵelementStart(2, "mat-icon");
@@ -632,9 +632,9 @@ class CaucaMenuSidebarComponent {
632
632
  type: HostListener,
633
633
  args: ['window:resize', ['$event']]
634
634
  }] }); })();
635
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuSidebarComponent, { className: "CaucaMenuSidebarComponent", filePath: "lib/cauca-menu-sidebar/cauca-menu-sidebar.component.ts", lineNumber: 9 }); })();
635
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaMenuSidebarComponent, { className: "CaucaMenuSidebarComponent", filePath: "lib\\cauca-menu-sidebar\\cauca-menu-sidebar.component.ts", lineNumber: 9 }); })();
636
636
 
637
- const _c0 = ["container"];
637
+ const _c0$1 = ["container"];
638
638
  function CaucaSlideshowComponent_div_2_Template(rf, ctx) { if (rf & 1) {
639
639
  i0.ɵɵelementStart(0, "div");
640
640
  i0.ɵɵelement(1, "img", 3);
@@ -696,7 +696,7 @@ class CaucaSlideshowComponent {
696
696
  }
697
697
  static { this.ɵfac = function CaucaSlideshowComponent_Factory(t) { return new (t || CaucaSlideshowComponent)(); }; }
698
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, 7);
699
+ i0.ɵɵviewQuery(_c0$1, 7);
700
700
  } if (rf & 2) {
701
701
  let _t;
702
702
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
@@ -768,7 +768,7 @@ class CaucaSlideshowComponent {
768
768
  }], images: [{
769
769
  type: Input
770
770
  }] }); })();
771
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSlideshowComponent, { className: "CaucaSlideshowComponent", filePath: "lib/cauca-slideshow/cauca-slideshow.component.ts", lineNumber: 33 }); })();
771
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSlideshowComponent, { className: "CaucaSlideshowComponent", filePath: "lib\\cauca-slideshow\\cauca-slideshow.component.ts", lineNumber: 33 }); })();
772
772
 
773
773
  class CaucaMaterialModule {
774
774
  static { this.ɵfac = function CaucaMaterialModule_Factory(t) { return new (t || CaucaMaterialModule)(); }; }
@@ -845,82 +845,213 @@ class CaucaMaterialModule {
845
845
  CaucaSimpleDialogComponent,
846
846
  CaucaSlideshowComponent] }); })();
847
847
 
848
- function DialogDateTimePickerComponent_For_7_Template(rf, ctx) { if (rf & 1) {
849
- const _r12 = i0.ɵɵgetCurrentView();
850
- i0.ɵɵelementStart(0, "mat-list-item", 12);
851
- i0.ɵɵlistener("click", function DialogDateTimePickerComponent_For_7_Template_mat_list_item_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r12); const hour_r6 = restoredCtx.$implicit; const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.hourChanged(hour_r6)); });
848
+ class MobileTimePickerComponent {
849
+ constructor() {
850
+ this.valueChange = new EventEmitter();
851
+ }
852
+ valueUp() {
853
+ const currentIndex = this.options.indexOf(this.value);
854
+ let newValue = 0;
855
+ if (currentIndex === this.options.length - 1) {
856
+ newValue = this.options[0];
857
+ }
858
+ else {
859
+ newValue = this.options[currentIndex + 1];
860
+ }
861
+ this.valueChange.emit(newValue);
862
+ }
863
+ valueDown() {
864
+ const currentIndex = this.options.indexOf(this.value);
865
+ let newValue = 0;
866
+ if (currentIndex === 0) {
867
+ newValue = this.options[this.options.length - 1];
868
+ }
869
+ else {
870
+ newValue = this.options[currentIndex - 1];
871
+ }
872
+ this.valueChange.emit(newValue);
873
+ }
874
+ static { this.ɵfac = function MobileTimePickerComponent_Factory(t) { return new (t || MobileTimePickerComponent)(); }; }
875
+ 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) {
876
+ i0.ɵɵelementStart(0, "button", 0);
877
+ i0.ɵɵlistener("click", function MobileTimePickerComponent_Template_button_click_0_listener() { return ctx.valueUp(); });
878
+ i0.ɵɵelementStart(1, "mat-icon");
879
+ i0.ɵɵtext(2, "keyboard_arrow_up");
880
+ i0.ɵɵelementEnd()();
881
+ i0.ɵɵelementStart(3, "div");
882
+ i0.ɵɵtext(4);
883
+ i0.ɵɵelementEnd();
884
+ i0.ɵɵelementStart(5, "button", 0);
885
+ i0.ɵɵlistener("click", function MobileTimePickerComponent_Template_button_click_5_listener() { return ctx.valueDown(); });
886
+ i0.ɵɵelementStart(6, "mat-icon");
887
+ i0.ɵɵtext(7, "keyboard_arrow_down");
888
+ i0.ɵɵelementEnd()();
889
+ } if (rf & 2) {
890
+ i0.ɵɵadvance(4);
891
+ i0.ɵɵtextInterpolate1("\n", (ctx.value < 10 ? "0" : "") + ctx.value, "\n");
892
+ } }, dependencies: [MatButtonModule, i4.MatIconButton, MatIconModule, i5.MatIcon, MatFormFieldModule,
893
+ 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
+ }
895
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MobileTimePickerComponent, [{
896
+ type: Component,
897
+ args: [{ selector: 'cauca-mobile-time-picker', standalone: true, imports: [
898
+ MatButtonModule,
899
+ MatIconModule,
900
+ MatFormFieldModule,
901
+ MatInputModule
902
+ ], 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"] }]
903
+ }], null, { value: [{
904
+ type: Input,
905
+ args: [{ required: true }]
906
+ }], options: [{
907
+ type: Input,
908
+ args: [{ required: true }]
909
+ }], valueChange: [{
910
+ type: Output
911
+ }] }); })();
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 }); })();
913
+
914
+ 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)); });
852
918
  i0.ɵɵtext(1);
853
919
  i0.ɵɵelementEnd();
854
920
  } if (rf & 2) {
855
- const hour_r6 = ctx.$implicit;
921
+ const option_r1 = ctx.$implicit;
856
922
  const ctx_r0 = i0.ɵɵnextContext();
857
- i0.ɵɵproperty("activated", ctx_r0.selectedHour === hour_r6)("disabled", ctx_r0.disabled.someHours.includes(hour_r6));
923
+ i0.ɵɵproperty("activated", ctx_r0.value === option_r1)("disabled", ctx_r0.disabled.someOptions.includes(option_r1));
858
924
  i0.ɵɵadvance(1);
859
- i0.ɵɵtextInterpolate((hour_r6 < 10 ? "0" : "") + hour_r6);
925
+ i0.ɵɵtextInterpolate((option_r1 < 10 ? "0" : "") + option_r1);
860
926
  } }
861
- function DialogDateTimePickerComponent_For_11_Template(rf, ctx) { if (rf & 1) {
862
- const _r19 = i0.ɵɵgetCurrentView();
863
- i0.ɵɵelementStart(0, "mat-list-item", 12);
864
- i0.ɵɵlistener("click", function DialogDateTimePickerComponent_For_11_Template_mat_list_item_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r19); const minute_r13 = restoredCtx.$implicit; const ctx_r18 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r18.minuteChanged(minute_r13)); });
865
- i0.ɵɵtext(1);
866
- i0.ɵɵelementEnd();
927
+ class DesktopTimePickerComponent {
928
+ constructor() {
929
+ this.valueChange = new EventEmitter();
930
+ }
931
+ 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) {
933
+ i0.ɵɵelementStart(0, "mat-list", 0);
934
+ i0.ɵɵrepeaterCreate(1, DesktopTimePickerComponent_For_2_Template, 2, 3, "mat-list-item", 2, i0.ɵɵrepeaterTrackByIdentity);
935
+ i0.ɵɵelementEnd();
936
+ } if (rf & 2) {
937
+ i0.ɵɵproperty("disabled", ctx.disabled.all);
938
+ i0.ɵɵadvance(1);
939
+ 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)}"] }); }
941
+ }
942
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DesktopTimePickerComponent, [{
943
+ type: Component,
944
+ args: [{ selector: 'cauca-desktop-time-picker', standalone: true, imports: [
945
+ 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"] }]
947
+ }], null, { options: [{
948
+ type: Input
949
+ }], value: [{
950
+ type: Input
951
+ }], disabled: [{
952
+ type: Input
953
+ }], valueChange: [{
954
+ type: Output
955
+ }] }); })();
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 }); })();
957
+
958
+ const _c0 = (a0, a1) => ({ all: a0, someOptions: a1 });
959
+ function DialogDateTimePickerComponent_div_4_Template(rf, ctx) { if (rf & 1) {
960
+ const _r12 = i0.ɵɵgetCurrentView();
961
+ 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)); });
963
+ i0.ɵɵelementEnd()();
964
+ } 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);
968
+ } }
969
+ function DialogDateTimePickerComponent_div_5_Template(rf, ctx) { if (rf & 1) {
970
+ const _r14 = i0.ɵɵgetCurrentView();
971
+ 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)); });
973
+ i0.ɵɵelementEnd()();
867
974
  } if (rf & 2) {
868
- const minute_r13 = ctx.$implicit;
869
975
  const ctx_r1 = i0.ɵɵnextContext();
870
- i0.ɵɵproperty("activated", ctx_r1.selectedMinute === minute_r13)("disabled", ctx_r1.disabled.someMinutes.includes(minute_r13));
871
976
  i0.ɵɵadvance(1);
872
- i0.ɵɵtextInterpolate((minute_r13 < 10 ? "0" : "") + minute_r13);
977
+ i0.ɵɵproperty("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
873
978
  } }
874
- function DialogDateTimePickerComponent_div_12_For_3_Template(rf, ctx) { if (rf & 1) {
875
- const _r27 = i0.ɵɵgetCurrentView();
876
- i0.ɵɵelementStart(0, "mat-list-item", 12);
877
- i0.ɵɵlistener("click", function DialogDateTimePickerComponent_div_12_For_3_Template_mat_list_item_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r27); const second_r21 = restoredCtx.$implicit; const ctx_r26 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r26.secondChanged(second_r21)); });
878
- i0.ɵɵtext(1);
979
+ function DialogDateTimePickerComponent_div_6_Template(rf, ctx) { if (rf & 1) {
980
+ i0.ɵɵelementStart(0, "div", 17);
981
+ i0.ɵɵtext(1, ":");
879
982
  i0.ɵɵelementEnd();
983
+ } }
984
+ function DialogDateTimePickerComponent_div_7_Template(rf, ctx) { if (rf & 1) {
985
+ const _r16 = i0.ɵɵgetCurrentView();
986
+ 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)); });
988
+ i0.ɵɵelementEnd()();
880
989
  } if (rf & 2) {
881
- const second_r21 = ctx.$implicit;
882
- const ctx_r20 = i0.ɵɵnextContext(2);
883
- i0.ɵɵproperty("activated", ctx_r20.selectedSecond === second_r21)("disabled", ctx_r20.disabled.someSeconds.includes(second_r21));
990
+ const ctx_r3 = i0.ɵɵnextContext();
884
991
  i0.ɵɵadvance(1);
885
- i0.ɵɵtextInterpolate((second_r21 < 10 ? "0" : "") + second_r21);
992
+ i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0, ctx_r3.disabled.minutes, ctx_r3.disabled.someMinutes))("options", ctx_r3.minutes)("value", ctx_r3.selectedMinute);
886
993
  } }
887
- function DialogDateTimePickerComponent_div_12_Template(rf, ctx) { if (rf & 1) {
888
- i0.ɵɵelementStart(0, "div", 13)(1, "mat-list", 4);
889
- i0.ɵɵrepeaterCreate(2, DialogDateTimePickerComponent_div_12_For_3_Template, 2, 3, "mat-list-item", 14, i0.ɵɵrepeaterTrackByIdentity);
994
+ function DialogDateTimePickerComponent_div_8_Template(rf, ctx) { if (rf & 1) {
995
+ const _r18 = i0.ɵɵgetCurrentView();
996
+ 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)); });
890
998
  i0.ɵɵelementEnd()();
891
999
  } if (rf & 2) {
892
- const ctx_r2 = i0.ɵɵnextContext();
1000
+ const ctx_r4 = i0.ɵɵnextContext();
893
1001
  i0.ɵɵadvance(1);
894
- i0.ɵɵproperty("disabled", ctx_r2.disabled.seconds);
1002
+ i0.ɵɵproperty("options", ctx_r4.minutes)("value", ctx_r4.selectedMinute);
1003
+ } }
1004
+ function DialogDateTimePickerComponent_div_9_Template(rf, ctx) { if (rf & 1) {
1005
+ i0.ɵɵelementStart(0, "div", 19);
1006
+ i0.ɵɵtext(1, ":");
1007
+ i0.ɵɵelementEnd();
1008
+ } }
1009
+ function DialogDateTimePickerComponent_div_10_Template(rf, ctx) { if (rf & 1) {
1010
+ const _r20 = i0.ɵɵgetCurrentView();
1011
+ 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)); });
1013
+ i0.ɵɵelementEnd()();
1014
+ } 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);
1018
+ } }
1019
+ function DialogDateTimePickerComponent_div_11_Template(rf, ctx) { if (rf & 1) {
1020
+ const _r22 = i0.ɵɵgetCurrentView();
1021
+ 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)); });
1023
+ i0.ɵɵelementEnd()();
1024
+ } if (rf & 2) {
1025
+ const ctx_r7 = i0.ɵɵnextContext();
895
1026
  i0.ɵɵadvance(1);
896
- i0.ɵɵrepeater(ctx_r2.seconds);
1027
+ i0.ɵɵproperty("options", ctx_r7.seconds)("value", ctx_r7.selectedSecond);
897
1028
  } }
898
- function DialogDateTimePickerComponent_button_14_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
1029
+ function DialogDateTimePickerComponent_button_13_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
899
1030
  i0.ɵɵelementStart(0, "mat-icon");
900
1031
  i0.ɵɵtext(1, "clear");
901
1032
  i0.ɵɵelementEnd();
902
1033
  } }
903
- function DialogDateTimePickerComponent_button_14_Template(rf, ctx) { if (rf & 1) {
904
- const _r30 = i0.ɵɵgetCurrentView();
905
- i0.ɵɵelementStart(0, "button", 9);
906
- i0.ɵɵlistener("click", function DialogDateTimePickerComponent_button_14_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r30); const ctx_r29 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r29.clear()); });
907
- i0.ɵɵtemplate(1, DialogDateTimePickerComponent_button_14_mat_icon_1_Template, 2, 0, "mat-icon", 10);
1034
+ function DialogDateTimePickerComponent_button_13_Template(rf, ctx) { if (rf & 1) {
1035
+ const _r25 = i0.ɵɵgetCurrentView();
1036
+ 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()); });
1038
+ i0.ɵɵtemplate(1, DialogDateTimePickerComponent_button_13_mat_icon_1_Template, 2, 0, "mat-icon", 12);
908
1039
  i0.ɵɵtext(2);
909
1040
  i0.ɵɵpipe(3, "translate");
910
1041
  i0.ɵɵelementEnd();
911
1042
  } if (rf & 2) {
912
- const ctx_r3 = i0.ɵɵnextContext();
1043
+ const ctx_r8 = i0.ɵɵnextContext();
913
1044
  i0.ɵɵadvance(1);
914
- i0.ɵɵproperty("ngIf", ctx_r3.showButtonIcons);
1045
+ i0.ɵɵproperty("ngIf", ctx_r8.showButtonIcons);
915
1046
  i0.ɵɵadvance(1);
916
1047
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "material.clear"), " ");
917
1048
  } }
918
- function DialogDateTimePickerComponent_mat_icon_16_Template(rf, ctx) { if (rf & 1) {
1049
+ function DialogDateTimePickerComponent_mat_icon_15_Template(rf, ctx) { if (rf & 1) {
919
1050
  i0.ɵɵelementStart(0, "mat-icon");
920
1051
  i0.ɵɵtext(1, "cancel");
921
1052
  i0.ɵɵelementEnd();
922
1053
  } }
923
- function DialogDateTimePickerComponent_mat_icon_20_Template(rf, ctx) { if (rf & 1) {
1054
+ function DialogDateTimePickerComponent_mat_icon_19_Template(rf, ctx) { if (rf & 1) {
924
1055
  i0.ɵɵelementStart(0, "mat-icon");
925
1056
  i0.ɵɵtext(1, "check");
926
1057
  i0.ɵɵelementEnd();
@@ -942,6 +1073,7 @@ class DialogDateTimePickerComponent {
942
1073
  this.hours = [...Array(24).keys()];
943
1074
  this.minutes = [...Array(60).keys()];
944
1075
  this.seconds = [...Array(60).keys()];
1076
+ this.showMobileUi = false;
945
1077
  this.disabled = {
946
1078
  hours: true,
947
1079
  someHours: [],
@@ -962,6 +1094,12 @@ class DialogDateTimePickerComponent {
962
1094
  this.setListHoursMinutes();
963
1095
  this.initialEachComponentValue(options);
964
1096
  }
1097
+ ngOnInit() {
1098
+ this.onWindowWithChange(window.innerWidth);
1099
+ }
1100
+ onResize(event) {
1101
+ this.onWindowWithChange(event.target.innerWidth);
1102
+ }
965
1103
  dateChanged(date) {
966
1104
  if (date) {
967
1105
  this.selectedDate = date;
@@ -1013,6 +1151,9 @@ class DialogDateTimePickerComponent {
1013
1151
  value: this.selectedDate
1014
1152
  });
1015
1153
  }
1154
+ onWindowWithChange(width) {
1155
+ this.showMobileUi = width && width <= 555;
1156
+ }
1016
1157
  hourOfSelectedDateIsDisabled(hour) {
1017
1158
  if (this.selectedDateIsTheMinimumDate()) {
1018
1159
  return hour < this.minimumDate.getHours();
@@ -1073,56 +1214,63 @@ class DialogDateTimePickerComponent {
1073
1214
  this.seconds = this.seconds.filter(seconde => seconde % this.step.seconds === 0);
1074
1215
  }
1075
1216
  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"]], standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 23, vars: 15, consts: [["mat-dialog-content", ""], [1, "date-time-picker"], [3, "minDate", "maxDate", "selected", "selectedChange"], [1, "hours"], [3, "disabled"], [1, "minutes"], ["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"], [3, "activated", "disabled", "click"], [1, "seconds"], [3, "activated", "disabled"]], template: function DialogDateTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
1077
- i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div")(3, "mat-calendar", 2);
1217
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogDateTimePickerComponent, selectors: [["cauca-dialog-date-time-picker"]], hostBindings: function DialogDateTimePickerComponent_HostBindings(rf, ctx) { if (rf & 1) {
1218
+ 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) {
1220
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "mat-calendar", 3);
1078
1221
  i0.ɵɵlistener("selectedChange", function DialogDateTimePickerComponent_Template_mat_calendar_selectedChange_3_listener($event) { return ctx.dateChanged($event); });
1079
1222
  i0.ɵɵelementEnd()();
1080
- i0.ɵɵelementStart(4, "div", 3)(5, "mat-list", 4);
1081
- i0.ɵɵrepeaterCreate(6, DialogDateTimePickerComponent_For_7_Template, 2, 3, "mat-list-item", 14, i0.ɵɵrepeaterTrackByIdentity);
1223
+ 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
1224
  i0.ɵɵelementEnd()();
1083
- i0.ɵɵelementStart(8, "div", 5)(9, "mat-list", 4);
1084
- i0.ɵɵrepeaterCreate(10, DialogDateTimePickerComponent_For_11_Template, 2, 3, "mat-list-item", 14, i0.ɵɵrepeaterTrackByIdentity);
1085
- i0.ɵɵelementEnd()();
1086
- i0.ɵɵtemplate(12, DialogDateTimePickerComponent_div_12_Template, 4, 1, "div", 6);
1087
- i0.ɵɵelementEnd()();
1088
- i0.ɵɵelementStart(13, "div", 7);
1089
- i0.ɵɵtemplate(14, DialogDateTimePickerComponent_button_14_Template, 4, 4, "button", 8);
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");
1225
+ i0.ɵɵelementStart(12, "div", 9);
1226
+ i0.ɵɵtemplate(13, DialogDateTimePickerComponent_button_13_Template, 4, 4, "button", 10);
1227
+ i0.ɵɵelementStart(14, "button", 11);
1228
+ i0.ɵɵlistener("click", function DialogDateTimePickerComponent_Template_button_click_14_listener() { return ctx.cancel(); });
1229
+ i0.ɵɵtemplate(15, DialogDateTimePickerComponent_mat_icon_15_Template, 2, 0, "mat-icon", 12);
1230
+ i0.ɵɵtext(16);
1231
+ i0.ɵɵpipe(17, "translate");
1095
1232
  i0.ɵɵelementEnd();
1096
- i0.ɵɵelementStart(19, "button", 11);
1097
- i0.ɵɵlistener("click", function DialogDateTimePickerComponent_Template_button_click_19_listener() { return ctx.confirm(); });
1098
- i0.ɵɵtemplate(20, DialogDateTimePickerComponent_mat_icon_20_Template, 2, 0, "mat-icon", 10);
1099
- i0.ɵɵtext(21);
1100
- i0.ɵɵpipe(22, "translate");
1233
+ i0.ɵɵelementStart(18, "button", 13);
1234
+ i0.ɵɵlistener("click", function DialogDateTimePickerComponent_Template_button_click_18_listener() { return ctx.confirm(); });
1235
+ i0.ɵɵtemplate(19, DialogDateTimePickerComponent_mat_icon_19_Template, 2, 0, "mat-icon", 12);
1236
+ i0.ɵɵtext(20);
1237
+ i0.ɵɵpipe(21, "translate");
1101
1238
  i0.ɵɵelementEnd()();
1102
1239
  } if (rf & 2) {
1103
- i0.ɵɵadvance(3);
1104
- i0.ɵɵproperty("minDate", ctx.minimumDate)("maxDate", ctx.maximumDate)("selected", ctx.selectedDate);
1240
+ i0.ɵɵadvance(1);
1241
+ i0.ɵɵproperty("ngClass", ctx.showSeconds ? "show-seconds" : "hide-seconds");
1105
1242
  i0.ɵɵadvance(2);
1106
- i0.ɵɵproperty("disabled", ctx.disabled.hours);
1243
+ i0.ɵɵproperty("minDate", ctx.minimumDate)("maxDate", ctx.maximumDate)("selected", ctx.selectedDate);
1107
1244
  i0.ɵɵadvance(1);
1108
- i0.ɵɵrepeater(ctx.hours);
1109
- i0.ɵɵadvance(3);
1110
- i0.ɵɵproperty("disabled", ctx.disabled.minutes);
1245
+ i0.ɵɵproperty("ngIf", !ctx.showMobileUi);
1111
1246
  i0.ɵɵadvance(1);
1112
- i0.ɵɵrepeater(ctx.minutes);
1113
- i0.ɵɵadvance(2);
1114
- i0.ɵɵproperty("ngIf", ctx.showSeconds);
1247
+ i0.ɵɵproperty("ngIf", ctx.showMobileUi);
1248
+ i0.ɵɵadvance(1);
1249
+ i0.ɵɵproperty("ngIf", ctx.showMobileUi);
1250
+ i0.ɵɵadvance(1);
1251
+ i0.ɵɵproperty("ngIf", !ctx.showMobileUi);
1252
+ i0.ɵɵadvance(1);
1253
+ i0.ɵɵproperty("ngIf", ctx.showMobileUi);
1254
+ i0.ɵɵadvance(1);
1255
+ i0.ɵɵproperty("ngIf", ctx.showSeconds && ctx.showMobileUi);
1256
+ i0.ɵɵadvance(1);
1257
+ i0.ɵɵproperty("ngIf", ctx.showSeconds && !ctx.showMobileUi);
1258
+ i0.ɵɵadvance(1);
1259
+ i0.ɵɵproperty("ngIf", ctx.showSeconds && ctx.showMobileUi);
1115
1260
  i0.ɵɵadvance(2);
1116
1261
  i0.ɵɵproperty("ngIf", ctx.showClearButton);
1117
1262
  i0.ɵɵadvance(2);
1118
1263
  i0.ɵɵproperty("ngIf", ctx.showButtonIcons);
1119
1264
  i0.ɵɵadvance(1);
1120
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 11, "material.cancel"), " ");
1265
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 17, "material.cancel"), " ");
1121
1266
  i0.ɵɵadvance(3);
1122
1267
  i0.ɵɵproperty("ngIf", ctx.showButtonIcons);
1123
1268
  i0.ɵɵadvance(1);
1124
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(22, 13, "material.ok"), " ");
1125
- } }, dependencies: [CommonModule, i2.NgIf, CaucaCoreForChildModule, i1.TranslatePipe, MatButtonModule, i4.MatButton, MatDatepickerModule, i5$2.MatCalendar, MatIconModule, i5.MatIcon, MatListModule, i7.MatList, i7.MatListItem, MatNativeDateModule], 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:flex;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%] > mat-list[_ngcontent-%COMP%]{width:50px;padding:0}.date-time-picker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > mat-list[_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]:not(.mat-mdc-list-item-interactive){cursor:pointer}.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}.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)}"] }); }
1269
+ 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,
1271
+ MatNativeDateModule,
1272
+ 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}}"] }); }
1126
1274
  }
1127
1275
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogDateTimePickerComponent, [{
1128
1276
  type: Component,
@@ -1134,12 +1282,17 @@ class DialogDateTimePickerComponent {
1134
1282
  MatIconModule,
1135
1283
  MatListModule,
1136
1284
  MatNativeDateModule,
1137
- ], template: "<div mat-dialog-content>\n <div class=\"date-time-picker\">\n <div>\n <mat-calendar\n [minDate]=\"minimumDate\"\n [maxDate]=\"maximumDate\"\n [selected]=\"selectedDate\"\n (selectedChange)=\"dateChanged($event)\"\n ></mat-calendar>\n </div>\n <div class=\"hours\">\n <mat-list [disabled]=\"disabled.hours\">\n @for (hour of hours; track hour) {\n <mat-list-item\n [activated]=\"selectedHour === hour\"\n [disabled]=\"disabled.someHours.includes(hour)\"\n (click)=\"hourChanged(hour)\"\n >{{(hour < 10 ? '0' : '') + hour}}</mat-list-item>\n }\n </mat-list>\n </div>\n <div class=\"minutes\">\n <mat-list [disabled]=\"disabled.minutes\">\n @for (minute of minutes; track minute) {\n <mat-list-item\n [activated]=\"selectedMinute === minute\"\n [disabled]=\"disabled.someMinutes.includes(minute)\"\n (click)=\"minuteChanged(minute)\"\n >{{(minute < 10 ? '0' : '') + minute}}</mat-list-item>\n }\n </mat-list>\n </div>\n <div class=\"seconds\" *ngIf=\"showSeconds\">\n <mat-list [disabled]=\"disabled.seconds\">\n @for (second of seconds; track second) {\n <mat-list-item\n [activated]=\"selectedSecond === second\"\n [disabled]=\"disabled.someSeconds.includes(second)\"\n (click)=\"secondChanged(second)\"\n >{{(second < 10 ? '0' : '') + second}}</mat-list-item>\n }\n </mat-list>\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:flex;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>mat-list{width:50px;padding:0}.date-time-picker>div>mat-list .mat-mdc-list-item:not(.mat-mdc-list-item-interactive){cursor:pointer}.date-time-picker>div:first-child{flex:4;max-width:290px;border-left:none}.date-time-picker>div:first-child mat-calendar{width:290px}.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)}\n"] }]
1285
+ MobileTimePickerComponent,
1286
+ DesktopTimePickerComponent
1287
+ ], 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
1288
  }], () => [{ type: i1$1.MatDialogRef }, { type: undefined, decorators: [{
1139
1289
  type: Inject,
1140
1290
  args: [MAT_DIALOG_DATA]
1141
- }] }], null); })();
1142
- (() => { (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: 27 }); })();
1291
+ }] }], { onResize: [{
1292
+ type: HostListener,
1293
+ args: ['window:resize', ['$event']]
1294
+ }] }); })();
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 }); })();
1143
1296
 
1144
1297
  class CaucaDateTimePickerComponent {
1145
1298
  constructor(elementRef, dialog, datePipe) {
@@ -1263,7 +1416,7 @@ class CaucaDateTimePickerComponent {
1263
1416
  }], value: [{
1264
1417
  type: Input
1265
1418
  }] }); })();
1266
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaDateTimePickerComponent, { className: "CaucaDateTimePickerComponent", filePath: "lib/cauca-date-time-picker/cauca-date-time-picker.component.ts", lineNumber: 24 }); })();
1419
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaDateTimePickerComponent, { className: "CaucaDateTimePickerComponent", filePath: "lib\\cauca-date-time-picker\\cauca-date-time-picker.component.ts", lineNumber: 24 }); })();
1267
1420
 
1268
1421
  class MenuItem {
1269
1422
  constructor(label, path, icon = '') {