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
|
import { storiesOf } from '@storybook/angular';
import { TreeModule } from 'angular-tree-component';
import { MatButtonModule, MatIconModule } from '@angular/material';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { TargetComponent } from '../app/rule-engine/target/target.component';
storiesOf('Target', module).add('target component', () => ({
component: TargetComponent,
moduleMetadata: {
imports: [
TreeModule,
MatButtonModule,
MatIconModule,
BrowserAnimationsModule
]
},
props: {
nodes: [
{
name: 'commonEventHeader',
children: [
{
name: 'domain',
children: null,
isRequired: true,
requiredChildren: null,
id: 'event.commonEventHeader.domain'
},
{
name: 'eventId',
children: null,
isRequired: true,
requiredChildren: null,
id: 'event.commonEventHeader.eventId'
}
]
}
]
}
}));
|