@cauca-911/material 20.2.0 → 20.2.2

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Component, EventEmitter, Output, Input, signal, inject, HostListener, Injector, ElementRef, forwardRef, input, computed, output, Directive, ChangeDetectionStrategy, Inject, HostBinding, model, TemplateRef, Optional, Self, ContentChild, ViewChild, NgModule } from '@angular/core';
2
+ import { Injectable, Component, EventEmitter, Output, Input, signal, inject, HostListener, Injector, ElementRef, forwardRef, input, computed, output, Directive, ChangeDetectionStrategy, Inject, HostBinding, model, TemplateRef, Optional, Self, ContentChild, ViewChild, resource, NgModule } from '@angular/core';
3
3
  import * as i1 from '@ngx-translate/core';
4
4
  import { TranslateModule, TranslatePipe, TranslateService } from '@ngx-translate/core';
5
5
  import * as i1$6 from '@angular/material/dialog';
@@ -25,7 +25,7 @@ import { Validators, NgControl, FormControlName, ControlContainer, FormControl,
25
25
  import * as i1$5 from '@angular/cdk/clipboard';
26
26
  import { MatMenuItem, MatMenuTrigger } from '@angular/material/menu';
27
27
  import { firstValueFrom, of, tap, mergeMap, catchError, finalize, throwError, filter, Subject, startWith, map, ReplaySubject, switchMap, EMPTY, combineLatest, distinctUntilChanged } from 'rxjs';
28
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
28
+ import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
29
29
  import * as i2$2 from '@angular/cdk/layout';
30
30
  import * as i5 from '@angular/cdk/text-field';
31
31
  import { MatProgressSpinner } from '@angular/material/progress-spinner';
@@ -36,10 +36,15 @@ import { FontAwesomeModule, FaIconComponent } from '@fortawesome/angular-fontawe
36
36
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
37
37
  import * as i2$3 from '@angular/material/autocomplete';
38
38
  import { MatAutocompleteModule, MatAutocompleteTrigger } from '@angular/material/autocomplete';
39
+ import { ColorPickerDirective } from 'ngx-color-picker';
40
+ import * as i2$4 from '@angular/material/select';
41
+ import { MatSelectModule } from '@angular/material/select';
42
+ import * as i5$1 from 'ngx-mat-select-search';
43
+ import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
39
44
  import * as i1$a from '@angular/router';
40
45
  import { RouterModule, Router, NavigationEnd } from '@angular/router';
46
+ import { trigger, state, transition, style, AUTO_STYLE, animate } from '@angular/animations';
41
47
  import { MatTabGroup, MatTab } from '@angular/material/tabs';
42
- import { trigger, state, transition, style, animate } from '@angular/animations';
43
48
 
44
49
  class CaucaMaterialService {
45
50
  static { this.ɵfac = function CaucaMaterialService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaMaterialService)(); }; }
@@ -181,7 +186,7 @@ class DesktopTimePickerComponent {
181
186
  }] }); })();
182
187
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DesktopTimePickerComponent, { className: "DesktopTimePickerComponent", filePath: "lib/components/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.ts", lineNumber: 12 }); })();
183
188
 
184
- const _c0$b = (a0, a1) => ({ all: a0, someOptions: a1 });
189
+ const _c0$d = (a0, a1) => ({ all: a0, someOptions: a1 });
185
190
  function DialogDateTimePickerComponent_Conditional_4_div_0_Template(rf, ctx) { if (rf & 1) {
186
191
  const _r1 = i0.ɵɵgetCurrentView();
187
192
  i0.ɵɵelementStart(0, "div", 14)(1, "cauca-desktop-time-picker", 15);
@@ -190,7 +195,7 @@ function DialogDateTimePickerComponent_Conditional_4_div_0_Template(rf, ctx) { i
190
195
  } if (rf & 2) {
191
196
  const ctx_r1 = i0.ɵɵnextContext(2);
192
197
  i0.ɵɵadvance();
193
- i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$b, ctx_r1.disabled.hours, ctx_r1.disabled.someHours))("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
198
+ i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$d, ctx_r1.disabled.hours, ctx_r1.disabled.someHours))("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
194
199
  } }
195
200
  function DialogDateTimePickerComponent_Conditional_4_div_1_Template(rf, ctx) { if (rf & 1) {
196
201
  const _r3 = i0.ɵɵgetCurrentView();
@@ -215,7 +220,7 @@ function DialogDateTimePickerComponent_Conditional_4_div_3_Template(rf, ctx) { i
215
220
  } if (rf & 2) {
216
221
  const ctx_r1 = i0.ɵɵnextContext(2);
217
222
  i0.ɵɵadvance();
218
- i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$b, ctx_r1.disabled.minutes, ctx_r1.disabled.someMinutes))("options", ctx_r1.minutes)("value", ctx_r1.selectedMinute);
223
+ i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$d, ctx_r1.disabled.minutes, ctx_r1.disabled.someMinutes))("options", ctx_r1.minutes)("value", ctx_r1.selectedMinute);
219
224
  } }
220
225
  function DialogDateTimePickerComponent_Conditional_4_div_4_Template(rf, ctx) { if (rf & 1) {
221
226
  const _r5 = i0.ɵɵgetCurrentView();
@@ -240,7 +245,7 @@ function DialogDateTimePickerComponent_Conditional_4_div_6_Template(rf, ctx) { i
240
245
  } if (rf & 2) {
241
246
  const ctx_r1 = i0.ɵɵnextContext(2);
242
247
  i0.ɵɵadvance();
243
- i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$b, ctx_r1.disabled.seconds, ctx_r1.disabled.someSeconds))("options", ctx_r1.seconds)("value", ctx_r1.selectedSecond);
248
+ i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$d, ctx_r1.disabled.seconds, ctx_r1.disabled.someSeconds))("options", ctx_r1.seconds)("value", ctx_r1.selectedSecond);
244
249
  } }
245
250
  function DialogDateTimePickerComponent_Conditional_4_div_7_Template(rf, ctx) { if (rf & 1) {
246
251
  const _r7 = i0.ɵɵgetCurrentView();
@@ -1652,8 +1657,8 @@ class DeleteDialogData {
1652
1657
  }
1653
1658
  }
1654
1659
 
1655
- const _c0$a = a0 => ({ itemName: a0 });
1656
- const _c1$2 = a0 => ({ itemType: a0 });
1660
+ const _c0$c = a0 => ({ itemName: a0 });
1661
+ const _c1$3 = a0 => ({ itemType: a0 });
1657
1662
  function DeleteDialogComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1658
1663
  i0.ɵɵelementStart(0, "div", 1);
1659
1664
  i0.ɵɵtext(1);
@@ -1662,7 +1667,7 @@ function DeleteDialogComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
1662
1667
  } if (rf & 2) {
1663
1668
  const ctx_r0 = i0.ɵɵnextContext();
1664
1669
  i0.ɵɵadvance();
1665
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, "deleteDialog.titleFemale", i0.ɵɵpureFunction1(4, _c1$2, ctx_r0.itemType)));
1670
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, "deleteDialog.titleFemale", i0.ɵɵpureFunction1(4, _c1$3, ctx_r0.itemType)));
1666
1671
  } }
1667
1672
  function DeleteDialogComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1668
1673
  i0.ɵɵelementStart(0, "div", 1);
@@ -1672,7 +1677,7 @@ function DeleteDialogComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
1672
1677
  } if (rf & 2) {
1673
1678
  const ctx_r0 = i0.ɵɵnextContext();
1674
1679
  i0.ɵɵadvance();
1675
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, "deleteDialog.titleMale", i0.ɵɵpureFunction1(4, _c1$2, ctx_r0.itemType)));
1680
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, "deleteDialog.titleMale", i0.ɵɵpureFunction1(4, _c1$3, ctx_r0.itemType)));
1676
1681
  } }
