-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunk-7V3VQAIH.js
More file actions
140 lines (137 loc) · 5.48 KB
/
chunk-7V3VQAIH.js
File metadata and controls
140 lines (137 loc) · 5.48 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
import {
animate,
keyframes,
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/status-slider.component.ts
var _StatusSliderComponent = class _StatusSliderComponent {
status = "inactive";
toggle() {
if (this.status === "active") {
this.status = "inactive";
} else {
this.status = "active";
}
}
};
__name(_StatusSliderComponent, "StatusSliderComponent");
__publicField(_StatusSliderComponent, "\u0275fac", /* @__PURE__ */ __name(function StatusSliderComponent_Factory(__ngFactoryType__) {
return new (__ngFactoryType__ || _StatusSliderComponent)();
}, "StatusSliderComponent_Factory"));
__publicField(_StatusSliderComponent, "\u0275cmp", /* @__PURE__ */ \u0275\u0275defineComponent({ type: _StatusSliderComponent, selectors: [["app-status-slider"]], decls: 5, vars: 2, consts: [["type", "button", 3, "click"], [1, "box"]], template: /* @__PURE__ */ __name(function StatusSliderComponent_Template(rf, ctx) {
if (rf & 1) {
\u0275\u0275domElementStart(0, "nav")(1, "button", 0);
\u0275\u0275domListener("click", /* @__PURE__ */ __name(function StatusSliderComponent_Template_button_click_1_listener() {
return ctx.toggle();
}, "StatusSliderComponent_Template_button_click_1_listener"));
\u0275\u0275text(2, "Toggle Status");
\u0275\u0275domElementEnd()();
\u0275\u0275domElementStart(3, "div", 1);
\u0275\u0275text(4);
\u0275\u0275domElementEnd();
}
if (rf & 2) {
\u0275\u0275advance(3);
\u0275\u0275property("@slideStatus", ctx.status);
\u0275\u0275advance();
\u0275\u0275textInterpolate1(" ", ctx.status == "active" ? "Active" : "Inactive", "\n");
}
}, "StatusSliderComponent_Template"), styles: ["\n\n[_nghost-%COMP%] {\n display: block;\n}\n.box[_ngcontent-%COMP%] {\n width: 300px;\n border: 5px solid black;\n display: block;\n line-height: 300px;\n text-align: center;\n font-size: 50px;\n color: white;\n}\n/*# sourceMappingURL=status-slider.component.css.map */"], data: { animation: [
trigger("slideStatus", [
state("inactive", style({ backgroundColor: "blue" })),
state("active", style({ backgroundColor: "#754600" })),
// #docregion keyframesWithOffsets
transition("* => active", [
animate("2s", keyframes([
style({ backgroundColor: "blue", offset: 0 }),
style({ backgroundColor: "red", offset: 0.8 }),
style({ backgroundColor: "#754600", offset: 1 })
]))
]),
transition("* => inactive", [
animate("2s", keyframes([
style({ backgroundColor: "#754600", offset: 0 }),
style({ backgroundColor: "red", offset: 0.2 }),
style({ backgroundColor: "blue", offset: 1 })
]))
]),
// #enddocregion keyframesWithOffsets
// #docregion keyframes
transition("* => active", [
animate("2s", keyframes([
style({ backgroundColor: "blue" }),
style({ backgroundColor: "red" }),
style({ backgroundColor: "orange" })
]))
// #enddocregion keyframes
])
])
] } }));
var StatusSliderComponent = _StatusSliderComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(StatusSliderComponent, [{
type: Component,
args: [{ selector: "app-status-slider", animations: [
trigger("slideStatus", [
state("inactive", style({ backgroundColor: "blue" })),
state("active", style({ backgroundColor: "#754600" })),
// #docregion keyframesWithOffsets
transition("* => active", [
animate("2s", keyframes([
style({ backgroundColor: "blue", offset: 0 }),
style({ backgroundColor: "red", offset: 0.8 }),
style({ backgroundColor: "#754600", offset: 1 })
]))
]),
transition("* => inactive", [
animate("2s", keyframes([
style({ backgroundColor: "#754600", offset: 0 }),
style({ backgroundColor: "red", offset: 0.2 }),
style({ backgroundColor: "blue", offset: 1 })
]))
]),
// #enddocregion keyframesWithOffsets
// #docregion keyframes
transition("* => active", [
animate("2s", keyframes([
style({ backgroundColor: "blue" }),
style({ backgroundColor: "red" }),
style({ backgroundColor: "orange" })
]))
// #enddocregion keyframes
])
])
], template: `<nav>
<button type="button" (click)="toggle()">Toggle Status</button>
</nav>
<div [@slideStatus]="status" class="box">
{{ status == 'active' ? 'Active' : 'Inactive' }}
</div>
`, styles: ["/* src/content/examples/animations/src/app/status-slider.component.css */\n:host {\n display: block;\n}\n.box {\n width: 300px;\n border: 5px solid black;\n display: block;\n line-height: 300px;\n text-align: center;\n font-size: 50px;\n color: white;\n}\n/*# sourceMappingURL=status-slider.component.css.map */\n"] }]
}], null, null);
})();
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(StatusSliderComponent, { className: "StatusSliderComponent", filePath: "src/content/examples/animations/src/app/status-slider.component.ts", lineNumber: 51 });
})();
export {
StatusSliderComponent
};
//# sourceMappingURL=chunk-7V3VQAIH.js.map