@cauca-911/material 20.2.1 → 20.2.3

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, [{
@@ -1844,6 +1849,12 @@ var ConfirmationResult;
1844
1849
  ConfirmationResult[ConfirmationResult["No"] = 2] = "No";
1845
1850
  })(ConfirmationResult || (ConfirmationResult = {}));
1846
1851
 
1852
+ class BreadcrumbLocation {
1853
+ constructor() {
1854
+ this.translate = false;
1855
+ }
1856
+ }
1857
+
1847
1858
  class LoadingStateService {
1848
1859
  constructor() {
1849
1860
  this.showLoadingIndicator = computed(() => this.isLoading(), ...(ngDevMode ? [{ debugName: "showLoadingIndicator" }] : []));
@@ -1876,7 +1887,7 @@ class LoadingStateService {
1876
1887
  type: Injectable
1877
1888
  }], null, null); })();
1878
1889
 
1879
- const _c0$8 = ["*"];
1890
+ const _c0$a = ["*"];
1880
1891
  function SnackBarComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
1881
1892
  const _r1 = i0.ɵɵgetCurrentView();
1882
1893
  i0.ɵɵelementStart(0, "cauca-stroked-button", 7);
@@ -1917,7 +1928,7 @@ class SnackBarComponent {
1917
1928
  this.buttonClick = new EventEmitter();
1918
1929
  }
1919
1930
  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) {
1931
+ 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
1932
  i0.ɵɵprojectionDef();
1922
1933
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "mat-icon");
1923
1934
  i0.ɵɵtext(3);
@@ -2426,7 +2437,7 @@ class PasswordValidator {
2426
2437
  }
2427
2438
  }
2428
2439
 
2429
- const _c0$7 = ["*"];
2440
+ const _c0$9 = ["*"];
2430
2441
  function PasswordSelectionComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
2431
2442
  i0.ɵɵelement(0, "cauca-password-criteria-viewer", 5);
2432
2443
  } if (rf & 2) {
@@ -2510,7 +2521,7 @@ class PasswordSelectionComponent {
2510
2521
  multi: true,
2511
2522
  useExisting: forwardRef(() => PasswordSelectionComponent),
2512
2523
  },
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) {
2524
+ ])], 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
2525
  i0.ɵɵprojectionDef();
2515
2526
  i0.ɵɵelementStart(0, "form", 0)(1, "div", 1);
2516
2527
  i0.ɵɵelement(2, "cauca-password-input", 2)(3, "cauca-password-input", 3);
@@ -2606,9 +2617,9 @@ class DateRangePickerComponent {
2606
2617
  }], () => [], null); })();
2607
2618
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateRangePickerComponent, { className: "DateRangePickerComponent", filePath: "lib/components/inputs/date-range-picker/date-range-picker.component.ts", lineNumber: 19 }); })();
2608
2619
 
2609
- const _c0$6 = ["auto"];
2610
- const _c1$1 = ["chipInput"];
2611
- const _c2 = a0 => ({ data: a0 });
2620
+ const _c0$8 = ["auto"];
2621
+ const _c1$2 = ["chipInput"];
2622
+ const _c2$1 = a0 => ({ data: a0 });
2612
2623
  function DropdownChipAutocompleteComponent_For_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
2613
2624
  i0.ɵɵelementStart(0, "mat-icon", 13);
2614
2625
  i0.ɵɵtext(1, "cancel");
@@ -2645,7 +2656,7 @@ function DropdownChipAutocompleteComponent_For_14_Conditional_1_Template(rf, ctx
2645
2656
  } if (rf & 2) {
2646
2657
  const item_r6 = i0.ɵɵnextContext().$implicit;
2647
2658
  const ctx_r3 = i0.ɵɵnextContext();
2648
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.optionTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, item_r6));
2659
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.optionTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2$1, item_r6));
2649
2660
  } }
2650
2661
  function DropdownChipAutocompleteComponent_For_14_Conditional_2_Template(rf, ctx) { if (rf & 1) {
2651
2662
  i0.ɵɵtext(0);
@@ -2837,8 +2848,8 @@ class DropdownChipAutocompleteComponent {
2837
2848
  let _t;
2838
2849
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.optionTemplate = _t.first);
2839
2850
  } }, viewQuery: function DropdownChipAutocompleteComponent_Query(rf, ctx) { if (rf & 1) {
2840
- i0.ɵɵviewQuery(_c0$6, 5);
2841
- i0.ɵɵviewQuery(_c1$1, 5);
2851
+ i0.ɵɵviewQuery(_c0$8, 5);
2852
+ i0.ɵɵviewQuery(_c1$2, 5);
2842
2853
  i0.ɵɵviewQuery(MatAutocompleteTrigger, 5);
2843
2854
  } if (rf & 2) {
2844
2855
  let _t;
@@ -2954,13 +2965,273 @@ class DropdownChipAutocompleteComponent {
2954
2965
  }] }); })();