1677
1682
  class DeleteDialogComponent {
1678
1683
  constructor(dialogRef, data, breakdownObserver) {
@@ -1714,7 +1719,7 @@ class DeleteDialogComponent {
1714
1719
  i0.ɵɵadvance();
1715
1720
  i0.ɵɵconditional(ctx.itemGenderIsFemale ? 1 : 2);
1716
1721
  i0.ɵɵadvance(5);
1717
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 2, "deleteDialog.message", i0.ɵɵpureFunction1(5, _c0$a, ctx.itemName)));
1722
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 2, "deleteDialog.message", i0.ɵɵpureFunction1(5, _c0$c, ctx.itemName)));
1718
1723
  } }, dependencies: [MatDialogModule, i1$6.MatDialogTitle, i1$6.MatDialogActions, i1$6.MatDialogContent, TranslateModule, StrokedButtonComponent, IconButtonComponent, RaisedButtonComponent, i1.TranslatePipe], styles: ["@media (max-width: 500px){ .dialog-global-style{max-width:100vw!important}} .dialog-global-style{margin:auto!important}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]:first-child{flex:1}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{column-gap:8px}"] }); }
1719
1724
  }
1720
1725
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeleteDialogComponent, [{
@@ -1726,7 +1731,7 @@ class DeleteDialogComponent {
1726
1731
  }] }, { type: i2$2.BreakpointObserver }], null); })();
1727
1732
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DeleteDialogComponent, { className: "DeleteDialogComponent", filePath: "lib/components/dialogs/delete-dialog/delete-dialog.component.ts", lineNumber: 18 }); })();
1728
1733
 
1729
- const _c0$9 = a0 => ({ itemName: a0 });
1734
+ const _c0$b = a0 => ({ itemName: a0 });
1730
1735
  class ErrorDialogComponent {
1731
1736
  constructor(dialogRef, data, breakdownObserver) {
1732
1737
  this.dialogRef = dialogRef;
@@ -1759,7 +1764,7 @@ class ErrorDialogComponent {
1759
1764
  i0.ɵɵadvance(2);
1760
1765
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "errorDialog.titleError"));
1761
1766
  i0.ɵɵadvance(5);
1762
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 4, "errorDialog.messageError", i0.ɵɵpureFunction1(7, _c0$9, ctx.itemName)));
1767
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 4, "errorDialog.messageError", i0.ɵɵpureFunction1(7, _c0$b, ctx.itemName)));
1763
1768
  } }, dependencies: [MatDialogModule, i1$6.MatDialogTitle, i1$6.MatDialogActions, i1$6.MatDialogContent, TranslateModule, RaisedButtonComponent, IconButtonComponent, i1.TranslatePipe], styles: ["@media (max-width: 500px){ .dialog-global-style{max-width:100vw!important}} .dialog-global-style{margin:auto!important}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]:first-child{flex:1}"] }); }
1764
1769
  }
1765
1770
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorDialogComponent, [{
@@ -1876,7 +1881,7 @@ class LoadingStateService {
1876
1881
  type: Injectable
1877
1882
  }], null, null); })();
1878
1883
 
1879
- const _c0$8 = ["*"];
1884
+ const _c0$a = ["*"];
1880
1885
  function SnackBarComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
1881
1886
  const _r1 = i0.ɵɵgetCurrentView();
1882
1887
  i0.ɵɵelementStart(0, "cauca-stroked-button", 7);
@@ -1917,7 +1922,7 @@ class SnackBarComponent {
1917
1922
  this.buttonClick = new EventEmitter();
1918
1923
  }
1919
1924
  static { this.ɵfac = function SnackBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SnackBarComponent)(); }; }
1920
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SnackBarComponent, selectors: [["cauca-snackbar"]], inputs: { icon: [1, "icon"], caption: [1, "caption"], showCloseButton: [1, "showCloseButton"], type: [1, "type"], variant: [1, "variant"], buttonSpecificColor: [1, "buttonSpecificColor"], buttonIcon: [1, "buttonIcon"], inProgress: [1, "inProgress"], showButton: [1, "showButton"], buttonLabel: [1, "buttonLabel"] }, outputs: { closeClick: "closeClick", buttonClick: "buttonClick" }, ngContentSelectors: _c0$8, decls: 12, vars: 8, consts: [[1, "container"], [1, "icon-container"], [1, "text-container"], [1, "title", "alert-title"], [1, "message", "body2"], ["onkeypress", "buttonClick.emit()", 3, "color", "label", "isInProgress", "icon"], ["icon", "close", "onkeypress", "closeClick.emit()"], ["onkeypress", "buttonClick.emit()", 3, "click", "color", "label", "isInProgress", "icon"], ["icon", "close", "onkeypress", "closeClick.emit()", 3, "click"]], template: function SnackBarComponent_Template(rf, ctx) { if (rf & 1) {
1925
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SnackBarComponent, selectors: [["cauca-snackbar"]], inputs: { icon: [1, "icon"], caption: [1, "caption"], showCloseButton: [1, "showCloseButton"], type: [1, "type"], variant: [1, "variant"], buttonSpecificColor: [1, "buttonSpecificColor"], buttonIcon: [1, "buttonIcon"], inProgress: [1, "inProgress"], showButton: [1, "showButton"], buttonLabel: [1, "buttonLabel"] }, outputs: { closeClick: "closeClick", buttonClick: "buttonClick" }, ngContentSelectors: _c0$a, decls: 12, vars: 8, consts: [[1, "container"], [1, "icon-container"], [1, "text-container"], [1, "title", "alert-title"], [1, "message", "body2"], ["onkeypress", "buttonClick.emit()", 3, "color", "label", "isInProgress", "icon"], ["icon", "close", "onkeypress", "closeClick.emit()"], ["onkeypress", "buttonClick.emit()", 3, "click", "color", "label", "isInProgress", "icon"], ["icon", "close", "onkeypress", "closeClick.emit()", 3, "click"]], template: function SnackBarComponent_Template(rf, ctx) { if (rf & 1) {
1921
1926
  i0.ɵɵprojectionDef();
1922
1927
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "mat-icon");
1923
1928
  i0.ɵɵtext(3);
@@ -2426,7 +2431,7 @@ class PasswordValidator {
2426
2431
  }
2427
2432
  }
2428
2433
 
2429
- const _c0$7 = ["*"];
2434
+ const _c0$9 = ["*"];
2430
2435
  function PasswordSelectionComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
2431
2436
  i0.ɵɵelement(0, "cauca-password-criteria-viewer", 5);
2432
2437
  } if (rf & 2) {
@@ -2510,7 +2515,7 @@ class PasswordSelectionComponent {
2510
2515
  multi: true,
2511
2516
  useExisting: forwardRef(() => PasswordSelectionComponent),
2512
2517
  },
2513
- ])], ngContentSelectors: _c0$7, decls: 8, vars: 12, consts: [[3, "formGroup"], [1, "passwords"], ["formControlName", "password", 3, "autocomplete", "label", "translateLabel", "required"], ["formControlName", "confirmation", 3, "autocomplete", "label", "translateLabel", "required"], [1, "errors"], [3, "disabled", "passwordValidation"]], template: function PasswordSelectionComponent_Template(rf, ctx) { if (rf & 1) {
2518
+ ])], ngContentSelectors: _c0$9, decls: 8, vars: 12, consts: [[3, "formGroup"], [1, "passwords"], ["formControlName", "password", 3, "autocomplete", "label", "translateLabel", "required"], ["formControlName", "confirmation", 3, "autocomplete", "label", "translateLabel", "required"], [1, "errors"], [3, "disabled", "passwordValidation"]], template: function PasswordSelectionComponent_Template(rf, ctx) { if (rf & 1) {
2514
2519
  i0.ɵɵprojectionDef();
2515
2520
  i0.ɵɵelementStart(0, "form", 0)(1, "div", 1);
2516
2521
  i0.ɵɵelement(2, "cauca-password-input", 2)(3, "cauca-password-input", 3);
@@ -2606,9 +2611,9 @@ class DateRangePickerComponent {
2606
2611
  }], () => [], null); })();
