blob: bf201bee5df40f046ebf52f92d99f2e371787d5d (
plain)
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
|
<div style="display: flex; position: relative; justify-content: flex-end;" class="bars">
<div style="display: flex; justify-content: flex-end; align-items:center;" [class]="genrateBarTestId()">
<div *ngIf="tabName.toLowerCase().includes('map') || tabName.toLowerCase().includes('highlandpark') || tabName.toLowerCase().includes('hp')"
style="display: flex; align-items: center;">
<button mat-icon-button (click)="downloadRules()" pTooltip="Export" tooltipPosition="top">
<span style="width: 100%;
color:#5a5a5a;
height: 100%;
display: flex;
justify-content: center;
align-items: center;"
[innerHTML]="'upload' | feather:20"></span>
</button>
<hr>
<button mat-icon-button (click)="enableImports()" data-tests-id="import-rules" pTooltip="Import" tooltipPosition="top">
<span style="width: 100%;
color:#5a5a5a;
height: 100%;
display: flex;
justify-content: center;
align-items: center;"
[innerHTML]="'download' | feather:20"></span>
</button>
<hr>
</div>
<button mat-icon-button (click)="enableSetting()" data-tests-id="setting-gear" [style.color]="this.store.expandAdvancedSetting[store.tabIndex] ? '#009FDB' : 'black'"
pTooltip="Settings" tooltipPosition="top">
<span style="width: 100%;
color:#5a5a5a;
height: 100%;
display: flex;
justify-content: center;
align-items: center;"
[innerHTML]="'settings' | feather:20"></span>
</button>
</div>
<div *ngIf="tabName.toLowerCase().includes('map') || tabName.toLowerCase().includes('highlandpark') || tabName.toLowerCase().includes('hp')">
<div class="import" [style.display]="!store.expandImports[store.tabIndex] ? 'none' : 'block'">
<app-import-rules></app-import-rules>
</div>
</div>
<!-- advanced setting -->
<div class="setting" *ngIf="store.expandAdvancedSetting[store.tabIndex]">
<div *mobxAutorun style="width: 100%;" [class]="tabName+'-setting-list'">
<div style="font-size: 1.5em; padding: 0 12px;">{{tabName}} Advanced Setting</div>
<form #cdumpConfForm="ngForm">
<div *ngFor="let prop of store.configurationForm" class="field" [id]="prop.name">
<div style="display: flex;">
<p class="field-label">
{{prop.name}}
</p>
<span *ngIf="prop.description" class="help-description" style="padding-left: 5px;" [innerHTML]="'help-circle' | feather:14"
pTooltip="{{prop.description}}" tooltipPosition="top"></span>
</div>
<input *ngIf="isPropertyDdl(prop) === dropDownTypes.none" type="text" name="{{prop.name}}" class="field-text"
[(ngModel)]="prop.value" (ngModelChange)="onChange($event)">
<select *ngIf="isPropertyDdl(prop) === dropDownTypes.regularDDL" class="field-text" name="{{prop.name}}"
[(ngModel)]="prop.value" (ngModelChange)="onChange($event)">
<option *ngFor="let value of prop.constraints[0].valid_values" [value]="value">
{{value}}
</option>
</select>
<select *ngIf="isPropertyDdl(prop) === dropDownTypes.booleanDDL" class="field-text" name="{{prop.name}}"
[(ngModel)]="prop.value" (ngModelChange)="onChange($event)" data-tests-id="booleanDDL">
<option value="false">
false
</option>
<option value="true">
true
</option>
</select>
</div>
</form>
</div>
</div>
</div>
|