2955
2966
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DropdownChipAutocompleteComponent, { className: "DropdownChipAutocompleteComponent", filePath: "lib/components/inputs/dropdown-chip-autocomplete/dropdown-chip-autocomplete.component.ts", lineNumber: 46 }); })();
2956
2967
 
2957
- const _c0$5 = ["*"];
2968
+ class ColorPickerComponent {
2969
+ static { this.nextId = 0; }
2970
+ get shouldLabelFloat() {
2971
+ return this.focused || !this.empty;
2972
+ }
2973
+ get empty() {
2974
+ return !this._value?.length;
2975
+ }
2976
+ get value() {
2977
+ return this._value;
2978
+ }
2979
+ set value(newValue) {
2980
+ this._value = newValue;
2981
+ this.onChange(this._value);
2982
+ this.stateChanges.next();
2983
+ }
2984
+ constructor(elementRef, ngControl) {
2985
+ this.elementRef = elementRef;
2986
+ this.ngControl = ngControl;
2987
+ this.stateChanges = new Subject();
2988
+ this.id = `example-tel-input-${ColorPickerComponent.nextId++}`;
2989
+ this.focused = false;
2990
+ this.touched = false;
2991
+ this.valueChanged = new EventEmitter();
2992
+ this.onChange = (_) => {
2993
+ // Do nothing for now
2994
+ };
2995
+ this.onTouched = () => {
2996
+ // Do nothing for now
2997
+ };
2998
+ if (this.ngControl != null) {
2999
+ this.ngControl.valueAccessor = this;
3000
+ }
3001
+ elementRef.nativeElement.addEventListener('focusin', this.onFocusIn.bind(this));
3002
+ elementRef.nativeElement.addEventListener('focusout', this.onFocusOut.bind(this));
3003
+ }
3004
+ onFocusIn(_) {
3005
+ if (!this.focused) {
3006
+ this.focused = true;
3007
+ this.stateChanges.next();
3008
+ }
3009
+ }
3010
+ onFocusOut(event) {
3011
+ if (!this.elementRef.nativeElement.contains(event.relatedTarget)) {
3012
+ this.touched = true;
3013
+ this.focused = false;
3014
+ this.onTouched();
3015
+ this.stateChanges.next();
3016
+ }
3017
+ }
3018
+ ngOnDestroy() {
3019
+ this.stateChanges.complete();
3020
+ }
3021
+ setDescribedByIds(_) {
3022
+ // Do nothing for now
3023
+ }
3024
+ onContainerClick(_) {
3025
+ // Do nothing for now
3026
+ }
3027
+ writeValue(value) {
3028
+ this.value = value;
3029
+ }
3030
+ registerOnChange(fn) {
3031
+ this.onChange = fn;
3032
+ }
3033
+ registerOnTouched(fn) {
3034
+ this.onTouched = fn;
3035
+ }
3036
+ onChangeColor(color) {
3037
+ this.value = color;
3038
+ }
3039
+ static { this.ɵfac = function ColorPickerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ColorPickerComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$7.NgControl, 10)); }; }
3040
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ColorPickerComponent, selectors: [["cauca-color-picker"]], hostVars: 3, hostBindings: function ColorPickerComponent_HostBindings(rf, ctx) { if (rf & 2) {
3041
+ i0.ɵɵdomProperty("id", ctx.id);
3042
+ i0.ɵɵclassProp("floating", ctx.shouldLabelFloat);
3043
+ } }, inputs: { value: "value" }, outputs: { valueChanged: "valueChanged" }, features: [i0.ɵɵProvidersFeature([{
3044
+ provide: MatFormFieldControl,
3045
+ useExisting: ColorPickerComponent,
3046
+ }])], 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) {
3047
+ i0.ɵɵelementStart(0, "input", 0);
3048
+ i0.ɵɵtwoWayListener("colorPickerChange", function ColorPickerComponent_Template_input_colorPickerChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return $event; });
3049
+ i0.ɵɵlistener("colorPickerChange", function ColorPickerComponent_Template_input_colorPickerChange_0_listener($event) { return ctx.onChangeColor($event); });
3050
+ i0.ɵɵelementEnd();
3051
+ } if (rf & 2) {
3052
+ i0.ɵɵtwoWayProperty("colorPicker", ctx.value);
3053
+ i0.ɵɵproperty("value", ctx.value);
3054
+ } }, dependencies: [MatInputModule, i3.MatInput, ColorPickerDirective], encapsulation: 2 }); }
3055
+ }
3056
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ColorPickerComponent, [{
3057
+ type: Component,
3058
+ args: [{ selector: 'cauca-color-picker', imports: [MatInputModule, ColorPickerDirective], providers: [{
3059
+ provide: MatFormFieldControl,
3060
+ useExisting: ColorPickerComponent,
3061
+ }], 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/>" }]
3062
+ }], () => [{ type: i0.ElementRef }, { type: i1$7.NgControl, decorators: [{
3063
+ type: Optional
3064
+ }, {
3065
+ type: Self
3066
+ }] }], { id: [{
3067
+ type: HostBinding
3068
+ }], valueChanged: [{
3069
+ type: Output
3070
+ }], shouldLabelFloat: [{
3071
+ type: HostBinding,
3072
+ args: ['class.floating']
3073
+ }], value: [{
3074
+ type: Input
3075
+ }] }); })();
3076
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ColorPickerComponent, { className: "ColorPickerComponent", filePath: "lib/components/inputs/color-picker/color-picker.component.ts", lineNumber: 18 }); })();
3077
+
3078
+ const _c0$7 = ["singleSelect"];
3079
+ const _c1$1 = ["*"];
3080
+ const _c2 = () => [];
3081
+ function SelectWithSearchComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
3082
+ i0.ɵɵelementStart(0, "mat-option");
3083
+ i0.ɵɵelement(1, "ngx-mat-select-search", 3);
3084
+ i0.ɵɵpipe(2, "translate");
3085
+ i0.ɵɵpipe(3, "translate");
3086
+ i0.ɵɵelementEnd();
3087
+ } if (rf & 2) {
3088
+ const ctx_r0 = i0.ɵɵnextContext();
3089
+ i0.ɵɵadvance();
3090
+ i0.ɵɵproperty("formControl", ctx_r0.optionFilterControl)("placeholderLabel", i0.ɵɵpipeBind1(2, 3, "search"))("noEntriesFoundLabel", i0.ɵɵpipeBind1(3, 5, "noResult"));
3091
+ } }
3092
+ function SelectWithSearchComponent_For_8_Template(rf, ctx) { if (rf & 1) {
3093
+ i0.ɵɵelementStart(0, "mat-option", 2);
3094
+ i0.ɵɵtext(1);
3095
+ i0.ɵɵelementEnd();
3096
+ } if (rf & 2) {
3097
+ const option_r2 = ctx.$implicit;
3098
+ i0.ɵɵproperty("value", option_r2.id);
3099
+ i0.ɵɵadvance();
3100
+ i0.ɵɵtextInterpolate1(" ", option_r2.name, " ");
3101
+ } }
3102
+ class SelectWithSearchComponent {
3103
+ constructor() {
3104
+ this.selectFirstOptionByDefault = false;
3105
+ this.optionFilterControl = new FormControl('');
3106
+ this.isDisabled = input(false, ...(ngDevMode ? [{ debugName: "isDisabled" }] : []));
3107
+ this.hasOptions = signal(false, ...(ngDevMode ? [{ debugName: "hasOptions" }] : []));
3108
+ this.disableControl = computed(() => this.isDisabled() || !this.hasOptions(), ...(ngDevMode ? [{ debugName: "disableControl" }] : []));
3109
+ this.allowMultiSelection = input(false, ...(ngDevMode ? [{ debugName: "allowMultiSelection" }] : []));
3110
+ this.showClearOption = input(false, ...(ngDevMode ? [{ debugName: "showClearOption" }] : []));
3111
+ this.enableSearch = input(true, ...(ngDevMode ? [{ debugName: "enableSearch" }] : []));
3112
+ this.filteredOptions = resource({
3113
+ params: () => ({ filter: this.filterText(), options: this.allOptions(), showClear: this.showClearOption() }),
3114
+ loader: ({ params }) => Promise.resolve(this.computeFilteredOptions(params))
3115
+ });
3116
+ this.valueChanged = new EventEmitter();
3117
+ this.allOptions = signal([], ...(ngDevMode ? [{ debugName: "allOptions" }] : []));
3118
+ this.filterText = toSignal(this.optionFilterControl.valueChanges, { initialValue: '' });
3119
+ }
3120
+ set options(newOptions) {
3121
+ if (newOptions) {
3122
+ this.allOptions.set(newOptions);
3123
+ this.hasOptions.set(newOptions.length >= 1);
3124
+ this.setInitialSelectedOption();
3125
+ }
3126
+ else {
3127
+ this.allOptions.set([]);
3128
+ this.hasOptions.set(false);
3129
+ }
3130
+ }
3131
+ get options() {
3132
+ return this.allOptions();
3133
+ }
3134
+ set value(newValue) {
3135
+ if (newValue !== this.selectedOptionId) {
3136
+ this.selectedOptionId = newValue;
3137
+ this.valueChanged.emit(this.value);
3138
+ }
3139
+ }
3140
+ get value() {
3141
+ return this.selectedOptionId;
3142
+ }
3143
+ setInitialSelectedOption() {
3144
+ if (this.value) {
3145
+ const city = this.options.find((c) => c.id === this.value);
3146
+ if (!city) {
3147
+ this.selectFirstOption();
3148
+ }
3149
+ }
3150
+ else if (this.options.length > 0 && this.selectFirstOptionByDefault) {
3151
+ this.selectFirstOption();
3152
+ }
3153
+ }
3154
+ selectFirstOption() {
3155
+ this.value = this.options[0].id;
3156
+ }
3157
+ computeFilteredOptions(params) {
3158
+ const { filter, options, showClear } = params;
3159
+ if (!options || !Array.isArray(options)) {
3160
+ return [];
3161
+ }
3162
+ let filtered;
3163
+ if (!filter) {
3164
+ filtered = options.slice();
3165
+ }
3166
+ else {
3167
+ const filterLower = toLowerCaseAndWithoutDiacritics(filter);
3168
+ filtered = options.filter(option => toLowerCaseAndWithoutDiacritics(option?.name ?? '').indexOf(filterLower) > -1);
3169
+ }
3170
+ if (showClear) {
3171
+ const clearOption = { id: null, name: '--' };
3172
+ filtered = [clearOption, ...filtered];
3173
+ }
3174
+ return filtered;
3175
+ }
3176
+ static { this.ɵfac = function SelectWithSearchComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectWithSearchComponent)(); }; }
3177
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectWithSearchComponent, selectors: [["cauca-select-with-search"]], viewQuery: function SelectWithSearchComponent_Query(rf, ctx) { if (rf & 1) {
3178
+ i0.ɵɵviewQuery(_c0$7, 7);
3179
+ } if (rf & 2) {
3180
+ let _t;
3181
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.singleSelect = _t.first);
3182
+ } }, 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) {
3183
+ i0.ɵɵprojectionDef();
3184
+ i0.ɵɵelementStart(0, "mat-form-field", 0);
3185
+ i0.ɵɵprojection(1);
3186
+ i0.ɵɵelementStart(2, "mat-label");
3187
+ i0.ɵɵtext(3);
3188
+ i0.ɵɵpipe(4, "translate");
3189
+ i0.ɵɵelementEnd();
3190
+ i0.ɵɵelementStart(5, "mat-select", 1);
3191
+ i0.ɵɵtwoWayListener("valueChange", function SelectWithSearchComponent_Template_mat_select_valueChange_5_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); return $event; });
3192
+ i0.ɵɵconditionalCreate(6, SelectWithSearchComponent_Conditional_6_Template, 4, 7, "mat-option");
3193
+ i0.ɵɵrepeaterCreate(7, SelectWithSearchComponent_For_8_Template, 2, 2, "mat-option", 2, i0.ɵɵrepeaterTrackByIdentity);
3194
+ i0.ɵɵelementEnd()();
3195
+ } if (rf & 2) {
3196
+ i0.ɵɵadvance(3);
3197
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, ctx.label));
3198
+ i0.ɵɵadvance(2);
3199
+ i0.ɵɵclassProp("readonly-field", ctx.disableControl());
3200
+ i0.ɵɵtwoWayProperty("value", ctx.value);
3201
+ i0.ɵɵproperty("disabled", ctx.disableControl())("multiple", ctx.allowMultiSelection());
3202
+ i0.ɵɵadvance();
3203
+ i0.ɵɵconditional(ctx.enableSearch() ? 6 : -1);
3204
+ i0.ɵɵadvance();
3205
+ i0.ɵɵrepeater(ctx.filteredOptions.value() || i0.ɵɵpureFunction0(9, _c2));
3206
+ } }, 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 }); }
3207
+ }
3208
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectWithSearchComponent, [{
3209
+ type: Component,
3210
+ 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>" }]
3211
+ }], null, { label: [{
3212
+ type: Input,
3213
+ args: [{ required: true }]
3214
+ }], selectFirstOptionByDefault: [{
3215
+ type: Input
3216
+ }], singleSelect: [{
3217
+ type: ViewChild,
3218
+ args: ['singleSelect', { static: true }]
3219
+ }], valueChanged: [{
3220
+ type: Output
3221
+ }], options: [{
3222
+ type: Input
3223
+ }], value: [{
3224
+ type: Input
3225
+ }] }); })();
3226
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectWithSearchComponent, { className: "SelectWithSearchComponent", filePath: "lib/components/inputs/select-with-search/select-with-search.component.ts", lineNumber: 22 }); })();
3227
+
3228
+ const _c0$6 = ["*"];
2958
3229
  class GroupContainerComponent {
2959
3230
  constructor() {
2960
3231
  this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
2961
3232
  }
2962
3233
  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) {
3234
+ 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
3235
  i0.ɵɵprojectionDef();
2965
3236
  i0.ɵɵdomElementStart(0, "div", 0)(1, "div", 1);
2966
3237
  i0.ɵɵtext(2);
@@ -2980,7 +3251,7 @@ class GroupContainerComponent {
2980
3251
  }], null, null); })();