2607
2612
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateRangePickerComponent, { className: "DateRangePickerComponent", filePath: "lib/components/inputs/date-range-picker/date-range-picker.component.ts", lineNumber: 19 }); })();
2608
2613
 
2609
- const _c0$6 = ["auto"];
2610
- const _c1$1 = ["chipInput"];
2611
- const _c2 = a0 => ({ data: a0 });
2614
+ const _c0$8 = ["auto"];
2615
+ const _c1$2 = ["chipInput"];
2616
+ const _c2$1 = a0 => ({ data: a0 });
2612
2617
  function DropdownChipAutocompleteComponent_For_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
2613
2618
  i0.ɵɵelementStart(0, "mat-icon", 13);
2614
2619
  i0.ɵɵtext(1, "cancel");
@@ -2645,7 +2650,7 @@ function DropdownChipAutocompleteComponent_For_14_Conditional_1_Template(rf, ctx
2645
2650
  } if (rf & 2) {
2646
2651
  const item_r6 = i0.ɵɵnextContext().$implicit;
2647
2652
  const ctx_r3 = i0.ɵɵnextContext();
2648
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.optionTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, item_r6));
2653
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.optionTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2$1, item_r6));
2649
2654
  } }
2650
2655
  function DropdownChipAutocompleteComponent_For_14_Conditional_2_Template(rf, ctx) { if (rf & 1) {
2651
2656
  i0.ɵɵtext(0);
@@ -2837,8 +2842,8 @@ class DropdownChipAutocompleteComponent {
2837
2842
  let _t;
2838
2843
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.optionTemplate = _t.first);
2839
2844
  } }, viewQuery: function DropdownChipAutocompleteComponent_Query(rf, ctx) { if (rf & 1) {
2840
- i0.ɵɵviewQuery(_c0$6, 5);
2841
- i0.ɵɵviewQuery(_c1$1, 5);
2845
+ i0.ɵɵviewQuery(_c0$8, 5);
2846
+ i0.ɵɵviewQuery(_c1$2, 5);
2842
2847
  i0.ɵɵviewQuery(MatAutocompleteTrigger, 5);
2843
2848
  } if (rf & 2) {
2844
2849
  let _t;
@@ -2954,13 +2959,273 @@ class DropdownChipAutocompleteComponent {
2954
2959
  }] }); })();
2955
2960
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DropdownChipAutocompleteComponent, { className: "DropdownChipAutocompleteComponent", filePath: "lib/components/inputs/dropdown-chip-autocomplete/dropdown-chip-autocomplete.component.ts", lineNumber: 46 }); })();
2956
2961
 
