ember-ebau-gwr 6.3.2 → 6.3.3
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/linked-models.hbs +16 -20
- package/addon/components/linked-models.js +0 -1
- package/addon/components/linked-projects.hbs +1 -6
- package/addon/components/linked-projects.js +0 -1
- package/addon/components/project-landing-page.hbs +11 -15
- package/addon/controllers/building/edit/dwelling/edit.js +0 -1
- package/addon/controllers/building/edit/entrance/edit/index.js +0 -1
- package/addon/controllers/building/edit/form.js +0 -1
- package/addon/controllers/project/form.js +0 -1
- package/addon/services/quarterly-closure.js +0 -7
- package/addon/templates/building/edit/dwelling/edit.hbs +0 -4
- package/addon/templates/building/edit/entrance/edit/index.hbs +6 -22
- package/addon/templates/building/edit/form.hbs +0 -4
- package/addon/templates/project/form.hbs +0 -4
- package/package.json +5 -5
- package/translations/quarterly-closure/de.yaml +9 -10
- package/translations/quarterly-closure/fr.yaml +5 -6
- package/addon/components/project-landing-page.js +0 -6
- package/addon/components/quarterly-closure/disabled-form-alert.hbs +0 -3
- package/addon/components/quarterly-closure/disabled-form-info.hbs +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.3.3](https://github.com/inosca/ember-ebau-gwr/compare/v6.3.2...v6.3.3) (2023-01-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **quarterly-closure:** closure states after 640 should not block editing ([836abf2](https://github.com/inosca/ember-ebau-gwr/commit/836abf2ace94d3bdfdfb1bbdad4f4a4cd293eee3))
|
|
7
|
+
|
|
1
8
|
## [6.3.2](https://github.com/inosca/ember-ebau-gwr/compare/v6.3.1...v6.3.2) (2023-01-09)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
{{#each @models as |model|}}
|
|
22
22
|
<tr>
|
|
23
23
|
{{yield model}}
|
|
24
|
-
{{#if
|
|
24
|
+
{{#if @removeLink}}
|
|
25
25
|
<td class="uk-table-shrink">
|
|
26
26
|
<button
|
|
27
27
|
type="button"
|
|
@@ -49,25 +49,21 @@
|
|
|
49
49
|
<tfoot>
|
|
50
50
|
<tr>
|
|
51
51
|
<td colspan="99" class="uk-text-center">
|
|
52
|
-
{{#if
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
{{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}}
|
|
68
|
-
{{/if}}
|
|
69
|
-
</LinkTo>
|
|
70
|
-
{{/if}}
|
|
52
|
+
{{#if @searchRoute}}
|
|
53
|
+
<LinkTo
|
|
54
|
+
@route={{@searchRoute}}
|
|
55
|
+
@models={{or @searchModels (array)}}
|
|
56
|
+
@query={{or @searchQuery (hash)}}
|
|
57
|
+
>
|
|
58
|
+
{{#if (eq @modelName "building")}}
|
|
59
|
+
{{t "ember-gwr.components.linkedModels.linkExistingBuilding"}}
|
|
60
|
+
{{else}}
|
|
61
|
+
{{t
|
|
62
|
+
"ember-gwr.components.linkedModels.linkEntry"
|
|
63
|
+
modelName=modelName
|
|
64
|
+
}}
|
|
65
|
+
{{/if}}
|
|
66
|
+
</LinkTo>
|
|
71
67
|
{{#if (and @searchRoute @newRoute)}}
|
|
72
68
|
{{t "ember-gwr.components.linkedModels.or"}}
|
|
73
69
|
{{/if}}
|
|
@@ -20,12 +20,7 @@
|
|
|
20
20
|
{{project.constructionProjectDescription}}
|
|
21
21
|
</td>
|
|
22
22
|
<td class="uk-table-shrink">
|
|
23
|
-
{{#if
|
|
24
|
-
(and
|
|
25
|
-
(eq @activeProjectId project.EPROID)
|
|
26
|
-
(not this.quarterlyClosure.formsDisabled)
|
|
27
|
-
)
|
|
28
|
-
}}
|
|
23
|
+
{{#if (eq @activeProjectId project.EPROID)}}
|
|
29
24
|
<button
|
|
30
25
|
type="button"
|
|
31
26
|
class="uk-icon-button"
|
|
@@ -9,22 +9,18 @@
|
|
|
9
9
|
{{t "ember-gwr.projectLandingPage.infoText"}}
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<LinkTo @route="project.new" class="uk-button uk-button-primary">
|
|
18
|
-
{{t "ember-gwr.projectLandingPage.createNewProject"}}
|
|
19
|
-
</LinkTo>
|
|
20
|
-
</div>
|
|
21
|
-
<div>
|
|
22
|
-
<LinkTo @route="search-project" class="uk-button uk-button-primary">
|
|
23
|
-
{{t "ember-gwr.projectLandingPage.linkExistingProject"}}
|
|
24
|
-
</LinkTo>
|
|
25
|
-
</div>
|
|
12
|
+
<div class="uk-flex uk-flex-between">
|
|
13
|
+
<div class="uk-margin-large-right">
|
|
14
|
+
<LinkTo @route="project.new" class="uk-button uk-button-primary">
|
|
15
|
+
{{t "ember-gwr.projectLandingPage.createNewProject"}}
|
|
16
|
+
</LinkTo>
|
|
26
17
|
</div>
|
|
27
|
-
|
|
18
|
+
<div>
|
|
19
|
+
<LinkTo @route="search-project" class="uk-button uk-button-primary">
|
|
20
|
+
{{t "ember-gwr.projectLandingPage.linkExistingProject"}}
|
|
21
|
+
</LinkTo>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
28
24
|
</div>
|
|
29
25
|
</div>
|
|
30
26
|
</div>
|
|
@@ -18,7 +18,6 @@ export default class BuildingFormController extends ImportController {
|
|
|
18
18
|
@service intl;
|
|
19
19
|
@service notification;
|
|
20
20
|
@service router;
|
|
21
|
-
@service quarterlyClosure;
|
|
22
21
|
|
|
23
22
|
@tracked BuildingWorkValidations = trackedFunction(this, () => {
|
|
24
23
|
return buildingWorkValidation({
|
|
@@ -44,13 +44,6 @@ export default class QuarterlyClosureService extends Service {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
get formsDisabled() {
|
|
48
|
-
return (
|
|
49
|
-
this.status.id &&
|
|
50
|
-
![620, 630, 650, 651, 663, 665, 690].includes(this.status.id)
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
47
|
get constructionSurveyDeptNumber() {
|
|
55
48
|
return this.authFetch.constructionSurveyDeptNumber;
|
|
56
49
|
}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
{{#if this.fetchDwelling.isRunning}}
|
|
3
3
|
<Loading />
|
|
4
4
|
{{else}}
|
|
5
|
-
{{#if this.quarterlyClosure.formsDisabled}}
|
|
6
|
-
<QuarterlyClosure::DisabledFormAlert />
|
|
7
|
-
{{/if}}
|
|
8
5
|
<ModelForm
|
|
9
6
|
@model={{this.dwelling}}
|
|
10
7
|
@instanceId={{this.model.instanceId}}
|
|
@@ -26,7 +23,6 @@
|
|
|
26
23
|
@getChangeParameters={{this.getChangeParameters}}
|
|
27
24
|
@getCorrectionParameters={{this.getCorrectionParameters}}
|
|
28
25
|
@modelStatusField="dwellingStatus"
|
|
29
|
-
@disabled={{this.quarterlyClosure.formsDisabled}}
|
|
30
26
|
as |Field changeset import|
|
|
31
27
|
>
|
|
32
28
|
<Field
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
{{#if this.fetchBuildingEntrance.isRunning}}
|
|
3
3
|
<Loading />
|
|
4
4
|
{{else}}
|
|
5
|
-
{{#if this.quarterlyClosure.formsDisabled}}
|
|
6
|
-
<QuarterlyClosure::DisabledFormAlert />
|
|
7
|
-
{{/if}}
|
|
8
5
|
<ModelForm
|
|
9
6
|
@model={{this.buildingEntrance}}
|
|
10
7
|
@instanceId={{this.model.instanceId}}
|
|
@@ -21,7 +18,7 @@
|
|
|
21
18
|
@statusConfiguration={{false}}
|
|
22
19
|
@showImport={{this.showImport}}
|
|
23
20
|
@importIndex={{this.importIndex}}
|
|
24
|
-
@disabled={{
|
|
21
|
+
@disabled={{this.hasNoStreet}}
|
|
25
22
|
as |Field|
|
|
26
23
|
>
|
|
27
24
|
{{#unless this.buildingEntrance.isNew}}
|
|
@@ -31,28 +28,19 @@
|
|
|
31
28
|
<Field
|
|
32
29
|
@attr="locality.name.nameLong"
|
|
33
30
|
@required={{true}}
|
|
34
|
-
@disabled={{
|
|
35
|
-
this.quarterlyClosure.formsDisabled
|
|
36
|
-
(not this.buildingEntrance.isNew)
|
|
37
|
-
}}
|
|
31
|
+
@disabled={{not this.buildingEntrance.isNew}}
|
|
38
32
|
/>
|
|
39
33
|
<Field
|
|
40
34
|
@attr="locality.swissZipCode"
|
|
41
35
|
@type="number"
|
|
42
|
-
@disabled={{
|
|
43
|
-
this.quarterlyClosure.formsDisabled
|
|
44
|
-
(not this.buildingEntrance.isNew)
|
|
45
|
-
}}
|
|
36
|
+
@disabled={{not this.buildingEntrance.isNew}}
|
|
46
37
|
@required={{true}}
|
|
47
38
|
/>
|
|
48
39
|
{{#unless this.buildingEntrance.isNew}}
|
|
49
40
|
<Field
|
|
50
41
|
@attr="locality.swissZipCodeAddOn"
|
|
51
42
|
@type="number"
|
|
52
|
-
@disabled={{
|
|
53
|
-
this.quarterlyClosure.formsDisabled
|
|
54
|
-
(not this.buildingEntrance.isNew)
|
|
55
|
-
}}
|
|
43
|
+
@disabled={{not this.buildingEntrance.isNew}}
|
|
56
44
|
/>
|
|
57
45
|
{{/unless}}
|
|
58
46
|
{{! API rejects any modification of the buildingEntranceNo or isOfficial
|
|
@@ -64,14 +52,11 @@
|
|
|
64
52
|
}}
|
|
65
53
|
; container: {{this.config.modalContainer}}; pos: top-left"
|
|
66
54
|
>
|
|
67
|
-
<Field
|
|
68
|
-
@attr="buildingEntranceNo"
|
|
69
|
-
@disabled={{or this.quarterlyClosure.formsDisabled this.hasNoStreet}}
|
|
70
|
-
/>
|
|
55
|
+
<Field @attr="buildingEntranceNo" @disabled={{this.hasNoStreet}} />
|
|
71
56
|
<Field
|
|
72
57
|
@attr="isOfficialAddress"
|
|
73
58
|
@type="checkbox"
|
|
74
|
-
@disabled={{
|
|
59
|
+
@disabled={{this.hasNoStreet}}
|
|
75
60
|
/>
|
|
76
61
|
</div>
|
|
77
62
|
{{#unless this.buildingEntrance.isNew}}
|
|
@@ -105,7 +90,6 @@
|
|
|
105
90
|
@fieldComponent={{Field}}
|
|
106
91
|
@buildingEntrance={{this.buildingEntrance}}
|
|
107
92
|
@translationBase="ember-gwr.buildingEntrance.fields"
|
|
108
|
-
@disabled={{this.quarterlyClosure.formsDisabled}}
|
|
109
93
|
/>
|
|
110
94
|
{{/unless}}
|
|
111
95
|
</ModelForm>
|
|
@@ -12,9 +12,6 @@
|
|
|
12
12
|
{{#if (or this.fetchBuildingWork.isRunning this.fetchBuilding.isRunning)}}
|
|
13
13
|
<Loading />
|
|
14
14
|
{{else}}
|
|
15
|
-
{{#if this.quarterlyClosure.formsDisabled}}
|
|
16
|
-
<QuarterlyClosure::DisabledFormAlert />
|
|
17
|
-
{{/if}}
|
|
18
15
|
<ModelForm
|
|
19
16
|
@model={{this.buildingWork}}
|
|
20
17
|
@instanceId={{this.model.instanceId}}
|
|
@@ -38,7 +35,6 @@
|
|
|
38
35
|
@getCorrectionParameters={{this.getCorrectionParameters}}
|
|
39
36
|
@getChangeHint={{fn this.gwr.getChangeHint this.buildingAPI.cacheClass}}
|
|
40
37
|
@modelStatusField="buildingStatus"
|
|
41
|
-
@disabled={{this.quarterlyClosure.formsDisabled}}
|
|
42
38
|
as |Field changeset import|
|
|
43
39
|
>
|
|
44
40
|
{{#unless this.hasNoProject}}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
{{#if this.fetchProject.isRunning}}
|
|
3
3
|
<Loading />
|
|
4
4
|
{{else}}
|
|
5
|
-
{{#if this.quarterlyClosure.formsDisabled}}
|
|
6
|
-
<QuarterlyClosure::DisabledFormAlert />
|
|
7
|
-
{{/if}}
|
|
8
5
|
<ModelForm
|
|
9
6
|
@model={{this.project}}
|
|
10
7
|
@instanceId={{this.model.instanceId}}
|
|
@@ -30,7 +27,6 @@
|
|
|
30
27
|
this.constructionProject.cacheClass
|
|
31
28
|
}}
|
|
32
29
|
@modelStatusField="projectStatus"
|
|
33
|
-
@disabled={{this.quarterlyClosure.formsDisabled}}
|
|
34
30
|
as |Field changeset import|
|
|
35
31
|
>
|
|
36
32
|
{{#unless this.project.isNew}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-ebau-gwr",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.3",
|
|
4
4
|
"description": "Ember engine to integrate ebau-gwr into an ember app.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -80,21 +80,21 @@
|
|
|
80
80
|
"ember-resolver": "8.0.3",
|
|
81
81
|
"ember-source": "4.9.3",
|
|
82
82
|
"ember-source-channel-url": "3.0.0",
|
|
83
|
-
"ember-template-lint": "5.3.
|
|
83
|
+
"ember-template-lint": "5.3.1",
|
|
84
84
|
"ember-template-lint-plugin-prettier": "4.1.0",
|
|
85
85
|
"ember-test-selectors": "6.0.0",
|
|
86
86
|
"ember-try": "2.0.0",
|
|
87
87
|
"eslint": "7.32.0",
|
|
88
88
|
"eslint-config-prettier": "8.6.0",
|
|
89
89
|
"eslint-plugin-ember": "11.4.2",
|
|
90
|
-
"eslint-plugin-import": "2.
|
|
90
|
+
"eslint-plugin-import": "2.27.4",
|
|
91
91
|
"eslint-plugin-node": "11.1.0",
|
|
92
92
|
"eslint-plugin-prettier": "4.2.1",
|
|
93
93
|
"eslint-plugin-qunit": "7.3.4",
|
|
94
94
|
"loader.js": "4.7.0",
|
|
95
95
|
"local-cors-proxy": "1.1.0",
|
|
96
|
-
"miragejs": "0.1.
|
|
97
|
-
"prettier": "2.8.
|
|
96
|
+
"miragejs": "0.1.47",
|
|
97
|
+
"prettier": "2.8.2",
|
|
98
98
|
"qunit": "2.19.3",
|
|
99
99
|
"qunit-dom": "2.0.0",
|
|
100
100
|
"sass": "1.57.1",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
ember-gwr:
|
|
2
2
|
quarterlyClosure:
|
|
3
3
|
needsCorrection: |-
|
|
4
|
-
Der Quartalsabschluss konnte aufgrund von bestehenden Fehlern nicht abgeschlossen
|
|
5
|
-
werden. Bitte ergänzen Sie fehlende Daten und beheben Sie verbleibende
|
|
4
|
+
Der Quartalsabschluss konnte aufgrund von bestehenden Fehlern nicht abgeschlossen
|
|
5
|
+
werden. Bitte ergänzen Sie fehlende Daten und beheben Sie verbleibende
|
|
6
6
|
Unstimmigkeiten.
|
|
7
7
|
|
|
8
8
|
closure:
|
|
9
9
|
close: Quartalsabschluss melden
|
|
10
|
-
closeInfo: |-
|
|
11
|
-
Der Quartalsabschluss kann bei Quartalsende dem BfS gemeldet werden, welche daraufhin Qualitätskontrollen
|
|
12
|
-
auf den eingetragenen Daten durchführt. Weitere Änderungen an den Daten sind in dieser Zeit nicht mehr
|
|
13
|
-
möglich, bis allfällige weitere Datenkorrekture nötig sind oder der Quartalsabschluss abgeschlossen wurde.
|
|
10
|
+
closeInfo: |-
|
|
11
|
+
Der Quartalsabschluss kann bei Quartalsende dem BfS gemeldet werden, welche daraufhin Qualitätskontrollen
|
|
12
|
+
auf den eingetragenen Daten durchführt. Weitere Änderungen an den Daten sind in dieser Zeit nicht mehr
|
|
13
|
+
möglich, bis allfällige weitere Datenkorrekture nötig sind oder der Quartalsabschluss abgeschlossen wurde.
|
|
14
14
|
Nach Datenkorrekturen kann der Quartalsabschluss erneut gemeldet werden.
|
|
15
15
|
|
|
16
16
|
error: Beim Melden des Quartalsabschlusses ist ein Fehler aufgetreten.
|
|
@@ -59,13 +59,12 @@ ember-gwr:
|
|
|
59
59
|
projectErrors:
|
|
60
60
|
error: Beim Abrufen der Fehlerliste der Projekte ist ein Fehler aufgetreten.
|
|
61
61
|
title: Bauprojekte
|
|
62
|
-
infoText:
|
|
63
|
-
Nachfolgend finden Sie eine Liste der Bauprojekte, die durch die Erhebungsstelle erfasst wurden
|
|
64
|
-
und noch Fehler beinhalten. Um die Fehler auf den Gebäuden, Wohnungen und Eingängen einzusehen,
|
|
62
|
+
infoText:
|
|
63
|
+
Nachfolgend finden Sie eine Liste der Bauprojekte, die durch die Erhebungsstelle erfasst wurden
|
|
64
|
+
und noch Fehler beinhalten. Um die Fehler auf den Gebäuden, Wohnungen und Eingängen einzusehen,
|
|
65
65
|
wählen Sie bitte das entsprechende Bauprojekt an.
|
|
66
66
|
departmentErrors:
|
|
67
67
|
error: Beim Abrufen der Fehlerliste der Erhebungsstelle ist ein Fehler aufgetreten.
|
|
68
68
|
title: Erhebungsstelle
|
|
69
69
|
infoText: Nachfolgend finden Sie die offenen Pendenzen der Erhebungsstelle.
|
|
70
70
|
maintenanceCost: Die Ausgaben für den Unterhalt an eigenen Bauwerken müssen im 1. Quartal im Housing-Stat gesetzt werden.
|
|
71
|
-
disabledFormInfo: Während das BFS die Daten kontrolliert, welche durch den Quartalsabschluss eingereicht wurden, können keine Objekte mehr editiert werden.
|
|
@@ -8,9 +8,9 @@ ember-gwr:
|
|
|
8
8
|
closure:
|
|
9
9
|
close: Annoncer la clôture trimestrielle
|
|
10
10
|
closeInfo: |-
|
|
11
|
-
La clôture trimestrielle peut être annoncée à la fin du trimestre à l'OFS, qui procède alors à des contrôles
|
|
12
|
-
de qualité des données saisies. Il n'est plus possible d'apporter d'autres modifications aux données pendant
|
|
13
|
-
cette période, jusqu'à ce que d'éventuelles autres corrections de données soient nécessaires ou que la clôture
|
|
11
|
+
La clôture trimestrielle peut être annoncée à la fin du trimestre à l'OFS, qui procède alors à des contrôles
|
|
12
|
+
de qualité des données saisies. Il n'est plus possible d'apporter d'autres modifications aux données pendant
|
|
13
|
+
cette période, jusqu'à ce que d'éventuelles autres corrections de données soient nécessaires ou que la clôture
|
|
14
14
|
trimestrielle soit terminée. Après correction des données, la clôture trimestrielle peut être à nouveau annoncée.
|
|
15
15
|
|
|
16
16
|
error: Une erreur est survenue lors de I'annonce de la clôture trimestrielle.
|
|
@@ -60,12 +60,11 @@ ember-gwr:
|
|
|
60
60
|
error: Une erreur est survenue lors de la consultation de la liste des erreurs des projets.
|
|
61
61
|
title: Projets de construction
|
|
62
62
|
infoText: |-
|
|
63
|
-
Vous trouverez ci-dessous une liste des projets de construction qui ont été saisis par l'organe
|
|
64
|
-
de perception et qui contiennent encore des erreurs. Pour consulter les erreurs sur les bâtiments,
|
|
63
|
+
Vous trouverez ci-dessous une liste des projets de construction qui ont été saisis par l'organe
|
|
64
|
+
de perception et qui contiennent encore des erreurs. Pour consulter les erreurs sur les bâtiments,
|
|
65
65
|
les logements et les entrées, veuillez sélectionner le projet de construction correspondant.
|
|
66
66
|
departmentErrors:
|
|
67
67
|
error: Une erreur est survenue lors de la consultation de la liste des erreurs de l'organe de perception.
|
|
68
68
|
title: Organe de perception
|
|
69
69
|
infoText: Vous trouverez ci-dessous les dossiers en suspens de l'organe de perception.
|
|
70
70
|
maintenanceCost: Les dépenses d'entretien des constructions propres doivent être placées dans le Housing-Stat au cours du 1er trimestre.
|
|
71
|
-
disabledFormInfo: Pendant que l'OFS vérifie les données qui ont été soumises suite à la clôture trimestrielle, il n'est pas possible de modifier des objets.
|