2981
3252
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GroupContainerComponent, { className: "GroupContainerComponent", filePath: "lib/components/layout/group-container/group-container.component.ts", lineNumber: 12 }); })();
2982
3253
 
2983
- const _c0$4 = ["*"];
3254
+ const _c0$5 = ["*"];
2984
3255
  function MainSectionComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
2985
3256
  i0.ɵɵdomElementStart(0, "div", 1);
2986
3257
  i0.ɵɵtext(1);
@@ -2996,7 +3267,7 @@ class MainSectionComponent {
2996
3267
  this.title = input('', ...(ngDevMode ? [{ debugName: "title" }] : []));
2997
3268
  }
2998
3269
  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) {
3270
+ 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
3271
  i0.ɵɵprojectionDef();
3001
3272
  i0.ɵɵdomElementStart(0, "div", 0);
3002
3273
  i0.ɵɵconditionalCreate(1, MainSectionComponent_Conditional_1_Template, 3, 3, "div", 1);
@@ -3014,13 +3285,13 @@ class MainSectionComponent {
3014
3285
  }], null, null); })();
3015
3286
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MainSectionComponent, { className: "MainSectionComponent", filePath: "lib/components/layout/sections/main-section/main-section.component.ts", lineNumber: 11 }); })();
3016
3287
 