2957
- const _c0$5 = ["*"];
2962
+ class ColorPickerComponent {
2963
+ static { this.nextId = 0; }
2964
+ get shouldLabelFloat() {
2965
+ return this.focused || !this.empty;
2966
+ }
2967
+ get empty() {
2968
+ return !this._value?.length;
2969
+ }
2970
+ get value() {
2971
+ return this._value;
2972
+ }
2973
+ set value(newValue) {
2974
+ this._value = newValue;
2975
+ this.onChange(this._value);
2976
+ this.stateChanges.next();
2977
+ }
2978
+ constructor(elementRef, ngControl) {
2979
+ this.elementRef = elementRef;
2980
+ this.ngControl = ngControl;
2981
+ this.stateChanges = new Subject();
2982
+ this.id = `example-tel-input-${ColorPickerComponent.nextId++}`;
2983
+ this.focused = false;
2984
+ this.touched = false;
2985
+ this.valueChanged = new EventEmitter();
2986
+ this.onChange = (_) => {
2987
+ // Do nothing for now
2988
+ };
2989
+ this.onTouched = () => {
2990
+ // Do nothing for now
2991
+ };
2992
+ if (this.ngControl != null) {
2993
+ this.ngControl.valueAccessor = this;
2994
+ }
2995
+ elementRef.nativeElement.addEventListener('focusin', this.onFocusIn.bind(this));
2996
+ elementRef.nativeElement.addEventListener('focusout', this.onFocusOut.bind(this));
2997
+ }
2998
+ onFocusIn(_) {
2999
+ if (!this.focused) {
3000
+ this.focused = true;
3001
+ this.stateChanges.next();
3002
+ }
3003
+ }
3004
+ onFocusOut(event) {
3005
+ if (!this.elementRef.nativeElement.contains(event.relatedTarget)) {
3006
+ this.touched = true;
3007
+ this.focused = false;
3008
+ this.onTouched();
3009
+ this.stateChanges.next();
3010
+ }
3011
+ }
3012
+ ngOnDestroy() {
3013
+ this.stateChanges.complete();
3014
+ }
3015
+ setDescribedByIds(_) {
3016
+ // Do nothing for now
3017
+ }
3018
+ onContainerClick(_) {
3019
+ // Do nothing for now
3020
+ }
3021
+ writeValue(value) {
3022
+ this.value = value;
3023
+ }
3024
+ registerOnChange(fn) {
3025
+ this.onChange = fn;
3026
+ }
3027
+ registerOnTouched(fn) {
3028
+ this.onTouched = fn;
3029
+ }
3030
+ onChangeColor(color) {
3031
+ this.value = color;
3032
+ }
3033
+ static { this.ɵfac = function ColorPickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ColorPickerComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$7.NgControl, 10)); }; }
3034
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ColorPickerComponent, selectors: [["cauca-color-picker"]], hostVars: 3, hostBindings: function ColorPickerComponent_HostBindings(rf, ctx) { if (rf & 2) {
3035
+ i0.ɵɵdomProperty("id", ctx.id);
3036
+ i0.ɵɵclassProp("floating", ctx.shouldLabelFloat);
3037
+ } }, inputs: { value: "value" }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([{
3038
+ provide: MatFormFieldControl,
3039
+ useExisting: ColorPickerComponent,
3040
+ }])], decls: 1, vars: 2, consts: [["matInput", "", "type", "text", "id", "color-id", 1, "form-control", 3, "colorPickerChange", "colorPicker", "value"]], template: function ColorPickerComponent_Template(rf, ctx) { if (rf & 1) {
3041
+ i0.ɵɵelementStart(0, "input", 0);
3042
+ i0.ɵɵtwoWayListener("colorPickerChange", function ColorPickerComponent_Template_input_colorPickerChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return $event; });
3043
+ i0.ɵɵlistener("colorPickerChange", function ColorPickerComponent_Template_input_colorPickerChange_0_listener($event) { return ctx.onChangeColor($event); });
3044
+ i0.ɵɵelementEnd();
3045
+ } if (rf & 2) {
3046
+ i0.ɵɵtwoWayProperty("colorPicker", ctx.value);
3047
+ i0.ɵɵproperty("value", ctx.value);
3048
+ } }, dependencies: [MatInputModule, i3.MatInput, ColorPickerDirective], encapsulation: 2 }); }
3049
+ }
3050
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ColorPickerComponent, [{
3051
+ type: Component,
3052
+ args: [{ selector: 'cauca-color-picker', imports: [MatInputModule, ColorPickerDirective], providers: [{
3053
+ provide: MatFormFieldControl,
3054
+ useExisting: ColorPickerComponent,
3055
+ }], template: "<input\r\n matInput\r\n [(colorPicker)]=\"value\"\r\n [value]=\"value\"\r\n (colorPickerChange)=\"onChangeColor($event)\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n id=\"color-id\"\r\n/>" }]
3056
+ }], () => [{ type: i0.ElementRef }, { type: i1$7.NgControl, decorators: [{
3057
+ type: Optional
3058
+ }, {
3059
+ type: Self
3060
+ }] }], { id: [{
3061
+ type: HostBinding
3062
+ }], valueChanged: [{
3063
+ type: Output
3064
+ }], shouldLabelFloat: [{
3065
+ type: HostBinding,
3066
+ args: ['class.floating']
3067
+ }], value: [{
3068
+ type: Input
3069
+ }] }); })();
3070
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ColorPickerComponent, { className: "ColorPickerComponent", filePath: "lib/components/inputs/color-picker/color-picker.component.ts", lineNumber: 18 }); })();
3071
+
3072
+ const _c0$7 = ["singleSelect"];
3073
+ const _c1$1 = ["*"];
3074
+ const _c2 = () => [];
3075
+ function SelectWithSearchComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
3076
+ i0.ɵɵelementStart(0, "mat-option");
3077
+ i0.ɵɵelement(1, "ngx-mat-select-search", 3);
3078
+ i0.ɵɵpipe(2, "translate");
3079
+ i0.ɵɵpipe(3, "translate");
3080
+ i0.ɵɵelementEnd();
3081
+ } if (rf & 2) {
3082
+ const ctx_r0 = i0.ɵɵnextContext();
3083
+ i0.ɵɵadvance();
3084
+ i0.ɵɵproperty("formControl", ctx_r0.optionFilterControl)("placeholderLabel", i0.ɵɵpipeBind1(2, 3, "search"))("noEntriesFoundLabel", i0.ɵɵpipeBind1(3, 5, "noResult"));
3085
+ } }
3086
+ function SelectWithSearchComponent_For_8_Template(rf, ctx) { if (rf & 1) {
3087
+ i0.ɵɵelementStart(0, "mat-option", 2);
3088
+ i0.ɵɵtext(1);
3089
+ i0.ɵɵelementEnd();
3090
+ } if (rf & 2) {
3091
+ const option_r2 = ctx.$implicit;
3092
+ i0.ɵɵproperty("value", option_r2.id);
3093
+ i0.ɵɵadvance();
3094
+ i0.ɵɵtextInterpolate1(" ", option_r2.name, " ");
3095
+ } }
3096
+ class SelectWithSearchComponent {
3097
+ constructor() {
3098
+ this.selectFirstOptionByDefault = false;
3099
+ this.optionFilterControl = new FormControl('');
3100
+ this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
3101
+ this.hasOptions = signal(false, ...(ngDevMode ? [{ debugName: "hasOptions" }] : []));
3102
+ this.disableControl = computed(() => this.isDisabled() || !this.hasOptions(), ...(ngDevMode ? [{ debugName: "disableControl" }] : []));
3103
+ this.allowMultiSelection = input(false, ...(ngDevMode ? [{ debugName: "allowMultiSelection" }] : []));
3104
+ this.showClearOption = input(false, ...(ngDevMode ? [{ debugName: "showClearOption" }] : []));
3105
+ this.enableSearch = input(true, ...(ngDevMode ? [{ debugName: "enableSearch" }] : []));
3106
+ this.filteredOptions = resource({
3107
+ params: () => ({ filter: this.filterText(), options: this.allOptions(), showClear: this.showClearOption() }),
3108
+ loader: ({ params }) => Promise.resolve(this.computeFilteredOptions(params))
3109
+ });
3110
+ this.valueChanged = new EventEmitter();
3111
+ this.allOptions = signal([], ...(ngDevMode ? [{ debugName: "allOptions" }] : []));
3112
+ this.filterText = toSignal(this.optionFilterControl.valueChanges, { initialValue: '' });
3113
+ }
3114
+ set options(newOptions) {
3115
+ if (newOptions) {
3116
+ this.allOptions.set(newOptions);
3117
+ this.hasOptions.set(newOptions.length >= 1);
3118
+ this.setInitialSelectedOption();
3119
+ }
3120
+ else {
3121
+ this.allOptions.set([]);
3122
+ this.hasOptions.set(false);
3123
+ }
3124
+ }
3125
+ get options() {
3126
+ return this.allOptions();
3127
+ }
3128
+ set value(newValue) {
3129
+ if (newValue !== this.selectedOptionId) {
3130
+ this.selectedOptionId = newValue;
3131
+ this.valueChanged.emit(this.value);
3132
+ }
3133
+ }
3134
+ get value() {
3135
+ return this.selectedOptionId;
3136
+ }
3137
+ setInitialSelectedOption() {
3138
+ if (this.value) {
3139
+ const city = this.options.find((c) => c.id === this.value);
3140
+ if (!city) {
3141
+ this.selectFirstOption();
3142
+ }
3143
+ }
3144
+ else if (this.options.length > 0 && this.selectFirstOptionByDefault) {
3145
+ this.selectFirstOption();
3146
+ }
3147
+ }
3148
+ selectFirstOption() {
3149
+ this.value = this.options[0].id;
3150
+ }
3151
+ computeFilteredOptions(params) {
3152
+ const { filter, options, showClear } = params;
3153
+ if (!options || !Array.isArray(options)) {
3154
+ return [];
3155
+ }
3156
+ let filtered;
3157
+ if (!filter) {
3158
+ filtered = options.slice();
3159
+ }
3160
+ else {
3161
+ const filterLower = toLowerCaseAndWithoutDiacritics(filter);
3162
+ filtered = options.filter(option => toLowerCaseAndWithoutDiacritics(option?.name ?? '').indexOf(filterLower) > -1);
3163
+ }
3164
+ if (showClear) {
3165
+ const clearOption = { id: null, name: '--' };
3166
+ filtered = [clearOption, ...filtered];
3167
+ }
3168
+ return filtered;
3169
+ }
3170
+ static { this.ɵfac = function SelectWithSearchComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectWithSearchComponent)(); }; }
3171
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectWithSearchComponent, selectors: [["cauca-select-with-search"]], viewQuery: function SelectWithSearchComponent_Query(rf, ctx) { if (rf & 1) {
3172
+ i0.ɵɵviewQuery(_c0$7, 7);
3173
+ } if (rf & 2) {
3174
+ let _t;
3175
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.singleSelect = _t.first);
3176
+ } }, inputs: { label: "label", selectFirstOptionByDefault: "selectFirstOptionByDefault", isDisabled: [1, "isDisabled"], allowMultiSelection: [1, "allowMultiSelection"], showClearOption: [1, "showClearOption"], enableSearch: [1, "enableSearch"], options: "options", value: "value" }, outputs: { valueChanged: "valueChanged" }, ngContentSelectors: _c1$1, decls: 9, vars: 10, consts: [["subscriptSizing", "dynamic", 1, "full-width-field", "header", "dense"], [3, "valueChange", "value", "disabled", "multiple"], [3, "value"], [3, "formControl", "placeholderLabel", "noEntriesFoundLabel"]], template: function SelectWithSearchComponent_Template(rf, ctx) { if (rf & 1) {
3177
+ i0.ɵɵprojectionDef();
3178
+ i0.ɵɵelementStart(0, "mat-form-field", 0);
3179
+ i0.ɵɵprojection(1);
3180
+ i0.ɵɵelementStart(2, "mat-label");
3181
+ i0.ɵɵtext(3);
3182
+ i0.ɵɵpipe(4, "translate");
3183
+ i0.ɵɵelementEnd();
3184
+ i0.ɵɵelementStart(5, "mat-select", 1);
3185
+ i0.ɵɵtwoWayListener("valueChange", function SelectWithSearchComponent_Template_mat_select_valueChange_5_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return $event; });
3186
+ i0.ɵɵconditionalCreate(6, SelectWithSearchComponent_Conditional_6_Template, 4, 7, "mat-option");
3187
+ i0.ɵɵrepeaterCreate(7, SelectWithSearchComponent_For_8_Template, 2, 2, "mat-option", 2, i0.ɵɵrepeaterTrackByIdentity);
3188
+ i0.ɵɵelementEnd()();
3189
+ } if (rf & 2) {
3190
+ i0.ɵɵadvance(3);
3191
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, ctx.label));
3192
+ i0.ɵɵadvance(2);
3193
+ i0.ɵɵclassProp("readonly-field", ctx.disableControl());
3194
+ i0.ɵɵtwoWayProperty("value", ctx.value);
3195
+ i0.ɵɵproperty("disabled", ctx.disableControl())("multiple", ctx.allowMultiSelection());
3196
+ i0.ɵɵadvance();
3197
+ i0.ɵɵconditional(ctx.enableSearch() ? 6 : -1);
3198
+ i0.ɵɵadvance();
3199
+ i0.ɵɵrepeater(ctx.filteredOptions.value() || i0.ɵɵpureFunction0(9, _c2));
3200
+ } }, dependencies: [MatSelectModule, i1$4.MatFormField, i1$4.MatLabel, i2$4.MatSelect, i2$3.MatOption, TranslateModule, MatFormFieldModule, ReactiveFormsModule, i1$7.NgControlStatus, i1$7.FormControlDirective, FormsModule, NgxMatSelectSearchModule, i5$1.MatSelectSearchComponent, i1.TranslatePipe], encapsulation: 2 }); }
3201
+ }
3202
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectWithSearchComponent, [{
3203
+ type: Component,
3204
+ args: [{ selector: 'cauca-select-with-search', standalone: true, imports: [MatSelectModule, TranslateModule, MatFormFieldModule, ReactiveFormsModule, FormsModule, NgxMatSelectSearchModule], template: "<mat-form-field class=\"full-width-field header dense\" subscriptSizing=\"dynamic\">\n <ng-content></ng-content>\n <mat-label>{{ label | translate }}</mat-label>\n <mat-select [(value)]=\"value\" [disabled]=\"disableControl()\" [class.readonly-field]=\"disableControl()\" [multiple]=\"allowMultiSelection()\" >\n @if (enableSearch()) {\n <mat-option>\n <ngx-mat-select-search [formControl]=\"optionFilterControl\" [placeholderLabel]=\"'search' | translate\"\n [noEntriesFoundLabel]=\"'noResult' | translate\">\n </ngx-mat-select-search>\n </mat-option>\n }\n @for (option of filteredOptions.value() || []; track option) {\n <mat-option [value]=\"option.id\">\n {{option.name}}\n </mat-option>\n }\n </mat-select>\n\n</mat-form-field>" }]
3205
+ }], null, { label: [{
3206
+ type: Input,
3207
+ args: [{ required: true }]
3208
+ }], selectFirstOptionByDefault: [{
3209
+ type: Input
3210
+ }], singleSelect: [{
3211
+ type: ViewChild,
3212
+ args: ['singleSelect', { static: true }]
3213
+ }], valueChanged: [{
3214
+ type: Output
3215
+ }], options: [{
3216
+ type: Input
3217
+ }], value: [{
3218
+ type: Input
3219
+ }] }); })();
3220
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectWithSearchComponent, { className: "SelectWithSearchComponent", filePath: "lib/components/inputs/select-with-search/select-with-search.component.ts", lineNumber: 22 }); })();
3221
+
3222
+ const _c0$6 = ["*"];
2958
3223
  class GroupContainerComponent {
2959
3224
  constructor() {
2960
3225
  this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
2961
3226
  }
2962
3227
  static { this.ɵfac = function GroupContainerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GroupContainerComponent)(); }; }
