@cauca-911/material 20.0.4 → 20.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/cauca-911-material.mjs +312 -16
- package/fesm2022/cauca-911-material.mjs.map +1 -1
- package/index.d.ts +56 -1
- package/package.json +1 -1
|
@@ -39,8 +39,9 @@ import { PasswordValidator } from 'projects/cauca-material/src/lib/core/validato
|
|
|
39
39
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
40
40
|
import * as i2$3 from '@angular/material/autocomplete';
|
|
41
41
|
import { MatAutocompleteModule, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
42
|
+
import * as i1$a from '@angular/router';
|
|
43
|
+
import { RouterModule, Router, NavigationEnd } from '@angular/router';
|
|
42
44
|
import { MatTabGroup, MatTab } from '@angular/material/tabs';
|
|
43
|
-
import { Router, NavigationEnd } from '@angular/router';
|
|
44
45
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
45
46
|
|
|
46
47
|
class CaucaMaterialService {
|
|
@@ -183,7 +184,7 @@ class DesktopTimePickerComponent {
|
|
|
183
184
|
}] }); })();
|
|
184
185
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DesktopTimePickerComponent, { className: "DesktopTimePickerComponent", filePath: "lib/cauca-date-time-picker/components/desktop-time-picker/desktop-time-picker.component.ts", lineNumber: 12 }); })();
|
|
185
186
|
|
|
186
|
-
const _c0$
|
|
187
|
+
const _c0$b = (a0, a1) => ({ all: a0, someOptions: a1 });
|
|
187
188
|
function DialogDateTimePickerComponent_Conditional_4_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
188
189
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
189
190
|
i0.ɵɵelementStart(0, "div", 14)(1, "cauca-desktop-time-picker", 15);
|
|
@@ -192,7 +193,7 @@ function DialogDateTimePickerComponent_Conditional_4_div_0_Template(rf, ctx) { i
|
|
|
192
193
|
} if (rf & 2) {
|
|
193
194
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
194
195
|
i0.ɵɵadvance();
|
|
195
|
-
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$
|
|
196
|
+
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$b, ctx_r1.disabled.hours, ctx_r1.disabled.someHours))("options", ctx_r1.hours)("value", ctx_r1.selectedHour);
|
|
196
197
|
} }
|
|
197
198
|
function DialogDateTimePickerComponent_Conditional_4_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
198
199
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -217,7 +218,7 @@ function DialogDateTimePickerComponent_Conditional_4_div_3_Template(rf, ctx) { i
|
|
|
217
218
|
} if (rf & 2) {
|
|
218
219
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
219
220
|
i0.ɵɵadvance();
|
|
220
|
-
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$
|
|
221
|
+
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$b, ctx_r1.disabled.minutes, ctx_r1.disabled.someMinutes))("options", ctx_r1.minutes)("value", ctx_r1.selectedMinute);
|
|
221
222
|
} }
|
|
222
223
|
function DialogDateTimePickerComponent_Conditional_4_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
223
224
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
@@ -242,7 +243,7 @@ function DialogDateTimePickerComponent_Conditional_4_div_6_Template(rf, ctx) { i
|
|
|
242
243
|
} if (rf & 2) {
|
|
243
244
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
244
245
|
i0.ɵɵadvance();
|
|
245
|
-
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$
|
|
246
|
+
i0.ɵɵproperty("disabled", i0.ɵɵpureFunction2(3, _c0$b, ctx_r1.disabled.seconds, ctx_r1.disabled.someSeconds))("options", ctx_r1.seconds)("value", ctx_r1.selectedSecond);
|
|
246
247
|
} }
|
|
247
248
|
function DialogDateTimePickerComponent_Conditional_4_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
248
249
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -1654,7 +1655,7 @@ class DeleteDialogData {
|
|
|
1654
1655
|
}
|
|
1655
1656
|
}
|
|
1656
1657
|
|
|
1657
|
-
const _c0$
|
|
1658
|
+
const _c0$a = a0 => ({ itemName: a0 });
|
|
1658
1659
|
const _c1$2 = a0 => ({ itemType: a0 });
|
|
1659
1660
|
function DeleteDialogComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1660
1661
|
i0.ɵɵelementStart(0, "div", 1);
|
|
@@ -1716,7 +1717,7 @@ class DeleteDialogComponent {
|
|
|
1716
1717
|
i0.ɵɵadvance();
|
|
1717
1718
|
i0.ɵɵconditional(ctx.itemGenderIsFemale ? 1 : 2);
|
|
1718
1719
|
i0.ɵɵadvance(5);
|
|
1719
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 2, "deleteDialog.message", i0.ɵɵpureFunction1(5, _c0$
|
|
1720
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 2, "deleteDialog.message", i0.ɵɵpureFunction1(5, _c0$a, ctx.itemName)));
|
|
1720
1721
|
} }, dependencies: [MatDialogModule, i1$6.MatDialogTitle, i1$6.MatDialogActions, i1$6.MatDialogContent, TranslateModule, StrokedButtonComponent$1, IconButtonComponent$1, RaisedButtonComponent$1, 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}"] }); }
|
|
1721
1722
|
}
|
|
1722
1723
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeleteDialogComponent, [{
|
|
@@ -1728,7 +1729,7 @@ class DeleteDialogComponent {
|
|
|
1728
1729
|
}] }, { type: i2$2.BreakpointObserver }], null); })();
|
|
1729
1730
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DeleteDialogComponent, { className: "DeleteDialogComponent", filePath: "lib/dialogs/delete-dialog/delete-dialog.component.ts", lineNumber: 17 }); })();
|
|
1730
1731
|
|
|
1731
|
-
const _c0$
|
|
1732
|
+
const _c0$9 = a0 => ({ itemName: a0 });
|
|
1732
1733
|
class ErrorDialogComponent {
|
|
1733
1734
|
constructor(dialogRef, data, breakdownObserver) {
|
|
1734
1735
|
this.dialogRef = dialogRef;
|
|
@@ -1761,7 +1762,7 @@ class ErrorDialogComponent {
|
|
|
1761
1762
|
i0.ɵɵadvance(2);
|
|
1762
1763
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "errorDialog.titleError"));
|
|
1763
1764
|
i0.ɵɵadvance(5);
|
|
1764
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 4, "errorDialog.messageError", i0.ɵɵpureFunction1(7, _c0$
|
|
1765
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 4, "errorDialog.messageError", i0.ɵɵpureFunction1(7, _c0$9, ctx.itemName)));
|
|
1765
1766
|
} }, dependencies: [MatDialogModule, i1$6.MatDialogTitle, i1$6.MatDialogActions, i1$6.MatDialogContent, TranslateModule, RaisedButtonComponent$1, IconButtonComponent$1, 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}"] }); }
|
|
1766
1767
|
}
|
|
1767
1768
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorDialogComponent, [{
|
|
@@ -1878,7 +1879,7 @@ class LoadingStateService {
|
|
|
1878
1879
|
type: Injectable
|
|
1879
1880
|
}], null, null); })();
|
|
1880
1881
|
|
|
1881
|
-
const _c0$
|
|
1882
|
+
const _c0$8 = ["*"];
|
|
1882
1883
|
function SnackBarComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
1883
1884
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
1884
1885
|
i0.ɵɵelementStart(0, "cauca-stroked-button", 7);
|
|
@@ -1919,7 +1920,7 @@ class SnackBarComponent {
|
|
|
1919
1920
|
this.buttonClick = new EventEmitter();
|
|
1920
1921
|
}
|
|
1921
1922
|
static { this.ɵfac = function SnackBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SnackBarComponent)(); }; }
|
|
1922
|
-
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$
|
|
1923
|
+
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) {
|
|
1923
1924
|
i0.ɵɵprojectionDef();
|
|
1924
1925
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "mat-icon");
|
|
1925
1926
|
i0.ɵɵtext(3);
|
|
@@ -2397,7 +2398,7 @@ class PasswordInputComponent {
|
|
|
2397
2398
|
}], () => [], null); })();
|
|
2398
2399
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PasswordInputComponent, { className: "PasswordInputComponent", filePath: "lib/inputs/password/password-input/password-input.component.ts", lineNumber: 23 }); })();
|
|
2399
2400
|
|
|
2400
|
-
const _c0$
|
|
2401
|
+
const _c0$7 = ["*"];
|
|
2401
2402
|
function PasswordSelectionComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
2402
2403
|
i0.ɵɵelement(0, "cauca-password-criteria-viewer", 5);
|
|
2403
2404
|
} if (rf & 2) {
|
|
@@ -2481,7 +2482,7 @@ class PasswordSelectionComponent {
|
|
|
2481
2482
|
multi: true,
|
|
2482
2483
|
useExisting: forwardRef(() => PasswordSelectionComponent),
|
|
2483
2484
|
},
|
|
2484
|
-
])], ngContentSelectors: _c0$
|
|
2485
|
+
])], 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) {
|
|
2485
2486
|
i0.ɵɵprojectionDef();
|
|
2486
2487
|
i0.ɵɵelementStart(0, "form", 0)(1, "div", 1);
|
|
2487
2488
|
i0.ɵɵelement(2, "cauca-password-input", 2)(3, "cauca-password-input", 3);
|
|
@@ -2577,7 +2578,7 @@ class DateRangePickerComponent {
|
|
|
2577
2578
|
}], () => [], null); })();
|
|
2578
2579
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateRangePickerComponent, { className: "DateRangePickerComponent", filePath: "lib/inputs/date-range-picker/date-range-picker.component.ts", lineNumber: 19 }); })();
|
|
2579
2580
|
|
|
2580
|
-
const _c0$
|
|
2581
|
+
const _c0$6 = ["auto"];
|
|
2581
2582
|
const _c1$1 = ["chipInput"];
|
|
2582
2583
|
const _c2 = a0 => ({ data: a0 });
|
|
2583
2584
|
function DropdownChipAutocompleteComponent_For_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -2811,7 +2812,7 @@ class DropdownChipAutocompleteComponent {
|
|
|
2811
2812
|
let _t;
|
|
2812
2813
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.optionTemplate = _t.first);
|
|
2813
2814
|
} }, viewQuery: function DropdownChipAutocompleteComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2814
|
-
i0.ɵɵviewQuery(_c0$
|
|
2815
|
+
i0.ɵɵviewQuery(_c0$6, 5);
|
|
2815
2816
|
i0.ɵɵviewQuery(_c1$1, 5);
|
|
2816
2817
|
i0.ɵɵviewQuery(MatAutocompleteTrigger, 5);
|
|
2817
2818
|
} if (rf & 2) {
|
|
@@ -2928,6 +2929,301 @@ class DropdownChipAutocompleteComponent {
|
|
|
2928
2929
|
}] }); })();
|
|
2929
2930
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DropdownChipAutocompleteComponent, { className: "DropdownChipAutocompleteComponent", filePath: "lib/inputs/dropdown-chip-autocomplete/dropdown-chip-autocomplete.component.ts", lineNumber: 45 }); })();
|
|
2930
2931
|
|
|
2932
|
+
const _c0$5 = ["*"];
|
|
2933
|
+
class GroupContainerComponent {
|
|
2934
|
+
constructor() {
|
|
2935
|
+
this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
|
|
2936
|
+
}
|
|
2937
|
+
static { this.ɵfac = function GroupContainerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GroupContainerComponent)(); }; }
|
|
2938
|
+
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) {
|
|
2939
|
+
i0.ɵɵprojectionDef();
|
|
2940
|
+
i0.ɵɵdomElementStart(0, "div", 0)(1, "div", 1);
|
|
2941
|
+
i0.ɵɵtext(2);
|
|
2942
|
+
i0.ɵɵpipe(3, "translate");
|
|
2943
|
+
i0.ɵɵdomElementEnd();
|
|
2944
|
+
i0.ɵɵdomElementStart(4, "div", 2);
|
|
2945
|
+
i0.ɵɵprojection(5);
|
|
2946
|
+
i0.ɵɵdomElementEnd()();
|
|
2947
|
+
} if (rf & 2) {
|
|
2948
|
+
i0.ɵɵadvance(2);
|
|
2949
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, ctx.caption()));
|
|
2950
|
+
} }, dependencies: [TranslateModule, i1.TranslatePipe], styles: [".group-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;align-self:stretch}.group-container-title[_ngcontent-%COMP%]{display:flex;width:300px;max-width:300px;padding:16px 0;flex-direction:column;align-items:flex-start}.group-container-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;flex:1;padding:16px}"], changeDetection: 0 }); }
|
|
2951
|
+
}
|
|
2952
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupContainerComponent, [{
|
|
2953
|
+
type: Component,
|
|
2954
|
+
args: [{ selector: 'cauca-group-container', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule], template: "<div class=\"group-container\">\r\n <div class=\"group-container-title subtitle1\">{{caption()|translate}}</div>\r\n <div class=\"group-container-content\">\r\n <ng-content />\r\n </div>\r\n</div>\r\n", styles: [".group-container{display:flex;align-items:flex-start;align-self:stretch}.group-container-title{display:flex;width:300px;max-width:300px;padding:16px 0;flex-direction:column;align-items:flex-start}.group-container-content{display:flex;flex-direction:column;align-items:stretch;flex:1;padding:16px}\n"] }]
|
|
2955
|
+
}], null, null); })();
|
|
2956
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GroupContainerComponent, { className: "GroupContainerComponent", filePath: "lib/layout/group-container/group-container.component.ts", lineNumber: 12 }); })();
|
|
2957
|
+
|
|
2958
|
+
const _c0$4 = ["*"];
|
|
2959
|
+
function MainSectionComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
2960
|
+
i0.ɵɵdomElementStart(0, "div", 1);
|
|
2961
|
+
i0.ɵɵtext(1);
|
|
2962
|
+
i0.ɵɵpipe(2, "translate");
|
|
2963
|
+
i0.ɵɵdomElementEnd();
|
|
2964
|
+
} if (rf & 2) {
|
|
2965
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
2966
|
+
i0.ɵɵadvance();
|
|
2967
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.title()));
|
|
2968
|
+
} }
|
|
2969
|
+
class MainSectionComponent {
|
|
2970
|
+
constructor() {
|
|
2971
|
+
this.title = input('', ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
2972
|
+
}
|
|
2973
|
+
static { this.ɵfac = function MainSectionComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MainSectionComponent)(); }; }
|
|
2974
|
+
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) {
|
|
2975
|
+
i0.ɵɵprojectionDef();
|
|
2976
|
+
i0.ɵɵdomElementStart(0, "div", 0);
|
|
2977
|
+
i0.ɵɵconditionalCreate(1, MainSectionComponent_Conditional_1_Template, 3, 3, "div", 1);
|
|
2978
|
+
i0.ɵɵdomElementStart(2, "div", 2);
|
|
2979
|
+
i0.ɵɵprojection(3);
|
|
2980
|
+
i0.ɵɵdomElementEnd()();
|
|
2981
|
+
} if (rf & 2) {
|
|
2982
|
+
i0.ɵɵadvance();
|
|
2983
|
+
i0.ɵɵconditional(ctx.title() ? 1 : -1);
|
|
2984
|
+
} }, dependencies: [TranslateModule, i1.TranslatePipe], styles: [".section[_ngcontent-%COMP%]{display:flex;padding:24px 16px;flex-direction:column;justify-content:center;align-items:flex-start;flex:1 0 0;max-width:1200px}.section-description[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;padding-bottom:24px}.section-fields[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;align-self:stretch}.section-fields[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0 0}"], changeDetection: 0 }); }
|
|
2985
|
+
}
|
|
2986
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MainSectionComponent, [{
|
|
2987
|
+
type: Component,
|
|
2988
|
+
args: [{ selector: 'cauca-main-section', imports: [TranslateModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"section\">\r\n @if (title()) {\r\n <div class=\"section-description subtitle1\">{{title()|translate}}</div>\r\n }\r\n <div class=\"section-fields\"><ng-content /></div>\r\n</div>", styles: [".section{display:flex;padding:24px 16px;flex-direction:column;justify-content:center;align-items:flex-start;flex:1 0 0;max-width:1200px}.section-description{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;padding-bottom:24px}.section-fields{display:flex;align-items:flex-start;gap:8px;align-self:stretch}.section-fields>*{flex:1 0 0}\n"] }]
|
|
2989
|
+
}], null, null); })();
|
|
2990
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MainSectionComponent, { className: "MainSectionComponent", filePath: "lib/layout/sections/main-section/main-section.component.ts", lineNumber: 11 }); })();
|
|
2991
|
+
|
|
2992
|
+
const _c0$3 = ["*"];
|
|
2993
|
+
class SectionColumnComponent {
|
|
2994
|
+
constructor() {
|
|
2995
|
+
this.showBigGap = input(false, ...(ngDevMode ? [{ debugName: "showBigGap" }] : []));
|
|
2996
|
+
}
|
|
2997
|
+
static { this.ɵfac = function SectionColumnComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SectionColumnComponent)(); }; }
|
|
2998
|
+
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) {
|
|
2999
|
+
i0.ɵɵprojectionDef();
|
|
3000
|
+
i0.ɵɵdomElementStart(0, "div", 0);
|
|
3001
|
+
i0.ɵɵprojection(1);
|
|
3002
|
+
i0.ɵɵdomElementEnd();
|
|
3003
|
+
} if (rf & 2) {
|
|
3004
|
+
i0.ɵɵclassProp("big-gap", ctx.showBigGap());
|
|
3005
|
+
} }, styles: ["[_nghost-%COMP%]{flex:1 0 0;display:flex;flex-direction:column;align-items:stretch}.section-columns[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0}.big-gap[_ngcontent-%COMP%]{gap:16px}"], changeDetection: 0 }); }
|
|
3006
|
+
}
|
|
3007
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SectionColumnComponent, [{
|
|
3008
|
+
type: Component,
|
|
3009
|
+
args: [{ selector: 'cauca-section-column', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"section-columns\" [class.big-gap]=\"showBigGap()\">\r\n <ng-content></ng-content>\r\n</div>", styles: [":host{flex:1 0 0;display:flex;flex-direction:column;align-items:stretch}.section-columns{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0}.big-gap{gap:16px}\n"] }]
|
|
3010
|
+
}], null, null); })();
|
|
3011
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SectionColumnComponent, { className: "SectionColumnComponent", filePath: "lib/layout/sections/section-column/section-column.component.ts", lineNumber: 10 }); })();
|
|
3012
|
+
|
|
3013
|
+
function SectionFieldComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
3014
|
+
i0.ɵɵtext(0);
|
|
3015
|
+
i0.ɵɵpipe(1, "translate");
|
|
3016
|
+
} if (rf & 2) {
|
|
3017
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
3018
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(1, 1, ctx_r0.label()), " ");
|
|
3019
|
+
} }
|
|
3020
|
+
function SectionFieldComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
3021
|
+
i0.ɵɵtext(0);
|
|
3022
|
+
} if (rf & 2) {
|
|
3023
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
3024
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.label(), " ");
|
|
3025
|
+
} }
|
|
3026
|
+
function SectionFieldComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
3027
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
3028
|
+
i0.ɵɵelementStart(0, "mat-icon", 4);
|
|
3029
|
+
i0.ɵɵlistener("click", function SectionFieldComponent_Conditional_4_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.linkClick.emit()); });
|
|
3030
|
+
i0.ɵɵtext(1, "link");
|
|
3031
|
+
i0.ɵɵelementEnd();
|
|
3032
|
+
} }
|
|
3033
|
+
function SectionFieldComponent_Conditional_7_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
3034
|
+
i0.ɵɵelementStart(0, "span");
|
|
3035
|
+
i0.ɵɵtext(1);
|
|
3036
|
+
i0.ɵɵelementEnd();
|
|
3037
|
+
} if (rf & 2) {
|
|
3038
|
+
const item_r3 = ctx.$implicit;
|
|
3039
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
3040
|
+
i0.ɵɵadvance();
|
|
3041
|
+
i0.ɵɵtextInterpolate(ctx_r0.fieldName() ? item_r3[ctx_r0.fieldName()] : item_r3);
|
|
3042
|
+
} }
|
|
3043
|
+
function SectionFieldComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
3044
|
+
i0.ɵɵrepeaterCreate(0, SectionFieldComponent_Conditional_7_For_1_Template, 2, 1, "span", null, i0.ɵɵrepeaterTrackByIdentity);
|
|
3045
|
+
} if (rf & 2) {
|
|
3046
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
3047
|
+
i0.ɵɵrepeater(ctx_r0.values());
|
|
3048
|
+
} }
|
|
3049
|
+
function SectionFieldComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
3050
|
+
i0.ɵɵtext(0);
|
|
3051
|
+
} if (rf & 2) {
|
|
3052
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
3053
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.value(), " ");
|
|
3054
|
+
} }
|
|
3055
|
+
class SectionFieldComponent {
|
|
3056
|
+
constructor() {
|
|
3057
|
+
this.autoTranslateLabel = input(true, ...(ngDevMode ? [{ debugName: "autoTranslateLabel" }] : []));
|
|
3058
|
+
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
3059
|
+
this.value = input('', ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
3060
|
+
this.values = input([], ...(ngDevMode ? [{ debugName: "values" }] : []));
|
|
3061
|
+
this.fieldName = input('', ...(ngDevMode ? [{ debugName: "fieldName" }] : []));
|
|
3062
|
+
this.useMultipleValues = computed(() => this.values()?.length > 0, ...(ngDevMode ? [{ debugName: "useMultipleValues" }] : []));
|
|
3063
|
+
this.showLink = input(false, ...(ngDevMode ? [{ debugName: "showLink" }] : []));
|
|
3064
|
+
this.linkClick = output();
|
|
3065
|
+
this.splitEqually = input(true, ...(ngDevMode ? [{ debugName: "splitEqually" }] : []));
|
|
3066
|
+
}
|
|
3067
|
+
static { this.ɵfac = function SectionFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SectionFieldComponent)(); }; }
|
|
3068
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SectionFieldComponent, selectors: [["cauca-section-field"]], inputs: { autoTranslateLabel: [1, "autoTranslateLabel"], label: [1, "label"], value: [1, "value"], values: [1, "values"], fieldName: [1, "fieldName"], showLink: [1, "showLink"], splitEqually: [1, "splitEqually"] }, outputs: { linkClick: "linkClick" }, decls: 9, vars: 9, consts: [[1, "section-fields-line"], [1, "option-label", "body1"], ["onkeypress", "linkClick.emit()", 1, "icon-link"], [1, "option-value", "body2"], ["onkeypress", "linkClick.emit()", 1, "icon-link", 3, "click"]], template: function SectionFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3069
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
3070
|
+
i0.ɵɵconditionalCreate(2, SectionFieldComponent_Conditional_2_Template, 2, 3)(3, SectionFieldComponent_Conditional_3_Template, 1, 1);
|
|
3071
|
+
i0.ɵɵconditionalCreate(4, SectionFieldComponent_Conditional_4_Template, 2, 0, "mat-icon", 2);
|
|
3072
|
+
i0.ɵɵtext(5, ": ");
|
|
3073
|
+
i0.ɵɵelementEnd();
|
|
3074
|
+
i0.ɵɵelementStart(6, "div", 3);
|
|
3075
|
+
i0.ɵɵconditionalCreate(7, SectionFieldComponent_Conditional_7_Template, 2, 0)(8, SectionFieldComponent_Conditional_8_Template, 1, 1);
|
|
3076
|
+
i0.ɵɵelementEnd()();
|
|
3077
|
+
} if (rf & 2) {
|
|
3078
|
+
i0.ɵɵclassProp("multi-line", ctx.useMultipleValues());
|
|
3079
|
+
i0.ɵɵadvance();
|
|
3080
|
+
i0.ɵɵclassProp("link", ctx.showLink());
|
|
3081
|
+
i0.ɵɵadvance();
|
|
3082
|
+
i0.ɵɵconditional(ctx.autoTranslateLabel() ? 2 : 3);
|
|
3083
|
+
i0.ɵɵadvance(2);
|
|
3084
|
+
i0.ɵɵconditional(ctx.showLink() ? 4 : -1);
|
|
3085
|
+
i0.ɵɵadvance(2);
|
|
3086
|
+
i0.ɵɵclassProp("no-flex", !ctx.splitEqually());
|
|
3087
|
+
i0.ɵɵadvance();
|
|
3088
|
+
i0.ɵɵconditional(ctx.useMultipleValues() ? 7 : 8);
|
|
3089
|
+
} }, dependencies: [TranslateModule, MatIcon, i1.TranslatePipe], styles: ["[_nghost-%COMP%]{flex:1 0 0;display:flex;flex-direction:column;align-items:stretch;width:100%}.section-fields-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;align-self:stretch;white-space:nowrap}.section-fields-line[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0 0}.option-value[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0;white-space:wrap;word-break:break-all}.option-value.no-flex[_ngcontent-%COMP%]{flex:unset}.multi-line[_ngcontent-%COMP%]{align-items:flex-start}.icon-link[_ngcontent-%COMP%]{cursor:pointer}.link[_ngcontent-%COMP%]{display:flex}"], changeDetection: 0 }); }
|
|
3090
|
+
}
|
|
3091
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SectionFieldComponent, [{
|
|
3092
|
+
type: Component,
|
|
3093
|
+
args: [{ selector: 'cauca-section-field', imports: [TranslateModule, MatIcon], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"section-fields-line\" [class.multi-line]=\"useMultipleValues()\">\r\n <div class=\"option-label body1\" [class.link]=\"showLink()\">\r\n @if(autoTranslateLabel()) {\r\n {{label()|translate}}\r\n } @else {\r\n {{label()}}\r\n }\r\n @if (showLink()) {\r\n <mat-icon class=\"icon-link\" (click)=\"linkClick.emit()\" onkeypress=\"linkClick.emit()\">link</mat-icon>\r\n }:\r\n </div>\r\n <div class=\"option-value body2\" [class.no-flex]=\"!splitEqually()\">\r\n @if (useMultipleValues()) {\r\n @for(item of values(); track item) {\r\n <span>{{fieldName() ? item[fieldName()] : item }}</span>\r\n }\r\n } @else {\r\n {{value()}}\r\n }\r\n </div>\r\n</div>", styles: [":host{flex:1 0 0;display:flex;flex-direction:column;align-items:stretch;width:100%}.section-fields-line{display:flex;align-items:center;gap:8px;align-self:stretch;white-space:nowrap}.section-fields-line>*{flex:1 0 0}.option-value{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1 0 0;white-space:wrap;word-break:break-all}.option-value.no-flex{flex:unset}.multi-line{align-items:flex-start}.icon-link{cursor:pointer}.link{display:flex}\n"] }]
|
|
3094
|
+
}], null, null); })();
|
|
3095
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SectionFieldComponent, { className: "SectionFieldComponent", filePath: "lib/layout/sections/section-field/section-field.component.ts", lineNumber: 12 }); })();
|
|
3096
|
+
|
|
3097
|
+
class BreadcrumbService {
|
|
3098
|
+
constructor() {
|
|
3099
|
+
this.showBreadcrumb = computed(() => this.isShown(), ...(ngDevMode ? [{ debugName: "showBreadcrumb" }] : []));
|
|
3100
|
+
this.location = signal([], ...(ngDevMode ? [{ debugName: "location" }] : []));
|
|
3101
|
+
this.breadcrumb = signal('', ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
|
|
3102
|
+
this.translateBreadcrumb = signal(false, ...(ngDevMode ? [{ debugName: "translateBreadcrumb" }] : []));
|
|
3103
|
+
this.isShown = signal(false, ...(ngDevMode ? [{ debugName: "isShown" }] : []));
|
|
3104
|
+
}
|
|
3105
|
+
show(breadcrumb, location = [], translateBreadcrumb = true) {
|
|
3106
|
+
this.isShown.set(true);
|
|
3107
|
+
this.breadcrumb.set(breadcrumb);
|
|
3108
|
+
this.location.set(location);
|
|
3109
|
+
this.translateBreadcrumb.set(translateBreadcrumb);
|
|
3110
|
+
}
|
|
3111
|
+
hide() {
|
|
3112
|
+
this.isShown.set(false);
|
|
3113
|
+
}
|
|
3114
|
+
static { this.ɵfac = function BreadcrumbService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BreadcrumbService)(); }; }
|
|
3115
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BreadcrumbService, factory: BreadcrumbService.ɵfac }); }
|
|
3116
|
+
}
|
|
3117
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BreadcrumbService, [{
|
|
3118
|
+
type: Injectable
|
|
3119
|
+
}], null, null); })();
|
|
3120
|
+
|
|
3121
|
+
function PageTitleComponent_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
3122
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
3123
|
+
i0.ɵɵtext(1);
|
|
3124
|
+
i0.ɵɵpipe(2, "translate");
|
|
3125
|
+
i0.ɵɵelementEnd();
|
|
3126
|
+
i0.ɵɵelementStart(3, "span");
|
|
3127
|
+
i0.ɵɵtext(4, "/");
|
|
3128
|
+
i0.ɵɵelementEnd();
|
|
3129
|
+
} if (rf & 2) {
|
|
3130
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
3131
|
+
i0.ɵɵadvance();
|
|
3132
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.baseCrumb()));
|
|
3133
|
+
} }
|
|
3134
|
+
function PageTitleComponent_Conditional_4_For_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
3135
|
+
i0.ɵɵelementStart(0, "a", 5);
|
|
3136
|
+
i0.ɵɵtext(1);
|
|
3137
|
+
i0.ɵɵpipe(2, "translate");
|
|
3138
|
+
i0.ɵɵelementEnd();
|
|
3139
|
+
} if (rf & 2) {
|
|
3140
|
+
const location_r2 = i0.ɵɵnextContext().$implicit;
|
|
3141
|
+
i0.ɵɵproperty("href", location_r2.link, i0.ɵɵsanitizeUrl)("routerLink", location_r2.link);
|
|
3142
|
+
i0.ɵɵadvance();
|
|
3143
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 3, location_r2.title));
|
|
3144
|
+
} }
|
|
3145
|
+
function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
3146
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
3147
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
3148
|
+
i0.ɵɵlistener("click", function PageTitleComponent_Conditional_4_For_3_Conditional_1_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r3); const location_r2 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(location_r2.action()); });
|
|
3149
|
+
i0.ɵɵtext(1);
|
|
3150
|
+
i0.ɵɵpipe(2, "translate");
|
|
3151
|
+
i0.ɵɵelementEnd();
|
|
3152
|
+
} if (rf & 2) {
|
|
3153
|
+
const location_r2 = i0.ɵɵnextContext().$implicit;
|
|
3154
|
+
i0.ɵɵadvance();
|
|
3155
|
+
i0.ɵɵtextInterpolate(location_r2.translate ? i0.ɵɵpipeBind1(2, 1, location_r2.title) : location_r2.title);
|
|
3156
|
+
} }
|
|
3157
|
+
function PageTitleComponent_Conditional_4_For_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
3158
|
+
i0.ɵɵelementStart(0, "span", 4);
|
|
3159
|
+
i0.ɵɵtext(1);
|
|
3160
|
+
i0.ɵɵelementEnd();
|
|
3161
|
+
} if (rf & 2) {
|
|
3162
|
+
const location_r2 = i0.ɵɵnextContext().$implicit;
|
|
3163
|
+
i0.ɵɵadvance();
|
|
3164
|
+
i0.ɵɵtextInterpolate(location_r2.title);
|
|
3165
|
+
} }
|
|
3166
|
+
function PageTitleComponent_Conditional_4_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
3167
|
+
i0.ɵɵconditionalCreate(0, PageTitleComponent_Conditional_4_For_3_Conditional_0_Template, 3, 5, "a", 5)(1, PageTitleComponent_Conditional_4_For_3_Conditional_1_Template, 3, 3, "span", 6)(2, PageTitleComponent_Conditional_4_For_3_Conditional_2_Template, 2, 1, "span", 4);
|
|
3168
|
+
i0.ɵɵelementStart(3, "span");
|
|
3169
|
+
i0.ɵɵtext(4, "/");
|
|
3170
|
+
i0.ɵɵelementEnd();
|
|
3171
|
+
} if (rf & 2) {
|
|
3172
|
+
const location_r2 = ctx.$implicit;
|
|
3173
|
+
i0.ɵɵconditional(location_r2.link ? 0 : location_r2.action ? 1 : 2);
|
|
3174
|
+
} }
|
|
3175
|
+
function PageTitleComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
3176
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
3177
|
+
i0.ɵɵconditionalCreate(1, PageTitleComponent_Conditional_4_Conditional_1_Template, 5, 3);
|
|
3178
|
+
i0.ɵɵrepeaterCreate(2, PageTitleComponent_Conditional_4_For_3_Template, 5, 1, null, null, i0.ɵɵrepeaterTrackByIdentity);
|
|
3179
|
+
i0.ɵɵelementStart(4, "span", 3);
|
|
3180
|
+
i0.ɵɵtext(5);
|
|
3181
|
+
i0.ɵɵpipe(6, "translate");
|
|
3182
|
+
i0.ɵɵelementEnd()();
|
|
3183
|
+
} if (rf & 2) {
|
|
3184
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
3185
|
+
i0.ɵɵadvance();
|
|
3186
|
+
i0.ɵɵconditional(ctx_r0.baseCrumb() ? 1 : -1);
|
|
3187
|
+
i0.ɵɵadvance();
|
|
3188
|
+
i0.ɵɵrepeater(ctx_r0.breadcrumbLocation());
|
|
3189
|
+
i0.ɵɵadvance(3);
|
|
3190
|
+
i0.ɵɵtextInterpolate(ctx_r0.mustTranslateBreadcrumb() ? i0.ɵɵpipeBind1(6, 2, ctx_r0.currentBreadcrumb()) : ctx_r0.currentBreadcrumb());
|
|
3191
|
+
} }
|
|
3192
|
+
class PageTitleComponent {
|
|
3193
|
+
constructor() {
|
|
3194
|
+
this.caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : []));
|
|
3195
|
+
this.showBreadcrumb = input(false, ...(ngDevMode ? [{ debugName: "showBreadcrumb" }] : []));
|
|
3196
|
+
this.location = input([], ...(ngDevMode ? [{ debugName: "location" }] : []));
|
|
3197
|
+
this.breadcrumb = input('', ...(ngDevMode ? [{ debugName: "breadcrumb" }] : []));
|
|
3198
|
+
this.baseCrumb = input('', ...(ngDevMode ? [{ debugName: "baseCrumb" }] : []));
|
|
3199
|
+
this.translateBreadcrumb = input(true, ...(ngDevMode ? [{ debugName: "translateBreadcrumb" }] : []));
|
|
3200
|
+
this.displayBreadcrumb = computed(() => this.showBreadcrumb() || this.breadcrumbService?.showBreadcrumb(), ...(ngDevMode ? [{ debugName: "displayBreadcrumb" }] : []));
|
|
3201
|
+
this.breadcrumbLocation = computed(() => this.breadcrumbService?.location() || this.location() || [], ...(ngDevMode ? [{ debugName: "breadcrumbLocation" }] : []));
|
|
3202
|
+
this.currentBreadcrumb = computed(() => this.breadcrumbService?.breadcrumb() || this.breadcrumb() || '', ...(ngDevMode ? [{ debugName: "currentBreadcrumb" }] : []));
|
|
3203
|
+
this.mustTranslateBreadcrumb = computed(() => this.breadcrumbService?.translateBreadcrumb() || this.translateBreadcrumb(), ...(ngDevMode ? [{ debugName: "mustTranslateBreadcrumb" }] : []));
|
|
3204
|
+
this.breadcrumbService = inject(BreadcrumbService, { optional: true });
|
|
3205
|
+
}
|
|
3206
|
+
static { this.ɵfac = function PageTitleComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PageTitleComponent)(); }; }
|
|
3207
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PageTitleComponent, selectors: [["cauca-page-title"]], inputs: { caption: [1, "caption"], showBreadcrumb: [1, "showBreadcrumb"], location: [1, "location"], breadcrumb: [1, "breadcrumb"], baseCrumb: [1, "baseCrumb"], translateBreadcrumb: [1, "translateBreadcrumb"] }, decls: 5, vars: 4, consts: [[1, "title-section"], [1, "title-label"], [1, "breadcrumb"], [1, "breadcrumb-current"], [1, "basecrumb"], [1, "basecrumb", 3, "href", "routerLink"], [1, "basecrumb", "crumb-link"], [1, "basecrumb", "crumb-link", 3, "click"]], template: function PageTitleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3208
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "h4", 1);
|
|
3209
|
+
i0.ɵɵtext(2);
|
|
3210
|
+
i0.ɵɵpipe(3, "translate");
|
|
3211
|
+
i0.ɵɵelementEnd();
|
|
3212
|
+
i0.ɵɵconditionalCreate(4, PageTitleComponent_Conditional_4_Template, 7, 4, "div", 2);
|
|
3213
|
+
i0.ɵɵelementEnd();
|
|
3214
|
+
} if (rf & 2) {
|
|
3215
|
+
i0.ɵɵadvance(2);
|
|
3216
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, ctx.caption()));
|
|
3217
|
+
i0.ɵɵadvance(2);
|
|
3218
|
+
i0.ɵɵconditional(ctx.displayBreadcrumb() ? 4 : -1);
|
|
3219
|
+
} }, dependencies: [TranslateModule, RouterModule, i1$a.RouterLink, i1.TranslatePipe], styles: [".title-section[_ngcontent-%COMP%]{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch;margin-bottom:24px}.breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}h4[_ngcontent-%COMP%]{padding:0}a[_ngcontent-%COMP%]{text-decoration:none}a[_ngcontent-%COMP%]:visited{color:inherit}.basecrumb[_ngcontent-%COMP%]{color:#12101499}.crumb-link[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 500px){.title-section[_ngcontent-%COMP%]{padding:16px}}"] }); }
|
|
3220
|
+
}
|
|
3221
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PageTitleComponent, [{
|
|
3222
|
+
type: Component,
|
|
3223
|
+
args: [{ selector: 'cauca-page-title', imports: [TranslateModule, RouterModule], template: "<div class=\"title-section\">\n\n <h4 class=\"title-label\">{{caption() | translate }}</h4>\n\n @if (displayBreadcrumb()) {\n <div class=\"breadcrumb\">\n\n @if (baseCrumb()) {\n <div class=\"basecrumb\">{{baseCrumb()|translate}}</div>\n <span>/</span>\n }\n\n @for(location of breadcrumbLocation(); track location) {\n @if (location.link) {\n <a class=\"basecrumb\" [href]=\"location.link\" [routerLink]=\"location.link\">{{location.title| translate }}</a>\n } @else if (location.action) {\n <span class=\"basecrumb crumb-link\" (click)=\"location.action()\">{{ location.translate ? (location.title | translate) : location.title}}</span>\n } @else {\n <span class=\"basecrumb\">{{location.title}}</span>\n }\n <span>/</span>\n }\n\n <span class=\"breadcrumb-current\">{{ mustTranslateBreadcrumb() ? (currentBreadcrumb() | translate) : currentBreadcrumb() }}</span>\n\n </div>\n }\n\n</div>", styles: [".title-section{display:flex;gap:8px;flex-direction:column;align-items:flex-start;align-self:stretch;margin-bottom:24px}.breadcrumb{display:flex;align-items:center;gap:8px}h4{padding:0}a{text-decoration:none}a:visited{color:inherit}.basecrumb{color:#12101499}.crumb-link{cursor:pointer}@media (max-width: 500px){.title-section{padding:16px}}\n"] }]
|
|
3224
|
+
}], null, null); })();
|
|
3225
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/layout/page-title/page-title.component.ts", lineNumber: 13 }); })();
|
|
3226
|
+
|
|
2931
3227
|
function CaucaSimpleDialogComponent_div_4_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
2932
3228
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2933
3229
|
i0.ɵɵelementStart(0, "button", 6);
|
|
@@ -3657,5 +3953,5 @@ class MenuItem {
|
|
|
3657
3953
|
* Generated bundle index. Do not edit.
|
|
3658
3954
|
*/
|
|
3659
3955
|
|
|
3660
|
-
export { BadgeComponent, BasicButtonComponent, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, FabButtonComponent, FlatButtonComponent, IconButtonComponent, IconComponent, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MenuItem, MenuItemComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SnackBarComponent, StrokedButtonComponent };
|
|
3956
|
+
export { BadgeComponent, BasicButtonComponent, ButtonComponent, CaucaDateTimePickerComponent, CaucaInputFileComponent, CaucaInputMultipleLangueComponent, CaucaMaterialComponent, CaucaMaterialService, CaucaMenuSidebarComponent, CaucaMenuVerticalComponent, CaucaSimpleDialogComponent, CaucaSlideshowComponent, ConfirmationResult, DateRangePickerComponent, DialogService, DropdownChipAutocompleteComponent, FabButtonComponent, FlatButtonComponent, GroupContainerComponent, IconButtonComponent, IconComponent, LinkButtonComponent, ListPaginatorComponent, LoadingErrorComponent, LoadingSpinnerIndicatorComponent, LoadingStateService, MainSectionComponent, MenuItem, MenuItemComponent, PageTitleComponent, PasswordCriteriaViewerComponent, PasswordInputComponent, PasswordSelectionComponent, RaisedButtonComponent, RefreshButtonComponent, RoundButtonComponent, SectionColumnComponent, SectionFieldComponent, SnackBarComponent, StrokedButtonComponent };
|
|
3661
3957
|
//# sourceMappingURL=cauca-911-material.mjs.map
|