-
Notifications
You must be signed in to change notification settings - Fork 668
Expand file tree
/
Copy pathhide.ts
More file actions
148 lines (120 loc) · 3.27 KB
/
hide.ts
File metadata and controls
148 lines (120 loc) · 3.27 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
141
142
143
144
145
146
147
148
/* tslint:disable:max-line-length */
import {
Component,
OnInit,
OnDestroy,
NgModule,
Host,
SkipSelf,
Input
} from '@angular/core';
import type { AnimationConfig, AnimationState, AnimationType } from 'devextreme/common/core/animation';
import type { Direction } from 'devextreme/common';
import {
DxIntegrationModule,
NestedOptionHost,
} from 'devextreme-angular/core';
import { NestedOption } from 'devextreme-angular/core';
@Component({
selector: 'dxo-autocomplete-hide',
template: '',
styles: [''],
imports: [ DxIntegrationModule ],
providers: [NestedOptionHost]
})
export class DxoAutocompleteHideComponent extends NestedOption implements OnDestroy, OnInit {
@Input()
get complete(): (($element: any, config: AnimationConfig) => void) {
return this._getOption('complete');
}
set complete(value: (($element: any, config: AnimationConfig) => void)) {
this._setOption('complete', value);
}
@Input()
get delay(): number {
return this._getOption('delay');
}
set delay(value: number) {
this._setOption('delay', value);
}
@Input()
get direction(): Direction | undefined {
return this._getOption('direction');
}
set direction(value: Direction | undefined) {
this._setOption('direction', value);
}
@Input()
get duration(): number {
return this._getOption('duration');
}
set duration(value: number) {
this._setOption('duration', value);
}
@Input()
get easing(): string {
return this._getOption('easing');
}
set easing(value: string) {
this._setOption('easing', value);
}
@Input()
get from(): AnimationState {
return this._getOption('from');
}
set from(value: AnimationState) {
this._setOption('from', value);
}
@Input()
get staggerDelay(): number | undefined {
return this._getOption('staggerDelay');
}
set staggerDelay(value: number | undefined) {
this._setOption('staggerDelay', value);
}
@Input()
get start(): (($element: any, config: AnimationConfig) => void) {
return this._getOption('start');
}
set start(value: (($element: any, config: AnimationConfig) => void)) {
this._setOption('start', value);
}
@Input()
get to(): AnimationState {
return this._getOption('to');
}
set to(value: AnimationState) {
this._setOption('to', value);
}
@Input()
get type(): AnimationType {
return this._getOption('type');
}
set type(value: AnimationType) {
this._setOption('type', value);
}
protected get _optionPath() {
return 'hide';
}
constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost,
@Host() optionHost: NestedOptionHost) {
super();
parentOptionHost.setNestedOption(this);
optionHost.setHost(this, this._fullOptionPath.bind(this));
}
ngOnInit() {
this._addRecreatedComponent();
}
ngOnDestroy() {
this._addRemovedOption(this._getOptionPath());
}
}
@NgModule({
imports: [
DxoAutocompleteHideComponent
],
exports: [
DxoAutocompleteHideComponent
],
})
export class DxoAutocompleteHideModule { }