2963
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GroupContainerComponent, selectors: [["cauca-group-container"]], inputs: { caption: [1, "caption"] }, ngContentSelectors: _c0$5, decls: 6, vars: 3, consts: [[1, "group-container"], [1, "group-container-title", "subtitle1"], [1, "group-container-content"]], template: function GroupContainerComponent_Template(rf, ctx) { if (rf & 1) {
3228
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GroupContainerComponent, selectors: [["cauca-group-container"]], inputs: { caption: [1, "caption"] }, ngContentSelectors: _c0$6, decls: 6, vars: 3, consts: [[1, "group-container"], [1, "group-container-title", "subtitle1"], [1, "group-container-content"]], template: function GroupContainerComponent_Template(rf, ctx) { if (rf & 1) {
2964
3229
  i0.ɵɵprojectionDef();
2965
3230
  i0.ɵɵdomElementStart(0, "div", 0)(1, "div", 1);
2966
3231
  i0.ɵɵtext(2);
@@ -2980,7 +3245,7 @@ class GroupContainerComponent {
2980
3245
  }], null, null); })();
2981
3246
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GroupContainerComponent, { className: "GroupContainerComponent", filePath: "lib/components/layout/group-container/group-container.component.ts", lineNumber: 12 }); })();
2982
3247
 
2983
- const _c0$4 = ["*"];
3248
+ const _c0$5 = ["*"];
2984
3249
  function MainSectionComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2985
3250
  i0.ɵɵdomElementStart(0, "div", 1);
2986
3251
  i0.ɵɵtext(1);
@@ -2996,7 +3261,7 @@ class MainSectionComponent {
2996
3261
  this.title = input('', ...(ngDevMode ? [{ debugName: "title" }] : []));
2997
3262
  }
2998
3263
  static { this.ɵfac = function MainSectionComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MainSectionComponent)(); }; }
2999
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MainSectionComponent, selectors: [["cauca-main-section"]], inputs: { title: [1, "title"] }, ngContentSelectors: _c0$4, decls: 4, vars: 1, consts: [[1, "section"], [1, "section-description", "subtitle1"], [1, "section-fields"]], template: function MainSectionComponent_Template(rf, ctx) { if (rf & 1) {
3264
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MainSectionComponent, selectors: [["cauca-main-section"]], inputs: { title: [1, "title"] }, ngContentSelectors: _c0$5, decls: 4, vars: 1, consts: [[1, "section"], [1, "section-description", "subtitle1"], [1, "section-fields"]], template: function MainSectionComponent_Template(rf, ctx) { if (rf & 1) {
3000
3265
  i0.ɵɵprojectionDef();
3001
3266
  i0.ɵɵdomElementStart(0, "div", 0);
3002
3267
  i0.ɵɵconditionalCreate(1, MainSectionComponent_Conditional_1_Template, 3, 3, "div", 1);
@@ -3014,13 +3279,13 @@ class MainSectionComponent {
3014
3279
  }], null, null); })();
3015
3280
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MainSectionComponent, { className: "MainSectionComponent", filePath: "lib/components/layout/sections/main-section/main-section.component.ts", lineNumber: 11 }); })();
3016
3281
 
3017
- const _c0$3 = ["*"];
3282
+ const _c0$4 = ["*"];
3018
3283
  class SectionColumnComponent {
3019
3284
  constructor() {
3020
3285
  this.showBigGap = input(false, ...(ngDevMode ? [{ debugName: "showBigGap" }] : []));
3021
3286
  }
3022
3287
  static { this.ɵfac = function SectionColumnComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SectionColumnComponent)(); }; }
