ember-ebau-gwr 7.4.0 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/addon/components/model-form/header/actions.hbs +9 -5
- package/addon/components/model-form/header.hbs +1 -1
- package/addon/controllers/project.js +1 -1
- package/addon/services/construction-project.js +14 -2
- package/addon/templates/project/form.hbs +1 -1
- package/package.json +2 -2
- package/translations/de.yaml +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [7.4.1](https://github.com/inosca/ember-ebau-gwr/compare/v7.4.0...v7.4.1) (2023-08-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **projects:** ignore linked archived projects & improve header layout ([8861c04](https://github.com/inosca/ember-ebau-gwr/commit/8861c043cbadd679734e50aff638d5f58fb7f5b2))
|
|
7
|
+
|
|
1
8
|
# [7.4.0](https://github.com/inosca/ember-ebau-gwr/compare/v7.3.0...v7.4.0) (2023-08-31)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -4,18 +4,19 @@
|
|
|
4
4
|
@import={{@import}}
|
|
5
5
|
@modelName={{@modelName}}
|
|
6
6
|
/>
|
|
7
|
-
<div class="uk-flex
|
|
7
|
+
<div class="uk-flex uk-flex-bottom uk-flex-column-reverse">
|
|
8
8
|
{{#if (and @modelHasImport @import)}}
|
|
9
|
+
<div class="uk-flex uk-flex-wrap uk-flex-right">
|
|
9
10
|
{{#if (and @import.originalData.length (is-unset @import.index))}}
|
|
10
11
|
<LinkTo
|
|
11
|
-
class="uk-button uk-button-default uk-
|
|
12
|
+
class="uk-button uk-button-default uk-flex-none"
|
|
12
13
|
@query={{hash index=null}}
|
|
13
14
|
>
|
|
14
15
|
{{t "ember-gwr.components.importModal.selectImportData"}}
|
|
15
16
|
</LinkTo>
|
|
16
17
|
{{else}}
|
|
17
18
|
<button
|
|
18
|
-
class="uk-button uk-button-default uk-flex-none
|
|
19
|
+
class="uk-button uk-button-default uk-flex-none uk-margin-small-left
|
|
19
20
|
{{if (is-unset @import.index) 'uk-margin-small-right'}}"
|
|
20
21
|
type="button"
|
|
21
22
|
{{on "click" @importAllData}}
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
</button>
|
|
25
26
|
{{#if (and @import @import.originalData.length)}}
|
|
26
27
|
<button
|
|
27
|
-
class="uk-button uk-button-default uk-flex-none uk-padding-small uk-padding-remove-vertical
|
|
28
|
+
class="uk-button uk-button-default uk-flex-none uk-padding-small uk-padding-remove-vertical"
|
|
28
29
|
type="button"
|
|
29
30
|
disabled={{@disabled}}
|
|
30
31
|
>
|
|
@@ -51,11 +52,13 @@
|
|
|
51
52
|
{{/if}}
|
|
52
53
|
<LinkTo
|
|
53
54
|
@query={{hash import=false index=undefined}}
|
|
54
|
-
class="uk-button uk-button-default uk-flex-none uk-margin-small-
|
|
55
|
+
class="uk-button uk-button-default uk-flex-none uk-margin-small-left"
|
|
55
56
|
>
|
|
56
57
|
{{t "ember-gwr.components.modelForm.cancelImport"}}
|
|
57
58
|
</LinkTo>
|
|
59
|
+
</div>
|
|
58
60
|
{{/if}}
|
|
61
|
+
<div class="uk-margin-small-bottom uk-margin-small-left">
|
|
59
62
|
{{#let @submit as |Submit|}}
|
|
60
63
|
<Submit />
|
|
61
64
|
{{/let}}
|
|
@@ -110,6 +113,7 @@
|
|
|
110
113
|
</ul>
|
|
111
114
|
</div>
|
|
112
115
|
{{/if}}
|
|
116
|
+
</div>
|
|
113
117
|
</div>
|
|
114
118
|
<div class="uk-margin-small-top uk-flex uk-flex-right">
|
|
115
119
|
{{#let @submitErrors as |SubmitErrors|}}
|
|
@@ -19,7 +19,7 @@ export default class ProjectController extends Controller {
|
|
|
19
19
|
|
|
20
20
|
get displayLandingPage() {
|
|
21
21
|
return (
|
|
22
|
-
!this.projects.value
|
|
22
|
+
!this.projects.value?.length &&
|
|
23
23
|
this.router.externalRouter.currentRoute.localName !== "new" &&
|
|
24
24
|
this.router.externalRouter.currentRoute.localName !== "errors"
|
|
25
25
|
);
|
|
@@ -25,7 +25,17 @@ export default class ConstructionProjectService extends GwrService {
|
|
|
25
25
|
`/constructionprojects/${EPROID}`
|
|
26
26
|
);
|
|
27
27
|
const xml = await response.text();
|
|
28
|
-
|
|
28
|
+
const project = this.createAndCache(xml);
|
|
29
|
+
|
|
30
|
+
// Archived GWR projects aren't removed from the stored instance links, but
|
|
31
|
+
// can no longer be fetched through the API. Those projects are therefore
|
|
32
|
+
// ignored, might be better to properly remove the associated links in the
|
|
33
|
+
// future.
|
|
34
|
+
if (!project.EPROID) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return project;
|
|
29
39
|
}
|
|
30
40
|
|
|
31
41
|
async update(project) {
|
|
@@ -157,7 +167,9 @@ export default class ConstructionProjectService extends GwrService {
|
|
|
157
167
|
const projects = yield Promise.all(
|
|
158
168
|
links.map(({ eproid }) => this.getFromCacheOrApi(eproid))
|
|
159
169
|
);
|
|
160
|
-
|
|
170
|
+
|
|
171
|
+
// Remove no longer available projects
|
|
172
|
+
return projects.filter(Boolean);
|
|
161
173
|
}
|
|
162
174
|
|
|
163
175
|
async removeProjectLink(projectId) {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
@addLink={{this.addWorkLink}}
|
|
81
81
|
>
|
|
82
82
|
<:list as |model|>
|
|
83
|
-
<td class="uk-table-expand">
|
|
83
|
+
<td class="uk-table-expand uk-width-expand">
|
|
84
84
|
<div class="uk-flex-inline uk-flex-middle">
|
|
85
85
|
{{#if model.isNew}}
|
|
86
86
|
<div class="uk-form-label uk-margin-small-right uk-margin">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-ebau-gwr",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"description": "Ember engine to integrate ebau-gwr into an ember app.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@ember/legacy-built-in-components": "^0.4.2",
|
|
38
38
|
"@ember/render-modifiers": "^2.1.0",
|
|
39
|
-
"@fortawesome/ember-fontawesome": "^0.
|
|
39
|
+
"@fortawesome/ember-fontawesome": "^1.0.1",
|
|
40
40
|
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
|
41
41
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
42
42
|
"@glimmer/component": "^1.1.2",
|
package/translations/de.yaml
CHANGED
|
@@ -72,7 +72,7 @@ ember-gwr:
|
|
|
72
72
|
Für Tiefbauprojekte sind keine Gebäude zugelassen.
|
|
73
73
|
Die Art der Arbeiten werden direkt auf dem Projekt erfasst.
|
|
74
74
|
superstructureInfo: |-
|
|
75
|
-
Für Hochbauprojekte werden die Art der Arbeiten
|
|
75
|
+
Für Hochbauprojekte werden die Art der Arbeiten gebäudebezogen gemeldet.
|
|
76
76
|
specialstructureInfo: |-
|
|
77
77
|
Für Sonderbauprojekte sind ausschliesslich Gebäude der Gebäudekategorie Sonderbau zugelassen.
|
|
78
78
|
buildingDisabledForNewProject: Während des Erstellens eines Projektes können noch keine Gebäude erfasst werden.
|
|
@@ -333,7 +333,7 @@ ember-gwr:
|
|
|
333
333
|
linkSuccess: Strasse erfolgreich verknüpft.
|
|
334
334
|
linkError: Bei der Verknüpfung der Strasse ist ein Fehler aufgetreten.
|
|
335
335
|
streetHint: Um einen Eingang zu erfassen müssen Sie eine Strasse verknüpfen.
|
|
336
|
-
searchHint: 'Ein Stern (*) kann in der Suche als Platzhalter verwendet werden, um nach Teilen eines
|
|
336
|
+
searchHint: 'Ein Stern (*) kann in der Suche als Platzhalter verwendet werden, um nach Teilen eines Strassennamens zu suchen.'
|
|
337
337
|
searchHintExamples: Beispiele
|
|
338
338
|
searchHintExamples1: 'Unter* : Unterfeldweg, Unterschlossweg'
|
|
339
339
|
searchHintExamples2: '*weg : Waldweg, Unterschlossweg'
|