-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathedit-graph-advanced.component.html
More file actions
202 lines (202 loc) · 6.26 KB
/
Copy pathedit-graph-advanced.component.html
File metadata and controls
202 lines (202 loc) · 6.26 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<div fxLayout="column" fxLayoutGap="8px">
<translatable-input
[content]="componentContent"
key="subtitle"
label="Subtitle"
i18n-label
(defaultLanguageTextChanged)="componentChanged()"
class="subtitle"
/>
<div>
<mat-checkbox
color="primary"
[(ngModel)]="componentContent.showMouseXPlotLine"
(ngModelChange)="componentChanged()"
i18n
>
Show Mouse X Plot Line
</mat-checkbox>
</div>
<div class="highlight-x-range-from-zero">
<mat-checkbox
color="primary"
[disabled]="!componentContent.showMouseXPlotLine"
[(ngModel)]="componentContent.highlightXRangeFromZero"
(ngModelChange)="componentChanged()"
i18n
>
Highlight X Range From Zero
</mat-checkbox>
</div>
<div>
<mat-checkbox
color="primary"
[(ngModel)]="componentContent.showMouseYPlotLine"
(ngModelChange)="componentChanged()"
i18n
>
Show Mouse Y Plot Line
</mat-checkbox>
</div>
<div>
<mat-checkbox
color="primary"
[(ngModel)]="componentContent.saveMouseOverPoints"
(ngModelChange)="componentChanged()"
i18n
>
Save Mouse Over Points
</mat-checkbox>
</div>
<div>
<mat-checkbox
color="primary"
[(ngModel)]="componentContent.hideTrialSelect"
(ngModelChange)="componentChanged()"
i18n
>
Hide Trial Select
</mat-checkbox>
</div>
<div>
<mat-checkbox
color="primary"
[(ngModel)]="componentContent.useCustomLegend"
(ngModelChange)="componentChanged()"
i18n
>
Use Custom Legend
</mat-checkbox>
</div>
<ng-container *ngIf="componentContent.useCustomLegend">
<translatable-input
[content]="componentContent"
key="customLegend"
label="Custom Legend"
i18n-label
(defaultLanguageTextChanged)="componentChanged()"
class="custom-legend"
/>
</ng-container>
<div fxLayoutGap="16px">
<span i18n>X Axis Plot Line</span>
<button
mat-raised-button
color="primary"
(click)="addXAxisPlotLine()"
matTooltip="Add X Axis Plot Line"
matTooltipPosition="above"
i18n-matTooltip
>
<mat-icon>add</mat-icon>
</button>
</div>
<div *ngFor="let plotLine of componentContent.xAxis.plotLines; index as xAxisPlotLineIndex">
<div fxLayout="row wrap" fxLayoutGap="16px">
<translatable-input
[content]="plotLine.label"
key="text"
label="Text"
i18n-label
(defaultLanguageTextChanged)="componentChanged()"
class="plot-line-text"
/>
<mat-form-field class="plot-line-value">
<mat-label i18n>X Value</mat-label>
<input matInput [(ngModel)]="plotLine.value" (ngModelChange)="componentChanged()" />
</mat-form-field>
<mat-form-field class="plot-line-color">
<mat-label i18n>Color</mat-label>
<input matInput [(ngModel)]="plotLine.color" (ngModelChange)="componentChanged()" />
</mat-form-field>
<div>
<button
mat-raised-button
color="primary"
(click)="deleteXAxisPlotLine(xAxisPlotLineIndex)"
matTooltip="Delete"
matTooltipPosition="above"
i18n-matTooltip
>
<mat-icon>delete</mat-icon>
</button>
</div>
</div>
</div>
<div fxLayoutGap="16px">
<span i18n>Y Axis Plot Line</span>
<button
mat-raised-button
color="primary"
(click)="addYAxisPlotLine()"
matTooltip="Add Y Axis Plot Line"
matTooltipPosition="above"
i18n-matTooltip
>
<mat-icon>add</mat-icon>
</button>
</div>
<div *ngFor="let plotLine of componentContent.yAxis.plotLines; index as yAxisPlotLineIndex">
<div fxLayout="row wrap" fxLayoutGap="16px">
<translatable-input
[content]="plotLine.label"
key="text"
label="Text"
i18n-label
(defaultLanguageTextChanged)="componentChanged()"
class="plot-line-text"
/>
<mat-form-field class="plot-line-value">
<mat-label i18n>Y Value</mat-label>
<input matInput [(ngModel)]="plotLine.value" (ngModelChange)="componentChanged()" />
</mat-form-field>
<mat-form-field class="plot-line-color">
<mat-label i18n>Color</mat-label>
<input matInput [(ngModel)]="plotLine.color" (ngModelChange)="componentChanged()" />
</mat-form-field>
<div>
<button
mat-raised-button
color="primary"
(click)="deleteYAxisPlotLine(yAxisPlotLineIndex)"
matTooltip="Delete"
matTooltipPosition="above"
i18n-matTooltip
>
<mat-icon>delete</mat-icon>
</button>
</div>
</div>
</div>
</div>
<div *ngIf="isNotebookEnabled()">
<edit-component-add-to-notebook-button [componentContent]="componentContent">
</edit-component-add-to-notebook-button>
</div>
<edit-component-save-button [componentContent]="componentContent"> </edit-component-save-button>
<br />
<edit-component-submit-button [componentContent]="componentContent"> </edit-component-submit-button>
@if (componentContent.showSubmitButton) {
<edit-component-max-submit [componentContent]="componentContent" />
}
<edit-component-default-feedback [componentContent]="componentContent">
</edit-component-default-feedback>
<div fxLayout="column" fxLayoutAlign="start start">
<edit-component-max-score [componentContent]="componentContent"> </edit-component-max-score>
<edit-component-exclude-from-total-score [componentContent]="componentContent">
</edit-component-exclude-from-total-score>
<edit-component-width [componentContent]="componentContent" />
<edit-component-rubric [componentContent]="componentContent"> </edit-component-rubric>
<edit-component-tags [componentContent]="componentContent"> </edit-component-tags>
</div>
<edit-graph-connected-components
[nodeId]="nodeId"
[componentId]="componentId"
[allowedConnectedComponentTypes]="allowedConnectedComponentTypes"
[componentContent]="componentContent"
[connectedComponents]="componentContent.connectedComponents"
(connectedComponentsChanged)="connectedComponentsChanged($event)"
>
</edit-graph-connected-components>
<edit-component-constraints [componentContent]="component.content" />
<edit-component-json [component]="component"></edit-component-json>