@tilde-nlp/ngx-common 6.1.64 → 6.1.65
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.
|
@@ -8,26 +8,44 @@ import * as i3 from "@ngbracket/ngx-layout/flex";
|
|
|
8
8
|
import * as i4 from "@ngbracket/ngx-layout/extended";
|
|
9
9
|
import * as i5 from "@ngx-translate/core";
|
|
10
10
|
const _c0 = ["*"];
|
|
11
|
+
function OpenCloseButtonComponent_button_0_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
13
|
+
i0.ɵɵtext(1);
|
|
14
|
+
i0.ɵɵelementEnd();
|
|
15
|
+
} if (rf & 2) {
|
|
16
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
17
|
+
i0.ɵɵadvance();
|
|
18
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.icons.open, " ");
|
|
19
|
+
} }
|
|
20
|
+
function OpenCloseButtonComponent_button_0_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
22
|
+
i0.ɵɵtext(1);
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
} if (rf & 2) {
|
|
25
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
26
|
+
i0.ɵɵadvance();
|
|
27
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.icons.close, " ");
|
|
28
|
+
} }
|
|
11
29
|
function OpenCloseButtonComponent_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
-
i0.ɵɵelementStart(0, "button",
|
|
30
|
+
i0.ɵɵelementStart(0, "button", 3);
|
|
13
31
|
i0.ɵɵpipe(1, "translate");
|
|
14
|
-
i0.ɵɵelementStart(2, "span",
|
|
32
|
+
i0.ɵɵelementStart(2, "span", 4)(3, "span", 5);
|
|
15
33
|
i0.ɵɵprojection(4);
|
|
16
34
|
i0.ɵɵelementEnd();
|
|
17
|
-
i0.ɵɵ
|
|
18
|
-
i0.ɵɵ
|
|
19
|
-
i0.ɵɵelementEnd()()();
|
|
35
|
+
i0.ɵɵtemplate(5, OpenCloseButtonComponent_button_0_span_5_Template, 2, 1, "span", 6)(6, OpenCloseButtonComponent_button_0_ng_template_6_Template, 2, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
36
|
+
i0.ɵɵelementEnd()();
|
|
20
37
|
} if (rf & 2) {
|
|
38
|
+
const closed_r2 = i0.ɵɵreference(7);
|
|
21
39
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
22
40
|
i0.ɵɵproperty("disabled", ctx_r0.disabled)("disableRipple", true)("ngClass.lt-md", "open-close-button-tablet");
|
|
23
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1,
|
|
24
|
-
i0.ɵɵadvance(
|
|
25
|
-
i0.ɵɵ
|
|
41
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1, 6, ctx_r0.ariaLabelCode));
|
|
42
|
+
i0.ɵɵadvance(5);
|
|
43
|
+
i0.ɵɵproperty("ngIf", ctx_r0.isOpened)("ngIfElse", closed_r2);
|
|
26
44
|
} }
|
|
27
45
|
function OpenCloseButtonComponent_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
-
i0.ɵɵelementStart(0, "button",
|
|
46
|
+
i0.ɵɵelementStart(0, "button", 8);
|
|
29
47
|
i0.ɵɵpipe(1, "translate");
|
|
30
|
-
i0.ɵɵelementStart(2, "span",
|
|
48
|
+
i0.ɵɵelementStart(2, "span", 9);
|
|
31
49
|
i0.ɵɵtext(3);
|
|
32
50
|
i0.ɵɵelementEnd()();
|
|
33
51
|
} if (rf & 2) {
|
|
@@ -47,7 +65,7 @@ export class OpenCloseButtonComponent {
|
|
|
47
65
|
get isOpened() { return this._isOpened; }
|
|
48
66
|
constructor(openCloseBtnIcons) {
|
|
49
67
|
this.openCloseBtnIcons = openCloseBtnIcons;
|
|
50
|
-
this.defaultIcons = { open: '
|
|
68
|
+
this.defaultIcons = { open: 'keyboard_arrow_down', close: 'keyboard_arrow_up' };
|
|
51
69
|
}
|
|
52
70
|
ngOnInit() {
|
|
53
71
|
this.icons = this.openCloseBtnIcons ?? this.defaultIcons;
|
|
@@ -61,18 +79,18 @@ export class OpenCloseButtonComponent {
|
|
|
61
79
|
} if (rf & 2) {
|
|
62
80
|
let _t;
|
|
63
81
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.button = _t.first);
|
|
64
|
-
} }, inputs: { disableFocusOnAction: "disableFocusOnAction", disabled: "disabled", isIcon: "isIcon", ariaLabelCode: "ariaLabelCode", isOpened: "isOpened" }, ngContentSelectors: _c0, decls: 2, vars: 2, consts: [["mat-button", "", 3, "disabled", "disableRipple", "ngClass.lt-md", 4, "ngIf"], ["mat-icon-button", "", "fxLayoutAlign", "center center", 3, "disabled", 4, "ngIf"], ["mat-button", "", 3, "disabled", "disableRipple", "ngClass.lt-md"], ["fxLayout", "row", "fxLayoutAlign", "center center"], ["fxLayoutAlign", "center center", 1, "open-close-button-content", "text-l"], [1, "material-icons"], ["mat-icon-button", "", "fxLayoutAlign", "center center", 3, "disabled"]], template: function OpenCloseButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
+
} }, inputs: { disableFocusOnAction: "disableFocusOnAction", disabled: "disabled", isIcon: "isIcon", ariaLabelCode: "ariaLabelCode", isOpened: "isOpened" }, ngContentSelectors: _c0, decls: 2, vars: 2, consts: [["closed", ""], ["mat-button", "", 3, "disabled", "disableRipple", "ngClass.lt-md", 4, "ngIf"], ["mat-icon-button", "", "fxLayoutAlign", "center center", 3, "disabled", 4, "ngIf"], ["mat-button", "", 3, "disabled", "disableRipple", "ngClass.lt-md"], ["fxLayout", "row", "fxLayoutAlign", "center center"], ["fxLayoutAlign", "center center", 1, "open-close-button-content", "text-l"], ["class", "material-icons spin", 4, "ngIf", "ngIfElse"], [1, "material-icons", "spin"], ["mat-icon-button", "", "fxLayoutAlign", "center center", 3, "disabled"], [1, "material-icons"]], template: function OpenCloseButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
65
83
|
i0.ɵɵprojectionDef();
|
|
66
|
-
i0.ɵɵtemplate(0, OpenCloseButtonComponent_button_0_Template,
|
|
84
|
+
i0.ɵɵtemplate(0, OpenCloseButtonComponent_button_0_Template, 8, 8, "button", 1)(1, OpenCloseButtonComponent_button_1_Template, 4, 5, "button", 2);
|
|
67
85
|
} if (rf & 2) {
|
|
68
86
|
i0.ɵɵproperty("ngIf", !ctx.isIcon);
|
|
69
87
|
i0.ɵɵadvance();
|
|
70
88
|
i0.ɵɵproperty("ngIf", ctx.isIcon);
|
|
71
|
-
} }, dependencies: [i1.NgIf, i2.MatButton, i2.MatIconButton, i3.DefaultLayoutDirective, i3.DefaultLayoutAlignDirective, i4.DefaultClassDirective, i5.TranslatePipe],
|
|
89
|
+
} }, dependencies: [i1.NgIf, i2.MatButton, i2.MatIconButton, i3.DefaultLayoutDirective, i3.DefaultLayoutAlignDirective, i4.DefaultClassDirective, i5.TranslatePipe], styles: [".spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spinArrow .3s forwards}@keyframes _ngcontent-%COMP%_spinArrow{to{transform:rotate(180deg)}}"] }); }
|
|
72
90
|
}
|
|
73
91
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OpenCloseButtonComponent, [{
|
|
74
92
|
type: Component,
|
|
75
|
-
args: [{ selector: 'lib-open-close-button', template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\">\r\n <span class=\"open-close-button-content text-l\" fxLayoutAlign=\"center center\">\r\n <ng-content></ng-content>\r\n </span>\r\n\r\n <span class=\"material-icons\">\r\n {{
|
|
93
|
+
args: [{ selector: 'lib-open-close-button', template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\">\r\n <span class=\"open-close-button-content text-l\" fxLayoutAlign=\"center center\">\r\n <ng-content></ng-content>\r\n </span>\r\n\r\n <span *ngIf=\"isOpened; else closed\" class=\"material-icons spin\">\r\n {{ icons.open }}\r\n </span>\r\n\r\n <ng-template #closed>\r\n <span class=\"material-icons spin\">\r\n {{ icons.close }}\r\n </span>\r\n </ng-template>\r\n </span>\r\n</button>\r\n<button\r\n mat-icon-button\r\n fxLayoutAlign=\"center center\"\r\n *ngIf=\"isIcon\"\r\n [disabled]=\"disabled\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span class=\"material-icons\">\r\n {{ isOpened ? icons.open : icons.close }}\r\n </span>\r\n</button>\r\n", styles: [".spin{animation:spinArrow .3s forwards}@keyframes spinArrow{to{transform:rotate(180deg)}}\n"] }]
|
|
76
94
|
}], () => [{ type: undefined, decorators: [{
|
|
77
95
|
type: Optional
|
|
78
96
|
}, {
|
|
@@ -92,5 +110,5 @@ export class OpenCloseButtonComponent {
|
|
|
92
110
|
type: ViewChild,
|
|
93
111
|
args: [MatButton]
|
|
94
112
|
}] }); })();
|
|
95
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(OpenCloseButtonComponent, { className: "OpenCloseButtonComponent", filePath: "lib\\open-close-button\\open-close-button.component.ts", lineNumber:
|
|
96
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
113
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(OpenCloseButtonComponent, { className: "OpenCloseButtonComponent", filePath: "lib\\open-close-button\\open-close-button.component.ts", lineNumber: 11 }); })();
|
|
114
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3Blbi1jbG9zZS1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWNvbW1vbi9zcmMvbGliL29wZW4tY2xvc2UtYnV0dG9uL29wZW4tY2xvc2UtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1jb21tb24vc3JjL2xpYi9vcGVuLWNsb3NlLWJ1dHRvbi9vcGVuLWNsb3NlLWJ1dHRvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQVUsUUFBUSxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0RixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFckQsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7Ozs7Ozs7OztJQ1M1RCwrQkFBZ0U7SUFDOUQsWUFDRjtJQUFBLGlCQUFPOzs7SUFETCxjQUNGO0lBREUsa0RBQ0Y7OztJQUdFLCtCQUFrQztJQUNoQyxZQUNGO0lBQUEsaUJBQU87OztJQURMLGNBQ0Y7SUFERSxtREFDRjs7O0lBbkJOLGlDQU1nRDs7SUFFNUMsQUFERiwrQkFBbUQsY0FDNEI7SUFDM0Usa0JBQXlCO0lBQzNCLGlCQUFPO0lBTVAsQUFKQSxvRkFBZ0Usc0hBSTNDO0lBTXpCLEFBREUsaUJBQU8sRUFDQTs7OztJQWpCUCxBQURBLEFBREEsMENBQXFCLHVCQUNDLDZDQUNzQjs7SUFPb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BmeExheW91dEFsaWduPVwiY2VudGVyIGNlbnRlclwiXHJcbiAgKm5nSWY9XCJpc0ljb25cIlxyXG4gIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiXHJcbiAgW2F0dHIuYXJpYS1sYWJlbF09XCJhcmlhTGFiZWxDb2RlIHwgdHJhbnNsYXRlXCI+XHJcbiAgPHNwYW4gY2xhc3M9XCJtYXRlcmlhbC1pY29uc1wiPlxyXG4gICAge3sgaXNPcGVuZWQgPyBpY29ucy5vcGVuIDogaWNvbnMuY2xvc2UgfX1cclxuICA8L3NwYW4+XHJcbjwvYnV0dG9uPlxyXG4iXX0=
|
|
@@ -4679,26 +4679,44 @@ class ConfirmationService {
|
|
|
4679
4679
|
const OPEN_CLOSE_BTN_ICONS_TOKEN = 'OPEN_CLOSE_BTN_ICONS_TOKEN';
|
|
4680
4680
|
|
|
4681
4681
|
const _c0$7 = ["*"];
|
|
4682
|
+
function OpenCloseButtonComponent_button_0_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
4683
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
4684
|
+
i0.ɵɵtext(1);
|
|
4685
|
+
i0.ɵɵelementEnd();
|
|
4686
|
+
} if (rf & 2) {
|
|
4687
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
4688
|
+
i0.ɵɵadvance();
|
|
4689
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.icons.open, " ");
|
|
4690
|
+
} }
|
|
4691
|
+
function OpenCloseButtonComponent_button_0_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
4692
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
4693
|
+
i0.ɵɵtext(1);
|
|
4694
|
+
i0.ɵɵelementEnd();
|
|
4695
|
+
} if (rf & 2) {
|
|
4696
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
4697
|
+
i0.ɵɵadvance();
|
|
4698
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.icons.close, " ");
|
|
4699
|
+
} }
|
|
4682
4700
|
function OpenCloseButtonComponent_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
4683
|
-
i0.ɵɵelementStart(0, "button",
|
|
4701
|
+
i0.ɵɵelementStart(0, "button", 3);
|
|
4684
4702
|
i0.ɵɵpipe(1, "translate");
|
|
4685
|
-
i0.ɵɵelementStart(2, "span",
|
|
4703
|
+
i0.ɵɵelementStart(2, "span", 4)(3, "span", 5);
|
|
4686
4704
|
i0.ɵɵprojection(4);
|
|
4687
4705
|
i0.ɵɵelementEnd();
|
|
4688
|
-
i0.ɵɵ
|
|
4689
|
-
i0.ɵɵ
|
|
4690
|
-
i0.ɵɵelementEnd()()();
|
|
4706
|
+
i0.ɵɵtemplate(5, OpenCloseButtonComponent_button_0_span_5_Template, 2, 1, "span", 6)(6, OpenCloseButtonComponent_button_0_ng_template_6_Template, 2, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
4707
|
+
i0.ɵɵelementEnd()();
|
|
4691
4708
|
} if (rf & 2) {
|
|
4709
|
+
const closed_r2 = i0.ɵɵreference(7);
|
|
4692
4710
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
4693
4711
|
i0.ɵɵproperty("disabled", ctx_r0.disabled)("disableRipple", true)("ngClass.lt-md", "open-close-button-tablet");
|
|
4694
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1,
|
|
4695
|
-
i0.ɵɵadvance(
|
|
4696
|
-
i0.ɵɵ
|
|
4712
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1, 6, ctx_r0.ariaLabelCode));
|
|
4713
|
+
i0.ɵɵadvance(5);
|
|
4714
|
+
i0.ɵɵproperty("ngIf", ctx_r0.isOpened)("ngIfElse", closed_r2);
|
|
4697
4715
|
} }
|
|
4698
4716
|
function OpenCloseButtonComponent_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
4699
|
-
i0.ɵɵelementStart(0, "button",
|
|
4717
|
+
i0.ɵɵelementStart(0, "button", 8);
|
|
4700
4718
|
i0.ɵɵpipe(1, "translate");
|
|
4701
|
-
i0.ɵɵelementStart(2, "span",
|
|
4719
|
+
i0.ɵɵelementStart(2, "span", 9);
|
|
4702
4720
|
i0.ɵɵtext(3);
|
|
4703
4721
|
i0.ɵɵelementEnd()();
|
|
4704
4722
|
} if (rf & 2) {
|
|
@@ -4718,7 +4736,7 @@ class OpenCloseButtonComponent {
|
|
|
4718
4736
|
get isOpened() { return this._isOpened; }
|
|
4719
4737
|
constructor(openCloseBtnIcons) {
|
|
4720
4738
|
this.openCloseBtnIcons = openCloseBtnIcons;
|
|
4721
|
-
this.defaultIcons = { open: '
|
|
4739
|
+
this.defaultIcons = { open: 'keyboard_arrow_down', close: 'keyboard_arrow_up' };
|
|
4722
4740
|
}
|
|
4723
4741
|
ngOnInit() {
|
|
4724
4742
|
this.icons = this.openCloseBtnIcons ?? this.defaultIcons;
|
|
@@ -4732,18 +4750,18 @@ class OpenCloseButtonComponent {
|
|
|
4732
4750
|
} if (rf & 2) {
|
|
4733
4751
|
let _t;
|
|
4734
4752
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.button = _t.first);
|
|
4735
|
-
} }, inputs: { disableFocusOnAction: "disableFocusOnAction", disabled: "disabled", isIcon: "isIcon", ariaLabelCode: "ariaLabelCode", isOpened: "isOpened" }, ngContentSelectors: _c0$7, decls: 2, vars: 2, consts: [["mat-button", "", 3, "disabled", "disableRipple", "ngClass.lt-md", 4, "ngIf"], ["mat-icon-button", "", "fxLayoutAlign", "center center", 3, "disabled", 4, "ngIf"], ["mat-button", "", 3, "disabled", "disableRipple", "ngClass.lt-md"], ["fxLayout", "row", "fxLayoutAlign", "center center"], ["fxLayoutAlign", "center center", 1, "open-close-button-content", "text-l"], [1, "material-icons"], ["mat-icon-button", "", "fxLayoutAlign", "center center", 3, "disabled"]], template: function OpenCloseButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4753
|
+
} }, inputs: { disableFocusOnAction: "disableFocusOnAction", disabled: "disabled", isIcon: "isIcon", ariaLabelCode: "ariaLabelCode", isOpened: "isOpened" }, ngContentSelectors: _c0$7, decls: 2, vars: 2, consts: [["closed", ""], ["mat-button", "", 3, "disabled", "disableRipple", "ngClass.lt-md", 4, "ngIf"], ["mat-icon-button", "", "fxLayoutAlign", "center center", 3, "disabled", 4, "ngIf"], ["mat-button", "", 3, "disabled", "disableRipple", "ngClass.lt-md"], ["fxLayout", "row", "fxLayoutAlign", "center center"], ["fxLayoutAlign", "center center", 1, "open-close-button-content", "text-l"], ["class", "material-icons spin", 4, "ngIf", "ngIfElse"], [1, "material-icons", "spin"], ["mat-icon-button", "", "fxLayoutAlign", "center center", 3, "disabled"], [1, "material-icons"]], template: function OpenCloseButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4736
4754
|
i0.ɵɵprojectionDef();
|
|
4737
|
-
i0.ɵɵtemplate(0, OpenCloseButtonComponent_button_0_Template,
|
|
4755
|
+
i0.ɵɵtemplate(0, OpenCloseButtonComponent_button_0_Template, 8, 8, "button", 1)(1, OpenCloseButtonComponent_button_1_Template, 4, 5, "button", 2);
|
|
4738
4756
|
} if (rf & 2) {
|
|
4739
4757
|
i0.ɵɵproperty("ngIf", !ctx.isIcon);
|
|
4740
4758
|
i0.ɵɵadvance();
|
|
4741
4759
|
i0.ɵɵproperty("ngIf", ctx.isIcon);
|
|
4742
|
-
} }, dependencies: [i1$2.NgIf, i2$1.MatButton, i2$1.MatIconButton, i2$3.DefaultLayoutDirective, i2$3.DefaultLayoutAlignDirective, i3.DefaultClassDirective, i1$1.TranslatePipe],
|
|
4760
|
+
} }, dependencies: [i1$2.NgIf, i2$1.MatButton, i2$1.MatIconButton, i2$3.DefaultLayoutDirective, i2$3.DefaultLayoutAlignDirective, i3.DefaultClassDirective, i1$1.TranslatePipe], styles: [".spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spinArrow .3s forwards}@keyframes _ngcontent-%COMP%_spinArrow{to{transform:rotate(180deg)}}"] }); }
|
|
4743
4761
|
}
|
|
4744
4762
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OpenCloseButtonComponent, [{
|
|
4745
4763
|
type: Component,
|
|
4746
|
-
args: [{ selector: 'lib-open-close-button', template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\">\r\n <span class=\"open-close-button-content text-l\" fxLayoutAlign=\"center center\">\r\n <ng-content></ng-content>\r\n </span>\r\n\r\n <span class=\"material-icons\">\r\n {{
|
|
4764
|
+
args: [{ selector: 'lib-open-close-button', template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\">\r\n <span class=\"open-close-button-content text-l\" fxLayoutAlign=\"center center\">\r\n <ng-content></ng-content>\r\n </span>\r\n\r\n <span *ngIf=\"isOpened; else closed\" class=\"material-icons spin\">\r\n {{ icons.open }}\r\n </span>\r\n\r\n <ng-template #closed>\r\n <span class=\"material-icons spin\">\r\n {{ icons.close }}\r\n </span>\r\n </ng-template>\r\n </span>\r\n</button>\r\n<button\r\n mat-icon-button\r\n fxLayoutAlign=\"center center\"\r\n *ngIf=\"isIcon\"\r\n [disabled]=\"disabled\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span class=\"material-icons\">\r\n {{ isOpened ? icons.open : icons.close }}\r\n </span>\r\n</button>\r\n", styles: [".spin{animation:spinArrow .3s forwards}@keyframes spinArrow{to{transform:rotate(180deg)}}\n"] }]
|
|
4747
4765
|
}], () => [{ type: undefined, decorators: [{
|
|
4748
4766
|
type: Optional
|
|
4749
4767
|
}, {
|
|
@@ -4763,7 +4781,7 @@ class OpenCloseButtonComponent {
|
|
|
4763
4781
|
type: ViewChild,
|
|
4764
4782
|
args: [MatButton]
|
|
4765
4783
|
}] }); })();
|
|
4766
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(OpenCloseButtonComponent, { className: "OpenCloseButtonComponent", filePath: "lib\\open-close-button\\open-close-button.component.ts", lineNumber:
|
|
4784
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(OpenCloseButtonComponent, { className: "OpenCloseButtonComponent", filePath: "lib\\open-close-button\\open-close-button.component.ts", lineNumber: 11 }); })();
|
|
4767
4785
|
|
|
4768
4786
|
class OpenCloseButtonModule {
|
|
4769
4787
|
static { this.ɵfac = function OpenCloseButtonModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || OpenCloseButtonModule)(); }; }
|