@cauca-911/material 20.2.10 → 20.2.12
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.
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"es": "Espagnol",
|
|
37
37
|
"or": "OU",
|
|
38
38
|
"dateRangeSelectorLabel": "Dates",
|
|
39
|
-
|
|
39
|
+
"errorDialog": {
|
|
40
40
|
"titleError": "Erreur de suppression",
|
|
41
41
|
"messageError": "Une erreur est survenue lors de la suppression de \"{{itemName}}\". Veuillez réessayer plus tard."
|
|
42
42
|
},
|
|
@@ -43,8 +43,6 @@ import * as i5$1 from 'ngx-mat-select-search';
|
|
|
43
43
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
44
44
|
import * as i1$a from '@angular/router';
|
|
45
45
|
import { RouterModule, Router, NavigationEnd } from '@angular/router';
|
|
46
|
-
import { trigger, state, transition, style, AUTO_STYLE, animate } from '@angular/animations';
|
|
47
|
-
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
48
46
|
import { MatTabGroup, MatTab } from '@angular/material/tabs';
|
|
49
47
|
|
|
50
48
|
class CaucaMaterialService {
|
|
@@ -3525,7 +3523,6 @@ class PageTitleComponent {
|
|
|
3525
3523
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageTitleComponent, { className: "PageTitleComponent", filePath: "lib/components/layout/page-title/page-title.component.ts", lineNumber: 13 }); })();
|
|
3526
3524
|
|
|
3527
3525
|
const _c0$3 = ["*"];
|
|
3528
|
-
const DEFAULT_DURATION$1 = 500;
|
|
3529
3526
|
class ExpandablePanelComponent {
|
|
3530
3527
|
constructor() {
|
|
3531
3528
|
this.isCollapsed = model(false, ...(ngDevMode ? [{ debugName: "isCollapsed" }] : []));
|
|
@@ -3536,7 +3533,7 @@ class ExpandablePanelComponent {
|
|
|
3536
3533
|
this.isCollapsed.update(value => !value);
|
|
3537
3534
|
}
|
|
3538
3535
|
static { this.ɵfac = function ExpandablePanelComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ExpandablePanelComponent)(); }; }
|
|
3539
|
-
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:
|
|
3536
|
+
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: 6, consts: [[1, "expansion-button", 3, "click"], [1, "primary"], [1, "body2"], [1, "expansion-panel"]], template: function ExpandablePanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3540
3537
|
i0.ɵɵprojectionDef();
|
|
3541
3538
|
i0.ɵɵelementStart(0, "section")(1, "div", 0);
|
|
3542
3539
|
i0.ɵɵlistener("click", function ExpandablePanelComponent_Template_div_click_1_listener() { return ctx.changeState(); });
|
|
@@ -3554,46 +3551,20 @@ class ExpandablePanelComponent {
|
|
|
3554
3551
|
i0.ɵɵelementEnd()();
|
|
3555
3552
|
} if (rf & 2) {
|
|
3556
3553
|
i0.ɵɵadvance(2);
|
|
3557
|
-
i0.ɵɵ
|
|
3554
|
+
i0.ɵɵclassProp("collapsed", ctx.isCollapsed());
|
|
3558
3555
|
i0.ɵɵadvance(4);
|
|
3559
3556
|
i0.ɵɵtextInterpolate(ctx.caption());
|
|
3560
3557
|
i0.ɵɵadvance(2);
|
|
3561
3558
|
i0.ɵɵtextInterpolate(ctx.subCaption());
|
|
3562
3559
|
i0.ɵɵadvance();
|
|
3563
|
-
i0.ɵɵ
|
|
3564
|
-
} }, 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}"],
|
|
3565
|
-
trigger('collapse', [
|
|
3566
|
-
state('false', style({ height: AUTO_STYLE, opacity: 1, visibility: AUTO_STYLE })),
|
|
3567
|
-
state('true', style({ height: '0', opacity: 0, visibility: 'hidden' })),
|
|
3568
|
-
transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
|
|
3569
|
-
transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
|
|
3570
|
-
]),
|
|
3571
|
-
trigger('arrow-collapse', [
|
|
3572
|
-
state('false', style({ transform: 'rotate(0deg)' })),
|
|
3573
|
-
state('true', style({ transform: 'rotate(180deg)' })),
|
|
3574
|
-
transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
|
|
3575
|
-
transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
|
|
3576
|
-
])
|
|
3577
|
-
] }, changeDetection: 0 }); }
|
|
3560
|
+
i0.ɵɵclassProp("collapsed", ctx.isCollapsed());
|
|
3561
|
+
} }, 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-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{transition:transform .5s ease-in-out}.expansion-button[_ngcontent-%COMP%] mat-icon.collapsed[_ngcontent-%COMP%]{transform:rotate(180deg)}.expansion-panel[_ngcontent-%COMP%]{overflow:hidden;flex:1;display:grid;grid-template-rows:1fr;transition:grid-template-rows .5s ease-in,opacity .5s ease-in,visibility .5s ease-in}.expansion-panel.collapsed[_ngcontent-%COMP%]{grid-template-rows:0fr;opacity:0;visibility:hidden}"], changeDetection: 0 }); }
|
|
3578
3562
|
}
|
|
3579
3563
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExpandablePanelComponent, [{
|
|
3580
3564
|
type: Component,
|
|
3581
|
-
args: [{ selector: 'cauca-expandable-panel', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon],
|
|
3582
|
-
trigger('collapse', [
|
|
3583
|
-
state('false', style({ height: AUTO_STYLE, opacity: 1, visibility: AUTO_STYLE })),
|
|
3584
|
-
state('true', style({ height: '0', opacity: 0, visibility: 'hidden' })),
|
|
3585
|
-
transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
|
|
3586
|
-
transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
|
|
3587
|
-
]),
|
|
3588
|
-
trigger('arrow-collapse', [
|
|
3589
|
-
state('false', style({ transform: 'rotate(0deg)' })),
|
|
3590
|
-
state('true', style({ transform: 'rotate(180deg)' })),
|
|
3591
|
-
transition('false => true', animate(DEFAULT_DURATION$1 + 'ms ease-in')),
|
|
3592
|
-
transition('true => false', animate(DEFAULT_DURATION$1 + 'ms ease-out'))
|
|
3593
|
-
])
|
|
3594
|
-
], 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"] }]
|
|
3565
|
+
args: [{ selector: 'cauca-expandable-panel', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIcon], template: "<section>\r\n <div class=\"expansion-button\" (click)=\"changeState()\">\r\n <mat-icon [class.collapsed]=\"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\" [class.collapsed]=\"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-button mat-icon{transition:transform .5s ease-in-out}.expansion-button mat-icon.collapsed{transform:rotate(180deg)}.expansion-panel{overflow:hidden;flex:1;display:grid;grid-template-rows:1fr;transition:grid-template-rows .5s ease-in,opacity .5s ease-in,visibility .5s ease-in}.expansion-panel.collapsed{grid-template-rows:0fr;opacity:0;visibility:hidden}\n"] }]
|
|
3595
3566
|
}], null, null); })();
|
|
3596
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ExpandablePanelComponent, { className: "ExpandablePanelComponent", filePath: "lib/components/layout/expandable-panel/expandable-panel.component.ts", lineNumber:
|
|
3567
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ExpandablePanelComponent, { className: "ExpandablePanelComponent", filePath: "lib/components/layout/expandable-panel/expandable-panel.component.ts", lineNumber: 11 }); })();
|
|
3597
3568
|
|
|
3598
3569
|
class MenuExpandablePanelItemComponent {
|
|
3599
3570
|
constructor() {
|
|
@@ -3656,21 +3627,20 @@ function MenuExpandablePanelComponent_Conditional_8_Template(rf, ctx) { if (rf &
|
|
|
3656
3627
|
i0.ɵɵelementEnd();
|
|
3657
3628
|
} if (rf & 2) {
|
|
3658
3629
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
3659
|
-
i0.ɵɵ
|
|
3630
|
+
i0.ɵɵclassProp("opened", ctx_r0.opened());
|
|
3660
3631
|
} }
|
|
3661
3632
|
function MenuExpandablePanelComponent_Conditional_9_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
3662
|
-
i0.ɵɵelement(0, "cauca-menu-expandable-panel-item",
|
|
3633
|
+
i0.ɵɵelement(0, "cauca-menu-expandable-panel-item", 4);
|
|
3663
3634
|
} if (rf & 2) {
|
|
3664
3635
|
const item_r2 = ctx.$implicit;
|
|
3665
3636
|
i0.ɵɵproperty("icon", item_r2.icon)("caption", item_r2.title)("route", item_r2.route)("isSubItem", true)("action", item_r2.action);
|
|
3666
3637
|
} }
|
|
3667
3638
|
function MenuExpandablePanelComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
3668
|
-
i0.ɵɵrepeaterCreate(0, MenuExpandablePanelComponent_Conditional_9_For_1_Template, 1, 5, "cauca-menu-expandable-panel-item",
|
|
3639
|
+
i0.ɵɵrepeaterCreate(0, MenuExpandablePanelComponent_Conditional_9_For_1_Template, 1, 5, "cauca-menu-expandable-panel-item", 4, _forTrack0);
|
|
3669
3640
|
} if (rf & 2) {
|
|
3670
3641
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
3671
3642
|
i0.ɵɵrepeater(ctx_r0.items());
|
|
3672
3643
|
} }
|
|
3673
|
-
const DEFAULT_DURATION = 200;
|
|
3674
3644
|
class MenuExpandablePanelComponent {
|
|
3675
3645
|
constructor() {
|
|
3676
3646
|
this.caption = input(...(ngDevMode ? [undefined, { debugName: "caption" }] : []));
|
|
@@ -3713,7 +3683,7 @@ class MenuExpandablePanelComponent {
|
|
|
3713
3683
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuExpandablePanelComponent, selectors: [["cauca-menu-expandable-panel"]], hostVars: 10, hostBindings: function MenuExpandablePanelComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
3714
3684
|
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);
|
|
3715
3685
|
i0.ɵɵclassProp("bottom-border", ctx.bottomBorderClass);
|
|
3716
|
-
} }, 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) {
|
|
3686
|
+
} }, 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, "opened"], [3, "icon", "caption", "route", "isSubItem", "action"]], template: function MenuExpandablePanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3717
3687
|
i0.ɵɵelementStart(0, "section", 0);
|
|
3718
3688
|
i0.ɵɵlistener("click", function MenuExpandablePanelComponent_Template_section_click_0_listener() { return ctx.handleClick(); });
|
|
3719
3689
|
i0.ɵɵelementStart(1, "mat-icon");
|
|
@@ -3725,7 +3695,7 @@ class MenuExpandablePanelComponent {
|
|
|
3725
3695
|
i0.ɵɵelementEnd();
|
|
3726
3696
|
i0.ɵɵconditionalCreate(7, MenuExpandablePanelComponent_Conditional_7_Template, 3, 3, "div", 2);
|
|
3727
3697
|
i0.ɵɵelementEnd();
|
|
3728
|
-
i0.ɵɵconditionalCreate(8, MenuExpandablePanelComponent_Conditional_8_Template, 2,
|
|
3698
|
+
i0.ɵɵconditionalCreate(8, MenuExpandablePanelComponent_Conditional_8_Template, 2, 2, "mat-icon", 3);
|
|
3729
3699
|
i0.ɵɵelementEnd();
|
|
3730
3700
|
i0.ɵɵconditionalCreate(9, MenuExpandablePanelComponent_Conditional_9_Template, 2, 0);
|
|
3731
3701
|
} if (rf & 2) {
|
|
@@ -3740,25 +3710,11 @@ class MenuExpandablePanelComponent {
|
|
|
3740
3710
|
i0.ɵɵconditional(ctx.showExpansionIcon() ? 8 : -1);
|
|
3741
3711
|
i0.ɵɵadvance();
|
|
3742
3712
|
i0.ɵɵconditional(ctx.opened() ? 9 : -1);
|
|
3743
|
-
} }, dependencies: [MatIconModule, i1$1.MatIcon,
|
|
3744
|
-
trigger('arrow-collapse', [
|
|
3745
|
-
state('false', style({ transform: 'rotate(0deg)' })),
|
|
3746
|
-
state('true', style({ transform: 'rotate(-90deg)' })),
|
|
3747
|
-
transition('false => true', animate(DEFAULT_DURATION + 'ms ease-in-out')),
|
|
3748
|
-
transition('true => false', animate(DEFAULT_DURATION + 'ms ease-in-out'))
|
|
3749
|
-
])
|
|
3750
|
-
] } }); }
|
|
3713
|
+
} }, dependencies: [MatIconModule, i1$1.MatIcon, MenuExpandablePanelItemComponent, NgClass, 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[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]:last-child{transition:transform .2s ease-in-out}section[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]:last-child.opened{transform:rotate(-90deg)}section.bottom-padding[_ngcontent-%COMP%]{padding-bottom:10px}div[_ngcontent-%COMP%]{flex:1}"] }); }
|
|
3751
3714
|
}
|
|
3752
3715
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuExpandablePanelComponent, [{
|
|
3753
3716
|
type: Component,
|
|
3754
|
-
args: [{ selector: 'cauca-menu-expandable-panel', imports: [MatIconModule,
|
|
3755
|
-
trigger('arrow-collapse', [
|
|
3756
|
-
state('false', style({ transform: 'rotate(0deg)' })),
|
|
3757
|
-
state('true', style({ transform: 'rotate(-90deg)' })),
|
|
3758
|
-
transition('false => true', animate(DEFAULT_DURATION + 'ms ease-in-out')),
|
|
3759
|
-
transition('true => false', animate(DEFAULT_DURATION + 'ms ease-in-out'))
|
|
3760
|
-
])
|
|
3761
|
-
], 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"] }]
|
|
3717
|
+
args: [{ selector: 'cauca-menu-expandable-panel', imports: [MatIconModule, TranslatePipe, MenuExpandablePanelItemComponent, NgClass], 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 [class.opened]=\"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 mat-icon:last-child{transition:transform .2s ease-in-out}section mat-icon:last-child.opened{transform:rotate(-90deg)}section.bottom-padding{padding-bottom:10px}div{flex:1}\n"] }]
|
|
3762
3718
|
}], null, { topLeftRadius: [{
|
|
3763
3719
|
type: HostBinding,
|
|
3764
3720
|
args: ['style.border-top-left-radius']
|
|
@@ -3775,7 +3731,7 @@ class MenuExpandablePanelComponent {
|
|
|
3775
3731
|
type: HostBinding,
|
|
3776
3732
|
args: ['class.bottom-border']
|
|
3777
3733
|
}] }); })();
|
|
3778
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelComponent, { className: "MenuExpandablePanelComponent", filePath: "lib/components/layout/menu-expandable-panel/menu-expandable-panel.component.ts", lineNumber:
|
|
3734
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuExpandablePanelComponent, { className: "MenuExpandablePanelComponent", filePath: "lib/components/layout/menu-expandable-panel/menu-expandable-panel.component.ts", lineNumber: 13 }); })();
|
|
3779
3735
|
|
|
3780
3736
|
function SavingConfirmedBoxComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
3781
3737
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -3993,7 +3949,6 @@ class FormErrorModule {
|
|
|
3993
3949
|
|
|
3994
3950
|
function provideCaucaMaterial() {
|
|
3995
3951
|
return [
|
|
3996
|
-
provideAnimations(),
|
|
3997
3952
|
provideNativeDateAdapter(),
|
|
3998
3953
|
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'outline' } },
|
|
3999
3954
|
];
|
|
@@ -4584,17 +4539,17 @@ class MenuItem {
|
|
|
4584
4539
|
}
|
|
4585
4540
|
|
|
4586
4541
|
const _c0 = ["container"];
|
|
4587
|
-
function
|
|
4588
|
-
i0.ɵɵ
|
|
4589
|
-
i0.ɵɵ
|
|
4590
|
-
i0.ɵɵ
|
|
4542
|
+
function CaucaSlideshowComponent_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
4543
|
+
i0.ɵɵdomElementStart(0, "div");
|
|
4544
|
+
i0.ɵɵdomElement(1, "img", 3);
|
|
4545
|
+
i0.ɵɵdomElementEnd();
|
|
4591
4546
|
} if (rf & 2) {
|
|
4592
4547
|
const url_r1 = ctx.$implicit;
|
|
4593
|
-
const
|
|
4548
|
+
const ɵ$index_3_r2 = ctx.$index;
|
|
4594
4549
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
4595
|
-
i0.ɵɵ
|
|
4550
|
+
i0.ɵɵclassProp("active", ɵ$index_3_r2 === ctx_r2.selectedIndex)("entering", ctx_r2.states[ɵ$index_3_r2] === "in")("leaving", ctx_r2.states[ɵ$index_3_r2] === "out");
|
|
4596
4551
|
i0.ɵɵadvance();
|
|
4597
|
-
i0.ɵɵ
|
|
4552
|
+
i0.ɵɵdomProperty("src", url_r1, i0.ɵɵsanitizeUrl);
|
|
4598
4553
|
} }
|
|
4599
4554
|
class CaucaSlideshowComponent {
|
|
4600
4555
|
constructor() {
|
|
@@ -4649,64 +4604,18 @@ class CaucaSlideshowComponent {
|
|
|
4649
4604
|
} if (rf & 2) {
|
|
4650
4605
|
let _t;
|
|
4651
4606
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
4652
|
-
} }, inputs: { height: "height", autoPlay: "autoPlay", images: "images" }, decls:
|
|
4653
|
-
i0.ɵɵ
|
|
4654
|
-
i0.ɵɵ
|
|
4655
|
-
i0.ɵɵ
|
|
4607
|
+
} }, inputs: { height: "height", autoPlay: "autoPlay", images: "images" }, decls: 4, vars: 0, consts: [["container", ""], [1, "slideshow"], [3, "active", "entering", "leaving"], [3, "src"]], template: function CaucaSlideshowComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4608
|
+
i0.ɵɵdomElementStart(0, "div", 1, 0);
|
|
4609
|
+
i0.ɵɵrepeaterCreate(2, CaucaSlideshowComponent_For_3_Template, 2, 7, "div", 2, i0.ɵɵrepeaterTrackByIdentity);
|
|
4610
|
+
i0.ɵɵdomElementEnd();
|
|
4656
4611
|
} if (rf & 2) {
|
|
4657
4612
|
i0.ɵɵadvance(2);
|
|
4658
|
-
i0.ɵɵ
|
|
4659
|
-
} }, dependencies: [CommonModule
|
|
4660
|
-
trigger('slideUpDown', [
|
|
4661
|
-
state('in', style({ transform: 'translateY(0%)' })),
|
|
4662
|
-
state('out', style({ transform: 'translateY(-100%)' })),
|
|
4663
|
-
transition('in => out', [
|
|
4664
|
-
animate('500ms ease-in')
|
|
4665
|
-
]),
|
|
4666
|
-
transition('out => in', [
|
|
4667
|
-
style({ transform: 'translateY(100%)' }),
|
|
4668
|
-
animate('500ms ease-in')
|
|
4669
|
-
]),
|
|
4670
|
-
]),
|
|
4671
|
-
trigger('slideLeftRight', [
|
|
4672
|
-
state('in', style({ transform: 'translateX(0%)' })),
|
|
4673
|
-
state('out', style({ transform: 'translateX(-100%)' })),
|
|
4674
|
-
transition('in => out', [
|
|
4675
|
-
animate('500ms ease-in')
|
|
4676
|
-
]),
|
|
4677
|
-
transition('out => in', [
|
|
4678
|
-
style({ transform: 'translateX(100%)' }),
|
|
4679
|
-
animate('500ms ease-in')
|
|
4680
|
-
]),
|
|
4681
|
-
]),
|
|
4682
|
-
] } }); }
|
|
4613
|
+
i0.ɵɵrepeater(ctx.images);
|
|
4614
|
+
} }, dependencies: [CommonModule], styles: [".slideshow[_ngcontent-%COMP%]{margin:0 auto;position:relative;overflow:hidden}.slideshow[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;transition:transform .5s ease-in,opacity .5s ease-in;transform:translate(100%);opacity:0}.slideshow[_ngcontent-%COMP%] > div.active[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.slideshow[_ngcontent-%COMP%] > div.leaving[_ngcontent-%COMP%]{transform:translate(-100%);opacity:0}.slideshow[_ngcontent-%COMP%] > div.entering[_ngcontent-%COMP%]{transform:translate(0);opacity:1}img[_ngcontent-%COMP%]{max-height:100%;max-width:100%;margin:0 auto;display:block}"] }); }
|
|
4683
4615
|
}
|
|
4684
4616
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaSlideshowComponent, [{
|
|
4685
4617
|
type: Component,
|
|
4686
|
-
args: [{ selector: 'cauca-slideshow', imports: [CommonModule],
|
|
4687
|
-
trigger('slideUpDown', [
|
|
4688
|
-
state('in', style({ transform: 'translateY(0%)' })),
|
|
4689
|
-
state('out', style({ transform: 'translateY(-100%)' })),
|
|
4690
|
-
transition('in => out', [
|
|
4691
|
-
animate('500ms ease-in')
|
|
4692
|
-
]),
|
|
4693
|
-
transition('out => in', [
|
|
4694
|
-
style({ transform: 'translateY(100%)' }),
|
|
4695
|
-
animate('500ms ease-in')
|
|
4696
|
-
]),
|
|
4697
|
-
]),
|
|
4698
|
-
trigger('slideLeftRight', [
|
|
4699
|
-
state('in', style({ transform: 'translateX(0%)' })),
|
|
4700
|
-
state('out', style({ transform: 'translateX(-100%)' })),
|
|
4701
|
-
transition('in => out', [
|
|
4702
|
-
animate('500ms ease-in')
|
|
4703
|
-
]),
|
|
4704
|
-
transition('out => in', [
|
|
4705
|
-
style({ transform: 'translateX(100%)' }),
|
|
4706
|
-
animate('500ms ease-in')
|
|
4707
|
-
]),
|
|
4708
|
-
]),
|
|
4709
|
-
], template: "<div #container class=\"slideshow\">\n <div *ngFor=\"let url of images; let index = index;\" [@slideLeftRight]=\"getState(index)\">\n <img [src]=\"url\" />\n </div>\n</div>", styles: [".slideshow{margin:0 auto;position:relative;overflow:hidden}.slideshow>div{width:100%;height:100%;position:absolute}img{max-height:100%;max-width:100%;margin:0 auto;display:block}\n"] }]
|
|
4618
|
+
args: [{ selector: 'cauca-slideshow', imports: [CommonModule], template: "<div #container class=\"slideshow\">\n @for (url of images; track url; let index = $index) {\n <div [class.active]=\"index === selectedIndex\" [class.entering]=\"states[index] === 'in'\" [class.leaving]=\"states[index] === 'out'\">\n <img [src]=\"url\" />\n </div>\n }\n</div>", styles: [".slideshow{margin:0 auto;position:relative;overflow:hidden}.slideshow>div{width:100%;height:100%;position:absolute;transition:transform .5s ease-in,opacity .5s ease-in;transform:translate(100%);opacity:0}.slideshow>div.active{transform:translate(0);opacity:1}.slideshow>div.leaving{transform:translate(-100%);opacity:0}.slideshow>div.entering{transform:translate(0);opacity:1}img{max-height:100%;max-width:100%;margin:0 auto;display:block}\n"] }]
|
|
4710
4619
|
}], null, { container: [{
|
|
4711
4620
|
type: ViewChild,
|
|
4712
4621
|
args: ['container', { static: true }]
|
|
@@ -4717,7 +4626,7 @@ class CaucaSlideshowComponent {
|
|
|
4717
4626
|
}], images: [{
|
|
4718
4627
|
type: Input
|
|
4719
4628
|
}] }); })();
|
|
4720
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSlideshowComponent, { className: "CaucaSlideshowComponent", filePath: "lib/components/deprecated-components/cauca-slideshow/cauca-slideshow.component.ts", lineNumber:
|
|
4629
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaSlideshowComponent, { className: "CaucaSlideshowComponent", filePath: "lib/components/deprecated-components/cauca-slideshow/cauca-slideshow.component.ts", lineNumber: 10 }); })();
|
|
4721
4630
|
|
|
4722
4631
|
/*
|
|
4723
4632
|
* Public API Surface of cauca-material
|