-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunk-BFADVANU.js
More file actions
126 lines (124 loc) · 5.07 KB
/
chunk-BFADVANU.js
File metadata and controls
126 lines (124 loc) · 5.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import {
animate,
state,
style,
transition,
trigger
} from "./chunk-Q2QHJBJV.js";
import {
Component,
__name,
__publicField,
setClassMetadata,
ɵsetClassDebugInfo,
ɵɵadvance,
ɵɵdefineComponent,
ɵɵdomElementEnd,
ɵɵdomElementStart,
ɵɵdomListener,
ɵɵproperty,
ɵɵtext,
ɵɵtextInterpolate1
} from "./chunk-2CX5BJWG.js";
// src/content/examples/animations/src/app/open-close.component.4.ts
var _OpenCloseChildComponent = class _OpenCloseChildComponent {
isDisabled = false;
isOpen = false;
// #enddocregion toggle-animation
toggleAnimations() {
this.isDisabled = !this.isDisabled;
}
toggle() {
this.isOpen = !this.isOpen;
}
};
__name(_OpenCloseChildComponent, "OpenCloseChildComponent");
__publicField(_OpenCloseChildComponent, "\u0275fac", /* @__PURE__ */ __name(function OpenCloseChildComponent_Factory(__ngFactoryType__) {
return new (__ngFactoryType__ || _OpenCloseChildComponent)();
}, "OpenCloseChildComponent_Factory"));
__publicField(_OpenCloseChildComponent, "\u0275cmp", /* @__PURE__ */ \u0275\u0275defineComponent({ type: _OpenCloseChildComponent, selectors: [["app-open-close-toggle"]], decls: 9, vars: 3, consts: [["type", "button", 3, "click"], [1, "open-close-container"]], template: /* @__PURE__ */ __name(function OpenCloseChildComponent_Template(rf, ctx) {
if (rf & 1) {
\u0275\u0275domElementStart(0, "nav")(1, "button", 0);
\u0275\u0275domListener("click", /* @__PURE__ */ __name(function OpenCloseChildComponent_Template_button_click_1_listener() {
return ctx.toggleAnimations();
}, "OpenCloseChildComponent_Template_button_click_1_listener"));
\u0275\u0275text(2, "Toggle Animations");
\u0275\u0275domElementEnd();
\u0275\u0275domElementStart(3, "button", 0);
\u0275\u0275domListener("click", /* @__PURE__ */ __name(function OpenCloseChildComponent_Template_button_click_3_listener() {
return ctx.toggle();
}, "OpenCloseChildComponent_Template_button_click_3_listener"));
\u0275\u0275text(4, "Toggle Open/Closed");
\u0275\u0275domElementEnd()();
\u0275\u0275domElementStart(5, "div")(6, "div", 1)(7, "p");
\u0275\u0275text(8);
\u0275\u0275domElementEnd()()();
}
if (rf & 2) {
\u0275\u0275advance(5);
\u0275\u0275property("@.disabled", ctx.isDisabled);
\u0275\u0275advance();
\u0275\u0275property("@childAnimation", ctx.isOpen ? "open" : "closed");
\u0275\u0275advance(2);
\u0275\u0275textInterpolate1("The box is now ", ctx.isOpen ? "Open" : "Closed", "!");
}
}, "OpenCloseChildComponent_Template"), styles: ["\n\n[_nghost-%COMP%] {\n display: block;\n margin-top: 1rem;\n}\n.open-close-container[_ngcontent-%COMP%] {\n border: 1px solid #dddddd;\n margin-top: 1em;\n padding: 20px 20px 0px 20px;\n color: #000000;\n font-weight: bold;\n font-size: 20px;\n}\n/*# sourceMappingURL=open-close.component.css.map */"], data: { animation: [
trigger("childAnimation", [
// ...
// #enddocregion toggle-animation
state("open", style({
width: "250px",
opacity: 1,
backgroundColor: "yellow"
})),
state("closed", style({
width: "100px",
opacity: 0.8,
backgroundColor: "blue"
})),
transition("* => *", [animate("1s")])
// #docregion toggle-animation
])
] } }));
var OpenCloseChildComponent = _OpenCloseChildComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(OpenCloseChildComponent, [{
type: Component,
args: [{ selector: "app-open-close-toggle", animations: [
trigger("childAnimation", [
// ...
// #enddocregion toggle-animation
state("open", style({
width: "250px",
opacity: 1,
backgroundColor: "yellow"
})),
state("closed", style({
width: "100px",
opacity: 0.8,
backgroundColor: "blue"
})),
transition("* => *", [animate("1s")])
// #docregion toggle-animation
])
], template: `<nav>
<button type="button" (click)="toggleAnimations()">Toggle Animations</button>
<button type="button" (click)="toggle()">Toggle Open/Closed</button>
</nav>
<!-- #docregion toggle-animation -->
<div [@.disabled]="isDisabled">
<div [@childAnimation]="isOpen ? 'open' : 'closed'"
class="open-close-container">
<p>The box is now {{ isOpen ? 'Open' : 'Closed' }}!</p>
</div>
</div>
<!-- #enddocregion toggle-animation -->`, styles: ["/* src/content/examples/animations/src/app/open-close.component.css */\n:host {\n display: block;\n margin-top: 1rem;\n}\n.open-close-container {\n border: 1px solid #dddddd;\n margin-top: 1em;\n padding: 20px 20px 0px 20px;\n color: #000000;\n font-weight: bold;\n font-size: 20px;\n}\n/*# sourceMappingURL=open-close.component.css.map */\n"] }]
}], null, null);
})();
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(OpenCloseChildComponent, { className: "OpenCloseChildComponent", filePath: "src/content/examples/animations/src/app/open-close.component.4.ts", lineNumber: 38 });
})();
export {
OpenCloseChildComponent
};
//# sourceMappingURL=chunk-BFADVANU.js.map