annotate client/src/components/importconfiguration/types/Fairwaydimensions.vue @ 4410:3759b47f20f3

FD_import: change unit of depth to meter for consistency
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 17 Sep 2019 16:08:45 +0200
parents 439e1865a2d2
children 1ff56484db4e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2 <div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
3 <div class="d-flex px-2">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
4 <div class="flex-column w-100">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
5 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
6 <small class="text-muted"> <translate>URL</translate> </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
7 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
8 <div class="w-100">
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
9 <input
2089
c001eb18b33d import schedule: fairway dimension fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 2069
diff changeset
10 @input="urlChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
11 class="url form-control form-control-sm"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
12 type="url"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
13 :value="url"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
14 />
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
15 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
16 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
17 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
18 <div v-if="!url" class="d-flex px-2">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20 ><translate class="text-danger">Please enter a URL</translate></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
21 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
22 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
23 <div class="d-flex px-2">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
24 <div class="flex-column mt-2 mr-3 w-50">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26 <small class="text-muted"> <translate>Featuretype</translate> </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
28 <div class="w-100">
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
29 <input
2089
c001eb18b33d import schedule: fairway dimension fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 2069
diff changeset
30 @input="featureTypeChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
31 class="featuretype form-control form-control-sm"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
32 type="text"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
33 :value="featureType"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
34 />
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
35 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
36 <div v-if="!featureType" class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
37 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
38 ><translate class="text-danger"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
39 >Please enter a Featuretype</translate
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
40 ></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
41 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
42 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
43 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
44 <div class="flex-column mt-2 w-50">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
45 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
46 <small class="text-muted"> <translate>SortBy</translate> </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
47 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
48 <div class="w-100">
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
49 <input
2089
c001eb18b33d import schedule: fairway dimension fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 2069
diff changeset
50 @input="sortByChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
51 class="sortby form-control form-control-sm"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
52 type="text"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
53 :value="sortBy"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
54 />
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
55 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
56 <div v-if="!sortBy" class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
57 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
58 ><translate class="text-danger"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
59 >Please enter SortBy</translate
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
60 ></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
61 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
62 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
63 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
64 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
65 <div class="d-flex px-2">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
66 <div class="flex-column mt-2 mr-3 w-50">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
67 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
68 <small class="text-muted"> <translate>LOS</translate> </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
69 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
70 <div class="w-100">
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
71 <select v-model="los" class="form-control form-control-sm">
2099
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
72 <option>1</option>
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
73 <option>2</option>
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
74 <option>3</option>
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
75 </select>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
76 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
77 <div v-if="!LOS" class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
78 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
79 ><translate class="text-danger"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
80 >Please enter a level of service</translate
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
81 ></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
82 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
83 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
84 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
85 <div class="flex-column mt-2 w-50">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
86 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
87 <small class="text-muted"> <translate>Depth</translate> </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
88 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
89 <div class="d-flex flex-row">
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
90 <input
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
91 @input="depthChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
92 class="depth form-control form-control-sm"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
93 type="number"
4410
3759b47f20f3 FD_import: change unit of depth to meter for consistency
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
94 :value="depthInMeter"
3759b47f20f3 FD_import: change unit of depth to meter for consistency
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
95 step="0.1"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
96 />
4410
3759b47f20f3 FD_import: change unit of depth to meter for consistency
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
97 <div class="ml-2 my-auto">m</div>
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
98 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
99 <div v-if="!depth" class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
100 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
101 ><translate class="text-danger"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
102 >Please enter a depth</translate
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
103 ></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
104 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
105 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
106 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
107 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
108 <div class="d-flex px-2">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
109 <div class="flex-column mt-2 mr-3 w-50">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
110 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
111 <small class="text-muted"> <translate>MinWidth</translate> </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
112 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
113 <div class="d-flex flex-row">
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
114 <input
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
115 @input="minWidthChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
116 class="minwidth form-control form-control-sm"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
117 type="number"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
118 :value="minWidth"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
119 />
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
120 <div class="ml-2 my-auto">&nbsp;m</div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
121 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
122 <div v-if="!minWidth" class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
123 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
124 ><translate class="text-danger"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
125 >Please enter a minimum width</translate
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
126 ></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
127 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
128 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
129 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
130 <div class="flex-column mt-2 w-50">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
131 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
132 <small class="text-muted"> <translate>MaxWidth</translate> </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
133 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
134 <div class="d-flex flex-row">
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
135 <input
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
136 @input="maxWidthChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
137 class="maxwidth form-control form-control-sm"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
138 type="number"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
139 :value="maxWidth"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
140 />
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
141 <div class="ml-2 my-auto">&nbsp;m</div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
142 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
143 <div v-if="!maxWidth" class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
144 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
145 ><translate class="text-danger"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
146 >Please enter a maximum width</translate
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
147 ></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
148 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
149 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
150 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
151 </div>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
152 <div class="d-flex px-2">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
153 <div class="flex-column mt-2 w-50">
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
154 <div class="flex-row text-left">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
155 <small class="text-muted">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
156 <translate>Source orgranization</translate>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
157 </small>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
158 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
159 <div class="w-100">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
160 <input
2089
c001eb18b33d import schedule: fairway dimension fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 2069
diff changeset
161 @input="sourceOrganizationChanged"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
162 class="sourceorganization form-control form-control-sm"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
163 type="text"
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
164 :value="sourceOrganization"
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
165 />
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
166 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
167 <div v-if="!sourceOrganization" class="d-flex flex-row">
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
168 <small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
169 ><translate class="text-danger"
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
170 >Please enter a source orgranization</translate
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
171 ></small
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
172 >
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
173 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
174 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
175 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
176 </div>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
177 </template>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
178
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
179 <script>
2069
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
180 /* This is Free Software under GNU Affero General Public License v >= 3.0
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
181 * without warranty, see README.md and license for details.
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
182 *
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
183 * SPDX-License-Identifier: AGPL-3.0-or-later
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
184 * License-Filename: LICENSES/AGPL-3.0.txt
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
185 *
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
186 * Copyright (C) 2018 by via donau
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
187 * – Österreichische Wasserstraßen-Gesellschaft mbH
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
188 * Software engineering by Intevation GmbH
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
189 *
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
190 * Author(s):
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
191 * Thomas Junk <thomas.junk@intevation.de>
5af57aa2b8fc licenses added
Thomas Junk <thomas.junk@intevation.de>
parents: 1999
diff changeset
192 */
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
193 export default {
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
194 name: "fairwaydimensions",
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
195 props: [
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
196 "url",
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
197 "featureType",
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
198 "sortBy",
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
199 "depth",
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
200 "LOS",
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
201 "minWidth",
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
202 "maxWidth",
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
203 "sourceOrganization"
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
204 ],
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
205 methods: {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
206 urlChanged(e) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
207 this.$emit("urlChanged", e.target.value);
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
208 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
209 featureTypeChanged(e) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
210 this.$emit("featureTypeChanged", e.target.value);
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
211 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
212 sortByChanged(e) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
213 this.$emit("sortByChanged", e.target.value);
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
214 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
215 depthChanged(e) {
1999
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
216 this.$emit("depthChanged", e.target.value * 1);
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
217 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
218 LOSChanged(e) {
1999
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
219 this.$emit("LOSChanged", e.target.value * 1);
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
220 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
221 minWidthChanged(e) {
1999
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
222 this.$emit("minWidthChanged", e.target.value * 1);
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
223 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
224 maxWidthChanged(e) {
1999
c420add2dec2 small errors fixed
Thomas Junk <thomas.junk@intevation.de>
parents: 1996
diff changeset
225 this.$emit("maxWidthChanged", e.target.value * 1);
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
226 },
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
227 sourceOrganizationChanged(e) {
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
228 this.$emit("sourceOrganizationChanged", e.target.value);
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
229 }
2099
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
230 },
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
231 computed: {
4410
3759b47f20f3 FD_import: change unit of depth to meter for consistency
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
232 depthInMeter() {
3759b47f20f3 FD_import: change unit of depth to meter for consistency
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
233 return this.depth / 100;
3759b47f20f3 FD_import: change unit of depth to meter for consistency
Thomas Junk <thomas.junk@intevation.de>
parents: 3281
diff changeset
234 },
2099
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
235 los: {
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
236 get() {
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
237 return this.LOS;
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
238 },
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
239 set(value) {
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
240 this.$emit("LOSChanged", value * 1);
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
241 }
1baae9d31b3d importschedule: LOS fixed, default level=3
Thomas Junk <thomas.junk@intevation.de>
parents: 2089
diff changeset
242 }
1996
fda5c78fb7d3 moved components
Thomas Junk <thomas.junk@intevation.de>
parents: 1992
diff changeset
243 }
1992
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
244 };
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
245 </script>
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
246
29f02d0043a9 split imports out
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
247 <style></style>