3023
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SectionColumnComponent, selectors: [["cauca-section-column"]], inputs: { showBigGap: [1, "showBigGap"] }, ngContentSelectors: _c0$3, decls: 2, vars: 2, consts: [[1, "section-columns"]], template: function SectionColumnComponent_Template(rf, ctx) { if (rf & 1) {
3288
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SectionColumnComponent, selectors: [["cauca-section-column"]], inputs: { showBigGap: [1, "showBigGap"] }, ngContentSelectors: _c0$4, decls: 2, vars: 2, consts: [[1, "section-columns"]], template: function SectionColumnComponent_Template(rf, ctx) { if (rf & 1) {
3024
3289
  i0.ɵɵprojectionDef();
3025
3290
  i0.ɵɵdomElementStart(0, "div", 0);
3026
3291
  i0.ɵɵprojection(1);
@@ -3249,6 +3514,259 @@ class PageTitleComponent {
3249
3514
  }], null, null); })();
3250
3515
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 13 }); })();
3251
3516
 
3517
+ const _c0$3 = ["*"];
3518
+ const DEFAULT_DURATION$1 = 500;
3519
+ class ExpandablePanelComponent {
3520
+ constructor() {
3521
+ this.isCollapsed = model(false, ...(ngDevMode ? [{ debugName: "isCollapsed" }] : []));
3522
+ this.caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : []));
3523
+ this.subCaption = input('', ...(ngDevMode ? [{ debugName: "subCaption" }] : []));
3524
+ }
3525
+ changeState() {
3526
+ this.isCollapsed.update(value => !value);
3527
+ }
3528
+ static { this.ɵfac = function ExpandablePanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ExpandablePanelComponent)(); }; }
3529
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExpandablePanelComponent, selectors: [["cauca-expandable-panel"]], inputs: { isCollapsed: [1, "isCollapsed"], caption: [1, "caption"], subCaption: [1, "subCaption"] }, outputs: { isCollapsed: "isCollapsedChange" }, ngContentSelectors: _c0$3, decls: 11, vars: 4, consts: [[1, "expansion-button", 3, "click"], [1, "primary"], [1, "body2"], [1, "expansion-panel"]], template: function ExpandablePanelComponent_Template(rf, ctx) { if (rf & 1) {
3530
+ i0.ɵɵprojectionDef();
3531
+ i0.ɵɵelementStart(0, "section")(1, "div", 0);
3532
+ i0.ɵɵlistener("click", function ExpandablePanelComponent_Template_div_click_1_listener() { return ctx.changeState(); });
3533
+ i0.ɵɵelementStart(2, "mat-icon");
3534
+ i0.ɵɵtext(3, "expand_less");
3535
+ i0.ɵɵelementEnd();
3536
+ i0.ɵɵelementStart(4, "div")(5, "div", 1);
3537
+ i0.ɵɵtext(6);
3538
+ i0.ɵɵelementEnd();
3539
+ i0.ɵɵelementStart(7, "div", 2);
3540
+ i0.ɵɵtext(8);
3541
+ i0.ɵɵelementEnd()()();
3542
+ i0.ɵɵelementStart(9, "div", 3);
3543
+ i0.ɵɵprojection(10);
3544
+ i0.ɵɵelementEnd()();
3545
+ } if (rf & 2) {
3546
+ i0.ɵɵadvance(2);
3547
+ i0.ɵɵproperty("@arrow-collapse", ctx.isCollapsed());
3548
+ i0.ɵɵadvance(4);
3549
+ i0.ɵɵtextInterpolate(ctx.caption());
3550
+ i0.ɵɵadvance(2);
3551
+ i0.ɵɵtextInterpolate(ctx.subCaption());
3552
+ i0.ɵɵadvance();
3553
+ i0.ɵɵproperty("@collapse", ctx.isCollapsed());
3554
+ } }, dependencies: [MatIcon], styles: ["section[_ngcontent-%COMP%]{display:flex;padding:16px 0}.primary[_ngcontent-%COMP%]{font-weight:600}.body2[_ngcontent-%COMP%]{width:fit-content;white-space:nowrap}.expansion-button[_ngcontent-%COMP%]{display:flex;gap:4px;width:240px;padding:0 16px 8px 0;cursor:pointer;height:fit-content}.expansion-panel[_ngcontent-%COMP%]{overflow:hidden;flex:1}"], data: { animation: [
3555
+ trigger('collapse', [
3556
+ state('false', style({ height: AUTO_STYLE, opacity: 1, visibility: AUTO_STYLE })),
3557
+ state('true', style({ height: '0', opacity: 0, visibility: 'hidden' })),
3558
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
3559
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
3560
+ ]),
3561
+ trigger('arrow-collapse', [
3562
+ state('false', style({ transform: 'rotate(0deg)' })),
3563
+ state('true', style({ transform: 'rotate(180deg)' })),
3564
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
3565
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
3566
+ ])
3567
+ ] }, changeDetection: 0 }); }
3568
+ }
3569
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExpandablePanelComponent, [{
3570
+ type: Component,
3571
+ args: [{ selector: 'cauca-expandable-panel', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon], animations: [
3572
+ trigger('collapse', [
3573
+ state('false', style({ height: AUTO_STYLE, opacity: 1, visibility: AUTO_STYLE })),
3574
+ state('true', style({ height: '0', opacity: 0, visibility: 'hidden' })),
3575
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
3576
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
3577
+ ]),
3578
+ trigger('arrow-collapse', [
3579
+ state('false', style({ transform: 'rotate(0deg)' })),
3580
+ state('true', style({ transform: 'rotate(180deg)' })),
3581
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
3582
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
3583
+ ])
3584
+ ], template: "<section>\r\n <div class=\"expansion-button\" (click)=\"changeState()\">\r\n <mat-icon [@arrow-collapse]=\"isCollapsed()\">expand_less</mat-icon>\r\n <div>\r\n <div class=\"primary\">{{caption()}}</div>\r\n <div class=\"body2\">{{subCaption()}}</div>\r\n </div>\r\n </div>\r\n <div class=\"expansion-panel\" [@collapse]=\"isCollapsed()\">\r\n <ng-content></ng-content>\r\n </div>\r\n</section>", styles: ["section{display:flex;padding:16px 0}.primary{font-weight:600}.body2{width:fit-content;white-space:nowrap}.expansion-button{display:flex;gap:4px;width:240px;padding:0 16px 8px 0;cursor:pointer;height:fit-content}.expansion-panel{overflow:hidden;flex:1}\n"] }]
3585
+ }], null, null); })();
3586
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ExpandablePanelComponent, { className: "ExpandablePanelComponent", filePath: "lib/components/layout/expandable-panel/expandable-panel.component.ts", lineNumber: 28 }); })();
3587
+
3588
+ class MenuExpandablePanelItemComponent {
3589
+ constructor() {
3590
+ this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
3591
+ this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
3592
+ this.route = input(...(ngDevMode ? [undefined, { debugName: "route" }] : []));
3593
+ this.isSubItem = input(false, ...(ngDevMode ? [{ debugName: "isSubItem" }] : []));
3594
+ this.action = input(null, ...(ngDevMode ? [{ debugName: "action" }] : []));
3595
+ this.router = inject(Router);
3596
+ }
3597
+ openRoute() {
3598
+ if (this.action()) {
3599
+ this.action()();
3600
+ }
3601
+ else {
3602
+ this.router.navigate(this.route());
3603
+ }
3604
+ }
3605
+ static { this.ɵfac = function MenuExpandablePanelItemComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuExpandablePanelItemComponent)(); }; }
3606
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuExpandablePanelItemComponent, selectors: [["cauca-menu-expandable-panel-item"]], inputs: { icon: [1, "icon"], caption: [1, "caption"], route: [1, "route"], isSubItem: [1, "isSubItem"], action: [1, "action"] }, decls: 6, vars: 8, consts: [[3, "click"]], template: function MenuExpandablePanelItemComponent_Template(rf, ctx) { if (rf & 1) {
3607
+ i0.ɵɵelementStart(0, "section", 0);
3608
+ i0.ɵɵlistener("click", function MenuExpandablePanelItemComponent_Template_section_click_0_listener() { return ctx.openRoute(); });
3609
+ i0.ɵɵelementStart(1, "mat-icon");
3610
+ i0.ɵɵtext(2);
3611
+ i0.ɵɵelementEnd();
3612
+ i0.ɵɵelementStart(3, "div");
3613
+ i0.ɵɵtext(4);
3614
+ i0.ɵɵpipe(5, "translate");
3615
+ i0.ɵɵelementEnd()();
3616
+ } if (rf & 2) {
3617
+ i0.ɵɵclassProp("sub-item", ctx.isSubItem());
3618
+ i0.ɵɵadvance(2);
3619
+ i0.ɵɵtextInterpolate(ctx.icon());
3620
+ i0.ɵɵadvance();
3621
+ i0.ɵɵclassMap(ctx.isSubItem() ? "subtitle2" : "subtitle1");
3622
+ i0.ɵɵadvance();
3623
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, ctx.caption()));
3624
+ } }, dependencies: [MatIconModule, i1$1.MatIcon, TranslateModule, i1.TranslatePipe], styles: ["section[_ngcontent-%COMP%]{display:flex;gap:16px;padding:16px 24px}.sub-item[_ngcontent-%COMP%]{background-color:#f5f5f5;border-top:1px solid white}"] }); }
3625
+ }
3626
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelItemComponent, [{
3627
+ type: Component,
3628
+ args: [{ selector: 'cauca-menu-expandable-panel-item', imports: [MatIconModule, TranslateModule], template: "<section (click)=\"openRoute()\" [class.sub-item]=\"isSubItem()\">\r\n <mat-icon>{{icon()}}</mat-icon>\r\n <div [class]=\"isSubItem() ? 'subtitle2' : 'subtitle1'\">{{caption() | translate}}</div>\r\n</section>", styles: ["section{display:flex;gap:16px;padding:16px 24px}.sub-item{background-color:#f5f5f5;border-top:1px solid white}\n"] }]
3629
+ }], null, null); })();
3630
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelItemComponent, { className: "MenuExpandablePanelItemComponent", filePath: "lib/components/layout/menu-expandable-panel-item/menu-expandable-panel-item.component.ts", lineNumber: 12 }); })();
3631
+
3632
+ const _forTrack0 = ($index, $item) => $item.title;
3633
+ function MenuExpandablePanelComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
3634
+ i0.ɵɵelementStart(0, "div", 2);
3635
+ i0.ɵɵtext(1);
3636
+ i0.ɵɵpipe(2, "translate");
3637
+ i0.ɵɵelementEnd();
3638
+ } if (rf & 2) {
3639
+ const ctx_r0 = i0.ɵɵnextContext();
3640
+ i0.ɵɵadvance();
3641
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.subCaption()));
3642
+ } }
3643
+ function MenuExpandablePanelComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
3644
+ i0.ɵɵelementStart(0, "mat-icon");
3645
+ i0.ɵɵtext(1, "arrow_forward_ios");
3646
+ i0.ɵɵelementEnd();
3647
+ } if (rf & 2) {
3648
+ const ctx_r0 = i0.ɵɵnextContext();
3649
+ i0.ɵɵproperty("@arrow-collapse", ctx_r0.opened());
3650
+ } }
3651
+ function MenuExpandablePanelComponent_Conditional_9_For_1_Template(rf, ctx) { if (rf & 1) {
3652
+ i0.ɵɵelement(0, "cauca-menu-expandable-panel-item", 3);
3653
+ } if (rf & 2) {
3654
+ const item_r2 = ctx.$implicit;
3655
+ i0.ɵɵproperty("icon", item_r2.icon)("caption", item_r2.title)("route", item_r2.route)("isSubItem", true)("action", item_r2.action);
3656
+ } }
3657
+ function MenuExpandablePanelComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
3658
+ i0.ɵɵrepeaterCreate(0, MenuExpandablePanelComponent_Conditional_9_For_1_Template, 1, 5, "cauca-menu-expandable-panel-item", 3, _forTrack0);
3659
+ } if (rf & 2) {
3660
+ const ctx_r0 = i0.ɵɵnextContext();
3661
+ i0.ɵɵrepeater(ctx_r0.items());
3662
+ } }
3663
+ const DEFAULT_DURATION = 200;
3664
+ class MenuExpandablePanelComponent {
3665
+ constructor() {
3666
+ this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
3667
+ this.isSubItem = input(false, ...(ngDevMode ? [{ debugName: "isSubItem" }] : []));
3668
+ this.subCaption = input(...(ngDevMode ? [undefined, { debugName: "subCaption" }] : []));
3669
+ this.menuIcon = input(...(ngDevMode ? [undefined, { debugName: "menuIcon" }] : []));
3670
+ this.showExpansionIcon = input(true, ...(ngDevMode ? [{ debugName: "showExpansionIcon" }] : []));
3671
+ this.addTopBorderRadius = input(false, ...(ngDevMode ? [{ debugName: "addTopBorderRadius" }] : []));
3672
+ this.bottomBorder = input(false, ...(ngDevMode ? [{ debugName: "bottomBorder" }] : []));
3673
+ this.addBottomBorderRadius = input(false, ...(ngDevMode ? [{ debugName: "addBottomBorderRadius" }] : []));
3674
+ this.route = input([], ...(ngDevMode ? [{ debugName: "route" }] : []));
3675
+ this.items = input([], ...(ngDevMode ? [{ debugName: "items" }] : []));
3676
+ this.opened = signal(false, ...(ngDevMode ? [{ debugName: "opened" }] : []));
3677
+ this.router = inject(Router);
3678
+ }
3679
+ get topLeftRadius() {
3680
+ return this.addTopBorderRadius() ? '12px' : '0px';
3681
+ }
3682
+ get topRightRadius() {
3683
+ return this.addTopBorderRadius() ? '12px' : '0px';
3684
+ }
3685
+ get bottomLeftRadius() {
3686
+ return this.addBottomBorderRadius() ? '12px' : '0px';
3687
+ }
3688
+ get bottomRightRadius() {
3689
+ return this.addBottomBorderRadius() ? '12px' : '0px';
3690
+ }
3691
+ get bottomBorderClass() {
3692
+ return this.bottomBorder();
3693
+ }
3694
+ handleClick() {
3695
+ if (this.route().length > 0 && this.items().length === 0) {
3696
+ this.router.navigate(this.route());
3697
+ }
3698
+ else {
3699
+ this.opened.set(!this.opened());
3700
+ }
3701
+ }
3702
+ static { this.ɵfac = function MenuExpandablePanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuExpandablePanelComponent)(); }; }
3703
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuExpandablePanelComponent, selectors: [["cauca-menu-expandable-panel"]], hostVars: 10, hostBindings: function MenuExpandablePanelComponent_HostBindings(rf, ctx) { if (rf & 2) {
3704
+ i0.ɵɵstyleProp("border-top-left-radius", ctx.topLeftRadius)("border-top-right-radius", ctx.topRightRadius)("border-bottom-left-radius", ctx.bottomLeftRadius)("border-bottom-right-radius", ctx.bottomRightRadius);
3705
+ i0.ɵɵclassProp("bottom-border", ctx.bottomBorderClass);
3706
+ } }, inputs: { caption: [1, "caption"], isSubItem: [1, "isSubItem"], subCaption: [1, "subCaption"], menuIcon: [1, "menuIcon"], showExpansionIcon: [1, "showExpansionIcon"], addTopBorderRadius: [1, "addTopBorderRadius"], bottomBorder: [1, "bottomBorder"], addBottomBorderRadius: [1, "addBottomBorderRadius"], route: [1, "route"], items: [1, "items"] }, decls: 10, vars: 8, consts: [[3, "click", "ngClass"], [1, "subtitle1"], [1, "body2"], [3, "icon", "caption", "route", "isSubItem", "action"]], template: function MenuExpandablePanelComponent_Template(rf, ctx) { if (rf & 1) {
3707
+ i0.ɵɵelementStart(0, "section", 0);
3708
+ i0.ɵɵlistener("click", function MenuExpandablePanelComponent_Template_section_click_0_listener() { return ctx.handleClick(); });
3709
+ i0.ɵɵelementStart(1, "mat-icon");
3710
+ i0.ɵɵtext(2);
3711
+ i0.ɵɵelementEnd();
3712
+ i0.ɵɵelementStart(3, "div")(4, "div", 1);
3713
+ i0.ɵɵtext(5);
3714
+ i0.ɵɵpipe(6, "translate");
3715
+ i0.ɵɵelementEnd();
3716
+ i0.ɵɵconditionalCreate(7, MenuExpandablePanelComponent_Conditional_7_Template, 3, 3, "div", 2);
3717
+ i0.ɵɵelementEnd();
3718
+ i0.ɵɵconditionalCreate(8, MenuExpandablePanelComponent_Conditional_8_Template, 2, 1, "mat-icon");
3719
+ i0.ɵɵelementEnd();
3720
+ i0.ɵɵconditionalCreate(9, MenuExpandablePanelComponent_Conditional_9_Template, 2, 0);
3721
+ } if (rf & 2) {
3722
+ i0.ɵɵproperty("ngClass", ctx.opened() ? "bottom-padding" : "");
3723
+ i0.ɵɵadvance(2);
3724
+ i0.ɵɵtextInterpolate(ctx.menuIcon());
3725
+ i0.ɵɵadvance(3);
3726
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6, ctx.caption()));
3727
+ i0.ɵɵadvance(2);
3728
+ i0.ɵɵconditional(ctx.subCaption() ? 7 : -1);
3729
+ i0.ɵɵadvance();
3730
+ i0.ɵɵconditional(ctx.showExpansionIcon() ? 8 : -1);
3731
+ i0.ɵɵadvance();
3732
+ i0.ɵɵconditional(ctx.opened() ? 9 : -1);
3733
+ } }, dependencies: [MatIconModule, i1$1.MatIcon, TranslateModule, MenuExpandablePanelItemComponent, NgClass, i1.TranslatePipe], styles: ["[_nghost-%COMP%]{padding:10px 12px;background-color:#fff;cursor:pointer;display:block}section[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:center}section.bottom-padding[_ngcontent-%COMP%]{padding-bottom:10px}div[_ngcontent-%COMP%]{flex:1}"], data: { animation: [
3734
+ trigger('arrow-collapse', [
3735
+ state('false', style({ transform: 'rotate(0deg)' })),
3736
+ state('true', style({ transform: 'rotate(-90deg)' })),
3737
+ transition('false => true', animate(DEFAULT_DURATION + 'ms ease-in-out')),
3738
+ transition('true => false', animate(DEFAULT_DURATION + 'ms ease-in-out'))
3739
+ ])
3740
+ ] } }); }
3741
+ }
3742
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelComponent, [{
3743
+ type: Component,
3744
+ args: [{ selector: 'cauca-menu-expandable-panel', imports: [MatIconModule, TranslateModule, MenuExpandablePanelItemComponent, NgClass], animations: [
3745
+ trigger('arrow-collapse', [
3746
+ state('false', style({ transform: 'rotate(0deg)' })),
3747
+ state('true', style({ transform: 'rotate(-90deg)' })),
3748
+ transition('false => true', animate(DEFAULT_DURATION + 'ms ease-in-out')),
3749
+ transition('true => false', animate(DEFAULT_DURATION + 'ms ease-in-out'))
3750
+ ])
3751
+ ], template: "<section [ngClass]=\"opened() ? 'bottom-padding' : ''\" (click)=\"handleClick()\">\r\n <mat-icon>{{menuIcon()}}</mat-icon>\r\n <div>\r\n <div class=\"subtitle1\">{{caption() | translate}}</div>\r\n @if(subCaption()) {<div class=\"body2\">{{subCaption() | translate}}</div>}\r\n </div>\r\n @if (showExpansionIcon()) {<mat-icon [@arrow-collapse]=\"opened()\">arrow_forward_ios</mat-icon>}\r\n</section>\r\n@if(opened()) {\r\n @for (item of items(); track item.title) {\r\n <cauca-menu-expandable-panel-item [icon]=\"item.icon\" [caption]=\"item.title\" [route]=\"item.route\" [isSubItem]=\"true\" [action]=\"item.action\" />\r\n }\r\n}", styles: [":host{padding:10px 12px;background-color:#fff;cursor:pointer;display:block}section{display:flex;gap:16px;align-items:center}section.bottom-padding{padding-bottom:10px}div{flex:1}\n"] }]
3752
+ }], null, { topLeftRadius: [{
3753
+ type: HostBinding,
3754
+ args: ['style.border-top-left-radius']
3755
+ }], topRightRadius: [{
3756
+ type: HostBinding,
3757
+ args: ['style.border-top-right-radius']
3758
+ }], bottomLeftRadius: [{
3759
+ type: HostBinding,
3760
+ args: ['style.border-bottom-left-radius']
3761
+ }], bottomRightRadius: [{
3762
+ type: HostBinding,
3763
+ args: ['style.border-bottom-right-radius']
3764
+ }], bottomBorderClass: [{
3765
+ type: HostBinding,
3766
+ args: ['class.bottom-border']
3767
+ }] }); })();
3768
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelComponent, { className: "MenuExpandablePanelComponent", filePath: "lib/components/layout/menu-expandable-panel/menu-expandable-panel.component.ts", lineNumber: 25 }); })();
3769
+
3252
3770
  function SavingConfirmedBoxComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3253