3017
- const _c0$3 = ["*"];
3288
+ const _c0$4 = ["*"];
3018
3289
  class SectionColumnComponent {
3019
3290
  constructor() {
3020
3291
  this.showBigGap = input(false, ...(ngDevMode ? [{ debugName: "showBigGap" }] : []));
3021
3292
  }
3022
3293
  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) {
3294
+ 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
3295
  i0.ɵɵprojectionDef();
3025
3296
  i0.ɵɵdomElementStart(0, "div", 0);
3026
3297
  i0.ɵɵprojection(1);
@@ -3249,6 +3520,259 @@ class PageTitleComponent {
3249
3520
  }], null, null); })();
3250
3521
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 13 }); })();
3251
3522
 
3523
+ const _c0$3 = ["*"];
3524
+ const DEFAULT_DURATION$1 = 500;
3525
+ class ExpandablePanelComponent {
3526
+ constructor() {
3527
+ this.isCollapsed = model(false, ...(ngDevMode ? [{ debugName: "isCollapsed" }] : []));
3528
+ this.caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : []));
3529
+ this.subCaption = input('', ...(ngDevMode ? [{ debugName: "subCaption" }] : []));
3530
+ }
3531
+ changeState() {
3532
+ this.isCollapsed.update(value => !value);
3533
+ }
3534
+ static { this.ɵfac = function ExpandablePanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ExpandablePanelComponent)(); }; }
3535
+ 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) {
3536
+ i0.ɵɵprojectionDef();
3537
+ i0.ɵɵelementStart(0, "section")(1, "div", 0);
3538
+ i0.ɵɵlistener("click", function ExpandablePanelComponent_Template_div_click_1_listener() { return ctx.changeState(); });
3539
+ i0.ɵɵelementStart(2, "mat-icon");
3540
+ i0.ɵɵtext(3, "expand_less");
3541
+ i0.ɵɵelementEnd();
3542
+ i0.ɵɵelementStart(4, "div")(5, "div", 1);
3543
+ i0.ɵɵtext(6);
3544
+ i0.ɵɵelementEnd();
3545
+ i0.ɵɵelementStart(7, "div", 2);
3546
+ i0.ɵɵtext(8);
3547
+ i0.ɵɵelementEnd()()();
3548
+ i0.ɵɵelementStart(9, "div", 3);
3549
+ i0.ɵɵprojection(10);
3550
+ i0.ɵɵelementEnd()();
3551
+ } if (rf & 2) {
3552
+ i0.ɵɵadvance(2);
3553
+ i0.ɵɵproperty("@arrow-collapse", ctx.isCollapsed());
3554
+ i0.ɵɵadvance(4);
3555
+ i0.ɵɵtextInterpolate(ctx.caption());
3556
+ i0.ɵɵadvance(2);
3557
+ i0.ɵɵtextInterpolate(ctx.subCaption());
3558
+ i0.ɵɵadvance();
3559
+ i0.ɵɵproperty("@collapse", ctx.isCollapsed());
3560
+ } }, 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: [
3561
+ trigger('collapse', [
3562
+ state('false', style({ height: AUTO_STYLE, opacity: 1, visibility: AUTO_STYLE })),
3563
+ state('true', style({ height: '0', opacity: 0, visibility: 'hidden' })),
3564
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
3565
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
3566
+ ]),
3567
+ trigger('arrow-collapse', [
3568
+ state('false', style({ transform: 'rotate(0deg)' })),
3569
+ state('true', style({ transform: 'rotate(180deg)' })),
3570
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
3571
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
3572
+ ])
3573
+ ] }, changeDetection: 0 }); }
3574
+ }
3575
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExpandablePanelComponent, [{
3576
+ type: Component,
3577
+ args: [{ selector: 'cauca-expandable-panel', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon], animations: [
3578
+ trigger('collapse', [
3579
+ state('false', style({ height: AUTO_STYLE, opacity: 1, visibility: AUTO_STYLE })),
3580
+ state('true', style({ height: '0', opacity: 0, visibility: 'hidden' })),
3581
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
3582
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
3583
+ ]),
3584
+ trigger('arrow-collapse', [
3585
+ state('false', style({ transform: 'rotate(0deg)' })),
3586
+ state('true', style({ transform: 'rotate(180deg)' })),
3587
+ transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
3588
+ transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
3589
+ ])
3590
+ ], 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"] }]
3591
+ }], null, null); })();
3592
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ExpandablePanelComponent, { className: "ExpandablePanelComponent", filePath: "lib/components/layout/expandable-panel/expandable-panel.component.ts", lineNumber: 28 }); })();
3593
+
3594
+ class MenuExpandablePanelItemComponent {
3595
+ constructor() {
3596
+ this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
3597
+ this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
3598
+ this.route = input(...(ngDevMode ? [undefined, { debugName: "route" }] : []));
3599
+ this.isSubItem = input(false, ...(ngDevMode ? [{ debugName: "isSubItem" }] : []));
3600
+ this.action = input(null, ...(ngDevMode ? [{ debugName: "action" }] : []));
3601
+ this.router = inject(Router);
3602
+ }
3603
+ openRoute() {
3604
+ if (this.action()) {
3605
+ this.action()();
3606
+ }
3607
+ else {
3608
+ this.router.navigate(this.route());
3609
+ }
3610
+ }
3611
+ static { this.ɵfac = function MenuExpandablePanelItemComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuExpandablePanelItemComponent)(); }; }
3612
+ 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) {
3613
+ i0.ɵɵelementStart(0, "section", 0);
3614
+ i0.ɵɵlistener("click", function MenuExpandablePanelItemComponent_Template_section_click_0_listener() { return ctx.openRoute(); });
3615
+ i0.ɵɵelementStart(1, "mat-icon");
3616
+ i0.ɵɵtext(2);
3617
+ i0.ɵɵelementEnd();
3618
+ i0.ɵɵelementStart(3, "div");
3619
+ i0.ɵɵtext(4);
3620
+ i0.ɵɵpipe(5, "translate");
3621
+ i0.ɵɵelementEnd()();
3622
+ } if (rf & 2) {
3623
+ i0.ɵɵclassProp("sub-item", ctx.isSubItem());
3624
+ i0.ɵɵadvance(2);
3625
+ i0.ɵɵtextInterpolate(ctx.icon());
3626
+ i0.ɵɵadvance();
3627
+ i0.ɵɵclassMap(ctx.isSubItem() ? "subtitle2" : "subtitle1");
3628
+ i0.ɵɵadvance();
3629
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, ctx.caption()));
3630
+ } }, 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}"] }); }
3631
+ }
3632
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelItemComponent, [{
3633
+ type: Component,
3634
+ 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"] }]
3635
+ }], null, null); })();
3636
+ (() => { (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 }); })();
3637
+
3638
+ const _forTrack0 = ($index, $item) => $item.title;
3639
+ function MenuExpandablePanelComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
3640
+ i0.ɵɵelementStart(0, "div", 2);
3641
+ i0.ɵɵtext(1);
3642
+ i0.ɵɵpipe(2, "translate");
3643
+ i0.ɵɵelementEnd();
3644
+ } if (rf & 2) {
3645
+ const ctx_r0 = i0.ɵɵnextContext();
3646
+ i0.ɵɵadvance();
3647
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.subCaption()));
3648
+ } }
3649
+ function MenuExpandablePanelComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
3650
+ i0.ɵɵelementStart(0, "mat-icon");
3651
+ i0.ɵɵtext(1, "arrow_forward_ios");
3652
+ i0.ɵɵelementEnd();
3653
+ } if (rf & 2) {
3654
+ const ctx_r0 = i0.ɵɵnextContext();
3655
+ i0.ɵɵproperty("@arrow-collapse", ctx_r0.opened());
3656
+ } }
3657
+ function MenuExpandablePanelComponent_Conditional_9_For_1_Template(rf, ctx) { if (rf & 1) {
3658
+ i0.ɵɵelement(0, "cauca-menu-expandable-panel-item", 3);
3659
+ } if (rf & 2) {
3660
+ const item_r2 = ctx.$implicit;
3661
+ i0.ɵɵproperty("icon", item_r2.icon)("caption", item_r2.title)("route", item_r2.route)("isSubItem", true)("action", item_r2.action);
3662
+ } }
3663
+ function MenuExpandablePanelComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
3664
+ i0.ɵɵrepeaterCreate(0, MenuExpandablePanelComponent_Conditional_9_For_1_Template, 1, 5, "cauca-menu-expandable-panel-item", 3, _forTrack0);
3665
+ } if (rf & 2) {
3666
+ const ctx_r0 = i0.ɵɵnextContext();
3667
+ i0.ɵɵrepeater(ctx_r0.items());
3668
+ } }
3669
+ const DEFAULT_DURATION = 200;
3670
+ class MenuExpandablePanelComponent {
3671
+ constructor() {
3672
+ this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
3673
+ this.isSubItem = input(false, ...(ngDevMode ? [{ debugName: "isSubItem" }] : []));
3674
+ this.subCaption = input(...(ngDevMode ? [undefined, { debugName: "subCaption" }] : []));
3675
+ this.menuIcon = input(...(ngDevMode ? [undefined, { debugName: "menuIcon" }] : []));
3676
+ this.showExpansionIcon = input(true, ...(ngDevMode ? [{ debugName: "showExpansionIcon" }] : []));
3677
+ this.addTopBorderRadius = input(false, ...(ngDevMode ? [{ debugName: "addTopBorderRadius" }] : []));
3678
+ this.bottomBorder = input(false, ...(ngDevMode ? [{ debugName: "bottomBorder" }] : []));
3679
+ this.addBottomBorderRadius = input(false, ...(ngDevMode ? [{ debugName: "addBottomBorderRadius" }] : []));
3680
+ this.route = input([], ...(ngDevMode ? [{ debugName: "route" }] : []));
3681
+ this.items = input([], ...(ngDevMode ? [{ debugName: "items" }] : []));
3682
+ this.opened = signal(false, ...(ngDevMode ? [{ debugName: "opened" }] : []));
3683
+ this.router = inject(Router);
3684
+ }
3685
+ get topLeftRadius() {
3686
+ return this.addTopBorderRadius() ? '12px' : '0px';
3687
+ }
3688
+ get topRightRadius() {
3689
+ return this.addTopBorderRadius() ? '12px' : '0px';
3690
+ }
3691
+ get bottomLeftRadius() {
3692
+ return this.addBottomBorderRadius() ? '12px' : '0px';
3693
+ }
3694
+ get bottomRightRadius() {
3695
+ return this.addBottomBorderRadius() ? '12px' : '0px';
3696
+ }
3697
+ get bottomBorderClass() {
3698
+ return this.bottomBorder();
3699
+ }
3700
+ handleClick() {
3701
+ if (this.route().length > 0 && this.items().length === 0) {
3702
+ this.router.navigate(this.route());
3703
+ }
3704
+ else {
3705
+ this.opened.set(!this.opened());
3706
+ }
3707
+ }
3708
+ static { this.ɵfac = function MenuExpandablePanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuExpandablePanelComponent)(); }; }
3709
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuExpandablePanelComponent, selectors: [["cauca-menu-expandable-panel"]], hostVars: 10, hostBindings: function MenuExpandablePanelComponent_HostBindings(rf, ctx) { if (rf & 2) {
3710
+ 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);
3711
+ i0.ɵɵclassProp("bottom-border", ctx.bottomBorderClass);
3712
+ } }, 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) {
3713
+ i0.ɵɵelementStart(0, "section", 0);
3714
+ i0.ɵɵlistener("click", function MenuExpandablePanelComponent_Template_section_click_0_listener() { return ctx.handleClick(); });
3715
+ i0.ɵɵelementStart(1, "mat-icon");
3716
+ i0.ɵɵtext(2);
3717
+ i0.ɵɵelementEnd();
3718
+ i0.ɵɵelementStart(3, "div")(4, "div", 1);
3719
+ i0.ɵɵtext(5);
3720
+ i0.ɵɵpipe(6, "translate");
3721
+ i0.ɵɵelementEnd();
3722
+ i0.ɵɵconditionalCreate(7, MenuExpandablePanelComponent_Conditional_7_Template, 3, 3, "div", 2);
3723
+ i0.ɵɵelementEnd();
3724
+ i0.ɵɵconditionalCreate(8, MenuExpandablePanelComponent_Conditional_8_Template, 2, 1, "mat-icon");
3725
+ i0.ɵɵelementEnd();
3726
+ i0.ɵɵconditionalCreate(9, MenuExpandablePanelComponent_Conditional_9_Template, 2, 0);
3727
+ } if (rf & 2) {
3728
+ i0.ɵɵproperty("ngClass", ctx.opened() ? "bottom-padding" : "");
3729
+ i0.ɵɵadvance(2);
3730
+ i0.ɵɵtextInterpolate(ctx.menuIcon());
3731
+ i0.ɵɵadvance(3);
3732
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 6, ctx.caption()));
3733
+ i0.ɵɵadvance(2);
3734
+ i0.ɵɵconditional(ctx.subCaption() ? 7 : -1);
3735
+ i0.ɵɵadvance();
3736
+ i0.ɵɵconditional(ctx.showExpansionIcon() ? 8 : -1);
3737
+ i0.ɵɵadvance();
3738
+ i0.ɵɵconditional(ctx.opened() ? 9 : -1);
3739
+ } }, 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: [
3740
+ trigger('arrow-collapse', [
3741
+ state('false', style({ transform: 'rotate(0deg)' })),
3742
+ state('true', style({ transform: 'rotate(-90deg)' })),
3743
+ transition('false => true', animate(DEFAULT_DURATION + 'ms ease-in-out')),
3744
+ transition('true => false', animate(DEFAULT_DURATION + 'ms ease-in-out'))
3745
+ ])
3746
+ ] } }); }
3747
+ }
3748
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelComponent, [{
3749
+ type: Component,
3750
+ args: [{ selector: 'cauca-menu-expandable-panel', imports: [MatIconModule, TranslateModule, MenuExpandablePanelItemComponent, NgClass], animations: [
3751
+ trigger('arrow-collapse', [
3752
+ state('false', style({ transform: 'rotate(0deg)' })),
3753
+ state('true', style({ transform: 'rotate(-90deg)' })),
3754
+ transition('false => true', animate(DEFAULT_DURATION + 'ms ease-in-out')),
3755
+ transition('true => false', animate(DEFAULT_DURATION + 'ms ease-in-out'))
3756
+ ])
3757
+ ], 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"] }]
3758
+ }], null, { topLeftRadius: [{
3759
+ type: HostBinding,
3760
+ args: ['style.border-top-left-radius']
3761
+ }], topRightRadius: [{
3762
+ type: HostBinding,
3763
+ args: ['style.border-top-right-radius']
3764
+ }], bottomLeftRadius: [{
3765
+ type: HostBinding,
3766
+ args: ['style.border-bottom-left-radius']
3767
+ }], bottomRightRadius: [{
3768
+ type: HostBinding,
3769
+ args: ['style.border-bottom-right-radius']
3770
+ }], bottomBorderClass: [{
3771
+ type: HostBinding,
3772
+ args: ['class.bottom-border']
3773
+ }] }); })();
3774
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelComponent, { className: "MenuExpandablePanelComponent", filePath: "lib/components/layout/menu-expandable-panel/menu-expandable-panel.component.ts", lineNumber: 25 }); })();
3775
+
3252
3776
  function SavingConfirmedBoxComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
3253
3777
  const _r1 = i0.ɵɵgetCurrentView();
3254
3778
  i0.ɵɵelementStart(0, "cauca-snackbar", 1);
@@ -4192,5 +4716,5 @@ class MenuItem {
4192
4716
  * Generated bundle index. Do not edit.
4193
4717
  */
4194
4718
 
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 };
4719
+ export { AutoTrimAndLowerDirective, BadgeComponent, BasicButtonComponent, BreadcrumbLocation, 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
4720
  //# sourceMappingURL=cauca-911-material.mjs.map