-
Notifications
You must be signed in to change notification settings - Fork 6
/
add-value.component.html
107 lines (107 loc) · 3.57 KB
/
add-value.component.html
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
<div class="grid-container">
<div class="value-component">
<span [ngSwitch]="resourcePropertyDefinition.objectType">
<app-text-value-as-string
#createVal
*ngSwitchCase="'ReadTextValueAsString'"
[mode]="mode"
[guiElement]="textValueGuiEle"
[textArea]="textArea"
></app-text-value-as-string>
<app-text-value-as-html
#createVal
*ngSwitchCase="'ReadTextValueAsHtml'"
[mode]="mode"
></app-text-value-as-html>
<app-text-value-as-xml
#createVal
*ngSwitchCase="'ReadTextValueAsXml'"
[mode]="mode"
></app-text-value-as-xml>
<app-int-value
#createVal
*ngSwitchCase="constants.IntValue"
[mode]="mode"
></app-int-value>
<app-boolean-value
#createVal
*ngSwitchCase="constants.BooleanValue"
[mode]="mode"
></app-boolean-value>
<app-uri-value
#createVal
*ngSwitchCase="constants.UriValue"
[mode]="mode"
></app-uri-value>
<app-decimal-value
#createVal
*ngSwitchCase="constants.DecimalValue"
[mode]="mode"
></app-decimal-value>
<app-color-value
#createVal
*ngSwitchCase="constants.ColorValue"
[mode]="mode"
></app-color-value>
<app-interval-value
#createVal
*ngSwitchCase="constants.IntervalValue"
[mode]="mode"
></app-interval-value>
<app-time-value
#createVal
*ngSwitchCase="constants.TimeValue"
[mode]="mode"
></app-time-value>
<app-geoname-value
#createVal
*ngSwitchCase="constants.GeonameValue"
[mode]="mode"
></app-geoname-value>
<app-link-value
#createVal
*ngSwitchCase="constants.LinkValue"
[mode]="mode"
[parentResource]="parentResource"
[propIri]="resourcePropertyDefinition.id"
[currentOntoIri]="ontoIri"
></app-link-value>
<app-date-value
#createVal
*ngSwitchCase="constants.DateValue"
[mode]="mode"
></app-date-value>
<app-list-value
#createVal
*ngSwitchCase="constants.ListValue"
[mode]="mode"
[propertyDef]="resourcePropertyDefinition"
></app-list-value>
</span>
</div>
<div class="crud-buttons">
<button
mat-icon-button
*ngIf="createModeActive"
class="value-action save"
title="save"
[disabled]="!createValueComponent.form.valid"
(click)="saveAddValue()"
>
<mat-icon>save</mat-icon>
</button>
<button
mat-icon-button
*ngIf="createModeActive"
class="value-action cancel"
title="cancel"
(click)="cancelAddValue()"
>
<mat-icon>cancel</mat-icon>
</button>
<app-progress-indicator
*ngIf="submittingValue"
[status]="progressIndicatorStatus"
></app-progress-indicator>
</div>
</div>