3771
  const _r1 = i0.ɵɵgetCurrentView();
3254
3772
  i0.ɵɵelementStart(0, "cauca-snackbar", 1);
@@ -4192,5 +4710,5 @@ class MenuItem {
4192
4710
  * Generated bundle index. Do not edit.
4193
4711
  */
4194
4712
 
4195
- export { AutoTrimAndLowerDirective, BadgeComponent, BasicButtonComponent, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, FabButtonComponent, FlatButtonComponent, FormErrorModule, GroupContainerComponent, HasErrorDirective, HasErrorRootDirective, IconButtonComponent, IconComponent, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MainSectionComponent, MenuItem, MenuItemComponent, PageTitleComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SavingConfirmedBoxComponent, SavingErrorBoxComponent, SectionColumnComponent, SectionFieldComponent, SnackBarComponent, StrokedButtonComponent };
4713
+ export { AutoTrimAndLowerDirective, BadgeComponent, BasicButtonComponent, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ColorPickerComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, ExpandablePanelComponent, FabButtonComponent, FlatButtonComponent, FormErrorModule, GroupContainerComponent, HasErrorDirective, HasErrorRootDirective, IconButtonComponent, IconComponent, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MainSectionComponent, MenuExpandablePanelComponent, MenuExpandablePanelItemComponent, MenuItem, MenuItemComponent, PageTitleComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SavingConfirmedBoxComponent, SavingErrorBoxComponent, SectionColumnComponent, SectionFieldComponent, SelectWithSearchComponent, SnackBarComponent, StrokedButtonComponent };
4196
4714
  //# sourceMappingURL=cauca-911-material.mjs.map